@engrate/components 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),A=require("react"),gi=require("react-dom");function Vw(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 f=Vw(A),yi=Vw(gi);function lI(e,t){const r=f.createContext(t),n=i=>{const{children:a,...s}=i,l=f.useMemo(()=>s,Object.values(s));return y.jsx(r.Provider,{value:l,children:a})};n.displayName=e+"Provider";function o(i){const a=f.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function Xe(e,t=[]){let r=[];function n(i,a){const s=f.createContext(a),l=r.length;r=[...r,a];const c=d=>{const{scope:p,children:v,...g}=d,m=p?.[e]?.[l]||s,h=f.useMemo(()=>g,Object.values(g));return y.jsx(m.Provider,{value:h,children:v})};c.displayName=i+"Provider";function u(d,p){const v=p?.[e]?.[l]||s,g=f.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=r.map(a=>f.createContext(a));return function(s){const l=s?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[n,cI(o,...t)]}function cI(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Km(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cr(...e){return t=>{let r=!1;const n=e.map(o=>{const i=Km(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():Km(e[o],null)}}}}function ie(...e){return f.useCallback(cr(...e),e)}function Um(e){const t=uI(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(fI);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function uI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=vI(o),s=pI(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dI=Symbol("radix.slottable");function fI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dI}function pI(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function vI(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)}function bi(e){const t=e+"CollectionProvider",[r,n]=Xe(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:h,children:b}=m,x=A.useRef(null),w=A.useRef(new Map).current;return y.jsx(o,{scope:h,itemMap:w,collectionRef:x,children:b})};a.displayName=t;const s=e+"CollectionSlot",l=Um(s),c=A.forwardRef((m,h)=>{const{scope:b,children:x}=m,w=i(s,b),P=ie(h,w.collectionRef);return y.jsx(l,{ref:P,children:x})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=Um(u),v=A.forwardRef((m,h)=>{const{scope:b,children:x,...w}=m,P=A.useRef(null),O=ie(h,P),S=i(u,b);return A.useEffect(()=>(S.itemMap.set(P,{ref:P,...w}),()=>{S.itemMap.delete(P)})),y.jsx(p,{[d]:"",ref:O,children:x})});v.displayName=u;function g(m){const h=i(e+"CollectionConsumer",m);return A.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((S,E)=>w.indexOf(S.ref.current)-w.indexOf(E.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:c,ItemSlot:v},g,n]}function U(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var qe=globalThis?.document?f.useLayoutEffect:()=>{},mI=f[" useInsertionEffect ".trim().toString()]||qe;function at({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,a]=hI({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:o;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${n} is changing from ${d?"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.`),u.current=s},[s,n])}const c=f.useCallback(u=>{if(s){const d=gI(u)?u(e):u;d!==e&&a.current?.(d)}else i(u)},[s,e,i,a]);return[l,c]}function hI({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return mI(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function gI(e){return typeof e=="function"}function yI(e){const t=bI(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(wI);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function bI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=SI(o),s=PI(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xI=Symbol("radix.slottable");function wI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xI}function PI(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function SI(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 OI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=OI.reduce((e,t)=>{const r=yI(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Uf(e,t){e&&yi.flushSync(()=>e.dispatchEvent(t))}function EI(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var lt=e=>{const{present:t,children:r}=e,n=CI(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=ie(n.ref,AI(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};lt.displayName="Presence";function CI(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),a=e?"mounted":"unmounted",[s,l]=EI(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=na(n.current);i.current=s==="mounted"?c:"none"},[s]),qe(()=>{const c=n.current,u=o.current;if(u!==e){const p=i.current,v=na(c);e?l("MOUNT"):v==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),qe(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=v=>{const m=na(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&m&&(l("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=v=>{v.target===t&&(i.current=na(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function na(e){return e?.animationName||"none"}function AI(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 _I=f[" useId ".trim().toString()]||(()=>{}),TI=0;function vt(e){const[t,r]=f.useState(_I());return qe(()=>{r(n=>n??String(TI++))},[e]),e||(t?`radix-${t}`:"")}var tl="Collapsible",[jI,Ww]=Xe(tl),[NI,Hf]=jI(tl),Kw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,c]=at({prop:n,defaultProp:o??!1,onChange:a,caller:tl});return y.jsx(NI,{scope:r,disabled:i,contentId:vt(),open:l,onOpenToggle:f.useCallback(()=>c(u=>!u),[c]),children:y.jsx(Q.div,{"data-state":qf(l),"data-disabled":i?"":void 0,...s,ref:t})})});Kw.displayName=tl;var Uw="CollapsibleTrigger",Hw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Hf(Uw,r);return y.jsx(Q.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":qf(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:U(e.onClick,o.onOpenToggle)})});Hw.displayName=Uw;var Gf="CollapsibleContent",Gw=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Hf(Gf,e.__scopeCollapsible);return y.jsx(lt,{present:r||o.open,children:({present:i})=>y.jsx(MI,{...n,ref:t,present:i})})});Gw.displayName=Gf;var MI=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,a=Hf(Gf,r),[s,l]=f.useState(n),c=f.useRef(null),u=ie(t,c),d=f.useRef(0),p=d.current,v=f.useRef(0),g=v.current,m=a.open||s,h=f.useRef(m),b=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),qe(()=>{const x=c.current;if(x){b.current=b.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();d.current=w.height,v.current=w.width,h.current||(x.style.transitionDuration=b.current.transitionDuration,x.style.animationName=b.current.animationName),l(n)}},[a.open,n]),y.jsx(Q.div,{"data-state":qf(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...i,ref:u,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:m&&o})});function qf(e){return e?"open":"closed"}var II=Kw,kI=Hw,RI=Gw,DI=f.createContext(void 0);function xi(e){const t=f.useContext(DI);return e||t||"ltr"}var Ut="Accordion",$I=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Yf,LI,FI]=bi(Ut),[rl]=Xe(Ut,[FI,Ww]),Xf=Ww(),qw=A.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return y.jsx(Yf.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?y.jsx(WI,{...i,ref:t}):y.jsx(VI,{...o,ref:t})})});qw.displayName=Ut;var[Yw,zI]=rl(Ut),[Xw,BI]=rl(Ut,{collapsible:!1}),VI=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,l]=at({prop:r,defaultProp:n??"",onChange:o,caller:Ut});return y.jsx(Yw,{scope:e.__scopeAccordion,value:A.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:A.useCallback(()=>i&&l(""),[i,l]),children:y.jsx(Xw,{scope:e.__scopeAccordion,collapsible:i,children:y.jsx(Zw,{...a,ref:t})})})}),WI=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[a,s]=at({prop:r,defaultProp:n??[],onChange:o,caller:Ut}),l=A.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=A.useCallback(u=>s((d=[])=>d.filter(p=>p!==u)),[s]);return y.jsx(Yw,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:y.jsx(Xw,{scope:e.__scopeAccordion,collapsible:!0,children:y.jsx(Zw,{...i,ref:t})})})}),[KI,nl]=rl(Ut),Zw=A.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...a}=e,s=A.useRef(null),l=ie(s,t),c=LI(r),d=xi(o)==="ltr",p=U(e.onKeyDown,v=>{if(!$I.includes(v.key))return;const g=v.target,m=c().filter(C=>!C.ref.current?.disabled),h=m.findIndex(C=>C.ref.current===g),b=m.length;if(h===-1)return;v.preventDefault();let x=h;const w=0,P=b-1,O=()=>{x=h+1,x>P&&(x=w)},S=()=>{x=h-1,x<w&&(x=P)};switch(v.key){case"Home":x=w;break;case"End":x=P;break;case"ArrowRight":i==="horizontal"&&(d?O():S());break;case"ArrowDown":i==="vertical"&&O();break;case"ArrowLeft":i==="horizontal"&&(d?S():O());break;case"ArrowUp":i==="vertical"&&S();break}const E=x%b;m[E].ref.current?.focus()});return y.jsx(KI,{scope:r,disabled:n,direction:o,orientation:i,children:y.jsx(Yf.Slot,{scope:r,children:y.jsx(Q.div,{...a,"data-orientation":i,ref:l,onKeyDown:n?void 0:p})})})}),qa="AccordionItem",[UI,Zf]=rl(qa),Jw=A.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=nl(qa,r),a=zI(qa,r),s=Xf(r),l=vt(),c=n&&a.value.includes(n)||!1,u=i.disabled||e.disabled;return y.jsx(UI,{scope:r,open:c,disabled:u,triggerId:l,children:y.jsx(II,{"data-orientation":i.orientation,"data-state":o0(c),...s,...o,ref:t,disabled:u,open:c,onOpenChange:d=>{d?a.onItemOpen(n):a.onItemClose(n)}})})});Jw.displayName=qa;var Qw="AccordionHeader",e0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=nl(Ut,r),i=Zf(Qw,r);return y.jsx(Q.h3,{"data-orientation":o.orientation,"data-state":o0(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});e0.displayName=Qw;var wd="AccordionTrigger",t0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=nl(Ut,r),i=Zf(wd,r),a=BI(wd,r),s=Xf(r);return y.jsx(Yf.ItemSlot,{scope:r,children:y.jsx(kI,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...n,ref:t})})});t0.displayName=wd;var r0="AccordionContent",n0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=nl(Ut,r),i=Zf(r0,r),a=Xf(r);return y.jsx(RI,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});n0.displayName=r0;function o0(e){return e?"open":"closed"}var HI=qw,GI=Jw,qI=e0,YI=t0,XI=n0;function i0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=i0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function de(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=i0(e))&&(n&&(n+=" "),n+=t);return n}const Hm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gm=de,te=(e,t)=>r=>{var n;if(t?.variants==null)return Gm(e,r?.class,r?.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{const u=r?.[c],d=i?.[c];if(u===null)return null;const p=Hm(u)||Hm(d);return o[c][p]}),s=r&&Object.entries(r).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:p,...v}=u;return Object.entries(v).every(g=>{let[m,h]=g;return Array.isArray(h)?h.includes({...i,...s}[m]):{...i,...s}[m]===h})?[...c,d,p]:c},[]);return Gm(e,a,l,r?.class,r?.className)};const a0=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const ZI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const JI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const qm=e=>{const t=JI(e);return t.charAt(0).toUpperCase()+t.slice(1)};var QI={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 ek=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const tk=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},l)=>A.createElement("svg",{ref:l,...QI,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:a0("lucide",o),...!i&&!ek(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,u])=>A.createElement(c,u)),...Array.isArray(i)?i:[i]]));const Dn=(e,t)=>{const r=A.forwardRef(({className:n,...o},i)=>A.createElement(tk,{ref:i,iconNode:t,className:a0(`lucide-${ZI(qm(e))}`,`lucide-${e}`,n),...o}));return r.displayName=qm(e),r};const rk=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],s0=Dn("calendar",rk);const nk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ok=Dn("chevron-down",nk);const ik=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ol=Dn("chevron-left",ik);const ak=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],il=Dn("chevron-right",ak);const sk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lk=Dn("clock",sk);const ck=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],l0=Dn("ellipsis",ck);const uk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],c0=Dn("x",uk),dk=(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},fk=(e,t)=>({classGroupId:e,validator:t}),u0=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ya="-",Ym=[],pk="arbitrary..",vk=e=>{const t=hk(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return mk(a);const s=a.split(Ya),l=s[0]===""&&s.length>1?1:0;return d0(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=n[a],c=r[a];return l?c?dk(c,l):l:c||Ym}return r[a]||Ym}}},d0=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=d0(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const s=t===0?e.join(Ya):e.slice(t).join(Ya),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(s))return u.classGroupId}},mk=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?pk+n:void 0})(),hk=e=>{const{theme:t,classGroups:r}=e;return gk(r,t)},gk=(e,t)=>{const r=u0();for(const n in e){const o=e[n];Jf(o,r,n,t)}return r},Jf=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];yk(a,t,r,n)}},yk=(e,t,r,n)=>{if(typeof e=="string"){bk(e,t,r);return}if(typeof e=="function"){xk(e,t,r,n);return}wk(e,t,r,n)},bk=(e,t,r)=>{const n=e===""?t:f0(t,e);n.classGroupId=r},xk=(e,t,r,n)=>{if(Pk(e)){Jf(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(fk(r,e))},wk=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];Jf(l,f0(t,s),r,n)}},f0=(e,t)=>{let r=e;const n=t.split(Ya),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=u0(),r.nextPart.set(a,s)),r=s}return r},Pk=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Sk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},Pd="!",Xm=":",Ok=[],Zm=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Ek=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,s=0,l=0,c;const u=o.length;for(let m=0;m<u;m++){const h=o[m];if(a===0&&s===0){if(h===Xm){i.push(o.slice(l,m)),l=m+1;continue}if(h==="/"){c=m;continue}}h==="["?a++:h==="]"?a--:h==="("?s++:h===")"&&s--}const d=i.length===0?o:o.slice(l);let p=d,v=!1;d.endsWith(Pd)?(p=d.slice(0,-1),v=!0):d.startsWith(Pd)&&(p=d.slice(1),v=!0);const g=c&&c>l?c-l:void 0;return Zm(i,v,p,g)};if(t){const o=t+Xm,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):Zm(Ok,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},Ck=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const a=r[i],s=a[0]==="[",l=t.has(a);s||l?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},Ak=e=>({cache:Sk(e.cacheSize),parseClassName:Ek(e),sortModifiers:Ck(e),...vk(e)}),_k=/\s+/,Tk=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(_k);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:p,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:m}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let h=!!m,b=n(h?g.substring(0,m):g);if(!b){if(!h){l=u+(l.length>0?" "+l:l);continue}if(b=n(g),!b){l=u+(l.length>0?" "+l:l);continue}h=!1}const x=p.length===0?"":p.length===1?p[0]:i(p).join(":"),w=v?x+Pd:x,P=w+b;if(a.indexOf(P)>-1)continue;a.push(P);const O=o(b,h);for(let S=0;S<O.length;++S){const E=O[S];a.push(w+E)}l=u+(l.length>0?" "+l:l)}return l},jk=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=p0(r))&&(o&&(o+=" "),o+=n);return o},p0=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=p0(e[n]))&&(r&&(r+=" "),r+=t);return r},Jm=(e,...t)=>{let r,n,o,i;const a=l=>{const c=t.reduce((u,d)=>d(u),e());return r=Ak(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{const c=n(l);if(c)return c;const u=Tk(l,r);return o(l,u),u};return i=a,(...l)=>i(jk(...l))},Nk=[],Fe=e=>{const t=r=>r[e]||Nk;return t.isThemeGetter=!0,t},v0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,m0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mk=/^\d+\/\d+$/,Ik=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kk=/\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$/,Rk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$k=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Hn=e=>Mk.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),Dr=e=>!!e&&Number.isInteger(Number(e)),_c=e=>e.endsWith("%")&&ae(e.slice(0,-1)),dr=e=>Ik.test(e),Lk=()=>!0,Fk=e=>kk.test(e)&&!Rk.test(e),h0=()=>!1,zk=e=>Dk.test(e),Bk=e=>$k.test(e),Vk=e=>!X(e)&&!Z(e),Wk=e=>bo(e,b0,h0),X=e=>v0.test(e),ln=e=>bo(e,x0,Fk),Tc=e=>bo(e,qk,ae),Qm=e=>bo(e,g0,h0),Kk=e=>bo(e,y0,Bk),oa=e=>bo(e,w0,zk),Z=e=>m0.test(e),ko=e=>xo(e,x0),Uk=e=>xo(e,Yk),eh=e=>xo(e,g0),Hk=e=>xo(e,b0),Gk=e=>xo(e,y0),ia=e=>xo(e,w0,!0),bo=(e,t,r)=>{const n=v0.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},xo=(e,t,r=!1)=>{const n=m0.exec(e);return n?n[1]?t(n[1]):r:!1},g0=e=>e==="position"||e==="percentage",y0=e=>e==="image"||e==="url",b0=e=>e==="length"||e==="size"||e==="bg-size",x0=e=>e==="length",qk=e=>e==="number",Yk=e=>e==="family-name",w0=e=>e==="shadow",th=()=>{const e=Fe("color"),t=Fe("font"),r=Fe("text"),n=Fe("font-weight"),o=Fe("tracking"),i=Fe("leading"),a=Fe("breakpoint"),s=Fe("container"),l=Fe("spacing"),c=Fe("radius"),u=Fe("shadow"),d=Fe("inset-shadow"),p=Fe("text-shadow"),v=Fe("drop-shadow"),g=Fe("blur"),m=Fe("perspective"),h=Fe("aspect"),b=Fe("ease"),x=Fe("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),Z,X],S=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],C=()=>[Z,X,l],N=()=>[Hn,"full","auto",...C()],D=()=>[Dr,"none","subgrid",Z,X],$=()=>["auto",{span:["full",Dr,Z,X]},Dr,Z,X],_=()=>[Dr,"auto",Z,X],M=()=>["auto","min","max","fr",Z,X],k=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...C()],K=()=>[Hn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],T=()=>[e,Z,X],I=()=>[...P(),eh,Qm,{position:[Z,X]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",Hk,Wk,{size:[Z,X]}],re=()=>[_c,ko,ln],oe=()=>["","none","full",c,Z,X],ne=()=>["",ae,ko,ln],le=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[ae,_c,eh,Qm],ue=()=>["","none",g,Z,X],L=()=>["none",ae,Z,X],H=()=>["none",ae,Z,X],z=()=>[ae,Z,X],F=()=>[Hn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dr],breakpoint:[dr],color:[Lk],container:[dr],"drop-shadow":[dr],ease:["in","out","in-out"],font:[Vk],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dr],shadow:[dr],spacing:["px",ae],text:[dr],"text-shadow":[dr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Hn,X,Z,h]}],container:["container"],columns:[{columns:[ae,X,Z,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:O()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Dr,"auto",Z,X]}],basis:[{basis:[Hn,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,Hn,"auto","initial","none",X]}],grow:[{grow:["",ae,Z,X]}],shrink:[{shrink:["",ae,Z,X]}],order:[{order:[Dr,"first","last","none",Z,X]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...k(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...k()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[s,"screen",...K()]}],"min-w":[{"min-w":[s,"screen","none",...K()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,ko,ln]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Z,Tc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_c,X]}],"font-family":[{font:[Uk,X,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:[o,Z,X]}],"line-clamp":[{"line-clamp":[ae,"none",Z,Tc]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",Z,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",Z,ln]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ae,"auto",Z,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,X]}],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",Z,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Dr,Z,X],radial:["",Z,X],conic:[Dr,Z,X]},Gk,Kk]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,Z,X]}],"outline-w":[{outline:["",ae,ko,ln]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,ia,oa]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,ia,oa]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ae,ln]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,ia,oa]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ae,Z,X]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"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":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Z,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,X]}],filter:[{filter:["","none",Z,X]}],blur:[{blur:ue()}],brightness:[{brightness:[ae,Z,X]}],contrast:[{contrast:[ae,Z,X]}],"drop-shadow":[{"drop-shadow":["","none",v,ia,oa]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ae,Z,X]}],"hue-rotate":[{"hue-rotate":[ae,Z,X]}],invert:[{invert:["",ae,Z,X]}],saturate:[{saturate:[ae,Z,X]}],sepia:[{sepia:["",ae,Z,X]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,X]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[ae,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[ae,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,Z,X]}],"backdrop-invert":[{"backdrop-invert":["",ae,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[ae,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[ae,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,Z,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",Z,X]}],ease:[{ease:["linear","initial",b,Z,X]}],delay:[{delay:[ae,Z,X]}],animate:[{animate:["none",x,Z,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Z,X]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[Z,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"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",Z,X]}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",Z,X]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ae,ko,ln,Tc]}],stroke:[{stroke:["none",...T()]}],"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"]}},Xk=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Ko(e,"cacheSize",t),Ko(e,"prefix",r),Ko(e,"experimentalParseClassName",n),aa(e.theme,i.theme),aa(e.classGroups,i.classGroups),aa(e.conflictingClassGroups,i.conflictingClassGroups),aa(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Ko(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),sa(e.theme,o.theme),sa(e.classGroups,o.classGroups),sa(e.conflictingClassGroups,o.conflictingClassGroups),sa(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),P0(e,o,"orderSensitiveModifiers"),e),Ko=(e,t,r)=>{r!==void 0&&(e[t]=r)},aa=(e,t)=>{if(t)for(const r in t)Ko(e,r,t[r])},sa=(e,t)=>{if(t)for(const r in t)P0(e,t,r)},P0=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Zk=(e,...t)=>typeof e=="function"?Jm(th,e,...t):Jm(()=>Xk(th(),e),...t),Jk=Zk({extend:{classGroups:{"font-size":[{text:["hero","h1","h2","h3","h4","lead","semi-lead","body-lg","body","descriptive","small","label","label-sm"]}]}}});function R(...e){return Jk(de(e))}const S0=te("w-full",{variants:{variant:{default:"",bordered:"border-border rounded-lg border"}},defaultVariants:{variant:"default"}}),O0=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(HI,{ref:n,className:R(S0({variant:t}),e),...r}));O0.displayName="Accordion";const E0=f.forwardRef(({className:e,...t},r)=>y.jsx(GI,{ref:r,className:R("border-border border-b last:border-b-0",e),...t}));E0.displayName="AccordionItem";const C0=te(["flex flex-1 items-center justify-between py-4 text-left font-sans font-normal transition-all","text-primary hover:underline","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","[&[data-state=open]>svg]:rotate-180"],{variants:{size:{sm:"text-small py-3",default:"text-body py-4",lg:"text-lead py-5"}},defaultVariants:{size:"default"}}),A0=f.forwardRef(({className:e,children:t,size:r,...n},o)=>y.jsx(qI,{className:"flex",children:y.jsxs(YI,{ref:o,className:R(C0({size:r}),e),...n,children:[t,y.jsx(ok,{className:"text-secondary h-4 w-4 shrink-0 transition-transform duration-200"})]})}));A0.displayName="AccordionTrigger";const _0=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx(XI,{ref:n,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:y.jsx("div",{className:R("text-secondary pt-0 pb-4",e),children:t})}));_0.displayName="AccordionContent";function st(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>t.current?.(...r),[])}function Qk(e,t=globalThis?.document){const r=st(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var eR="DismissableLayer",Sd="dismissableLayer.update",tR="dismissableLayer.pointerDownOutside",rR="dismissableLayer.focusOutside",rh,T0=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$n=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=f.useContext(T0),[u,d]=f.useState(null),p=u?.ownerDocument??globalThis?.document,[,v]=f.useState({}),g=ie(t,E=>d(E)),m=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(h),x=u?m.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,O=oR(E=>{const C=E.target,N=[...c.branches].some(D=>D.contains(C));!P||N||(o?.(E),a?.(E),E.defaultPrevented||s?.())},p),S=iR(E=>{const C=E.target;[...c.branches].some(D=>D.contains(C))||(i?.(E),a?.(E),E.defaultPrevented||s?.())},p);return Qk(E=>{x===c.layers.size-1&&(n?.(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},p),f.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(rh=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),nh(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=rh)}},[u,p,r,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),nh())},[u,c]),f.useEffect(()=>{const E=()=>v({});return document.addEventListener(Sd,E),()=>document.removeEventListener(Sd,E)},[]),y.jsx(Q.div,{...l,ref:g,style:{pointerEvents:w?P?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,S.onFocusCapture),onBlurCapture:U(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,O.onPointerDownCapture)})});$n.displayName=eR;var nR="DismissableLayerBranch",j0=f.forwardRef((e,t)=>{const r=f.useContext(T0),n=f.useRef(null),o=ie(t,n);return f.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),y.jsx(Q.div,{...e,ref:o})});j0.displayName=nR;function oR(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let l=function(){N0(tR,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function iR(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!n.current&&N0(rR,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function nh(){const e=new CustomEvent(Sd);document.dispatchEvent(e)}function N0(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Uf(o,i):o.dispatchEvent(i)}var aR=$n,sR=j0,jc="focusScope.autoFocusOnMount",Nc="focusScope.autoFocusOnUnmount",oh={bubbles:!1,cancelable:!0},lR="FocusScope",wi=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=f.useState(null),c=st(o),u=st(i),d=f.useRef(null),p=ie(t,m=>l(m)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let m=function(w){if(v.paused||!s)return;const P=w.target;s.contains(P)?d.current=P:$r(d.current,{select:!0})},h=function(w){if(v.paused||!s)return;const P=w.relatedTarget;P!==null&&(s.contains(P)||$r(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const O of w)O.removedNodes.length>0&&$r(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",h);const x=new MutationObserver(b);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",h),x.disconnect()}}},[n,s,v.paused]),f.useEffect(()=>{if(s){ah.add(v);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(jc,oh);s.addEventListener(jc,c),s.dispatchEvent(b),b.defaultPrevented||(cR(vR(M0(s)),{select:!0}),document.activeElement===m&&$r(s))}return()=>{s.removeEventListener(jc,c),setTimeout(()=>{const b=new CustomEvent(Nc,oh);s.addEventListener(Nc,u),s.dispatchEvent(b),b.defaultPrevented||$r(m??document.body,{select:!0}),s.removeEventListener(Nc,u),ah.remove(v)},0)}}},[s,c,u,v]);const g=f.useCallback(m=>{if(!r&&!n||v.paused)return;const h=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(h&&b){const x=m.currentTarget,[w,P]=uR(x);w&&P?!m.shiftKey&&b===P?(m.preventDefault(),r&&$r(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&$r(P,{select:!0})):b===x&&m.preventDefault()}},[r,n,v.paused]);return y.jsx(Q.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});wi.displayName=lR;function cR(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if($r(n,{select:t}),document.activeElement!==r)return}function uR(e){const t=M0(e),r=ih(t,e),n=ih(t.reverse(),e);return[r,n]}function M0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ih(e,t){for(const r of e)if(!dR(r,{upTo:t}))return r}function dR(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 fR(e){return e instanceof HTMLInputElement&&"select"in e}function $r(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&fR(e)&&t&&e.select()}}var ah=pR();function pR(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=sh(e,t),e.unshift(t)},remove(t){e=sh(e,t),e[0]?.resume()}}}function sh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function vR(e){return e.filter(t=>t.tagName!=="A")}var mR="Portal",Ln=f.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=f.useState(!1);qe(()=>i(!0),[]);const a=r||o&&globalThis?.document?.body;return a?gi.createPortal(y.jsx(Q.div,{...n,ref:t}),a):null});Ln.displayName=mR;var Mc=0;function al(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??lh()),document.body.insertAdjacentElement("beforeend",e[1]??lh()),Mc++,()=>{Mc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mc--}},[])}function lh(){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 Jt=function(){return Jt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Jt.apply(this,arguments)};function I0(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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function hR(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Fa="right-scroll-bar-position",za="width-before-scroll-bar",gR="with-scroll-bars-hidden",yR="--removed-body-scroll-bar-size";function Ic(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bR(e,t){var r=A.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var xR=typeof window<"u"?f.useLayoutEffect:f.useEffect,ch=new WeakMap;function wR(e,t){var r=bR(null,function(n){return e.forEach(function(o){return Ic(o,n)})});return xR(function(){var n=ch.get(r);if(n){var o=new Set(n),i=new Set(e),a=r.current;o.forEach(function(s){i.has(s)||Ic(s,null)}),i.forEach(function(s){o.has(s)||Ic(s,a)})}ch.set(r,e)},[e]),r}function PR(e){return e}function SR(e,t){t===void 0&&(t=PR);var r=[],n=!1,o={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(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r}var l=function(){var u=a;a=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){a.push(u),c()},filter:function(u){return a=a.filter(u),r}}}};return o}function OR(e){e===void 0&&(e={});var t=SR(null);return t.options=Jt({async:!0,ssr:!1},e),t}var k0=function(e){var t=e.sideCar,r=I0(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 f.createElement(n,Jt({},r))};k0.isSideCarExport=!0;function ER(e,t){return e.useMedium(t),k0}var R0=OR(),kc=function(){},sl=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:kc,onWheelCapture:kc,onTouchMoveCapture:kc}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,m=e.inert,h=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,w=e.gapMode,P=I0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,S=wR([r,t]),E=Jt(Jt({},P),o);return f.createElement(f.Fragment,null,u&&f.createElement(O,{sideCar:R0,removeScrollBar:c,shards:d,noRelative:v,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:r,gapMode:w}),a?f.cloneElement(f.Children.only(s),Jt(Jt({},E),{ref:S})):f.createElement(x,Jt({},E,{className:l,ref:S}),s))});sl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sl.classNames={fullWidth:za,zeroRight:Fa};var CR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function AR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=CR();return t&&e.setAttribute("nonce",t),e}function _R(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function TR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=AR())&&(_R(t,r),TR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},NR=function(){var e=jR();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},D0=function(){var e=NR(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},MR={left:0,top:0,right:0,gap:0},Rc=function(e){return parseInt(e||"",10)||0},IR=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Rc(r),Rc(n),Rc(o)]},kR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return MR;var t=IR(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])}},RR=D0(),no="data-scroll-locked",DR=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
2
- .`.concat(gR,` {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),A=require("react"),gi=require("react-dom");function Vw(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 f=Vw(A),yi=Vw(gi);function cI(e,t){const r=f.createContext(t),n=i=>{const{children:a,...s}=i,l=f.useMemo(()=>s,Object.values(s));return y.jsx(r.Provider,{value:l,children:a})};n.displayName=e+"Provider";function o(i){const a=f.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function Xe(e,t=[]){let r=[];function n(i,a){const s=f.createContext(a),l=r.length;r=[...r,a];const c=d=>{const{scope:p,children:v,...g}=d,m=p?.[e]?.[l]||s,h=f.useMemo(()=>g,Object.values(g));return y.jsx(m.Provider,{value:h,children:v})};c.displayName=i+"Provider";function u(d,p){const v=p?.[e]?.[l]||s,g=f.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=r.map(a=>f.createContext(a));return function(s){const l=s?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[n,uI(o,...t)]}function uI(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Km(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cr(...e){return t=>{let r=!1;const n=e.map(o=>{const i=Km(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():Km(e[o],null)}}}}function ie(...e){return f.useCallback(cr(...e),e)}function Um(e){const t=dI(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(pI);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function dI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=mI(o),s=vI(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fI=Symbol("radix.slottable");function pI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fI}function vI(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function mI(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)}function bi(e){const t=e+"CollectionProvider",[r,n]=Xe(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:h,children:b}=m,x=A.useRef(null),w=A.useRef(new Map).current;return y.jsx(o,{scope:h,itemMap:w,collectionRef:x,children:b})};a.displayName=t;const s=e+"CollectionSlot",l=Um(s),c=A.forwardRef((m,h)=>{const{scope:b,children:x}=m,w=i(s,b),P=ie(h,w.collectionRef);return y.jsx(l,{ref:P,children:x})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=Um(u),v=A.forwardRef((m,h)=>{const{scope:b,children:x,...w}=m,P=A.useRef(null),O=ie(h,P),S=i(u,b);return A.useEffect(()=>(S.itemMap.set(P,{ref:P,...w}),()=>{S.itemMap.delete(P)})),y.jsx(p,{[d]:"",ref:O,children:x})});v.displayName=u;function g(m){const h=i(e+"CollectionConsumer",m);return A.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((S,E)=>w.indexOf(S.ref.current)-w.indexOf(E.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:c,ItemSlot:v},g,n]}function U(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var qe=globalThis?.document?f.useLayoutEffect:()=>{},hI=f[" useInsertionEffect ".trim().toString()]||qe;function at({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,a]=gI({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:o;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${n} is changing from ${d?"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.`),u.current=s},[s,n])}const c=f.useCallback(u=>{if(s){const d=yI(u)?u(e):u;d!==e&&a.current?.(d)}else i(u)},[s,e,i,a]);return[l,c]}function gI({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return hI(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function yI(e){return typeof e=="function"}function bI(e){const t=xI(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(PI);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function xI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=OI(o),s=SI(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wI=Symbol("radix.slottable");function PI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wI}function SI(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function OI(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 EI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=EI.reduce((e,t)=>{const r=bI(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Uf(e,t){e&&yi.flushSync(()=>e.dispatchEvent(t))}function CI(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var lt=e=>{const{present:t,children:r}=e,n=AI(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=ie(n.ref,_I(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};lt.displayName="Presence";function AI(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),a=e?"mounted":"unmounted",[s,l]=CI(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=na(n.current);i.current=s==="mounted"?c:"none"},[s]),qe(()=>{const c=n.current,u=o.current;if(u!==e){const p=i.current,v=na(c);e?l("MOUNT"):v==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),qe(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=v=>{const m=na(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&m&&(l("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=v=>{v.target===t&&(i.current=na(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function na(e){return e?.animationName||"none"}function _I(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 TI=f[" useId ".trim().toString()]||(()=>{}),jI=0;function vt(e){const[t,r]=f.useState(TI());return qe(()=>{r(n=>n??String(jI++))},[e]),e||(t?`radix-${t}`:"")}var tl="Collapsible",[NI,Ww]=Xe(tl),[MI,Hf]=NI(tl),Kw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,c]=at({prop:n,defaultProp:o??!1,onChange:a,caller:tl});return y.jsx(MI,{scope:r,disabled:i,contentId:vt(),open:l,onOpenToggle:f.useCallback(()=>c(u=>!u),[c]),children:y.jsx(Q.div,{"data-state":qf(l),"data-disabled":i?"":void 0,...s,ref:t})})});Kw.displayName=tl;var Uw="CollapsibleTrigger",Hw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Hf(Uw,r);return y.jsx(Q.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":qf(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:U(e.onClick,o.onOpenToggle)})});Hw.displayName=Uw;var Gf="CollapsibleContent",Gw=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Hf(Gf,e.__scopeCollapsible);return y.jsx(lt,{present:r||o.open,children:({present:i})=>y.jsx(II,{...n,ref:t,present:i})})});Gw.displayName=Gf;var II=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,a=Hf(Gf,r),[s,l]=f.useState(n),c=f.useRef(null),u=ie(t,c),d=f.useRef(0),p=d.current,v=f.useRef(0),g=v.current,m=a.open||s,h=f.useRef(m),b=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),qe(()=>{const x=c.current;if(x){b.current=b.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();d.current=w.height,v.current=w.width,h.current||(x.style.transitionDuration=b.current.transitionDuration,x.style.animationName=b.current.animationName),l(n)}},[a.open,n]),y.jsx(Q.div,{"data-state":qf(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...i,ref:u,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:m&&o})});function qf(e){return e?"open":"closed"}var kI=Kw,RI=Hw,DI=Gw,$I=f.createContext(void 0);function xi(e){const t=f.useContext($I);return e||t||"ltr"}var Ut="Accordion",LI=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Yf,FI,zI]=bi(Ut),[rl]=Xe(Ut,[zI,Ww]),Xf=Ww(),qw=A.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return y.jsx(Yf.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?y.jsx(KI,{...i,ref:t}):y.jsx(WI,{...o,ref:t})})});qw.displayName=Ut;var[Yw,BI]=rl(Ut),[Xw,VI]=rl(Ut,{collapsible:!1}),WI=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,l]=at({prop:r,defaultProp:n??"",onChange:o,caller:Ut});return y.jsx(Yw,{scope:e.__scopeAccordion,value:A.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:A.useCallback(()=>i&&l(""),[i,l]),children:y.jsx(Xw,{scope:e.__scopeAccordion,collapsible:i,children:y.jsx(Zw,{...a,ref:t})})})}),KI=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[a,s]=at({prop:r,defaultProp:n??[],onChange:o,caller:Ut}),l=A.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=A.useCallback(u=>s((d=[])=>d.filter(p=>p!==u)),[s]);return y.jsx(Yw,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:y.jsx(Xw,{scope:e.__scopeAccordion,collapsible:!0,children:y.jsx(Zw,{...i,ref:t})})})}),[UI,nl]=rl(Ut),Zw=A.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...a}=e,s=A.useRef(null),l=ie(s,t),c=FI(r),d=xi(o)==="ltr",p=U(e.onKeyDown,v=>{if(!LI.includes(v.key))return;const g=v.target,m=c().filter(C=>!C.ref.current?.disabled),h=m.findIndex(C=>C.ref.current===g),b=m.length;if(h===-1)return;v.preventDefault();let x=h;const w=0,P=b-1,O=()=>{x=h+1,x>P&&(x=w)},S=()=>{x=h-1,x<w&&(x=P)};switch(v.key){case"Home":x=w;break;case"End":x=P;break;case"ArrowRight":i==="horizontal"&&(d?O():S());break;case"ArrowDown":i==="vertical"&&O();break;case"ArrowLeft":i==="horizontal"&&(d?S():O());break;case"ArrowUp":i==="vertical"&&S();break}const E=x%b;m[E].ref.current?.focus()});return y.jsx(UI,{scope:r,disabled:n,direction:o,orientation:i,children:y.jsx(Yf.Slot,{scope:r,children:y.jsx(Q.div,{...a,"data-orientation":i,ref:l,onKeyDown:n?void 0:p})})})}),qa="AccordionItem",[HI,Zf]=rl(qa),Jw=A.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=nl(qa,r),a=BI(qa,r),s=Xf(r),l=vt(),c=n&&a.value.includes(n)||!1,u=i.disabled||e.disabled;return y.jsx(HI,{scope:r,open:c,disabled:u,triggerId:l,children:y.jsx(kI,{"data-orientation":i.orientation,"data-state":o0(c),...s,...o,ref:t,disabled:u,open:c,onOpenChange:d=>{d?a.onItemOpen(n):a.onItemClose(n)}})})});Jw.displayName=qa;var Qw="AccordionHeader",e0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=nl(Ut,r),i=Zf(Qw,r);return y.jsx(Q.h3,{"data-orientation":o.orientation,"data-state":o0(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});e0.displayName=Qw;var wd="AccordionTrigger",t0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=nl(Ut,r),i=Zf(wd,r),a=VI(wd,r),s=Xf(r);return y.jsx(Yf.ItemSlot,{scope:r,children:y.jsx(RI,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...n,ref:t})})});t0.displayName=wd;var r0="AccordionContent",n0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=nl(Ut,r),i=Zf(r0,r),a=Xf(r);return y.jsx(DI,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});n0.displayName=r0;function o0(e){return e?"open":"closed"}var GI=qw,qI=Jw,YI=e0,XI=t0,ZI=n0;function i0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=i0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function de(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=i0(e))&&(n&&(n+=" "),n+=t);return n}const Hm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gm=de,te=(e,t)=>r=>{var n;if(t?.variants==null)return Gm(e,r?.class,r?.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{const u=r?.[c],d=i?.[c];if(u===null)return null;const p=Hm(u)||Hm(d);return o[c][p]}),s=r&&Object.entries(r).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:p,...v}=u;return Object.entries(v).every(g=>{let[m,h]=g;return Array.isArray(h)?h.includes({...i,...s}[m]):{...i,...s}[m]===h})?[...c,d,p]:c},[]);return Gm(e,a,l,r?.class,r?.className)};const a0=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const JI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const QI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const qm=e=>{const t=QI(e);return t.charAt(0).toUpperCase()+t.slice(1)};var ek={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 tk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const rk=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},l)=>A.createElement("svg",{ref:l,...ek,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:a0("lucide",o),...!i&&!tk(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,u])=>A.createElement(c,u)),...Array.isArray(i)?i:[i]]));const Dn=(e,t)=>{const r=A.forwardRef(({className:n,...o},i)=>A.createElement(rk,{ref:i,iconNode:t,className:a0(`lucide-${JI(qm(e))}`,`lucide-${e}`,n),...o}));return r.displayName=qm(e),r};const nk=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],s0=Dn("calendar",nk);const ok=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ik=Dn("chevron-down",ok);const ak=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ol=Dn("chevron-left",ak);const sk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],il=Dn("chevron-right",sk);const lk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ck=Dn("clock",lk);const uk=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],l0=Dn("ellipsis",uk);const dk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],c0=Dn("x",dk),fk=(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},pk=(e,t)=>({classGroupId:e,validator:t}),u0=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ya="-",Ym=[],vk="arbitrary..",mk=e=>{const t=gk(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return hk(a);const s=a.split(Ya),l=s[0]===""&&s.length>1?1:0;return d0(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=n[a],c=r[a];return l?c?fk(c,l):l:c||Ym}return r[a]||Ym}}},d0=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=d0(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const s=t===0?e.join(Ya):e.slice(t).join(Ya),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(s))return u.classGroupId}},hk=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?vk+n:void 0})(),gk=e=>{const{theme:t,classGroups:r}=e;return yk(r,t)},yk=(e,t)=>{const r=u0();for(const n in e){const o=e[n];Jf(o,r,n,t)}return r},Jf=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];bk(a,t,r,n)}},bk=(e,t,r,n)=>{if(typeof e=="string"){xk(e,t,r);return}if(typeof e=="function"){wk(e,t,r,n);return}Pk(e,t,r,n)},xk=(e,t,r)=>{const n=e===""?t:f0(t,e);n.classGroupId=r},wk=(e,t,r,n)=>{if(Sk(e)){Jf(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(pk(r,e))},Pk=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];Jf(l,f0(t,s),r,n)}},f0=(e,t)=>{let r=e;const n=t.split(Ya),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=u0(),r.nextPart.set(a,s)),r=s}return r},Sk=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ok=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},Pd="!",Xm=":",Ek=[],Zm=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Ck=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,s=0,l=0,c;const u=o.length;for(let m=0;m<u;m++){const h=o[m];if(a===0&&s===0){if(h===Xm){i.push(o.slice(l,m)),l=m+1;continue}if(h==="/"){c=m;continue}}h==="["?a++:h==="]"?a--:h==="("?s++:h===")"&&s--}const d=i.length===0?o:o.slice(l);let p=d,v=!1;d.endsWith(Pd)?(p=d.slice(0,-1),v=!0):d.startsWith(Pd)&&(p=d.slice(1),v=!0);const g=c&&c>l?c-l:void 0;return Zm(i,v,p,g)};if(t){const o=t+Xm,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):Zm(Ek,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},Ak=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const a=r[i],s=a[0]==="[",l=t.has(a);s||l?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},_k=e=>({cache:Ok(e.cacheSize),parseClassName:Ck(e),sortModifiers:Ak(e),...mk(e)}),Tk=/\s+/,jk=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(Tk);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:p,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:m}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let h=!!m,b=n(h?g.substring(0,m):g);if(!b){if(!h){l=u+(l.length>0?" "+l:l);continue}if(b=n(g),!b){l=u+(l.length>0?" "+l:l);continue}h=!1}const x=p.length===0?"":p.length===1?p[0]:i(p).join(":"),w=v?x+Pd:x,P=w+b;if(a.indexOf(P)>-1)continue;a.push(P);const O=o(b,h);for(let S=0;S<O.length;++S){const E=O[S];a.push(w+E)}l=u+(l.length>0?" "+l:l)}return l},Nk=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=p0(r))&&(o&&(o+=" "),o+=n);return o},p0=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=p0(e[n]))&&(r&&(r+=" "),r+=t);return r},Jm=(e,...t)=>{let r,n,o,i;const a=l=>{const c=t.reduce((u,d)=>d(u),e());return r=_k(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{const c=n(l);if(c)return c;const u=jk(l,r);return o(l,u),u};return i=a,(...l)=>i(Nk(...l))},Mk=[],Fe=e=>{const t=r=>r[e]||Mk;return t.isThemeGetter=!0,t},v0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,m0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ik=/^\d+\/\d+$/,kk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rk=/\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$/,Dk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$k=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Hn=e=>Ik.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),Dr=e=>!!e&&Number.isInteger(Number(e)),_c=e=>e.endsWith("%")&&ae(e.slice(0,-1)),dr=e=>kk.test(e),Fk=()=>!0,zk=e=>Rk.test(e)&&!Dk.test(e),h0=()=>!1,Bk=e=>$k.test(e),Vk=e=>Lk.test(e),Wk=e=>!X(e)&&!Z(e),Kk=e=>bo(e,b0,h0),X=e=>v0.test(e),ln=e=>bo(e,x0,zk),Tc=e=>bo(e,Yk,ae),Qm=e=>bo(e,g0,h0),Uk=e=>bo(e,y0,Vk),oa=e=>bo(e,w0,Bk),Z=e=>m0.test(e),ko=e=>xo(e,x0),Hk=e=>xo(e,Xk),eh=e=>xo(e,g0),Gk=e=>xo(e,b0),qk=e=>xo(e,y0),ia=e=>xo(e,w0,!0),bo=(e,t,r)=>{const n=v0.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},xo=(e,t,r=!1)=>{const n=m0.exec(e);return n?n[1]?t(n[1]):r:!1},g0=e=>e==="position"||e==="percentage",y0=e=>e==="image"||e==="url",b0=e=>e==="length"||e==="size"||e==="bg-size",x0=e=>e==="length",Yk=e=>e==="number",Xk=e=>e==="family-name",w0=e=>e==="shadow",th=()=>{const e=Fe("color"),t=Fe("font"),r=Fe("text"),n=Fe("font-weight"),o=Fe("tracking"),i=Fe("leading"),a=Fe("breakpoint"),s=Fe("container"),l=Fe("spacing"),c=Fe("radius"),u=Fe("shadow"),d=Fe("inset-shadow"),p=Fe("text-shadow"),v=Fe("drop-shadow"),g=Fe("blur"),m=Fe("perspective"),h=Fe("aspect"),b=Fe("ease"),x=Fe("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),Z,X],S=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],C=()=>[Z,X,l],N=()=>[Hn,"full","auto",...C()],D=()=>[Dr,"none","subgrid",Z,X],$=()=>["auto",{span:["full",Dr,Z,X]},Dr,Z,X],_=()=>[Dr,"auto",Z,X],M=()=>["auto","min","max","fr",Z,X],k=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...C()],K=()=>[Hn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],T=()=>[e,Z,X],I=()=>[...P(),eh,Qm,{position:[Z,X]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",Gk,Kk,{size:[Z,X]}],re=()=>[_c,ko,ln],oe=()=>["","none","full",c,Z,X],ne=()=>["",ae,ko,ln],le=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[ae,_c,eh,Qm],ue=()=>["","none",g,Z,X],L=()=>["none",ae,Z,X],H=()=>["none",ae,Z,X],z=()=>[ae,Z,X],F=()=>[Hn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dr],breakpoint:[dr],color:[Fk],container:[dr],"drop-shadow":[dr],ease:["in","out","in-out"],font:[Wk],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dr],shadow:[dr],spacing:["px",ae],text:[dr],"text-shadow":[dr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Hn,X,Z,h]}],container:["container"],columns:[{columns:[ae,X,Z,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:O()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Dr,"auto",Z,X]}],basis:[{basis:[Hn,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,Hn,"auto","initial","none",X]}],grow:[{grow:["",ae,Z,X]}],shrink:[{shrink:["",ae,Z,X]}],order:[{order:[Dr,"first","last","none",Z,X]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...k(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...k()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[s,"screen",...K()]}],"min-w":[{"min-w":[s,"screen","none",...K()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,ko,ln]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Z,Tc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_c,X]}],"font-family":[{font:[Hk,X,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:[o,Z,X]}],"line-clamp":[{"line-clamp":[ae,"none",Z,Tc]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",Z,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",Z,ln]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ae,"auto",Z,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,X]}],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",Z,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Dr,Z,X],radial:["",Z,X],conic:[Dr,Z,X]},qk,Uk]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,Z,X]}],"outline-w":[{outline:["",ae,ko,ln]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,ia,oa]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,ia,oa]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ae,ln]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,ia,oa]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ae,Z,X]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"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":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Z,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,X]}],filter:[{filter:["","none",Z,X]}],blur:[{blur:ue()}],brightness:[{brightness:[ae,Z,X]}],contrast:[{contrast:[ae,Z,X]}],"drop-shadow":[{"drop-shadow":["","none",v,ia,oa]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ae,Z,X]}],"hue-rotate":[{"hue-rotate":[ae,Z,X]}],invert:[{invert:["",ae,Z,X]}],saturate:[{saturate:[ae,Z,X]}],sepia:[{sepia:["",ae,Z,X]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,X]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[ae,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[ae,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,Z,X]}],"backdrop-invert":[{"backdrop-invert":["",ae,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[ae,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[ae,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,Z,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",Z,X]}],ease:[{ease:["linear","initial",b,Z,X]}],delay:[{delay:[ae,Z,X]}],animate:[{animate:["none",x,Z,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Z,X]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[Z,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"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",Z,X]}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",Z,X]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ae,ko,ln,Tc]}],stroke:[{stroke:["none",...T()]}],"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"]}},Zk=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Ko(e,"cacheSize",t),Ko(e,"prefix",r),Ko(e,"experimentalParseClassName",n),aa(e.theme,i.theme),aa(e.classGroups,i.classGroups),aa(e.conflictingClassGroups,i.conflictingClassGroups),aa(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Ko(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),sa(e.theme,o.theme),sa(e.classGroups,o.classGroups),sa(e.conflictingClassGroups,o.conflictingClassGroups),sa(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),P0(e,o,"orderSensitiveModifiers"),e),Ko=(e,t,r)=>{r!==void 0&&(e[t]=r)},aa=(e,t)=>{if(t)for(const r in t)Ko(e,r,t[r])},sa=(e,t)=>{if(t)for(const r in t)P0(e,t,r)},P0=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Jk=(e,...t)=>typeof e=="function"?Jm(th,e,...t):Jm(()=>Zk(th(),e),...t),Qk=Jk({extend:{classGroups:{"font-size":[{text:["hero","h1","h2","h3","h4","lead","semi-lead","body-lg","body","descriptive","small","label","label-sm"]}]}}});function R(...e){return Qk(de(e))}const S0=te("w-full",{variants:{variant:{default:"",bordered:"border-border rounded-lg border"}},defaultVariants:{variant:"default"}}),O0=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(GI,{ref:n,className:R(S0({variant:t}),e),...r}));O0.displayName="Accordion";const E0=f.forwardRef(({className:e,...t},r)=>y.jsx(qI,{ref:r,className:R("border-border border-b last:border-b-0",e),...t}));E0.displayName="AccordionItem";const C0=te(["flex flex-1 items-center justify-between py-4 text-left font-sans font-normal transition-all","text-primary hover:underline","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","[&[data-state=open]>svg]:rotate-180"],{variants:{size:{sm:"text-small py-3",default:"text-body py-4",lg:"text-lead py-5"}},defaultVariants:{size:"default"}}),A0=f.forwardRef(({className:e,children:t,size:r,...n},o)=>y.jsx(YI,{className:"flex",children:y.jsxs(XI,{ref:o,className:R(C0({size:r}),e),...n,children:[t,y.jsx(ik,{className:"text-secondary h-4 w-4 shrink-0 transition-transform duration-200"})]})}));A0.displayName="AccordionTrigger";const _0=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx(ZI,{ref:n,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:y.jsx("div",{className:R("text-secondary pt-0 pb-4",e),children:t})}));_0.displayName="AccordionContent";function st(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>t.current?.(...r),[])}function eR(e,t=globalThis?.document){const r=st(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var tR="DismissableLayer",Sd="dismissableLayer.update",rR="dismissableLayer.pointerDownOutside",nR="dismissableLayer.focusOutside",rh,T0=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$n=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=f.useContext(T0),[u,d]=f.useState(null),p=u?.ownerDocument??globalThis?.document,[,v]=f.useState({}),g=ie(t,E=>d(E)),m=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(h),x=u?m.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,P=x>=b,O=iR(E=>{const C=E.target,N=[...c.branches].some(D=>D.contains(C));!P||N||(o?.(E),a?.(E),E.defaultPrevented||s?.())},p),S=aR(E=>{const C=E.target;[...c.branches].some(D=>D.contains(C))||(i?.(E),a?.(E),E.defaultPrevented||s?.())},p);return eR(E=>{x===c.layers.size-1&&(n?.(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},p),f.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(rh=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),nh(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=rh)}},[u,p,r,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),nh())},[u,c]),f.useEffect(()=>{const E=()=>v({});return document.addEventListener(Sd,E),()=>document.removeEventListener(Sd,E)},[]),y.jsx(Q.div,{...l,ref:g,style:{pointerEvents:w?P?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,S.onFocusCapture),onBlurCapture:U(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,O.onPointerDownCapture)})});$n.displayName=tR;var oR="DismissableLayerBranch",j0=f.forwardRef((e,t)=>{const r=f.useContext(T0),n=f.useRef(null),o=ie(t,n);return f.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),y.jsx(Q.div,{...e,ref:o})});j0.displayName=oR;function iR(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let l=function(){N0(rR,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function aR(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!n.current&&N0(nR,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function nh(){const e=new CustomEvent(Sd);document.dispatchEvent(e)}function N0(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Uf(o,i):o.dispatchEvent(i)}var sR=$n,lR=j0,jc="focusScope.autoFocusOnMount",Nc="focusScope.autoFocusOnUnmount",oh={bubbles:!1,cancelable:!0},cR="FocusScope",wi=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=f.useState(null),c=st(o),u=st(i),d=f.useRef(null),p=ie(t,m=>l(m)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let m=function(w){if(v.paused||!s)return;const P=w.target;s.contains(P)?d.current=P:$r(d.current,{select:!0})},h=function(w){if(v.paused||!s)return;const P=w.relatedTarget;P!==null&&(s.contains(P)||$r(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const O of w)O.removedNodes.length>0&&$r(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",h);const x=new MutationObserver(b);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",h),x.disconnect()}}},[n,s,v.paused]),f.useEffect(()=>{if(s){ah.add(v);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(jc,oh);s.addEventListener(jc,c),s.dispatchEvent(b),b.defaultPrevented||(uR(mR(M0(s)),{select:!0}),document.activeElement===m&&$r(s))}return()=>{s.removeEventListener(jc,c),setTimeout(()=>{const b=new CustomEvent(Nc,oh);s.addEventListener(Nc,u),s.dispatchEvent(b),b.defaultPrevented||$r(m??document.body,{select:!0}),s.removeEventListener(Nc,u),ah.remove(v)},0)}}},[s,c,u,v]);const g=f.useCallback(m=>{if(!r&&!n||v.paused)return;const h=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(h&&b){const x=m.currentTarget,[w,P]=dR(x);w&&P?!m.shiftKey&&b===P?(m.preventDefault(),r&&$r(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&$r(P,{select:!0})):b===x&&m.preventDefault()}},[r,n,v.paused]);return y.jsx(Q.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});wi.displayName=cR;function uR(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if($r(n,{select:t}),document.activeElement!==r)return}function dR(e){const t=M0(e),r=ih(t,e),n=ih(t.reverse(),e);return[r,n]}function M0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ih(e,t){for(const r of e)if(!fR(r,{upTo:t}))return r}function fR(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 pR(e){return e instanceof HTMLInputElement&&"select"in e}function $r(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&pR(e)&&t&&e.select()}}var ah=vR();function vR(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=sh(e,t),e.unshift(t)},remove(t){e=sh(e,t),e[0]?.resume()}}}function sh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function mR(e){return e.filter(t=>t.tagName!=="A")}var hR="Portal",Ln=f.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=f.useState(!1);qe(()=>i(!0),[]);const a=r||o&&globalThis?.document?.body;return a?gi.createPortal(y.jsx(Q.div,{...n,ref:t}),a):null});Ln.displayName=hR;var Mc=0;function al(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??lh()),document.body.insertAdjacentElement("beforeend",e[1]??lh()),Mc++,()=>{Mc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mc--}},[])}function lh(){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 Jt=function(){return Jt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Jt.apply(this,arguments)};function I0(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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function gR(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Fa="right-scroll-bar-position",za="width-before-scroll-bar",yR="with-scroll-bars-hidden",bR="--removed-body-scroll-bar-size";function Ic(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xR(e,t){var r=A.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var wR=typeof window<"u"?f.useLayoutEffect:f.useEffect,ch=new WeakMap;function PR(e,t){var r=xR(null,function(n){return e.forEach(function(o){return Ic(o,n)})});return wR(function(){var n=ch.get(r);if(n){var o=new Set(n),i=new Set(e),a=r.current;o.forEach(function(s){i.has(s)||Ic(s,null)}),i.forEach(function(s){o.has(s)||Ic(s,a)})}ch.set(r,e)},[e]),r}function SR(e){return e}function OR(e,t){t===void 0&&(t=SR);var r=[],n=!1,o={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(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r}var l=function(){var u=a;a=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){a.push(u),c()},filter:function(u){return a=a.filter(u),r}}}};return o}function ER(e){e===void 0&&(e={});var t=OR(null);return t.options=Jt({async:!0,ssr:!1},e),t}var k0=function(e){var t=e.sideCar,r=I0(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 f.createElement(n,Jt({},r))};k0.isSideCarExport=!0;function CR(e,t){return e.useMedium(t),k0}var R0=ER(),kc=function(){},sl=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:kc,onWheelCapture:kc,onTouchMoveCapture:kc}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,m=e.inert,h=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,w=e.gapMode,P=I0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,S=PR([r,t]),E=Jt(Jt({},P),o);return f.createElement(f.Fragment,null,u&&f.createElement(O,{sideCar:R0,removeScrollBar:c,shards:d,noRelative:v,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:r,gapMode:w}),a?f.cloneElement(f.Children.only(s),Jt(Jt({},E),{ref:S})):f.createElement(x,Jt({},E,{className:l,ref:S}),s))});sl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sl.classNames={fullWidth:za,zeroRight:Fa};var AR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _R(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=AR();return t&&e.setAttribute("nonce",t),e}function TR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var NR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=_R())&&(TR(t,r),jR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},MR=function(){var e=NR();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},D0=function(){var e=MR(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},IR={left:0,top:0,right:0,gap:0},Rc=function(e){return parseInt(e||"",10)||0},kR=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Rc(r),Rc(n),Rc(o)]},RR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return IR;var t=kR(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])}},DR=D0(),no="data-scroll-locked",$R=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
2
+ .`.concat(yR,` {
3
3
  overflow: hidden `).concat(n,`;
4
4
  padding-right: `).concat(s,"px ").concat(n,`;
5
5
  }
@@ -33,42 +33,42 @@
33
33
  }
34
34
 
35
35
  body[`).concat(no,`] {
36
- `).concat(yR,": ").concat(s,`px;
36
+ `).concat(bR,": ").concat(s,`px;
37
37
  }
38
- `)},uh=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},$R=function(){f.useEffect(function(){return document.body.setAttribute(no,(uh()+1).toString()),function(){var e=uh()-1;e<=0?document.body.removeAttribute(no):document.body.setAttribute(no,e.toString())}},[])},LR=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;$R();var i=f.useMemo(function(){return kR(o)},[o]);return f.createElement(RR,{styles:DR(i,!t,o,r?"":"!important")})},Od=!1;if(typeof window<"u")try{var la=Object.defineProperty({},"passive",{get:function(){return Od=!0,!0}});window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{Od=!1}var Gn=Od?{passive:!1}:!1,FR=function(e){return e.tagName==="TEXTAREA"},$0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!FR(e)&&r[t]==="visible")},zR=function(e){return $0(e,"overflowY")},BR=function(e){return $0(e,"overflowX")},dh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=L0(e,n);if(o){var i=F0(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},VR=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},WR=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},L0=function(e,t){return e==="v"?zR(t):BR(t)},F0=function(e,t){return e==="v"?VR(t):WR(t)},KR=function(e,t){return e==="h"&&t==="rtl"?-1:1},UR=function(e,t,r,n,o){var i=KR(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),c=!1,u=a>0,d=0,p=0;do{if(!s)break;var v=F0(e,s),g=v[0],m=v[1],h=v[2],b=m-h-i*g;(g||b)&&L0(e,s)&&(d+=b,p+=g);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&Math.abs(d)<1||!u&&Math.abs(p)<1)&&(c=!0),c},ca=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fh=function(e){return[e.deltaX,e.deltaY]},ph=function(e){return e&&"current"in e?e.current:e},HR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GR=function(e){return`
38
+ `)},uh=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},LR=function(){f.useEffect(function(){return document.body.setAttribute(no,(uh()+1).toString()),function(){var e=uh()-1;e<=0?document.body.removeAttribute(no):document.body.setAttribute(no,e.toString())}},[])},FR=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;LR();var i=f.useMemo(function(){return RR(o)},[o]);return f.createElement(DR,{styles:$R(i,!t,o,r?"":"!important")})},Od=!1;if(typeof window<"u")try{var la=Object.defineProperty({},"passive",{get:function(){return Od=!0,!0}});window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{Od=!1}var Gn=Od?{passive:!1}:!1,zR=function(e){return e.tagName==="TEXTAREA"},$0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!zR(e)&&r[t]==="visible")},BR=function(e){return $0(e,"overflowY")},VR=function(e){return $0(e,"overflowX")},dh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=L0(e,n);if(o){var i=F0(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},WR=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},KR=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},L0=function(e,t){return e==="v"?BR(t):VR(t)},F0=function(e,t){return e==="v"?WR(t):KR(t)},UR=function(e,t){return e==="h"&&t==="rtl"?-1:1},HR=function(e,t,r,n,o){var i=UR(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),c=!1,u=a>0,d=0,p=0;do{if(!s)break;var v=F0(e,s),g=v[0],m=v[1],h=v[2],b=m-h-i*g;(g||b)&&L0(e,s)&&(d+=b,p+=g);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&Math.abs(d)<1||!u&&Math.abs(p)<1)&&(c=!0),c},ca=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fh=function(e){return[e.deltaX,e.deltaY]},ph=function(e){return e&&"current"in e?e.current:e},GR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qR=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},qR=0,qn=[];function YR(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(qR++)[0],i=f.useState(D0)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=hR([e.lockRef.current],(e.shards||[]).map(ph),!0).filter(Boolean);return m.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(m,h){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var b=ca(m),x=r.current,w="deltaX"in m?m.deltaX:x[0]-b[0],P="deltaY"in m?m.deltaY:x[1]-b[1],O,S=m.target,E=Math.abs(w)>Math.abs(P)?"h":"v";if("touches"in m&&E==="h"&&S.type==="range")return!1;var C=window.getSelection(),N=C&&C.anchorNode,D=N?N===S||N.contains(S):!1;if(D)return!1;var $=dh(E,S);if(!$)return!0;if($?O=E:(O=E==="v"?"h":"v",$=dh(E,S)),!$)return!1;if(!n.current&&"changedTouches"in m&&(w||P)&&(n.current=O),!O)return!0;var _=n.current||O;return UR(_,h,m,_==="h"?w:P)},[]),l=f.useCallback(function(m){var h=m;if(!(!qn.length||qn[qn.length-1]!==i)){var b="deltaY"in h?fh(h):ca(h),x=t.current.filter(function(O){return O.name===h.type&&(O.target===h.target||h.target===O.shadowParent)&&HR(O.delta,b)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(ph).filter(Boolean).filter(function(O){return O.contains(h.target)}),P=w.length>0?s(h,w[0]):!a.current.noIsolation;P&&h.cancelable&&h.preventDefault()}}},[]),c=f.useCallback(function(m,h,b,x){var w={name:m,delta:h,target:b,should:x,shadowParent:XR(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(P){return P!==w})},1)},[]),u=f.useCallback(function(m){r.current=ca(m),n.current=void 0},[]),d=f.useCallback(function(m){c(m.type,fh(m),m.target,s(m,e.lockRef.current))},[]),p=f.useCallback(function(m){c(m.type,ca(m),m.target,s(m,e.lockRef.current))},[]);f.useEffect(function(){return qn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Gn),document.addEventListener("touchmove",l,Gn),document.addEventListener("touchstart",u,Gn),function(){qn=qn.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Gn),document.removeEventListener("touchmove",l,Gn),document.removeEventListener("touchstart",u,Gn)}},[]);var v=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(i,{styles:GR(o)}):null,v?f.createElement(LR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function XR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ZR=ER(R0,YR);var Pi=f.forwardRef(function(e,t){return f.createElement(sl,Jt({},e,{ref:t,sideCar:ZR}))});Pi.classNames=sl.classNames;var JR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yn=new WeakMap,ua=new WeakMap,da={},Dc=0,z0=function(e){return e&&(e.host||z0(e.parentNode))},QR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=z0(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})},eD=function(e,t,r,n){var o=QR(t,Array.isArray(e)?e:[e]);da[r]||(da[r]=new WeakMap);var i=da[r],a=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))u(p);else try{var v=p.getAttribute(n),g=v!==null&&v!=="false",m=(Yn.get(p)||0)+1,h=(i.get(p)||0)+1;Yn.set(p,m),i.set(p,h),a.push(p),m===1&&g&&ua.set(p,!0),h===1&&p.setAttribute(r,"true"),g||p.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return u(t),s.clear(),Dc++,function(){a.forEach(function(d){var p=Yn.get(d)-1,v=i.get(d)-1;Yn.set(d,p),i.set(d,v),p||(ua.has(d)||d.removeAttribute(n),ua.delete(d)),v||d.removeAttribute(r)}),Dc--,Dc||(Yn=new WeakMap,Yn=new WeakMap,ua=new WeakMap,da={})}},ll=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=JR(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),eD(n,o,r,"aria-hidden")):function(){return null}};function tD(e){const t=rD(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(oD);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function rD(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=aD(o),s=iD(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nD=Symbol("radix.slottable");function oD(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nD}function iD(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function aD(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 cl="Dialog",[B0,V0]=Xe(cl),[sD,Ht]=B0(cl),W0=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=f.useRef(null),l=f.useRef(null),[c,u]=at({prop:n,defaultProp:o??!1,onChange:i,caller:cl});return y.jsx(sD,{scope:t,triggerRef:s,contentRef:l,contentId:vt(),titleId:vt(),descriptionId:vt(),open:c,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(d=>!d),[u]),modal:a,children:r})};W0.displayName=cl;var K0="DialogTrigger",U0=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(K0,r),i=ie(t,o.triggerRef);return y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tp(o.open),...n,ref:i,onClick:U(e.onClick,o.onOpenToggle)})});U0.displayName=K0;var Qf="DialogPortal",[lD,H0]=B0(Qf,{forceMount:void 0}),G0=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Ht(Qf,t);return y.jsx(lD,{scope:t,forceMount:r,children:f.Children.map(n,a=>y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:a})}))})};G0.displayName=Qf;var Xa="DialogOverlay",q0=f.forwardRef((e,t)=>{const r=H0(Xa,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(Xa,e.__scopeDialog);return i.modal?y.jsx(lt,{present:n||i.open,children:y.jsx(uD,{...o,ref:t})}):null});q0.displayName=Xa;var cD=tD("DialogOverlay.RemoveScroll"),uD=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(Xa,r);return y.jsx(Pi,{as:cD,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Q.div,{"data-state":tp(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Sn="DialogContent",Y0=f.forwardRef((e,t)=>{const r=H0(Sn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(Sn,e.__scopeDialog);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(dD,{...o,ref:t}):y.jsx(fD,{...o,ref:t})})});Y0.displayName=Sn;var dD=f.forwardRef((e,t)=>{const r=Ht(Sn,e.__scopeDialog),n=f.useRef(null),o=ie(t,r.contentRef,n);return f.useEffect(()=>{const i=n.current;if(i)return ll(i)},[]),y.jsx(X0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault())})}),fD=f.forwardRef((e,t)=>{const r=Ht(Sn,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(X0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;r.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),X0=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Ht(Sn,r),l=f.useRef(null),c=ie(t,l);return al(),y.jsxs(y.Fragment,{children:[y.jsx(wi,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx($n,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":tp(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(vD,{titleId:s.titleId}),y.jsx(hD,{contentRef:l,descriptionId:s.descriptionId})]})]})}),ep="DialogTitle",Z0=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(ep,r);return y.jsx(Q.h2,{id:o.titleId,...n,ref:t})});Z0.displayName=ep;var J0="DialogDescription",Q0=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(J0,r);return y.jsx(Q.p,{id:o.descriptionId,...n,ref:t})});Q0.displayName=J0;var eP="DialogClose",tP=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(eP,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});tP.displayName=eP;function tp(e){return e?"open":"closed"}var rP="DialogTitleWarning",[pD,nP]=lI(rP,{contentName:Sn,titleName:ep,docsSlug:"dialog"}),vD=({titleId:e})=>{const t=nP(rP),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},YR=0,qn=[];function XR(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(YR++)[0],i=f.useState(D0)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=gR([e.lockRef.current],(e.shards||[]).map(ph),!0).filter(Boolean);return m.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(m,h){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var b=ca(m),x=r.current,w="deltaX"in m?m.deltaX:x[0]-b[0],P="deltaY"in m?m.deltaY:x[1]-b[1],O,S=m.target,E=Math.abs(w)>Math.abs(P)?"h":"v";if("touches"in m&&E==="h"&&S.type==="range")return!1;var C=window.getSelection(),N=C&&C.anchorNode,D=N?N===S||N.contains(S):!1;if(D)return!1;var $=dh(E,S);if(!$)return!0;if($?O=E:(O=E==="v"?"h":"v",$=dh(E,S)),!$)return!1;if(!n.current&&"changedTouches"in m&&(w||P)&&(n.current=O),!O)return!0;var _=n.current||O;return HR(_,h,m,_==="h"?w:P)},[]),l=f.useCallback(function(m){var h=m;if(!(!qn.length||qn[qn.length-1]!==i)){var b="deltaY"in h?fh(h):ca(h),x=t.current.filter(function(O){return O.name===h.type&&(O.target===h.target||h.target===O.shadowParent)&&GR(O.delta,b)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(ph).filter(Boolean).filter(function(O){return O.contains(h.target)}),P=w.length>0?s(h,w[0]):!a.current.noIsolation;P&&h.cancelable&&h.preventDefault()}}},[]),c=f.useCallback(function(m,h,b,x){var w={name:m,delta:h,target:b,should:x,shadowParent:ZR(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(P){return P!==w})},1)},[]),u=f.useCallback(function(m){r.current=ca(m),n.current=void 0},[]),d=f.useCallback(function(m){c(m.type,fh(m),m.target,s(m,e.lockRef.current))},[]),p=f.useCallback(function(m){c(m.type,ca(m),m.target,s(m,e.lockRef.current))},[]);f.useEffect(function(){return qn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Gn),document.addEventListener("touchmove",l,Gn),document.addEventListener("touchstart",u,Gn),function(){qn=qn.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Gn),document.removeEventListener("touchmove",l,Gn),document.removeEventListener("touchstart",u,Gn)}},[]);var v=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(i,{styles:qR(o)}):null,v?f.createElement(FR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const JR=CR(R0,XR);var Pi=f.forwardRef(function(e,t){return f.createElement(sl,Jt({},e,{ref:t,sideCar:JR}))});Pi.classNames=sl.classNames;var QR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yn=new WeakMap,ua=new WeakMap,da={},Dc=0,z0=function(e){return e&&(e.host||z0(e.parentNode))},eD=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=z0(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})},tD=function(e,t,r,n){var o=eD(t,Array.isArray(e)?e:[e]);da[r]||(da[r]=new WeakMap);var i=da[r],a=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))u(p);else try{var v=p.getAttribute(n),g=v!==null&&v!=="false",m=(Yn.get(p)||0)+1,h=(i.get(p)||0)+1;Yn.set(p,m),i.set(p,h),a.push(p),m===1&&g&&ua.set(p,!0),h===1&&p.setAttribute(r,"true"),g||p.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return u(t),s.clear(),Dc++,function(){a.forEach(function(d){var p=Yn.get(d)-1,v=i.get(d)-1;Yn.set(d,p),i.set(d,v),p||(ua.has(d)||d.removeAttribute(n),ua.delete(d)),v||d.removeAttribute(r)}),Dc--,Dc||(Yn=new WeakMap,Yn=new WeakMap,ua=new WeakMap,da={})}},ll=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=QR(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),tD(n,o,r,"aria-hidden")):function(){return null}};function rD(e){const t=nD(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(iD);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function nD(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=sD(o),s=aD(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var oD=Symbol("radix.slottable");function iD(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===oD}function aD(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function sD(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 cl="Dialog",[B0,V0]=Xe(cl),[lD,Ht]=B0(cl),W0=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=f.useRef(null),l=f.useRef(null),[c,u]=at({prop:n,defaultProp:o??!1,onChange:i,caller:cl});return y.jsx(lD,{scope:t,triggerRef:s,contentRef:l,contentId:vt(),titleId:vt(),descriptionId:vt(),open:c,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(d=>!d),[u]),modal:a,children:r})};W0.displayName=cl;var K0="DialogTrigger",U0=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(K0,r),i=ie(t,o.triggerRef);return y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tp(o.open),...n,ref:i,onClick:U(e.onClick,o.onOpenToggle)})});U0.displayName=K0;var Qf="DialogPortal",[cD,H0]=B0(Qf,{forceMount:void 0}),G0=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Ht(Qf,t);return y.jsx(cD,{scope:t,forceMount:r,children:f.Children.map(n,a=>y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:a})}))})};G0.displayName=Qf;var Xa="DialogOverlay",q0=f.forwardRef((e,t)=>{const r=H0(Xa,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(Xa,e.__scopeDialog);return i.modal?y.jsx(lt,{present:n||i.open,children:y.jsx(dD,{...o,ref:t})}):null});q0.displayName=Xa;var uD=rD("DialogOverlay.RemoveScroll"),dD=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(Xa,r);return y.jsx(Pi,{as:uD,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Q.div,{"data-state":tp(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Sn="DialogContent",Y0=f.forwardRef((e,t)=>{const r=H0(Sn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(Sn,e.__scopeDialog);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(fD,{...o,ref:t}):y.jsx(pD,{...o,ref:t})})});Y0.displayName=Sn;var fD=f.forwardRef((e,t)=>{const r=Ht(Sn,e.__scopeDialog),n=f.useRef(null),o=ie(t,r.contentRef,n);return f.useEffect(()=>{const i=n.current;if(i)return ll(i)},[]),y.jsx(X0,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault())})}),pD=f.forwardRef((e,t)=>{const r=Ht(Sn,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(X0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;r.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),X0=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Ht(Sn,r),l=f.useRef(null),c=ie(t,l);return al(),y.jsxs(y.Fragment,{children:[y.jsx(wi,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx($n,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":tp(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(mD,{titleId:s.titleId}),y.jsx(gD,{contentRef:l,descriptionId:s.descriptionId})]})]})}),ep="DialogTitle",Z0=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(ep,r);return y.jsx(Q.h2,{id:o.titleId,...n,ref:t})});Z0.displayName=ep;var J0="DialogDescription",Q0=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(J0,r);return y.jsx(Q.p,{id:o.descriptionId,...n,ref:t})});Q0.displayName=J0;var eP="DialogClose",tP=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(eP,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});tP.displayName=eP;function tp(e){return e?"open":"closed"}var rP="DialogTitleWarning",[vD,nP]=cI(rP,{contentName:Sn,titleName:ep,docsSlug:"dialog"}),mD=({titleId:e})=>{const t=nP(rP),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
42
 
43
43
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
44
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},mD="DialogDescriptionWarning",hD=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nP(mD).contentName}}.`;return f.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},oP=W0,iP=U0,aP=G0,sP=q0,lP=Y0,cP=Z0,uP=Q0,ul=tP,gD=Symbol("radix.slottable");function yD(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=gD,t}var dP="AlertDialog",[bD]=Xe(dP,[V0]),Ar=V0(),fP=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ar(t);return y.jsx(oP,{...n,...r,modal:!0})};fP.displayName=dP;var xD="AlertDialogTrigger",pP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(iP,{...o,...n,ref:t})});pP.displayName=xD;var wD="AlertDialogPortal",vP=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ar(t);return y.jsx(aP,{...n,...r})};vP.displayName=wD;var PD="AlertDialogOverlay",mP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(sP,{...o,...n,ref:t})});mP.displayName=PD;var oo="AlertDialogContent",[SD,OD]=bD(oo),ED=yD("AlertDialogContent"),hP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=Ar(r),a=f.useRef(null),s=ie(t,a),l=f.useRef(null);return y.jsx(pD,{contentName:oo,titleName:gP,docsSlug:"alert-dialog",children:y.jsx(SD,{scope:r,cancelRef:l,children:y.jsxs(lP,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:U(o.onOpenAutoFocus,c=>{c.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[y.jsx(ED,{children:n}),y.jsx(AD,{contentRef:a})]})})})});hP.displayName=oo;var gP="AlertDialogTitle",yP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(cP,{...o,...n,ref:t})});yP.displayName=gP;var bP="AlertDialogDescription",xP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(uP,{...o,...n,ref:t})});xP.displayName=bP;var CD="AlertDialogAction",wP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(ul,{...o,...n,ref:t})});wP.displayName=CD;var PP="AlertDialogCancel",SP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=OD(PP,r),i=Ar(r),a=ie(t,o);return y.jsx(ul,{...i,...n,ref:a})});SP.displayName=PP;var AD=({contentRef:e})=>{const t=`\`${oo}\` requires a description for the component to be accessible for screen reader users.
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},hD="DialogDescriptionWarning",gD=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nP(hD).contentName}}.`;return f.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},oP=W0,iP=U0,aP=G0,sP=q0,lP=Y0,cP=Z0,uP=Q0,ul=tP,yD=Symbol("radix.slottable");function bD(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=yD,t}var dP="AlertDialog",[xD]=Xe(dP,[V0]),Ar=V0(),fP=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ar(t);return y.jsx(oP,{...n,...r,modal:!0})};fP.displayName=dP;var wD="AlertDialogTrigger",pP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(iP,{...o,...n,ref:t})});pP.displayName=wD;var PD="AlertDialogPortal",vP=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ar(t);return y.jsx(aP,{...n,...r})};vP.displayName=PD;var SD="AlertDialogOverlay",mP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(sP,{...o,...n,ref:t})});mP.displayName=SD;var oo="AlertDialogContent",[OD,ED]=xD(oo),CD=bD("AlertDialogContent"),hP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=Ar(r),a=f.useRef(null),s=ie(t,a),l=f.useRef(null);return y.jsx(vD,{contentName:oo,titleName:gP,docsSlug:"alert-dialog",children:y.jsx(OD,{scope:r,cancelRef:l,children:y.jsxs(lP,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:U(o.onOpenAutoFocus,c=>{c.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[y.jsx(CD,{children:n}),y.jsx(_D,{contentRef:a})]})})})});hP.displayName=oo;var gP="AlertDialogTitle",yP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(cP,{...o,...n,ref:t})});yP.displayName=gP;var bP="AlertDialogDescription",xP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(uP,{...o,...n,ref:t})});xP.displayName=bP;var AD="AlertDialogAction",wP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(ul,{...o,...n,ref:t})});wP.displayName=AD;var PP="AlertDialogCancel",SP=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=ED(PP,r),i=Ar(r),a=ie(t,o);return y.jsx(ul,{...i,...n,ref:a})});SP.displayName=PP;var _D=({contentRef:e})=>{const t=`\`${oo}\` requires a description for the component to be accessible for screen reader users.
46
46
 
47
47
  You can add a description to the \`${oo}\` by passing a \`${bP}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
48
48
 
49
49
  Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${oo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
50
50
 
51
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},_D=fP,TD=pP,jD=vP,ND=mP,MD=hP,ID=wP,kD=SP,RD=yP,DD=xP,$D=Symbol.for("react.lazy"),Za=f[" use ".trim().toString()];function LD(e){return typeof e=="object"&&e!==null&&"then"in e}function OP(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===$D&&"_payload"in e&&LD(e._payload)}function EP(e){const t=FD(e),r=f.forwardRef((n,o)=>{let{children:i,...a}=n;OP(i)&&typeof Za=="function"&&(i=Za(i._payload));const s=f.Children.toArray(i),l=s.find(BD);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Oe=EP("Slot");function FD(e){const t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(OP(o)&&typeof Za=="function"&&(o=Za(o._payload)),f.isValidElement(o)){const a=WD(o),s=VD(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zD=Symbol("radix.slottable");function BD(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zD}function VD(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function WD(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 dl=te("text-body focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-sunflower text-primary hover:bg-sunflower-hover active:bg-sunflower-hover",secondary:"border-border bg-border text-primary active:bg-alt border hover:bg-white",ghost:"text-primary hover:bg-alt active:bg-contrast"},size:{sm:"rounded-pill text-small px-5 py-1",default:"rounded-pill text-small px-8 py-1.5",lg:"rounded-pill text-body px-12 py-2",icon:"h-10 w-10 rounded-full"}},defaultVariants:{variant:"primary",size:"default"}}),CP=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"button";return y.jsx(a,{className:R(dl({variant:t,size:r,className:e})),ref:i,...o})});CP.displayName="Button";const KD=_D,UD=TD,AP=jD,rp=f.forwardRef(({className:e,...t},r)=>y.jsx(ND,{ref:r,className:R("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-200",e),...t}));rp.displayName="AlertDialogOverlay";const _P=te(["fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2","bg-main grid w-full gap-4 p-6 shadow-lg","max-h-[85vh] overflow-y-auto","border-border rounded-lg border","focus-visible:ring-sunflower focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","duration-200"],{variants:{size:{sm:"max-w-[400px]",default:"max-w-[500px]",lg:"max-w-[640px]"}},defaultVariants:{size:"default"}}),TP=f.forwardRef(({className:e,size:t,...r},n)=>y.jsxs(AP,{children:[y.jsx(rp,{}),y.jsx(MD,{ref:n,className:R(_P({size:t}),e),...r})]}));TP.displayName="AlertDialogContent";const jP=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex flex-col space-y-2 text-center sm:text-left",e),...t}));jP.displayName="AlertDialogHeader";const NP=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));NP.displayName="AlertDialogFooter";const MP=f.forwardRef(({className:e,...t},r)=>y.jsx(RD,{ref:r,className:R("text-primary text-lg leading-none tracking-tight",e),...t}));MP.displayName="AlertDialogTitle";const IP=f.forwardRef(({className:e,...t},r)=>y.jsx(DD,{ref:r,className:R("text-secondary text-sm",e),...t}));IP.displayName="AlertDialogDescription";const kP=f.forwardRef(({className:e,variant:t="primary",size:r="default",...n},o)=>y.jsx(ID,{ref:o,className:R(dl({variant:t,size:r}),e),...n}));kP.displayName="AlertDialogAction";const RP=f.forwardRef(({className:e,variant:t="secondary",size:r="default",...n},o)=>y.jsx(kD,{ref:o,className:R(dl({variant:t,size:r}),"mt-2 sm:mt-0",e),...n}));RP.displayName="AlertDialogCancel";const DP=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{sunflower:"bg-sunflower text-primary","lemon-meringue":"bg-lemon-meringue text-primary border-tertiary border",vanilla:"bg-vanilla text-primary border-tertiary border",eggshell:"bg-eggshell text-primary border-tertiary border","warm-purple":"bg-warm-purple text-white","cool-purple":"bg-cool-purple text-white","electric-blue":"bg-electric-blue text-white","deep-blue":"bg-deep-blue text-white",error:"bg-error text-white",secondary:"border-border bg-alt text-secondary border"},size:{sm:"rounded-pill px-2 py-0.5 text-xs",md:"rounded-pill px-2.5 py-1 text-xs",lg:"rounded-pill text-body px-3.5 py-1 text-sm",xl:"rounded-pill text-body px-4 py-1.5 text-xl"}},defaultVariants:{variant:"sunflower",size:"md"}}),$P=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"span";return y.jsx(a,{className:R(DP({variant:t,size:r,className:e})),ref:i,...o})});$P.displayName="Badge";const LP=te("text-small relative flex w-full items-center gap-3 px-4 py-3 font-sans transition-colors",{variants:{variant:{info:"bg-electric-blue text-white",success:"bg-sunflower text-primary",warning:"bg-lemon-meringue text-primary",error:"bg-error text-white",neutral:"bg-alt text-primary border-border border"},align:{left:"justify-start text-left",center:"justify-center text-center"}},defaultVariants:{variant:"info",align:"center"}}),FP=f.forwardRef(({className:e,variant:t,align:r,asChild:n=!1,icon:o,action:i,onDismiss:a,children:s,...l},c)=>{const u=n?Oe:"div";return y.jsxs(u,{role:"alert",className:R(LP({variant:t,align:r,className:e})),ref:c,...l,children:[o&&y.jsx("span",{className:"shrink-0",children:o}),y.jsx("span",{className:"flex-1",children:s}),i&&y.jsx("span",{className:"shrink-0",children:i}),a&&y.jsx("button",{type:"button",onClick:a,className:"hover:bg-primary/10 focus-visible:ring-sunflower -mr-1 shrink-0 rounded p-1 transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","aria-label":"Dismiss banner",children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[y.jsx("path",{d:"M18 6 6 18"}),y.jsx("path",{d:"m6 6 12 12"})]})})]})});FP.displayName="Banner";var HD=["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"];function np(e){if(typeof e!="string")return!1;var t=HD;return t.includes(e)}var GD=["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"],qD=new Set(GD);function zP(e){return typeof e!="string"?!1:qD.has(e)}function BP(e){return typeof e=="string"&&e.startsWith("data-")}function At(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(zP(r)||BP(r))&&(t[r]=e[r]);return t}function On(e){if(e==null)return null;if(A.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return At(t)}return typeof e=="object"&&!Array.isArray(e)?At(e):null}function mt(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(zP(r)||BP(r)||np(r))&&(t[r]=e[r]);return t}function YD(e){return e==null?null:A.isValidElement(e)?mt(e.props):typeof e=="object"&&!Array.isArray(e)?mt(e):null}var XD=["children","width","height","viewBox","className","style","title","desc"];function Ed(){return Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ed.apply(null,arguments)}function ZD(e,t){if(e==null)return{};var r,n,o=JD(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function JD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var op=A.forwardRef((e,t)=>{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=ZD(e,XD),d=i||{width:n,height:o,x:0,y:0},p=de("recharts-surface",a);return f.createElement("svg",Ed({},mt(u),{className:p,width:n,height:o,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),f.createElement("title",null,l),f.createElement("desc",null,c),r)}),QD=["children","className"];function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cd.apply(null,arguments)}function e2(e,t){if(e==null)return{};var r,n,o=t2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function t2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ye=f.forwardRef((e,t)=>{var{children:r,className:n}=e,o=e2(e,QD),i=de("recharts-layer",n);return f.createElement("g",Cd({className:i},mt(o),{ref:t}),r)}),VP=A.createContext(null),r2=()=>A.useContext(VP);function we(e){return function(){return e}}const WP=Math.cos,Ja=Math.sin,Gt=Math.sqrt,Qa=Math.PI,fl=2*Qa,Ad=Math.PI,_d=2*Ad,un=1e-6,n2=_d-un;function KP(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function o2(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return KP;const r=10**t;return function(n){this._+=n[0];for(let o=1,i=n.length;o<i;++o)this._+=Math.round(arguments[o]*r)/r+n[o]}}class i2{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?KP:o2(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,o){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(t,r,n,o,i,a){this._append`C${+t},${+r},${+n},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,n,o,i){if(t=+t,r=+r,n=+n,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=n-t,c=o-r,u=a-t,d=s-r,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>un)if(!(Math.abs(d*l-c*u)>un)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-a,g=o-s,m=l*l+c*c,h=v*v+g*g,b=Math.sqrt(m),x=Math.sqrt(p),w=i*Math.tan((Ad-Math.acos((m+p-h)/(2*b*x)))/2),P=w/x,O=w/b;Math.abs(P-1)>un&&this._append`L${t+P*u},${r+P*d}`,this._append`A${i},${i},0,0,${+(d*v>u*g)},${this._x1=t+O*l},${this._y1=r+O*c}`}}arc(t,r,n,o,i,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),l=n*Math.sin(o),c=t+s,u=r+l,d=1^a,p=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>un||Math.abs(this._y1-u)>un)&&this._append`L${c},${u}`,n&&(p<0&&(p=p%_d+_d),p>n2?this._append`A${n},${n},0,1,${d},${t-s},${r-l}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:p>un&&this._append`A${n},${n},0,${+(p>=Ad)},${d},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function ip(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 i2(t)}function ap(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function UP(e){this._context=e}UP.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 pl(e){return new UP(e)}function HP(e){return e[0]}function GP(e){return e[1]}function qP(e,t){var r=we(!0),n=null,o=pl,i=null,a=ip(s);e=typeof e=="function"?e:e===void 0?HP:we(e),t=typeof t=="function"?t:t===void 0?GP:we(t);function s(l){var c,u=(l=ap(l)).length,d,p=!1,v;for(n==null&&(i=o(v=a())),c=0;c<=u;++c)!(c<u&&r(d=l[c],c,l))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(d,c,l),+t(d,c,l));if(v)return i=null,v+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:we(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:we(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:we(!!l),s):r},s.curve=function(l){return arguments.length?(o=l,n!=null&&(i=o(n)),s):o},s.context=function(l){return arguments.length?(l==null?n=i=null:i=o(n=l),s):n},s}function fa(e,t,r){var n=null,o=we(!0),i=null,a=pl,s=null,l=ip(c);e=typeof e=="function"?e:e===void 0?HP:we(+e),t=typeof t=="function"?t:we(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?GP:we(+r);function c(d){var p,v,g,m=(d=ap(d)).length,h,b=!1,x,w=new Array(m),P=new Array(m);for(i==null&&(s=a(x=l())),p=0;p<=m;++p){if(!(p<m&&o(h=d[p],p,d))===b)if(b=!b)v=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=v;--g)s.point(w[g],P[g]);s.lineEnd(),s.areaEnd()}b&&(w[p]=+e(h,p,d),P[p]=+t(h,p,d),s.point(n?+n(h,p,d):w[p],r?+r(h,p,d):P[p]))}if(x)return s=null,x+""||null}function u(){return qP().defined(o).curve(a).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:we(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:we(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:we(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:we(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:we(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:we(+d),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(d){return arguments.length?(o=typeof d=="function"?d:we(!!d),c):o},c.curve=function(d){return arguments.length?(a=d,i!=null&&(s=a(i)),c):a},c.context=function(d){return arguments.length?(d==null?i=s=null:s=a(i=d),c):i},c}class YP{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 a2(e){return new YP(e,!0)}function s2(e){return new YP(e,!1)}const sp={draw(e,t){const r=Gt(t/Qa);e.moveTo(r,0),e.arc(0,0,r,0,fl)}},l2={draw(e,t){const r=Gt(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()}},XP=Gt(1/3),c2=XP*2,u2={draw(e,t){const r=Gt(t/c2),n=r*XP;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},d2={draw(e,t){const r=Gt(t),n=-r/2;e.rect(n,n,r,r)}},f2=.8908130915292852,ZP=Ja(Qa/10)/Ja(7*Qa/10),p2=Ja(fl/10)*ZP,v2=-WP(fl/10)*ZP,m2={draw(e,t){const r=Gt(t*f2),n=p2*r,o=v2*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){const a=fl*i/5,s=WP(a),l=Ja(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}},$c=Gt(3),h2={draw(e,t){const r=-Gt(t/($c*3));e.moveTo(0,r*2),e.lineTo(-$c*r,-r),e.lineTo($c*r,-r),e.closePath()}},Tt=-.5,jt=Gt(3)/2,Td=1/Gt(12),g2=(Td/2+1)*3,y2={draw(e,t){const r=Gt(t/g2),n=r/2,o=r*Td,i=n,a=r*Td+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Tt*n-jt*o,jt*n+Tt*o),e.lineTo(Tt*i-jt*a,jt*i+Tt*a),e.lineTo(Tt*s-jt*l,jt*s+Tt*l),e.lineTo(Tt*n+jt*o,Tt*o-jt*n),e.lineTo(Tt*i+jt*a,Tt*a-jt*i),e.lineTo(Tt*s+jt*l,Tt*l-jt*s),e.closePath()}};function b2(e,t){let r=null,n=ip(o);e=typeof e=="function"?e:we(e||sp),t=typeof t=="function"?t:we(t===void 0?64:+t);function o(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:we(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:we(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function es(){}function ts(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 JP(e){this._context=e}JP.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:ts(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:ts(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function x2(e){return new JP(e)}function QP(e){this._context=e}QP.prototype={areaStart:es,areaEnd:es,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:ts(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function w2(e){return new QP(e)}function eS(e){this._context=e}eS.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:ts(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function P2(e){return new eS(e)}function tS(e){this._context=e}tS.prototype={areaStart:es,areaEnd:es,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 S2(e){return new tS(e)}function vh(e){return e<0?-1:1}function mh(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(vh(i)+vh(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function hh(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Lc(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,o+s*t,i-s,a-s*r,i,a)}function rs(e){this._context=e}rs.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:Lc(this,this._t0,hh(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,Lc(this,hh(this,r=mh(this,e,t)),r);break;default:Lc(this,this._t0,r=mh(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function rS(e){this._context=new nS(e)}(rS.prototype=Object.create(rs.prototype)).point=function(e,t){rs.prototype.point.call(this,t,e)};function nS(e){this._context=e}nS.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function O2(e){return new rs(e)}function E2(e){return new rS(e)}function oS(e){this._context=e}oS.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=gh(e),o=gh(t),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],e[a],t[a]);(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 gh(e){var t,r=e.length-1,n,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function C2(e){return new oS(e)}function vl(e,t){this._context=e,this._t=t}vl.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 A2(e){return new vl(e,.5)}function _2(e){return new vl(e,0)}function T2(e){return new vl(e,1)}function En(e,t){if((a=e.length)>1)for(var r=1,n,o,i=e[t[0]],a,s=i.length;r<a;++r)for(o=i,i=e[t[r]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(o[n][1])?o[n][0]:o[n][1]}function jd(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function j2(e,t){return e[t]}function N2(e){const t=[];return t.key=e,t}function M2(){var e=we([]),t=jd,r=En,n=j2;function o(i){var a=Array.from(e.apply(this,arguments),N2),s,l=a.length,c=-1,u;for(const d of i)for(s=0,++c;s<l;++s)(a[s][c]=[0,+n(d,a[s].key,c,i)]).data=d;for(s=0,u=ap(t(a));s<l;++s)a[u[s]].index=s;return r(a,u),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:we(Array.from(i)),o):e},o.value=function(i){return arguments.length?(n=typeof i=="function"?i:we(+i),o):n},o.order=function(i){return arguments.length?(t=i==null?jd:typeof i=="function"?i:we(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(r=i??En,o):r},o}function I2(e,t){if((n=e.length)>0){for(var r,n,o=0,i=e[0].length,a;o<i;++o){for(a=r=0;r<n;++r)a+=e[r][o][1]||0;if(a)for(r=0;r<n;++r)e[r][o][1]/=a}En(e,t)}}function k2(e,t){if((o=e.length)>0){for(var r=0,n=e[t[0]],o,i=n.length;r<i;++r){for(var a=0,s=0;a<o;++a)s+=e[a][r][1]||0;n[r][1]+=n[r][0]=-s/2}En(e,t)}}function R2(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,i,a;n<i;++n){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[n][1]||0,p=u[n-1][1]||0,v=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],h=m[n][1]||0,b=m[n-1][1]||0;v+=h-b}l+=d,c+=v*d}o[n-1][1]+=o[n-1][0]=r,l&&(r-=c/l)}o[n-1][1]+=o[n-1][0]=r,En(e,t)}}function Jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fc={},zc={},yh;function D2(){return yh||(yh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(zc)),zc}var Bc={},bh;function iS(){return bh||(bh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Bc)),Bc}var Vc={},xh;function lp(){return xh||(xh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(Vc)),Vc}var Wc={},Kc={},wh;function $2(){return wh||(wh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(Kc)),Kc}var Ph;function cp(){return Ph||(Ph=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$2(),r=lp();function n(o){if(Array.isArray(o))return o.map(r.toKey);if(typeof o=="symbol")return[o];o=t.toString(o);const i=[],a=o.length;if(a===0)return i;let s=0,l="",c="",u=!1;for(o.charCodeAt(0)===46&&(i.push(""),s++);s<a;){const d=o[s];c?d==="\\"&&s+1<a?(s++,l+=o[s]):d===c?c="":l+=d:u?d==='"'||d==="'"?c=d:d==="]"?(u=!1,i.push(l),l=""):l+=d:d==="["?(u=!0,l&&(i.push(l),l="")):d==="."?l&&(i.push(l),l=""):l+=d,s++}return l&&i.push(l),i}e.toPath=n})(Wc)),Wc}var Sh;function up(){return Sh||(Sh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=D2(),r=iS(),n=lp(),o=cp();function i(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?r.isDeepKey(l)?i(s,o.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=i})(Fc)),Fc}var Uc,Oh;function L2(){return Oh||(Oh=1,Uc=up().get),Uc}var F2=L2();const Cn=Jr(F2);var z2=4;function Vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z2,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Me(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((o,i,a)=>{var s=r[a-1];return typeof s=="string"?o+s+i:s!==void 0?o+Vr(s)+i:o+i},"")}var Ge=e=>e===0?0:e>0?1:-1,or=e=>typeof e=="number"&&e!=+e,An=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,q=e=>(typeof e=="number"||e instanceof Number)&&!or(e),ir=e=>q(e)||typeof e=="string",B2=0,Zo=e=>{var t=++B2;return"".concat(e||"").concat(t)},it=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&typeof t!="string")return n;var i;if(An(t)){if(r==null)return n;var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return or(i)&&(i=n),o&&r!=null&&i>r&&(i=r),i},aS=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function Ae(e,t,r){return q(e)&&q(t)?Vr(e+r*(t-e)):t}function sS(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Cn(n,t))===r)}var Te=e=>e===null||typeof e>"u",Si=e=>Te(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function yt(e){return e!=null}function Fn(){}var V2=["type","size","sizeType"];function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nd.apply(null,arguments)}function Eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ch(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(r),!0).forEach(function(n){W2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W2(e,t,r){return(t=K2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K2(e){var t=U2(e,"string");return typeof t=="symbol"?t:t+""}function U2(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H2(e,t){if(e==null)return{};var r,n,o=G2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function G2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var lS={symbolCircle:sp,symbolCross:l2,symbolDiamond:u2,symbolSquare:d2,symbolStar:m2,symbolTriangle:h2,symbolWye:y2},q2=Math.PI/180,Y2=e=>{var t="symbol".concat(Si(e));return lS[t]||sp},X2=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*q2;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Z2=(e,t)=>{lS["symbol".concat(Si(e))]=t},dp=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=H2(e,V2),i=Ch(Ch({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=Y2(a),v=b2().type(p).size(X2(r,n,a)),g=v();if(g!==null)return g},{className:l,cx:c,cy:u}=i,d=mt(i);return q(c)&&q(u)&&q(r)?f.createElement("path",Nd({},d,{className:de("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};dp.registerSymbol=Z2;var cS=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,fp=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(A.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(o=>{np(o)&&(n[o]=(i=>r[o](r,i)))}),n},J2=(e,t,r)=>n=>(e(t,r,n),null),Oi=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(o=>{var i=e[o];np(o)&&typeof i=="function"&&(n||(n={}),n[o]=J2(i,t,r))}),n};function Ah(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Q2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ah(Object(r),!0).forEach(function(n){e$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ah(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e$(e,t,r){return(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=r$(e,"string");return typeof t=="symbol"?t:t+""}function r$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Le(e,t){var r=Q2({},e),n=t,o=Object.keys(t),i=o.reduce((a,s)=>(a[s]===void 0&&n[s]!==void 0&&(a[s]=n[s]),a),r);return i}function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ns.apply(null,arguments)}function _h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function n$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_h(Object(r),!0).forEach(function(n){o$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function o$(e,t,r){return(t=i$(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 typeof t=="symbol"?t:t+""}function a$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mt=32,s$={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function l$(e){var{data:t,iconType:r,inactiveColor:n}=e,o=Mt/2,i=Mt/6,a=Mt/3,s=t.inactive?n:t.color,l=r??t.type;if(l==="none")return null;if(l==="plainline"){var c;return f.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:(c=t.payload)===null||c===void 0?void 0:c.strokeDasharray,x1:0,y1:o,x2:Mt,y2:o,className:"recharts-legend-icon"})}if(l==="line")return f.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(o,"h").concat(a,`
51
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},TD=fP,jD=pP,ND=vP,MD=mP,ID=hP,kD=wP,RD=SP,DD=yP,$D=xP,LD=Symbol.for("react.lazy"),Za=f[" use ".trim().toString()];function FD(e){return typeof e=="object"&&e!==null&&"then"in e}function OP(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===LD&&"_payload"in e&&FD(e._payload)}function EP(e){const t=zD(e),r=f.forwardRef((n,o)=>{let{children:i,...a}=n;OP(i)&&typeof Za=="function"&&(i=Za(i._payload));const s=f.Children.toArray(i),l=s.find(VD);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Oe=EP("Slot");function zD(e){const t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(OP(o)&&typeof Za=="function"&&(o=Za(o._payload)),f.isValidElement(o)){const a=KD(o),s=WD(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var BD=Symbol("radix.slottable");function VD(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===BD}function WD(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function KD(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 dl=te("text-body focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-sunflower text-primary hover:bg-sunflower-hover active:bg-sunflower-hover",secondary:"border-border bg-border text-primary active:bg-alt border hover:bg-white",ghost:"text-primary hover:bg-alt active:bg-contrast"},size:{sm:"rounded-pill text-small px-5 py-1",default:"rounded-pill text-small px-8 py-1.5",lg:"rounded-pill text-body px-12 py-2",icon:"h-10 w-10 rounded-full"}},defaultVariants:{variant:"primary",size:"default"}}),CP=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"button";return y.jsx(a,{className:R(dl({variant:t,size:r,className:e})),ref:i,...o})});CP.displayName="Button";const UD=TD,HD=jD,AP=ND,rp=f.forwardRef(({className:e,...t},r)=>y.jsx(MD,{ref:r,className:R("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-200",e),...t}));rp.displayName="AlertDialogOverlay";const _P=te(["fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2","bg-main grid w-full gap-4 p-6 shadow-lg","max-h-[85vh] overflow-y-auto","border-border rounded-lg border","focus-visible:ring-sunflower focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","duration-200"],{variants:{size:{sm:"max-w-[400px]",default:"max-w-[500px]",lg:"max-w-[640px]"}},defaultVariants:{size:"default"}}),TP=f.forwardRef(({className:e,size:t,...r},n)=>y.jsxs(AP,{children:[y.jsx(rp,{}),y.jsx(ID,{ref:n,className:R(_P({size:t}),e),...r})]}));TP.displayName="AlertDialogContent";const jP=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex flex-col space-y-2 text-center sm:text-left",e),...t}));jP.displayName="AlertDialogHeader";const NP=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));NP.displayName="AlertDialogFooter";const MP=f.forwardRef(({className:e,...t},r)=>y.jsx(DD,{ref:r,className:R("text-primary text-lg leading-none tracking-tight",e),...t}));MP.displayName="AlertDialogTitle";const IP=f.forwardRef(({className:e,...t},r)=>y.jsx($D,{ref:r,className:R("text-secondary text-sm",e),...t}));IP.displayName="AlertDialogDescription";const kP=f.forwardRef(({className:e,variant:t="primary",size:r="default",...n},o)=>y.jsx(kD,{ref:o,className:R(dl({variant:t,size:r}),e),...n}));kP.displayName="AlertDialogAction";const RP=f.forwardRef(({className:e,variant:t="secondary",size:r="default",...n},o)=>y.jsx(RD,{ref:o,className:R(dl({variant:t,size:r}),"mt-2 sm:mt-0",e),...n}));RP.displayName="AlertDialogCancel";const DP=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{sunflower:"bg-sunflower text-primary","lemon-meringue":"bg-lemon-meringue text-primary border-tertiary border",vanilla:"bg-vanilla text-primary border-tertiary border",eggshell:"bg-eggshell text-primary border-tertiary border","warm-purple":"bg-warm-purple text-white","cool-purple":"bg-cool-purple text-white","electric-blue":"bg-electric-blue text-white","deep-blue":"bg-deep-blue text-white",error:"bg-error text-white",secondary:"border-border bg-alt text-secondary border"},size:{sm:"rounded-pill px-2 py-0.5 text-xs",md:"rounded-pill px-2.5 py-1 text-xs",lg:"rounded-pill text-body px-3.5 py-1 text-sm",xl:"rounded-pill text-body px-4 py-1.5 text-xl"}},defaultVariants:{variant:"sunflower",size:"md"}}),$P=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"span";return y.jsx(a,{className:R(DP({variant:t,size:r,className:e})),ref:i,...o})});$P.displayName="Badge";const LP=te("text-small relative flex w-full items-center gap-3 px-4 py-3 font-sans transition-colors",{variants:{variant:{info:"bg-electric-blue text-white",success:"bg-sunflower text-primary",warning:"bg-lemon-meringue text-primary",error:"bg-error text-white",neutral:"bg-alt text-primary border-border border"},align:{left:"justify-start text-left",center:"justify-center text-center"}},defaultVariants:{variant:"info",align:"center"}}),FP=f.forwardRef(({className:e,variant:t,align:r,asChild:n=!1,icon:o,action:i,onDismiss:a,children:s,...l},c)=>{const u=n?Oe:"div";return y.jsxs(u,{role:"alert",className:R(LP({variant:t,align:r,className:e})),ref:c,...l,children:[o&&y.jsx("span",{className:"shrink-0",children:o}),y.jsx("span",{className:"flex-1",children:s}),i&&y.jsx("span",{className:"shrink-0",children:i}),a&&y.jsx("button",{type:"button",onClick:a,className:"hover:bg-primary/10 focus-visible:ring-sunflower -mr-1 shrink-0 rounded p-1 transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","aria-label":"Dismiss banner",children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[y.jsx("path",{d:"M18 6 6 18"}),y.jsx("path",{d:"m6 6 12 12"})]})})]})});FP.displayName="Banner";var GD=["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"];function np(e){if(typeof e!="string")return!1;var t=GD;return t.includes(e)}var qD=["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"],YD=new Set(qD);function zP(e){return typeof e!="string"?!1:YD.has(e)}function BP(e){return typeof e=="string"&&e.startsWith("data-")}function At(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(zP(r)||BP(r))&&(t[r]=e[r]);return t}function On(e){if(e==null)return null;if(A.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return At(t)}return typeof e=="object"&&!Array.isArray(e)?At(e):null}function mt(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(zP(r)||BP(r)||np(r))&&(t[r]=e[r]);return t}function XD(e){return e==null?null:A.isValidElement(e)?mt(e.props):typeof e=="object"&&!Array.isArray(e)?mt(e):null}var ZD=["children","width","height","viewBox","className","style","title","desc"];function Ed(){return Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ed.apply(null,arguments)}function JD(e,t){if(e==null)return{};var r,n,o=QD(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function QD(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var op=A.forwardRef((e,t)=>{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=JD(e,ZD),d=i||{width:n,height:o,x:0,y:0},p=de("recharts-surface",a);return f.createElement("svg",Ed({},mt(u),{className:p,width:n,height:o,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),f.createElement("title",null,l),f.createElement("desc",null,c),r)}),e2=["children","className"];function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cd.apply(null,arguments)}function t2(e,t){if(e==null)return{};var r,n,o=r2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function r2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ye=f.forwardRef((e,t)=>{var{children:r,className:n}=e,o=t2(e,e2),i=de("recharts-layer",n);return f.createElement("g",Cd({className:i},mt(o),{ref:t}),r)}),VP=A.createContext(null),n2=()=>A.useContext(VP);function we(e){return function(){return e}}const WP=Math.cos,Ja=Math.sin,Gt=Math.sqrt,Qa=Math.PI,fl=2*Qa,Ad=Math.PI,_d=2*Ad,un=1e-6,o2=_d-un;function KP(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function i2(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return KP;const r=10**t;return function(n){this._+=n[0];for(let o=1,i=n.length;o<i;++o)this._+=Math.round(arguments[o]*r)/r+n[o]}}class a2{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?KP:i2(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,o){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(t,r,n,o,i,a){this._append`C${+t},${+r},${+n},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,n,o,i){if(t=+t,r=+r,n=+n,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=n-t,c=o-r,u=a-t,d=s-r,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>un)if(!(Math.abs(d*l-c*u)>un)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-a,g=o-s,m=l*l+c*c,h=v*v+g*g,b=Math.sqrt(m),x=Math.sqrt(p),w=i*Math.tan((Ad-Math.acos((m+p-h)/(2*b*x)))/2),P=w/x,O=w/b;Math.abs(P-1)>un&&this._append`L${t+P*u},${r+P*d}`,this._append`A${i},${i},0,0,${+(d*v>u*g)},${this._x1=t+O*l},${this._y1=r+O*c}`}}arc(t,r,n,o,i,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),l=n*Math.sin(o),c=t+s,u=r+l,d=1^a,p=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>un||Math.abs(this._y1-u)>un)&&this._append`L${c},${u}`,n&&(p<0&&(p=p%_d+_d),p>o2?this._append`A${n},${n},0,1,${d},${t-s},${r-l}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:p>un&&this._append`A${n},${n},0,${+(p>=Ad)},${d},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function ip(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 a2(t)}function ap(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function UP(e){this._context=e}UP.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 pl(e){return new UP(e)}function HP(e){return e[0]}function GP(e){return e[1]}function qP(e,t){var r=we(!0),n=null,o=pl,i=null,a=ip(s);e=typeof e=="function"?e:e===void 0?HP:we(e),t=typeof t=="function"?t:t===void 0?GP:we(t);function s(l){var c,u=(l=ap(l)).length,d,p=!1,v;for(n==null&&(i=o(v=a())),c=0;c<=u;++c)!(c<u&&r(d=l[c],c,l))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(d,c,l),+t(d,c,l));if(v)return i=null,v+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:we(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:we(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:we(!!l),s):r},s.curve=function(l){return arguments.length?(o=l,n!=null&&(i=o(n)),s):o},s.context=function(l){return arguments.length?(l==null?n=i=null:i=o(n=l),s):n},s}function fa(e,t,r){var n=null,o=we(!0),i=null,a=pl,s=null,l=ip(c);e=typeof e=="function"?e:e===void 0?HP:we(+e),t=typeof t=="function"?t:we(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?GP:we(+r);function c(d){var p,v,g,m=(d=ap(d)).length,h,b=!1,x,w=new Array(m),P=new Array(m);for(i==null&&(s=a(x=l())),p=0;p<=m;++p){if(!(p<m&&o(h=d[p],p,d))===b)if(b=!b)v=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=v;--g)s.point(w[g],P[g]);s.lineEnd(),s.areaEnd()}b&&(w[p]=+e(h,p,d),P[p]=+t(h,p,d),s.point(n?+n(h,p,d):w[p],r?+r(h,p,d):P[p]))}if(x)return s=null,x+""||null}function u(){return qP().defined(o).curve(a).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:we(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:we(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:we(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:we(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:we(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:we(+d),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(d){return arguments.length?(o=typeof d=="function"?d:we(!!d),c):o},c.curve=function(d){return arguments.length?(a=d,i!=null&&(s=a(i)),c):a},c.context=function(d){return arguments.length?(d==null?i=s=null:s=a(i=d),c):i},c}class YP{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 s2(e){return new YP(e,!0)}function l2(e){return new YP(e,!1)}const sp={draw(e,t){const r=Gt(t/Qa);e.moveTo(r,0),e.arc(0,0,r,0,fl)}},c2={draw(e,t){const r=Gt(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()}},XP=Gt(1/3),u2=XP*2,d2={draw(e,t){const r=Gt(t/u2),n=r*XP;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},f2={draw(e,t){const r=Gt(t),n=-r/2;e.rect(n,n,r,r)}},p2=.8908130915292852,ZP=Ja(Qa/10)/Ja(7*Qa/10),v2=Ja(fl/10)*ZP,m2=-WP(fl/10)*ZP,h2={draw(e,t){const r=Gt(t*p2),n=v2*r,o=m2*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){const a=fl*i/5,s=WP(a),l=Ja(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}},$c=Gt(3),g2={draw(e,t){const r=-Gt(t/($c*3));e.moveTo(0,r*2),e.lineTo(-$c*r,-r),e.lineTo($c*r,-r),e.closePath()}},Tt=-.5,jt=Gt(3)/2,Td=1/Gt(12),y2=(Td/2+1)*3,b2={draw(e,t){const r=Gt(t/y2),n=r/2,o=r*Td,i=n,a=r*Td+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Tt*n-jt*o,jt*n+Tt*o),e.lineTo(Tt*i-jt*a,jt*i+Tt*a),e.lineTo(Tt*s-jt*l,jt*s+Tt*l),e.lineTo(Tt*n+jt*o,Tt*o-jt*n),e.lineTo(Tt*i+jt*a,Tt*a-jt*i),e.lineTo(Tt*s+jt*l,Tt*l-jt*s),e.closePath()}};function x2(e,t){let r=null,n=ip(o);e=typeof e=="function"?e:we(e||sp),t=typeof t=="function"?t:we(t===void 0?64:+t);function o(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:we(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:we(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function es(){}function ts(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 JP(e){this._context=e}JP.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:ts(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:ts(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function w2(e){return new JP(e)}function QP(e){this._context=e}QP.prototype={areaStart:es,areaEnd:es,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:ts(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function P2(e){return new QP(e)}function eS(e){this._context=e}eS.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:ts(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function S2(e){return new eS(e)}function tS(e){this._context=e}tS.prototype={areaStart:es,areaEnd:es,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 O2(e){return new tS(e)}function vh(e){return e<0?-1:1}function mh(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(vh(i)+vh(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function hh(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Lc(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,o+s*t,i-s,a-s*r,i,a)}function rs(e){this._context=e}rs.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:Lc(this,this._t0,hh(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,Lc(this,hh(this,r=mh(this,e,t)),r);break;default:Lc(this,this._t0,r=mh(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function rS(e){this._context=new nS(e)}(rS.prototype=Object.create(rs.prototype)).point=function(e,t){rs.prototype.point.call(this,t,e)};function nS(e){this._context=e}nS.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function E2(e){return new rs(e)}function C2(e){return new rS(e)}function oS(e){this._context=e}oS.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=gh(e),o=gh(t),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],e[a],t[a]);(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 gh(e){var t,r=e.length-1,n,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function A2(e){return new oS(e)}function vl(e,t){this._context=e,this._t=t}vl.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 _2(e){return new vl(e,.5)}function T2(e){return new vl(e,0)}function j2(e){return new vl(e,1)}function En(e,t){if((a=e.length)>1)for(var r=1,n,o,i=e[t[0]],a,s=i.length;r<a;++r)for(o=i,i=e[t[r]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(o[n][1])?o[n][0]:o[n][1]}function jd(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function N2(e,t){return e[t]}function M2(e){const t=[];return t.key=e,t}function I2(){var e=we([]),t=jd,r=En,n=N2;function o(i){var a=Array.from(e.apply(this,arguments),M2),s,l=a.length,c=-1,u;for(const d of i)for(s=0,++c;s<l;++s)(a[s][c]=[0,+n(d,a[s].key,c,i)]).data=d;for(s=0,u=ap(t(a));s<l;++s)a[u[s]].index=s;return r(a,u),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:we(Array.from(i)),o):e},o.value=function(i){return arguments.length?(n=typeof i=="function"?i:we(+i),o):n},o.order=function(i){return arguments.length?(t=i==null?jd:typeof i=="function"?i:we(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(r=i??En,o):r},o}function k2(e,t){if((n=e.length)>0){for(var r,n,o=0,i=e[0].length,a;o<i;++o){for(a=r=0;r<n;++r)a+=e[r][o][1]||0;if(a)for(r=0;r<n;++r)e[r][o][1]/=a}En(e,t)}}function R2(e,t){if((o=e.length)>0){for(var r=0,n=e[t[0]],o,i=n.length;r<i;++r){for(var a=0,s=0;a<o;++a)s+=e[a][r][1]||0;n[r][1]+=n[r][0]=-s/2}En(e,t)}}function D2(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,i,a;n<i;++n){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[n][1]||0,p=u[n-1][1]||0,v=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],h=m[n][1]||0,b=m[n-1][1]||0;v+=h-b}l+=d,c+=v*d}o[n-1][1]+=o[n-1][0]=r,l&&(r-=c/l)}o[n-1][1]+=o[n-1][0]=r,En(e,t)}}function Jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fc={},zc={},yh;function $2(){return yh||(yh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(zc)),zc}var Bc={},bh;function iS(){return bh||(bh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Bc)),Bc}var Vc={},xh;function lp(){return xh||(xh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(Vc)),Vc}var Wc={},Kc={},wh;function L2(){return wh||(wh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(Kc)),Kc}var Ph;function cp(){return Ph||(Ph=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=L2(),r=lp();function n(o){if(Array.isArray(o))return o.map(r.toKey);if(typeof o=="symbol")return[o];o=t.toString(o);const i=[],a=o.length;if(a===0)return i;let s=0,l="",c="",u=!1;for(o.charCodeAt(0)===46&&(i.push(""),s++);s<a;){const d=o[s];c?d==="\\"&&s+1<a?(s++,l+=o[s]):d===c?c="":l+=d:u?d==='"'||d==="'"?c=d:d==="]"?(u=!1,i.push(l),l=""):l+=d:d==="["?(u=!0,l&&(i.push(l),l="")):d==="."?l&&(i.push(l),l=""):l+=d,s++}return l&&i.push(l),i}e.toPath=n})(Wc)),Wc}var Sh;function up(){return Sh||(Sh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$2(),r=iS(),n=lp(),o=cp();function i(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?r.isDeepKey(l)?i(s,o.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=i})(Fc)),Fc}var Uc,Oh;function F2(){return Oh||(Oh=1,Uc=up().get),Uc}var z2=F2();const Cn=Jr(z2);var B2=4;function Vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B2,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Me(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((o,i,a)=>{var s=r[a-1];return typeof s=="string"?o+s+i:s!==void 0?o+Vr(s)+i:o+i},"")}var Ge=e=>e===0?0:e>0?1:-1,or=e=>typeof e=="number"&&e!=+e,An=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,q=e=>(typeof e=="number"||e instanceof Number)&&!or(e),ir=e=>q(e)||typeof e=="string",V2=0,Zo=e=>{var t=++V2;return"".concat(e||"").concat(t)},it=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&typeof t!="string")return n;var i;if(An(t)){if(r==null)return n;var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return or(i)&&(i=n),o&&r!=null&&i>r&&(i=r),i},aS=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function Ae(e,t,r){return q(e)&&q(t)?Vr(e+r*(t-e)):t}function sS(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Cn(n,t))===r)}var Te=e=>e===null||typeof e>"u",Si=e=>Te(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function yt(e){return e!=null}function Fn(){}var W2=["type","size","sizeType"];function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nd.apply(null,arguments)}function Eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ch(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(r),!0).forEach(function(n){K2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K2(e,t,r){return(t=U2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U2(e){var t=H2(e,"string");return typeof t=="symbol"?t:t+""}function H2(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G2(e,t){if(e==null)return{};var r,n,o=q2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function q2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var lS={symbolCircle:sp,symbolCross:c2,symbolDiamond:d2,symbolSquare:f2,symbolStar:h2,symbolTriangle:g2,symbolWye:b2},Y2=Math.PI/180,X2=e=>{var t="symbol".concat(Si(e));return lS[t]||sp},Z2=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*Y2;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},J2=(e,t)=>{lS["symbol".concat(Si(e))]=t},dp=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=G2(e,W2),i=Ch(Ch({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=X2(a),v=x2().type(p).size(Z2(r,n,a)),g=v();if(g!==null)return g},{className:l,cx:c,cy:u}=i,d=mt(i);return q(c)&&q(u)&&q(r)?f.createElement("path",Nd({},d,{className:de("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};dp.registerSymbol=J2;var cS=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,fp=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(A.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(o=>{np(o)&&(n[o]=(i=>r[o](r,i)))}),n},Q2=(e,t,r)=>n=>(e(t,r,n),null),Oi=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(o=>{var i=e[o];np(o)&&typeof i=="function"&&(n||(n={}),n[o]=Q2(i,t,r))}),n};function Ah(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function e$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ah(Object(r),!0).forEach(function(n){t$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ah(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t$(e,t,r){return(t=r$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r$(e){var t=n$(e,"string");return typeof t=="symbol"?t:t+""}function n$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Le(e,t){var r=e$({},e),n=t,o=Object.keys(t),i=o.reduce((a,s)=>(a[s]===void 0&&n[s]!==void 0&&(a[s]=n[s]),a),r);return i}function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ns.apply(null,arguments)}function _h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function o$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_h(Object(r),!0).forEach(function(n){i$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i$(e,t,r){return(t=a$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a$(e){var t=s$(e,"string");return typeof t=="symbol"?t:t+""}function s$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mt=32,l$={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function c$(e){var{data:t,iconType:r,inactiveColor:n}=e,o=Mt/2,i=Mt/6,a=Mt/3,s=t.inactive?n:t.color,l=r??t.type;if(l==="none")return null;if(l==="plainline"){var c;return f.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:(c=t.payload)===null||c===void 0?void 0:c.strokeDasharray,x1:0,y1:o,x2:Mt,y2:o,className:"recharts-legend-icon"})}if(l==="line")return f.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(o,"h").concat(a,`
52
52
  A`).concat(i,",").concat(i,",0,1,1,").concat(2*a,",").concat(o,`
53
53
  H`).concat(Mt,"M").concat(2*a,",").concat(o,`
54
- A`).concat(i,",").concat(i,",0,1,1,").concat(a,",").concat(o),className:"recharts-legend-icon"});if(l==="rect")return f.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Mt/8,"h").concat(Mt,"v").concat(Mt*3/4,"h").concat(-Mt,"z"),className:"recharts-legend-icon"});if(f.isValidElement(t.legendIcon)){var u=n$({},t);return delete u.legendIcon,f.cloneElement(t.legendIcon,u)}return f.createElement(dp,{fill:s,cx:o,cy:o,size:Mt,sizeType:"diameter",type:l})}function c$(e){var{payload:t,iconSize:r,layout:n,formatter:o,inactiveColor:i,iconType:a}=e,s={x:0,y:0,width:Mt,height:Mt},l={display:n==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((u,d)=>{var p=u.formatter||o,v=de({"recharts-legend-item":!0,["legend-item-".concat(d)]:!0,inactive:u.inactive});if(u.type==="none")return null;var g=u.inactive?i:u.color,m=p?p(u.value,u,d):u.value;return f.createElement("li",ns({className:v,style:l,key:"legend-item-".concat(d)},Oi(e,u,d)),f.createElement(op,{width:r,height:r,viewBox:s,style:c,"aria-label":"".concat(m," legend icon")},f.createElement(l$,{data:u,iconType:a,inactiveColor:i})),f.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},m))})}var u$=e=>{var t=Le(e,s$),{payload:r,layout:n,align:o}=t;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:n==="horizontal"?o:"left"};return f.createElement("ul",{className:"recharts-default-legend",style:i},f.createElement(c$,ns({},t,{payload:r})))},Hc={},Gc={},Th;function d$(){return Th||(Th=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const o=new Map;for(let i=0;i<r.length;i++){const a=r[i],s=n(a,i,r);o.has(s)||o.set(s,a)}return Array.from(o.values())}e.uniqBy=t})(Gc)),Gc}var qc={},jh;function f$(){return jh||(jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return function(...o){return r.apply(this,o.slice(0,n))}}e.ary=t})(qc)),qc}var Yc={},Nh;function uS(){return Nh||(Nh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Yc)),Yc}var Xc={},Zc={},Jc={},Mh;function p$(){return Mh||(Mh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Jc)),Jc}var Ih;function pp(){return Ih||(Ih=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=p$();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(Zc)),Zc}var Qc={},kh;function v$(){return kh||(kh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(Qc)),Qc}var Rh;function m$(){return Rh||(Rh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pp(),r=v$();function n(o){return r.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=n})(Xc)),Xc}var eu={},tu={},Dh;function h$(){return Dh||(Dh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=up();function r(n){return function(o){return t.get(o,n)}}e.property=r})(tu)),tu}var ru={},nu={},ou={},iu={},$h;function dS(){return $h||($h=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(iu)),iu}var au={},Lh;function fS(){return Lh||(Lh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(au)),au}var su={},Fh;function pS(){return Fh||(Fh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(su)),su}var zh;function g$(){return zh||(zh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dS(),r=fS(),n=pS();function o(u,d,p){return typeof p!="function"?o(u,d,()=>{}):i(u,d,function v(g,m,h,b,x,w){const P=p(g,m,h,b,x,w);return P!==void 0?!!P:i(g,m,v,w)},new Map)}function i(u,d,p,v){if(d===u)return!0;switch(typeof d){case"object":return a(u,d,p,v);case"function":return Object.keys(d).length>0?i(u,{...d},p,v):n.isEqualsSameValueZero(u,d);default:return t.isObject(u)?typeof d=="string"?d==="":!0:n.isEqualsSameValueZero(u,d)}}function a(u,d,p,v){if(d==null)return!0;if(Array.isArray(d))return l(u,d,p,v);if(d instanceof Map)return s(u,d,p,v);if(d instanceof Set)return c(u,d,p,v);const g=Object.keys(d);if(u==null||r.isPrimitive(u))return g.length===0;if(g.length===0)return!0;if(v?.has(d))return v.get(d)===u;v?.set(d,u);try{for(let m=0;m<g.length;m++){const h=g[m];if(!r.isPrimitive(u)&&!(h in u)||d[h]===void 0&&u[h]!==void 0||d[h]===null&&u[h]!==null||!p(u[h],d[h],h,u,d,v))return!1}return!0}finally{v?.delete(d)}}function s(u,d,p,v){if(d.size===0)return!0;if(!(u instanceof Map))return!1;for(const[g,m]of d.entries()){const h=u.get(g);if(p(h,m,g,u,d,v)===!1)return!1}return!0}function l(u,d,p,v){if(d.length===0)return!0;if(!Array.isArray(u))return!1;const g=new Set;for(let m=0;m<d.length;m++){const h=d[m];let b=!1;for(let x=0;x<u.length;x++){if(g.has(x))continue;const w=u[x];let P=!1;if(p(w,h,m,u,d,v)&&(P=!0),P){g.add(x),b=!0;break}}if(!b)return!1}return!0}function c(u,d,p,v){return d.size===0?!0:u instanceof Set?l([...u],[...d],p,v):!1}e.isMatchWith=o,e.isSetMatch=c})(ou)),ou}var Bh;function vS(){return Bh||(Bh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=g$();function r(n,o){return t.isMatchWith(n,o,()=>{})}e.isMatch=r})(nu)),nu}var lu={},cu={},uu={},Vh;function y$(){return Vh||(Vh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(uu)),uu}var du={},Wh;function vp(){return Wh||(Wh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(du)),du}var fu={},Kh;function mS(){return Kh||(Kh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",o="[object Boolean]",i="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",p="[object ArrayBuffer]",v="[object Object]",g="[object Error]",m="[object DataView]",h="[object Uint8Array]",b="[object Uint8ClampedArray]",x="[object Uint16Array]",w="[object Uint32Array]",P="[object BigUint64Array]",O="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",C="[object BigInt64Array]",N="[object Float32Array]",D="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=C,e.bigUint64ArrayTag=P,e.booleanTag=o,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=N,e.float64ArrayTag=D,e.functionTag=d,e.int16ArrayTag=S,e.int32ArrayTag=E,e.int8ArrayTag=O,e.mapTag=l,e.numberTag=n,e.objectTag=v,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=a,e.uint16ArrayTag=x,e.uint32ArrayTag=w,e.uint8ArrayTag=h,e.uint8ClampedArrayTag=b})(fu)),fu}var pu={},Uh;function b$(){return Uh||(Uh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(pu)),pu}var Hh;function hS(){return Hh||(Hh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=y$(),r=vp(),n=mS(),o=fS(),i=b$();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,p,v=new Map,g=void 0){const m=g?.(u,d,p,v);if(m!==void 0)return m;if(o.isPrimitive(u))return u;if(v.has(u))return v.get(u);if(Array.isArray(u)){const h=new Array(u.length);v.set(u,h);for(let b=0;b<u.length;b++)h[b]=s(u[b],b,p,v,g);return Object.hasOwn(u,"index")&&(h.index=u.index),Object.hasOwn(u,"input")&&(h.input=u.input),h}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const h=new RegExp(u.source,u.flags);return h.lastIndex=u.lastIndex,h}if(u instanceof Map){const h=new Map;v.set(u,h);for(const[b,x]of u)h.set(b,s(x,b,p,v,g));return h}if(u instanceof Set){const h=new Set;v.set(u,h);for(const b of u)h.add(s(b,void 0,p,v,g));return h}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(i.isTypedArray(u)){const h=new(Object.getPrototypeOf(u)).constructor(u.length);v.set(u,h);for(let b=0;b<u.length;b++)h[b]=s(u[b],b,p,v,g);return h}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const h=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return v.set(u,h),l(h,u,p,v,g),h}if(typeof File<"u"&&u instanceof File){const h=new File([u],u.name,{type:u.type});return v.set(u,h),l(h,u,p,v,g),h}if(typeof Blob<"u"&&u instanceof Blob){const h=new Blob([u],{type:u.type});return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof Error){const h=new u.constructor;return v.set(u,h),h.message=u.message,h.name=u.name,h.stack=u.stack,h.cause=u.cause,l(h,u,p,v,g),h}if(u instanceof Boolean){const h=new Boolean(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof Number){const h=new Number(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof String){const h=new String(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(typeof u=="object"&&c(u)){const h=Object.create(Object.getPrototypeOf(u));return v.set(u,h),l(h,u,p,v,g),h}return u}function l(u,d,p=u,v,g){const m=[...Object.keys(d),...t.getSymbols(d)];for(let h=0;h<m.length;h++){const b=m[h],x=Object.getOwnPropertyDescriptor(u,b);(x==null||x.writable)&&(u[b]=s(d[b],b,p,v,g))}}function c(u){switch(r.getTag(u)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(cu)),cu}var Gh;function x$(){return Gh||(Gh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hS();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(lu)),lu}var qh;function w$(){return qh||(qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vS(),r=x$();function n(o){return o=r.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=n})(ru)),ru}var vu={},mu={},hu={},Yh;function P$(){return Yh||(Yh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hS(),r=vp(),n=mS();function o(i,a){return t.cloneDeepWith(i,(s,l,c,u)=>{const d=a?.(s,l,c,u);if(d!==void 0)return d;if(typeof i=="object"){if(r.getTag(i)===n.objectTag&&typeof i.constructor!="function"){const p={};return u.set(i,p),t.copyProperties(p,i,c,u),p}switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const p=new i.constructor(i?.valueOf());return t.copyProperties(p,i),p}case n.argumentsTag:{const p={};return t.copyProperties(p,i),p.length=i.length,p[Symbol.iterator]=i[Symbol.iterator],p}default:return}}})}e.cloneDeepWith=o})(hu)),hu}var Xh;function S$(){return Xh||(Xh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=P$();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(mu)),mu}var gu={},yu={},Zh;function gS(){return Zh||(Zh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,o=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<o;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(yu)),yu}var bu={},Jh;function O$(){return Jh||(Jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vp();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(bu)),bu}var Qh;function E$(){return Qh||(Qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iS(),r=gS(),n=O$(),o=cp();function i(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=o.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||n.isArguments(c))&&r.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=i})(gu)),gu}var eg;function C$(){return eg||(eg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vS(),r=lp(),n=S$(),o=up(),i=E$();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=r.toKey(s);break}}return l=n.cloneDeep(l),function(c){const u=o.get(c,s);return u===void 0?i.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(vu)),vu}var tg;function A$(){return tg||(tg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uS(),r=h$(),n=w$(),o=C$();function i(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?o.matchesProperty(a[0],a[1]):n.matches(a);case"string":case"symbol":case"number":return r.property(a)}}e.iteratee=i})(eu)),eu}var rg;function _$(){return rg||(rg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d$(),r=f$(),n=uS(),o=m$(),i=A$();function a(s,l=n.identity){return o.isArrayLikeObject(s)?t.uniqBy(Array.from(s),r.ary(i.iteratee(l),1)):[]}e.uniqBy=a})(Hc)),Hc}var xu,ng;function T$(){return ng||(ng=1,xu=_$().uniqBy),xu}var j$=T$();const og=Jr(j$);function yS(e,t,r){return t===!0?og(e,r):typeof t=="function"?og(e,t):e}var pa={exports:{}},wu={},va={exports:{}},Pu={};var ig;function N$(){if(ig)return Pu;ig=1;var e=A;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(d,p){var v=p(),g=n({inst:{value:v,getSnapshot:p}}),m=g[0].inst,h=g[1];return i(function(){m.value=v,m.getSnapshot=p,l(m)&&h({inst:m})},[d,v,p]),o(function(){return l(m)&&h({inst:m}),d(function(){l(m)&&h({inst:m})})},[d]),a(v),v}function l(d){var p=d.getSnapshot;d=d.value;try{var v=p();return!r(d,v)}catch{return!0}}function c(d,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Pu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Pu}var Su={};var ag;function M$(){return ag||(ag=1,process.env.NODE_ENV!=="production"&&(function(){function e(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function t(v,g){u||o.startTransition===void 0||(u=!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 m=g();if(!d){var h=g();i(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}h=a({inst:{value:m,getSnapshot:g}});var b=h[0].inst,x=h[1];return l(function(){b.value=m,b.getSnapshot=g,r(b)&&x({inst:b})},[v,m,g]),s(function(){return r(b)&&x({inst:b}),v(function(){r(b)&&x({inst:b})})},[v]),c(m),m}function r(v){var g=v.getSnapshot;v=v.value;try{var m=g();return!i(v,m)}catch{return!0}}function n(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=A,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Su.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Su}var sg;function bS(){return sg||(sg=1,process.env.NODE_ENV==="production"?va.exports=N$():va.exports=M$()),va.exports}var lg;function I$(){if(lg)return wu;lg=1;var e=A,t=bS();function r(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return wu.useSyncExternalStoreWithSelector=function(c,u,d,p,v){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function b(S){if(!x){if(x=!0,w=S,S=p(S),v!==void 0&&m.hasValue){var E=m.value;if(v(E,S))return P=E}return P=S}if(E=P,n(w,S))return E;var C=p(S);return v!==void 0&&v(E,C)?(w=S,E):(w=S,P=C)}var x=!1,w,P,O=d===void 0?null:d;return[function(){return b(u())},O===null?void 0:function(){return b(O())}]},[u,d,p,v]);var h=o(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},wu}var Ou={};var cg;function k$(){return cg||(cg=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=A,r=bS(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;Ou.useSyncExternalStoreWithSelector=function(c,u,d,p,v){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function b(S){if(!x){if(x=!0,w=S,S=p(S),v!==void 0&&m.hasValue){var E=m.value;if(v(E,S))return P=E}return P=S}if(E=P,n(w,S))return E;var C=p(S);return v!==void 0&&v(E,C)?(w=S,E):(w=S,P=C)}var x=!1,w,P,O=d===void 0?null:d;return[function(){return b(u())},O===null?void 0:function(){return b(O())}]},[u,d,p,v]);var h=o(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ou}var ug;function R$(){return ug||(ug=1,process.env.NODE_ENV==="production"?pa.exports=I$():pa.exports=k$()),pa.exports}var D$=R$(),mp=A.createContext(null),$$=e=>e,Pe=()=>{var e=A.useContext(mp);return e?e.store.dispatch:$$},Ba=()=>{},L$=()=>Ba,F$=(e,t)=>e===t;function J(e){var t=A.useContext(mp),r=A.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ba,[t,e]);return D$.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:L$,t?t.store.getState:Ba,t?t.store.getState:Ba,r,F$)}var z$=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
54
+ A`).concat(i,",").concat(i,",0,1,1,").concat(a,",").concat(o),className:"recharts-legend-icon"});if(l==="rect")return f.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Mt/8,"h").concat(Mt,"v").concat(Mt*3/4,"h").concat(-Mt,"z"),className:"recharts-legend-icon"});if(f.isValidElement(t.legendIcon)){var u=o$({},t);return delete u.legendIcon,f.cloneElement(t.legendIcon,u)}return f.createElement(dp,{fill:s,cx:o,cy:o,size:Mt,sizeType:"diameter",type:l})}function u$(e){var{payload:t,iconSize:r,layout:n,formatter:o,inactiveColor:i,iconType:a}=e,s={x:0,y:0,width:Mt,height:Mt},l={display:n==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((u,d)=>{var p=u.formatter||o,v=de({"recharts-legend-item":!0,["legend-item-".concat(d)]:!0,inactive:u.inactive});if(u.type==="none")return null;var g=u.inactive?i:u.color,m=p?p(u.value,u,d):u.value;return f.createElement("li",ns({className:v,style:l,key:"legend-item-".concat(d)},Oi(e,u,d)),f.createElement(op,{width:r,height:r,viewBox:s,style:c,"aria-label":"".concat(m," legend icon")},f.createElement(c$,{data:u,iconType:a,inactiveColor:i})),f.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},m))})}var d$=e=>{var t=Le(e,l$),{payload:r,layout:n,align:o}=t;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:n==="horizontal"?o:"left"};return f.createElement("ul",{className:"recharts-default-legend",style:i},f.createElement(u$,ns({},t,{payload:r})))},Hc={},Gc={},Th;function f$(){return Th||(Th=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const o=new Map;for(let i=0;i<r.length;i++){const a=r[i],s=n(a,i,r);o.has(s)||o.set(s,a)}return Array.from(o.values())}e.uniqBy=t})(Gc)),Gc}var qc={},jh;function p$(){return jh||(jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return function(...o){return r.apply(this,o.slice(0,n))}}e.ary=t})(qc)),qc}var Yc={},Nh;function uS(){return Nh||(Nh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Yc)),Yc}var Xc={},Zc={},Jc={},Mh;function v$(){return Mh||(Mh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Jc)),Jc}var Ih;function pp(){return Ih||(Ih=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=v$();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(Zc)),Zc}var Qc={},kh;function m$(){return kh||(kh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(Qc)),Qc}var Rh;function h$(){return Rh||(Rh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pp(),r=m$();function n(o){return r.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=n})(Xc)),Xc}var eu={},tu={},Dh;function g$(){return Dh||(Dh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=up();function r(n){return function(o){return t.get(o,n)}}e.property=r})(tu)),tu}var ru={},nu={},ou={},iu={},$h;function dS(){return $h||($h=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(iu)),iu}var au={},Lh;function fS(){return Lh||(Lh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(au)),au}var su={},Fh;function pS(){return Fh||(Fh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(su)),su}var zh;function y$(){return zh||(zh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dS(),r=fS(),n=pS();function o(u,d,p){return typeof p!="function"?o(u,d,()=>{}):i(u,d,function v(g,m,h,b,x,w){const P=p(g,m,h,b,x,w);return P!==void 0?!!P:i(g,m,v,w)},new Map)}function i(u,d,p,v){if(d===u)return!0;switch(typeof d){case"object":return a(u,d,p,v);case"function":return Object.keys(d).length>0?i(u,{...d},p,v):n.isEqualsSameValueZero(u,d);default:return t.isObject(u)?typeof d=="string"?d==="":!0:n.isEqualsSameValueZero(u,d)}}function a(u,d,p,v){if(d==null)return!0;if(Array.isArray(d))return l(u,d,p,v);if(d instanceof Map)return s(u,d,p,v);if(d instanceof Set)return c(u,d,p,v);const g=Object.keys(d);if(u==null||r.isPrimitive(u))return g.length===0;if(g.length===0)return!0;if(v?.has(d))return v.get(d)===u;v?.set(d,u);try{for(let m=0;m<g.length;m++){const h=g[m];if(!r.isPrimitive(u)&&!(h in u)||d[h]===void 0&&u[h]!==void 0||d[h]===null&&u[h]!==null||!p(u[h],d[h],h,u,d,v))return!1}return!0}finally{v?.delete(d)}}function s(u,d,p,v){if(d.size===0)return!0;if(!(u instanceof Map))return!1;for(const[g,m]of d.entries()){const h=u.get(g);if(p(h,m,g,u,d,v)===!1)return!1}return!0}function l(u,d,p,v){if(d.length===0)return!0;if(!Array.isArray(u))return!1;const g=new Set;for(let m=0;m<d.length;m++){const h=d[m];let b=!1;for(let x=0;x<u.length;x++){if(g.has(x))continue;const w=u[x];let P=!1;if(p(w,h,m,u,d,v)&&(P=!0),P){g.add(x),b=!0;break}}if(!b)return!1}return!0}function c(u,d,p,v){return d.size===0?!0:u instanceof Set?l([...u],[...d],p,v):!1}e.isMatchWith=o,e.isSetMatch=c})(ou)),ou}var Bh;function vS(){return Bh||(Bh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=y$();function r(n,o){return t.isMatchWith(n,o,()=>{})}e.isMatch=r})(nu)),nu}var lu={},cu={},uu={},Vh;function b$(){return Vh||(Vh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(uu)),uu}var du={},Wh;function vp(){return Wh||(Wh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(du)),du}var fu={},Kh;function mS(){return Kh||(Kh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",o="[object Boolean]",i="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",p="[object ArrayBuffer]",v="[object Object]",g="[object Error]",m="[object DataView]",h="[object Uint8Array]",b="[object Uint8ClampedArray]",x="[object Uint16Array]",w="[object Uint32Array]",P="[object BigUint64Array]",O="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",C="[object BigInt64Array]",N="[object Float32Array]",D="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=C,e.bigUint64ArrayTag=P,e.booleanTag=o,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=N,e.float64ArrayTag=D,e.functionTag=d,e.int16ArrayTag=S,e.int32ArrayTag=E,e.int8ArrayTag=O,e.mapTag=l,e.numberTag=n,e.objectTag=v,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=a,e.uint16ArrayTag=x,e.uint32ArrayTag=w,e.uint8ArrayTag=h,e.uint8ClampedArrayTag=b})(fu)),fu}var pu={},Uh;function x$(){return Uh||(Uh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(pu)),pu}var Hh;function hS(){return Hh||(Hh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=b$(),r=vp(),n=mS(),o=fS(),i=x$();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,p,v=new Map,g=void 0){const m=g?.(u,d,p,v);if(m!==void 0)return m;if(o.isPrimitive(u))return u;if(v.has(u))return v.get(u);if(Array.isArray(u)){const h=new Array(u.length);v.set(u,h);for(let b=0;b<u.length;b++)h[b]=s(u[b],b,p,v,g);return Object.hasOwn(u,"index")&&(h.index=u.index),Object.hasOwn(u,"input")&&(h.input=u.input),h}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const h=new RegExp(u.source,u.flags);return h.lastIndex=u.lastIndex,h}if(u instanceof Map){const h=new Map;v.set(u,h);for(const[b,x]of u)h.set(b,s(x,b,p,v,g));return h}if(u instanceof Set){const h=new Set;v.set(u,h);for(const b of u)h.add(s(b,void 0,p,v,g));return h}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(i.isTypedArray(u)){const h=new(Object.getPrototypeOf(u)).constructor(u.length);v.set(u,h);for(let b=0;b<u.length;b++)h[b]=s(u[b],b,p,v,g);return h}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const h=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return v.set(u,h),l(h,u,p,v,g),h}if(typeof File<"u"&&u instanceof File){const h=new File([u],u.name,{type:u.type});return v.set(u,h),l(h,u,p,v,g),h}if(typeof Blob<"u"&&u instanceof Blob){const h=new Blob([u],{type:u.type});return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof Error){const h=new u.constructor;return v.set(u,h),h.message=u.message,h.name=u.name,h.stack=u.stack,h.cause=u.cause,l(h,u,p,v,g),h}if(u instanceof Boolean){const h=new Boolean(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof Number){const h=new Number(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof String){const h=new String(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(typeof u=="object"&&c(u)){const h=Object.create(Object.getPrototypeOf(u));return v.set(u,h),l(h,u,p,v,g),h}return u}function l(u,d,p=u,v,g){const m=[...Object.keys(d),...t.getSymbols(d)];for(let h=0;h<m.length;h++){const b=m[h],x=Object.getOwnPropertyDescriptor(u,b);(x==null||x.writable)&&(u[b]=s(d[b],b,p,v,g))}}function c(u){switch(r.getTag(u)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(cu)),cu}var Gh;function w$(){return Gh||(Gh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hS();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(lu)),lu}var qh;function P$(){return qh||(qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vS(),r=w$();function n(o){return o=r.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=n})(ru)),ru}var vu={},mu={},hu={},Yh;function S$(){return Yh||(Yh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hS(),r=vp(),n=mS();function o(i,a){return t.cloneDeepWith(i,(s,l,c,u)=>{const d=a?.(s,l,c,u);if(d!==void 0)return d;if(typeof i=="object"){if(r.getTag(i)===n.objectTag&&typeof i.constructor!="function"){const p={};return u.set(i,p),t.copyProperties(p,i,c,u),p}switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const p=new i.constructor(i?.valueOf());return t.copyProperties(p,i),p}case n.argumentsTag:{const p={};return t.copyProperties(p,i),p.length=i.length,p[Symbol.iterator]=i[Symbol.iterator],p}default:return}}})}e.cloneDeepWith=o})(hu)),hu}var Xh;function O$(){return Xh||(Xh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=S$();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(mu)),mu}var gu={},yu={},Zh;function gS(){return Zh||(Zh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,o=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<o;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(yu)),yu}var bu={},Jh;function E$(){return Jh||(Jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vp();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(bu)),bu}var Qh;function C$(){return Qh||(Qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iS(),r=gS(),n=E$(),o=cp();function i(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=o.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||n.isArguments(c))&&r.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=i})(gu)),gu}var eg;function A$(){return eg||(eg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vS(),r=lp(),n=O$(),o=up(),i=C$();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=r.toKey(s);break}}return l=n.cloneDeep(l),function(c){const u=o.get(c,s);return u===void 0?i.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(vu)),vu}var tg;function _$(){return tg||(tg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uS(),r=g$(),n=P$(),o=A$();function i(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?o.matchesProperty(a[0],a[1]):n.matches(a);case"string":case"symbol":case"number":return r.property(a)}}e.iteratee=i})(eu)),eu}var rg;function T$(){return rg||(rg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=f$(),r=p$(),n=uS(),o=h$(),i=_$();function a(s,l=n.identity){return o.isArrayLikeObject(s)?t.uniqBy(Array.from(s),r.ary(i.iteratee(l),1)):[]}e.uniqBy=a})(Hc)),Hc}var xu,ng;function j$(){return ng||(ng=1,xu=T$().uniqBy),xu}var N$=j$();const og=Jr(N$);function yS(e,t,r){return t===!0?og(e,r):typeof t=="function"?og(e,t):e}var pa={exports:{}},wu={},va={exports:{}},Pu={};var ig;function M$(){if(ig)return Pu;ig=1;var e=A;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(d,p){var v=p(),g=n({inst:{value:v,getSnapshot:p}}),m=g[0].inst,h=g[1];return i(function(){m.value=v,m.getSnapshot=p,l(m)&&h({inst:m})},[d,v,p]),o(function(){return l(m)&&h({inst:m}),d(function(){l(m)&&h({inst:m})})},[d]),a(v),v}function l(d){var p=d.getSnapshot;d=d.value;try{var v=p();return!r(d,v)}catch{return!0}}function c(d,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Pu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Pu}var Su={};var ag;function I$(){return ag||(ag=1,process.env.NODE_ENV!=="production"&&(function(){function e(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function t(v,g){u||o.startTransition===void 0||(u=!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 m=g();if(!d){var h=g();i(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}h=a({inst:{value:m,getSnapshot:g}});var b=h[0].inst,x=h[1];return l(function(){b.value=m,b.getSnapshot=g,r(b)&&x({inst:b})},[v,m,g]),s(function(){return r(b)&&x({inst:b}),v(function(){r(b)&&x({inst:b})})},[v]),c(m),m}function r(v){var g=v.getSnapshot;v=v.value;try{var m=g();return!i(v,m)}catch{return!0}}function n(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=A,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Su.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Su}var sg;function bS(){return sg||(sg=1,process.env.NODE_ENV==="production"?va.exports=M$():va.exports=I$()),va.exports}var lg;function k$(){if(lg)return wu;lg=1;var e=A,t=bS();function r(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return wu.useSyncExternalStoreWithSelector=function(c,u,d,p,v){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function b(S){if(!x){if(x=!0,w=S,S=p(S),v!==void 0&&m.hasValue){var E=m.value;if(v(E,S))return P=E}return P=S}if(E=P,n(w,S))return E;var C=p(S);return v!==void 0&&v(E,C)?(w=S,E):(w=S,P=C)}var x=!1,w,P,O=d===void 0?null:d;return[function(){return b(u())},O===null?void 0:function(){return b(O())}]},[u,d,p,v]);var h=o(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},wu}var Ou={};var cg;function R$(){return cg||(cg=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=A,r=bS(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;Ou.useSyncExternalStoreWithSelector=function(c,u,d,p,v){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function b(S){if(!x){if(x=!0,w=S,S=p(S),v!==void 0&&m.hasValue){var E=m.value;if(v(E,S))return P=E}return P=S}if(E=P,n(w,S))return E;var C=p(S);return v!==void 0&&v(E,C)?(w=S,E):(w=S,P=C)}var x=!1,w,P,O=d===void 0?null:d;return[function(){return b(u())},O===null?void 0:function(){return b(O())}]},[u,d,p,v]);var h=o(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ou}var ug;function D$(){return ug||(ug=1,process.env.NODE_ENV==="production"?pa.exports=k$():pa.exports=R$()),pa.exports}var $$=D$(),mp=A.createContext(null),L$=e=>e,Pe=()=>{var e=A.useContext(mp);return e?e.store.dispatch:L$},Ba=()=>{},F$=()=>Ba,z$=(e,t)=>e===t;function J(e){var t=A.useContext(mp),r=A.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ba,[t,e]);return $$.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:F$,t?t.store.getState:Ba,t?t.store.getState:Ba,r,z$)}var B$=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
55
55
  \`createSelector([state => state.todos], todos => todos)\`
56
56
  This could lead to inefficient memoization and unnecessary re-renders.
57
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},B$=(e,t,r)=>{const{memoize:n,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,s=n(()=>({}),...o);if(!(s.apply(null,i)===s.apply(null,a))){let c;try{throw new Error}catch(u){({stack:c}=u)}console.warn(`An input selector returned a different result when passed same arguments.
57
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},V$=(e,t,r)=>{const{memoize:n,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,s=n(()=>({}),...o);if(!(s.apply(null,i)===s.apply(null,a))){let c;try{throw new Error}catch(u){({stack:c}=u)}console.warn(`An input selector returned a different result when passed same arguments.
58
58
  This means your output selector will likely run more frequently than intended.
59
59
  Avoid returning a new reference inside your input selector, e.g.
60
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:i,secondInputs:a,stack:c})}},V$={inputStabilityCheck:"once",identityFunctionCheck:"once"};function W$(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function K$(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function U$(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var dg=e=>Array.isArray(e)?e:[e];function H$(e){const t=Array.isArray(e[0])?e[0]:e;return U$(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function fg(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var G$=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...V$,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:z$},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:B$}}},q$=class{constructor(e){this.value=e}deref(){return this.value}},Y$=typeof WeakRef<"u"?WeakRef:q$,X$=0,pg=1;function ma(){return{s:X$,v:void 0,o:null,p:null}}function xS(e,t={}){let r=ma();const{resultEqualityCheck:n}=t;let o,i=0;function a(){let s=r;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const v=arguments[d];if(typeof v=="function"||typeof v=="object"&&v!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const m=g.get(v);m===void 0?(s=ma(),g.set(v,s)):s=m}else{let g=s.p;g===null&&(s.p=g=new Map);const m=g.get(v);m===void 0?(s=ma(),g.set(v,s)):s=m}}const c=s;let u;if(s.s===pg)u=s.v;else if(u=e.apply(null,arguments),i++,n){const d=o?.deref?.()??o;d!=null&&n(d,u)&&(u=d,i!==0&&i--),o=typeof u=="object"&&u!==null||typeof u=="function"?new Y$(u):u}return c.s=pg,c.v=u,u}return a.clearCache=()=>{r=ma(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function Z$(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),W$(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:v=xS,argsMemoizeOptions:g=[],devModeChecks:m={}}=u,h=dg(p),b=dg(g),x=H$(o),w=d(function(){return i++,c.apply(null,arguments)},...h);let P=!0;const O=v(function(){a++;const E=fg(x,arguments);if(s=w.apply(null,E),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:C,inputStabilityCheck:N}=G$(P,m);if(C.shouldRun&&C.run(c,E,s),N.shouldRun){const D=fg(x,arguments);N.run({inputSelectorResults:E,inputSelectorResultsCopy:D},{memoize:d,memoizeOptions:h},arguments)}P&&(P=!1)}return s},...b);return Object.assign(O,{resultFunc:c,memoizedResultFunc:w,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var j=Z$(xS),J$=Object.assign((e,t=j)=>{K$(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>J$}),Eu={},Cu={},Au={},vg;function Q$(){return vg||(vg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,o,i)=>{if(n!==o){const a=t(n),s=t(o);if(a===s&&a===0){if(n<o)return i==="desc"?1:-1;if(n>o)return i==="desc"?-1:1}return i==="desc"?s-a:a-s}return 0};e.compareValues=r})(Au)),Au}var _u={},Tu={},mg;function wS(){return mg||(mg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Tu)),Tu}var hg;function eL(){return hg||(hg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wS(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(i,a){return Array.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||t.isSymbol(i)?!0:typeof i=="string"&&(n.test(i)||!r.test(i))||a!=null&&Object.hasOwn(a,i)}e.isKey=o})(_u)),_u}var gg;function tL(){return gg||(gg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Q$(),r=eL(),n=cp();function o(i,a,s,l){if(i==null)return[];s=l?void 0:s,Array.isArray(i)||(i=Object.values(i)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(v=>String(v));const c=(v,g)=>{let m=v;for(let h=0;h<g.length&&m!=null;++h)m=m[g[h]];return m},u=(v,g)=>g==null||v==null?g:typeof v=="object"&&"key"in v?Object.hasOwn(g,v.key)?g[v.key]:c(g,v.path):typeof v=="function"?v(g):Array.isArray(v)?c(g,v):typeof g=="object"?g[v]:g,d=a.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return i.map(v=>({original:v,criteria:d.map(g=>u(g,v))})).slice().sort((v,g)=>{for(let m=0;m<d.length;m++){const h=t.compareValues(v.criteria[m],g.criteria[m],s[m]);if(h!==0)return h}return 0}).map(v=>v.original)}e.orderBy=o})(Cu)),Cu}var ju={},yg;function rL(){return yg||(yg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const o=[],i=Math.floor(n),a=(s,l)=>{for(let c=0;c<s.length;c++){const u=s[c];Array.isArray(u)&&l<i?a(u,l+1):o.push(u)}};return a(r,0),o}e.flatten=t})(ju)),ju}var Nu={},bg;function PS(){return bg||(bg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gS(),r=pp(),n=dS(),o=pS();function i(a,s,l){return n.isObject(l)&&(typeof s=="number"&&r.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?o.isEqualsSameValueZero(l[s],a):!1}e.isIterateeCall=i})(Nu)),Nu}var xg;function nL(){return xg||(xg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tL(),r=rL(),n=PS();function o(i,...a){const s=a.length;return s>1&&n.isIterateeCall(i,a[0],a[1])?a=[]:s>2&&n.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(i,r.flatten(a),["asc"])}e.sortBy=o})(Eu)),Eu}var Mu,wg;function oL(){return wg||(wg=1,Mu=nL().sortBy),Mu}var iL=oL();const ml=Jr(iL);var SS=e=>e.legend.settings,aL=e=>e.legend.size,sL=e=>e.legend.payload,lL=j([sL,SS],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?ml(n,r):n});function cL(){return J(lL)}var ha=1;function OS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=A.useState({height:0,left:0,top:0,width:0}),n=A.useCallback(o=>{if(o!=null){var i=o.getBoundingClientRect(),a={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(a.height-t.height)>ha||Math.abs(a.left-t.left)>ha||Math.abs(a.top-t.top)>ha||Math.abs(a.width-t.width)>ha)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function tt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var uL=typeof Symbol=="function"&&Symbol.observable||"@@observable",Pg=uL,Iu=()=>Math.random().toString(36).substring(7).split("").join("."),dL={INIT:`@@redux/INIT${Iu()}`,REPLACE:`@@redux/REPLACE${Iu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Iu()}`},bn=dL;function Ei(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function fL(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(mL(e))return"date";if(vL(e))return"error";const r=pL(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function pL(e){return typeof e.constructor=="function"?e.constructor.name:null}function vL(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function mL(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Lr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=fL(e)),t}function ES(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?tt(2):`Expected the root reducer to be a function. Instead, received: '${Lr(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?tt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?tt(1):`Expected the enhancer to be a function. Instead, received: '${Lr(r)}'`);return r(ES)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((h,b)=>{a.set(b,h)}))}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?tt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?tt(4):`Expected the listener to be a function. Instead, received: '${Lr(h)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?tt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let b=!0;c();const x=s++;return a.set(x,h),function(){if(b){if(l)throw new Error(process.env.NODE_ENV==="production"?tt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,c(),a.delete(x),i=null}}}function p(h){if(!Ei(h))throw new Error(process.env.NODE_ENV==="production"?tt(7):`Actions must be plain objects. Instead, the actual type was: '${Lr(h)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof h.type>"u")throw new Error(process.env.NODE_ENV==="production"?tt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof h.type!="string")throw new Error(process.env.NODE_ENV==="production"?tt(17):`Action "type" property must be a string. Instead, the actual type was: '${Lr(h.type)}'. Value was: '${h.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?tt(9):"Reducers may not dispatch actions.");try{l=!0,o=n(o,h)}finally{l=!1}return(i=a).forEach(x=>{x()}),h}function v(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?tt(10):`Expected the nextReducer to be a function. Instead, received: '${Lr(h)}`);n=h,p({type:bn.REPLACE})}function g(){const h=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?tt(11):`Expected the observer to be an object. Instead, received: '${Lr(b)}'`);function x(){const P=b;P.next&&P.next(u())}return x(),{unsubscribe:h(x)}},[Pg](){return this}}}return p({type:bn.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:v,[Pg]:g}}function Sg(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function hL(e,t,r,n){const o=Object.keys(t),i=r&&r.type===bn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Ei(e))return`The ${i} has unexpected type of "${Lr(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const a=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!n[s]);if(a.forEach(s=>{n[s]=!0}),!(r&&r.type===bn.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function gL(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:bn.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?tt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?tt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${bn.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function CS(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const s=t[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Sg(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let i;try{gL(r)}catch(a){i=a}return function(s={},l){if(i)throw i;if(process.env.NODE_ENV!=="production"){const d=hL(s,r,l,o);d&&Sg(d)}let c=!1;const u={};for(let d=0;d<n.length;d++){const p=n[d],v=r[p],g=s[p],m=v(g,l);if(typeof m>"u"){const h=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?tt(14):`When called with an action of type ${h?`"${String(h)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[p]=m,c=c||m!==g}return c=c||n.length!==Object.keys(s).length,c?u:s}}function os(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function yL(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?tt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:o.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(a));return i=os(...s)(o.dispatch),{...o,dispatch:i}}}function hp(e){return Ei(e)&&"type"in e&&typeof e.type=="string"}var AS=Symbol.for("immer-nothing"),Og=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state"),bL=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function St(e,...t){if(process.env.NODE_ENV!=="production"){const r=bL[e],n=pn(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Et=Object,lo=Et.getPrototypeOf,is="constructor",hl="prototype",Md="configurable",as="enumerable",Va="writable",Jo="value",yr=e=>!!e&&!!e[ht];function Vt(e){return e?_S(e)||yl(e)||!!e[Og]||!!e[is]?.[Og]||bl(e)||xl(e):!1}var xL=Et[hl][is].toString(),Eg=new WeakMap;function _S(e){if(!e||!gp(e))return!1;const t=lo(e);if(t===null||t===Et[hl])return!0;const r=Et.hasOwnProperty.call(t,is)&&t[is];if(r===Object)return!0;if(!pn(r))return!1;let n=Eg.get(r);return n===void 0&&(n=Function.toString.call(r),Eg.set(r,n)),n===xL}function gl(e,t,r=!0){Ci(e)===0?(r?Reflect.ownKeys(e):Et.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Ci(e){const t=e[ht];return t?t.type_:yl(e)?1:bl(e)?2:xl(e)?3:0}var Cg=(e,t,r=Ci(e))=>r===2?e.has(t):Et[hl].hasOwnProperty.call(e,t),Id=(e,t,r=Ci(e))=>r===2?e.get(t):e[t],ss=(e,t,r,n=Ci(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function wL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var yl=Array.isArray,bl=e=>e instanceof Map,xl=e=>e instanceof Set,gp=e=>typeof e=="object",pn=e=>typeof e=="function",ku=e=>typeof e=="boolean";function PL(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var fr=e=>e.copy_||e.base_,yp=e=>e.modified_?e.copy_:e.base_;function kd(e,t){if(bl(e))return new Map(e);if(xl(e))return new Set(e);if(yl(e))return Array[hl].slice.call(e);const r=_S(e);if(t===!0||t==="class_only"&&!r){const n=Et.getOwnPropertyDescriptors(e);delete n[ht];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s[Va]===!1&&(s[Va]=!0,s[Md]=!0),(s.get||s.set)&&(n[a]={[Md]:!0,[Va]:!0,[as]:s[as],[Jo]:e[a]})}return Et.create(lo(e),n)}else{const n=lo(e);if(n!==null&&r)return{...e};const o=Et.create(n);return Et.assign(o,e)}}function bp(e,t=!1){return wl(e)||yr(e)||!Vt(e)||(Ci(e)>1&&Et.defineProperties(e,{set:ga,add:ga,clear:ga,delete:ga}),Et.freeze(e),t&&gl(e,(r,n)=>{bp(n,!0)},!1)),e}function SL(){St(2)}var ga={[Jo]:SL};function wl(e){return e===null||!gp(e)?!0:Et.isFrozen(e)}var ls="MapSet",Rd="Patches",Ag="ArrayMethods",TS={};function _n(e){const t=TS[e];return t||St(0,e),t}var _g=e=>!!TS[e],Qo,jS=()=>Qo,OL=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:_g(ls)?_n(ls):void 0,arrayMethodsPlugin_:_g(Ag)?_n(Ag):void 0});function Tg(e,t){t&&(e.patchPlugin_=_n(Rd),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Dd(e){$d(e),e.drafts_.forEach(EL),e.drafts_=null}function $d(e){e===Qo&&(Qo=e.parent_)}var jg=e=>Qo=OL(Qo,e);function EL(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ng(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[ht].modified_&&(Dd(t),St(4)),Vt(e)&&(e=Mg(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[ht].base_,e,t)}else e=Mg(t,r);return CL(t,e,!0),Dd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AS?e:void 0}function Mg(e,t){if(wl(t))return t;const r=t[ht];if(!r)return cs(t,e.handledSet_,e);if(!Pl(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);IS(r,e)}return r.copy_}function CL(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&bp(t,r)}function NS(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Pl=(e,t)=>e.scope_===t,AL=[];function MS(e,t,r,n){const o=fr(e),i=e.type_;if(n!==void 0&&Id(o,n,i)===t){ss(o,n,r,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;gl(o,(l,c)=>{if(yr(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const a=e.draftLocations_.get(t)??AL;for(const s of a)ss(o,s,r,i)}function _L(e,t,r){e.callbacks_.push(function(o){const i=t;if(!i||!Pl(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const a=yp(i);MS(e,i.draft_??i,a,r),IS(i,o)})}function IS(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}NS(e)}}function TL(e,t,r){const{scope_:n}=e;if(yr(r)){const o=r[ht];Pl(o,n)&&o.callbacks_.push(function(){Wa(e);const a=yp(o);MS(e,r,a,t)})}else Vt(r)&&e.callbacks_.push(function(){const i=fr(e);e.type_===3?i.has(r)&&cs(r,n.handledSet_,n):Id(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&cs(Id(e.copy_,t,e.type_),n.handledSet_,n)})}function cs(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||yr(e)||t.has(e)||!Vt(e)||wl(e)||(t.add(e),gl(e,(n,o)=>{if(yr(o)){const i=o[ht];if(Pl(i,r)){const a=yp(i);ss(e,n,a,e.type_),NS(i)}}else Vt(o)&&cs(o,t,r)})),e}function jL(e,t){const r=yl(e),n={type_:r?1:0,scope_:t?t.scope_:jS(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,i=us;r&&(o=[n],i=ei);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var us={get(e,t){if(t===ht)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const o=fr(e);if(!Cg(o,t,e.type_))return NL(e,o,t);const i=o[t];if(e.finalized_||!Vt(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&PL(t))return i;if(i===Ru(e.base_,t)){Wa(e);const a=e.type_===1?+t:t,s=Fd(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in fr(e)},ownKeys(e){return Reflect.ownKeys(fr(e))},set(e,t,r){const n=kS(fr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Ru(fr(e),t),i=o?.[ht];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(wL(r,o)&&(r!==void 0||Cg(e.base_,t,e.type_)))return!0;Wa(e),Ld(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),TL(e,t,r)),!0},deleteProperty(e,t){return Wa(e),Ru(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ld(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=fr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Va]:!0,[Md]:e.type_!==1||t!=="length",[as]:n[as],[Jo]:r[t]}},defineProperty(){St(11)},getPrototypeOf(e){return lo(e.base_)},setPrototypeOf(){St(12)}},ei={};for(let e in us){let t=us[e];ei[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ei.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&St(13),ei.set.call(this,e,t,void 0)};ei.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&St(14),us.set.call(this,e[0],t,r,e[0])};function Ru(e,t){const r=e[ht];return(r?fr(r):e)[t]}function NL(e,t,r){const n=kS(t,r);return n?Jo in n?n[Jo]:n.get?.call(e.draft_):void 0}function kS(e,t){if(!(t in e))return;let r=lo(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=lo(r)}}function Ld(e){e.modified_||(e.modified_=!0,e.parent_&&Ld(e.parent_))}function Wa(e){e.copy_||(e.assigned_=new Map,e.copy_=kd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ML=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,o)=>{if(pn(r)&&!pn(n)){const a=n;n=r;const s=this;return function(c=a,...u){return s.produce(c,d=>n.call(this,d,...u))}}pn(n)||St(6),o!==void 0&&!pn(o)&&St(7);let i;if(Vt(r)){const a=jg(this),s=Fd(a,r,void 0);let l=!0;try{i=n(s),l=!1}finally{l?Dd(a):$d(a)}return Tg(a,o),Ng(i,a)}else if(!r||!gp(r)){if(i=n(r),i===void 0&&(i=r),i===AS&&(i=void 0),this.autoFreeze_&&bp(i,!0),o){const a=[],s=[];_n(Rd).generateReplacementPatches_(r,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else St(1,r)},this.produceWithPatches=(r,n)=>{if(pn(r))return(s,...l)=>this.produceWithPatches(s,c=>r(c,...l));let o,i;return[this.produce(r,n,(s,l)=>{o=s,i=l}),o,i]},ku(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ku(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ku(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Vt(t)||St(8),yr(t)&&(t=Bt(t));const r=jg(this),n=Fd(r,t,void 0);return n[ht].isManual_=!0,$d(r),n}finishDraft(t,r){const n=t&&t[ht];(!n||!n.isManual_)&&St(9);const{scope_:o}=n;return Tg(o,r),Ng(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const i=r[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(r=r.slice(n+1));const o=_n(Rd).applyPatches_;return yr(t)?o(t,r):this.produce(t,i=>o(i,r))}};function Fd(e,t,r,n){const[o,i]=bl(t)?_n(ls).proxyMap_(t,r):xl(t)?_n(ls).proxySet_(t,r):jL(t,r);return(r?.scope_??jS()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?_L(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),o}function Bt(e){return yr(e)||St(10,e),RS(e)}function RS(e){if(!Vt(e)||wl(e))return e;const t=e[ht];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=kd(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=kd(e,!0);return gl(r,(o,i)=>{ss(r,o,RS(i))},n),t&&(t.finalized_=!1),r}var IL=new ML,DS=IL.produce;function $S(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var kL=$S(),RL=$S,DL=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?os:os.apply(null,arguments)},$L=e=>e&&typeof e.match=="function";function Rt(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?me(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>hp(n)&&n.type===e,r}function LL(e){return typeof e=="function"&&"type"in e&&$L(e)}function FL(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
61
- Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function zL(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=LL}=e;return()=>r=>n=>(t(n)&&console.warn(FL(n.type)),r(n))}function LS(e,t){let r=0;return{measureTime(n){const o=Date.now();try{return n()}finally{const i=Date.now();r+=i-o}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
60
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:i,secondInputs:a,stack:c})}},W$={inputStabilityCheck:"once",identityFunctionCheck:"once"};function K$(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function U$(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function H$(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var dg=e=>Array.isArray(e)?e:[e];function G$(e){const t=Array.isArray(e[0])?e[0]:e;return H$(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function fg(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var q$=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...W$,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:B$},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:V$}}},Y$=class{constructor(e){this.value=e}deref(){return this.value}},X$=typeof WeakRef<"u"?WeakRef:Y$,Z$=0,pg=1;function ma(){return{s:Z$,v:void 0,o:null,p:null}}function xS(e,t={}){let r=ma();const{resultEqualityCheck:n}=t;let o,i=0;function a(){let s=r;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const v=arguments[d];if(typeof v=="function"||typeof v=="object"&&v!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const m=g.get(v);m===void 0?(s=ma(),g.set(v,s)):s=m}else{let g=s.p;g===null&&(s.p=g=new Map);const m=g.get(v);m===void 0?(s=ma(),g.set(v,s)):s=m}}const c=s;let u;if(s.s===pg)u=s.v;else if(u=e.apply(null,arguments),i++,n){const d=o?.deref?.()??o;d!=null&&n(d,u)&&(u=d,i!==0&&i--),o=typeof u=="object"&&u!==null||typeof u=="function"?new X$(u):u}return c.s=pg,c.v=u,u}return a.clearCache=()=>{r=ma(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function J$(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),K$(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:v=xS,argsMemoizeOptions:g=[],devModeChecks:m={}}=u,h=dg(p),b=dg(g),x=G$(o),w=d(function(){return i++,c.apply(null,arguments)},...h);let P=!0;const O=v(function(){a++;const E=fg(x,arguments);if(s=w.apply(null,E),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:C,inputStabilityCheck:N}=q$(P,m);if(C.shouldRun&&C.run(c,E,s),N.shouldRun){const D=fg(x,arguments);N.run({inputSelectorResults:E,inputSelectorResultsCopy:D},{memoize:d,memoizeOptions:h},arguments)}P&&(P=!1)}return s},...b);return Object.assign(O,{resultFunc:c,memoizedResultFunc:w,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var j=J$(xS),Q$=Object.assign((e,t=j)=>{U$(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>Q$}),Eu={},Cu={},Au={},vg;function eL(){return vg||(vg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,o,i)=>{if(n!==o){const a=t(n),s=t(o);if(a===s&&a===0){if(n<o)return i==="desc"?1:-1;if(n>o)return i==="desc"?-1:1}return i==="desc"?s-a:a-s}return 0};e.compareValues=r})(Au)),Au}var _u={},Tu={},mg;function wS(){return mg||(mg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Tu)),Tu}var hg;function tL(){return hg||(hg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wS(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(i,a){return Array.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||t.isSymbol(i)?!0:typeof i=="string"&&(n.test(i)||!r.test(i))||a!=null&&Object.hasOwn(a,i)}e.isKey=o})(_u)),_u}var gg;function rL(){return gg||(gg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eL(),r=tL(),n=cp();function o(i,a,s,l){if(i==null)return[];s=l?void 0:s,Array.isArray(i)||(i=Object.values(i)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(v=>String(v));const c=(v,g)=>{let m=v;for(let h=0;h<g.length&&m!=null;++h)m=m[g[h]];return m},u=(v,g)=>g==null||v==null?g:typeof v=="object"&&"key"in v?Object.hasOwn(g,v.key)?g[v.key]:c(g,v.path):typeof v=="function"?v(g):Array.isArray(v)?c(g,v):typeof g=="object"?g[v]:g,d=a.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return i.map(v=>({original:v,criteria:d.map(g=>u(g,v))})).slice().sort((v,g)=>{for(let m=0;m<d.length;m++){const h=t.compareValues(v.criteria[m],g.criteria[m],s[m]);if(h!==0)return h}return 0}).map(v=>v.original)}e.orderBy=o})(Cu)),Cu}var ju={},yg;function nL(){return yg||(yg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const o=[],i=Math.floor(n),a=(s,l)=>{for(let c=0;c<s.length;c++){const u=s[c];Array.isArray(u)&&l<i?a(u,l+1):o.push(u)}};return a(r,0),o}e.flatten=t})(ju)),ju}var Nu={},bg;function PS(){return bg||(bg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gS(),r=pp(),n=dS(),o=pS();function i(a,s,l){return n.isObject(l)&&(typeof s=="number"&&r.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?o.isEqualsSameValueZero(l[s],a):!1}e.isIterateeCall=i})(Nu)),Nu}var xg;function oL(){return xg||(xg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rL(),r=nL(),n=PS();function o(i,...a){const s=a.length;return s>1&&n.isIterateeCall(i,a[0],a[1])?a=[]:s>2&&n.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(i,r.flatten(a),["asc"])}e.sortBy=o})(Eu)),Eu}var Mu,wg;function iL(){return wg||(wg=1,Mu=oL().sortBy),Mu}var aL=iL();const ml=Jr(aL);var SS=e=>e.legend.settings,sL=e=>e.legend.size,lL=e=>e.legend.payload,cL=j([lL,SS],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?ml(n,r):n});function uL(){return J(cL)}var ha=1;function OS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=A.useState({height:0,left:0,top:0,width:0}),n=A.useCallback(o=>{if(o!=null){var i=o.getBoundingClientRect(),a={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(a.height-t.height)>ha||Math.abs(a.left-t.left)>ha||Math.abs(a.top-t.top)>ha||Math.abs(a.width-t.width)>ha)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function tt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var dL=typeof Symbol=="function"&&Symbol.observable||"@@observable",Pg=dL,Iu=()=>Math.random().toString(36).substring(7).split("").join("."),fL={INIT:`@@redux/INIT${Iu()}`,REPLACE:`@@redux/REPLACE${Iu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Iu()}`},bn=fL;function Ei(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function pL(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(hL(e))return"date";if(mL(e))return"error";const r=vL(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function vL(e){return typeof e.constructor=="function"?e.constructor.name:null}function mL(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function hL(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Lr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=pL(e)),t}function ES(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?tt(2):`Expected the root reducer to be a function. Instead, received: '${Lr(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?tt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?tt(1):`Expected the enhancer to be a function. Instead, received: '${Lr(r)}'`);return r(ES)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((h,b)=>{a.set(b,h)}))}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?tt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?tt(4):`Expected the listener to be a function. Instead, received: '${Lr(h)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?tt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let b=!0;c();const x=s++;return a.set(x,h),function(){if(b){if(l)throw new Error(process.env.NODE_ENV==="production"?tt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,c(),a.delete(x),i=null}}}function p(h){if(!Ei(h))throw new Error(process.env.NODE_ENV==="production"?tt(7):`Actions must be plain objects. Instead, the actual type was: '${Lr(h)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof h.type>"u")throw new Error(process.env.NODE_ENV==="production"?tt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof h.type!="string")throw new Error(process.env.NODE_ENV==="production"?tt(17):`Action "type" property must be a string. Instead, the actual type was: '${Lr(h.type)}'. Value was: '${h.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?tt(9):"Reducers may not dispatch actions.");try{l=!0,o=n(o,h)}finally{l=!1}return(i=a).forEach(x=>{x()}),h}function v(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?tt(10):`Expected the nextReducer to be a function. Instead, received: '${Lr(h)}`);n=h,p({type:bn.REPLACE})}function g(){const h=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?tt(11):`Expected the observer to be an object. Instead, received: '${Lr(b)}'`);function x(){const P=b;P.next&&P.next(u())}return x(),{unsubscribe:h(x)}},[Pg](){return this}}}return p({type:bn.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:v,[Pg]:g}}function Sg(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function gL(e,t,r,n){const o=Object.keys(t),i=r&&r.type===bn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Ei(e))return`The ${i} has unexpected type of "${Lr(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const a=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!n[s]);if(a.forEach(s=>{n[s]=!0}),!(r&&r.type===bn.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function yL(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:bn.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?tt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?tt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${bn.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function CS(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const s=t[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&Sg(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let i;try{yL(r)}catch(a){i=a}return function(s={},l){if(i)throw i;if(process.env.NODE_ENV!=="production"){const d=gL(s,r,l,o);d&&Sg(d)}let c=!1;const u={};for(let d=0;d<n.length;d++){const p=n[d],v=r[p],g=s[p],m=v(g,l);if(typeof m>"u"){const h=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?tt(14):`When called with an action of type ${h?`"${String(h)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[p]=m,c=c||m!==g}return c=c||n.length!==Object.keys(s).length,c?u:s}}function os(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function bL(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?tt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:o.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(a));return i=os(...s)(o.dispatch),{...o,dispatch:i}}}function hp(e){return Ei(e)&&"type"in e&&typeof e.type=="string"}var AS=Symbol.for("immer-nothing"),Og=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state"),xL=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function St(e,...t){if(process.env.NODE_ENV!=="production"){const r=xL[e],n=pn(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Et=Object,lo=Et.getPrototypeOf,is="constructor",hl="prototype",Md="configurable",as="enumerable",Va="writable",Jo="value",yr=e=>!!e&&!!e[ht];function Vt(e){return e?_S(e)||yl(e)||!!e[Og]||!!e[is]?.[Og]||bl(e)||xl(e):!1}var wL=Et[hl][is].toString(),Eg=new WeakMap;function _S(e){if(!e||!gp(e))return!1;const t=lo(e);if(t===null||t===Et[hl])return!0;const r=Et.hasOwnProperty.call(t,is)&&t[is];if(r===Object)return!0;if(!pn(r))return!1;let n=Eg.get(r);return n===void 0&&(n=Function.toString.call(r),Eg.set(r,n)),n===wL}function gl(e,t,r=!0){Ci(e)===0?(r?Reflect.ownKeys(e):Et.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Ci(e){const t=e[ht];return t?t.type_:yl(e)?1:bl(e)?2:xl(e)?3:0}var Cg=(e,t,r=Ci(e))=>r===2?e.has(t):Et[hl].hasOwnProperty.call(e,t),Id=(e,t,r=Ci(e))=>r===2?e.get(t):e[t],ss=(e,t,r,n=Ci(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function PL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var yl=Array.isArray,bl=e=>e instanceof Map,xl=e=>e instanceof Set,gp=e=>typeof e=="object",pn=e=>typeof e=="function",ku=e=>typeof e=="boolean";function SL(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var fr=e=>e.copy_||e.base_,yp=e=>e.modified_?e.copy_:e.base_;function kd(e,t){if(bl(e))return new Map(e);if(xl(e))return new Set(e);if(yl(e))return Array[hl].slice.call(e);const r=_S(e);if(t===!0||t==="class_only"&&!r){const n=Et.getOwnPropertyDescriptors(e);delete n[ht];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s[Va]===!1&&(s[Va]=!0,s[Md]=!0),(s.get||s.set)&&(n[a]={[Md]:!0,[Va]:!0,[as]:s[as],[Jo]:e[a]})}return Et.create(lo(e),n)}else{const n=lo(e);if(n!==null&&r)return{...e};const o=Et.create(n);return Et.assign(o,e)}}function bp(e,t=!1){return wl(e)||yr(e)||!Vt(e)||(Ci(e)>1&&Et.defineProperties(e,{set:ga,add:ga,clear:ga,delete:ga}),Et.freeze(e),t&&gl(e,(r,n)=>{bp(n,!0)},!1)),e}function OL(){St(2)}var ga={[Jo]:OL};function wl(e){return e===null||!gp(e)?!0:Et.isFrozen(e)}var ls="MapSet",Rd="Patches",Ag="ArrayMethods",TS={};function _n(e){const t=TS[e];return t||St(0,e),t}var _g=e=>!!TS[e],Qo,jS=()=>Qo,EL=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:_g(ls)?_n(ls):void 0,arrayMethodsPlugin_:_g(Ag)?_n(Ag):void 0});function Tg(e,t){t&&(e.patchPlugin_=_n(Rd),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Dd(e){$d(e),e.drafts_.forEach(CL),e.drafts_=null}function $d(e){e===Qo&&(Qo=e.parent_)}var jg=e=>Qo=EL(Qo,e);function CL(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ng(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[ht].modified_&&(Dd(t),St(4)),Vt(e)&&(e=Mg(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[ht].base_,e,t)}else e=Mg(t,r);return AL(t,e,!0),Dd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AS?e:void 0}function Mg(e,t){if(wl(t))return t;const r=t[ht];if(!r)return cs(t,e.handledSet_,e);if(!Pl(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);IS(r,e)}return r.copy_}function AL(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&bp(t,r)}function NS(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Pl=(e,t)=>e.scope_===t,_L=[];function MS(e,t,r,n){const o=fr(e),i=e.type_;if(n!==void 0&&Id(o,n,i)===t){ss(o,n,r,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;gl(o,(l,c)=>{if(yr(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const a=e.draftLocations_.get(t)??_L;for(const s of a)ss(o,s,r,i)}function TL(e,t,r){e.callbacks_.push(function(o){const i=t;if(!i||!Pl(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const a=yp(i);MS(e,i.draft_??i,a,r),IS(i,o)})}function IS(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}NS(e)}}function jL(e,t,r){const{scope_:n}=e;if(yr(r)){const o=r[ht];Pl(o,n)&&o.callbacks_.push(function(){Wa(e);const a=yp(o);MS(e,r,a,t)})}else Vt(r)&&e.callbacks_.push(function(){const i=fr(e);e.type_===3?i.has(r)&&cs(r,n.handledSet_,n):Id(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&cs(Id(e.copy_,t,e.type_),n.handledSet_,n)})}function cs(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||yr(e)||t.has(e)||!Vt(e)||wl(e)||(t.add(e),gl(e,(n,o)=>{if(yr(o)){const i=o[ht];if(Pl(i,r)){const a=yp(i);ss(e,n,a,e.type_),NS(i)}}else Vt(o)&&cs(o,t,r)})),e}function NL(e,t){const r=yl(e),n={type_:r?1:0,scope_:t?t.scope_:jS(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,i=us;r&&(o=[n],i=ei);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var us={get(e,t){if(t===ht)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const o=fr(e);if(!Cg(o,t,e.type_))return ML(e,o,t);const i=o[t];if(e.finalized_||!Vt(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&SL(t))return i;if(i===Ru(e.base_,t)){Wa(e);const a=e.type_===1?+t:t,s=Fd(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in fr(e)},ownKeys(e){return Reflect.ownKeys(fr(e))},set(e,t,r){const n=kS(fr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Ru(fr(e),t),i=o?.[ht];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(PL(r,o)&&(r!==void 0||Cg(e.base_,t,e.type_)))return!0;Wa(e),Ld(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),jL(e,t,r)),!0},deleteProperty(e,t){return Wa(e),Ru(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ld(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=fr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Va]:!0,[Md]:e.type_!==1||t!=="length",[as]:n[as],[Jo]:r[t]}},defineProperty(){St(11)},getPrototypeOf(e){return lo(e.base_)},setPrototypeOf(){St(12)}},ei={};for(let e in us){let t=us[e];ei[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ei.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&St(13),ei.set.call(this,e,t,void 0)};ei.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&St(14),us.set.call(this,e[0],t,r,e[0])};function Ru(e,t){const r=e[ht];return(r?fr(r):e)[t]}function ML(e,t,r){const n=kS(t,r);return n?Jo in n?n[Jo]:n.get?.call(e.draft_):void 0}function kS(e,t){if(!(t in e))return;let r=lo(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=lo(r)}}function Ld(e){e.modified_||(e.modified_=!0,e.parent_&&Ld(e.parent_))}function Wa(e){e.copy_||(e.assigned_=new Map,e.copy_=kd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var IL=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,o)=>{if(pn(r)&&!pn(n)){const a=n;n=r;const s=this;return function(c=a,...u){return s.produce(c,d=>n.call(this,d,...u))}}pn(n)||St(6),o!==void 0&&!pn(o)&&St(7);let i;if(Vt(r)){const a=jg(this),s=Fd(a,r,void 0);let l=!0;try{i=n(s),l=!1}finally{l?Dd(a):$d(a)}return Tg(a,o),Ng(i,a)}else if(!r||!gp(r)){if(i=n(r),i===void 0&&(i=r),i===AS&&(i=void 0),this.autoFreeze_&&bp(i,!0),o){const a=[],s=[];_n(Rd).generateReplacementPatches_(r,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else St(1,r)},this.produceWithPatches=(r,n)=>{if(pn(r))return(s,...l)=>this.produceWithPatches(s,c=>r(c,...l));let o,i;return[this.produce(r,n,(s,l)=>{o=s,i=l}),o,i]},ku(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ku(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ku(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Vt(t)||St(8),yr(t)&&(t=Bt(t));const r=jg(this),n=Fd(r,t,void 0);return n[ht].isManual_=!0,$d(r),n}finishDraft(t,r){const n=t&&t[ht];(!n||!n.isManual_)&&St(9);const{scope_:o}=n;return Tg(o,r),Ng(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const i=r[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(r=r.slice(n+1));const o=_n(Rd).applyPatches_;return yr(t)?o(t,r):this.produce(t,i=>o(i,r))}};function Fd(e,t,r,n){const[o,i]=bl(t)?_n(ls).proxyMap_(t,r):xl(t)?_n(ls).proxySet_(t,r):NL(t,r);return(r?.scope_??jS()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?TL(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),o}function Bt(e){return yr(e)||St(10,e),RS(e)}function RS(e){if(!Vt(e)||wl(e))return e;const t=e[ht];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=kd(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=kd(e,!0);return gl(r,(o,i)=>{ss(r,o,RS(i))},n),t&&(t.finalized_=!1),r}var kL=new IL,DS=kL.produce;function $S(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var RL=$S(),DL=$S,$L=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?os:os.apply(null,arguments)},LL=e=>e&&typeof e.match=="function";function Rt(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?me(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>hp(n)&&n.type===e,r}function FL(e){return typeof e=="function"&&"type"in e&&LL(e)}function zL(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
61
+ Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function BL(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=FL}=e;return()=>r=>n=>(t(n)&&console.warn(zL(n.type)),r(n))}function LS(e,t){let r=0;return{measureTime(n){const o=Date.now();try{return n()}finally{const i=Date.now();r+=i-o}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
62
62
  If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
63
- It is disabled in production builds, so you don't need to worry about that.`)}}}var FS=class Uo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Uo.prototype)}static get[Symbol.species](){return Uo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Uo(...t[0].concat(this)):new Uo(...t.concat(this))}};function Ig(e){return Vt(e)?DS(e,()=>{}):e}function ya(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function BL(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function VL(e,t,r){const n=zS(e,t,r);return{detectMutations(){return BS(e,t,n,r)}}}function zS(e,t=[],r,n="",o=new Set){const i={value:r};if(!e(r)&&!o.has(r)){o.add(r),i.children={};const a=t.length>0;for(const s in r){const l=n?n+"."+s:s;a&&t.some(u=>u instanceof RegExp?u.test(l):l===u)||(i.children[s]=zS(e,t,r[s],l))}}return i}function BS(e,t=[],r,n,o=!1,i=""){const a=r?r.value:void 0,s=a===n;if(o&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:i};if(e(a)||e(n))return{wasMutated:!1};const l={};for(let u in r.children)l[u]=!0;for(let u in n)l[u]=!0;const c=t.length>0;for(let u in l){const d=i?i+"."+u:u;if(c&&t.some(g=>g instanceof RegExp?g.test(d):d===g))continue;const p=BS(e,t,r.children[u],n[u],s,d);if(p.wasMutated)return p}return{wasMutated:!1}}function WL(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(s,l,c,u){return JSON.stringify(s,r(l,u),c)},r=function(s,l){let c=[],u=[];return l||(l=function(d,p){return c[0]===p?"[Circular ~]":"[Circular ~."+u.slice(0,c.indexOf(p)).join(".")+"]"}),function(d,p){if(c.length>0){var v=c.indexOf(this);~v?c.splice(v+1):c.push(this),~v?u.splice(v,1/0,d):u.push(d),~c.indexOf(p)&&(p=l.call(this,d,p))}else c.push(p);return s==null?p:s.call(this,d,p)}},{isImmutable:n=BL,ignoredPaths:o,warnAfter:i=32}=e;const a=VL.bind(null,n,o);return({getState:s})=>{let l=s(),c=a(l),u;return d=>p=>{const v=LS(i,"ImmutableStateInvariantMiddleware");v.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?me(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=d(p);return v.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?me(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(p)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),v.warnIfExceeded(),g}}}}function VS(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Ei(e)}function zd(e,t="",r=VS,n,o=[],i){let a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||i?.has(e))return!1;const s=n!=null?n(e):Object.entries(e),l=o.length>0;for(const[c,u]of s){const d=t?t+"."+c:c;if(!(l&&o.some(v=>v instanceof RegExp?v.test(d):d===v))){if(!r(u))return{keyPath:d,value:u};if(typeof u=="object"&&(a=zd(u,d,r,n,o,i),a))return a}}return i&&WS(e)&&i.add(e),!1}function WS(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!WS(t))return!1;return!0}function KL(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=VS,getEntries:r,ignoredActions:n=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:i=[],warnAfter:a=32,ignoreState:s=!1,ignoreActions:l=!1,disableCache:c=!1}=e,u=!c&&WeakSet?new WeakSet:void 0;return d=>p=>v=>{if(!hp(v))return p(v);const g=p(v),m=LS(a,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(v.type)!==-1)&&m.measureTime(()=>{const h=zd(v,"",t,r,o,u);if(h){const{keyPath:b,value:x}=h;console.error(`A non-serializable value was detected in an action, in the path: \`${b}\`. Value:`,x,`
63
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var FS=class Uo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Uo.prototype)}static get[Symbol.species](){return Uo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Uo(...t[0].concat(this)):new Uo(...t.concat(this))}};function Ig(e){return Vt(e)?DS(e,()=>{}):e}function ya(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function VL(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function WL(e,t,r){const n=zS(e,t,r);return{detectMutations(){return BS(e,t,n,r)}}}function zS(e,t=[],r,n="",o=new Set){const i={value:r};if(!e(r)&&!o.has(r)){o.add(r),i.children={};const a=t.length>0;for(const s in r){const l=n?n+"."+s:s;a&&t.some(u=>u instanceof RegExp?u.test(l):l===u)||(i.children[s]=zS(e,t,r[s],l))}}return i}function BS(e,t=[],r,n,o=!1,i=""){const a=r?r.value:void 0,s=a===n;if(o&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:i};if(e(a)||e(n))return{wasMutated:!1};const l={};for(let u in r.children)l[u]=!0;for(let u in n)l[u]=!0;const c=t.length>0;for(let u in l){const d=i?i+"."+u:u;if(c&&t.some(g=>g instanceof RegExp?g.test(d):d===g))continue;const p=BS(e,t,r.children[u],n[u],s,d);if(p.wasMutated)return p}return{wasMutated:!1}}function KL(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(s,l,c,u){return JSON.stringify(s,r(l,u),c)},r=function(s,l){let c=[],u=[];return l||(l=function(d,p){return c[0]===p?"[Circular ~]":"[Circular ~."+u.slice(0,c.indexOf(p)).join(".")+"]"}),function(d,p){if(c.length>0){var v=c.indexOf(this);~v?c.splice(v+1):c.push(this),~v?u.splice(v,1/0,d):u.push(d),~c.indexOf(p)&&(p=l.call(this,d,p))}else c.push(p);return s==null?p:s.call(this,d,p)}},{isImmutable:n=VL,ignoredPaths:o,warnAfter:i=32}=e;const a=WL.bind(null,n,o);return({getState:s})=>{let l=s(),c=a(l),u;return d=>p=>{const v=LS(i,"ImmutableStateInvariantMiddleware");v.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?me(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=d(p);return v.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?me(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(p)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),v.warnIfExceeded(),g}}}}function VS(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Ei(e)}function zd(e,t="",r=VS,n,o=[],i){let a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||i?.has(e))return!1;const s=n!=null?n(e):Object.entries(e),l=o.length>0;for(const[c,u]of s){const d=t?t+"."+c:c;if(!(l&&o.some(v=>v instanceof RegExp?v.test(d):d===v))){if(!r(u))return{keyPath:d,value:u};if(typeof u=="object"&&(a=zd(u,d,r,n,o,i),a))return a}}return i&&WS(e)&&i.add(e),!1}function WS(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!WS(t))return!1;return!0}function UL(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=VS,getEntries:r,ignoredActions:n=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:i=[],warnAfter:a=32,ignoreState:s=!1,ignoreActions:l=!1,disableCache:c=!1}=e,u=!c&&WeakSet?new WeakSet:void 0;return d=>p=>v=>{if(!hp(v))return p(v);const g=p(v),m=LS(a,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(v.type)!==-1)&&m.measureTime(()=>{const h=zd(v,"",t,r,o,u);if(h){const{keyPath:b,value:x}=h;console.error(`A non-serializable value was detected in an action, in the path: \`${b}\`. Value:`,x,`
64
64
  Take a look at the logic that dispatched this action: `,v,`
65
65
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
66
66
  (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),s||(m.measureTime(()=>{const h=d.getState(),b=zd(h,"",t,r,i,u);if(b){const{keyPath:x,value:w}=b;console.error(`A non-serializable value was detected in the state, in the path: \`${x}\`. Value:`,w,`
67
67
  Take a look at the reducer(s) handling this action type: ${v.type}.
68
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),g}}}function ba(e){return typeof e=="boolean"}var UL=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new FS;if(r&&(ba(r)?a.push(kL):a.push(RL(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};ba(n)||(s=n),a.unshift(WL(s))}if(o){let s={};ba(o)||(s=o),a.push(KL(s))}if(i){let s={};ba(i)||(s=i),a.unshift(zL(s))}}return a},KS="RTK_autoBatch",Ce=()=>e=>({payload:e,meta:{[KS]:!0}}),kg=e=>t=>{setTimeout(t,e)},US=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,i=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:kg(10):e.type==="callback"?e.queueNotification:kg(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const d=()=>o&&u(),p=n.subscribe(d);return s.add(u),()=>{p(),s.delete(u)}},dispatch(u){try{return o=!u?.meta?.[KS],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},HL=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new FS(e);return n&&o.push(US(typeof n=="object"?n:void 0)),o};function GL(e){const t=UL(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Ei(r))l=CS(r);else throw new Error(process.env.NODE_ENV==="production"?me(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?me(2):"`middleware` field must be a callback");let c;if(typeof n=="function"){if(c=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?me(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?me(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&i){let m=new Set;c.forEach(h=>{if(m.has(h))throw new Error(process.env.NODE_ENV==="production"?me(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(h)})}let u=os;o&&(u=DL({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const d=yL(...c),p=HL(d);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?me(5):"`enhancers` field must be a callback");let v=typeof s=="function"?s(p):p();if(process.env.NODE_ENV!=="production"&&!Array.isArray(v))throw new Error(process.env.NODE_ENV==="production"?me(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&v.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?me(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!v.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...v);return ES(l,a,g)}function HS(e){const t={},r=[];let n;const o={addCase(i,a){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?me(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?me(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof i=="string"?i:i.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?me(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?me(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=a,o},addAsyncThunk(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:i,reducer:a}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(31):"`builder.addDefaultCase` can only be called once");return n=i,o}};return e(o),[t,r,n]}function qL(e){return typeof e=="function"}function YL(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?me(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=HS(t),i;if(qL(e))i=()=>Ig(e());else{const s=Ig(e);i=()=>s}function a(s=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,d)=>{if(d)if(yr(u)){const v=d(u,l);return v===void 0?u:v}else{if(Vt(u))return DS(u,p=>d(p,l));{const p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},s)}return a.getInitialState=i,a}var XL="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ZL=(e=21)=>{let t="",r=e;for(;r--;)t+=XL[Math.random()*64|0];return t},JL=Symbol.for("rtk-slice-createasyncthunk");function QL(e,t){return`${e}/${t}`}function eF({creators:e}={}){const t=e?.asyncThunk?.[JL];return function(n){const{name:o,reducerPath:i=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?me(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof n.reducers=="function"?n.reducers(rF()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(w,P){const O=typeof w=="string"?w:w.type;if(!O)throw new Error(process.env.NODE_ENV==="production"?me(12):"`context.addCase` cannot be called with an empty action type");if(O in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?me(13):"`context.addCase` cannot be called with two reducers for the same action type: "+O);return l.sliceCaseReducersByType[O]=P,c},addMatcher(w,P){return l.sliceMatchers.push({matcher:w,reducer:P}),c},exposeAction(w,P){return l.actionCreators[w]=P,c},exposeCaseReducer(w,P){return l.sliceCaseReducersByName[w]=P,c}};s.forEach(w=>{const P=a[w],O={reducerName:w,type:QL(o,w),createNotation:typeof n.reducers=="function"};oF(P)?aF(O,P,c,t):nF(O,P,c)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?me(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[w={},P=[],O=void 0]=typeof n.extraReducers=="function"?HS(n.extraReducers):[n.extraReducers],S={...w,...l.sliceCaseReducersByType};return YL(n.initialState,E=>{for(let C in S)E.addCase(C,S[C]);for(let C of l.sliceMatchers)E.addMatcher(C.matcher,C.reducer);for(let C of P)E.addMatcher(C.matcher,C.reducer);O&&E.addDefaultCase(O)})}const d=w=>w,p=new Map,v=new WeakMap;let g;function m(w,P){return g||(g=u()),g(w,P)}function h(){return g||(g=u()),g.getInitialState()}function b(w,P=!1){function O(E){let C=E[w];if(typeof C>"u"){if(P)C=ya(v,O,h);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?me(15):"selectSlice returned undefined for an uninjected slice reducer")}return C}function S(E=d){const C=ya(p,P,()=>new WeakMap);return ya(C,E,()=>{const N={};for(const[D,$]of Object.entries(n.selectors??{}))N[D]=tF($,E,()=>ya(v,E,h),P);return N})}return{reducerPath:w,getSelectors:S,get selectors(){return S(O)},selectSlice:O}}const x={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:h,...b(i),injectInto(w,{reducerPath:P,...O}={}){const S=P??i;return w.inject({reducerPath:S,reducer:m},O),{...x,...b(S,!0)}}};return x}}function tF(e,t,r,n){function o(i,...a){let s=t(i);if(typeof s>"u"){if(n)s=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?me(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return o.unwrapped=e,o}var xt=eF();function rF(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function nF({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!iF(n))throw new Error(process.env.NODE_ENV==="production"?me(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Rt(e,a):Rt(e))}function oF(e){return e._reducerDefinitionType==="asyncThunk"}function iF(e){return e._reducerDefinitionType==="reducerWithPrepare"}function aF({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?me(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=r,d=o(e,i,u);n.exposeAction(t,d),a&&n.addCase(d.fulfilled,a),s&&n.addCase(d.pending,s),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:a||xa,pending:s||xa,rejected:l||xa,settled:c||xa})}function xa(){}var sF="task",GS="listener",qS="completed",xp="cancelled",lF=`task-${xp}`,cF=`task-${qS}`,Bd=`${GS}-${xp}`,uF=`${GS}-${qS}`,Sl=class{constructor(e){this.code=e,this.message=`${sF} ${xp} (reason: ${e})`}name="TaskAbortError";message},wp=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?me(32):`${t} is not a function`)},ds=()=>{},YS=(e,t=ds)=>(e.catch(t),e),XS=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),xn=e=>{if(e.aborted)throw new Sl(e.reason)};function ZS(e,t){let r=ds;return new Promise((n,o)=>{const i=()=>o(new Sl(e.reason));if(e.aborted){i();return}r=XS(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=ds})}var dF=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Sl?"cancelled":"rejected",error:r}}finally{t?.()}},fs=e=>t=>YS(ZS(e,t).then(r=>(xn(e),r))),JS=e=>{const t=fs(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:io}=Object,Rg={},Ai="listenerMiddleware",fF=(e,t)=>{const r=n=>XS(e,()=>n.abort(e.reason));return(n,o)=>{wp(n,"taskExecutor");const i=new AbortController;r(i);const a=dF(async()=>{xn(e),xn(i.signal);const s=await n({pause:fs(i.signal),delay:JS(i.signal),signal:i.signal});return xn(i.signal),s},()=>i.abort(cF));return o?.autoJoin&&t.push(a.catch(ds)),{result:fs(e)(a),cancel(){i.abort(lF)}}}},pF=(e,t)=>{const r=async(n,o)=>{xn(t);let i=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(d,p)=>{p.unsubscribe(),l([d,p.getState(),p.getOriginalState()])}});i=()=>{u(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{const l=await ZS(t,Promise.race(s));return xn(t),l}finally{i()}};return(n,o)=>YS(r(n,o))},QS=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=Rt(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(process.env.NODE_ENV==="production"?me(21):"Creating or removing a listener requires one of the known fields for matching an action");return wp(i,"options.listener"),{predicate:o,type:t,effect:i}},eO=io(e=>{const{type:t,predicate:r,effect:n}=QS(e);return{id:ZL(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?me(22):"Unsubscribe not initialized")}}},{withTypes:()=>eO}),Dg=(e,t)=>{const{type:r,effect:n,predicate:o}=QS(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},Vd=e=>{e.pending.forEach(t=>{t.abort(Bd)})},vF=(e,t)=>()=>{for(const r of t.keys())Vd(r);e.clear()},$g=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},tO=io(Rt(`${Ai}/add`),{withTypes:()=>tO}),mF=Rt(`${Ai}/removeAll`),rO=io(Rt(`${Ai}/remove`),{withTypes:()=>rO}),hF=(...e)=>{console.error(`${Ai}/error`,...e)},_i=(e={})=>{const t=new Map,r=new Map,n=v=>{const g=r.get(v)??0;r.set(v,g+1)},o=v=>{const g=r.get(v)??1;g===1?r.delete(v):r.set(v,g-1)},{extra:i,onError:a=hF}=e;wp(a,"onError");const s=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),g=>{v.unsubscribe(),g?.cancelActive&&Vd(v)}),l=v=>{const g=Dg(t,v)??eO(v);return s(g)};io(l,{withTypes:()=>l});const c=v=>{const g=Dg(t,v);return g&&(g.unsubscribe(),v.cancelActive&&Vd(g)),!!g};io(c,{withTypes:()=>c});const u=async(v,g,m,h)=>{const b=new AbortController,x=pF(l,b.signal),w=[];try{v.pending.add(b),n(v),await Promise.resolve(v.effect(g,io({},m,{getOriginalState:h,condition:(P,O)=>x(P,O).then(Boolean),take:x,delay:JS(b.signal),pause:fs(b.signal),extra:i,signal:b.signal,fork:fF(b.signal,w),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((P,O,S)=>{P!==b&&(P.abort(Bd),S.delete(P))})},cancel:()=>{b.abort(Bd),v.pending.delete(b)},throwIfCancelled:()=>{xn(b.signal)}})))}catch(P){P instanceof Sl||$g(a,P,{raisedBy:"effect"})}finally{await Promise.all(w),b.abort(uF),o(v),v.pending.delete(b)}},d=vF(t,r);return{middleware:v=>g=>m=>{if(!hp(m))return g(m);if(tO.match(m))return l(m.payload);if(mF.match(m)){d();return}if(rO.match(m))return c(m.payload);let h=v.getState();const b=()=>{if(h===Rg)throw new Error(process.env.NODE_ENV==="production"?me(23):`${Ai}: getOriginalState can only be called synchronously`);return h};let x;try{if(x=g(m),t.size>0){const w=v.getState(),P=Array.from(t.values());for(const O of P){let S=!1;try{S=O.predicate(m,w,h)}catch(E){S=!1,$g(a,E,{raisedBy:"predicate"})}S&&u(O,m,v,b)}}}finally{h=Rg}return x},startListening:l,stopListening:c,clearListeners:d}};function me(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var gF={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},nO=xt({name:"chartLayout",initialState:gF,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,o,i;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:yF,setLayout:bF,setChartSize:xF,setScale:wF}=nO.actions,PF=nO.reducer;function oO(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ce(e){return Number.isFinite(e)}function ar(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){SF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SF(e,t,r){return(t=OF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OF(e){var t=EF(e,"string");return typeof t=="symbol"?t:t+""}function EF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function be(e,t,r){return Te(e)||Te(t)?r:ir(t)?Cn(e,t,r):typeof t=="function"?t(e):r}var CF=(e,t,r)=>{if(t&&r){var{width:n,height:o}=r,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&q(e[i]))return eo(eo({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&q(e[a]))return eo(eo({},e),{},{[a]:e[a]+(o||0)})}return e},_r=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",iO=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var o,i,a=e.map(s=>(s.coordinate===t&&(o=!0),s.coordinate===r&&(i=!0),s.coordinate));return o||a.push(t),i||a.push(r),a},aO=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:o,range:i,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:p,axisType:v}=e;if(!a)return null;var g=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,m=o==="category"&&a.bandwidth?a.bandwidth()/g:0;if(m=v==="angleAxis"&&i&&i.length>=2?Ge(i[0]-i[1])*2*m:m,d||p){var h=(d||p||[]).map((b,x)=>{var w=n?n.indexOf(b):b,P=a.map(w);return ce(P)?{coordinate:P+m,value:b,offset:m,index:x}:null}).filter(yt);return h}return l&&c?c.map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:b,index:x,offset:m}:null}).filter(yt):a.ticks&&u!=null?a.ticks(u).map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:b,index:x,offset:m}:null}).filter(yt):a.domain().map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:n?n[b]:b,index:x,offset:m}:null}).filter(yt)},AF=(e,t)=>{if(!t||t.length!==2||!q(t[0])||!q(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!q(e[0])||e[0]<r)&&(o[0]=r),(!q(e[1])||e[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o},_F=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o<n;++o)for(var i=0,a=0,s=0;s<r;++s){var l=e[s],c=l?.[o];if(c!=null){var u=c[1],d=c[0],p=or(u)?d:u;p>=0?(c[0]=i,i+=p,c[1]=i):(c[0]=a,a+=p,c[1]=a)}}}},TF=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o<n;++o)for(var i=0,a=0;a<r;++a){var s=e[a],l=s?.[o];if(l!=null){var c=or(l[1])?l[0]:l[1];c>=0?(l[0]=i,i+=c,l[1]=i):(l[0]=0,l[1]=0)}}}},jF={sign:_F,expand:I2,none:En,silhouette:k2,wiggle:R2,positive:TF},NF=(e,t,r)=>{var n,o=(n=jF[r])!==null&&n!==void 0?n:En,i=M2().keys(t).value((s,l)=>Number(be(s,l,0))).order(jd).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,u)=>{var d=be(e[u],t[l],0);Array.isArray(d)&&d.length===2&&q(d[0])&&q(d[1])&&(c[0]=d[0],c[1]=d[1])})}),a};function MF(e){return e==null?void 0:String(e)}function Fg(e){var{axis:t,ticks:r,bandSize:n,entry:o,index:i,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Te(o[t.dataKey])){var s=sS(r,"value",o[t.dataKey]);if(s)return s.coordinate+n/2}return r!=null&&r[i]?r[i].coordinate+n/2:null}var l=be(o,Te(a)?t.dataKey:a),c=t.scale.map(l);return q(c)?c:null}var zg=e=>{var{axis:t,ticks:r,offset:n,bandSize:o,entry:i,index:a}=e;if(t.type==="category")return r[a]?r[a].coordinate+n:null;var s=be(i,t.dataKey,t.scale.domain()[a]);if(Te(s))return null;var l=t.scale.map(s);return q(l)?l-o/2+n:null},IF=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},kF=e=>{var t=e.flat(2).filter(q);return[Math.min(...t),Math.max(...t)]},RF=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],DF=(e,t,r)=>{if(e!=null)return RF(Object.keys(e).reduce((n,o)=>{var i=e[o];if(!i)return n;var{stackedData:a}=i,s=a.reduce((l,c)=>{var u=oO(c,t,r),d=kF(u);return!ce(d[0])||!ce(d[1])?l:[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},Bg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,co=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=ml(t,u=>u.coordinate),i=1/0,a=1,s=o.length;a<s;a++){var l=o[a],c=o[a-1];i=Math.min((l?.coordinate||0)-(c?.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0};function Wg(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:o,name:i}=e;return eo(eo({},t),{},{dataKey:r,payload:n,value:o,name:i})}function wo(e,t){if(e)return String(e);if(typeof t=="string")return t}var $F=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},LF=(e,t)=>t==="centric"?e.angle:e.radius,Tr=e=>e.layout.width,jr=e=>e.layout.height,FF=e=>e.layout.scale,sO=e=>e.layout.margin,Ol=j(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),El=j(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),lO="data-recharts-item-index",cO="data-recharts-item-id",Ti=60;function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function wa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){zF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zF(e,t,r){return(t=BF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BF(e){var t=VF(e,"string");return typeof t=="symbol"?t:t+""}function VF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WF=e=>e.brush.height;function KF(e){var t=El(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:Ti;return r+o}return r},0)}function UF(e){var t=El(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:Ti;return r+o}return r},0)}function HF(e){var t=Ol(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function GF(e){var t=Ol(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Be=j([Tr,jr,sO,WF,KF,UF,HF,GF,SS,aL],(e,t,r,n,o,i,a,s,l,c)=>{var u={left:(r.left||0)+o,right:(r.right||0)+i},d={top:(r.top||0)+a,bottom:(r.bottom||0)+s},p=wa(wa({},d),u),v=p.bottom;p.bottom+=n,p=CF(p,l,c);var g=e-p.left-p.right,m=t-p.top-p.bottom;return wa(wa({brushBottom:v},p),{},{width:Math.max(g,0),height:Math.max(m,0)})}),qF=j(Be,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Pp=j(Tr,jr,(e,t)=>({x:0,y:0,width:e,height:t})),YF=A.createContext(null),ct=()=>A.useContext(YF)!=null,Cl=e=>e.brush,Al=j([Cl,Be,sO],(e,t,r)=>({height:e.height,x:q(e.x)?e.x:t.left,y:q(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:q(e.width)?e.width:t.width})),Du={},$u={},Lu={},Ug;function XF(){return Ug||(Ug=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:o,edges:i}={}){let a,s=null;const l=i!=null&&i.includes("leading"),c=i==null||i.includes("trailing"),u=()=>{s!==null&&(r.apply(a,s),a=void 0,s=null)},d=()=>{c&&u(),m()};let p=null;const v=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},n)},g=()=>{p!==null&&(clearTimeout(p),p=null)},m=()=>{g(),a=void 0,s=null},h=()=>{u()},b=function(...x){if(o?.aborted)return;a=this,s=x;const w=p==null;v(),l&&w&&u()};return b.schedule=v,b.cancel=m,b.flush=h,o?.addEventListener("abort",m,{once:!0}),b}e.debounce=t})(Lu)),Lu}var Hg;function ZF(){return Hg||(Hg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XF();function r(n,o=0,i={}){typeof i!="object"&&(i={});const{leading:a=!1,trailing:s=!0,maxWait:l}=i,c=Array(2);a&&(c[0]="leading"),s&&(c[1]="trailing");let u,d=null;const p=t.debounce(function(...m){u=n.apply(this,m),d=null},o,{edges:c}),v=function(...m){return l!=null&&(d===null&&(d=Date.now()),Date.now()-d>=l)?(u=n.apply(this,m),d=Date.now(),p.cancel(),p.schedule(),u):(p.apply(this,m),u)},g=()=>(p.flush(),u);return v.cancel=p.cancel,v.flush=g,v}e.debounce=r})($u)),$u}var Gg;function JF(){return Gg||(Gg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZF();function r(n,o=0,i={}){const{leading:a=!0,trailing:s=!0}=i;return t.debounce(n,o,{leading:a,maxWait:o,trailing:s})}e.throttle=r})(Du)),Du}var Fu,qg;function QF(){return qg||(qg=1,Fu=JF().throttle),Fu}var ez=QF();const tz=Jr(ez);var ps=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(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 a=0;console.warn(r.replace(/%s/g,()=>o[a++]))}},Qt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},uO=(e,t,r)=>{var{width:n=Qt.width,height:o=Qt.height,aspect:i,maxHeight:a}=r,s=An(n)?e:Number(n),l=An(o)?t:Number(o);return i&&i>0&&(s?l=s/i:l&&(s=l*i),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},rz={width:0,height:0,overflow:"visible"},nz={width:0,overflowX:"visible"},oz={height:0,overflowY:"visible"},iz={},az=e=>{var{width:t,height:r}=e,n=An(t),o=An(r);return n&&o?rz:n?nz:o?oz:iz};function sz(e){var{width:t,height:r,aspect:n}=e,o=t,i=r;return o===void 0&&i===void 0?(o=Qt.width,i=Qt.height):o===void 0?o=n&&n>0?void 0:Qt.width:i===void 0&&(i=n&&n>0?void 0:Qt.height),{width:o,height:i}}function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wd.apply(null,arguments)}function Yg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xg(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){lz(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 lz(e,t,r){return(t=cz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cz(e){var t=uz(e,"string");return typeof t=="symbol"?t:t+""}function uz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dO=A.createContext(Qt.initialDimension);function dz(e){return ar(e.width)&&ar(e.height)}function fO(e){var{children:t,width:r,height:n}=e,o=A.useMemo(()=>({width:r,height:n}),[r,n]);return dz(o)?f.createElement(dO.Provider,{value:o},t):null}var Sp=()=>A.useContext(dO),fz=A.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Qt.initialDimension,width:o,height:i,minWidth:a=Qt.minWidth,minHeight:s,maxHeight:l,children:c,debounce:u=Qt.debounce,id:d,className:p,onResize:v,style:g={}}=e,m=A.useRef(null),h=A.useRef();h.current=v,A.useImperativeHandle(t,()=>m.current);var[b,x]=A.useState({containerWidth:n.width,containerHeight:n.height}),w=A.useCallback((C,N)=>{x(D=>{var $=Math.round(C),_=Math.round(N);return D.containerWidth===$&&D.containerHeight===_?D:{containerWidth:$,containerHeight:_}})},[]);A.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Fn;var C=_=>{var M,k=_[0];if(k!=null){var{width:V,height:B}=k.contentRect;w(V,B),(M=h.current)===null||M===void 0||M.call(h,V,B)}};u>0&&(C=tz(C,u,{trailing:!0,leading:!1}));var N=new ResizeObserver(C),{width:D,height:$}=m.current.getBoundingClientRect();return w(D,$),N.observe(m.current),()=>{N.disconnect()}},[w,u]);var{containerWidth:P,containerHeight:O}=b;ps(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:S,calculatedHeight:E}=uO(P,O,{width:o,height:i,aspect:r,maxHeight:l});return ps(S!=null&&S>0||E!=null&&E>0,`The width(%s) and height(%s) of chart should be greater than 0,
68
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),g}}}function ba(e){return typeof e=="boolean"}var HL=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new FS;if(r&&(ba(r)?a.push(RL):a.push(DL(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};ba(n)||(s=n),a.unshift(KL(s))}if(o){let s={};ba(o)||(s=o),a.push(UL(s))}if(i){let s={};ba(i)||(s=i),a.unshift(BL(s))}}return a},KS="RTK_autoBatch",Ce=()=>e=>({payload:e,meta:{[KS]:!0}}),kg=e=>t=>{setTimeout(t,e)},US=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,i=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:kg(10):e.type==="callback"?e.queueNotification:kg(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const d=()=>o&&u(),p=n.subscribe(d);return s.add(u),()=>{p(),s.delete(u)}},dispatch(u){try{return o=!u?.meta?.[KS],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},GL=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new FS(e);return n&&o.push(US(typeof n=="object"?n:void 0)),o};function qL(e){const t=HL(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Ei(r))l=CS(r);else throw new Error(process.env.NODE_ENV==="production"?me(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?me(2):"`middleware` field must be a callback");let c;if(typeof n=="function"){if(c=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?me(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?me(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&i){let m=new Set;c.forEach(h=>{if(m.has(h))throw new Error(process.env.NODE_ENV==="production"?me(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(h)})}let u=os;o&&(u=$L({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const d=bL(...c),p=GL(d);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?me(5):"`enhancers` field must be a callback");let v=typeof s=="function"?s(p):p();if(process.env.NODE_ENV!=="production"&&!Array.isArray(v))throw new Error(process.env.NODE_ENV==="production"?me(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&v.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?me(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!v.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...v);return ES(l,a,g)}function HS(e){const t={},r=[];let n;const o={addCase(i,a){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?me(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?me(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof i=="string"?i:i.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?me(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?me(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=a,o},addAsyncThunk(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:i,reducer:a}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(31):"`builder.addDefaultCase` can only be called once");return n=i,o}};return e(o),[t,r,n]}function YL(e){return typeof e=="function"}function XL(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?me(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=HS(t),i;if(YL(e))i=()=>Ig(e());else{const s=Ig(e);i=()=>s}function a(s=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,d)=>{if(d)if(yr(u)){const v=d(u,l);return v===void 0?u:v}else{if(Vt(u))return DS(u,p=>d(p,l));{const p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},s)}return a.getInitialState=i,a}var ZL="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",JL=(e=21)=>{let t="",r=e;for(;r--;)t+=ZL[Math.random()*64|0];return t},QL=Symbol.for("rtk-slice-createasyncthunk");function eF(e,t){return`${e}/${t}`}function tF({creators:e}={}){const t=e?.asyncThunk?.[QL];return function(n){const{name:o,reducerPath:i=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?me(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof n.reducers=="function"?n.reducers(nF()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(w,P){const O=typeof w=="string"?w:w.type;if(!O)throw new Error(process.env.NODE_ENV==="production"?me(12):"`context.addCase` cannot be called with an empty action type");if(O in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?me(13):"`context.addCase` cannot be called with two reducers for the same action type: "+O);return l.sliceCaseReducersByType[O]=P,c},addMatcher(w,P){return l.sliceMatchers.push({matcher:w,reducer:P}),c},exposeAction(w,P){return l.actionCreators[w]=P,c},exposeCaseReducer(w,P){return l.sliceCaseReducersByName[w]=P,c}};s.forEach(w=>{const P=a[w],O={reducerName:w,type:eF(o,w),createNotation:typeof n.reducers=="function"};iF(P)?sF(O,P,c,t):oF(O,P,c)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?me(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[w={},P=[],O=void 0]=typeof n.extraReducers=="function"?HS(n.extraReducers):[n.extraReducers],S={...w,...l.sliceCaseReducersByType};return XL(n.initialState,E=>{for(let C in S)E.addCase(C,S[C]);for(let C of l.sliceMatchers)E.addMatcher(C.matcher,C.reducer);for(let C of P)E.addMatcher(C.matcher,C.reducer);O&&E.addDefaultCase(O)})}const d=w=>w,p=new Map,v=new WeakMap;let g;function m(w,P){return g||(g=u()),g(w,P)}function h(){return g||(g=u()),g.getInitialState()}function b(w,P=!1){function O(E){let C=E[w];if(typeof C>"u"){if(P)C=ya(v,O,h);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?me(15):"selectSlice returned undefined for an uninjected slice reducer")}return C}function S(E=d){const C=ya(p,P,()=>new WeakMap);return ya(C,E,()=>{const N={};for(const[D,$]of Object.entries(n.selectors??{}))N[D]=rF($,E,()=>ya(v,E,h),P);return N})}return{reducerPath:w,getSelectors:S,get selectors(){return S(O)},selectSlice:O}}const x={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:h,...b(i),injectInto(w,{reducerPath:P,...O}={}){const S=P??i;return w.inject({reducerPath:S,reducer:m},O),{...x,...b(S,!0)}}};return x}}function rF(e,t,r,n){function o(i,...a){let s=t(i);if(typeof s>"u"){if(n)s=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?me(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return o.unwrapped=e,o}var xt=tF();function nF(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function oF({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!aF(n))throw new Error(process.env.NODE_ENV==="production"?me(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Rt(e,a):Rt(e))}function iF(e){return e._reducerDefinitionType==="asyncThunk"}function aF(e){return e._reducerDefinitionType==="reducerWithPrepare"}function sF({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?me(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=r,d=o(e,i,u);n.exposeAction(t,d),a&&n.addCase(d.fulfilled,a),s&&n.addCase(d.pending,s),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:a||xa,pending:s||xa,rejected:l||xa,settled:c||xa})}function xa(){}var lF="task",GS="listener",qS="completed",xp="cancelled",cF=`task-${xp}`,uF=`task-${qS}`,Bd=`${GS}-${xp}`,dF=`${GS}-${qS}`,Sl=class{constructor(e){this.code=e,this.message=`${lF} ${xp} (reason: ${e})`}name="TaskAbortError";message},wp=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?me(32):`${t} is not a function`)},ds=()=>{},YS=(e,t=ds)=>(e.catch(t),e),XS=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),xn=e=>{if(e.aborted)throw new Sl(e.reason)};function ZS(e,t){let r=ds;return new Promise((n,o)=>{const i=()=>o(new Sl(e.reason));if(e.aborted){i();return}r=XS(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=ds})}var fF=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Sl?"cancelled":"rejected",error:r}}finally{t?.()}},fs=e=>t=>YS(ZS(e,t).then(r=>(xn(e),r))),JS=e=>{const t=fs(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:io}=Object,Rg={},Ai="listenerMiddleware",pF=(e,t)=>{const r=n=>XS(e,()=>n.abort(e.reason));return(n,o)=>{wp(n,"taskExecutor");const i=new AbortController;r(i);const a=fF(async()=>{xn(e),xn(i.signal);const s=await n({pause:fs(i.signal),delay:JS(i.signal),signal:i.signal});return xn(i.signal),s},()=>i.abort(uF));return o?.autoJoin&&t.push(a.catch(ds)),{result:fs(e)(a),cancel(){i.abort(cF)}}}},vF=(e,t)=>{const r=async(n,o)=>{xn(t);let i=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(d,p)=>{p.unsubscribe(),l([d,p.getState(),p.getOriginalState()])}});i=()=>{u(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{const l=await ZS(t,Promise.race(s));return xn(t),l}finally{i()}};return(n,o)=>YS(r(n,o))},QS=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=Rt(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(process.env.NODE_ENV==="production"?me(21):"Creating or removing a listener requires one of the known fields for matching an action");return wp(i,"options.listener"),{predicate:o,type:t,effect:i}},eO=io(e=>{const{type:t,predicate:r,effect:n}=QS(e);return{id:JL(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?me(22):"Unsubscribe not initialized")}}},{withTypes:()=>eO}),Dg=(e,t)=>{const{type:r,effect:n,predicate:o}=QS(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},Vd=e=>{e.pending.forEach(t=>{t.abort(Bd)})},mF=(e,t)=>()=>{for(const r of t.keys())Vd(r);e.clear()},$g=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},tO=io(Rt(`${Ai}/add`),{withTypes:()=>tO}),hF=Rt(`${Ai}/removeAll`),rO=io(Rt(`${Ai}/remove`),{withTypes:()=>rO}),gF=(...e)=>{console.error(`${Ai}/error`,...e)},_i=(e={})=>{const t=new Map,r=new Map,n=v=>{const g=r.get(v)??0;r.set(v,g+1)},o=v=>{const g=r.get(v)??1;g===1?r.delete(v):r.set(v,g-1)},{extra:i,onError:a=gF}=e;wp(a,"onError");const s=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),g=>{v.unsubscribe(),g?.cancelActive&&Vd(v)}),l=v=>{const g=Dg(t,v)??eO(v);return s(g)};io(l,{withTypes:()=>l});const c=v=>{const g=Dg(t,v);return g&&(g.unsubscribe(),v.cancelActive&&Vd(g)),!!g};io(c,{withTypes:()=>c});const u=async(v,g,m,h)=>{const b=new AbortController,x=vF(l,b.signal),w=[];try{v.pending.add(b),n(v),await Promise.resolve(v.effect(g,io({},m,{getOriginalState:h,condition:(P,O)=>x(P,O).then(Boolean),take:x,delay:JS(b.signal),pause:fs(b.signal),extra:i,signal:b.signal,fork:pF(b.signal,w),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((P,O,S)=>{P!==b&&(P.abort(Bd),S.delete(P))})},cancel:()=>{b.abort(Bd),v.pending.delete(b)},throwIfCancelled:()=>{xn(b.signal)}})))}catch(P){P instanceof Sl||$g(a,P,{raisedBy:"effect"})}finally{await Promise.all(w),b.abort(dF),o(v),v.pending.delete(b)}},d=mF(t,r);return{middleware:v=>g=>m=>{if(!hp(m))return g(m);if(tO.match(m))return l(m.payload);if(hF.match(m)){d();return}if(rO.match(m))return c(m.payload);let h=v.getState();const b=()=>{if(h===Rg)throw new Error(process.env.NODE_ENV==="production"?me(23):`${Ai}: getOriginalState can only be called synchronously`);return h};let x;try{if(x=g(m),t.size>0){const w=v.getState(),P=Array.from(t.values());for(const O of P){let S=!1;try{S=O.predicate(m,w,h)}catch(E){S=!1,$g(a,E,{raisedBy:"predicate"})}S&&u(O,m,v,b)}}}finally{h=Rg}return x},startListening:l,stopListening:c,clearListeners:d}};function me(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var yF={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},nO=xt({name:"chartLayout",initialState:yF,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,o,i;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:bF,setLayout:xF,setChartSize:wF,setScale:PF}=nO.actions,SF=nO.reducer;function oO(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ce(e){return Number.isFinite(e)}function ar(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Lg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){OF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OF(e,t,r){return(t=EF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EF(e){var t=CF(e,"string");return typeof t=="symbol"?t:t+""}function CF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function be(e,t,r){return Te(e)||Te(t)?r:ir(t)?Cn(e,t,r):typeof t=="function"?t(e):r}var AF=(e,t,r)=>{if(t&&r){var{width:n,height:o}=r,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&q(e[i]))return eo(eo({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&q(e[a]))return eo(eo({},e),{},{[a]:e[a]+(o||0)})}return e},_r=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",iO=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var o,i,a=e.map(s=>(s.coordinate===t&&(o=!0),s.coordinate===r&&(i=!0),s.coordinate));return o||a.push(t),i||a.push(r),a},aO=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:o,range:i,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:p,axisType:v}=e;if(!a)return null;var g=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,m=o==="category"&&a.bandwidth?a.bandwidth()/g:0;if(m=v==="angleAxis"&&i&&i.length>=2?Ge(i[0]-i[1])*2*m:m,d||p){var h=(d||p||[]).map((b,x)=>{var w=n?n.indexOf(b):b,P=a.map(w);return ce(P)?{coordinate:P+m,value:b,offset:m,index:x}:null}).filter(yt);return h}return l&&c?c.map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:b,index:x,offset:m}:null}).filter(yt):a.ticks&&u!=null?a.ticks(u).map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:b,index:x,offset:m}:null}).filter(yt):a.domain().map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:n?n[b]:b,index:x,offset:m}:null}).filter(yt)},_F=(e,t)=>{if(!t||t.length!==2||!q(t[0])||!q(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!q(e[0])||e[0]<r)&&(o[0]=r),(!q(e[1])||e[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o},TF=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o<n;++o)for(var i=0,a=0,s=0;s<r;++s){var l=e[s],c=l?.[o];if(c!=null){var u=c[1],d=c[0],p=or(u)?d:u;p>=0?(c[0]=i,i+=p,c[1]=i):(c[0]=a,a+=p,c[1]=a)}}}},jF=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o<n;++o)for(var i=0,a=0;a<r;++a){var s=e[a],l=s?.[o];if(l!=null){var c=or(l[1])?l[0]:l[1];c>=0?(l[0]=i,i+=c,l[1]=i):(l[0]=0,l[1]=0)}}}},NF={sign:TF,expand:k2,none:En,silhouette:R2,wiggle:D2,positive:jF},MF=(e,t,r)=>{var n,o=(n=NF[r])!==null&&n!==void 0?n:En,i=I2().keys(t).value((s,l)=>Number(be(s,l,0))).order(jd).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,u)=>{var d=be(e[u],t[l],0);Array.isArray(d)&&d.length===2&&q(d[0])&&q(d[1])&&(c[0]=d[0],c[1]=d[1])})}),a};function IF(e){return e==null?void 0:String(e)}function Fg(e){var{axis:t,ticks:r,bandSize:n,entry:o,index:i,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Te(o[t.dataKey])){var s=sS(r,"value",o[t.dataKey]);if(s)return s.coordinate+n/2}return r!=null&&r[i]?r[i].coordinate+n/2:null}var l=be(o,Te(a)?t.dataKey:a),c=t.scale.map(l);return q(c)?c:null}var zg=e=>{var{axis:t,ticks:r,offset:n,bandSize:o,entry:i,index:a}=e;if(t.type==="category")return r[a]?r[a].coordinate+n:null;var s=be(i,t.dataKey,t.scale.domain()[a]);if(Te(s))return null;var l=t.scale.map(s);return q(l)?l-o/2+n:null},kF=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},RF=e=>{var t=e.flat(2).filter(q);return[Math.min(...t),Math.max(...t)]},DF=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],$F=(e,t,r)=>{if(e!=null)return DF(Object.keys(e).reduce((n,o)=>{var i=e[o];if(!i)return n;var{stackedData:a}=i,s=a.reduce((l,c)=>{var u=oO(c,t,r),d=RF(u);return!ce(d[0])||!ce(d[1])?l:[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},Bg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,co=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=ml(t,u=>u.coordinate),i=1/0,a=1,s=o.length;a<s;a++){var l=o[a],c=o[a-1];i=Math.min((l?.coordinate||0)-(c?.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0};function Wg(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:o,name:i}=e;return eo(eo({},t),{},{dataKey:r,payload:n,value:o,name:i})}function wo(e,t){if(e)return String(e);if(typeof t=="string")return t}var LF=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},FF=(e,t)=>t==="centric"?e.angle:e.radius,Tr=e=>e.layout.width,jr=e=>e.layout.height,zF=e=>e.layout.scale,sO=e=>e.layout.margin,Ol=j(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),El=j(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),lO="data-recharts-item-index",cO="data-recharts-item-id",Ti=60;function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function wa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){BF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BF(e,t,r){return(t=VF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VF(e){var t=WF(e,"string");return typeof t=="symbol"?t:t+""}function WF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KF=e=>e.brush.height;function UF(e){var t=El(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:Ti;return r+o}return r},0)}function HF(e){var t=El(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:Ti;return r+o}return r},0)}function GF(e){var t=Ol(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function qF(e){var t=Ol(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Be=j([Tr,jr,sO,KF,UF,HF,GF,qF,SS,sL],(e,t,r,n,o,i,a,s,l,c)=>{var u={left:(r.left||0)+o,right:(r.right||0)+i},d={top:(r.top||0)+a,bottom:(r.bottom||0)+s},p=wa(wa({},d),u),v=p.bottom;p.bottom+=n,p=AF(p,l,c);var g=e-p.left-p.right,m=t-p.top-p.bottom;return wa(wa({brushBottom:v},p),{},{width:Math.max(g,0),height:Math.max(m,0)})}),YF=j(Be,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Pp=j(Tr,jr,(e,t)=>({x:0,y:0,width:e,height:t})),XF=A.createContext(null),ct=()=>A.useContext(XF)!=null,Cl=e=>e.brush,Al=j([Cl,Be,sO],(e,t,r)=>({height:e.height,x:q(e.x)?e.x:t.left,y:q(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:q(e.width)?e.width:t.width})),Du={},$u={},Lu={},Ug;function ZF(){return Ug||(Ug=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:o,edges:i}={}){let a,s=null;const l=i!=null&&i.includes("leading"),c=i==null||i.includes("trailing"),u=()=>{s!==null&&(r.apply(a,s),a=void 0,s=null)},d=()=>{c&&u(),m()};let p=null;const v=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},n)},g=()=>{p!==null&&(clearTimeout(p),p=null)},m=()=>{g(),a=void 0,s=null},h=()=>{u()},b=function(...x){if(o?.aborted)return;a=this,s=x;const w=p==null;v(),l&&w&&u()};return b.schedule=v,b.cancel=m,b.flush=h,o?.addEventListener("abort",m,{once:!0}),b}e.debounce=t})(Lu)),Lu}var Hg;function JF(){return Hg||(Hg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZF();function r(n,o=0,i={}){typeof i!="object"&&(i={});const{leading:a=!1,trailing:s=!0,maxWait:l}=i,c=Array(2);a&&(c[0]="leading"),s&&(c[1]="trailing");let u,d=null;const p=t.debounce(function(...m){u=n.apply(this,m),d=null},o,{edges:c}),v=function(...m){return l!=null&&(d===null&&(d=Date.now()),Date.now()-d>=l)?(u=n.apply(this,m),d=Date.now(),p.cancel(),p.schedule(),u):(p.apply(this,m),u)},g=()=>(p.flush(),u);return v.cancel=p.cancel,v.flush=g,v}e.debounce=r})($u)),$u}var Gg;function QF(){return Gg||(Gg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=JF();function r(n,o=0,i={}){const{leading:a=!0,trailing:s=!0}=i;return t.debounce(n,o,{leading:a,maxWait:o,trailing:s})}e.throttle=r})(Du)),Du}var Fu,qg;function ez(){return qg||(qg=1,Fu=QF().throttle),Fu}var tz=ez();const rz=Jr(tz);var ps=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(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 a=0;console.warn(r.replace(/%s/g,()=>o[a++]))}},Qt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},uO=(e,t,r)=>{var{width:n=Qt.width,height:o=Qt.height,aspect:i,maxHeight:a}=r,s=An(n)?e:Number(n),l=An(o)?t:Number(o);return i&&i>0&&(s?l=s/i:l&&(s=l*i),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},nz={width:0,height:0,overflow:"visible"},oz={width:0,overflowX:"visible"},iz={height:0,overflowY:"visible"},az={},sz=e=>{var{width:t,height:r}=e,n=An(t),o=An(r);return n&&o?nz:n?oz:o?iz:az};function lz(e){var{width:t,height:r,aspect:n}=e,o=t,i=r;return o===void 0&&i===void 0?(o=Qt.width,i=Qt.height):o===void 0?o=n&&n>0?void 0:Qt.width:i===void 0&&(i=n&&n>0?void 0:Qt.height),{width:o,height:i}}function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wd.apply(null,arguments)}function Yg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xg(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){cz(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 cz(e,t,r){return(t=uz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uz(e){var t=dz(e,"string");return typeof t=="symbol"?t:t+""}function dz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dO=A.createContext(Qt.initialDimension);function fz(e){return ar(e.width)&&ar(e.height)}function fO(e){var{children:t,width:r,height:n}=e,o=A.useMemo(()=>({width:r,height:n}),[r,n]);return fz(o)?f.createElement(dO.Provider,{value:o},t):null}var Sp=()=>A.useContext(dO),pz=A.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Qt.initialDimension,width:o,height:i,minWidth:a=Qt.minWidth,minHeight:s,maxHeight:l,children:c,debounce:u=Qt.debounce,id:d,className:p,onResize:v,style:g={}}=e,m=A.useRef(null),h=A.useRef();h.current=v,A.useImperativeHandle(t,()=>m.current);var[b,x]=A.useState({containerWidth:n.width,containerHeight:n.height}),w=A.useCallback((C,N)=>{x(D=>{var $=Math.round(C),_=Math.round(N);return D.containerWidth===$&&D.containerHeight===_?D:{containerWidth:$,containerHeight:_}})},[]);A.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Fn;var C=_=>{var M,k=_[0];if(k!=null){var{width:V,height:B}=k.contentRect;w(V,B),(M=h.current)===null||M===void 0||M.call(h,V,B)}};u>0&&(C=rz(C,u,{trailing:!0,leading:!1}));var N=new ResizeObserver(C),{width:D,height:$}=m.current.getBoundingClientRect();return w(D,$),N.observe(m.current),()=>{N.disconnect()}},[w,u]);var{containerWidth:P,containerHeight:O}=b;ps(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:S,calculatedHeight:E}=uO(P,O,{width:o,height:i,aspect:r,maxHeight:l});return ps(S!=null&&S>0||E!=null&&E>0,`The width(%s) and height(%s) of chart should be greater than 0,
69
69
  please check the style of container, or the props width(%s) and height(%s),
70
70
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
71
- height and width.`,S,E,o,i,a,s,r),f.createElement("div",{id:d?"".concat(d):void 0,className:de("recharts-responsive-container",p),style:Xg(Xg({},g),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},f.createElement("div",{style:az({width:o,height:i})},f.createElement(fO,{width:S,height:E},c)))}),Op=A.forwardRef((e,t)=>{var r=Sp();if(ar(r.width)&&ar(r.height))return e.children;var{width:n,height:o}=sz({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=uO(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return q(i)&&q(a)?f.createElement(fO,{width:i,height:a},e.children):f.createElement(fz,Wd({},e,{width:n,height:o,ref:t}))});function Ep(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var _l=()=>{var e,t=ct(),r=J(qF),n=J(Al),o=(e=J(Cl))===null||e===void 0?void 0:e.padding;return!t||!n||!o?r:{width:n.width-o.left-o.right,height:n.height-o.top-o.bottom,x:o.left,y:o.top}},pz={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},pO=()=>{var e;return(e=J(Be))!==null&&e!==void 0?e:pz},Cp=()=>J(Tr),Ap=()=>J(jr),vz=()=>J(e=>e.layout.margin),ve=e=>e.layout.layoutType,zn=()=>J(ve),vO=()=>{var e=zn();if(e==="horizontal"||e==="vertical")return e},mO=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},mz=()=>{var e=zn();return e!==void 0},ji=e=>{var t=Pe(),r=ct(),{width:n,height:o}=e,i=Sp(),a=n,s=o;return i&&(a=i.width>0?i.width:n,s=i.height>0?i.height:o),A.useEffect(()=>{!r&&ar(a)&&ar(s)&&t(xF({width:a,height:s}))},[t,r,a,s]),null},hO=Symbol.for("immer-nothing"),Zg=Symbol.for("immer-draftable"),_t=Symbol.for("immer-state"),hz=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function gt(e,...t){if(process.env.NODE_ENV!=="production"){const r=hz[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ti=Object.getPrototypeOf;function uo(e){return!!e&&!!e[_t]}function Tn(e){return e?gO(e)||Array.isArray(e)||!!e[Zg]||!!e.constructor?.[Zg]||Ni(e)||jl(e):!1}var gz=Object.prototype.constructor.toString(),Jg=new WeakMap;function gO(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=Jg.get(r);return n===void 0&&(n=Function.toString.call(r),Jg.set(r,n)),n===gz}function vs(e,t,r=!0){Tl(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Tl(e){const t=e[_t];return t?t.type_:Array.isArray(e)?1:Ni(e)?2:jl(e)?3:0}function Kd(e,t){return Tl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function yO(e,t,r){const n=Tl(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function yz(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ni(e){return e instanceof Map}function jl(e){return e instanceof Set}function dn(e){return e.copy_||e.base_}function Ud(e,t){if(Ni(e))return new Map(e);if(jl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=gO(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[_t];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(ti(e),n)}else{const n=ti(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function _p(e,t=!1){return Nl(e)||uo(e)||!Tn(e)||(Tl(e)>1&&Object.defineProperties(e,{set:Pa,add:Pa,clear:Pa,delete:Pa}),Object.freeze(e),t&&Object.values(e).forEach(r=>_p(r,!0))),e}function bz(){gt(2)}var Pa={value:bz};function Nl(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var xz={};function jn(e){const t=xz[e];return t||gt(0,e),t}var ri;function bO(){return ri}function wz(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Qg(e,t){t&&(jn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Hd(e){Gd(e),e.drafts_.forEach(Pz),e.drafts_=null}function Gd(e){e===ri&&(ri=e.parent_)}function ey(e){return ri=wz(ri,e)}function Pz(e){const t=e[_t];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ty(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[_t].modified_&&(Hd(t),gt(4)),Tn(e)&&(e=ms(t,e),t.parent_||hs(t,e)),t.patches_&&jn("Patches").generateReplacementPatches_(r[_t].base_,e,t.patches_,t.inversePatches_)):e=ms(t,r,[]),Hd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==hO?e:void 0}function ms(e,t,r){if(Nl(t))return t;const n=e.immer_.shouldUseStrictIteration(),o=t[_t];if(!o)return vs(t,(i,a)=>ry(e,o,t,i,a,r),n),t;if(o.scope_!==e)return t;if(!o.modified_)return hs(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const i=o.copy_;let a=i,s=!1;o.type_===3&&(a=new Set(i),i.clear(),s=!0),vs(a,(l,c)=>ry(e,o,i,l,c,r,s),n),hs(e,i,!1),r&&e.patches_&&jn("Patches").generatePatches_(o,r,e.patches_,e.inversePatches_)}return o.copy_}function ry(e,t,r,n,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=Nl(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===r&&gt(5),uo(o)){const l=i&&t&&t.type_!==3&&!Kd(t.assigned_,n)?i.concat(n):void 0,c=ms(e,o,l);if(yO(r,n,c),uo(c))e.canAutoFreeze_=!1;else return}else a&&r.add(o);if(Tn(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===o&&s)return;ms(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Ni(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&hs(e,o)}}}function hs(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_p(t,r)}function Sz(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:bO(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Tp;r&&(o=[n],i=ni);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var Tp={get(e,t){if(t===_t)return e;const r=dn(e);if(!Kd(r,t))return Oz(e,r,t);const n=r[t];return e.finalized_||!Tn(n)?n:n===zu(e.base_,t)?(Bu(e),e.copy_[t]=Yd(n,e)):n},has(e,t){return t in dn(e)},ownKeys(e){return Reflect.ownKeys(dn(e))},set(e,t,r){const n=xO(dn(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=zu(dn(e),t),i=o?.[_t];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(yz(r,o)&&(r!==void 0||Kd(e.base_,t)))return!0;Bu(e),qd(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return zu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Bu(e),qd(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=dn(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){gt(11)},getPrototypeOf(e){return ti(e.base_)},setPrototypeOf(){gt(12)}},ni={};vs(Tp,(e,t)=>{ni[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ni.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&gt(13),ni.set.call(this,e,t,void 0)};ni.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&gt(14),Tp.set.call(this,e[0],t,r,e[0])};function zu(e,t){const r=e[_t];return(r?dn(r):e)[t]}function Oz(e,t,r){const n=xO(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function xO(e,t){if(!(t in e))return;let r=ti(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ti(r)}}function qd(e){e.modified_||(e.modified_=!0,e.parent_&&qd(e.parent_))}function Bu(e){e.copy_||(e.copy_=Ud(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ez=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const a=this;return function(l=i,...c){return a.produce(l,u=>r.call(this,u,...c))}}typeof r!="function"&&gt(6),n!==void 0&&typeof n!="function"&&gt(7);let o;if(Tn(t)){const i=ey(this),a=Yd(t,void 0);let s=!0;try{o=r(a),s=!1}finally{s?Hd(i):Gd(i)}return Qg(i,n),ty(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===hO&&(o=void 0),this.autoFreeze_&&_p(o,!0),n){const i=[],a=[];jn("Patches").generateReplacementPatches_(t,o,i,a),n(i,a)}return o}else gt(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,o;return[this.produce(t,r,(a,s)=>{n=a,o=s}),n,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Tn(e)||gt(8),uo(e)&&(e=Cz(e));const t=ey(this),r=Yd(e,void 0);return r[_t].isManual_=!0,Gd(t),r}finishDraft(e,t){const r=e&&e[_t];(!r||!r.isManual_)&&gt(9);const{scope_:n}=r;return Qg(n,t),ty(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=jn("Patches").applyPatches_;return uo(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Yd(e,t){const r=Ni(e)?jn("MapSet").proxyMap_(e,t):jl(e)?jn("MapSet").proxySet_(e,t):Sz(e,t);return(t?t.scope_:bO()).drafts_.push(r),r}function Cz(e){return uo(e)||gt(10,e),wO(e)}function wO(e){if(!Tn(e)||Nl(e))return e;const t=e[_t];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ud(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Ud(e,!0);return vs(r,(o,i)=>{yO(r,o,wO(i))},n),t&&(t.finalized_=!1),r}var Az=new Ez;Az.produce;var _z={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},PO=xt({name:"legend",initialState:_z,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Ce()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).payload.indexOf(r);o>-1&&(e.payload[o]=n)},prepare:Ce()},removeLegendPayload:{reducer(e,t){var r=Bt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Ce()}}}),{setLegendSize:ny,setLegendSettings:Tz,addLegendPayload:SO,replaceLegendPayload:OO,removeLegendPayload:EO}=PO.actions,jz=PO.reducer,Nz=["contextPayload"];function Xd(){return Xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xd.apply(null,arguments)}function oy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oy(Object(r),!0).forEach(function(n){Mz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mz(e,t,r){return(t=Iz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iz(e){var t=kz(e,"string");return typeof t=="symbol"?t:t+""}function kz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rz(e,t){if(e==null)return{};var r,n,o=Dz(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Dz(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function $z(e){return e.value}function Lz(e){var{contextPayload:t}=e,r=Rz(e,Nz),n=yS(t,e.payloadUniqBy,$z),o=fo(fo({},r),{},{payload:n});return f.isValidElement(e.content)?f.cloneElement(e.content,o):typeof e.content=="function"?f.createElement(e.content,o):f.createElement(u$,o)}function Fz(e,t,r,n,o,i){var{layout:a,align:s,verticalAlign:l}=t,c,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(s==="center"&&a==="vertical"?c={left:((n||0)-i.width)/2}:c=s==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?u={top:((o||0)-i.height)/2}:u=l==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),fo(fo({},c),u)}function zz(e){var t=Pe();return A.useEffect(()=>{t(Tz(e))},[t,e]),null}function Bz(e){var t=Pe();return A.useEffect(()=>(t(ny(e)),()=>{t(ny({width:0,height:0}))}),[t,e]),null}function Vz(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var Wz={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function Ml(e){var t=Le(e,Wz),r=cL(),n=r2(),o=vz(),{width:i,height:a,wrapperStyle:s,portal:l}=t,[c,u]=OS([r]),d=Cp(),p=Ap();if(d==null||p==null)return null;var v=d-(o?.left||0)-(o?.right||0),g=Vz(t.layout,a,i,v),m=l?s:fo(fo({position:"absolute",width:g?.width||i||"auto",height:g?.height||a||"auto"},Fz(s,t,o,d,p,c)),s),h=l??n;if(h==null||r==null)return null;var b=f.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:u},f.createElement(zz,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&f.createElement(Bz,{width:c.width,height:c.height}),f.createElement(Lz,Xd({},t,g,{margin:o,chartWidth:d,chartHeight:p,contextPayload:r})));return gi.createPortal(b,h)}Ml.displayName="Legend";function Zd(){return Zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zd.apply(null,arguments)}function iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ro(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iy(Object(r),!0).forEach(function(n){Kz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kz(e,t,r){return(t=Uz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uz(e){var t=Hz(e,"string");return typeof t=="symbol"?t:t+""}function Hz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gz(e){return Array.isArray(e)&&ir(e[0])&&ir(e[1])?e.join(" ~ "):e}var Xn={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},qz=e=>{var{separator:t=Xn.separator,contentStyle:r,itemStyle:n,labelStyle:o=Xn.labelStyle,payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:p=Xn.accessibilityLayer}=e,v=()=>{if(i&&i.length){var O={padding:0,margin:0},S=(s?ml(i,s):i).map((E,C)=>{if(E.type==="none")return null;var N=E.formatter||a||Gz,{value:D,name:$}=E,_=D,M=$;if(N){var k=N(D,$,E,C,i);if(Array.isArray(k))[_,M]=k;else if(k!=null)_=k;else return null}var V=Ro(Ro({},Xn.itemStyle),{},{color:E.color||Xn.itemStyle.color},n);return f.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:V},ir(M)?f.createElement("span",{className:"recharts-tooltip-item-name"},M):null,ir(M)?f.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,f.createElement("span",{className:"recharts-tooltip-item-value"},_),f.createElement("span",{className:"recharts-tooltip-item-unit"},E.unit||""))});return f.createElement("ul",{className:"recharts-tooltip-item-list",style:O},S)}return null},g=Ro(Ro({},Xn.contentStyle),r),m=Ro({margin:0},o),h=!Te(u),b=h?u:"",x=de("recharts-default-tooltip",l),w=de("recharts-tooltip-label",c);h&&d&&i!==void 0&&i!==null&&(b=d(u,i));var P=p?{role:"status","aria-live":"assertive"}:{};return f.createElement("div",Zd({className:x,style:g},P),f.createElement("p",{className:w,style:m},f.isValidElement(b)?b:"".concat(b)),v())},Do="recharts-tooltip-wrapper",Yz={visibility:"hidden"};function Xz(e){var{coordinate:t,translateX:r,translateY:n}=e;return de(Do,{["".concat(Do,"-right")]:q(r)&&t&&q(t.x)&&r>=t.x,["".concat(Do,"-left")]:q(r)&&t&&q(t.x)&&r<t.x,["".concat(Do,"-bottom")]:q(n)&&t&&q(t.y)&&n>=t.y,["".concat(Do,"-top")]:q(n)&&t&&q(t.y)&&n<t.y})}function ay(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:o,position:i,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(i&&q(i[n]))return i[n];var u=r[n]-s-(o>0?o:0),d=r[n]+o;if(t[n])return a[n]?u:d;var p=l[n];if(p==null)return 0;if(a[n]){var v=u,g=p;return v<g?Math.max(d,p):Math.max(u,p)}if(c==null)return 0;var m=d+s,h=p+c;return m>h?Math.max(u,p):Math.max(d,p)}function Zz(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Jz(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:o,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:c}=e,u,d,p;return s.height>0&&s.width>0&&r?(d=ay({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),p=ay({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=Zz({translateX:d,translateY:p,useTranslate3d:l})):u=Yz,{cssProperties:u,cssClasses:Xz({translateX:d,translateY:p,coordinate:r})}}function sy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sy(Object(r),!0).forEach(function(n){Jd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jd(e,t,r){return(t=Qz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qz(e){var t=eB(e,"string");return typeof t=="symbol"?t:t+""}function eB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class tB extends A.PureComponent{constructor(){super(...arguments),Jd(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Jd(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,o,i;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(o=(i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:o,children:i,coordinate:a,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:d,useTranslate3d:p,viewBox:v,wrapperStyle:g,lastBoundingBox:m,innerRef:h,hasPortalFromProps:b}=this.props,x=typeof c=="number"?c:c.x,w=typeof c=="number"?c:c.y,{cssClasses:P,cssProperties:O}=Jz({allowEscapeViewBox:r,coordinate:a,offsetLeft:x,offsetTop:w,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:p,viewBox:v}),S=b?{}:Sa(Sa({transition:l&&t?"transform ".concat(n,"ms ").concat(o):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),E=Sa(Sa({},S),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},g);return f.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:P,style:E,ref:h},i)}}var CO=()=>{var e;return(e=J(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qd.apply(null,arguments)}function ly(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ly(Object(r),!0).forEach(function(n){rB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ly(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rB(e,t,r){return(t=nB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nB(e){var t=oB(e,"string");return typeof t=="symbol"?t:t+""}function oB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uy={curveBasisClosed:w2,curveBasisOpen:P2,curveBasis:x2,curveBumpX:a2,curveBumpY:s2,curveLinearClosed:S2,curveLinear:pl,curveMonotoneX:O2,curveMonotoneY:E2,curveNatural:C2,curveStep:A2,curveStepAfter:T2,curveStepBefore:_2},gs=e=>ce(e.x)&&ce(e.y),dy=e=>e.base!=null&&gs(e.base)&&gs(e),$o=e=>e.x,Lo=e=>e.y,iB=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Si(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=uy["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return uy[r]||pl},fy={connectNulls:!1,type:"linear"},aB=e=>{var{type:t=fy.type,points:r=[],baseLine:n,layout:o,connectNulls:i=fy.connectNulls}=e,a=iB(t,o),s=i?r.filter(gs):r;if(Array.isArray(n)){var l,c=r.map((g,m)=>cy(cy({},g),{},{base:n[m]}));o==="vertical"?l=fa().y(Lo).x1($o).x0(g=>g.base.x):l=fa().x($o).y1(Lo).y0(g=>g.base.y);var u=l.defined(dy).curve(a),d=i?c.filter(dy):c;return u(d)}var p;o==="vertical"&&q(n)?p=fa().y(Lo).x1($o).x0(n):q(n)?p=fa().x($o).y1(Lo).y0(n):p=qP().x($o).y(Lo);var v=p.defined(gs).curve(a);return v(s)},jp=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=zn();if((!r||!r.length)&&!n)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=r&&r.length?aB(a):n;return f.createElement("path",Qd({},At(e),fp(e),{className:de("recharts-curve",t),d:s===null?void 0:s,ref:o}))},sB=["x","y","top","left","width","height","className"];function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(null,arguments)}function py(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function lB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?py(Object(r),!0).forEach(function(n){cB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):py(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cB(e,t,r){return(t=uB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uB(e){var t=dB(e,"string");return typeof t=="symbol"?t:t+""}function dB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fB(e,t){if(e==null)return{};var r,n,o=pB(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function pB(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var vB=(e,t,r,n,o,i)=>"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),mB=e=>{var{x:t=0,y:r=0,top:n=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=fB(e,sB),c=lB({x:t,y:r,top:n,left:o,width:i,height:a},l);return!q(t)||!q(r)||!q(i)||!q(a)||!q(n)||!q(o)?null:f.createElement("path",ef({},mt(c),{className:de("recharts-cross",s),d:vB(t,r,i,a,n,o)}))};function hB(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function my(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vy(Object(r),!0).forEach(function(n){gB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gB(e,t,r){return(t=yB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yB(e){var t=bB(e,"string");return typeof t=="symbol"?t:t+""}function bB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xB=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),AO=(e,t,r)=>e.map(n=>"".concat(xB(n)," ").concat(t,"ms ").concat(r)).join(","),wB=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),oi=(e,t)=>Object.keys(t).reduce((r,n)=>my(my({},r),{},{[n]:e(n,t[n])}),{});function hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hy(Object(r),!0).forEach(function(n){PB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PB(e,t,r){return(t=SB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SB(e){var t=OB(e,"string");return typeof t=="symbol"?t:t+""}function OB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ys=(e,t,r)=>e+(t-e)*r,tf=e=>{var{from:t,to:r}=e;return t!==r},_O=(e,t,r)=>{var n=oi((o,i)=>{if(tf(i)){var[a,s]=e(i.from,i.to,i.velocity);return ze(ze({},i),{},{from:a,velocity:s})}return i},t);return r<1?oi((o,i)=>tf(i)&&n[o]!=null?ze(ze({},i),{},{velocity:ys(i.velocity,n[o].velocity,r),from:ys(i.from,n[o].from,r)}):i,t):_O(e,n,r-1)};function EB(e,t,r,n,o,i){var a,s=n.reduce((p,v)=>ze(ze({},p),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>oi((p,v)=>v.from,s),c=()=>!Object.values(s).filter(tf).length,u=null,d=p=>{a||(a=p);var v=p-a,g=v/r.dt;s=_O(r,s,g),o(ze(ze(ze({},e),t),l())),a=p,c()||(u=i.setTimeout(d))};return()=>(u=i.setTimeout(d),()=>{var p;(p=u)===null||p===void 0||p()})}function CB(e,t,r,n,o,i,a){var s=null,l=o.reduce((d,p)=>{var v=e[p],g=t[p];return v==null||g==null?d:ze(ze({},d),{},{[p]:[v,g]})},{}),c,u=d=>{c||(c=d);var p=(d-c)/n,v=oi((m,h)=>ys(...h,r(p)),l);if(i(ze(ze(ze({},e),t),v)),p<1)s=a.setTimeout(u);else{var g=oi((m,h)=>ys(...h,r(1)),l);i(ze(ze(ze({},e),t),g))}};return()=>(s=a.setTimeout(u),()=>{var d;(d=s)===null||d===void 0||d()})}const AB=(e,t,r,n,o,i)=>{var a=wB(e,t);return r==null?()=>(o(ze(ze({},e),t)),()=>{}):r.isStepper===!0?EB(e,t,r,a,o,i):CB(e,t,r,n,a,o,i)};var bs=1e-4,TO=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],jO=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),gy=(e,t)=>r=>{var n=TO(e,t);return jO(n,r)},_B=(e,t)=>r=>{var n=TO(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return jO(o,r)},TB=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var o=n.map(i=>parseFloat(i));return[o[0],o[1],o[2],o[3]]},jB=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var o=TB(r[0]);if(o)return o}}return r.length===4?r:[0,0,1,1]},NB=(e,t,r,n)=>{var o=gy(e,r),i=gy(t,n),a=_B(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,d=u,p=0;p<8;++p){var v=o(d)-u,g=a(d);if(Math.abs(v-u)<bs||g<bs)return i(d);d=s(d-v/g)}return i(d)};return l.isStepper=!1,l},yy=function(){return NB(...jB(...arguments))},MB=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:o=17}=t,i=(a,s,l)=>{var c=-(a-s)*r,u=l*n,d=l+(c-u)*o/1e3,p=l*o/1e3+a;return Math.abs(p-s)<bs&&Math.abs(d)<bs?[s,0]:[p,d]};return i.isStepper=!0,i.dt=o,i},IB=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return yy(e);case"spring":return MB();default:if(e.split("(")[0]==="cubic-bezier")return yy(e)}return typeof e=="function"?e:null};function kB(e){var t,r=()=>null,n=!1,o=null,i=a=>{if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,c),l);return}i(l),o=e.setTimeout(i.bind(null,c));return}typeof a=="string"&&(t=a,r(t)),typeof a=="object"&&(t=a,r(t)),typeof a=="function"&&a()}};return{stop:()=>{n=!0},start:a=>{n=!1,o&&(o(),o=null),i(a)},subscribe:a=>(r=a,()=>{r=()=>null}),getTimeoutController:()=>e}}class RB{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),o=null,i=a=>{a-n>=r?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{o!=null&&cancelAnimationFrame(o)}}}function DB(){return kB(new RB)}var $B=A.createContext(DB);function LB(e,t){var r=A.useContext($B);return A.useMemo(()=>t??r(e),[e,t,r])}var FB=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Il={isSsr:FB()},zB={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},by={t:0},Vu={t:1};function Mi(e){var t=Le(e,zB),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=r==="auto"?!Il.isSsr:r,d=LB(t.animationId,t.animationManager),[p,v]=A.useState(u?by:Vu),g=A.useRef(null);return A.useEffect(()=>{u||v(Vu)},[u]),A.useEffect(()=>{if(!u||!n)return Fn;var m=AB(by,Vu,IB(i),o,v,d.getTimeoutController()),h=()=>{g.current=m()};return d.start([l,a,h,o,s]),()=>{d.stop(),g.current&&g.current(),s()}},[u,n,o,i,a,l,s,d]),c(p.t)}function Ii(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=A.useRef(Zo(t)),n=A.useRef(e);return n.current!==e&&(r.current=Zo(t),n.current=e),r.current}var BB=["radius"],VB=["radius"],xy,wy,Py,Sy,Oy,Ey,Cy,Ay,_y,Ty;function jy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ny(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jy(Object(r),!0).forEach(function(n){WB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WB(e,t,r){return(t=KB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KB(e){var t=UB(e,"string");return typeof t=="symbol"?t:t+""}function UB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xs.apply(null,arguments)}function My(e,t){if(e==null)return{};var r,n,o=HB(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function HB(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Iy=(e,t,r,n,o)=>{var i=Vr(r),a=Vr(n),s=Math.min(Math.abs(i)/2,Math.abs(a)/2),l=a>=0?1:-1,c=i>=0?1:-1,u=a>=0&&i>=0||a<0&&i<0?1:0,d;if(s>0&&Array.isArray(o)){for(var p=[0,0,0,0],v=0,g=4;v<g;v++){var m,h=(m=o[v])!==null&&m!==void 0?m:0;p[v]=h>s?s:h}d=Me(xy||(xy=qt(["M",",",""])),e,t+l*p[0]),p[0]>0&&(d+=Me(wy||(wy=qt(["A ",",",",0,0,",",",",",""])),p[0],p[0],u,e+c*p[0],t)),d+=Me(Py||(Py=qt(["L ",",",""])),e+r-c*p[1],t),p[1]>0&&(d+=Me(Sy||(Sy=qt(["A ",",",",0,0,",`,
71
+ height and width.`,S,E,o,i,a,s,r),f.createElement("div",{id:d?"".concat(d):void 0,className:de("recharts-responsive-container",p),style:Xg(Xg({},g),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},f.createElement("div",{style:sz({width:o,height:i})},f.createElement(fO,{width:S,height:E},c)))}),Op=A.forwardRef((e,t)=>{var r=Sp();if(ar(r.width)&&ar(r.height))return e.children;var{width:n,height:o}=lz({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=uO(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return q(i)&&q(a)?f.createElement(fO,{width:i,height:a},e.children):f.createElement(pz,Wd({},e,{width:n,height:o,ref:t}))});function Ep(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var _l=()=>{var e,t=ct(),r=J(YF),n=J(Al),o=(e=J(Cl))===null||e===void 0?void 0:e.padding;return!t||!n||!o?r:{width:n.width-o.left-o.right,height:n.height-o.top-o.bottom,x:o.left,y:o.top}},vz={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},pO=()=>{var e;return(e=J(Be))!==null&&e!==void 0?e:vz},Cp=()=>J(Tr),Ap=()=>J(jr),mz=()=>J(e=>e.layout.margin),ve=e=>e.layout.layoutType,zn=()=>J(ve),vO=()=>{var e=zn();if(e==="horizontal"||e==="vertical")return e},mO=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},hz=()=>{var e=zn();return e!==void 0},ji=e=>{var t=Pe(),r=ct(),{width:n,height:o}=e,i=Sp(),a=n,s=o;return i&&(a=i.width>0?i.width:n,s=i.height>0?i.height:o),A.useEffect(()=>{!r&&ar(a)&&ar(s)&&t(wF({width:a,height:s}))},[t,r,a,s]),null},hO=Symbol.for("immer-nothing"),Zg=Symbol.for("immer-draftable"),_t=Symbol.for("immer-state"),gz=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function gt(e,...t){if(process.env.NODE_ENV!=="production"){const r=gz[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ti=Object.getPrototypeOf;function uo(e){return!!e&&!!e[_t]}function Tn(e){return e?gO(e)||Array.isArray(e)||!!e[Zg]||!!e.constructor?.[Zg]||Ni(e)||jl(e):!1}var yz=Object.prototype.constructor.toString(),Jg=new WeakMap;function gO(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=Jg.get(r);return n===void 0&&(n=Function.toString.call(r),Jg.set(r,n)),n===yz}function vs(e,t,r=!0){Tl(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Tl(e){const t=e[_t];return t?t.type_:Array.isArray(e)?1:Ni(e)?2:jl(e)?3:0}function Kd(e,t){return Tl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function yO(e,t,r){const n=Tl(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function bz(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ni(e){return e instanceof Map}function jl(e){return e instanceof Set}function dn(e){return e.copy_||e.base_}function Ud(e,t){if(Ni(e))return new Map(e);if(jl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=gO(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[_t];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(ti(e),n)}else{const n=ti(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function _p(e,t=!1){return Nl(e)||uo(e)||!Tn(e)||(Tl(e)>1&&Object.defineProperties(e,{set:Pa,add:Pa,clear:Pa,delete:Pa}),Object.freeze(e),t&&Object.values(e).forEach(r=>_p(r,!0))),e}function xz(){gt(2)}var Pa={value:xz};function Nl(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var wz={};function jn(e){const t=wz[e];return t||gt(0,e),t}var ri;function bO(){return ri}function Pz(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Qg(e,t){t&&(jn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Hd(e){Gd(e),e.drafts_.forEach(Sz),e.drafts_=null}function Gd(e){e===ri&&(ri=e.parent_)}function ey(e){return ri=Pz(ri,e)}function Sz(e){const t=e[_t];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ty(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[_t].modified_&&(Hd(t),gt(4)),Tn(e)&&(e=ms(t,e),t.parent_||hs(t,e)),t.patches_&&jn("Patches").generateReplacementPatches_(r[_t].base_,e,t.patches_,t.inversePatches_)):e=ms(t,r,[]),Hd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==hO?e:void 0}function ms(e,t,r){if(Nl(t))return t;const n=e.immer_.shouldUseStrictIteration(),o=t[_t];if(!o)return vs(t,(i,a)=>ry(e,o,t,i,a,r),n),t;if(o.scope_!==e)return t;if(!o.modified_)return hs(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const i=o.copy_;let a=i,s=!1;o.type_===3&&(a=new Set(i),i.clear(),s=!0),vs(a,(l,c)=>ry(e,o,i,l,c,r,s),n),hs(e,i,!1),r&&e.patches_&&jn("Patches").generatePatches_(o,r,e.patches_,e.inversePatches_)}return o.copy_}function ry(e,t,r,n,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=Nl(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===r&&gt(5),uo(o)){const l=i&&t&&t.type_!==3&&!Kd(t.assigned_,n)?i.concat(n):void 0,c=ms(e,o,l);if(yO(r,n,c),uo(c))e.canAutoFreeze_=!1;else return}else a&&r.add(o);if(Tn(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===o&&s)return;ms(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Ni(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&hs(e,o)}}}function hs(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_p(t,r)}function Oz(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:bO(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Tp;r&&(o=[n],i=ni);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var Tp={get(e,t){if(t===_t)return e;const r=dn(e);if(!Kd(r,t))return Ez(e,r,t);const n=r[t];return e.finalized_||!Tn(n)?n:n===zu(e.base_,t)?(Bu(e),e.copy_[t]=Yd(n,e)):n},has(e,t){return t in dn(e)},ownKeys(e){return Reflect.ownKeys(dn(e))},set(e,t,r){const n=xO(dn(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=zu(dn(e),t),i=o?.[_t];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(bz(r,o)&&(r!==void 0||Kd(e.base_,t)))return!0;Bu(e),qd(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return zu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Bu(e),qd(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=dn(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){gt(11)},getPrototypeOf(e){return ti(e.base_)},setPrototypeOf(){gt(12)}},ni={};vs(Tp,(e,t)=>{ni[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ni.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&gt(13),ni.set.call(this,e,t,void 0)};ni.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&gt(14),Tp.set.call(this,e[0],t,r,e[0])};function zu(e,t){const r=e[_t];return(r?dn(r):e)[t]}function Ez(e,t,r){const n=xO(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function xO(e,t){if(!(t in e))return;let r=ti(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ti(r)}}function qd(e){e.modified_||(e.modified_=!0,e.parent_&&qd(e.parent_))}function Bu(e){e.copy_||(e.copy_=Ud(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Cz=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const a=this;return function(l=i,...c){return a.produce(l,u=>r.call(this,u,...c))}}typeof r!="function"&&gt(6),n!==void 0&&typeof n!="function"&&gt(7);let o;if(Tn(t)){const i=ey(this),a=Yd(t,void 0);let s=!0;try{o=r(a),s=!1}finally{s?Hd(i):Gd(i)}return Qg(i,n),ty(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===hO&&(o=void 0),this.autoFreeze_&&_p(o,!0),n){const i=[],a=[];jn("Patches").generateReplacementPatches_(t,o,i,a),n(i,a)}return o}else gt(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,o;return[this.produce(t,r,(a,s)=>{n=a,o=s}),n,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Tn(e)||gt(8),uo(e)&&(e=Az(e));const t=ey(this),r=Yd(e,void 0);return r[_t].isManual_=!0,Gd(t),r}finishDraft(e,t){const r=e&&e[_t];(!r||!r.isManual_)&&gt(9);const{scope_:n}=r;return Qg(n,t),ty(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=jn("Patches").applyPatches_;return uo(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Yd(e,t){const r=Ni(e)?jn("MapSet").proxyMap_(e,t):jl(e)?jn("MapSet").proxySet_(e,t):Oz(e,t);return(t?t.scope_:bO()).drafts_.push(r),r}function Az(e){return uo(e)||gt(10,e),wO(e)}function wO(e){if(!Tn(e)||Nl(e))return e;const t=e[_t];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ud(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Ud(e,!0);return vs(r,(o,i)=>{yO(r,o,wO(i))},n),t&&(t.finalized_=!1),r}var _z=new Cz;_z.produce;var Tz={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},PO=xt({name:"legend",initialState:Tz,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Ce()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).payload.indexOf(r);o>-1&&(e.payload[o]=n)},prepare:Ce()},removeLegendPayload:{reducer(e,t){var r=Bt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Ce()}}}),{setLegendSize:ny,setLegendSettings:jz,addLegendPayload:SO,replaceLegendPayload:OO,removeLegendPayload:EO}=PO.actions,Nz=PO.reducer,Mz=["contextPayload"];function Xd(){return Xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xd.apply(null,arguments)}function oy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oy(Object(r),!0).forEach(function(n){Iz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iz(e,t,r){return(t=kz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kz(e){var t=Rz(e,"string");return typeof t=="symbol"?t:t+""}function Rz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dz(e,t){if(e==null)return{};var r,n,o=$z(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $z(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Lz(e){return e.value}function Fz(e){var{contextPayload:t}=e,r=Dz(e,Mz),n=yS(t,e.payloadUniqBy,Lz),o=fo(fo({},r),{},{payload:n});return f.isValidElement(e.content)?f.cloneElement(e.content,o):typeof e.content=="function"?f.createElement(e.content,o):f.createElement(d$,o)}function zz(e,t,r,n,o,i){var{layout:a,align:s,verticalAlign:l}=t,c,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(s==="center"&&a==="vertical"?c={left:((n||0)-i.width)/2}:c=s==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?u={top:((o||0)-i.height)/2}:u=l==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),fo(fo({},c),u)}function Bz(e){var t=Pe();return A.useEffect(()=>{t(jz(e))},[t,e]),null}function Vz(e){var t=Pe();return A.useEffect(()=>(t(ny(e)),()=>{t(ny({width:0,height:0}))}),[t,e]),null}function Wz(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var Kz={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function Ml(e){var t=Le(e,Kz),r=uL(),n=n2(),o=mz(),{width:i,height:a,wrapperStyle:s,portal:l}=t,[c,u]=OS([r]),d=Cp(),p=Ap();if(d==null||p==null)return null;var v=d-(o?.left||0)-(o?.right||0),g=Wz(t.layout,a,i,v),m=l?s:fo(fo({position:"absolute",width:g?.width||i||"auto",height:g?.height||a||"auto"},zz(s,t,o,d,p,c)),s),h=l??n;if(h==null||r==null)return null;var b=f.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:u},f.createElement(Bz,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&f.createElement(Vz,{width:c.width,height:c.height}),f.createElement(Fz,Xd({},t,g,{margin:o,chartWidth:d,chartHeight:p,contextPayload:r})));return gi.createPortal(b,h)}Ml.displayName="Legend";function Zd(){return Zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zd.apply(null,arguments)}function iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ro(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iy(Object(r),!0).forEach(function(n){Uz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uz(e,t,r){return(t=Hz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hz(e){var t=Gz(e,"string");return typeof t=="symbol"?t:t+""}function Gz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qz(e){return Array.isArray(e)&&ir(e[0])&&ir(e[1])?e.join(" ~ "):e}var Xn={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},Yz=e=>{var{separator:t=Xn.separator,contentStyle:r,itemStyle:n,labelStyle:o=Xn.labelStyle,payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:p=Xn.accessibilityLayer}=e,v=()=>{if(i&&i.length){var O={padding:0,margin:0},S=(s?ml(i,s):i).map((E,C)=>{if(E.type==="none")return null;var N=E.formatter||a||qz,{value:D,name:$}=E,_=D,M=$;if(N){var k=N(D,$,E,C,i);if(Array.isArray(k))[_,M]=k;else if(k!=null)_=k;else return null}var V=Ro(Ro({},Xn.itemStyle),{},{color:E.color||Xn.itemStyle.color},n);return f.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:V},ir(M)?f.createElement("span",{className:"recharts-tooltip-item-name"},M):null,ir(M)?f.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,f.createElement("span",{className:"recharts-tooltip-item-value"},_),f.createElement("span",{className:"recharts-tooltip-item-unit"},E.unit||""))});return f.createElement("ul",{className:"recharts-tooltip-item-list",style:O},S)}return null},g=Ro(Ro({},Xn.contentStyle),r),m=Ro({margin:0},o),h=!Te(u),b=h?u:"",x=de("recharts-default-tooltip",l),w=de("recharts-tooltip-label",c);h&&d&&i!==void 0&&i!==null&&(b=d(u,i));var P=p?{role:"status","aria-live":"assertive"}:{};return f.createElement("div",Zd({className:x,style:g},P),f.createElement("p",{className:w,style:m},f.isValidElement(b)?b:"".concat(b)),v())},Do="recharts-tooltip-wrapper",Xz={visibility:"hidden"};function Zz(e){var{coordinate:t,translateX:r,translateY:n}=e;return de(Do,{["".concat(Do,"-right")]:q(r)&&t&&q(t.x)&&r>=t.x,["".concat(Do,"-left")]:q(r)&&t&&q(t.x)&&r<t.x,["".concat(Do,"-bottom")]:q(n)&&t&&q(t.y)&&n>=t.y,["".concat(Do,"-top")]:q(n)&&t&&q(t.y)&&n<t.y})}function ay(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:o,position:i,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(i&&q(i[n]))return i[n];var u=r[n]-s-(o>0?o:0),d=r[n]+o;if(t[n])return a[n]?u:d;var p=l[n];if(p==null)return 0;if(a[n]){var v=u,g=p;return v<g?Math.max(d,p):Math.max(u,p)}if(c==null)return 0;var m=d+s,h=p+c;return m>h?Math.max(u,p):Math.max(d,p)}function Jz(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Qz(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:o,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:c}=e,u,d,p;return s.height>0&&s.width>0&&r?(d=ay({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),p=ay({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=Jz({translateX:d,translateY:p,useTranslate3d:l})):u=Xz,{cssProperties:u,cssClasses:Zz({translateX:d,translateY:p,coordinate:r})}}function sy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sy(Object(r),!0).forEach(function(n){Jd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jd(e,t,r){return(t=eB(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 typeof t=="symbol"?t:t+""}function tB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class rB extends A.PureComponent{constructor(){super(...arguments),Jd(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Jd(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,o,i;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(o=(i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:o,children:i,coordinate:a,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:d,useTranslate3d:p,viewBox:v,wrapperStyle:g,lastBoundingBox:m,innerRef:h,hasPortalFromProps:b}=this.props,x=typeof c=="number"?c:c.x,w=typeof c=="number"?c:c.y,{cssClasses:P,cssProperties:O}=Qz({allowEscapeViewBox:r,coordinate:a,offsetLeft:x,offsetTop:w,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:p,viewBox:v}),S=b?{}:Sa(Sa({transition:l&&t?"transform ".concat(n,"ms ").concat(o):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),E=Sa(Sa({},S),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},g);return f.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:P,style:E,ref:h},i)}}var CO=()=>{var e;return(e=J(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qd.apply(null,arguments)}function ly(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ly(Object(r),!0).forEach(function(n){nB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ly(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nB(e,t,r){return(t=oB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oB(e){var t=iB(e,"string");return typeof t=="symbol"?t:t+""}function iB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uy={curveBasisClosed:P2,curveBasisOpen:S2,curveBasis:w2,curveBumpX:s2,curveBumpY:l2,curveLinearClosed:O2,curveLinear:pl,curveMonotoneX:E2,curveMonotoneY:C2,curveNatural:A2,curveStep:_2,curveStepAfter:j2,curveStepBefore:T2},gs=e=>ce(e.x)&&ce(e.y),dy=e=>e.base!=null&&gs(e.base)&&gs(e),$o=e=>e.x,Lo=e=>e.y,aB=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Si(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=uy["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return uy[r]||pl},fy={connectNulls:!1,type:"linear"},sB=e=>{var{type:t=fy.type,points:r=[],baseLine:n,layout:o,connectNulls:i=fy.connectNulls}=e,a=aB(t,o),s=i?r.filter(gs):r;if(Array.isArray(n)){var l,c=r.map((g,m)=>cy(cy({},g),{},{base:n[m]}));o==="vertical"?l=fa().y(Lo).x1($o).x0(g=>g.base.x):l=fa().x($o).y1(Lo).y0(g=>g.base.y);var u=l.defined(dy).curve(a),d=i?c.filter(dy):c;return u(d)}var p;o==="vertical"&&q(n)?p=fa().y(Lo).x1($o).x0(n):q(n)?p=fa().x($o).y1(Lo).y0(n):p=qP().x($o).y(Lo);var v=p.defined(gs).curve(a);return v(s)},jp=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=zn();if((!r||!r.length)&&!n)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=r&&r.length?sB(a):n;return f.createElement("path",Qd({},At(e),fp(e),{className:de("recharts-curve",t),d:s===null?void 0:s,ref:o}))},lB=["x","y","top","left","width","height","className"];function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(null,arguments)}function py(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?py(Object(r),!0).forEach(function(n){uB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):py(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uB(e,t,r){return(t=dB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dB(e){var t=fB(e,"string");return typeof t=="symbol"?t:t+""}function fB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pB(e,t){if(e==null)return{};var r,n,o=vB(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function vB(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var mB=(e,t,r,n,o,i)=>"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),hB=e=>{var{x:t=0,y:r=0,top:n=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=pB(e,lB),c=cB({x:t,y:r,top:n,left:o,width:i,height:a},l);return!q(t)||!q(r)||!q(i)||!q(a)||!q(n)||!q(o)?null:f.createElement("path",ef({},mt(c),{className:de("recharts-cross",s),d:mB(t,r,i,a,n,o)}))};function gB(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function my(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vy(Object(r),!0).forEach(function(n){yB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yB(e,t,r){return(t=bB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bB(e){var t=xB(e,"string");return typeof t=="symbol"?t:t+""}function xB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wB=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),AO=(e,t,r)=>e.map(n=>"".concat(wB(n)," ").concat(t,"ms ").concat(r)).join(","),PB=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),oi=(e,t)=>Object.keys(t).reduce((r,n)=>my(my({},r),{},{[n]:e(n,t[n])}),{});function hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hy(Object(r),!0).forEach(function(n){SB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SB(e,t,r){return(t=OB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OB(e){var t=EB(e,"string");return typeof t=="symbol"?t:t+""}function EB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ys=(e,t,r)=>e+(t-e)*r,tf=e=>{var{from:t,to:r}=e;return t!==r},_O=(e,t,r)=>{var n=oi((o,i)=>{if(tf(i)){var[a,s]=e(i.from,i.to,i.velocity);return ze(ze({},i),{},{from:a,velocity:s})}return i},t);return r<1?oi((o,i)=>tf(i)&&n[o]!=null?ze(ze({},i),{},{velocity:ys(i.velocity,n[o].velocity,r),from:ys(i.from,n[o].from,r)}):i,t):_O(e,n,r-1)};function CB(e,t,r,n,o,i){var a,s=n.reduce((p,v)=>ze(ze({},p),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>oi((p,v)=>v.from,s),c=()=>!Object.values(s).filter(tf).length,u=null,d=p=>{a||(a=p);var v=p-a,g=v/r.dt;s=_O(r,s,g),o(ze(ze(ze({},e),t),l())),a=p,c()||(u=i.setTimeout(d))};return()=>(u=i.setTimeout(d),()=>{var p;(p=u)===null||p===void 0||p()})}function AB(e,t,r,n,o,i,a){var s=null,l=o.reduce((d,p)=>{var v=e[p],g=t[p];return v==null||g==null?d:ze(ze({},d),{},{[p]:[v,g]})},{}),c,u=d=>{c||(c=d);var p=(d-c)/n,v=oi((m,h)=>ys(...h,r(p)),l);if(i(ze(ze(ze({},e),t),v)),p<1)s=a.setTimeout(u);else{var g=oi((m,h)=>ys(...h,r(1)),l);i(ze(ze(ze({},e),t),g))}};return()=>(s=a.setTimeout(u),()=>{var d;(d=s)===null||d===void 0||d()})}const _B=(e,t,r,n,o,i)=>{var a=PB(e,t);return r==null?()=>(o(ze(ze({},e),t)),()=>{}):r.isStepper===!0?CB(e,t,r,a,o,i):AB(e,t,r,n,a,o,i)};var bs=1e-4,TO=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],jO=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),gy=(e,t)=>r=>{var n=TO(e,t);return jO(n,r)},TB=(e,t)=>r=>{var n=TO(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return jO(o,r)},jB=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var o=n.map(i=>parseFloat(i));return[o[0],o[1],o[2],o[3]]},NB=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var o=jB(r[0]);if(o)return o}}return r.length===4?r:[0,0,1,1]},MB=(e,t,r,n)=>{var o=gy(e,r),i=gy(t,n),a=TB(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,d=u,p=0;p<8;++p){var v=o(d)-u,g=a(d);if(Math.abs(v-u)<bs||g<bs)return i(d);d=s(d-v/g)}return i(d)};return l.isStepper=!1,l},yy=function(){return MB(...NB(...arguments))},IB=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:o=17}=t,i=(a,s,l)=>{var c=-(a-s)*r,u=l*n,d=l+(c-u)*o/1e3,p=l*o/1e3+a;return Math.abs(p-s)<bs&&Math.abs(d)<bs?[s,0]:[p,d]};return i.isStepper=!0,i.dt=o,i},kB=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return yy(e);case"spring":return IB();default:if(e.split("(")[0]==="cubic-bezier")return yy(e)}return typeof e=="function"?e:null};function RB(e){var t,r=()=>null,n=!1,o=null,i=a=>{if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,c),l);return}i(l),o=e.setTimeout(i.bind(null,c));return}typeof a=="string"&&(t=a,r(t)),typeof a=="object"&&(t=a,r(t)),typeof a=="function"&&a()}};return{stop:()=>{n=!0},start:a=>{n=!1,o&&(o(),o=null),i(a)},subscribe:a=>(r=a,()=>{r=()=>null}),getTimeoutController:()=>e}}class DB{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),o=null,i=a=>{a-n>=r?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{o!=null&&cancelAnimationFrame(o)}}}function $B(){return RB(new DB)}var LB=A.createContext($B);function FB(e,t){var r=A.useContext(LB);return A.useMemo(()=>t??r(e),[e,t,r])}var zB=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Il={isSsr:zB()},BB={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},by={t:0},Vu={t:1};function Mi(e){var t=Le(e,BB),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=r==="auto"?!Il.isSsr:r,d=FB(t.animationId,t.animationManager),[p,v]=A.useState(u?by:Vu),g=A.useRef(null);return A.useEffect(()=>{u||v(Vu)},[u]),A.useEffect(()=>{if(!u||!n)return Fn;var m=_B(by,Vu,kB(i),o,v,d.getTimeoutController()),h=()=>{g.current=m()};return d.start([l,a,h,o,s]),()=>{d.stop(),g.current&&g.current(),s()}},[u,n,o,i,a,l,s,d]),c(p.t)}function Ii(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=A.useRef(Zo(t)),n=A.useRef(e);return n.current!==e&&(r.current=Zo(t),n.current=e),r.current}var VB=["radius"],WB=["radius"],xy,wy,Py,Sy,Oy,Ey,Cy,Ay,_y,Ty;function jy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ny(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jy(Object(r),!0).forEach(function(n){KB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KB(e,t,r){return(t=UB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UB(e){var t=HB(e,"string");return typeof t=="symbol"?t:t+""}function HB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xs.apply(null,arguments)}function My(e,t){if(e==null)return{};var r,n,o=GB(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function GB(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Iy=(e,t,r,n,o)=>{var i=Vr(r),a=Vr(n),s=Math.min(Math.abs(i)/2,Math.abs(a)/2),l=a>=0?1:-1,c=i>=0?1:-1,u=a>=0&&i>=0||a<0&&i<0?1:0,d;if(s>0&&Array.isArray(o)){for(var p=[0,0,0,0],v=0,g=4;v<g;v++){var m,h=(m=o[v])!==null&&m!==void 0?m:0;p[v]=h>s?s:h}d=Me(xy||(xy=qt(["M",",",""])),e,t+l*p[0]),p[0]>0&&(d+=Me(wy||(wy=qt(["A ",",",",0,0,",",",",",""])),p[0],p[0],u,e+c*p[0],t)),d+=Me(Py||(Py=qt(["L ",",",""])),e+r-c*p[1],t),p[1]>0&&(d+=Me(Sy||(Sy=qt(["A ",",",",0,0,",`,
72
72
  `,",",""])),p[1],p[1],u,e+r,t+l*p[1])),d+=Me(Oy||(Oy=qt(["L ",",",""])),e+r,t+n-l*p[2]),p[2]>0&&(d+=Me(Ey||(Ey=qt(["A ",",",",0,0,",`,
73
73
  `,",",""])),p[2],p[2],u,e+r-c*p[2],t+n)),d+=Me(Cy||(Cy=qt(["L ",",",""])),e+c*p[3],t+n),p[3]>0&&(d+=Me(Ay||(Ay=qt(["A ",",",",0,0,",`,
74
74
  `,",",""])),p[3],p[3],u,e,t+n-l*p[3])),d+="Z"}else if(s>0&&o===+o&&o>0){var b=Math.min(s,o);d=Me(_y||(_y=qt(["M ",",",`
@@ -78,14 +78,14 @@ Take a look at the reducer(s) handling this action type: ${v.type}.
78
78
  L `,",",`
79
79
  A `,",",",0,0,",",",",",`
80
80
  L `,",",`
81
- A `,",",",0,0,",",",","," Z"])),e,t+l*b,b,b,u,e+c*b,t,e+r-c*b,t,b,b,u,e+r,t+l*b,e+r,t+n-l*b,b,b,u,e+r-c*b,t+n,e+c*b,t+n,b,b,u,e,t+n-l*b)}else d=Me(Ty||(Ty=qt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return d},ky={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},NO=e=>{var t=Le(e,ky),r=A.useRef(null),[n,o]=A.useState(-1);A.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var K=r.current.getTotalLength();K&&o(K)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:d,animationDuration:p,animationBegin:v,isAnimationActive:g,isUpdateAnimationActive:m}=t,h=A.useRef(s),b=A.useRef(l),x=A.useRef(i),w=A.useRef(a),P=A.useMemo(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),O=Ii(P,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var S=de("recharts-rectangle",u);if(!m){var E=mt(t),{radius:C}=E,N=My(E,BB);return f.createElement("path",xs({},N,{x:Vr(i),y:Vr(a),width:Vr(s),height:Vr(l),radius:typeof c=="number"?c:void 0,className:S,d:Iy(i,a,s,l,c)}))}var D=h.current,$=b.current,_=x.current,M=w.current,k="0px ".concat(n===-1?1:n,"px"),V="".concat(n,"px 0px"),B=AO(["strokeDasharray"],p,typeof d=="string"?d:ky.animationEasing);return f.createElement(Mi,{animationId:O,key:O,canBegin:n>0,duration:p,easing:d,isActive:m,begin:v},K=>{var T=Ae(D,s,K),I=Ae($,l,K),G=Ae(_,i,K),ee=Ae(M,a,K);r.current&&(h.current=T,b.current=I,x.current=G,w.current=ee);var re;g?K>0?re={transition:B,strokeDasharray:V}:re={strokeDasharray:k}:re={strokeDasharray:V};var oe=mt(t),{radius:ne}=oe,le=My(oe,VB);return f.createElement("path",xs({},le,{radius:typeof c=="number"?c:void 0,className:S,d:Iy(G,ee,T,I,c),ref:r,style:Ny(Ny({},re),t.style)}))})};function Ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Dy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ry(Object(r),!0).forEach(function(n){GB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GB(e,t,r){return(t=qB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qB(e){var t=YB(e,"string");return typeof t=="symbol"?t:t+""}function YB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ws=Math.PI/180,XB=e=>e*180/Math.PI,Re=(e,t,r,n)=>({x:e+Math.cos(-ws*n)*r,y:t+Math.sin(-ws*n)*r}),MO=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},ZB=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},JB=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=ZB({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a,angle:0};var s=(r-o)/a,l=Math.acos(s);return n>i&&(l=2*Math.PI-l),{radius:a,angle:XB(l),angleInRadian:l}},QB=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-i*360,endAngle:r-i*360}},e3=(e,t)=>{var{startAngle:r,endAngle:n}=t,o=Math.floor(r/360),i=Math.floor(n/360),a=Math.min(o,i);return e+a*360},t3=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:o,angle:i}=JB({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(o<a||o>s||o===0)return null;var{startAngle:l,endAngle:c}=QB(t),u=i,d;if(l<=c){for(;u>c;)u-=360;for(;u<l;)u+=360;d=u>=l&&u<=c}else{for(;u>l;)u-=360;for(;u<c;)u+=360;d=u>=c&&u<=l}return d?Dy(Dy({},t),{},{radius:o,angle:e3(u,t)}):null};function IO(e){var{cx:t,cy:r,radius:n,startAngle:o,endAngle:i}=e,a=Re(t,r,n,o),s=Re(t,r,n,i);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}var $y,Ly,Fy,zy,By,Vy,Wy;function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rf.apply(null,arguments)}function vn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var r3=(e,t)=>{var r=Ge(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Oa=e=>{var{cx:t,cy:r,radius:n,angle:o,sign:i,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+n,u=Math.asin(s/c)/ws,d=l?o:o+i*u,p=Re(t,r,c,d),v=Re(t,r,n,d),g=l?o-i*u:o,m=Re(t,r,c*Math.cos(u*ws),g);return{center:p,circleTangency:v,lineTangency:m,theta:u}},kO=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:i,endAngle:a}=e,s=r3(i,a),l=i+s,c=Re(t,r,o,i),u=Re(t,r,o,l),d=Me($y||($y=vn(["M ",",",`
81
+ A `,",",",0,0,",",",","," Z"])),e,t+l*b,b,b,u,e+c*b,t,e+r-c*b,t,b,b,u,e+r,t+l*b,e+r,t+n-l*b,b,b,u,e+r-c*b,t+n,e+c*b,t+n,b,b,u,e,t+n-l*b)}else d=Me(Ty||(Ty=qt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return d},ky={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},NO=e=>{var t=Le(e,ky),r=A.useRef(null),[n,o]=A.useState(-1);A.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var K=r.current.getTotalLength();K&&o(K)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:d,animationDuration:p,animationBegin:v,isAnimationActive:g,isUpdateAnimationActive:m}=t,h=A.useRef(s),b=A.useRef(l),x=A.useRef(i),w=A.useRef(a),P=A.useMemo(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),O=Ii(P,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var S=de("recharts-rectangle",u);if(!m){var E=mt(t),{radius:C}=E,N=My(E,VB);return f.createElement("path",xs({},N,{x:Vr(i),y:Vr(a),width:Vr(s),height:Vr(l),radius:typeof c=="number"?c:void 0,className:S,d:Iy(i,a,s,l,c)}))}var D=h.current,$=b.current,_=x.current,M=w.current,k="0px ".concat(n===-1?1:n,"px"),V="".concat(n,"px 0px"),B=AO(["strokeDasharray"],p,typeof d=="string"?d:ky.animationEasing);return f.createElement(Mi,{animationId:O,key:O,canBegin:n>0,duration:p,easing:d,isActive:m,begin:v},K=>{var T=Ae(D,s,K),I=Ae($,l,K),G=Ae(_,i,K),ee=Ae(M,a,K);r.current&&(h.current=T,b.current=I,x.current=G,w.current=ee);var re;g?K>0?re={transition:B,strokeDasharray:V}:re={strokeDasharray:k}:re={strokeDasharray:V};var oe=mt(t),{radius:ne}=oe,le=My(oe,WB);return f.createElement("path",xs({},le,{radius:typeof c=="number"?c:void 0,className:S,d:Iy(G,ee,T,I,c),ref:r,style:Ny(Ny({},re),t.style)}))})};function Ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Dy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ry(Object(r),!0).forEach(function(n){qB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qB(e,t,r){return(t=YB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YB(e){var t=XB(e,"string");return typeof t=="symbol"?t:t+""}function XB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ws=Math.PI/180,ZB=e=>e*180/Math.PI,Re=(e,t,r,n)=>({x:e+Math.cos(-ws*n)*r,y:t+Math.sin(-ws*n)*r}),MO=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},JB=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},QB=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=JB({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a,angle:0};var s=(r-o)/a,l=Math.acos(s);return n>i&&(l=2*Math.PI-l),{radius:a,angle:ZB(l),angleInRadian:l}},e3=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-i*360,endAngle:r-i*360}},t3=(e,t)=>{var{startAngle:r,endAngle:n}=t,o=Math.floor(r/360),i=Math.floor(n/360),a=Math.min(o,i);return e+a*360},r3=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:o,angle:i}=QB({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(o<a||o>s||o===0)return null;var{startAngle:l,endAngle:c}=e3(t),u=i,d;if(l<=c){for(;u>c;)u-=360;for(;u<l;)u+=360;d=u>=l&&u<=c}else{for(;u>l;)u-=360;for(;u<c;)u+=360;d=u>=c&&u<=l}return d?Dy(Dy({},t),{},{radius:o,angle:t3(u,t)}):null};function IO(e){var{cx:t,cy:r,radius:n,startAngle:o,endAngle:i}=e,a=Re(t,r,n,o),s=Re(t,r,n,i);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}var $y,Ly,Fy,zy,By,Vy,Wy;function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rf.apply(null,arguments)}function vn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var n3=(e,t)=>{var r=Ge(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Oa=e=>{var{cx:t,cy:r,radius:n,angle:o,sign:i,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+n,u=Math.asin(s/c)/ws,d=l?o:o+i*u,p=Re(t,r,c,d),v=Re(t,r,n,d),g=l?o-i*u:o,m=Re(t,r,c*Math.cos(u*ws),g);return{center:p,circleTangency:v,lineTangency:m,theta:u}},kO=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:i,endAngle:a}=e,s=n3(i,a),l=i+s,c=Re(t,r,o,i),u=Re(t,r,o,l),d=Me($y||($y=vn(["M ",",",`
82
82
  A `,",",`,0,
83
83
  `,",",`,
84
84
  `,",",`
85
85
  `])),c.x,c.y,o,o,+(Math.abs(s)>180),+(i>l),u.x,u.y);if(n>0){var p=Re(t,r,n,i),v=Re(t,r,n,l);d+=Me(Ly||(Ly=vn(["L ",",",`
86
86
  A `,",",`,0,
87
87
  `,",",`,
88
- `,","," Z"])),v.x,v.y,n,n,+(Math.abs(s)>180),+(i<=l),p.x,p.y)}else d+=Me(Fy||(Fy=vn(["L ",","," Z"])),t,r);return d},n3=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=Ge(c-l),{circleTangency:d,lineTangency:p,theta:v}=Oa({cx:t,cy:r,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:g,lineTangency:m,theta:h}=Oa({cx:t,cy:r,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),b=s?Math.abs(l-c):Math.abs(l-c)-v-h;if(b<0)return a?Me(zy||(zy=vn(["M ",",",`
88
+ `,","," Z"])),v.x,v.y,n,n,+(Math.abs(s)>180),+(i<=l),p.x,p.y)}else d+=Me(Fy||(Fy=vn(["L ",","," Z"])),t,r);return d},o3=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=Ge(c-l),{circleTangency:d,lineTangency:p,theta:v}=Oa({cx:t,cy:r,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:g,lineTangency:m,theta:h}=Oa({cx:t,cy:r,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),b=s?Math.abs(l-c):Math.abs(l-c)-v-h;if(b<0)return a?Me(zy||(zy=vn(["M ",",",`
89
89
  a`,",",",0,0,1,",`,0
90
90
  a`,",",",0,0,1,",`,0
91
91
  `])),p.x,p.y,i,i,i*2,i,i,-i*2):kO({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var x=Me(By||(By=vn(["M ",",",`
@@ -95,6 +95,6 @@ Take a look at the reducer(s) handling this action type: ${v.type}.
95
95
  `])),p.x,p.y,i,i,+(u<0),d.x,d.y,o,o,+(b>180),+(u<0),g.x,g.y,i,i,+(u<0),m.x,m.y);if(n>0){var{circleTangency:w,lineTangency:P,theta:O}=Oa({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:S,lineTangency:E,theta:C}=Oa({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),N=s?Math.abs(l-c):Math.abs(l-c)-O-C;if(N<0&&i===0)return"".concat(x,"L").concat(t,",").concat(r,"Z");x+=Me(Vy||(Vy=vn(["L",",",`
96
96
  A`,",",",0,0,",",",",",`
97
97
  A`,",",",0,",",",",",",",`
98
- A`,",",",0,0,",",",",","Z"])),E.x,E.y,i,i,+(u<0),S.x,S.y,n,n,+(N>180),+(u>0),w.x,w.y,i,i,+(u<0),P.x,P.y)}else x+=Me(Wy||(Wy=vn(["L",",","Z"])),t,r);return x},o3={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},RO=e=>{var t=Le(e,o3),{cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:d}=t;if(i<o||c===u)return null;var p=de("recharts-sector",d),v=i-o,g=it(a,v,0,!0),m;return g>0&&Math.abs(c-u)<360?m=n3({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,v/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=kO({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),f.createElement("path",rf({},mt(t),{className:p,d:m}))};function i3(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(cS(t)){if(e==="centric"){var{cx:n,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=Re(n,o,i,s),c=Re(n,o,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return IO(t)}}var Wu={},Ku={},Uu={},Ky;function a3(){return Ky||(Ky=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wS();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(Uu)),Uu}var Uy;function s3(){return Uy||(Uy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=a3();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(Ku)),Ku}var Hy;function l3(){return Hy||(Hy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PS(),r=s3();function n(o,i,a){a&&typeof a!="number"&&t.isIterateeCall(o,i,a)&&(i=a=void 0),o=r.toFinite(o),i===void 0?(i=o,o=0):i=r.toFinite(i),a=a===void 0?o<i?1:-1:r.toFinite(a);const s=Math.max(Math.ceil((i-o)/(a||1)),0),l=new Array(s);for(let c=0;c<s;c++)l[c]=o,o+=a;return l}e.range=n})(Wu)),Wu}var Hu,Gy;function c3(){return Gy||(Gy=1,Hu=l3().range),Hu}var u3=c3();const DO=Jr(u3);function Wr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function d3(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Np(e){let t,r,n;e.length!==2?(t=Wr,r=(s,l)=>Wr(e(s),l),n=(s,l)=>e(s)-l):(t=e===Wr||e===d3?e:f3,r=e,n=e);function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=o(s,l,c,u-1);return d>c&&n(s[d-1],l)>-n(s[d],l)?d-1:d}return{left:o,center:a,right:i}}function f3(){return 0}function $O(e){return e===null?NaN:+e}function*p3(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const v3=Np(Wr),ki=v3.right;Np($O).center;class qy extends Map{constructor(t,r=g3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,o]of t)this.set(n,o)}get(t){return super.get(Yy(this,t))}has(t){return super.has(Yy(this,t))}set(t,r){return super.set(m3(this,t),r)}delete(t){return super.delete(h3(this,t))}}function Yy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function m3({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function h3({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function g3(e){return e!==null&&typeof e=="object"?e.valueOf():e}function y3(e=Wr){if(e===Wr)return LO;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 LO(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const b3=Math.sqrt(50),x3=Math.sqrt(10),w3=Math.sqrt(2);function Ps(e,t,r){const n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=b3?10:i>=x3?5:i>=w3?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?Ps(e,t,r*2):[s,l,c]}function nf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[o,i,a]=n?Ps(t,e,r):Ps(e,t,r);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(n)if(a<0)for(let c=0;c<s;++c)l[c]=(i-c)/-a;else for(let c=0;c<s;++c)l[c]=(i-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function of(e,t,r){return t=+t,e=+e,r=+r,Ps(e,t,r)[2]}function af(e,t,r){t=+t,e=+e,r=+r;const n=t<e,o=n?of(t,e,r):of(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}function Xy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Zy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function FO(e,t,r=0,n=1/0,o){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(o=o===void 0?LO:y3(o);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),d=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),v=Math.max(r,Math.floor(t-c*d/l+p)),g=Math.min(n,Math.floor(t+(l-c)*d/l+p));FO(e,t,v,g,o)}const i=e[t];let a=r,s=n;for(Fo(e,r,t),o(e[n],i)>0&&Fo(e,r,n);a<s;){for(Fo(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[r],i)===0?Fo(e,r,s):(++s,Fo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Fo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function P3(e,t,r){if(e=Float64Array.from(p3(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Zy(e);if(t>=1)return Xy(e);var n,o=(n-1)*t,i=Math.floor(o),a=Xy(FO(e,i).subarray(0,i+1)),s=Zy(e.subarray(i+1));return a+(s-a)*(o-i)}}function S3(e,t,r=$O){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,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function O3(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(o);++n<o;)i[n]=e+n*r;return i}function $t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Nr(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 sf=Symbol("implicit");function Mp(){var e=new qy,t=[],r=[],n=sf;function o(i){let a=e.get(i);if(a===void 0){if(n!==sf)return n;e.set(i,a=t.push(i)-1)}return r[a%r.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new qy;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(r=Array.from(i),o):r.slice()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Mp(t,r).unknown(n)},$t.apply(o,arguments),o}function Ip(){var e=Mp().unknown(void 0),t=e.domain,r=e.range,n=0,o=1,i,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var p=t().length,v=o<n,g=v?o:n,m=v?n:o;i=(m-g)/Math.max(1,p-l+c*2),s&&(i=Math.floor(i)),g+=(m-g-i*(p-l))*u,a=i*(1-l),s&&(g=Math.round(g),a=Math.round(a));var h=O3(p).map(function(b){return g+i*b});return r(v?h.reverse():h)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([n,o]=p,n=+n,o=+o,d()):[n,o]},e.rangeRound=function(p){return[n,o]=p,n=+n,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(l=Math.min(1,c=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(c=+p,d()):c},e.align=function(p){return arguments.length?(u=Math.max(0,Math.min(1,p)),d()):u},e.copy=function(){return Ip(t(),[n,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},$t.apply(d(),arguments)}function zO(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return zO(t())},e}function E3(){return zO(Ip.apply(null,arguments).paddingInner(1))}function kp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function BO(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ri(){}var ii=.7,Ss=1/ii,ao="\\s*([+-]?\\d+)\\s*",ai="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",C3=/^#([0-9a-f]{3,8})$/,A3=new RegExp(`^rgb\\(${ao},${ao},${ao}\\)$`),_3=new RegExp(`^rgb\\(${rr},${rr},${rr}\\)$`),T3=new RegExp(`^rgba\\(${ao},${ao},${ao},${ai}\\)$`),j3=new RegExp(`^rgba\\(${rr},${rr},${rr},${ai}\\)$`),N3=new RegExp(`^hsl\\(${ai},${rr},${rr}\\)$`),M3=new RegExp(`^hsla\\(${ai},${rr},${rr},${ai}\\)$`),Jy={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};kp(Ri,si,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qy,formatHex:Qy,formatHex8:I3,formatHsl:k3,formatRgb:eb,toString:eb});function Qy(){return this.rgb().formatHex()}function I3(){return this.rgb().formatHex8()}function k3(){return VO(this).formatHsl()}function eb(){return this.rgb().formatRgb()}function si(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=C3.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?tb(t):r===3?new bt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ea(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ea(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=A3.exec(e))?new bt(t[1],t[2],t[3],1):(t=_3.exec(e))?new bt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=T3.exec(e))?Ea(t[1],t[2],t[3],t[4]):(t=j3.exec(e))?Ea(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=N3.exec(e))?ob(t[1],t[2]/100,t[3]/100,1):(t=M3.exec(e))?ob(t[1],t[2]/100,t[3]/100,t[4]):Jy.hasOwnProperty(e)?tb(Jy[e]):e==="transparent"?new bt(NaN,NaN,NaN,0):null}function tb(e){return new bt(e>>16&255,e>>8&255,e&255,1)}function Ea(e,t,r,n){return n<=0&&(e=t=r=NaN),new bt(e,t,r,n)}function R3(e){return e instanceof Ri||(e=si(e)),e?(e=e.rgb(),new bt(e.r,e.g,e.b,e.opacity)):new bt}function lf(e,t,r,n){return arguments.length===1?R3(e):new bt(e,t,r,n??1)}function bt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}kp(bt,lf,BO(Ri,{brighter(e){return e=e==null?Ss:Math.pow(Ss,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ii:Math.pow(ii,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(wn(this.r),wn(this.g),wn(this.b),Os(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:rb,formatHex:rb,formatHex8:D3,formatRgb:nb,toString:nb}));function rb(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}`}function D3(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}${mn((isNaN(this.opacity)?1:this.opacity)*255)}`}function nb(){const e=Os(this.opacity);return`${e===1?"rgb(":"rgba("}${wn(this.r)}, ${wn(this.g)}, ${wn(this.b)}${e===1?")":`, ${e})`}`}function Os(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mn(e){return e=wn(e),(e<16?"0":"")+e.toString(16)}function ob(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new zt(e,t,r,n)}function VO(e){if(e instanceof zt)return new zt(e.h,e.s,e.l,e.opacity);if(e instanceof Ri||(e=si(e)),!e)return new zt;if(e instanceof zt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(r-n)/s+(r<n)*6:r===i?a=(n-t)/s+2:a=(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new zt(a,s,l,e.opacity)}function $3(e,t,r,n){return arguments.length===1?VO(e):new zt(e,t,r,n??1)}function zt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}kp(zt,$3,BO(Ri,{brighter(e){return e=e==null?Ss:Math.pow(Ss,e),new zt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ii:Math.pow(ii,e),new zt(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,o=2*r-n;return new bt(Gu(e>=240?e-240:e+120,o,n),Gu(e,o,n),Gu(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new zt(ib(this.h),Ca(this.s),Ca(this.l),Os(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=Os(this.opacity);return`${e===1?"hsl(":"hsla("}${ib(this.h)}, ${Ca(this.s)*100}%, ${Ca(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ib(e){return e=(e||0)%360,e<0?e+360:e}function Ca(e){return Math.max(0,Math.min(1,e||0))}function Gu(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 Rp=e=>()=>e;function L3(e,t){return function(r){return e+r*t}}function F3(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 z3(e){return(e=+e)==1?WO:function(t,r){return r-t?F3(t,r,e):Rp(isNaN(t)?r:t)}}function WO(e,t){var r=t-e;return r?L3(e,r):Rp(isNaN(e)?t:e)}const ab=(function e(t){var r=z3(t);function n(o,i){var a=r((o=lf(o)).r,(i=lf(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=WO(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return n.gamma=e,n})(1);function B3(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),o;return function(i){for(o=0;o<r;++o)n[o]=e[o]*(1-i)+t[o]*i;return n}}function V3(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function W3(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,o=new Array(n),i=new Array(r),a;for(a=0;a<n;++a)o[a]=Po(e[a],t[a]);for(;a<r;++a)i[a]=t[a];return function(s){for(a=0;a<n;++a)i[a]=o[a](s);return i}}function K3(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Es(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function U3(e,t){var r={},n={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?r[o]=Po(e[o],t[o]):n[o]=t[o];return function(i){for(o in r)n[o]=r[o](i);return n}}var cf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qu=new RegExp(cf.source,"g");function H3(e){return function(){return e}}function G3(e){return function(t){return e(t)+""}}function q3(e,t){var r=cf.lastIndex=qu.lastIndex=0,n,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=cf.exec(e))&&(o=qu.exec(t));)(i=o.index)>r&&(i=t.slice(r,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Es(n,o)})),r=qu.lastIndex;return r<t.length&&(i=t.slice(r),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?G3(l[0].x):H3(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Po(e,t){var r=typeof t,n;return t==null||r==="boolean"?Rp(t):(r==="number"?Es:r==="string"?(n=si(t))?(t=n,ab):q3:t instanceof si?ab:t instanceof Date?K3:V3(t)?B3:Array.isArray(t)?W3:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?U3:Es)(e,t)}function Dp(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Y3(e,t){t===void 0&&(t=e,e=Po);for(var r=0,n=t.length-1,o=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(o,o=t[++r]);return function(a){var s=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return i[s](a-s)}}function X3(e){return function(){return e}}function Cs(e){return+e}var sb=[0,1];function pt(e){return e}function uf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:X3(isNaN(t)?NaN:.5)}function Z3(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function J3(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=uf(o,n),i=r(a,i)):(n=uf(n,o),i=r(i,a)),function(s){return i(n(s))}}function Q3(e,t,r){var n=Math.min(e.length,t.length)-1,o=new Array(n),i=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)o[a]=uf(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(s){var l=ki(e,s,1,n)-1;return i[l](o[l](s))}}function Di(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function kl(){var e=sb,t=sb,r=Po,n,o,i,a=pt,s,l,c;function u(){var p=Math.min(e.length,t.length);return a!==pt&&(a=Z3(e[0],e[p-1])),s=p>2?Q3:J3,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(n),t,r)))(n(a(p)))}return d.invert=function(p){return a(o((c||(c=s(t,e.map(n),Es)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Cs),u()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),u()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),r=Dp,u()},d.clamp=function(p){return arguments.length?(a=p?!0:pt,u()):a!==pt},d.interpolate=function(p){return arguments.length?(r=p,u()):r},d.unknown=function(p){return arguments.length?(i=p,d):i},function(p,v){return n=p,o=v,u()}}function $p(){return kl()(pt,pt)}function eV(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function As(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function po(e){return e=As(Math.abs(e)),e?e[1]:NaN}function tV(e,t){return function(r,n){for(var o=r.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(o-=s,o+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function rV(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var nV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function li(e){if(!(t=nV.exec(e)))throw new Error("invalid format: "+e);var t;return new Lp({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]})}li.prototype=Lp.prototype;function Lp(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+""}Lp.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 oV(e){e:for(var t=e.length,r=1,n=-1,o;r<t;++r)switch(e[r]){case".":n=o=r;break;case"0":n===0&&(n=r),o=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var _s;function iV(e,t){var r=As(e,t);if(!r)return _s=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(_s=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+As(e,Math.max(0,t+i-1))[0]}function lb(e,t){var r=As(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}const cb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:eV,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)=>lb(e*100,t),r:lb,s:iV,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ub(e){return e}var db=Array.prototype.map,fb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function aV(e){var t=e.grouping===void 0||e.thousands===void 0?ub:tV(db.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?ub:rV(db.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d,p){d=li(d);var v=d.fill,g=d.align,m=d.sign,h=d.symbol,b=d.zero,x=d.width,w=d.comma,P=d.precision,O=d.trim,S=d.type;S==="n"?(w=!0,S="g"):cb[S]||(P===void 0&&(P=12),O=!0,S="g"),(b||v==="0"&&g==="=")&&(b=!0,v="0",g="=");var E=(p&&p.prefix!==void 0?p.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),C=(h==="$"?n:/[%p]/.test(S)?a:"")+(p&&p.suffix!==void 0?p.suffix:""),N=cb[S],D=/[defgprs%]/.test(S);P=P===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function $(_){var M=E,k=C,V,B,K;if(S==="c")k=N(_)+k,_="";else{_=+_;var T=_<0||1/_<0;if(_=isNaN(_)?l:N(Math.abs(_),P),O&&(_=oV(_)),T&&+_==0&&m!=="+"&&(T=!1),M=(T?m==="("?m:s:m==="-"||m==="("?"":m)+M,k=(S==="s"&&!isNaN(_)&&_s!==void 0?fb[8+_s/3]:"")+k+(T&&m==="("?")":""),D){for(V=-1,B=_.length;++V<B;)if(K=_.charCodeAt(V),48>K||K>57){k=(K===46?o+_.slice(V+1):_.slice(V))+k,_=_.slice(0,V);break}}}w&&!b&&(_=t(_,1/0));var I=M.length+_.length+k.length,G=I<x?new Array(x-I+1).join(v):"";switch(w&&b&&(_=t(G+_,G.length?x-k.length:1/0),G=""),g){case"<":_=M+_+k+G;break;case"=":_=M+G+_+k;break;case"^":_=G.slice(0,I=G.length>>1)+M+_+k+G.slice(I);break;default:_=G+M+_+k;break}return i(_)}return $.toString=function(){return d+""},$}function u(d,p){var v=Math.max(-8,Math.min(8,Math.floor(po(p)/3)))*3,g=Math.pow(10,-v),m=c((d=li(d),d.type="f",d),{suffix:fb[8+v/3]});return function(h){return m(g*h)}}return{format:c,formatPrefix:u}}var Aa,Fp,KO;sV({thousands:",",grouping:[3],currency:["$",""]});function sV(e){return Aa=aV(e),Fp=Aa.format,KO=Aa.formatPrefix,Aa}function lV(e){return Math.max(0,-po(Math.abs(e)))}function cV(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(po(t)/3)))*3-po(Math.abs(e)))}function uV(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,po(t)-po(e))+1}function UO(e,t,r,n){var o=af(e,t,r),i;switch(n=li(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=cV(o,a))&&(n.precision=i),KO(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=uV(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=lV(o))&&(n.precision=i-(n.type==="%")*2);break}}return Fp(n)}function Qr(e){var t=e.domain;return e.ticks=function(r){var n=t();return nf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return UO(o[0],o[o.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,i=n.length-1,a=n[o],s=n[i],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=o,o=i,i=c);u-- >0;){if(c=of(a,s,r),c===l)return n[o]=a,n[i]=s,t(n);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function HO(){var e=$p();return e.copy=function(){return Di(e,HO())},$t.apply(e,arguments),Qr(e)}function GO(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,Cs),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return GO(e).unknown(t)},e=arguments.length?Array.from(e,Cs):[0,1],Qr(r)}function qO(e,t){e=e.slice();var r=0,n=e.length-1,o=e[r],i=e[n],a;return i<o&&(a=r,r=n,n=a,a=o,o=i,i=a),e[r]=t.floor(o),e[n]=t.ceil(i),e}function pb(e){return Math.log(e)}function vb(e){return Math.exp(e)}function dV(e){return-Math.log(-e)}function fV(e){return-Math.exp(-e)}function pV(e){return isFinite(e)?+("1e"+e):e<0?0:e}function vV(e){return e===10?pV:e===Math.E?Math.exp:t=>Math.pow(e,t)}function mV(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 mb(e){return(t,r)=>-e(-t,r)}function zp(e){const t=e(pb,vb),r=t.domain;let n=10,o,i;function a(){return o=mV(n),i=vV(n),r()[0]<0?(o=mb(o),i=mb(i),e(dV,fV)):e(pb,vb),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let p=o(c),v=o(u),g,m;const h=s==null?10:+s;let b=[];if(!(n%1)&&v-p<h){if(p=Math.floor(p),v=Math.ceil(v),c>0){for(;p<=v;++p)for(g=1;g<n;++g)if(m=p<0?g/i(-p):g*i(p),!(m<c)){if(m>u)break;b.push(m)}}else for(;p<=v;++p)for(g=n-1;g>=1;--g)if(m=p>0?g/i(-p):g*i(p),!(m<c)){if(m>u)break;b.push(m)}b.length*2<h&&(b=nf(c,u,h))}else b=nf(p,v,Math.min(v-p,h)).map(i);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=li(l)).precision==null&&(l.trim=!0),l=Fp(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let d=u/i(Math.round(o(u)));return d*n<n-.5&&(d*=n),d<=c?l(u):""}},t.nice=()=>r(qO(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function YO(){const e=zp(kl()).domain([1,10]);return e.copy=()=>Di(e,YO()).base(e.base()),$t.apply(e,arguments),e}function hb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function gb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bp(e){var t=1,r=e(hb(t),gb(t));return r.constant=function(n){return arguments.length?e(hb(t=+n),gb(t)):t},Qr(r)}function XO(){var e=Bp(kl());return e.copy=function(){return Di(e,XO()).constant(e.constant())},$t.apply(e,arguments)}function yb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function hV(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function gV(e){return e<0?-e*e:e*e}function Vp(e){var t=e(pt,pt),r=1;function n(){return r===1?e(pt,pt):r===.5?e(hV,gV):e(yb(r),yb(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},Qr(t)}function Wp(){var e=Vp(kl());return e.copy=function(){return Di(e,Wp()).exponent(e.exponent())},$t.apply(e,arguments),e}function yV(){return Wp.apply(null,arguments).exponent(.5)}function bb(e){return Math.sign(e)*e*e}function bV(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ZO(){var e=$p(),t=[0,1],r=!1,n;function o(i){var a=bV(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(bb(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,Cs)).map(bb)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(r=!!i,o):r},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return ZO(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},$t.apply(o,arguments),Qr(o)}function JO(){var e=[],t=[],r=[],n;function o(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a<s;)r[a-1]=S3(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?n:t[ki(r,a)]}return i.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Wr),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return JO().domain(e).range(t).unknown(n)},$t.apply(i,arguments)}function QO(){var e=0,t=1,r=1,n=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[ki(n,l,0,r)]:i}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(r=(o=Array.from(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return QO().domain([e,t]).range(o).unknown(i)},$t.apply(Qr(a),arguments)}function e1(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[ki(e,i,0,n)]:r}return o.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return e1().domain(e).range(t).unknown(r)},$t.apply(o,arguments)}const Yu=new Date,Xu=new Date;function Ve(e,t,r,n){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<a);return l},o.filter=i=>Ve(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),r&&(o.count=(i,a)=>(Yu.setTime(+i),Xu.setTime(+a),e(Yu),e(Xu),Math.floor(r(Yu,Xu))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(n?a=>n(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const Ts=Ve(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ts.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ve(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ts);Ts.range;const vr=1e3,It=vr*60,mr=It*60,br=mr*24,Kp=br*7,xb=br*30,Zu=br*365,hn=Ve(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getUTCSeconds());hn.range;const Up=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getMinutes());Up.range;const Hp=Ve(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getUTCMinutes());Hp.range;const Gp=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr-e.getMinutes()*It)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getHours());Gp.range;const qp=Ve(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getUTCHours());qp.range;const $i=Ve(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*It)/br,e=>e.getDate()-1);$i.range;const Rl=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>e.getUTCDate()-1);Rl.range;const t1=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>Math.floor(e/br));t1.range;function Bn(e){return Ve(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())*It)/Kp)}const Dl=Bn(0),js=Bn(1),xV=Bn(2),wV=Bn(3),vo=Bn(4),PV=Bn(5),SV=Bn(6);Dl.range;js.range;xV.range;wV.range;vo.range;PV.range;SV.range;function Vn(e){return Ve(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)/Kp)}const $l=Vn(0),Ns=Vn(1),OV=Vn(2),EV=Vn(3),mo=Vn(4),CV=Vn(5),AV=Vn(6);$l.range;Ns.range;OV.range;EV.range;mo.range;CV.range;AV.range;const Yp=Ve(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());Yp.range;const Xp=Ve(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());Xp.range;const xr=Ve(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());xr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(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)});xr.range;const wr=Ve(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());wr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(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)});wr.range;function r1(e,t,r,n,o,i){const a=[[hn,1,vr],[hn,5,5*vr],[hn,15,15*vr],[hn,30,30*vr],[i,1,It],[i,5,5*It],[i,15,15*It],[i,30,30*It],[o,1,mr],[o,3,3*mr],[o,6,6*mr],[o,12,12*mr],[n,1,br],[n,2,2*br],[r,1,Kp],[t,1,xb],[t,3,3*xb],[e,1,Zu]];function s(c,u,d){const p=u<c;p&&([c,u]=[u,c]);const v=d&&typeof d.range=="function"?d:l(c,u,d),g=v?v.range(c,+u+1):[];return p?g.reverse():g}function l(c,u,d){const p=Math.abs(u-c)/d,v=Np(([,,h])=>h).right(a,p);if(v===a.length)return e.every(af(c/Zu,u/Zu,d));if(v===0)return Ts.every(Math.max(af(c,u,d),1));const[g,m]=a[p/a[v-1][2]<a[v][2]/p?v-1:v];return g.every(m)}return[s,l]}const[_V,TV]=r1(wr,Xp,$l,t1,qp,Hp),[jV,NV]=r1(xr,Yp,Dl,$i,Gp,Up);function Ju(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 Qu(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 zo(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function MV(e){var t=e.dateTime,r=e.date,n=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Bo(o),u=Vo(o),d=Bo(i),p=Vo(i),v=Bo(a),g=Vo(a),m=Bo(s),h=Vo(s),b=Bo(l),x=Vo(l),w={a:K,A:T,b:I,B:G,c:null,d:Cb,e:Cb,f:t5,g:d5,G:p5,H:JV,I:QV,j:e5,L:n1,m:r5,M:n5,p:ee,q:re,Q:Tb,s:jb,S:o5,u:i5,U:a5,V:s5,w:l5,W:c5,x:null,X:null,y:u5,Y:f5,Z:v5,"%":_b},P={a:oe,A:ne,b:le,B:Ee,c:null,d:Ab,e:Ab,f:y5,g:_5,G:j5,H:m5,I:h5,j:g5,L:i1,m:b5,M:x5,p:W,q:ue,Q:Tb,s:jb,S:w5,u:P5,U:S5,V:O5,w:E5,W:C5,x:null,X:null,y:A5,Y:T5,Z:N5,"%":_b},O={a:D,A:$,b:_,B:M,c:k,d:Ob,e:Ob,f:qV,g:Sb,G:Pb,H:Eb,I:Eb,j:KV,L:GV,m:WV,M:UV,p:N,q:VV,Q:XV,s:ZV,S:HV,u:$V,U:LV,V:FV,w:DV,W:zV,x:V,X:B,y:Sb,Y:Pb,Z:BV,"%":YV};w.x=S(r,w),w.X=S(n,w),w.c=S(t,w),P.x=S(r,P),P.X=S(n,P),P.c=S(t,P);function S(L,H){return function(z){var F=[],fe=-1,se=0,Qe=L.length,et,Lt,Wm;for(z instanceof Date||(z=new Date(+z));++fe<Qe;)L.charCodeAt(fe)===37&&(F.push(L.slice(se,fe)),(Lt=wb[et=L.charAt(++fe)])!=null?et=L.charAt(++fe):Lt=et==="e"?" ":"0",(Wm=H[et])&&(et=Wm(z,Lt)),F.push(et),se=fe+1);return F.push(L.slice(se,fe)),F.join("")}}function E(L,H){return function(z){var F=zo(1900,void 0,1),fe=C(F,L,z+="",0),se,Qe;if(fe!=z.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(H&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(se=Qu(zo(F.y,0,1)),Qe=se.getUTCDay(),se=Qe>4||Qe===0?Ns.ceil(se):Ns(se),se=Rl.offset(se,(F.V-1)*7),F.y=se.getUTCFullYear(),F.m=se.getUTCMonth(),F.d=se.getUTCDate()+(F.w+6)%7):(se=Ju(zo(F.y,0,1)),Qe=se.getDay(),se=Qe>4||Qe===0?js.ceil(se):js(se),se=$i.offset(se,(F.V-1)*7),F.y=se.getFullYear(),F.m=se.getMonth(),F.d=se.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Qe="Z"in F?Qu(zo(F.y,0,1)).getUTCDay():Ju(zo(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Qe+5)%7:F.w+F.U*7-(Qe+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,Qu(F)):Ju(F)}}function C(L,H,z,F){for(var fe=0,se=H.length,Qe=z.length,et,Lt;fe<se;){if(F>=Qe)return-1;if(et=H.charCodeAt(fe++),et===37){if(et=H.charAt(fe++),Lt=O[et in wb?H.charAt(fe++):et],!Lt||(F=Lt(L,z,F))<0)return-1}else if(et!=z.charCodeAt(F++))return-1}return F}function N(L,H,z){var F=c.exec(H.slice(z));return F?(L.p=u.get(F[0].toLowerCase()),z+F[0].length):-1}function D(L,H,z){var F=v.exec(H.slice(z));return F?(L.w=g.get(F[0].toLowerCase()),z+F[0].length):-1}function $(L,H,z){var F=d.exec(H.slice(z));return F?(L.w=p.get(F[0].toLowerCase()),z+F[0].length):-1}function _(L,H,z){var F=b.exec(H.slice(z));return F?(L.m=x.get(F[0].toLowerCase()),z+F[0].length):-1}function M(L,H,z){var F=m.exec(H.slice(z));return F?(L.m=h.get(F[0].toLowerCase()),z+F[0].length):-1}function k(L,H,z){return C(L,t,H,z)}function V(L,H,z){return C(L,r,H,z)}function B(L,H,z){return C(L,n,H,z)}function K(L){return a[L.getDay()]}function T(L){return i[L.getDay()]}function I(L){return l[L.getMonth()]}function G(L){return s[L.getMonth()]}function ee(L){return o[+(L.getHours()>=12)]}function re(L){return 1+~~(L.getMonth()/3)}function oe(L){return a[L.getUTCDay()]}function ne(L){return i[L.getUTCDay()]}function le(L){return l[L.getUTCMonth()]}function Ee(L){return s[L.getUTCMonth()]}function W(L){return o[+(L.getUTCHours()>=12)]}function ue(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var H=S(L+="",w);return H.toString=function(){return L},H},parse:function(L){var H=E(L+="",!1);return H.toString=function(){return L},H},utcFormat:function(L){var H=S(L+="",P);return H.toString=function(){return L},H},utcParse:function(L){var H=E(L+="",!0);return H.toString=function(){return L},H}}}var wb={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,IV=/^%/,kV=/[\\^$*+?|[\]().{}]/g;function pe(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(t)+o:o)}function RV(e){return e.replace(kV,"\\$&")}function Bo(e){return new RegExp("^(?:"+e.map(RV).join("|")+")","i")}function Vo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function DV(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function $V(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function LV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function FV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function zV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Pb(e,t,r){var n=Ze.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Sb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function BV(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 VV(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function WV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Ob(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function KV(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function UV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function HV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function GV(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function qV(e,t,r){var n=Ze.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function YV(e,t,r){var n=IV.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function XV(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function ZV(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Cb(e,t){return pe(e.getDate(),t,2)}function JV(e,t){return pe(e.getHours(),t,2)}function QV(e,t){return pe(e.getHours()%12||12,t,2)}function e5(e,t){return pe(1+$i.count(xr(e),e),t,3)}function n1(e,t){return pe(e.getMilliseconds(),t,3)}function t5(e,t){return n1(e,t)+"000"}function r5(e,t){return pe(e.getMonth()+1,t,2)}function n5(e,t){return pe(e.getMinutes(),t,2)}function o5(e,t){return pe(e.getSeconds(),t,2)}function i5(e){var t=e.getDay();return t===0?7:t}function a5(e,t){return pe(Dl.count(xr(e)-1,e),t,2)}function o1(e){var t=e.getDay();return t>=4||t===0?vo(e):vo.ceil(e)}function s5(e,t){return e=o1(e),pe(vo.count(xr(e),e)+(xr(e).getDay()===4),t,2)}function l5(e){return e.getDay()}function c5(e,t){return pe(js.count(xr(e)-1,e),t,2)}function u5(e,t){return pe(e.getFullYear()%100,t,2)}function d5(e,t){return e=o1(e),pe(e.getFullYear()%100,t,2)}function f5(e,t){return pe(e.getFullYear()%1e4,t,4)}function p5(e,t){var r=e.getDay();return e=r>=4||r===0?vo(e):vo.ceil(e),pe(e.getFullYear()%1e4,t,4)}function v5(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pe(t/60|0,"0",2)+pe(t%60,"0",2)}function Ab(e,t){return pe(e.getUTCDate(),t,2)}function m5(e,t){return pe(e.getUTCHours(),t,2)}function h5(e,t){return pe(e.getUTCHours()%12||12,t,2)}function g5(e,t){return pe(1+Rl.count(wr(e),e),t,3)}function i1(e,t){return pe(e.getUTCMilliseconds(),t,3)}function y5(e,t){return i1(e,t)+"000"}function b5(e,t){return pe(e.getUTCMonth()+1,t,2)}function x5(e,t){return pe(e.getUTCMinutes(),t,2)}function w5(e,t){return pe(e.getUTCSeconds(),t,2)}function P5(e){var t=e.getUTCDay();return t===0?7:t}function S5(e,t){return pe($l.count(wr(e)-1,e),t,2)}function a1(e){var t=e.getUTCDay();return t>=4||t===0?mo(e):mo.ceil(e)}function O5(e,t){return e=a1(e),pe(mo.count(wr(e),e)+(wr(e).getUTCDay()===4),t,2)}function E5(e){return e.getUTCDay()}function C5(e,t){return pe(Ns.count(wr(e)-1,e),t,2)}function A5(e,t){return pe(e.getUTCFullYear()%100,t,2)}function _5(e,t){return e=a1(e),pe(e.getUTCFullYear()%100,t,2)}function T5(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function j5(e,t){var r=e.getUTCDay();return e=r>=4||r===0?mo(e):mo.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function N5(){return"+0000"}function _b(){return"%"}function Tb(e){return+e}function jb(e){return Math.floor(+e/1e3)}var Zn,s1,l1;M5({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 M5(e){return Zn=MV(e),s1=Zn.format,Zn.parse,l1=Zn.utcFormat,Zn.utcParse,Zn}function I5(e){return new Date(e)}function k5(e){return e instanceof Date?+e:+new Date(+e)}function Zp(e,t,r,n,o,i,a,s,l,c){var u=$p(),d=u.invert,p=u.domain,v=c(".%L"),g=c(":%S"),m=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),x=c("%b %d"),w=c("%B"),P=c("%Y");function O(S){return(l(S)<S?v:s(S)<S?g:a(S)<S?m:i(S)<S?h:n(S)<S?o(S)<S?b:x:r(S)<S?w:P)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?p(Array.from(S,k5)):p().map(I5)},u.ticks=function(S){var E=p();return e(E[0],E[E.length-1],S??10)},u.tickFormat=function(S,E){return E==null?O:c(E)},u.nice=function(S){var E=p();return(!S||typeof S.range!="function")&&(S=t(E[0],E[E.length-1],S??10)),S?p(qO(E,S)):u},u.copy=function(){return Di(u,Zp(e,t,r,n,o,i,a,s,l,c))},u}function R5(){return $t.apply(Zp(jV,NV,xr,Yp,Dl,$i,Gp,Up,hn,s1).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function D5(){return $t.apply(Zp(_V,TV,wr,Xp,$l,Rl,qp,Hp,hn,l1).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ll(){var e=0,t=1,r,n,o,i,a=pt,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(o===0?.5:(d=(i(d)-r)*o,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),o=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(p){var v,g;return arguments.length?([v,g]=p,a=d(v,g),c):[a(0),a(1)]}}return c.range=u(Po),c.rangeRound=u(Dp),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return i=d,r=d(e),n=d(t),o=r===n?0:1/(n-r),c}}function en(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function c1(){var e=Qr(Ll()(pt));return e.copy=function(){return en(e,c1())},Nr.apply(e,arguments)}function u1(){var e=zp(Ll()).domain([1,10]);return e.copy=function(){return en(e,u1()).base(e.base())},Nr.apply(e,arguments)}function d1(){var e=Bp(Ll());return e.copy=function(){return en(e,d1()).constant(e.constant())},Nr.apply(e,arguments)}function Jp(){var e=Vp(Ll());return e.copy=function(){return en(e,Jp()).exponent(e.exponent())},Nr.apply(e,arguments)}function $5(){return Jp.apply(null,arguments).exponent(.5)}function f1(){var e=[],t=pt;function r(n){if(n!=null&&!isNaN(n=+n))return t((ki(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let o of n)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Wr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,o)=>t(o/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(o,i)=>P3(e,i/n))},r.copy=function(){return f1(t).domain(e)},Nr.apply(r,arguments)}function Fl(){var e=0,t=.5,r=1,n=1,o,i,a,s,l,c=pt,u,d=!1,p;function v(m){return isNaN(m=+m)?p:(m=.5+((m=+u(m))-i)*(n*m<n*i?s:l),c(d?Math.max(0,Math.min(1,m)):m))}v.domain=function(m){return arguments.length?([e,t,r]=m,o=u(e=+e),i=u(t=+t),a=u(r=+r),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),n=i<o?-1:1,v):[e,t,r]},v.clamp=function(m){return arguments.length?(d=!!m,v):d},v.interpolator=function(m){return arguments.length?(c=m,v):c};function g(m){return function(h){var b,x,w;return arguments.length?([b,x,w]=h,c=Y3(m,[b,x,w]),v):[c(0),c(.5),c(1)]}}return v.range=g(Po),v.rangeRound=g(Dp),v.unknown=function(m){return arguments.length?(p=m,v):p},function(m){return u=m,o=m(e),i=m(t),a=m(r),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),n=i<o?-1:1,v}}function p1(){var e=Qr(Fl()(pt));return e.copy=function(){return en(e,p1())},Nr.apply(e,arguments)}function v1(){var e=zp(Fl()).domain([.1,1,10]);return e.copy=function(){return en(e,v1()).base(e.base())},Nr.apply(e,arguments)}function m1(){var e=Bp(Fl());return e.copy=function(){return en(e,m1()).constant(e.constant())},Nr.apply(e,arguments)}function Qp(){var e=Vp(Fl());return e.copy=function(){return en(e,Qp()).exponent(e.exponent())},Nr.apply(e,arguments)}function L5(){return Qp.apply(null,arguments).exponent(.5)}const Ho=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ip,scaleDiverging:p1,scaleDivergingLog:v1,scaleDivergingPow:Qp,scaleDivergingSqrt:L5,scaleDivergingSymlog:m1,scaleIdentity:GO,scaleImplicit:sf,scaleLinear:HO,scaleLog:YO,scaleOrdinal:Mp,scalePoint:E3,scalePow:Wp,scaleQuantile:JO,scaleQuantize:QO,scaleRadial:ZO,scaleSequential:c1,scaleSequentialLog:u1,scaleSequentialPow:Jp,scaleSequentialQuantile:f1,scaleSequentialSqrt:$5,scaleSequentialSymlog:d1,scaleSqrt:yV,scaleSymlog:XO,scaleThreshold:e1,scaleTime:R5,scaleUtc:D5,tickFormat:UO},Symbol.toStringTag,{value:"Module"}));var Mr=e=>e.chartData,zl=j([Mr],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ev=(e,t,r,n)=>n?zl(e):Mr(e),F5=(e,t,r)=>r?zl(e):Mr(e);function Pr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ce(t)&&ce(r))return!0}return!1}function Nb(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function h1(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,o,i;if(ce(r))o=r;else if(typeof r=="function")return;if(ce(n))i=n;else if(typeof n=="function")return;var a=[o,i];if(Pr(a))return a}}function z5(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Pr(n))return Nb(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(q(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&Bg.test(o)){var l=Bg.exec(o);if(l==null||l[1]==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(q(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[1]))}catch{}else if(typeof i=="string"&&Vg.test(i)){var u=Vg.exec(i);if(u==null||u[1]==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t?.[1];var p=[a,s];if(Pr(p))return t==null?p:Nb(p,t,r)}}}var So=1e9,B5={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},rv,_e=!0,Dt="[DecimalError] ",Pn=Dt+"Invalid argument: ",tv=Dt+"Exponent out of range: ",Oo=Math.floor,fn=Math.pow,V5=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ot,He=1e7,Se=7,g1=9007199254740991,Ms=Oo(g1/Se),Y={};Y.absoluteValue=Y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Y.comparedTo=Y.cmp=function(e){var t,r,n,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,o=e.d.length,t=0,r=n<o?n:o;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1};Y.decimalPlaces=Y.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Y.dividedBy=Y.div=function(e){return hr(this,new this.constructor(e))};Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,r=t.constructor;return xe(hr(t,new r(e),0,1),r.precision)};Y.equals=Y.eq=function(e){return!this.cmp(e)};Y.exponent=function(){return $e(this)};Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0};Y.greaterThanOrEqualTo=Y.gte=function(e){return this.cmp(e)>=0};Y.isInteger=Y.isint=function(){return this.e>this.d.length-2};Y.isNegative=Y.isneg=function(){return this.s<0};Y.isPositive=Y.ispos=function(){return this.s>0};Y.isZero=function(){return this.s===0};Y.lessThan=Y.lt=function(e){return this.cmp(e)<0};Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1};Y.logarithm=Y.log=function(e){var t,r=this,n=r.constructor,o=n.precision,i=o+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ot))throw Error(Dt+"NaN");if(r.s<1)throw Error(Dt+(r.s?"NaN":"-Infinity"));return r.eq(Ot)?new n(0):(_e=!1,t=hr(ci(r,i),ci(e,i),i),_e=!0,xe(t,o))};Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?x1(t,e):y1(t,(e.s=-e.s,e))};Y.modulo=Y.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(e=new n(e),!e.s)throw Error(Dt+"NaN");return r.s?(_e=!1,t=hr(r,e,0,1).times(e),_e=!0,r.minus(t)):xe(new n(r),o)};Y.naturalExponential=Y.exp=function(){return b1(this)};Y.naturalLogarithm=Y.ln=function(){return ci(this)};Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Y.plus=Y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?y1(t,e):x1(t,(e.s=-e.s,e))};Y.precision=Y.sd=function(e){var t,r,n,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Pn+e);if(t=$e(o)+1,n=o.d.length-1,r=n*Se+1,n=o.d[n],n){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Y.squareRoot=Y.sqrt=function(){var e,t,r,n,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Dt+"NaN")}for(e=$e(s),_e=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=er(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Oo((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(o.toString()),r=l.precision,o=a=r+3;;)if(i=n,n=i.plus(hr(s,i,a+2)).times(.5),er(i.d).slice(0,a)===(t=er(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(xe(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;a+=4}return _e=!0,xe(n,r)};Y.times=Y.mul=function(e){var t,r,n,o,i,a,s,l,c,u=this,d=u.constructor,p=u.d,v=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,r=u.e+e.e,l=p.length,c=v.length,l<c&&(i=p,p=v,v=i,a=l,l=c,c=a),i=[],a=l+c,n=a;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,o=l+n;o>n;)s=i[o]+v[n]*p[o-n-1]+t,i[o--]=s%He|0,t=s/He|0;i[o]=(i[o]+t)%He|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,_e?xe(e,d.precision):e};Y.toDecimalPlaces=Y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(sr(e,0,So),t===void 0?t=n.rounding:sr(t,0,8),xe(r,e+$e(r)+1,t))};Y.toExponential=function(e,t){var r,n=this,o=n.constructor;return e===void 0?r=Nn(n,!0):(sr(e,0,So),t===void 0?t=o.rounding:sr(t,0,8),n=xe(new o(n),e+1,t),r=Nn(n,!0,e+1)),r};Y.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?Nn(o):(sr(e,0,So),t===void 0?t=i.rounding:sr(t,0,8),n=xe(new i(o),e+$e(o)+1,t),r=Nn(n.abs(),!1,e+$e(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)};Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return xe(new t(e),$e(e)+1,t.rounding)};Y.toNumber=function(){return+this};Y.toPower=Y.pow=function(e){var t,r,n,o,i,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Ot);if(s=new l(s),!s.s){if(e.s<1)throw Error(Dt+"Infinity");return s}if(s.eq(Ot))return s;if(n=l.precision,e.eq(Ot))return xe(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,i=s.s,a){if((r=u<0?-u:u)<=g1){for(o=new l(Ot),t=Math.ceil(n/Se+4),_e=!1;r%2&&(o=o.times(s),Ib(o.d,t)),r=Oo(r/2),r!==0;)s=s.times(s),Ib(s.d,t);return _e=!0,e.s<0?new l(Ot).div(o):xe(o,n)}}else if(i<0)throw Error(Dt+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,_e=!1,o=e.times(ci(s,n+c)),_e=!0,o=b1(o),o.s=i,o};Y.toPrecision=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?(r=$e(o),n=Nn(o,r<=i.toExpNeg||r>=i.toExpPos)):(sr(e,1,So),t===void 0?t=i.rounding:sr(t,0,8),o=xe(new i(o),e,t),r=$e(o),n=Nn(o,e<=r||r<=i.toExpNeg,e)),n};Y.toSignificantDigits=Y.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(sr(e,1,So),t===void 0?t=n.rounding:sr(t,0,8)),xe(new n(r),e,t)};Y.toString=Y.valueOf=Y.val=Y.toJSON=Y[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$e(e),r=e.constructor;return Nn(e,t<=r.toExpNeg||t>=r.toExpPos)};function y1(e,t){var r,n,o,i,a,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),_e?xe(t,d):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,o=a,s=l.length),a=Math.ceil(d/Se),s=a>s?a+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/He|0,l[i]%=He;for(r&&(l.unshift(r),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,_e?xe(t,d):t}function sr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Pn+e)}function er(e){var t,r,n,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)n=e[t]+"",r=Se-n.length,r&&(i+=Fr(r)),i+=n;a=e[t],n=a+"",r=Se-n.length,r&&(i+=Fr(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var hr=(function(){function e(n,o){var i,a=0,s=n.length;for(n=n.slice();s--;)i=n[s]*o+a,n[s]=i%He|0,a=i/He|0;return a&&n.unshift(a),n}function t(n,o,i,a){var s,l;if(i!=a)l=i>a?1:-1;else for(s=l=0;s<i;s++)if(n[s]!=o[s]){l=n[s]>o[s]?1:-1;break}return l}function r(n,o,i){for(var a=0;i--;)n[i]-=a,a=n[i]<o[i]?1:0,n[i]=a*He+n[i]-o[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,o,i,a){var s,l,c,u,d,p,v,g,m,h,b,x,w,P,O,S,E,C,N=n.constructor,D=n.s==o.s?1:-1,$=n.d,_=o.d;if(!n.s)return new N(n);if(!o.s)throw Error(Dt+"Division by zero");for(l=n.e-o.e,E=_.length,O=$.length,v=new N(D),g=v.d=[],c=0;_[c]==($[c]||0);)++c;if(_[c]>($[c]||0)&&--l,i==null?x=i=N.precision:a?x=i+($e(n)-$e(o))+1:x=i,x<0)return new N(0);if(x=x/Se+2|0,c=0,E==1)for(u=0,_=_[0],x++;(c<O||u)&&x--;c++)w=u*He+($[c]||0),g[c]=w/_|0,u=w%_|0;else{for(u=He/(_[0]+1)|0,u>1&&(_=e(_,u),$=e($,u),E=_.length,O=$.length),P=E,m=$.slice(0,E),h=m.length;h<E;)m[h++]=0;C=_.slice(),C.unshift(0),S=_[0],_[1]>=He/2&&++S;do u=0,s=t(_,m,E,h),s<0?(b=m[0],E!=h&&(b=b*He+(m[1]||0)),u=b/S|0,u>1?(u>=He&&(u=He-1),d=e(_,u),p=d.length,h=m.length,s=t(d,m,p,h),s==1&&(u--,r(d,E<p?C:_,p))):(u==0&&(s=u=1),d=_.slice()),p=d.length,p<h&&d.unshift(0),r(m,d,h),s==-1&&(h=m.length,s=t(_,m,E,h),s<1&&(u++,r(m,E<h?C:_,h))),h=m.length):s===0&&(u++,m=[0]),g[c++]=u,s&&m[0]?m[h++]=$[P]||0:(m=[$[P]],h=1);while((P++<O||m[0]!==void 0)&&x--)}return g[0]||g.shift(),v.e=l,xe(v,a?i+$e(v)+1:i)}})();function b1(e,t){var r,n,o,i,a,s,l=0,c=0,u=e.constructor,d=u.precision;if($e(e)>16)throw Error(tv+$e(e));if(!e.s)return new u(Ot);for(_e=!1,s=d,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(n=Math.log(fn(2,c))/Math.LN10*2+5|0,s+=n,r=o=i=new u(Ot),u.precision=s;;){if(o=xe(o.times(e),s),r=r.times(++l),a=i.plus(hr(o,r,s)),er(a.d).slice(0,s)===er(i.d).slice(0,s)){for(;c--;)i=xe(i.times(i),s);return u.precision=d,t==null?(_e=!0,xe(i,d)):i}i=a}}function $e(e){for(var t=e.e*Se,r=e.d[0];r>=10;r/=10)t++;return t}function ed(e,t,r){if(t>e.LN10.sd())throw _e=!0,r&&(e.precision=r),Error(Dt+"LN10 precision limit exceeded");return xe(new e(e.LN10),t)}function Fr(e){for(var t="";e--;)t+="0";return t}function ci(e,t){var r,n,o,i,a,s,l,c,u,d=1,p=10,v=e,g=v.d,m=v.constructor,h=m.precision;if(v.s<1)throw Error(Dt+(v.s?"NaN":"-Infinity"));if(v.eq(Ot))return new m(0);if(t==null?(_e=!1,c=h):c=t,v.eq(10))return t==null&&(_e=!0),ed(m,c);if(c+=p,m.precision=c,r=er(g),n=r.charAt(0),i=$e(v),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=er(v.d),n=r.charAt(0),d++;i=$e(v),n>1?(v=new m("0."+r),i++):v=new m(n+"."+r.slice(1))}else return l=ed(m,c+2,h).times(i+""),v=ci(new m(n+"."+r.slice(1)),c-p).plus(l),m.precision=h,t==null?(_e=!0,xe(v,h)):v;for(s=a=v=hr(v.minus(Ot),v.plus(Ot),c),u=xe(v.times(v),c),o=3;;){if(a=xe(a.times(u),c),l=s.plus(hr(a,new m(o),c)),er(l.d).slice(0,c)===er(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(ed(m,c+2,h).times(i+""))),s=hr(s,new m(d),c),m.precision=h,t==null?(_e=!0,xe(s,h)):s;s=l,o+=2}}function Mb(e,t){var r,n,o;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(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(n,o),t){if(o-=n,r=r-n-1,e.e=Oo(r/Se),e.d=[],n=(r+1)%Se,r<0&&(n+=Se),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=Se;n<o;)e.d.push(+t.slice(n,n+=Se));t=t.slice(n),n=Se-t.length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),_e&&(e.e>Ms||e.e<-Ms))throw Error(tv+r)}else e.s=0,e.e=0,e.d=[0];return e}function xe(e,t,r){var n,o,i,a,s,l,c,u,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if(n=t-a,n<0)n+=Se,o=t,c=d[u=0];else{if(u=Math.ceil((n+1)/Se),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;n%=Se,o=n-Se+a}if(r!==void 0&&(i=fn(10,a-o-1),s=c/i%10|0,l=t<0||d[u+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?o>0?c/fn(10,a-o):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return l?(i=$e(e),d.length=1,t=t-i-1,d[0]=fn(10,(Se-t%Se)%Se),e.e=Oo(-t/Se)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(n==0?(d.length=u,i=1,u--):(d.length=u+1,i=fn(10,Se-n),d[u]=o>0?(c/fn(10,a-o)%fn(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==He&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=He)break;d[u--]=0,i=1}for(n=d.length;d[--n]===0;)d.pop();if(_e&&(e.e>Ms||e.e<-Ms))throw Error(tv+$e(e));return e}function x1(e,t){var r,n,o,i,a,s,l,c,u,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),_e?xe(t,v):t;if(l=e.d,d=t.d,n=t.e,c=e.e,l=l.slice(),a=c-n,a){for(u=a<0,u?(r=l,a=-a,s=d.length):(r=d,n=c,s=l.length),o=Math.max(Math.ceil(v/Se),s)+2,a>o&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for(o=l.length,s=d.length,u=o<s,u&&(s=o),o=0;o<s;o++)if(l[o]!=d[o]){u=l[o]<d[o];break}a=0}for(u&&(r=l,l=d,d=r,t.s=-t.s),s=l.length,o=d.length-s;o>0;--o)l[s++]=0;for(o=d.length;o>a;){if(l[--o]<d[o]){for(i=o;i&&l[--i]===0;)l[i]=He-1;--l[i],l[o]+=He}l[o]-=d[o]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,_e?xe(t,v):t):new p(0)}function Nn(e,t,r){var n,o=$e(e),i=er(e.d),a=i.length;return t?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+Fr(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Fr(-o-1)+i,r&&(n=r-a)>0&&(i+=Fr(n))):o>=a?(i+=Fr(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+Fr(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=Fr(n))),e.s<0?"-"+i:i}function Ib(e,t){if(e.length>t)return e.length=t,!0}function w1(e){var t,r,n;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Pn+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return Mb(a,i.toString())}else if(typeof i!="string")throw Error(Pn+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,V5.test(i))Mb(a,i);else throw Error(Pn+i)}if(o.prototype=Y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=w1,o.config=o.set=W5,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 o.config(e),o}function W5(e){if(!e||typeof e!="object")throw Error(Dt+"Object expected");var t,r,n,o=["precision",1,So,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((n=e[r=o[t]])!==void 0)if(Oo(n)===n&&n>=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Pn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Pn+r+": "+n);return this}var rv=w1(B5);Ot=new rv(1);const he=rv;function P1(e){var t;return e===0?t=1:t=Math.floor(new he(e).abs().log(10).toNumber())+1,t}function S1(e,t,r){for(var n=new he(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}var O1=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},E1=(e,t,r)=>{if(e.lte(0))return new he(0);var n=P1(e.toNumber()),o=new he(10).pow(n),i=e.div(o),a=n!==1?.05:.1,s=new he(Math.ceil(i.div(a).toNumber())).add(r).mul(a),l=s.mul(o);return t?new he(l.toNumber()):new he(Math.ceil(l.toNumber()))},K5=(e,t,r)=>{var n=new he(1),o=new he(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new he(10).pow(P1(e)-1),o=new he(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new he(Math.floor(e)))}else e===0?o=new he(Math.floor((t-1)/2)):r||(o=new he(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l<t;l++)s.push(o.add(new he(l-a).mul(n)).toNumber());return s},C1=function(t,r,n,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new he(0),tickMin:new he(0),tickMax:new he(0)};var a=E1(new he(r).sub(t).div(n-1),o,i),s;t<=0&&r>=0?s=new he(0):(s=new he(t).add(r).div(2),s=s.sub(new he(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),c=Math.ceil(new he(r).sub(s).div(a).toNumber()),u=l+c+1;return u>n?C1(t,r,n,o,i+1):(u<n&&(c=r>0?c+(n-u):c,l=r>0?l:l+(n-u)),{step:a,tickMin:s.sub(new he(l).mul(a)),tickMax:s.add(new he(c).mul(a))})},U5=function(t){var[r,n]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),[s,l]=O1([r,n]);if(s===-1/0||l===1/0){var c=l===1/0?[s,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),l];return r>n?c.reverse():c}if(s===l)return K5(s,o,i);var{step:u,tickMin:d,tickMax:p}=C1(s,l,a,i,0),v=S1(d,p.add(new he(.1).mul(u)),u);return r>n?v.reverse():v},H5=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=O1([n,o]);if(a===-1/0||s===1/0)return[n,o];if(a===s)return[a];var l=Math.max(r,2),c=E1(new he(s).sub(a).div(l-1),i,0),u=[...S1(new he(a),new he(s),c),s];return i===!1&&(u=u.map(d=>Math.round(d))),n>o?u.reverse():u},A1=e=>e.rootProps.maxBarSize,G5=e=>e.rootProps.barGap,_1=e=>e.rootProps.barCategoryGap,q5=e=>e.rootProps.barSize,Li=e=>e.rootProps.stackOffset,T1=e=>e.rootProps.reverseStackOrder,nv=e=>e.options.chartName,ov=e=>e.rootProps.syncId,j1=e=>e.rootProps.syncMethod,iv=e=>e.options.eventEmitter,De={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},cn={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Yt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},Bl=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Vl(e,t,r){if(r!=="auto")return r;if(e!=null)return _r(e,t)?"category":"number"}function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Is(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(n){Y5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y5(e,t,r){return(t=X5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X5(e){var t=Z5(e,"string");return typeof t=="symbol"?t:t+""}function Z5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rb={allowDataOverflow:cn.allowDataOverflow,allowDecimals:cn.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:cn.angleAxisId,includeHidden:!1,name:void 0,reversed:cn.reversed,scale:cn.scale,tick:cn.tick,tickCount:void 0,ticks:void 0,type:cn.type,unit:void 0},Db={allowDataOverflow:Yt.allowDataOverflow,allowDecimals:Yt.allowDecimals,allowDuplicatedCategory:Yt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Yt.radiusAxisId,includeHidden:Yt.includeHidden,name:void 0,reversed:Yt.reversed,scale:Yt.scale,tick:Yt.tick,tickCount:Yt.tickCount,ticks:void 0,type:Yt.type,unit:void 0},J5=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},av=j([J5,mO],(e,t)=>{var r;if(e!=null)return e;var n=(r=Vl(t,"angleAxis",Rb.type))!==null&&r!==void 0?r:"category";return Is(Is({},Rb),{},{type:n})}),Q5=(e,t)=>e.polarAxis.radiusAxis[t],sv=j([Q5,mO],(e,t)=>{var r;if(e!=null)return e;var n=(r=Vl(t,"radiusAxis",Db.type))!==null&&r!==void 0?r:"category";return Is(Is({},Db),{},{type:n})}),Wl=e=>e.polarOptions,lv=j([Tr,jr,Be],MO),N1=j([Wl,lv],(e,t)=>{if(e!=null)return it(e.innerRadius,t,0)}),M1=j([Wl,lv],(e,t)=>{if(e!=null)return it(e.outerRadius,t,t*.8)}),e4=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},I1=j([Wl],e4);j([av,I1],Bl);var k1=j([lv,N1,M1],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});j([sv,k1],Bl);var R1=j([ve,Wl,N1,M1,Tr,jr],(e,t,r,n,o,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:it(a,o,o/2),cy:it(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),je=(e,t)=>t,Fi=(e,t,r)=>r;function cv(e){return e?.id}function D1(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=r,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var u=cv(s);c.forEach((d,p)=>{var v=i==null||o?p:String(be(d,i,null)),g=be(d,s.dataKey,0),m;a.has(v)?m=a.get(v):m={},Object.assign(m,{[u]:g}),a.set(v,m)})}}),Array.from(a.values())}function Kl(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Ul=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Hl(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function t4(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var Je=e=>{var t=ve(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Eo=e=>e.tooltip.settings.axisId;function r4(e){if(e in Ho)return Ho[e]();var t="scale".concat(Si(e));if(t in Ho)return Ho[t]()}function $b(e){var t=e.ticks,r=e.bandwidth,n=e.range(),o=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:(function(i){function a(){return i.apply(this,arguments)}return a.toString=function(){return i.toString()},a})(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(i){var a=o[0],s=o[1];return a<=s?i>=a&&i<=s:i>=s&&i<=a},bandwidth:r?()=>r.call(e):void 0,ticks:t?i=>t.call(e,i):void 0,map:(i,a)=>{var s=e(i);if(s!=null){if(e.bandwidth&&a!==null&&a!==void 0&&a.position){var l=e.bandwidth();switch(a.position){case"middle":s+=l/2;break;case"end":s+=l;break}}return s}}}}function Lb(e,t,r){if(typeof e=="function")return $b(e.copy().domain(t).range(r));if(e!=null){var n=r4(e);if(n!=null)return n.domain(t).range(r),$b(n)}}var $1=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Pr(t)){for(var r,n,o=0;o<t.length;o++){var i=t[o];ce(i)&&((r===void 0||i<r)&&(r=i),(n===void 0||i>n)&&(n=i))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function Fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ks(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fb(Object(r),!0).forEach(function(n){n4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n4(e,t,r){return(t=o4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o4(e){var t=i4(e,"string");return typeof t=="symbol"?t:t+""}function i4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var df=[0,"auto"],Ke={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},L1=(e,t)=>e.cartesianAxis.xAxis[t],Ir=(e,t)=>{var r=L1(e,t);return r??Ke},Ue={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:df,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Ti},F1=(e,t)=>e.cartesianAxis.yAxis[t],kr=(e,t)=>{var r=F1(e,t);return r??Ue},a4={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},uv=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??a4},ke=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"zAxis":return uv(e,r);case"angleAxis":return av(e,r);case"radiusAxis":return sv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},s4=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Co=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"angleAxis":return av(e,r);case"radiusAxis":return sv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},z1=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function dv(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Gl=e=>e.graphicalItems.cartesianItems,l4=j([je,Fi],dv),fv=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),zi=j([Gl,ke,l4],fv,{memoizeOptions:{resultEqualityCheck:Hl}}),B1=j([zi],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Kl)),V1=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),c4=j([zi],V1),pv=e=>e.map(t=>t.data).filter(Boolean).flat(1),u4=j([zi],pv,{memoizeOptions:{resultEqualityCheck:Hl}}),vv=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},mv=j([u4,ev],vv),hv=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:be(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(o=>({value:be(o,n)}))):e.map(n=>({value:n})),ql=j([mv,ke,zi],hv);function W1(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Ka(e){if(ir(e)||e instanceof Date){var t=Number(e);if(ce(t))return t}}function zb(e){if(Array.isArray(e)){var t=[Ka(e[0]),Ka(e[1])];return Pr(t)?t:void 0}var r=Ka(e);if(r!=null)return[r,r]}function Sr(e){return e.map(Ka).filter(yt)}function d4(e,t,r){return!r||typeof t!="number"||or(t)?[]:r.length?Sr(r.flatMap(n=>{var o=be(e,n.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!ce(i)||!ce(a)))return[t-i,t+a]})):[]}var We=e=>{var t=Je(e),r=Eo(e);return Co(e,t,r)},Bi=j([We],e=>e?.dataKey),f4=j([B1,ev,We],D1),K1=(e,t,r,n)=>{var o={},i=t.reduce((a,s)=>{if(s.stackId==null)return a;var l=a[s.stackId];return l==null&&(l=[]),l.push(s),a[s.stackId]=l,a},o);return Object.fromEntries(Object.entries(i).map(a=>{var[s,l]=a,c=n?[...l].reverse():l,u=c.map(cv);return[s,{stackedData:NF(e,u,r),graphicalItems:c}]}))},ff=j([f4,B1,Li,T1],K1),U1=(e,t,r,n)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var a=DF(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},p4=j([ke],e=>e.allowDataOverflow),gv=e=>{var t;if(e==null||!("domain"in e))return df;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Sr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:df},yv=j([ke],gv),bv=j([yv,p4],h1),v4=j([ff,Mr,je,bv],U1,{memoizeOptions:{resultEqualityCheck:Ul}}),Yl=e=>e.errorBars,m4=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>W1(r,n)),Rs=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);if(o.length!==0){var i=o.flat(),a=Math.min(...i),s=Math.max(...i);return[a,s]}},xv=(e,t,r,n,o)=>{var i,a;if(r.length>0&&e.forEach(s=>{r.forEach(l=>{var c,u,d=(c=n[l.id])===null||c===void 0?void 0:c.filter(b=>W1(o,b)),p=be(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),v=d4(s,p,d);if(v.length>=2){var g=Math.min(...v),m=Math.max(...v);(i==null||g<i)&&(i=g),(a==null||m>a)&&(a=m)}var h=zb(p);h!=null&&(i=i==null?h[0]:Math.min(i,h[0]),a=a==null?h[1]:Math.max(a,h[1]))})}),t?.dataKey!=null&&e.forEach(s=>{var l=zb(be(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),a=a==null?l[1]:Math.max(a,l[1]))}),ce(i)&&ce(a))return[i,a]},h4=j([mv,ke,c4,Yl,je],xv,{memoizeOptions:{resultEqualityCheck:Ul}});function g4(e){var{value:t}=e;if(ir(t)||t instanceof Date)return t}var y4=(e,t,r)=>{var n=e.map(g4).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&aS(n))?DO(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},H1=e=>e.referenceElements.dots,Ao=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),b4=j([H1,je,Fi],Ao),G1=e=>e.referenceElements.areas,x4=j([G1,je,Fi],Ao),q1=e=>e.referenceElements.lines,w4=j([q1,je,Fi],Ao),Y1=(e,t)=>{if(e!=null){var r=Sr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},P4=j(b4,je,Y1),X1=(e,t)=>{if(e!=null){var r=Sr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},S4=j([x4,je],X1);function O4(e){var t;if(e.x!=null)return Sr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Sr(r)}function E4(e){var t;if(e.y!=null)return Sr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Sr(r)}var Z1=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?O4(n):E4(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},C4=j([w4,je],Z1),A4=j(P4,C4,S4,(e,t,r)=>Rs(e,r,t)),wv=(e,t,r,n,o,i,a,s)=>{if(r!=null)return r;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",c=l?Rs(n,i,o):Rs(i,o);return z5(t,c,e.allowDataOverflow)},_4=j([ke,yv,bv,v4,h4,A4,ve,je],wv,{memoizeOptions:{resultEqualityCheck:Ul}}),T4=[0,1],Pv=(e,t,r,n,o,i,a)=>{if(!((e==null||r==null||r.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=_r(t,i);if(c&&s==null){var u;return DO(0,(u=r?.length)!==null&&u!==void 0?u:0)}return l==="category"?y4(n,e,c):o==="expand"?T4:a}},Sv=j([ke,ve,mv,ql,Li,je,_4],Pv);function j4(e){return e in Ho}var J1=(e,t,r)=>{if(e!=null){var{scale:n,type:o}=e;if(n==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof n=="string"){var i="scale".concat(Si(n));return j4(i)?i:"point"}}},tn=j([ke,z1,nv],J1);function Ov(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?Lb(e.scale,r,n):Lb(t,r,n)}var Ev=(e,t,r)=>{var n=gv(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Pr(e))return U5(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Pr(e))return H5(e,t.tickCount,t.allowDecimals)}},Cv=j([Sv,Co,tn],Ev),Av=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Pr(t)&&Array.isArray(r)&&r.length>0){var o,i,a=t[0],s=(o=r[0])!==null&&o!==void 0?o:0,l=t[1],c=(i=r[r.length-1])!==null&&i!==void 0?i:0;return[Math.min(a,s),Math.max(l,c)]}return t},N4=j([ke,Sv,Cv,je],Av),M4=j(ql,ke,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Sr(e.map(d=>d.value))).sort((d,p)=>d-p),o=n[0],i=n[n.length-1];if(o==null||i==null)return 1/0;var a=i-o;if(a===0)return 1/0;for(var s=0;s<n.length-1;s++){var l=n[s],c=n[s+1];if(!(l==null||c==null)){var u=c-l;r=Math.min(r,u)}}return r/a}}),Q1=j(M4,ve,_1,Be,(e,t,r,n,o)=>o,(e,t,r,n,o)=>{if(!ce(e))return 0;var i=t==="vertical"?n.height:n.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=it(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),I4=(e,t,r)=>{var n=Ir(e,t);return n==null||typeof n.padding!="string"?0:Q1(e,"xAxis",t,r,n.padding)},k4=(e,t,r)=>{var n=kr(e,t);return n==null||typeof n.padding!="string"?0:Q1(e,"yAxis",t,r,n.padding)},R4=j(Ir,I4,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((n=o.right)!==null&&n!==void 0?n:0)+t}}),D4=j(kr,k4,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((n=o.bottom)!==null&&n!==void 0?n:0)+t}}),$4=j([Be,R4,Al,Cl,(e,t,r)=>r],(e,t,r,n,o)=>{var{padding:i}=n;return o?[i.left,r.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),L4=j([Be,ve,D4,Al,Cl,(e,t,r)=>r],(e,t,r,n,o,i)=>{var{padding:a}=o;return i?[n.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Vi=(e,t,r,n)=>{var o;switch(t){case"xAxis":return $4(e,r,n);case"yAxis":return L4(e,r,n);case"zAxis":return(o=uv(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return I1(e);case"radiusAxis":return k1(e,r);default:return}},eE=j([ke,Vi],Bl),F4=j([tn,N4],$1),Xl=j([ke,tn,F4,eE],Ov);j([zi,Yl,je],m4);function tE(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Zl=(e,t)=>t,Jl=(e,t,r)=>r,z4=j(Ol,Zl,Jl,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(tE)),B4=j(El,Zl,Jl,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(tE)),rE=(e,t)=>({width:e.width,height:t.height}),V4=(e,t)=>{var r=typeof t.width=="number"?t.width:Ti;return{width:r,height:e.height}},nE=j(Be,Ir,rE),W4=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},K4=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},U4=j(jr,Be,z4,Zl,Jl,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=rE(t,s);a==null&&(a=W4(t,n,e));var c=n==="top"&&!o||n==="bottom"&&o;i[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),i}),H4=j(Tr,Be,B4,Zl,Jl,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=V4(t,s);a==null&&(a=K4(t,n,e));var c=n==="left"&&!o||n==="right"&&o;i[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),i}),G4=(e,t)=>{var r=Ir(e,t);if(r!=null)return U4(e,r.orientation,r.mirror)},q4=j([Be,Ir,G4,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),Y4=(e,t)=>{var r=kr(e,t);if(r!=null)return H4(e,r.orientation,r.mirror)},X4=j([Be,kr,Y4,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),oE=j(Be,kr,(e,t)=>{var r=typeof t.width=="number"?t.width:Ti;return{width:r,height:e.height}}),Bb=(e,t,r)=>{switch(t){case"xAxis":return nE(e,r).width;case"yAxis":return oE(e,r).height;default:return}},iE=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=r,s=_r(e,n),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&aS(l))return l}},_v=j([ve,ql,ke,je],iE),aE=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:i}=r,a=_r(e,n);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},Tv=j([ve,ql,Co,je],aE),Vb=j([ve,s4,tn,Xl,_v,Tv,Vi,Cv,je],(e,t,r,n,o,i,a,s,l)=>{if(t!=null){var c=_r(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:o,isCategorical:c,niceTicks:s,range:a,realScaleType:r,scale:n}}}),Z4=(e,t,r,n,o,i,a,s,l)=>{if(!(t==null||n==null)){var c=_r(e,l),{type:u,ticks:d,tickCount:p}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,g=u==="category"&&n.bandwidth?n.bandwidth()/v:0;g=l==="angleAxis"&&i!=null&&i.length>=2?Ge(i[0]-i[1])*2*g:g;var m=d||o;return m?m.map((h,b)=>{var x=a?a.indexOf(h):h,w=n.map(x);return ce(w)?{index:b,coordinate:w+g,value:h,offset:g}:null}).filter(yt):c&&s?s.map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:h,index:b,offset:g}:null}).filter(yt):n.ticks?n.ticks(p).map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:h,index:b,offset:g}:null}).filter(yt):n.domain().map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:a?a[h]:h,index:b,offset:g}:null}).filter(yt)}},sE=j([ve,Co,tn,Xl,Cv,Vi,_v,Tv,je],Z4),J4=(e,t,r,n,o,i,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=_r(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&n?.length>=2?Ge(n[0]-n[1])*2*c:c,s&&i?i.map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:u,index:d,offset:c}:null}).filter(yt):r.ticks?r.ticks(l).map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:u,index:d,offset:c}:null}).filter(yt):r.domain().map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:o?o[u]:u,index:d,offset:c}:null}).filter(yt)}},Hr=j([ve,Co,Xl,Vi,_v,Tv,je],J4),Gr=j(ke,Xl,(e,t)=>{if(!(e==null||t==null))return ks(ks({},e),{},{scale:t})}),Q4=j([ke,tn,Sv,eE],Ov);j((e,t,r)=>uv(e,r),Q4,(e,t)=>{if(!(e==null||t==null))return ks(ks({},e),{},{scale:t})});var eW=j([ve,Ol,El],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),lE=e=>e.options.defaultTooltipEventType,cE=e=>e.options.validateTooltipEventTypes;function uE(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function jv(e,t){var r=lE(e),n=cE(e);return uE(t,r,n)}function tW(e){return J(t=>jv(t,e))}var dE=(e,t)=>{var r,n=Number(t);if(!(or(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},rW=e=>e.tooltip.settings,Br={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},nW={itemInteraction:{click:Br,hover:Br},axisInteraction:{click:Br,hover:Br},keyboardInteraction:Br,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},fE=xt({name:"tooltip",initialState:nW,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Ce()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=n)},prepare:Ce()},removeTooltipEntrySettings:{reducer(e,t){var r=Bt(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Ce()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:oW,replaceTooltipEntrySettings:iW,removeTooltipEntrySettings:aW,setTooltipSettingsState:sW,setActiveMouseOverItemIndex:pE,mouseLeaveItem:lW,mouseLeaveChart:vE,setActiveClickItemIndex:cW,setMouseOverAxisIndex:mE,setMouseClickAxisIndex:uW,setSyncInteraction:pf,setKeyboardInteraction:vf}=fE.actions,dW=fE.reducer;function Wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wb(Object(r),!0).forEach(function(n){fW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fW(e,t,r){return(t=pW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pW(e){var t=vW(e,"string");return typeof t=="symbol"?t:t+""}function vW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mW(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function hW(e){return e.index!=null}var hE=(e,t,r,n)=>{if(t==null)return Br;var o=mW(e,t,r);if(o==null)return Br;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(hW(o)){if(i)return _a(_a({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return _a(_a({},Br),{},{coordinate:o.coordinate})};function gW(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function yW(e,t){var r=gW(e),n=t[0],o=t[1];if(r===void 0)return!1;var i=Math.min(n,o),a=Math.max(n,o);return r>=i&&r<=a}function bW(e,t,r){if(r==null||t==null)return!0;var n=be(e,t);return n==null||!Pr(r)?!0:yW(n,r)}var Nv=(e,t,r,n)=>{var o=e?.index;if(o==null)return null;var i=Number(o);if(!ce(i))return o;var a=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(a,Math.min(i,s)),c=t[l];return c==null||bW(c,r,n)?String(l):null},gE=(e,t,r,n,o,i,a)=>{if(i!=null){var s=a[0],l=s?.getPosition(i);if(l!=null)return l;var c=o?.[Number(i)];if(c)return r==="horizontal"?{x:c.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:c.coordinate}}},yE=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,o==null&&n!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.graphicalItemId)===o})},bE=e=>e.options.tooltipPayloadSearcher,_o=e=>e.tooltip;function Kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ub(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(r),!0).forEach(function(n){xW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xW(e,t,r){return(t=wW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wW(e){var t=PW(e,"string");return typeof t=="symbol"?t:t+""}function PW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SW(e,t){return e??t}var xE=(e,t,r,n,o,i,a)=>{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=r,d=[];return e.reduce((p,v)=>{var g,{dataDefinedOnItem:m,settings:h}=v,b=SW(m,s),x=Array.isArray(b)?oO(b,c,u):b,w=(g=h?.dataKey)!==null&&g!==void 0?g:n,P=h?.nameKey,O;if(n&&Array.isArray(x)&&!Array.isArray(x[0])&&a==="axis"?O=sS(x,n,o):O=i(x,t,l,P),Array.isArray(O))O.forEach(E=>{var C=Ub(Ub({},h),{},{name:E.name,unit:E.unit,color:void 0,fill:void 0});p.push(Wg({tooltipEntrySettings:C,dataKey:E.dataKey,payload:E.payload,value:be(E.payload,E.dataKey),name:E.name}))});else{var S;p.push(Wg({tooltipEntrySettings:h,dataKey:w,payload:O,value:be(O,w),name:(S=be(O,P))!==null&&S!==void 0?S:h?.name}))}return p},d)}},Mv=j([We,z1,nv],J1),OW=j([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),EW=j([Je,Eo],dv),To=j([OW,We,EW],fv,{memoizeOptions:{resultEqualityCheck:Hl}}),CW=j([To],e=>e.filter(Kl)),AW=j([To],pv,{memoizeOptions:{resultEqualityCheck:Hl}}),jo=j([AW,Mr],vv),_W=j([CW,Mr,We],D1),Iv=j([jo,We,To],hv),wE=j([We],gv),TW=j([We],e=>e.allowDataOverflow),PE=j([wE,TW],h1),jW=j([To],e=>e.filter(Kl)),NW=j([_W,jW,Li,T1],K1),MW=j([NW,Mr,Je,PE],U1),IW=j([To],V1),kW=j([jo,We,IW,Yl,Je],xv,{memoizeOptions:{resultEqualityCheck:Ul}}),RW=j([H1,Je,Eo],Ao),DW=j([RW,Je],Y1),$W=j([G1,Je,Eo],Ao),LW=j([$W,Je],X1),FW=j([q1,Je,Eo],Ao),zW=j([FW,Je],Z1),BW=j([DW,zW,LW],Rs),VW=j([We,wE,PE,MW,kW,BW,ve,Je],wv),Wi=j([We,ve,jo,Iv,Li,Je,VW],Pv),WW=j([Wi,We,Mv],Ev),KW=j([We,Wi,WW,Je],Av),SE=e=>{var t=Je(e),r=Eo(e),n=!1;return Vi(e,t,r,n)},OE=j([We,SE],Bl),EE=j([We,Mv,KW,OE],Ov),UW=j([ve,Iv,We,Je],iE),HW=j([ve,Iv,We,Je],aE),GW=(e,t,r,n,o,i,a,s)=>{if(t){var{type:l}=t,c=_r(e,s);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,d=l==="category"&&n.bandwidth?n.bandwidth()/u:0;return d=s==="angleAxis"&&o!=null&&o?.length>=2?Ge(o[0]-o[1])*2*d:d,c&&a?a.map((p,v)=>{var g=n.map(p);return ce(g)?{coordinate:g+d,value:p,index:v,offset:d}:null}).filter(yt):n.domain().map((p,v)=>{var g=n.map(p);return ce(g)?{coordinate:g+d,value:i?i[p]:p,index:v,offset:d}:null}).filter(yt)}}},Rr=j([ve,We,Mv,EE,SE,UW,HW,Je],GW),kv=j([lE,cE,rW],(e,t,r)=>uE(r.shared,e,t)),CE=e=>e.tooltip.settings.trigger,Rv=e=>e.tooltip.settings.defaultIndex,Ki=j([_o,kv,CE,Rv],hE),qr=j([Ki,jo,Bi,Wi],Nv),AE=j([Rr,qr],dE),Dv=j([Ki],e=>{if(e)return e.dataKey}),qW=j([Ki],e=>{if(e)return e.graphicalItemId}),_E=j([_o,kv,CE,Rv],yE),YW=j([Tr,jr,ve,Be,Rr,Rv,_E],gE),XW=j([Ki,YW],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),ZW=j([Ki],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),JW=j([_E,qr,Mr,Bi,AE,bE,kv],xE),QW=j([JW],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Gb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hb(Object(r),!0).forEach(function(n){e6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e6(e,t,r){return(t=t6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t6(e){var t=r6(e,"string");return typeof t=="symbol"?t:t+""}function r6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n6=()=>J(We),o6=()=>{var e=n6(),t=J(Rr),r=J(EE);return co(!e||!r?void 0:Gb(Gb({},e),{},{scale:r}),t)};function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jn(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){i6(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 i6(e,t,r){return(t=a6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a6(e){var t=s6(e,"string");return typeof t=="symbol"?t:t+""}function s6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l6=(e,t,r,n)=>{var o=t.find(i=>i&&i.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:o.coordinate}}return{x:0,y:0}},c6=(e,t,r,n)=>{var o=t.find(c=>c&&c.index===r);if(o){if(e==="centric"){var i=o.coordinate,{radius:a}=n;return Jn(Jn(Jn({},n),Re(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=n;return Jn(Jn(Jn({},n),Re(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function u6(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var TE=(e,t,r,n,o)=>{var i,a=(i=t?.length)!==null&&i!==void 0?i:0;if(a<=1||e==null)return 0;if(n==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var s=0;s<a;s++){var l,c,u,d,p,v=s>0?(l=r[s-1])===null||l===void 0?void 0:l.coordinate:(c=r[a-1])===null||c===void 0?void 0:c.coordinate,g=(u=r[s])===null||u===void 0?void 0:u.coordinate,m=s>=a-1?(d=r[0])===null||d===void 0?void 0:d.coordinate:(p=r[s+1])===null||p===void 0?void 0:p.coordinate,h=void 0;if(!(v==null||g==null||m==null))if(Ge(g-v)!==Ge(m-g)){var b=[];if(Ge(m-g)===Ge(o[1]-o[0])){h=m;var x=g+o[1]-o[0];b[0]=Math.min(x,(x+v)/2),b[1]=Math.max(x,(x+v)/2)}else{h=v;var w=m+o[1]-o[0];b[0]=Math.min(g,(w+g)/2),b[1]=Math.max(g,(w+g)/2)}var P=[Math.min(g,(h+g)/2),Math.max(g,(h+g)/2)];if(e>P[0]&&e<=P[1]||e>=b[0]&&e<=b[1]){var O;return(O=r[s])===null||O===void 0?void 0:O.index}}else{var S=Math.min(v,m),E=Math.max(v,m);if(e>(S+g)/2&&e<=(E+g)/2){var C;return(C=r[s])===null||C===void 0?void 0:C.index}}}else if(t)for(var N=0;N<a;N++){var D=t[N];if(D!=null){var $=t[N+1],_=t[N-1];if(N===0&&$!=null&&e<=(D.coordinate+$.coordinate)/2||N===a-1&&_!=null&&e>(D.coordinate+_.coordinate)/2||N>0&&N<a-1&&_!=null&&$!=null&&e>(D.coordinate+_.coordinate)/2&&e<=(D.coordinate+$.coordinate)/2)return D.index}}return-1},d6=()=>J(nv),$v=(e,t)=>t,jE=(e,t,r)=>r,Lv=(e,t,r,n)=>n,f6=j(Rr,e=>ml(e,t=>t.coordinate)),Fv=j([_o,$v,jE,Lv],hE),zv=j([Fv,jo,Bi,Wi],Nv),p6=(e,t,r)=>{if(t!=null){var n=_o(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},NE=j([_o,$v,jE,Lv],yE),Ds=j([Tr,jr,ve,Be,Rr,Lv,NE],gE),v6=j([Fv,Ds],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),ME=j([Rr,zv],dE),m6=j([NE,zv,Mr,Bi,ME,bE,$v],xE),h6=j([Fv,zv],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),g6=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&u6(e,a)){var s=$F(e,t),l=TE(s,i,o,r,n),c=l6(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},y6=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=t3(e,r);if(s){var l=LF(s,t),c=TE(l,a,i,n,o),u=c6(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},b6=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?g6(e,t,n,o,i,a,s):y6(e,t,r,n,o,i,a)},x6=j(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),w6=j(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(De)),r=Array.from(new Set(t));return r.sort((n,o)=>n-o)},{memoizeOptions:{resultEqualityCheck:t4}});function Yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yb(Object(r),!0).forEach(function(n){P6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P6(e,t,r){return(t=S6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S6(e){var t=O6(e,"string");return typeof t=="symbol"?t:t+""}function O6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E6={},C6={zIndexMap:Object.values(De).reduce((e,t)=>Xb(Xb({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),E6)},A6=new Set(Object.values(De));function _6(e){return A6.has(e)}var IE=xt({name:"zIndex",initialState:C6,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Ce()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!_6(r)&&delete e.zIndexMap[r])},prepare:Ce()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:o?void 0:n,panoramaElement:o?n:void 0}},prepare:Ce()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:Ce()}}}),{registerZIndexPortal:T6,unregisterZIndexPortal:j6,registerZIndexPortalElement:N6,unregisterZIndexPortalElement:M6}=IE.actions,I6=IE.reducer;function wt(e){var{zIndex:t,children:r}=e,n=mz(),o=n&&t!==void 0&&t!==0,i=ct(),a=Pe();A.useLayoutEffect(()=>o?(a(T6({zIndex:t})),()=>{a(j6({zIndex:t}))}):Fn,[a,t,o]);var s=J(l=>x6(l,t,i));return o?s?gi.createPortal(r,s):null:r}function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mf.apply(null,arguments)}function Zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zb(Object(r),!0).forEach(function(n){k6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k6(e,t,r){return(t=R6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R6(e){var t=D6(e,"string");return typeof t=="symbol"?t:t+""}function D6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $6(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return A.isValidElement(t)?A.cloneElement(t,n):A.createElement(r,n)}function L6(e){var t,{coordinate:r,payload:n,index:o,offset:i,tooltipAxisBandSize:a,layout:s,cursor:l,tooltipEventType:c,chartName:u}=e,d=r,p=n,v=o;if(!l||!d||u!=="ScatterChart"&&c!=="axis")return null;var g,m,h;if(u==="ScatterChart")g=d,m=mB,h=De.cursorLine;else if(u==="BarChart")g=hB(s,d,i,a),m=NO,h=De.cursorRectangle;else if(s==="radial"&&cS(d)){var{cx:b,cy:x,radius:w,startAngle:P,endAngle:O}=IO(d);g={cx:b,cy:x,startAngle:P,endAngle:O,innerRadius:w,outerRadius:w},m=RO,h=De.cursorLine}else g={points:i3(s,d,i)},m=jp,h=De.cursorLine;var S=typeof l=="object"&&"className"in l?l.className:void 0,E=Ta(Ta(Ta(Ta({stroke:"#ccc",pointerEvents:"none"},i),g),On(l)),{},{payload:p,payloadIndex:v,className:de("recharts-tooltip-cursor",S)});return f.createElement(wt,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:h},f.createElement($6,{cursor:l,cursorComp:m,cursorProps:E}))}function F6(e){var t=o6(),r=pO(),n=zn(),o=d6();return t==null||r==null||n==null||o==null?null:f.createElement(L6,mf({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:o}))}var kE=A.createContext(null),z6=()=>A.useContext(kE),td={exports:{}},Jb;function B6(){return Jb||(Jb=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var v=new o(u,d||l,p),g=r?r+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],v]:l._events[g].push(v):(l._events[g]=v,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,v=d.length,g=new Array(v);p<v;p++)g[p]=d[p].fn;return g},s.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,v,g){var m=r?r+c:c;if(!this._events[m])return!1;var h=this._events[m],b=arguments.length,x,w;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,u),!0;case 3:return h.fn.call(h.context,u,d),!0;case 4:return h.fn.call(h.context,u,d,p),!0;case 5:return h.fn.call(h.context,u,d,p,v),!0;case 6:return h.fn.call(h.context,u,d,p,v,g),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];h.fn.apply(h.context,x)}else{var P=h.length,O;for(w=0;w<P;w++)switch(h[w].once&&this.removeListener(c,h[w].fn,void 0,!0),b){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,u);break;case 3:h[w].fn.call(h[w].context,u,d);break;case 4:h[w].fn.call(h[w].context,u,d,p);break;default:if(!x)for(O=1,x=new Array(b-1);O<b;O++)x[O-1]=arguments[O];h[w].fn.apply(h[w].context,x)}}return!0},s.prototype.on=function(c,u,d){return i(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return i(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var v=r?r+c:c;if(!this._events[v])return this;if(!u)return a(this,v),this;var g=this._events[v];if(g.fn)g.fn===u&&(!p||g.once)&&(!d||g.context===d)&&a(this,v);else{for(var m=0,h=[],b=g.length;m<b;m++)(g[m].fn!==u||p&&!g[m].once||d&&g[m].context!==d)&&h.push(g[m]);h.length?this._events[v]=h.length===1?h[0]:h:a(this,v)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&a(this,u)):(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})(td)),td.exports}var V6=B6();const W6=Jr(V6);var ui=new W6,hf="recharts.syncEvent.tooltip",Qb="recharts.syncEvent.brush",Bv=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!or(r))return e[r]}},K6={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},RE=xt({name:"options",initialState:K6,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),U6=RE.reducer,{createEventEmitter:H6}=RE.actions;function G6(e){return e.tooltip.syncInteraction}var q6={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},DE=xt({name:"chartData",initialState:q6,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:ex,setDataStartEndIndexes:Y6,setComputedData:gte}=DE.actions,X6=DE.reducer,Z6=["x","y"];function tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tx(Object(r),!0).forEach(function(n){J6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J6(e,t,r){return(t=Q6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q6(e){var t=eK(e,"string");return typeof t=="symbol"?t:t+""}function eK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tK(e,t){if(e==null)return{};var r,n,o=rK(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function rK(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function nK(){var e=J(ov),t=J(iv),r=Pe(),n=J(j1),o=J(Rr),i=zn(),a=_l(),s=J(l=>l.rootProps.className);A.useEffect(()=>{if(e==null)return Fn;var l=(c,u,d)=>{if(t!==d&&e===c){if(n==="index"){var p;if(a&&u!==null&&u!==void 0&&(p=u.payload)!==null&&p!==void 0&&p.coordinate&&u.payload.sourceViewBox){var v=u.payload.coordinate,{x:g,y:m}=v,h=tK(v,Z6),{x:b,y:x,width:w,height:P}=u.payload.sourceViewBox,O=Qn(Qn({},h),{},{x:a.x+(w?(g-b)/w:0)*a.width,y:a.y+(P?(m-x)/P:0)*a.height});r(Qn(Qn({},u),{},{payload:Qn(Qn({},u.payload),{},{coordinate:O})}))}else r(u);return}if(o!=null){var S;if(typeof n=="function"){var E={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},C=n(o,E);S=o[C]}else n==="value"&&(S=o.find(B=>String(B.value)===u.payload.label));var{coordinate:N}=u.payload;if(S==null||u.payload.active===!1||N==null||a==null){r(pf({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:D,y:$}=N,_=Math.min(D,a.x+a.width),M=Math.min($,a.y+a.height),k={x:i==="horizontal"?S.coordinate:_,y:i==="horizontal"?M:S.coordinate},V=pf({active:u.payload.active,coordinate:k,dataKey:u.payload.dataKey,index:String(S.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(V)}}};return ui.on(hf,l),()=>{ui.off(hf,l)}},[s,r,t,e,n,o,i,a])}function oK(){var e=J(ov),t=J(iv),r=Pe();A.useEffect(()=>{if(e==null)return Fn;var n=(o,i,a)=>{t!==a&&e===o&&r(Y6(i))};return ui.on(Qb,n),()=>{ui.off(Qb,n)}},[r,t,e])}function iK(){var e=Pe();A.useEffect(()=>{e(H6())},[e]),nK(),oK()}function aK(e,t,r,n,o,i){var a=J(v=>p6(v,e,t)),s=J(iv),l=J(ov),c=J(j1),u=J(G6),d=u?.active,p=_l();A.useEffect(()=>{if(!d&&l!=null&&s!=null){var v=pf({active:i,coordinate:r,dataKey:a,index:o,label:typeof n=="number"?String(n):n,sourceViewBox:p,graphicalItemId:void 0});ui.emit(hf,l,v,s)}},[d,r,a,o,n,s,l,c,i,p])}function rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rx(Object(r),!0).forEach(function(n){sK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sK(e,t,r){return(t=lK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lK(e){var t=cK(e,"string");return typeof t=="symbol"?t:t+""}function cK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uK(e){return e.dataKey}function dK(e,t){return f.isValidElement(e)?f.cloneElement(e,t):typeof e=="function"?f.createElement(e,t):f.createElement(qz,t)}var ox=[],fK={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Vv(e){var t,r,n=Le(e,fK),{active:o,allowEscapeViewBox:i,animationDuration:a,animationEasing:s,content:l,filterNull:c,isAnimationActive:u,offset:d,payloadUniqBy:p,position:v,reverseDirection:g,useTranslate3d:m,wrapperStyle:h,cursor:b,shared:x,trigger:w,defaultIndex:P,portal:O,axisId:S}=n,E=Pe(),C=typeof P=="number"?String(P):P;A.useEffect(()=>{E(sW({shared:x,trigger:w,axisId:S,active:o,defaultIndex:C}))},[E,x,w,S,o,C]);var N=_l(),D=CO(),$=tW(x),{activeIndex:_,isActive:M}=(t=J(W=>h6(W,$,w,C)))!==null&&t!==void 0?t:{},k=J(W=>m6(W,$,w,C)),V=J(W=>ME(W,$,w,C)),B=J(W=>v6(W,$,w,C)),K=k,T=z6(),I=(r=o??M)!==null&&r!==void 0?r:!1,[G,ee]=OS([K,I]),re=$==="axis"?V:void 0;aK($,w,B,re,_,I);var oe=O??T;if(oe==null||N==null||$==null)return null;var ne=K??ox;I||(ne=ox),c&&ne.length&&(ne=yS(ne.filter(W=>W.value!=null&&(W.hide!==!0||n.includeHidden)),p,uK));var le=ne.length>0,Ee=f.createElement(tB,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:I,coordinate:B,hasPayload:le,offset:d,position:v,reverseDirection:g,useTranslate3d:m,viewBox:N,wrapperStyle:h,lastBoundingBox:G,innerRef:ee,hasPortalFromProps:!!O},dK(l,nx(nx({},n),{},{payload:ne,label:re,active:I,activeIndex:_,coordinate:B,accessibilityLayer:D})));return f.createElement(f.Fragment,null,gi.createPortal(Ee,oe),I&&f.createElement(F6,{cursor:b,tooltipEventType:$,coordinate:B,payload:ne,index:_}))}var Ui=e=>null;Ui.displayName="Cell";function pK(e,t,r){return(t=vK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vK(e){var t=mK(e,"string");return typeof t=="symbol"?t:t+""}function mK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class hK{constructor(t){pK(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function ix(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function gK(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ix(Object(r),!0).forEach(function(n){yK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ix(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yK(e,t,r){return(t=bK(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 typeof t=="symbol"?t:t+""}function xK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wK={cacheSize:2e3,enableCache:!0},$E=gK({},wK),ax=new hK($E.cacheSize),PK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},sx="recharts_measurement_span";function SK(e,t){var r=t.fontSize||"",n=t.fontFamily||"",o=t.fontWeight||"",i=t.fontStyle||"",a=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(o,"|").concat(i,"|").concat(a,"|").concat(s)}var lx=(e,t)=>{try{var r=document.getElementById(sx);r||(r=document.createElement("span"),r.setAttribute("id",sx),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,PK,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Xo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Il.isSsr)return{width:0,height:0};if(!$E.enableCache)return lx(t,r);var n=SK(t,r),o=ax.get(n);if(o)return o;var i=lx(t,r);return ax.set(n,i),i},LE;function OK(e,t,r){return(t=EK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EK(e){var t=CK(e,"string");return typeof t=="symbol"?t:t+""}function CK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ux=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,AK=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,_K=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,TK={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},jK=["cm","mm","pt","pc","in","Q","px"];function NK(e){return jK.includes(e)}var to="NaN";function MK(e,t){return e*TK[t]}class rt{static parse(t){var r,[,n,o]=(r=_K.exec(t))!==null&&r!==void 0?r:[];return n==null?rt.NaN:new rt(parseFloat(n),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,or(t)&&(this.unit=""),r!==""&&!AK.test(r)&&(this.num=NaN,this.unit=""),NK(r)&&(this.num=MK(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new rt(NaN,""):new rt(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new rt(NaN,""):new rt(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rt(NaN,""):new rt(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rt(NaN,""):new rt(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return or(this.num)}}LE=rt;OK(rt,"NaN",new LE(NaN,""));function FE(e){if(e==null||e.includes(to))return to;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=cx.exec(t))!==null&&r!==void 0?r:[],a=rt.parse(n??""),s=rt.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return to;t=t.replace(cx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,p]=(c=ux.exec(t))!==null&&c!==void 0?c:[],v=rt.parse(u??""),g=rt.parse(p??""),m=d==="+"?v.add(g):v.subtract(g);if(m.isNaN())return to;t=t.replace(ux,m.toString())}return t}var dx=/\(([^()]*)\)/;function IK(e){for(var t=e,r;(r=dx.exec(t))!=null;){var[,n]=r;t=t.replace(dx,FE(n))}return t}function kK(e){var t=e.replace(/\s+/g,"");return t=IK(t),t=FE(t),t}function RK(e){try{return kK(e)}catch{return to}}function rd(e){var t=RK(e.slice(5,-1));return t===to?"":t}var DK=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],$K=["dx","dy","angle","className","breakAll"];function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gf.apply(null,arguments)}function fx(e,t){if(e==null)return{};var r,n,o=LK(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function LK(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var zE=/[ \f\n\r\t\v\u2028\u2029]+/,BE=e=>{var{children:t,breakAll:r,style:n}=e;try{var o=[];Te(t)||(r?o=t.toString().split(""):o=t.toString().split(zE));var i=o.map(s=>({word:s,width:Xo(s,n).width})),a=r?0:Xo(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function FK(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var VE=(e,t,r,n)=>e.reduce((o,i)=>{var{word:a,width:s}=i,l=o[o.length-1];if(l&&s!=null&&(t==null||n||l.width+s+r<Number(t)))l.words.push(a),l.width+=s+r;else{var c={words:[a],width:s};o.push(c)}return o},[]),WE=e=>e.reduce((t,r)=>t.width>r.width?t:r),zK="…",px=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=BE({breakAll:r,style:n,children:l+zK});if(!c)return[!1,[]];var u=VE(c.wordsWithComputedWidth,i,a,s),d=u.length>o||WE(u).width>Number(i);return[d,u]},BK=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=q(i),u=String(a),d=VE(t,n,r,o);if(!c||o)return d;var p=d.length>i||WE(d).width>Number(n);if(!p)return d;for(var v=0,g=u.length-1,m=0,h;v<=g&&m<=u.length-1;){var b=Math.floor((v+g)/2),x=b-1,[w,P]=px(u,x,l,s,i,n,r,o),[O]=px(u,b,l,s,i,n,r,o);if(!w&&!O&&(v=b+1),w&&O&&(g=b-1),!w&&O){h=P;break}m++}return h||d},vx=e=>{var t=Te(e)?[]:e.toString().split(zE);return[{words:t,width:void 0}]},VK=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!Il.isSsr){var s,l,c=BE({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;s=u,l=d}else return vx(n);return BK({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return vx(n)},KE="#808080",WK={angle:0,breakAll:!1,capHeight:"0.71em",fill:KE,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Ql=A.forwardRef((e,t)=>{var r=Le(e,WK),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,d=fx(r,DK),p=A.useMemo(()=>VK({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:l,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,l,d.style,d.width]),{dx:v,dy:g,angle:m,className:h,breakAll:b}=d,x=fx(d,$K);if(!ir(n)||!ir(o)||p.length===0)return null;var w=Number(n)+(q(v)?v:0),P=Number(o)+(q(g)?g:0);if(!ce(w)||!ce(P))return null;var O;switch(u){case"start":O=rd("calc(".concat(a,")"));break;case"middle":O=rd("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:O=rd("calc(".concat(p.length-1," * -").concat(i,")"));break}var S=[],E=p[0];if(l&&E!=null){var C=E.width,{width:N}=d;S.push("scale(".concat(q(N)&&q(C)?N/C:1,")"))}return m&&S.push("rotate(".concat(m,", ").concat(w,", ").concat(P,")")),S.length&&(x.transform=S.join(" ")),f.createElement("text",gf({},mt(x),{ref:t,x:w,y:P,className:de("recharts-text",h),textAnchor:c,fill:s.includes("url")?KE:s}),p.map((D,$)=>{var _=D.words.join(b?"":" ");return f.createElement("tspan",{x:w,dy:$===0?O:i,key:"".concat(_,"-").concat($)},_)}))});Ql.displayName="Text";function mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xt(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){KK(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 KK(e,t,r){return(t=UK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UK(e){var t=HK(e,"string");return typeof t=="symbol"?t:t+""}function HK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GK=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:o}=e,{x:i,y:a,height:s,upperWidth:l,lowerWidth:c}=Ep(t),u=i,d=i+(l-c)/2,p=(u+d)/2,v=(l+c)/2,g=u+l/2,m=s>=0?1:-1,h=m*n,b=m>0?"end":"start",x=m>0?"start":"end",w=l>=0?1:-1,P=w*n,O=w>0?"end":"start",S=w>0?"start":"end",E=o;if(r==="top"){var C={x:u+l/2,y:a-h,horizontalAnchor:"middle",verticalAnchor:b};return E&&(C.height=Math.max(a-E.y,0),C.width=l),C}if(r==="bottom"){var N={x:d+c/2,y:a+s+h,horizontalAnchor:"middle",verticalAnchor:x};return E&&(N.height=Math.max(E.y+E.height-(a+s),0),N.width=c),N}if(r==="left"){var D={x:p-P,y:a+s/2,horizontalAnchor:O,verticalAnchor:"middle"};return E&&(D.width=Math.max(D.x-E.x,0),D.height=s),D}if(r==="right"){var $={x:p+v+P,y:a+s/2,horizontalAnchor:S,verticalAnchor:"middle"};return E&&($.width=Math.max(E.x+E.width-$.x,0),$.height=s),$}var _=E?{width:v,height:s}:{};return r==="insideLeft"?Xt({x:p+P,y:a+s/2,horizontalAnchor:S,verticalAnchor:"middle"},_):r==="insideRight"?Xt({x:p+v-P,y:a+s/2,horizontalAnchor:O,verticalAnchor:"middle"},_):r==="insideTop"?Xt({x:u+l/2,y:a+h,horizontalAnchor:"middle",verticalAnchor:x},_):r==="insideBottom"?Xt({x:d+c/2,y:a+s-h,horizontalAnchor:"middle",verticalAnchor:b},_):r==="insideTopLeft"?Xt({x:u+P,y:a+h,horizontalAnchor:S,verticalAnchor:x},_):r==="insideTopRight"?Xt({x:u+l-P,y:a+h,horizontalAnchor:O,verticalAnchor:x},_):r==="insideBottomLeft"?Xt({x:d+P,y:a+s-h,horizontalAnchor:S,verticalAnchor:b},_):r==="insideBottomRight"?Xt({x:d+c-P,y:a+s-h,horizontalAnchor:O,verticalAnchor:b},_):r&&typeof r=="object"&&(q(r.x)||An(r.x))&&(q(r.y)||An(r.y))?Xt({x:i+it(r.x,v),y:a+it(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},_):Xt({x:g,y:a+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},_)},qK=["labelRef"],YK=["content"];function hx(e,t){if(e==null)return{};var r,n,o=XK(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function XK(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function gx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Go(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gx(Object(r),!0).forEach(function(n){ZK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZK(e,t,r){return(t=JK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JK(e){var t=QK(e,"string");return typeof t=="symbol"?t:t+""}function QK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pr.apply(null,arguments)}var UE=A.createContext(null),eU=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a,children:s}=e,l=A.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a}),[t,r,n,o,i,a]);return f.createElement(UE.Provider,{value:l},s)},HE=()=>{var e=A.useContext(UE),t=_l();return e||(t?Ep(t):void 0)},tU=A.createContext(null),rU=()=>{var e=A.useContext(tU),t=J(R1);return e||t},nU=e=>{var{value:t,formatter:r}=e,n=Te(e.children)?t:e.children;return typeof r=="function"?r(n):n},Wv=e=>e!=null&&typeof e=="function",oU=(e,t)=>{var r=Ge(t-e),n=Math.min(Math.abs(t-e),360);return r*n},iU=(e,t,r,n,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:d,endAngle:p,clockWise:v}=o,g=(c+u)/2,m=oU(d,p),h=m>=0?1:-1,b,x;switch(t){case"insideStart":b=d+h*i,x=v;break;case"insideEnd":b=p-h*i,x=!v;break;case"end":b=p+h*i,x=v;break;default:throw new Error("Unsupported position ".concat(t))}x=m<=0?x:!x;var w=Re(s,l,g,b),P=Re(s,l,g,b+(x?1:-1)*359),O="M".concat(w.x,",").concat(w.y,`
98
+ A`,",",",0,0,",",",",","Z"])),E.x,E.y,i,i,+(u<0),S.x,S.y,n,n,+(N>180),+(u>0),w.x,w.y,i,i,+(u<0),P.x,P.y)}else x+=Me(Wy||(Wy=vn(["L",",","Z"])),t,r);return x},i3={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},RO=e=>{var t=Le(e,i3),{cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:d}=t;if(i<o||c===u)return null;var p=de("recharts-sector",d),v=i-o,g=it(a,v,0,!0),m;return g>0&&Math.abs(c-u)<360?m=o3({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,v/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=kO({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),f.createElement("path",rf({},mt(t),{className:p,d:m}))};function a3(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(cS(t)){if(e==="centric"){var{cx:n,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=Re(n,o,i,s),c=Re(n,o,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return IO(t)}}var Wu={},Ku={},Uu={},Ky;function s3(){return Ky||(Ky=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wS();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(Uu)),Uu}var Uy;function l3(){return Uy||(Uy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=s3();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(Ku)),Ku}var Hy;function c3(){return Hy||(Hy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PS(),r=l3();function n(o,i,a){a&&typeof a!="number"&&t.isIterateeCall(o,i,a)&&(i=a=void 0),o=r.toFinite(o),i===void 0?(i=o,o=0):i=r.toFinite(i),a=a===void 0?o<i?1:-1:r.toFinite(a);const s=Math.max(Math.ceil((i-o)/(a||1)),0),l=new Array(s);for(let c=0;c<s;c++)l[c]=o,o+=a;return l}e.range=n})(Wu)),Wu}var Hu,Gy;function u3(){return Gy||(Gy=1,Hu=c3().range),Hu}var d3=u3();const DO=Jr(d3);function Wr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function f3(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Np(e){let t,r,n;e.length!==2?(t=Wr,r=(s,l)=>Wr(e(s),l),n=(s,l)=>e(s)-l):(t=e===Wr||e===f3?e:p3,r=e,n=e);function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=o(s,l,c,u-1);return d>c&&n(s[d-1],l)>-n(s[d],l)?d-1:d}return{left:o,center:a,right:i}}function p3(){return 0}function $O(e){return e===null?NaN:+e}function*v3(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const m3=Np(Wr),ki=m3.right;Np($O).center;class qy extends Map{constructor(t,r=y3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,o]of t)this.set(n,o)}get(t){return super.get(Yy(this,t))}has(t){return super.has(Yy(this,t))}set(t,r){return super.set(h3(this,t),r)}delete(t){return super.delete(g3(this,t))}}function Yy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function h3({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function g3({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function y3(e){return e!==null&&typeof e=="object"?e.valueOf():e}function b3(e=Wr){if(e===Wr)return LO;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 LO(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const x3=Math.sqrt(50),w3=Math.sqrt(10),P3=Math.sqrt(2);function Ps(e,t,r){const n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=x3?10:i>=w3?5:i>=P3?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?Ps(e,t,r*2):[s,l,c]}function nf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[o,i,a]=n?Ps(t,e,r):Ps(e,t,r);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(n)if(a<0)for(let c=0;c<s;++c)l[c]=(i-c)/-a;else for(let c=0;c<s;++c)l[c]=(i-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function of(e,t,r){return t=+t,e=+e,r=+r,Ps(e,t,r)[2]}function af(e,t,r){t=+t,e=+e,r=+r;const n=t<e,o=n?of(t,e,r):of(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}function Xy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Zy(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function FO(e,t,r=0,n=1/0,o){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(o=o===void 0?LO:b3(o);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),d=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),v=Math.max(r,Math.floor(t-c*d/l+p)),g=Math.min(n,Math.floor(t+(l-c)*d/l+p));FO(e,t,v,g,o)}const i=e[t];let a=r,s=n;for(Fo(e,r,t),o(e[n],i)>0&&Fo(e,r,n);a<s;){for(Fo(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[r],i)===0?Fo(e,r,s):(++s,Fo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Fo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function S3(e,t,r){if(e=Float64Array.from(v3(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Zy(e);if(t>=1)return Xy(e);var n,o=(n-1)*t,i=Math.floor(o),a=Xy(FO(e,i).subarray(0,i+1)),s=Zy(e.subarray(i+1));return a+(s-a)*(o-i)}}function O3(e,t,r=$O){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,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function E3(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(o);++n<o;)i[n]=e+n*r;return i}function $t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Nr(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 sf=Symbol("implicit");function Mp(){var e=new qy,t=[],r=[],n=sf;function o(i){let a=e.get(i);if(a===void 0){if(n!==sf)return n;e.set(i,a=t.push(i)-1)}return r[a%r.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new qy;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(r=Array.from(i),o):r.slice()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Mp(t,r).unknown(n)},$t.apply(o,arguments),o}function Ip(){var e=Mp().unknown(void 0),t=e.domain,r=e.range,n=0,o=1,i,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var p=t().length,v=o<n,g=v?o:n,m=v?n:o;i=(m-g)/Math.max(1,p-l+c*2),s&&(i=Math.floor(i)),g+=(m-g-i*(p-l))*u,a=i*(1-l),s&&(g=Math.round(g),a=Math.round(a));var h=E3(p).map(function(b){return g+i*b});return r(v?h.reverse():h)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([n,o]=p,n=+n,o=+o,d()):[n,o]},e.rangeRound=function(p){return[n,o]=p,n=+n,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(l=Math.min(1,c=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(c=+p,d()):c},e.align=function(p){return arguments.length?(u=Math.max(0,Math.min(1,p)),d()):u},e.copy=function(){return Ip(t(),[n,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},$t.apply(d(),arguments)}function zO(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return zO(t())},e}function C3(){return zO(Ip.apply(null,arguments).paddingInner(1))}function kp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function BO(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ri(){}var ii=.7,Ss=1/ii,ao="\\s*([+-]?\\d+)\\s*",ai="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",A3=/^#([0-9a-f]{3,8})$/,_3=new RegExp(`^rgb\\(${ao},${ao},${ao}\\)$`),T3=new RegExp(`^rgb\\(${rr},${rr},${rr}\\)$`),j3=new RegExp(`^rgba\\(${ao},${ao},${ao},${ai}\\)$`),N3=new RegExp(`^rgba\\(${rr},${rr},${rr},${ai}\\)$`),M3=new RegExp(`^hsl\\(${ai},${rr},${rr}\\)$`),I3=new RegExp(`^hsla\\(${ai},${rr},${rr},${ai}\\)$`),Jy={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};kp(Ri,si,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qy,formatHex:Qy,formatHex8:k3,formatHsl:R3,formatRgb:eb,toString:eb});function Qy(){return this.rgb().formatHex()}function k3(){return this.rgb().formatHex8()}function R3(){return VO(this).formatHsl()}function eb(){return this.rgb().formatRgb()}function si(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=A3.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?tb(t):r===3?new bt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ea(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ea(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=_3.exec(e))?new bt(t[1],t[2],t[3],1):(t=T3.exec(e))?new bt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=j3.exec(e))?Ea(t[1],t[2],t[3],t[4]):(t=N3.exec(e))?Ea(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=M3.exec(e))?ob(t[1],t[2]/100,t[3]/100,1):(t=I3.exec(e))?ob(t[1],t[2]/100,t[3]/100,t[4]):Jy.hasOwnProperty(e)?tb(Jy[e]):e==="transparent"?new bt(NaN,NaN,NaN,0):null}function tb(e){return new bt(e>>16&255,e>>8&255,e&255,1)}function Ea(e,t,r,n){return n<=0&&(e=t=r=NaN),new bt(e,t,r,n)}function D3(e){return e instanceof Ri||(e=si(e)),e?(e=e.rgb(),new bt(e.r,e.g,e.b,e.opacity)):new bt}function lf(e,t,r,n){return arguments.length===1?D3(e):new bt(e,t,r,n??1)}function bt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}kp(bt,lf,BO(Ri,{brighter(e){return e=e==null?Ss:Math.pow(Ss,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ii:Math.pow(ii,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(wn(this.r),wn(this.g),wn(this.b),Os(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:rb,formatHex:rb,formatHex8:$3,formatRgb:nb,toString:nb}));function rb(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}`}function $3(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}${mn((isNaN(this.opacity)?1:this.opacity)*255)}`}function nb(){const e=Os(this.opacity);return`${e===1?"rgb(":"rgba("}${wn(this.r)}, ${wn(this.g)}, ${wn(this.b)}${e===1?")":`, ${e})`}`}function Os(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mn(e){return e=wn(e),(e<16?"0":"")+e.toString(16)}function ob(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new zt(e,t,r,n)}function VO(e){if(e instanceof zt)return new zt(e.h,e.s,e.l,e.opacity);if(e instanceof Ri||(e=si(e)),!e)return new zt;if(e instanceof zt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(r-n)/s+(r<n)*6:r===i?a=(n-t)/s+2:a=(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new zt(a,s,l,e.opacity)}function L3(e,t,r,n){return arguments.length===1?VO(e):new zt(e,t,r,n??1)}function zt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}kp(zt,L3,BO(Ri,{brighter(e){return e=e==null?Ss:Math.pow(Ss,e),new zt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ii:Math.pow(ii,e),new zt(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,o=2*r-n;return new bt(Gu(e>=240?e-240:e+120,o,n),Gu(e,o,n),Gu(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new zt(ib(this.h),Ca(this.s),Ca(this.l),Os(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=Os(this.opacity);return`${e===1?"hsl(":"hsla("}${ib(this.h)}, ${Ca(this.s)*100}%, ${Ca(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ib(e){return e=(e||0)%360,e<0?e+360:e}function Ca(e){return Math.max(0,Math.min(1,e||0))}function Gu(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 Rp=e=>()=>e;function F3(e,t){return function(r){return e+r*t}}function z3(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 B3(e){return(e=+e)==1?WO:function(t,r){return r-t?z3(t,r,e):Rp(isNaN(t)?r:t)}}function WO(e,t){var r=t-e;return r?F3(e,r):Rp(isNaN(e)?t:e)}const ab=(function e(t){var r=B3(t);function n(o,i){var a=r((o=lf(o)).r,(i=lf(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=WO(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return n.gamma=e,n})(1);function V3(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),o;return function(i){for(o=0;o<r;++o)n[o]=e[o]*(1-i)+t[o]*i;return n}}function W3(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function K3(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,o=new Array(n),i=new Array(r),a;for(a=0;a<n;++a)o[a]=Po(e[a],t[a]);for(;a<r;++a)i[a]=t[a];return function(s){for(a=0;a<n;++a)i[a]=o[a](s);return i}}function U3(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Es(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function H3(e,t){var r={},n={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?r[o]=Po(e[o],t[o]):n[o]=t[o];return function(i){for(o in r)n[o]=r[o](i);return n}}var cf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qu=new RegExp(cf.source,"g");function G3(e){return function(){return e}}function q3(e){return function(t){return e(t)+""}}function Y3(e,t){var r=cf.lastIndex=qu.lastIndex=0,n,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=cf.exec(e))&&(o=qu.exec(t));)(i=o.index)>r&&(i=t.slice(r,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Es(n,o)})),r=qu.lastIndex;return r<t.length&&(i=t.slice(r),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?q3(l[0].x):G3(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Po(e,t){var r=typeof t,n;return t==null||r==="boolean"?Rp(t):(r==="number"?Es:r==="string"?(n=si(t))?(t=n,ab):Y3:t instanceof si?ab:t instanceof Date?U3:W3(t)?V3:Array.isArray(t)?K3:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?H3:Es)(e,t)}function Dp(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function X3(e,t){t===void 0&&(t=e,e=Po);for(var r=0,n=t.length-1,o=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(o,o=t[++r]);return function(a){var s=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return i[s](a-s)}}function Z3(e){return function(){return e}}function Cs(e){return+e}var sb=[0,1];function pt(e){return e}function uf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Z3(isNaN(t)?NaN:.5)}function J3(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Q3(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=uf(o,n),i=r(a,i)):(n=uf(n,o),i=r(i,a)),function(s){return i(n(s))}}function eV(e,t,r){var n=Math.min(e.length,t.length)-1,o=new Array(n),i=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)o[a]=uf(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(s){var l=ki(e,s,1,n)-1;return i[l](o[l](s))}}function Di(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function kl(){var e=sb,t=sb,r=Po,n,o,i,a=pt,s,l,c;function u(){var p=Math.min(e.length,t.length);return a!==pt&&(a=J3(e[0],e[p-1])),s=p>2?eV:Q3,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(n),t,r)))(n(a(p)))}return d.invert=function(p){return a(o((c||(c=s(t,e.map(n),Es)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Cs),u()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),u()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),r=Dp,u()},d.clamp=function(p){return arguments.length?(a=p?!0:pt,u()):a!==pt},d.interpolate=function(p){return arguments.length?(r=p,u()):r},d.unknown=function(p){return arguments.length?(i=p,d):i},function(p,v){return n=p,o=v,u()}}function $p(){return kl()(pt,pt)}function tV(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function As(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function po(e){return e=As(Math.abs(e)),e?e[1]:NaN}function rV(e,t){return function(r,n){for(var o=r.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(o-=s,o+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function nV(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var oV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function li(e){if(!(t=oV.exec(e)))throw new Error("invalid format: "+e);var t;return new Lp({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]})}li.prototype=Lp.prototype;function Lp(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+""}Lp.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 iV(e){e:for(var t=e.length,r=1,n=-1,o;r<t;++r)switch(e[r]){case".":n=o=r;break;case"0":n===0&&(n=r),o=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var _s;function aV(e,t){var r=As(e,t);if(!r)return _s=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(_s=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+As(e,Math.max(0,t+i-1))[0]}function lb(e,t){var r=As(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}const cb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:tV,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)=>lb(e*100,t),r:lb,s:aV,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ub(e){return e}var db=Array.prototype.map,fb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function sV(e){var t=e.grouping===void 0||e.thousands===void 0?ub:rV(db.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?ub:nV(db.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d,p){d=li(d);var v=d.fill,g=d.align,m=d.sign,h=d.symbol,b=d.zero,x=d.width,w=d.comma,P=d.precision,O=d.trim,S=d.type;S==="n"?(w=!0,S="g"):cb[S]||(P===void 0&&(P=12),O=!0,S="g"),(b||v==="0"&&g==="=")&&(b=!0,v="0",g="=");var E=(p&&p.prefix!==void 0?p.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),C=(h==="$"?n:/[%p]/.test(S)?a:"")+(p&&p.suffix!==void 0?p.suffix:""),N=cb[S],D=/[defgprs%]/.test(S);P=P===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P));function $(_){var M=E,k=C,V,B,K;if(S==="c")k=N(_)+k,_="";else{_=+_;var T=_<0||1/_<0;if(_=isNaN(_)?l:N(Math.abs(_),P),O&&(_=iV(_)),T&&+_==0&&m!=="+"&&(T=!1),M=(T?m==="("?m:s:m==="-"||m==="("?"":m)+M,k=(S==="s"&&!isNaN(_)&&_s!==void 0?fb[8+_s/3]:"")+k+(T&&m==="("?")":""),D){for(V=-1,B=_.length;++V<B;)if(K=_.charCodeAt(V),48>K||K>57){k=(K===46?o+_.slice(V+1):_.slice(V))+k,_=_.slice(0,V);break}}}w&&!b&&(_=t(_,1/0));var I=M.length+_.length+k.length,G=I<x?new Array(x-I+1).join(v):"";switch(w&&b&&(_=t(G+_,G.length?x-k.length:1/0),G=""),g){case"<":_=M+_+k+G;break;case"=":_=M+G+_+k;break;case"^":_=G.slice(0,I=G.length>>1)+M+_+k+G.slice(I);break;default:_=G+M+_+k;break}return i(_)}return $.toString=function(){return d+""},$}function u(d,p){var v=Math.max(-8,Math.min(8,Math.floor(po(p)/3)))*3,g=Math.pow(10,-v),m=c((d=li(d),d.type="f",d),{suffix:fb[8+v/3]});return function(h){return m(g*h)}}return{format:c,formatPrefix:u}}var Aa,Fp,KO;lV({thousands:",",grouping:[3],currency:["$",""]});function lV(e){return Aa=sV(e),Fp=Aa.format,KO=Aa.formatPrefix,Aa}function cV(e){return Math.max(0,-po(Math.abs(e)))}function uV(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(po(t)/3)))*3-po(Math.abs(e)))}function dV(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,po(t)-po(e))+1}function UO(e,t,r,n){var o=af(e,t,r),i;switch(n=li(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=uV(o,a))&&(n.precision=i),KO(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=dV(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=cV(o))&&(n.precision=i-(n.type==="%")*2);break}}return Fp(n)}function Qr(e){var t=e.domain;return e.ticks=function(r){var n=t();return nf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return UO(o[0],o[o.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,i=n.length-1,a=n[o],s=n[i],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=o,o=i,i=c);u-- >0;){if(c=of(a,s,r),c===l)return n[o]=a,n[i]=s,t(n);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function HO(){var e=$p();return e.copy=function(){return Di(e,HO())},$t.apply(e,arguments),Qr(e)}function GO(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,Cs),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return GO(e).unknown(t)},e=arguments.length?Array.from(e,Cs):[0,1],Qr(r)}function qO(e,t){e=e.slice();var r=0,n=e.length-1,o=e[r],i=e[n],a;return i<o&&(a=r,r=n,n=a,a=o,o=i,i=a),e[r]=t.floor(o),e[n]=t.ceil(i),e}function pb(e){return Math.log(e)}function vb(e){return Math.exp(e)}function fV(e){return-Math.log(-e)}function pV(e){return-Math.exp(-e)}function vV(e){return isFinite(e)?+("1e"+e):e<0?0:e}function mV(e){return e===10?vV:e===Math.E?Math.exp:t=>Math.pow(e,t)}function hV(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 mb(e){return(t,r)=>-e(-t,r)}function zp(e){const t=e(pb,vb),r=t.domain;let n=10,o,i;function a(){return o=hV(n),i=mV(n),r()[0]<0?(o=mb(o),i=mb(i),e(fV,pV)):e(pb,vb),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let p=o(c),v=o(u),g,m;const h=s==null?10:+s;let b=[];if(!(n%1)&&v-p<h){if(p=Math.floor(p),v=Math.ceil(v),c>0){for(;p<=v;++p)for(g=1;g<n;++g)if(m=p<0?g/i(-p):g*i(p),!(m<c)){if(m>u)break;b.push(m)}}else for(;p<=v;++p)for(g=n-1;g>=1;--g)if(m=p>0?g/i(-p):g*i(p),!(m<c)){if(m>u)break;b.push(m)}b.length*2<h&&(b=nf(c,u,h))}else b=nf(p,v,Math.min(v-p,h)).map(i);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=li(l)).precision==null&&(l.trim=!0),l=Fp(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let d=u/i(Math.round(o(u)));return d*n<n-.5&&(d*=n),d<=c?l(u):""}},t.nice=()=>r(qO(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function YO(){const e=zp(kl()).domain([1,10]);return e.copy=()=>Di(e,YO()).base(e.base()),$t.apply(e,arguments),e}function hb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function gb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Bp(e){var t=1,r=e(hb(t),gb(t));return r.constant=function(n){return arguments.length?e(hb(t=+n),gb(t)):t},Qr(r)}function XO(){var e=Bp(kl());return e.copy=function(){return Di(e,XO()).constant(e.constant())},$t.apply(e,arguments)}function yb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function gV(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function yV(e){return e<0?-e*e:e*e}function Vp(e){var t=e(pt,pt),r=1;function n(){return r===1?e(pt,pt):r===.5?e(gV,yV):e(yb(r),yb(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},Qr(t)}function Wp(){var e=Vp(kl());return e.copy=function(){return Di(e,Wp()).exponent(e.exponent())},$t.apply(e,arguments),e}function bV(){return Wp.apply(null,arguments).exponent(.5)}function bb(e){return Math.sign(e)*e*e}function xV(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ZO(){var e=$p(),t=[0,1],r=!1,n;function o(i){var a=xV(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(bb(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,Cs)).map(bb)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(r=!!i,o):r},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return ZO(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},$t.apply(o,arguments),Qr(o)}function JO(){var e=[],t=[],r=[],n;function o(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a<s;)r[a-1]=O3(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?n:t[ki(r,a)]}return i.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Wr),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return JO().domain(e).range(t).unknown(n)},$t.apply(i,arguments)}function QO(){var e=0,t=1,r=1,n=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[ki(n,l,0,r)]:i}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(r=(o=Array.from(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return QO().domain([e,t]).range(o).unknown(i)},$t.apply(Qr(a),arguments)}function e1(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[ki(e,i,0,n)]:r}return o.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return e1().domain(e).range(t).unknown(r)},$t.apply(o,arguments)}const Yu=new Date,Xu=new Date;function Ve(e,t,r,n){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<a);return l},o.filter=i=>Ve(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),r&&(o.count=(i,a)=>(Yu.setTime(+i),Xu.setTime(+a),e(Yu),e(Xu),Math.floor(r(Yu,Xu))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(n?a=>n(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const Ts=Ve(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ts.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ve(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ts);Ts.range;const vr=1e3,It=vr*60,mr=It*60,br=mr*24,Kp=br*7,xb=br*30,Zu=br*365,hn=Ve(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getUTCSeconds());hn.range;const Up=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getMinutes());Up.range;const Hp=Ve(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getUTCMinutes());Hp.range;const Gp=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr-e.getMinutes()*It)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getHours());Gp.range;const qp=Ve(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getUTCHours());qp.range;const $i=Ve(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*It)/br,e=>e.getDate()-1);$i.range;const Rl=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>e.getUTCDate()-1);Rl.range;const t1=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>Math.floor(e/br));t1.range;function Bn(e){return Ve(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())*It)/Kp)}const Dl=Bn(0),js=Bn(1),wV=Bn(2),PV=Bn(3),vo=Bn(4),SV=Bn(5),OV=Bn(6);Dl.range;js.range;wV.range;PV.range;vo.range;SV.range;OV.range;function Vn(e){return Ve(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)/Kp)}const $l=Vn(0),Ns=Vn(1),EV=Vn(2),CV=Vn(3),mo=Vn(4),AV=Vn(5),_V=Vn(6);$l.range;Ns.range;EV.range;CV.range;mo.range;AV.range;_V.range;const Yp=Ve(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());Yp.range;const Xp=Ve(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());Xp.range;const xr=Ve(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());xr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(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)});xr.range;const wr=Ve(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());wr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(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)});wr.range;function r1(e,t,r,n,o,i){const a=[[hn,1,vr],[hn,5,5*vr],[hn,15,15*vr],[hn,30,30*vr],[i,1,It],[i,5,5*It],[i,15,15*It],[i,30,30*It],[o,1,mr],[o,3,3*mr],[o,6,6*mr],[o,12,12*mr],[n,1,br],[n,2,2*br],[r,1,Kp],[t,1,xb],[t,3,3*xb],[e,1,Zu]];function s(c,u,d){const p=u<c;p&&([c,u]=[u,c]);const v=d&&typeof d.range=="function"?d:l(c,u,d),g=v?v.range(c,+u+1):[];return p?g.reverse():g}function l(c,u,d){const p=Math.abs(u-c)/d,v=Np(([,,h])=>h).right(a,p);if(v===a.length)return e.every(af(c/Zu,u/Zu,d));if(v===0)return Ts.every(Math.max(af(c,u,d),1));const[g,m]=a[p/a[v-1][2]<a[v][2]/p?v-1:v];return g.every(m)}return[s,l]}const[TV,jV]=r1(wr,Xp,$l,t1,qp,Hp),[NV,MV]=r1(xr,Yp,Dl,$i,Gp,Up);function Ju(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 Qu(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 zo(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function IV(e){var t=e.dateTime,r=e.date,n=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Bo(o),u=Vo(o),d=Bo(i),p=Vo(i),v=Bo(a),g=Vo(a),m=Bo(s),h=Vo(s),b=Bo(l),x=Vo(l),w={a:K,A:T,b:I,B:G,c:null,d:Cb,e:Cb,f:r5,g:f5,G:v5,H:QV,I:e5,j:t5,L:n1,m:n5,M:o5,p:ee,q:re,Q:Tb,s:jb,S:i5,u:a5,U:s5,V:l5,w:c5,W:u5,x:null,X:null,y:d5,Y:p5,Z:m5,"%":_b},P={a:oe,A:ne,b:le,B:Ee,c:null,d:Ab,e:Ab,f:b5,g:T5,G:N5,H:h5,I:g5,j:y5,L:i1,m:x5,M:w5,p:W,q:ue,Q:Tb,s:jb,S:P5,u:S5,U:O5,V:E5,w:C5,W:A5,x:null,X:null,y:_5,Y:j5,Z:M5,"%":_b},O={a:D,A:$,b:_,B:M,c:k,d:Ob,e:Ob,f:YV,g:Sb,G:Pb,H:Eb,I:Eb,j:UV,L:qV,m:KV,M:HV,p:N,q:WV,Q:ZV,s:JV,S:GV,u:LV,U:FV,V:zV,w:$V,W:BV,x:V,X:B,y:Sb,Y:Pb,Z:VV,"%":XV};w.x=S(r,w),w.X=S(n,w),w.c=S(t,w),P.x=S(r,P),P.X=S(n,P),P.c=S(t,P);function S(L,H){return function(z){var F=[],fe=-1,se=0,Qe=L.length,et,Lt,Wm;for(z instanceof Date||(z=new Date(+z));++fe<Qe;)L.charCodeAt(fe)===37&&(F.push(L.slice(se,fe)),(Lt=wb[et=L.charAt(++fe)])!=null?et=L.charAt(++fe):Lt=et==="e"?" ":"0",(Wm=H[et])&&(et=Wm(z,Lt)),F.push(et),se=fe+1);return F.push(L.slice(se,fe)),F.join("")}}function E(L,H){return function(z){var F=zo(1900,void 0,1),fe=C(F,L,z+="",0),se,Qe;if(fe!=z.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(H&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(se=Qu(zo(F.y,0,1)),Qe=se.getUTCDay(),se=Qe>4||Qe===0?Ns.ceil(se):Ns(se),se=Rl.offset(se,(F.V-1)*7),F.y=se.getUTCFullYear(),F.m=se.getUTCMonth(),F.d=se.getUTCDate()+(F.w+6)%7):(se=Ju(zo(F.y,0,1)),Qe=se.getDay(),se=Qe>4||Qe===0?js.ceil(se):js(se),se=$i.offset(se,(F.V-1)*7),F.y=se.getFullYear(),F.m=se.getMonth(),F.d=se.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Qe="Z"in F?Qu(zo(F.y,0,1)).getUTCDay():Ju(zo(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Qe+5)%7:F.w+F.U*7-(Qe+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,Qu(F)):Ju(F)}}function C(L,H,z,F){for(var fe=0,se=H.length,Qe=z.length,et,Lt;fe<se;){if(F>=Qe)return-1;if(et=H.charCodeAt(fe++),et===37){if(et=H.charAt(fe++),Lt=O[et in wb?H.charAt(fe++):et],!Lt||(F=Lt(L,z,F))<0)return-1}else if(et!=z.charCodeAt(F++))return-1}return F}function N(L,H,z){var F=c.exec(H.slice(z));return F?(L.p=u.get(F[0].toLowerCase()),z+F[0].length):-1}function D(L,H,z){var F=v.exec(H.slice(z));return F?(L.w=g.get(F[0].toLowerCase()),z+F[0].length):-1}function $(L,H,z){var F=d.exec(H.slice(z));return F?(L.w=p.get(F[0].toLowerCase()),z+F[0].length):-1}function _(L,H,z){var F=b.exec(H.slice(z));return F?(L.m=x.get(F[0].toLowerCase()),z+F[0].length):-1}function M(L,H,z){var F=m.exec(H.slice(z));return F?(L.m=h.get(F[0].toLowerCase()),z+F[0].length):-1}function k(L,H,z){return C(L,t,H,z)}function V(L,H,z){return C(L,r,H,z)}function B(L,H,z){return C(L,n,H,z)}function K(L){return a[L.getDay()]}function T(L){return i[L.getDay()]}function I(L){return l[L.getMonth()]}function G(L){return s[L.getMonth()]}function ee(L){return o[+(L.getHours()>=12)]}function re(L){return 1+~~(L.getMonth()/3)}function oe(L){return a[L.getUTCDay()]}function ne(L){return i[L.getUTCDay()]}function le(L){return l[L.getUTCMonth()]}function Ee(L){return s[L.getUTCMonth()]}function W(L){return o[+(L.getUTCHours()>=12)]}function ue(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var H=S(L+="",w);return H.toString=function(){return L},H},parse:function(L){var H=E(L+="",!1);return H.toString=function(){return L},H},utcFormat:function(L){var H=S(L+="",P);return H.toString=function(){return L},H},utcParse:function(L){var H=E(L+="",!0);return H.toString=function(){return L},H}}}var wb={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,kV=/^%/,RV=/[\\^$*+?|[\]().{}]/g;function pe(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(t)+o:o)}function DV(e){return e.replace(RV,"\\$&")}function Bo(e){return new RegExp("^(?:"+e.map(DV).join("|")+")","i")}function Vo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function $V(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function LV(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function FV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function zV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function BV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Pb(e,t,r){var n=Ze.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Sb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function VV(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 WV(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function KV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Ob(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function UV(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function HV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function GV(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function qV(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function YV(e,t,r){var n=Ze.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function XV(e,t,r){var n=kV.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function ZV(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function JV(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Cb(e,t){return pe(e.getDate(),t,2)}function QV(e,t){return pe(e.getHours(),t,2)}function e5(e,t){return pe(e.getHours()%12||12,t,2)}function t5(e,t){return pe(1+$i.count(xr(e),e),t,3)}function n1(e,t){return pe(e.getMilliseconds(),t,3)}function r5(e,t){return n1(e,t)+"000"}function n5(e,t){return pe(e.getMonth()+1,t,2)}function o5(e,t){return pe(e.getMinutes(),t,2)}function i5(e,t){return pe(e.getSeconds(),t,2)}function a5(e){var t=e.getDay();return t===0?7:t}function s5(e,t){return pe(Dl.count(xr(e)-1,e),t,2)}function o1(e){var t=e.getDay();return t>=4||t===0?vo(e):vo.ceil(e)}function l5(e,t){return e=o1(e),pe(vo.count(xr(e),e)+(xr(e).getDay()===4),t,2)}function c5(e){return e.getDay()}function u5(e,t){return pe(js.count(xr(e)-1,e),t,2)}function d5(e,t){return pe(e.getFullYear()%100,t,2)}function f5(e,t){return e=o1(e),pe(e.getFullYear()%100,t,2)}function p5(e,t){return pe(e.getFullYear()%1e4,t,4)}function v5(e,t){var r=e.getDay();return e=r>=4||r===0?vo(e):vo.ceil(e),pe(e.getFullYear()%1e4,t,4)}function m5(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pe(t/60|0,"0",2)+pe(t%60,"0",2)}function Ab(e,t){return pe(e.getUTCDate(),t,2)}function h5(e,t){return pe(e.getUTCHours(),t,2)}function g5(e,t){return pe(e.getUTCHours()%12||12,t,2)}function y5(e,t){return pe(1+Rl.count(wr(e),e),t,3)}function i1(e,t){return pe(e.getUTCMilliseconds(),t,3)}function b5(e,t){return i1(e,t)+"000"}function x5(e,t){return pe(e.getUTCMonth()+1,t,2)}function w5(e,t){return pe(e.getUTCMinutes(),t,2)}function P5(e,t){return pe(e.getUTCSeconds(),t,2)}function S5(e){var t=e.getUTCDay();return t===0?7:t}function O5(e,t){return pe($l.count(wr(e)-1,e),t,2)}function a1(e){var t=e.getUTCDay();return t>=4||t===0?mo(e):mo.ceil(e)}function E5(e,t){return e=a1(e),pe(mo.count(wr(e),e)+(wr(e).getUTCDay()===4),t,2)}function C5(e){return e.getUTCDay()}function A5(e,t){return pe(Ns.count(wr(e)-1,e),t,2)}function _5(e,t){return pe(e.getUTCFullYear()%100,t,2)}function T5(e,t){return e=a1(e),pe(e.getUTCFullYear()%100,t,2)}function j5(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function N5(e,t){var r=e.getUTCDay();return e=r>=4||r===0?mo(e):mo.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function M5(){return"+0000"}function _b(){return"%"}function Tb(e){return+e}function jb(e){return Math.floor(+e/1e3)}var Zn,s1,l1;I5({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 I5(e){return Zn=IV(e),s1=Zn.format,Zn.parse,l1=Zn.utcFormat,Zn.utcParse,Zn}function k5(e){return new Date(e)}function R5(e){return e instanceof Date?+e:+new Date(+e)}function Zp(e,t,r,n,o,i,a,s,l,c){var u=$p(),d=u.invert,p=u.domain,v=c(".%L"),g=c(":%S"),m=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),x=c("%b %d"),w=c("%B"),P=c("%Y");function O(S){return(l(S)<S?v:s(S)<S?g:a(S)<S?m:i(S)<S?h:n(S)<S?o(S)<S?b:x:r(S)<S?w:P)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?p(Array.from(S,R5)):p().map(k5)},u.ticks=function(S){var E=p();return e(E[0],E[E.length-1],S??10)},u.tickFormat=function(S,E){return E==null?O:c(E)},u.nice=function(S){var E=p();return(!S||typeof S.range!="function")&&(S=t(E[0],E[E.length-1],S??10)),S?p(qO(E,S)):u},u.copy=function(){return Di(u,Zp(e,t,r,n,o,i,a,s,l,c))},u}function D5(){return $t.apply(Zp(NV,MV,xr,Yp,Dl,$i,Gp,Up,hn,s1).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function $5(){return $t.apply(Zp(TV,jV,wr,Xp,$l,Rl,qp,Hp,hn,l1).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ll(){var e=0,t=1,r,n,o,i,a=pt,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(o===0?.5:(d=(i(d)-r)*o,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),o=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(p){var v,g;return arguments.length?([v,g]=p,a=d(v,g),c):[a(0),a(1)]}}return c.range=u(Po),c.rangeRound=u(Dp),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return i=d,r=d(e),n=d(t),o=r===n?0:1/(n-r),c}}function en(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function c1(){var e=Qr(Ll()(pt));return e.copy=function(){return en(e,c1())},Nr.apply(e,arguments)}function u1(){var e=zp(Ll()).domain([1,10]);return e.copy=function(){return en(e,u1()).base(e.base())},Nr.apply(e,arguments)}function d1(){var e=Bp(Ll());return e.copy=function(){return en(e,d1()).constant(e.constant())},Nr.apply(e,arguments)}function Jp(){var e=Vp(Ll());return e.copy=function(){return en(e,Jp()).exponent(e.exponent())},Nr.apply(e,arguments)}function L5(){return Jp.apply(null,arguments).exponent(.5)}function f1(){var e=[],t=pt;function r(n){if(n!=null&&!isNaN(n=+n))return t((ki(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let o of n)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Wr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,o)=>t(o/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(o,i)=>S3(e,i/n))},r.copy=function(){return f1(t).domain(e)},Nr.apply(r,arguments)}function Fl(){var e=0,t=.5,r=1,n=1,o,i,a,s,l,c=pt,u,d=!1,p;function v(m){return isNaN(m=+m)?p:(m=.5+((m=+u(m))-i)*(n*m<n*i?s:l),c(d?Math.max(0,Math.min(1,m)):m))}v.domain=function(m){return arguments.length?([e,t,r]=m,o=u(e=+e),i=u(t=+t),a=u(r=+r),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),n=i<o?-1:1,v):[e,t,r]},v.clamp=function(m){return arguments.length?(d=!!m,v):d},v.interpolator=function(m){return arguments.length?(c=m,v):c};function g(m){return function(h){var b,x,w;return arguments.length?([b,x,w]=h,c=X3(m,[b,x,w]),v):[c(0),c(.5),c(1)]}}return v.range=g(Po),v.rangeRound=g(Dp),v.unknown=function(m){return arguments.length?(p=m,v):p},function(m){return u=m,o=m(e),i=m(t),a=m(r),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),n=i<o?-1:1,v}}function p1(){var e=Qr(Fl()(pt));return e.copy=function(){return en(e,p1())},Nr.apply(e,arguments)}function v1(){var e=zp(Fl()).domain([.1,1,10]);return e.copy=function(){return en(e,v1()).base(e.base())},Nr.apply(e,arguments)}function m1(){var e=Bp(Fl());return e.copy=function(){return en(e,m1()).constant(e.constant())},Nr.apply(e,arguments)}function Qp(){var e=Vp(Fl());return e.copy=function(){return en(e,Qp()).exponent(e.exponent())},Nr.apply(e,arguments)}function F5(){return Qp.apply(null,arguments).exponent(.5)}const Ho=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ip,scaleDiverging:p1,scaleDivergingLog:v1,scaleDivergingPow:Qp,scaleDivergingSqrt:F5,scaleDivergingSymlog:m1,scaleIdentity:GO,scaleImplicit:sf,scaleLinear:HO,scaleLog:YO,scaleOrdinal:Mp,scalePoint:C3,scalePow:Wp,scaleQuantile:JO,scaleQuantize:QO,scaleRadial:ZO,scaleSequential:c1,scaleSequentialLog:u1,scaleSequentialPow:Jp,scaleSequentialQuantile:f1,scaleSequentialSqrt:L5,scaleSequentialSymlog:d1,scaleSqrt:bV,scaleSymlog:XO,scaleThreshold:e1,scaleTime:D5,scaleUtc:$5,tickFormat:UO},Symbol.toStringTag,{value:"Module"}));var Mr=e=>e.chartData,zl=j([Mr],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ev=(e,t,r,n)=>n?zl(e):Mr(e),z5=(e,t,r)=>r?zl(e):Mr(e);function Pr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ce(t)&&ce(r))return!0}return!1}function Nb(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function h1(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,o,i;if(ce(r))o=r;else if(typeof r=="function")return;if(ce(n))i=n;else if(typeof n=="function")return;var a=[o,i];if(Pr(a))return a}}function B5(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Pr(n))return Nb(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(q(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&Bg.test(o)){var l=Bg.exec(o);if(l==null||l[1]==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(q(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[1]))}catch{}else if(typeof i=="string"&&Vg.test(i)){var u=Vg.exec(i);if(u==null||u[1]==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t?.[1];var p=[a,s];if(Pr(p))return t==null?p:Nb(p,t,r)}}}var So=1e9,V5={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},rv,_e=!0,Dt="[DecimalError] ",Pn=Dt+"Invalid argument: ",tv=Dt+"Exponent out of range: ",Oo=Math.floor,fn=Math.pow,W5=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ot,He=1e7,Se=7,g1=9007199254740991,Ms=Oo(g1/Se),Y={};Y.absoluteValue=Y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Y.comparedTo=Y.cmp=function(e){var t,r,n,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,o=e.d.length,t=0,r=n<o?n:o;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1};Y.decimalPlaces=Y.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Y.dividedBy=Y.div=function(e){return hr(this,new this.constructor(e))};Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,r=t.constructor;return xe(hr(t,new r(e),0,1),r.precision)};Y.equals=Y.eq=function(e){return!this.cmp(e)};Y.exponent=function(){return $e(this)};Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0};Y.greaterThanOrEqualTo=Y.gte=function(e){return this.cmp(e)>=0};Y.isInteger=Y.isint=function(){return this.e>this.d.length-2};Y.isNegative=Y.isneg=function(){return this.s<0};Y.isPositive=Y.ispos=function(){return this.s>0};Y.isZero=function(){return this.s===0};Y.lessThan=Y.lt=function(e){return this.cmp(e)<0};Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1};Y.logarithm=Y.log=function(e){var t,r=this,n=r.constructor,o=n.precision,i=o+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ot))throw Error(Dt+"NaN");if(r.s<1)throw Error(Dt+(r.s?"NaN":"-Infinity"));return r.eq(Ot)?new n(0):(_e=!1,t=hr(ci(r,i),ci(e,i),i),_e=!0,xe(t,o))};Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?x1(t,e):y1(t,(e.s=-e.s,e))};Y.modulo=Y.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(e=new n(e),!e.s)throw Error(Dt+"NaN");return r.s?(_e=!1,t=hr(r,e,0,1).times(e),_e=!0,r.minus(t)):xe(new n(r),o)};Y.naturalExponential=Y.exp=function(){return b1(this)};Y.naturalLogarithm=Y.ln=function(){return ci(this)};Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Y.plus=Y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?y1(t,e):x1(t,(e.s=-e.s,e))};Y.precision=Y.sd=function(e){var t,r,n,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Pn+e);if(t=$e(o)+1,n=o.d.length-1,r=n*Se+1,n=o.d[n],n){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Y.squareRoot=Y.sqrt=function(){var e,t,r,n,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Dt+"NaN")}for(e=$e(s),_e=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=er(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Oo((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(o.toString()),r=l.precision,o=a=r+3;;)if(i=n,n=i.plus(hr(s,i,a+2)).times(.5),er(i.d).slice(0,a)===(t=er(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(xe(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;a+=4}return _e=!0,xe(n,r)};Y.times=Y.mul=function(e){var t,r,n,o,i,a,s,l,c,u=this,d=u.constructor,p=u.d,v=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,r=u.e+e.e,l=p.length,c=v.length,l<c&&(i=p,p=v,v=i,a=l,l=c,c=a),i=[],a=l+c,n=a;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,o=l+n;o>n;)s=i[o]+v[n]*p[o-n-1]+t,i[o--]=s%He|0,t=s/He|0;i[o]=(i[o]+t)%He|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,_e?xe(e,d.precision):e};Y.toDecimalPlaces=Y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(sr(e,0,So),t===void 0?t=n.rounding:sr(t,0,8),xe(r,e+$e(r)+1,t))};Y.toExponential=function(e,t){var r,n=this,o=n.constructor;return e===void 0?r=Nn(n,!0):(sr(e,0,So),t===void 0?t=o.rounding:sr(t,0,8),n=xe(new o(n),e+1,t),r=Nn(n,!0,e+1)),r};Y.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?Nn(o):(sr(e,0,So),t===void 0?t=i.rounding:sr(t,0,8),n=xe(new i(o),e+$e(o)+1,t),r=Nn(n.abs(),!1,e+$e(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)};Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return xe(new t(e),$e(e)+1,t.rounding)};Y.toNumber=function(){return+this};Y.toPower=Y.pow=function(e){var t,r,n,o,i,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Ot);if(s=new l(s),!s.s){if(e.s<1)throw Error(Dt+"Infinity");return s}if(s.eq(Ot))return s;if(n=l.precision,e.eq(Ot))return xe(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,i=s.s,a){if((r=u<0?-u:u)<=g1){for(o=new l(Ot),t=Math.ceil(n/Se+4),_e=!1;r%2&&(o=o.times(s),Ib(o.d,t)),r=Oo(r/2),r!==0;)s=s.times(s),Ib(s.d,t);return _e=!0,e.s<0?new l(Ot).div(o):xe(o,n)}}else if(i<0)throw Error(Dt+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,_e=!1,o=e.times(ci(s,n+c)),_e=!0,o=b1(o),o.s=i,o};Y.toPrecision=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?(r=$e(o),n=Nn(o,r<=i.toExpNeg||r>=i.toExpPos)):(sr(e,1,So),t===void 0?t=i.rounding:sr(t,0,8),o=xe(new i(o),e,t),r=$e(o),n=Nn(o,e<=r||r<=i.toExpNeg,e)),n};Y.toSignificantDigits=Y.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(sr(e,1,So),t===void 0?t=n.rounding:sr(t,0,8)),xe(new n(r),e,t)};Y.toString=Y.valueOf=Y.val=Y.toJSON=Y[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$e(e),r=e.constructor;return Nn(e,t<=r.toExpNeg||t>=r.toExpPos)};function y1(e,t){var r,n,o,i,a,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),_e?xe(t,d):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,o=a,s=l.length),a=Math.ceil(d/Se),s=a>s?a+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/He|0,l[i]%=He;for(r&&(l.unshift(r),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,_e?xe(t,d):t}function sr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Pn+e)}function er(e){var t,r,n,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)n=e[t]+"",r=Se-n.length,r&&(i+=Fr(r)),i+=n;a=e[t],n=a+"",r=Se-n.length,r&&(i+=Fr(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var hr=(function(){function e(n,o){var i,a=0,s=n.length;for(n=n.slice();s--;)i=n[s]*o+a,n[s]=i%He|0,a=i/He|0;return a&&n.unshift(a),n}function t(n,o,i,a){var s,l;if(i!=a)l=i>a?1:-1;else for(s=l=0;s<i;s++)if(n[s]!=o[s]){l=n[s]>o[s]?1:-1;break}return l}function r(n,o,i){for(var a=0;i--;)n[i]-=a,a=n[i]<o[i]?1:0,n[i]=a*He+n[i]-o[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,o,i,a){var s,l,c,u,d,p,v,g,m,h,b,x,w,P,O,S,E,C,N=n.constructor,D=n.s==o.s?1:-1,$=n.d,_=o.d;if(!n.s)return new N(n);if(!o.s)throw Error(Dt+"Division by zero");for(l=n.e-o.e,E=_.length,O=$.length,v=new N(D),g=v.d=[],c=0;_[c]==($[c]||0);)++c;if(_[c]>($[c]||0)&&--l,i==null?x=i=N.precision:a?x=i+($e(n)-$e(o))+1:x=i,x<0)return new N(0);if(x=x/Se+2|0,c=0,E==1)for(u=0,_=_[0],x++;(c<O||u)&&x--;c++)w=u*He+($[c]||0),g[c]=w/_|0,u=w%_|0;else{for(u=He/(_[0]+1)|0,u>1&&(_=e(_,u),$=e($,u),E=_.length,O=$.length),P=E,m=$.slice(0,E),h=m.length;h<E;)m[h++]=0;C=_.slice(),C.unshift(0),S=_[0],_[1]>=He/2&&++S;do u=0,s=t(_,m,E,h),s<0?(b=m[0],E!=h&&(b=b*He+(m[1]||0)),u=b/S|0,u>1?(u>=He&&(u=He-1),d=e(_,u),p=d.length,h=m.length,s=t(d,m,p,h),s==1&&(u--,r(d,E<p?C:_,p))):(u==0&&(s=u=1),d=_.slice()),p=d.length,p<h&&d.unshift(0),r(m,d,h),s==-1&&(h=m.length,s=t(_,m,E,h),s<1&&(u++,r(m,E<h?C:_,h))),h=m.length):s===0&&(u++,m=[0]),g[c++]=u,s&&m[0]?m[h++]=$[P]||0:(m=[$[P]],h=1);while((P++<O||m[0]!==void 0)&&x--)}return g[0]||g.shift(),v.e=l,xe(v,a?i+$e(v)+1:i)}})();function b1(e,t){var r,n,o,i,a,s,l=0,c=0,u=e.constructor,d=u.precision;if($e(e)>16)throw Error(tv+$e(e));if(!e.s)return new u(Ot);for(_e=!1,s=d,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(n=Math.log(fn(2,c))/Math.LN10*2+5|0,s+=n,r=o=i=new u(Ot),u.precision=s;;){if(o=xe(o.times(e),s),r=r.times(++l),a=i.plus(hr(o,r,s)),er(a.d).slice(0,s)===er(i.d).slice(0,s)){for(;c--;)i=xe(i.times(i),s);return u.precision=d,t==null?(_e=!0,xe(i,d)):i}i=a}}function $e(e){for(var t=e.e*Se,r=e.d[0];r>=10;r/=10)t++;return t}function ed(e,t,r){if(t>e.LN10.sd())throw _e=!0,r&&(e.precision=r),Error(Dt+"LN10 precision limit exceeded");return xe(new e(e.LN10),t)}function Fr(e){for(var t="";e--;)t+="0";return t}function ci(e,t){var r,n,o,i,a,s,l,c,u,d=1,p=10,v=e,g=v.d,m=v.constructor,h=m.precision;if(v.s<1)throw Error(Dt+(v.s?"NaN":"-Infinity"));if(v.eq(Ot))return new m(0);if(t==null?(_e=!1,c=h):c=t,v.eq(10))return t==null&&(_e=!0),ed(m,c);if(c+=p,m.precision=c,r=er(g),n=r.charAt(0),i=$e(v),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=er(v.d),n=r.charAt(0),d++;i=$e(v),n>1?(v=new m("0."+r),i++):v=new m(n+"."+r.slice(1))}else return l=ed(m,c+2,h).times(i+""),v=ci(new m(n+"."+r.slice(1)),c-p).plus(l),m.precision=h,t==null?(_e=!0,xe(v,h)):v;for(s=a=v=hr(v.minus(Ot),v.plus(Ot),c),u=xe(v.times(v),c),o=3;;){if(a=xe(a.times(u),c),l=s.plus(hr(a,new m(o),c)),er(l.d).slice(0,c)===er(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(ed(m,c+2,h).times(i+""))),s=hr(s,new m(d),c),m.precision=h,t==null?(_e=!0,xe(s,h)):s;s=l,o+=2}}function Mb(e,t){var r,n,o;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(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(n,o),t){if(o-=n,r=r-n-1,e.e=Oo(r/Se),e.d=[],n=(r+1)%Se,r<0&&(n+=Se),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=Se;n<o;)e.d.push(+t.slice(n,n+=Se));t=t.slice(n),n=Se-t.length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),_e&&(e.e>Ms||e.e<-Ms))throw Error(tv+r)}else e.s=0,e.e=0,e.d=[0];return e}function xe(e,t,r){var n,o,i,a,s,l,c,u,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if(n=t-a,n<0)n+=Se,o=t,c=d[u=0];else{if(u=Math.ceil((n+1)/Se),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;n%=Se,o=n-Se+a}if(r!==void 0&&(i=fn(10,a-o-1),s=c/i%10|0,l=t<0||d[u+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?o>0?c/fn(10,a-o):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return l?(i=$e(e),d.length=1,t=t-i-1,d[0]=fn(10,(Se-t%Se)%Se),e.e=Oo(-t/Se)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(n==0?(d.length=u,i=1,u--):(d.length=u+1,i=fn(10,Se-n),d[u]=o>0?(c/fn(10,a-o)%fn(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==He&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=He)break;d[u--]=0,i=1}for(n=d.length;d[--n]===0;)d.pop();if(_e&&(e.e>Ms||e.e<-Ms))throw Error(tv+$e(e));return e}function x1(e,t){var r,n,o,i,a,s,l,c,u,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),_e?xe(t,v):t;if(l=e.d,d=t.d,n=t.e,c=e.e,l=l.slice(),a=c-n,a){for(u=a<0,u?(r=l,a=-a,s=d.length):(r=d,n=c,s=l.length),o=Math.max(Math.ceil(v/Se),s)+2,a>o&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for(o=l.length,s=d.length,u=o<s,u&&(s=o),o=0;o<s;o++)if(l[o]!=d[o]){u=l[o]<d[o];break}a=0}for(u&&(r=l,l=d,d=r,t.s=-t.s),s=l.length,o=d.length-s;o>0;--o)l[s++]=0;for(o=d.length;o>a;){if(l[--o]<d[o]){for(i=o;i&&l[--i]===0;)l[i]=He-1;--l[i],l[o]+=He}l[o]-=d[o]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,_e?xe(t,v):t):new p(0)}function Nn(e,t,r){var n,o=$e(e),i=er(e.d),a=i.length;return t?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+Fr(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Fr(-o-1)+i,r&&(n=r-a)>0&&(i+=Fr(n))):o>=a?(i+=Fr(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+Fr(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=Fr(n))),e.s<0?"-"+i:i}function Ib(e,t){if(e.length>t)return e.length=t,!0}function w1(e){var t,r,n;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Pn+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return Mb(a,i.toString())}else if(typeof i!="string")throw Error(Pn+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,W5.test(i))Mb(a,i);else throw Error(Pn+i)}if(o.prototype=Y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=w1,o.config=o.set=K5,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 o.config(e),o}function K5(e){if(!e||typeof e!="object")throw Error(Dt+"Object expected");var t,r,n,o=["precision",1,So,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((n=e[r=o[t]])!==void 0)if(Oo(n)===n&&n>=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Pn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Pn+r+": "+n);return this}var rv=w1(V5);Ot=new rv(1);const he=rv;function P1(e){var t;return e===0?t=1:t=Math.floor(new he(e).abs().log(10).toNumber())+1,t}function S1(e,t,r){for(var n=new he(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}var O1=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},E1=(e,t,r)=>{if(e.lte(0))return new he(0);var n=P1(e.toNumber()),o=new he(10).pow(n),i=e.div(o),a=n!==1?.05:.1,s=new he(Math.ceil(i.div(a).toNumber())).add(r).mul(a),l=s.mul(o);return t?new he(l.toNumber()):new he(Math.ceil(l.toNumber()))},U5=(e,t,r)=>{var n=new he(1),o=new he(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new he(10).pow(P1(e)-1),o=new he(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new he(Math.floor(e)))}else e===0?o=new he(Math.floor((t-1)/2)):r||(o=new he(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l<t;l++)s.push(o.add(new he(l-a).mul(n)).toNumber());return s},C1=function(t,r,n,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new he(0),tickMin:new he(0),tickMax:new he(0)};var a=E1(new he(r).sub(t).div(n-1),o,i),s;t<=0&&r>=0?s=new he(0):(s=new he(t).add(r).div(2),s=s.sub(new he(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),c=Math.ceil(new he(r).sub(s).div(a).toNumber()),u=l+c+1;return u>n?C1(t,r,n,o,i+1):(u<n&&(c=r>0?c+(n-u):c,l=r>0?l:l+(n-u)),{step:a,tickMin:s.sub(new he(l).mul(a)),tickMax:s.add(new he(c).mul(a))})},H5=function(t){var[r,n]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),[s,l]=O1([r,n]);if(s===-1/0||l===1/0){var c=l===1/0?[s,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),l];return r>n?c.reverse():c}if(s===l)return U5(s,o,i);var{step:u,tickMin:d,tickMax:p}=C1(s,l,a,i,0),v=S1(d,p.add(new he(.1).mul(u)),u);return r>n?v.reverse():v},G5=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=O1([n,o]);if(a===-1/0||s===1/0)return[n,o];if(a===s)return[a];var l=Math.max(r,2),c=E1(new he(s).sub(a).div(l-1),i,0),u=[...S1(new he(a),new he(s),c),s];return i===!1&&(u=u.map(d=>Math.round(d))),n>o?u.reverse():u},A1=e=>e.rootProps.maxBarSize,q5=e=>e.rootProps.barGap,_1=e=>e.rootProps.barCategoryGap,Y5=e=>e.rootProps.barSize,Li=e=>e.rootProps.stackOffset,T1=e=>e.rootProps.reverseStackOrder,nv=e=>e.options.chartName,ov=e=>e.rootProps.syncId,j1=e=>e.rootProps.syncMethod,iv=e=>e.options.eventEmitter,De={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},cn={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Yt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},Bl=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Vl(e,t,r){if(r!=="auto")return r;if(e!=null)return _r(e,t)?"category":"number"}function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Is(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(n){X5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X5(e,t,r){return(t=Z5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z5(e){var t=J5(e,"string");return typeof t=="symbol"?t:t+""}function J5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rb={allowDataOverflow:cn.allowDataOverflow,allowDecimals:cn.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:cn.angleAxisId,includeHidden:!1,name:void 0,reversed:cn.reversed,scale:cn.scale,tick:cn.tick,tickCount:void 0,ticks:void 0,type:cn.type,unit:void 0},Db={allowDataOverflow:Yt.allowDataOverflow,allowDecimals:Yt.allowDecimals,allowDuplicatedCategory:Yt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Yt.radiusAxisId,includeHidden:Yt.includeHidden,name:void 0,reversed:Yt.reversed,scale:Yt.scale,tick:Yt.tick,tickCount:Yt.tickCount,ticks:void 0,type:Yt.type,unit:void 0},Q5=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},av=j([Q5,mO],(e,t)=>{var r;if(e!=null)return e;var n=(r=Vl(t,"angleAxis",Rb.type))!==null&&r!==void 0?r:"category";return Is(Is({},Rb),{},{type:n})}),e4=(e,t)=>e.polarAxis.radiusAxis[t],sv=j([e4,mO],(e,t)=>{var r;if(e!=null)return e;var n=(r=Vl(t,"radiusAxis",Db.type))!==null&&r!==void 0?r:"category";return Is(Is({},Db),{},{type:n})}),Wl=e=>e.polarOptions,lv=j([Tr,jr,Be],MO),N1=j([Wl,lv],(e,t)=>{if(e!=null)return it(e.innerRadius,t,0)}),M1=j([Wl,lv],(e,t)=>{if(e!=null)return it(e.outerRadius,t,t*.8)}),t4=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},I1=j([Wl],t4);j([av,I1],Bl);var k1=j([lv,N1,M1],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});j([sv,k1],Bl);var R1=j([ve,Wl,N1,M1,Tr,jr],(e,t,r,n,o,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:it(a,o,o/2),cy:it(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),je=(e,t)=>t,Fi=(e,t,r)=>r;function cv(e){return e?.id}function D1(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=r,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var u=cv(s);c.forEach((d,p)=>{var v=i==null||o?p:String(be(d,i,null)),g=be(d,s.dataKey,0),m;a.has(v)?m=a.get(v):m={},Object.assign(m,{[u]:g}),a.set(v,m)})}}),Array.from(a.values())}function Kl(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Ul=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Hl(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function r4(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var Je=e=>{var t=ve(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Eo=e=>e.tooltip.settings.axisId;function n4(e){if(e in Ho)return Ho[e]();var t="scale".concat(Si(e));if(t in Ho)return Ho[t]()}function $b(e){var t=e.ticks,r=e.bandwidth,n=e.range(),o=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:(function(i){function a(){return i.apply(this,arguments)}return a.toString=function(){return i.toString()},a})(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(i){var a=o[0],s=o[1];return a<=s?i>=a&&i<=s:i>=s&&i<=a},bandwidth:r?()=>r.call(e):void 0,ticks:t?i=>t.call(e,i):void 0,map:(i,a)=>{var s=e(i);if(s!=null){if(e.bandwidth&&a!==null&&a!==void 0&&a.position){var l=e.bandwidth();switch(a.position){case"middle":s+=l/2;break;case"end":s+=l;break}}return s}}}}function Lb(e,t,r){if(typeof e=="function")return $b(e.copy().domain(t).range(r));if(e!=null){var n=n4(e);if(n!=null)return n.domain(t).range(r),$b(n)}}var $1=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Pr(t)){for(var r,n,o=0;o<t.length;o++){var i=t[o];ce(i)&&((r===void 0||i<r)&&(r=i),(n===void 0||i>n)&&(n=i))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function Fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ks(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fb(Object(r),!0).forEach(function(n){o4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function o4(e,t,r){return(t=i4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i4(e){var t=a4(e,"string");return typeof t=="symbol"?t:t+""}function a4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var df=[0,"auto"],Ke={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},L1=(e,t)=>e.cartesianAxis.xAxis[t],Ir=(e,t)=>{var r=L1(e,t);return r??Ke},Ue={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:df,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Ti},F1=(e,t)=>e.cartesianAxis.yAxis[t],kr=(e,t)=>{var r=F1(e,t);return r??Ue},s4={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},uv=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??s4},ke=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"zAxis":return uv(e,r);case"angleAxis":return av(e,r);case"radiusAxis":return sv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},l4=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Co=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"angleAxis":return av(e,r);case"radiusAxis":return sv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},z1=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function dv(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Gl=e=>e.graphicalItems.cartesianItems,c4=j([je,Fi],dv),fv=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),zi=j([Gl,ke,c4],fv,{memoizeOptions:{resultEqualityCheck:Hl}}),B1=j([zi],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Kl)),V1=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),u4=j([zi],V1),pv=e=>e.map(t=>t.data).filter(Boolean).flat(1),d4=j([zi],pv,{memoizeOptions:{resultEqualityCheck:Hl}}),vv=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},mv=j([d4,ev],vv),hv=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:be(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(o=>({value:be(o,n)}))):e.map(n=>({value:n})),ql=j([mv,ke,zi],hv);function W1(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Ka(e){if(ir(e)||e instanceof Date){var t=Number(e);if(ce(t))return t}}function zb(e){if(Array.isArray(e)){var t=[Ka(e[0]),Ka(e[1])];return Pr(t)?t:void 0}var r=Ka(e);if(r!=null)return[r,r]}function Sr(e){return e.map(Ka).filter(yt)}function f4(e,t,r){return!r||typeof t!="number"||or(t)?[]:r.length?Sr(r.flatMap(n=>{var o=be(e,n.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!ce(i)||!ce(a)))return[t-i,t+a]})):[]}var We=e=>{var t=Je(e),r=Eo(e);return Co(e,t,r)},Bi=j([We],e=>e?.dataKey),p4=j([B1,ev,We],D1),K1=(e,t,r,n)=>{var o={},i=t.reduce((a,s)=>{if(s.stackId==null)return a;var l=a[s.stackId];return l==null&&(l=[]),l.push(s),a[s.stackId]=l,a},o);return Object.fromEntries(Object.entries(i).map(a=>{var[s,l]=a,c=n?[...l].reverse():l,u=c.map(cv);return[s,{stackedData:MF(e,u,r),graphicalItems:c}]}))},ff=j([p4,B1,Li,T1],K1),U1=(e,t,r,n)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var a=$F(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},v4=j([ke],e=>e.allowDataOverflow),gv=e=>{var t;if(e==null||!("domain"in e))return df;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Sr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:df},yv=j([ke],gv),bv=j([yv,v4],h1),m4=j([ff,Mr,je,bv],U1,{memoizeOptions:{resultEqualityCheck:Ul}}),Yl=e=>e.errorBars,h4=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>W1(r,n)),Rs=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);if(o.length!==0){var i=o.flat(),a=Math.min(...i),s=Math.max(...i);return[a,s]}},xv=(e,t,r,n,o)=>{var i,a;if(r.length>0&&e.forEach(s=>{r.forEach(l=>{var c,u,d=(c=n[l.id])===null||c===void 0?void 0:c.filter(b=>W1(o,b)),p=be(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),v=f4(s,p,d);if(v.length>=2){var g=Math.min(...v),m=Math.max(...v);(i==null||g<i)&&(i=g),(a==null||m>a)&&(a=m)}var h=zb(p);h!=null&&(i=i==null?h[0]:Math.min(i,h[0]),a=a==null?h[1]:Math.max(a,h[1]))})}),t?.dataKey!=null&&e.forEach(s=>{var l=zb(be(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),a=a==null?l[1]:Math.max(a,l[1]))}),ce(i)&&ce(a))return[i,a]},g4=j([mv,ke,u4,Yl,je],xv,{memoizeOptions:{resultEqualityCheck:Ul}});function y4(e){var{value:t}=e;if(ir(t)||t instanceof Date)return t}var b4=(e,t,r)=>{var n=e.map(y4).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&aS(n))?DO(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},H1=e=>e.referenceElements.dots,Ao=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),x4=j([H1,je,Fi],Ao),G1=e=>e.referenceElements.areas,w4=j([G1,je,Fi],Ao),q1=e=>e.referenceElements.lines,P4=j([q1,je,Fi],Ao),Y1=(e,t)=>{if(e!=null){var r=Sr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},S4=j(x4,je,Y1),X1=(e,t)=>{if(e!=null){var r=Sr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},O4=j([w4,je],X1);function E4(e){var t;if(e.x!=null)return Sr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Sr(r)}function C4(e){var t;if(e.y!=null)return Sr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Sr(r)}var Z1=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?E4(n):C4(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},A4=j([P4,je],Z1),_4=j(S4,A4,O4,(e,t,r)=>Rs(e,r,t)),wv=(e,t,r,n,o,i,a,s)=>{if(r!=null)return r;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",c=l?Rs(n,i,o):Rs(i,o);return B5(t,c,e.allowDataOverflow)},T4=j([ke,yv,bv,m4,g4,_4,ve,je],wv,{memoizeOptions:{resultEqualityCheck:Ul}}),j4=[0,1],Pv=(e,t,r,n,o,i,a)=>{if(!((e==null||r==null||r.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=_r(t,i);if(c&&s==null){var u;return DO(0,(u=r?.length)!==null&&u!==void 0?u:0)}return l==="category"?b4(n,e,c):o==="expand"?j4:a}},Sv=j([ke,ve,mv,ql,Li,je,T4],Pv);function N4(e){return e in Ho}var J1=(e,t,r)=>{if(e!=null){var{scale:n,type:o}=e;if(n==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof n=="string"){var i="scale".concat(Si(n));return N4(i)?i:"point"}}},tn=j([ke,z1,nv],J1);function Ov(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?Lb(e.scale,r,n):Lb(t,r,n)}var Ev=(e,t,r)=>{var n=gv(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Pr(e))return H5(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Pr(e))return G5(e,t.tickCount,t.allowDecimals)}},Cv=j([Sv,Co,tn],Ev),Av=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Pr(t)&&Array.isArray(r)&&r.length>0){var o,i,a=t[0],s=(o=r[0])!==null&&o!==void 0?o:0,l=t[1],c=(i=r[r.length-1])!==null&&i!==void 0?i:0;return[Math.min(a,s),Math.max(l,c)]}return t},M4=j([ke,Sv,Cv,je],Av),I4=j(ql,ke,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Sr(e.map(d=>d.value))).sort((d,p)=>d-p),o=n[0],i=n[n.length-1];if(o==null||i==null)return 1/0;var a=i-o;if(a===0)return 1/0;for(var s=0;s<n.length-1;s++){var l=n[s],c=n[s+1];if(!(l==null||c==null)){var u=c-l;r=Math.min(r,u)}}return r/a}}),Q1=j(I4,ve,_1,Be,(e,t,r,n,o)=>o,(e,t,r,n,o)=>{if(!ce(e))return 0;var i=t==="vertical"?n.height:n.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=it(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),k4=(e,t,r)=>{var n=Ir(e,t);return n==null||typeof n.padding!="string"?0:Q1(e,"xAxis",t,r,n.padding)},R4=(e,t,r)=>{var n=kr(e,t);return n==null||typeof n.padding!="string"?0:Q1(e,"yAxis",t,r,n.padding)},D4=j(Ir,k4,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((n=o.right)!==null&&n!==void 0?n:0)+t}}),$4=j(kr,R4,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((n=o.bottom)!==null&&n!==void 0?n:0)+t}}),L4=j([Be,D4,Al,Cl,(e,t,r)=>r],(e,t,r,n,o)=>{var{padding:i}=n;return o?[i.left,r.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),F4=j([Be,ve,$4,Al,Cl,(e,t,r)=>r],(e,t,r,n,o,i)=>{var{padding:a}=o;return i?[n.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Vi=(e,t,r,n)=>{var o;switch(t){case"xAxis":return L4(e,r,n);case"yAxis":return F4(e,r,n);case"zAxis":return(o=uv(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return I1(e);case"radiusAxis":return k1(e,r);default:return}},eE=j([ke,Vi],Bl),z4=j([tn,M4],$1),Xl=j([ke,tn,z4,eE],Ov);j([zi,Yl,je],h4);function tE(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Zl=(e,t)=>t,Jl=(e,t,r)=>r,B4=j(Ol,Zl,Jl,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(tE)),V4=j(El,Zl,Jl,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(tE)),rE=(e,t)=>({width:e.width,height:t.height}),W4=(e,t)=>{var r=typeof t.width=="number"?t.width:Ti;return{width:r,height:e.height}},nE=j(Be,Ir,rE),K4=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},U4=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},H4=j(jr,Be,B4,Zl,Jl,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=rE(t,s);a==null&&(a=K4(t,n,e));var c=n==="top"&&!o||n==="bottom"&&o;i[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),i}),G4=j(Tr,Be,V4,Zl,Jl,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=W4(t,s);a==null&&(a=U4(t,n,e));var c=n==="left"&&!o||n==="right"&&o;i[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),i}),q4=(e,t)=>{var r=Ir(e,t);if(r!=null)return H4(e,r.orientation,r.mirror)},Y4=j([Be,Ir,q4,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),X4=(e,t)=>{var r=kr(e,t);if(r!=null)return G4(e,r.orientation,r.mirror)},Z4=j([Be,kr,X4,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),oE=j(Be,kr,(e,t)=>{var r=typeof t.width=="number"?t.width:Ti;return{width:r,height:e.height}}),Bb=(e,t,r)=>{switch(t){case"xAxis":return nE(e,r).width;case"yAxis":return oE(e,r).height;default:return}},iE=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=r,s=_r(e,n),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&aS(l))return l}},_v=j([ve,ql,ke,je],iE),aE=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:i}=r,a=_r(e,n);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},Tv=j([ve,ql,Co,je],aE),Vb=j([ve,l4,tn,Xl,_v,Tv,Vi,Cv,je],(e,t,r,n,o,i,a,s,l)=>{if(t!=null){var c=_r(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:o,isCategorical:c,niceTicks:s,range:a,realScaleType:r,scale:n}}}),J4=(e,t,r,n,o,i,a,s,l)=>{if(!(t==null||n==null)){var c=_r(e,l),{type:u,ticks:d,tickCount:p}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,g=u==="category"&&n.bandwidth?n.bandwidth()/v:0;g=l==="angleAxis"&&i!=null&&i.length>=2?Ge(i[0]-i[1])*2*g:g;var m=d||o;return m?m.map((h,b)=>{var x=a?a.indexOf(h):h,w=n.map(x);return ce(w)?{index:b,coordinate:w+g,value:h,offset:g}:null}).filter(yt):c&&s?s.map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:h,index:b,offset:g}:null}).filter(yt):n.ticks?n.ticks(p).map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:h,index:b,offset:g}:null}).filter(yt):n.domain().map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:a?a[h]:h,index:b,offset:g}:null}).filter(yt)}},sE=j([ve,Co,tn,Xl,Cv,Vi,_v,Tv,je],J4),Q4=(e,t,r,n,o,i,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=_r(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&n?.length>=2?Ge(n[0]-n[1])*2*c:c,s&&i?i.map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:u,index:d,offset:c}:null}).filter(yt):r.ticks?r.ticks(l).map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:u,index:d,offset:c}:null}).filter(yt):r.domain().map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:o?o[u]:u,index:d,offset:c}:null}).filter(yt)}},Hr=j([ve,Co,Xl,Vi,_v,Tv,je],Q4),Gr=j(ke,Xl,(e,t)=>{if(!(e==null||t==null))return ks(ks({},e),{},{scale:t})}),eW=j([ke,tn,Sv,eE],Ov);j((e,t,r)=>uv(e,r),eW,(e,t)=>{if(!(e==null||t==null))return ks(ks({},e),{},{scale:t})});var tW=j([ve,Ol,El],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),lE=e=>e.options.defaultTooltipEventType,cE=e=>e.options.validateTooltipEventTypes;function uE(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function jv(e,t){var r=lE(e),n=cE(e);return uE(t,r,n)}function rW(e){return J(t=>jv(t,e))}var dE=(e,t)=>{var r,n=Number(t);if(!(or(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},nW=e=>e.tooltip.settings,Br={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},oW={itemInteraction:{click:Br,hover:Br},axisInteraction:{click:Br,hover:Br},keyboardInteraction:Br,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},fE=xt({name:"tooltip",initialState:oW,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Ce()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=n)},prepare:Ce()},removeTooltipEntrySettings:{reducer(e,t){var r=Bt(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Ce()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:iW,replaceTooltipEntrySettings:aW,removeTooltipEntrySettings:sW,setTooltipSettingsState:lW,setActiveMouseOverItemIndex:pE,mouseLeaveItem:cW,mouseLeaveChart:vE,setActiveClickItemIndex:uW,setMouseOverAxisIndex:mE,setMouseClickAxisIndex:dW,setSyncInteraction:pf,setKeyboardInteraction:vf}=fE.actions,fW=fE.reducer;function Wb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wb(Object(r),!0).forEach(function(n){pW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pW(e,t,r){return(t=vW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vW(e){var t=mW(e,"string");return typeof t=="symbol"?t:t+""}function mW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hW(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function gW(e){return e.index!=null}var hE=(e,t,r,n)=>{if(t==null)return Br;var o=hW(e,t,r);if(o==null)return Br;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(gW(o)){if(i)return _a(_a({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return _a(_a({},Br),{},{coordinate:o.coordinate})};function yW(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function bW(e,t){var r=yW(e),n=t[0],o=t[1];if(r===void 0)return!1;var i=Math.min(n,o),a=Math.max(n,o);return r>=i&&r<=a}function xW(e,t,r){if(r==null||t==null)return!0;var n=be(e,t);return n==null||!Pr(r)?!0:bW(n,r)}var Nv=(e,t,r,n)=>{var o=e?.index;if(o==null)return null;var i=Number(o);if(!ce(i))return o;var a=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(a,Math.min(i,s)),c=t[l];return c==null||xW(c,r,n)?String(l):null},gE=(e,t,r,n,o,i,a)=>{if(i!=null){var s=a[0],l=s?.getPosition(i);if(l!=null)return l;var c=o?.[Number(i)];if(c)return r==="horizontal"?{x:c.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:c.coordinate}}},yE=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,o==null&&n!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.graphicalItemId)===o})},bE=e=>e.options.tooltipPayloadSearcher,_o=e=>e.tooltip;function Kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ub(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(r),!0).forEach(function(n){wW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wW(e,t,r){return(t=PW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PW(e){var t=SW(e,"string");return typeof t=="symbol"?t:t+""}function SW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OW(e,t){return e??t}var xE=(e,t,r,n,o,i,a)=>{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=r,d=[];return e.reduce((p,v)=>{var g,{dataDefinedOnItem:m,settings:h}=v,b=OW(m,s),x=Array.isArray(b)?oO(b,c,u):b,w=(g=h?.dataKey)!==null&&g!==void 0?g:n,P=h?.nameKey,O;if(n&&Array.isArray(x)&&!Array.isArray(x[0])&&a==="axis"?O=sS(x,n,o):O=i(x,t,l,P),Array.isArray(O))O.forEach(E=>{var C=Ub(Ub({},h),{},{name:E.name,unit:E.unit,color:void 0,fill:void 0});p.push(Wg({tooltipEntrySettings:C,dataKey:E.dataKey,payload:E.payload,value:be(E.payload,E.dataKey),name:E.name}))});else{var S;p.push(Wg({tooltipEntrySettings:h,dataKey:w,payload:O,value:be(O,w),name:(S=be(O,P))!==null&&S!==void 0?S:h?.name}))}return p},d)}},Mv=j([We,z1,nv],J1),EW=j([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),CW=j([Je,Eo],dv),To=j([EW,We,CW],fv,{memoizeOptions:{resultEqualityCheck:Hl}}),AW=j([To],e=>e.filter(Kl)),_W=j([To],pv,{memoizeOptions:{resultEqualityCheck:Hl}}),jo=j([_W,Mr],vv),TW=j([AW,Mr,We],D1),Iv=j([jo,We,To],hv),wE=j([We],gv),jW=j([We],e=>e.allowDataOverflow),PE=j([wE,jW],h1),NW=j([To],e=>e.filter(Kl)),MW=j([TW,NW,Li,T1],K1),IW=j([MW,Mr,Je,PE],U1),kW=j([To],V1),RW=j([jo,We,kW,Yl,Je],xv,{memoizeOptions:{resultEqualityCheck:Ul}}),DW=j([H1,Je,Eo],Ao),$W=j([DW,Je],Y1),LW=j([G1,Je,Eo],Ao),FW=j([LW,Je],X1),zW=j([q1,Je,Eo],Ao),BW=j([zW,Je],Z1),VW=j([$W,BW,FW],Rs),WW=j([We,wE,PE,IW,RW,VW,ve,Je],wv),Wi=j([We,ve,jo,Iv,Li,Je,WW],Pv),KW=j([Wi,We,Mv],Ev),UW=j([We,Wi,KW,Je],Av),SE=e=>{var t=Je(e),r=Eo(e),n=!1;return Vi(e,t,r,n)},OE=j([We,SE],Bl),EE=j([We,Mv,UW,OE],Ov),HW=j([ve,Iv,We,Je],iE),GW=j([ve,Iv,We,Je],aE),qW=(e,t,r,n,o,i,a,s)=>{if(t){var{type:l}=t,c=_r(e,s);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,d=l==="category"&&n.bandwidth?n.bandwidth()/u:0;return d=s==="angleAxis"&&o!=null&&o?.length>=2?Ge(o[0]-o[1])*2*d:d,c&&a?a.map((p,v)=>{var g=n.map(p);return ce(g)?{coordinate:g+d,value:p,index:v,offset:d}:null}).filter(yt):n.domain().map((p,v)=>{var g=n.map(p);return ce(g)?{coordinate:g+d,value:i?i[p]:p,index:v,offset:d}:null}).filter(yt)}}},Rr=j([ve,We,Mv,EE,SE,HW,GW,Je],qW),kv=j([lE,cE,nW],(e,t,r)=>uE(r.shared,e,t)),CE=e=>e.tooltip.settings.trigger,Rv=e=>e.tooltip.settings.defaultIndex,Ki=j([_o,kv,CE,Rv],hE),qr=j([Ki,jo,Bi,Wi],Nv),AE=j([Rr,qr],dE),Dv=j([Ki],e=>{if(e)return e.dataKey}),YW=j([Ki],e=>{if(e)return e.graphicalItemId}),_E=j([_o,kv,CE,Rv],yE),XW=j([Tr,jr,ve,Be,Rr,Rv,_E],gE),ZW=j([Ki,XW],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),JW=j([Ki],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),QW=j([_E,qr,Mr,Bi,AE,bE,kv],xE),e6=j([QW],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Gb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hb(Object(r),!0).forEach(function(n){t6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t6(e,t,r){return(t=r6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r6(e){var t=n6(e,"string");return typeof t=="symbol"?t:t+""}function n6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o6=()=>J(We),i6=()=>{var e=o6(),t=J(Rr),r=J(EE);return co(!e||!r?void 0:Gb(Gb({},e),{},{scale:r}),t)};function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jn(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){a6(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 a6(e,t,r){return(t=s6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s6(e){var t=l6(e,"string");return typeof t=="symbol"?t:t+""}function l6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c6=(e,t,r,n)=>{var o=t.find(i=>i&&i.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:o.coordinate}}return{x:0,y:0}},u6=(e,t,r,n)=>{var o=t.find(c=>c&&c.index===r);if(o){if(e==="centric"){var i=o.coordinate,{radius:a}=n;return Jn(Jn(Jn({},n),Re(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=n;return Jn(Jn(Jn({},n),Re(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function d6(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var TE=(e,t,r,n,o)=>{var i,a=(i=t?.length)!==null&&i!==void 0?i:0;if(a<=1||e==null)return 0;if(n==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var s=0;s<a;s++){var l,c,u,d,p,v=s>0?(l=r[s-1])===null||l===void 0?void 0:l.coordinate:(c=r[a-1])===null||c===void 0?void 0:c.coordinate,g=(u=r[s])===null||u===void 0?void 0:u.coordinate,m=s>=a-1?(d=r[0])===null||d===void 0?void 0:d.coordinate:(p=r[s+1])===null||p===void 0?void 0:p.coordinate,h=void 0;if(!(v==null||g==null||m==null))if(Ge(g-v)!==Ge(m-g)){var b=[];if(Ge(m-g)===Ge(o[1]-o[0])){h=m;var x=g+o[1]-o[0];b[0]=Math.min(x,(x+v)/2),b[1]=Math.max(x,(x+v)/2)}else{h=v;var w=m+o[1]-o[0];b[0]=Math.min(g,(w+g)/2),b[1]=Math.max(g,(w+g)/2)}var P=[Math.min(g,(h+g)/2),Math.max(g,(h+g)/2)];if(e>P[0]&&e<=P[1]||e>=b[0]&&e<=b[1]){var O;return(O=r[s])===null||O===void 0?void 0:O.index}}else{var S=Math.min(v,m),E=Math.max(v,m);if(e>(S+g)/2&&e<=(E+g)/2){var C;return(C=r[s])===null||C===void 0?void 0:C.index}}}else if(t)for(var N=0;N<a;N++){var D=t[N];if(D!=null){var $=t[N+1],_=t[N-1];if(N===0&&$!=null&&e<=(D.coordinate+$.coordinate)/2||N===a-1&&_!=null&&e>(D.coordinate+_.coordinate)/2||N>0&&N<a-1&&_!=null&&$!=null&&e>(D.coordinate+_.coordinate)/2&&e<=(D.coordinate+$.coordinate)/2)return D.index}}return-1},f6=()=>J(nv),$v=(e,t)=>t,jE=(e,t,r)=>r,Lv=(e,t,r,n)=>n,p6=j(Rr,e=>ml(e,t=>t.coordinate)),Fv=j([_o,$v,jE,Lv],hE),zv=j([Fv,jo,Bi,Wi],Nv),v6=(e,t,r)=>{if(t!=null){var n=_o(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},NE=j([_o,$v,jE,Lv],yE),Ds=j([Tr,jr,ve,Be,Rr,Lv,NE],gE),m6=j([Fv,Ds],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),ME=j([Rr,zv],dE),h6=j([NE,zv,Mr,Bi,ME,bE,$v],xE),g6=j([Fv,zv],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),y6=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&d6(e,a)){var s=LF(e,t),l=TE(s,i,o,r,n),c=c6(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},b6=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=r3(e,r);if(s){var l=FF(s,t),c=TE(l,a,i,n,o),u=u6(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},x6=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?y6(e,t,n,o,i,a,s):b6(e,t,r,n,o,i,a)},w6=j(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),P6=j(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(De)),r=Array.from(new Set(t));return r.sort((n,o)=>n-o)},{memoizeOptions:{resultEqualityCheck:r4}});function Yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yb(Object(r),!0).forEach(function(n){S6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S6(e,t,r){return(t=O6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O6(e){var t=E6(e,"string");return typeof t=="symbol"?t:t+""}function E6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C6={},A6={zIndexMap:Object.values(De).reduce((e,t)=>Xb(Xb({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),C6)},_6=new Set(Object.values(De));function T6(e){return _6.has(e)}var IE=xt({name:"zIndex",initialState:A6,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Ce()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!T6(r)&&delete e.zIndexMap[r])},prepare:Ce()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:o?void 0:n,panoramaElement:o?n:void 0}},prepare:Ce()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:Ce()}}}),{registerZIndexPortal:j6,unregisterZIndexPortal:N6,registerZIndexPortalElement:M6,unregisterZIndexPortalElement:I6}=IE.actions,k6=IE.reducer;function wt(e){var{zIndex:t,children:r}=e,n=hz(),o=n&&t!==void 0&&t!==0,i=ct(),a=Pe();A.useLayoutEffect(()=>o?(a(j6({zIndex:t})),()=>{a(N6({zIndex:t}))}):Fn,[a,t,o]);var s=J(l=>w6(l,t,i));return o?s?gi.createPortal(r,s):null:r}function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mf.apply(null,arguments)}function Zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zb(Object(r),!0).forEach(function(n){R6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R6(e,t,r){return(t=D6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D6(e){var t=$6(e,"string");return typeof t=="symbol"?t:t+""}function $6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function L6(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return A.isValidElement(t)?A.cloneElement(t,n):A.createElement(r,n)}function F6(e){var t,{coordinate:r,payload:n,index:o,offset:i,tooltipAxisBandSize:a,layout:s,cursor:l,tooltipEventType:c,chartName:u}=e,d=r,p=n,v=o;if(!l||!d||u!=="ScatterChart"&&c!=="axis")return null;var g,m,h;if(u==="ScatterChart")g=d,m=hB,h=De.cursorLine;else if(u==="BarChart")g=gB(s,d,i,a),m=NO,h=De.cursorRectangle;else if(s==="radial"&&cS(d)){var{cx:b,cy:x,radius:w,startAngle:P,endAngle:O}=IO(d);g={cx:b,cy:x,startAngle:P,endAngle:O,innerRadius:w,outerRadius:w},m=RO,h=De.cursorLine}else g={points:a3(s,d,i)},m=jp,h=De.cursorLine;var S=typeof l=="object"&&"className"in l?l.className:void 0,E=Ta(Ta(Ta(Ta({stroke:"#ccc",pointerEvents:"none"},i),g),On(l)),{},{payload:p,payloadIndex:v,className:de("recharts-tooltip-cursor",S)});return f.createElement(wt,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:h},f.createElement(L6,{cursor:l,cursorComp:m,cursorProps:E}))}function z6(e){var t=i6(),r=pO(),n=zn(),o=f6();return t==null||r==null||n==null||o==null?null:f.createElement(F6,mf({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:o}))}var kE=A.createContext(null),B6=()=>A.useContext(kE),td={exports:{}},Jb;function V6(){return Jb||(Jb=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var v=new o(u,d||l,p),g=r?r+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],v]:l._events[g].push(v):(l._events[g]=v,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,v=d.length,g=new Array(v);p<v;p++)g[p]=d[p].fn;return g},s.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,v,g){var m=r?r+c:c;if(!this._events[m])return!1;var h=this._events[m],b=arguments.length,x,w;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,u),!0;case 3:return h.fn.call(h.context,u,d),!0;case 4:return h.fn.call(h.context,u,d,p),!0;case 5:return h.fn.call(h.context,u,d,p,v),!0;case 6:return h.fn.call(h.context,u,d,p,v,g),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];h.fn.apply(h.context,x)}else{var P=h.length,O;for(w=0;w<P;w++)switch(h[w].once&&this.removeListener(c,h[w].fn,void 0,!0),b){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,u);break;case 3:h[w].fn.call(h[w].context,u,d);break;case 4:h[w].fn.call(h[w].context,u,d,p);break;default:if(!x)for(O=1,x=new Array(b-1);O<b;O++)x[O-1]=arguments[O];h[w].fn.apply(h[w].context,x)}}return!0},s.prototype.on=function(c,u,d){return i(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return i(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var v=r?r+c:c;if(!this._events[v])return this;if(!u)return a(this,v),this;var g=this._events[v];if(g.fn)g.fn===u&&(!p||g.once)&&(!d||g.context===d)&&a(this,v);else{for(var m=0,h=[],b=g.length;m<b;m++)(g[m].fn!==u||p&&!g[m].once||d&&g[m].context!==d)&&h.push(g[m]);h.length?this._events[v]=h.length===1?h[0]:h:a(this,v)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&a(this,u)):(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})(td)),td.exports}var W6=V6();const K6=Jr(W6);var ui=new K6,hf="recharts.syncEvent.tooltip",Qb="recharts.syncEvent.brush",Bv=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!or(r))return e[r]}},U6={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},RE=xt({name:"options",initialState:U6,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),H6=RE.reducer,{createEventEmitter:G6}=RE.actions;function q6(e){return e.tooltip.syncInteraction}var Y6={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},DE=xt({name:"chartData",initialState:Y6,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:ex,setDataStartEndIndexes:X6,setComputedData:yte}=DE.actions,Z6=DE.reducer,J6=["x","y"];function tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tx(Object(r),!0).forEach(function(n){Q6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q6(e,t,r){return(t=eK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eK(e){var t=tK(e,"string");return typeof t=="symbol"?t:t+""}function tK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rK(e,t){if(e==null)return{};var r,n,o=nK(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function nK(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function oK(){var e=J(ov),t=J(iv),r=Pe(),n=J(j1),o=J(Rr),i=zn(),a=_l(),s=J(l=>l.rootProps.className);A.useEffect(()=>{if(e==null)return Fn;var l=(c,u,d)=>{if(t!==d&&e===c){if(n==="index"){var p;if(a&&u!==null&&u!==void 0&&(p=u.payload)!==null&&p!==void 0&&p.coordinate&&u.payload.sourceViewBox){var v=u.payload.coordinate,{x:g,y:m}=v,h=rK(v,J6),{x:b,y:x,width:w,height:P}=u.payload.sourceViewBox,O=Qn(Qn({},h),{},{x:a.x+(w?(g-b)/w:0)*a.width,y:a.y+(P?(m-x)/P:0)*a.height});r(Qn(Qn({},u),{},{payload:Qn(Qn({},u.payload),{},{coordinate:O})}))}else r(u);return}if(o!=null){var S;if(typeof n=="function"){var E={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},C=n(o,E);S=o[C]}else n==="value"&&(S=o.find(B=>String(B.value)===u.payload.label));var{coordinate:N}=u.payload;if(S==null||u.payload.active===!1||N==null||a==null){r(pf({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:D,y:$}=N,_=Math.min(D,a.x+a.width),M=Math.min($,a.y+a.height),k={x:i==="horizontal"?S.coordinate:_,y:i==="horizontal"?M:S.coordinate},V=pf({active:u.payload.active,coordinate:k,dataKey:u.payload.dataKey,index:String(S.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(V)}}};return ui.on(hf,l),()=>{ui.off(hf,l)}},[s,r,t,e,n,o,i,a])}function iK(){var e=J(ov),t=J(iv),r=Pe();A.useEffect(()=>{if(e==null)return Fn;var n=(o,i,a)=>{t!==a&&e===o&&r(X6(i))};return ui.on(Qb,n),()=>{ui.off(Qb,n)}},[r,t,e])}function aK(){var e=Pe();A.useEffect(()=>{e(G6())},[e]),oK(),iK()}function sK(e,t,r,n,o,i){var a=J(v=>v6(v,e,t)),s=J(iv),l=J(ov),c=J(j1),u=J(q6),d=u?.active,p=_l();A.useEffect(()=>{if(!d&&l!=null&&s!=null){var v=pf({active:i,coordinate:r,dataKey:a,index:o,label:typeof n=="number"?String(n):n,sourceViewBox:p,graphicalItemId:void 0});ui.emit(hf,l,v,s)}},[d,r,a,o,n,s,l,c,i,p])}function rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rx(Object(r),!0).forEach(function(n){lK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lK(e,t,r){return(t=cK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cK(e){var t=uK(e,"string");return typeof t=="symbol"?t:t+""}function uK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dK(e){return e.dataKey}function fK(e,t){return f.isValidElement(e)?f.cloneElement(e,t):typeof e=="function"?f.createElement(e,t):f.createElement(Yz,t)}var ox=[],pK={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Vv(e){var t,r,n=Le(e,pK),{active:o,allowEscapeViewBox:i,animationDuration:a,animationEasing:s,content:l,filterNull:c,isAnimationActive:u,offset:d,payloadUniqBy:p,position:v,reverseDirection:g,useTranslate3d:m,wrapperStyle:h,cursor:b,shared:x,trigger:w,defaultIndex:P,portal:O,axisId:S}=n,E=Pe(),C=typeof P=="number"?String(P):P;A.useEffect(()=>{E(lW({shared:x,trigger:w,axisId:S,active:o,defaultIndex:C}))},[E,x,w,S,o,C]);var N=_l(),D=CO(),$=rW(x),{activeIndex:_,isActive:M}=(t=J(W=>g6(W,$,w,C)))!==null&&t!==void 0?t:{},k=J(W=>h6(W,$,w,C)),V=J(W=>ME(W,$,w,C)),B=J(W=>m6(W,$,w,C)),K=k,T=B6(),I=(r=o??M)!==null&&r!==void 0?r:!1,[G,ee]=OS([K,I]),re=$==="axis"?V:void 0;sK($,w,B,re,_,I);var oe=O??T;if(oe==null||N==null||$==null)return null;var ne=K??ox;I||(ne=ox),c&&ne.length&&(ne=yS(ne.filter(W=>W.value!=null&&(W.hide!==!0||n.includeHidden)),p,dK));var le=ne.length>0,Ee=f.createElement(rB,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:I,coordinate:B,hasPayload:le,offset:d,position:v,reverseDirection:g,useTranslate3d:m,viewBox:N,wrapperStyle:h,lastBoundingBox:G,innerRef:ee,hasPortalFromProps:!!O},fK(l,nx(nx({},n),{},{payload:ne,label:re,active:I,activeIndex:_,coordinate:B,accessibilityLayer:D})));return f.createElement(f.Fragment,null,gi.createPortal(Ee,oe),I&&f.createElement(z6,{cursor:b,tooltipEventType:$,coordinate:B,payload:ne,index:_}))}var Ui=e=>null;Ui.displayName="Cell";function vK(e,t,r){return(t=mK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mK(e){var t=hK(e,"string");return typeof t=="symbol"?t:t+""}function hK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class gK{constructor(t){vK(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function ix(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function yK(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ix(Object(r),!0).forEach(function(n){bK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ix(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bK(e,t,r){return(t=xK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xK(e){var t=wK(e,"string");return typeof t=="symbol"?t:t+""}function wK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PK={cacheSize:2e3,enableCache:!0},$E=yK({},PK),ax=new gK($E.cacheSize),SK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},sx="recharts_measurement_span";function OK(e,t){var r=t.fontSize||"",n=t.fontFamily||"",o=t.fontWeight||"",i=t.fontStyle||"",a=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(o,"|").concat(i,"|").concat(a,"|").concat(s)}var lx=(e,t)=>{try{var r=document.getElementById(sx);r||(r=document.createElement("span"),r.setAttribute("id",sx),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,SK,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Xo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Il.isSsr)return{width:0,height:0};if(!$E.enableCache)return lx(t,r);var n=OK(t,r),o=ax.get(n);if(o)return o;var i=lx(t,r);return ax.set(n,i),i},LE;function EK(e,t,r){return(t=CK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CK(e){var t=AK(e,"string");return typeof t=="symbol"?t:t+""}function AK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ux=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_K=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,TK=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,jK={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},NK=["cm","mm","pt","pc","in","Q","px"];function MK(e){return NK.includes(e)}var to="NaN";function IK(e,t){return e*jK[t]}class rt{static parse(t){var r,[,n,o]=(r=TK.exec(t))!==null&&r!==void 0?r:[];return n==null?rt.NaN:new rt(parseFloat(n),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,or(t)&&(this.unit=""),r!==""&&!_K.test(r)&&(this.num=NaN,this.unit=""),MK(r)&&(this.num=IK(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new rt(NaN,""):new rt(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new rt(NaN,""):new rt(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rt(NaN,""):new rt(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rt(NaN,""):new rt(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return or(this.num)}}LE=rt;EK(rt,"NaN",new LE(NaN,""));function FE(e){if(e==null||e.includes(to))return to;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=cx.exec(t))!==null&&r!==void 0?r:[],a=rt.parse(n??""),s=rt.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return to;t=t.replace(cx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,p]=(c=ux.exec(t))!==null&&c!==void 0?c:[],v=rt.parse(u??""),g=rt.parse(p??""),m=d==="+"?v.add(g):v.subtract(g);if(m.isNaN())return to;t=t.replace(ux,m.toString())}return t}var dx=/\(([^()]*)\)/;function kK(e){for(var t=e,r;(r=dx.exec(t))!=null;){var[,n]=r;t=t.replace(dx,FE(n))}return t}function RK(e){var t=e.replace(/\s+/g,"");return t=kK(t),t=FE(t),t}function DK(e){try{return RK(e)}catch{return to}}function rd(e){var t=DK(e.slice(5,-1));return t===to?"":t}var $K=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],LK=["dx","dy","angle","className","breakAll"];function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gf.apply(null,arguments)}function fx(e,t){if(e==null)return{};var r,n,o=FK(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function FK(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var zE=/[ \f\n\r\t\v\u2028\u2029]+/,BE=e=>{var{children:t,breakAll:r,style:n}=e;try{var o=[];Te(t)||(r?o=t.toString().split(""):o=t.toString().split(zE));var i=o.map(s=>({word:s,width:Xo(s,n).width})),a=r?0:Xo(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function zK(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var VE=(e,t,r,n)=>e.reduce((o,i)=>{var{word:a,width:s}=i,l=o[o.length-1];if(l&&s!=null&&(t==null||n||l.width+s+r<Number(t)))l.words.push(a),l.width+=s+r;else{var c={words:[a],width:s};o.push(c)}return o},[]),WE=e=>e.reduce((t,r)=>t.width>r.width?t:r),BK="…",px=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=BE({breakAll:r,style:n,children:l+BK});if(!c)return[!1,[]];var u=VE(c.wordsWithComputedWidth,i,a,s),d=u.length>o||WE(u).width>Number(i);return[d,u]},VK=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=q(i),u=String(a),d=VE(t,n,r,o);if(!c||o)return d;var p=d.length>i||WE(d).width>Number(n);if(!p)return d;for(var v=0,g=u.length-1,m=0,h;v<=g&&m<=u.length-1;){var b=Math.floor((v+g)/2),x=b-1,[w,P]=px(u,x,l,s,i,n,r,o),[O]=px(u,b,l,s,i,n,r,o);if(!w&&!O&&(v=b+1),w&&O&&(g=b-1),!w&&O){h=P;break}m++}return h||d},vx=e=>{var t=Te(e)?[]:e.toString().split(zE);return[{words:t,width:void 0}]},WK=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!Il.isSsr){var s,l,c=BE({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;s=u,l=d}else return vx(n);return VK({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return vx(n)},KE="#808080",KK={angle:0,breakAll:!1,capHeight:"0.71em",fill:KE,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Ql=A.forwardRef((e,t)=>{var r=Le(e,KK),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,d=fx(r,$K),p=A.useMemo(()=>WK({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:l,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,l,d.style,d.width]),{dx:v,dy:g,angle:m,className:h,breakAll:b}=d,x=fx(d,LK);if(!ir(n)||!ir(o)||p.length===0)return null;var w=Number(n)+(q(v)?v:0),P=Number(o)+(q(g)?g:0);if(!ce(w)||!ce(P))return null;var O;switch(u){case"start":O=rd("calc(".concat(a,")"));break;case"middle":O=rd("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:O=rd("calc(".concat(p.length-1," * -").concat(i,")"));break}var S=[],E=p[0];if(l&&E!=null){var C=E.width,{width:N}=d;S.push("scale(".concat(q(N)&&q(C)?N/C:1,")"))}return m&&S.push("rotate(".concat(m,", ").concat(w,", ").concat(P,")")),S.length&&(x.transform=S.join(" ")),f.createElement("text",gf({},mt(x),{ref:t,x:w,y:P,className:de("recharts-text",h),textAnchor:c,fill:s.includes("url")?KE:s}),p.map((D,$)=>{var _=D.words.join(b?"":" ");return f.createElement("tspan",{x:w,dy:$===0?O:i,key:"".concat(_,"-").concat($)},_)}))});Ql.displayName="Text";function mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xt(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){UK(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 UK(e,t,r){return(t=HK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HK(e){var t=GK(e,"string");return typeof t=="symbol"?t:t+""}function GK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qK=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:o}=e,{x:i,y:a,height:s,upperWidth:l,lowerWidth:c}=Ep(t),u=i,d=i+(l-c)/2,p=(u+d)/2,v=(l+c)/2,g=u+l/2,m=s>=0?1:-1,h=m*n,b=m>0?"end":"start",x=m>0?"start":"end",w=l>=0?1:-1,P=w*n,O=w>0?"end":"start",S=w>0?"start":"end",E=o;if(r==="top"){var C={x:u+l/2,y:a-h,horizontalAnchor:"middle",verticalAnchor:b};return E&&(C.height=Math.max(a-E.y,0),C.width=l),C}if(r==="bottom"){var N={x:d+c/2,y:a+s+h,horizontalAnchor:"middle",verticalAnchor:x};return E&&(N.height=Math.max(E.y+E.height-(a+s),0),N.width=c),N}if(r==="left"){var D={x:p-P,y:a+s/2,horizontalAnchor:O,verticalAnchor:"middle"};return E&&(D.width=Math.max(D.x-E.x,0),D.height=s),D}if(r==="right"){var $={x:p+v+P,y:a+s/2,horizontalAnchor:S,verticalAnchor:"middle"};return E&&($.width=Math.max(E.x+E.width-$.x,0),$.height=s),$}var _=E?{width:v,height:s}:{};return r==="insideLeft"?Xt({x:p+P,y:a+s/2,horizontalAnchor:S,verticalAnchor:"middle"},_):r==="insideRight"?Xt({x:p+v-P,y:a+s/2,horizontalAnchor:O,verticalAnchor:"middle"},_):r==="insideTop"?Xt({x:u+l/2,y:a+h,horizontalAnchor:"middle",verticalAnchor:x},_):r==="insideBottom"?Xt({x:d+c/2,y:a+s-h,horizontalAnchor:"middle",verticalAnchor:b},_):r==="insideTopLeft"?Xt({x:u+P,y:a+h,horizontalAnchor:S,verticalAnchor:x},_):r==="insideTopRight"?Xt({x:u+l-P,y:a+h,horizontalAnchor:O,verticalAnchor:x},_):r==="insideBottomLeft"?Xt({x:d+P,y:a+s-h,horizontalAnchor:S,verticalAnchor:b},_):r==="insideBottomRight"?Xt({x:d+c-P,y:a+s-h,horizontalAnchor:O,verticalAnchor:b},_):r&&typeof r=="object"&&(q(r.x)||An(r.x))&&(q(r.y)||An(r.y))?Xt({x:i+it(r.x,v),y:a+it(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},_):Xt({x:g,y:a+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},_)},YK=["labelRef"],XK=["content"];function hx(e,t){if(e==null)return{};var r,n,o=ZK(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ZK(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function gx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Go(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gx(Object(r),!0).forEach(function(n){JK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JK(e,t,r){return(t=QK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QK(e){var t=eU(e,"string");return typeof t=="symbol"?t:t+""}function eU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pr.apply(null,arguments)}var UE=A.createContext(null),tU=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a,children:s}=e,l=A.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a}),[t,r,n,o,i,a]);return f.createElement(UE.Provider,{value:l},s)},HE=()=>{var e=A.useContext(UE),t=_l();return e||(t?Ep(t):void 0)},rU=A.createContext(null),nU=()=>{var e=A.useContext(rU),t=J(R1);return e||t},oU=e=>{var{value:t,formatter:r}=e,n=Te(e.children)?t:e.children;return typeof r=="function"?r(n):n},Wv=e=>e!=null&&typeof e=="function",iU=(e,t)=>{var r=Ge(t-e),n=Math.min(Math.abs(t-e),360);return r*n},aU=(e,t,r,n,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:d,endAngle:p,clockWise:v}=o,g=(c+u)/2,m=iU(d,p),h=m>=0?1:-1,b,x;switch(t){case"insideStart":b=d+h*i,x=v;break;case"insideEnd":b=p-h*i,x=!v;break;case"end":b=p+h*i,x=v;break;default:throw new Error("Unsupported position ".concat(t))}x=m<=0?x:!x;var w=Re(s,l,g,b),P=Re(s,l,g,b+(x?1:-1)*359),O="M".concat(w.x,",").concat(w.y,`
99
99
  A`).concat(g,",").concat(g,",0,1,").concat(x?0:1,`,
100
- `).concat(P.x,",").concat(P.y),S=Te(e.id)?Zo("recharts-radial-line-"):e.id;return f.createElement("text",pr({},n,{dominantBaseline:"central",className:de("recharts-radial-bar-label",a)}),f.createElement("defs",null,f.createElement("path",{id:S,d:O})),f.createElement("textPath",{xlinkHref:"#".concat(S)},r))},aU=(e,t,r)=>{var{cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:u,y:d}=Re(n,o,a+t,c);return{x:u,y:d,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"end"};var p=(i+a)/2,{x:v,y:g}=Re(n,o,p,c);return{x:v,y:g,textAnchor:"middle",verticalAnchor:"middle"}},Ua=e=>e!=null&&"cx"in e&&q(e.cx),sU={angle:0,offset:5,zIndex:De.label,position:"middle",textBreakAll:!1};function lU(e){if(!Ua(e))return e;var{cx:t,cy:r,outerRadius:n}=e,o=n*2;return{x:t-n,y:r-n,width:o,upperWidth:o,lowerWidth:o,height:o}}function zr(e){var t=Le(e,sU),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:u}=t,d=rU(),p=HE(),v=o==="center"?p:d??p,g,m,h;r==null?g=v:Ua(r)?g=r:g=Ep(r);var b=lU(g);if(!g||Te(i)&&Te(a)&&!A.isValidElement(s)&&typeof s!="function")return null;var x=Go(Go({},t),{},{viewBox:g});if(A.isValidElement(s)){var{labelRef:w}=x,P=hx(x,qK);return A.cloneElement(s,P)}if(typeof s=="function"){var{content:O}=x,S=hx(x,YK);if(m=A.createElement(s,S),A.isValidElement(m))return m}else m=nU(t);var E=mt(t);if(Ua(g)){if(o==="insideStart"||o==="insideEnd"||o==="end")return iU(t,o,m,E,g);h=aU(g,t.offset,t.position)}else{if(!b)return null;var C=GK({viewBox:b,position:o,offset:t.offset,parentViewBox:Ua(n)?void 0:n});h=Go(Go({x:C.x,y:C.y,textAnchor:C.horizontalAnchor,verticalAnchor:C.verticalAnchor},C.width!==void 0?{width:C.width}:{}),C.height!==void 0?{height:C.height}:{})}return f.createElement(wt,{zIndex:t.zIndex},f.createElement(Ql,pr({ref:u,className:de("recharts-label",l)},E,h,{textAnchor:FK(E.textAnchor)?E.textAnchor:h.textAnchor,breakAll:c}),m))}zr.displayName="Label";var cU=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?f.createElement(zr,pr({key:"label-implicit"},n)):ir(e)?f.createElement(zr,pr({key:"label-implicit",value:e},n)):A.isValidElement(e)?e.type===zr?A.cloneElement(e,Go({key:"label-implicit"},n)):f.createElement(zr,pr({key:"label-implicit",content:e},n)):Wv(e)?f.createElement(zr,pr({key:"label-implicit",content:e},n)):e&&typeof e=="object"?f.createElement(zr,pr({},e,{key:"label-implicit"},n)):null};function uU(e){var{label:t,labelRef:r}=e,n=HE();return cU(t,n,r)||null}var nd={},od={},yx;function dU(){return yx||(yx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(od)),od}var id={},bx;function fU(){return bx||(bx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(id)),id}var xx;function pU(){return xx||(xx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dU(),r=fU(),n=pp();function o(i){if(n.isArrayLike(i))return t.last(r.toArray(i))}e.last=o})(nd)),nd}var ad,wx;function vU(){return wx||(wx=1,ad=pU().last),ad}var mU=vU();const hU=Jr(mU);var gU=["valueAccessor"],yU=["dataKey","clockWise","id","textBreakAll","zIndex"];function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$s.apply(null,arguments)}function Px(e,t){if(e==null)return{};var r,n,o=bU(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function bU(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var xU=e=>Array.isArray(e.value)?hU(e.value):e.value,GE=A.createContext(void 0),qE=GE.Provider,YE=A.createContext(void 0),wU=YE.Provider;function PU(){return A.useContext(GE)}function SU(){return A.useContext(YE)}function Ha(e){var{valueAccessor:t=xU}=e,r=Px(e,gU),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=Px(r,yU),c=PU(),u=SU(),d=c||u;return!d||!d.length?null:f.createElement(wt,{zIndex:s??De.label},f.createElement(Ye,{className:"recharts-label-list"},d.map((p,v)=>{var g,m=Te(n)?t(p,v):be(p.payload,n),h=Te(i)?{}:{id:"".concat(i,"-").concat(v)};return f.createElement(zr,$s({key:"label-".concat(v)},mt(p),l,h,{fill:(g=r.fill)!==null&&g!==void 0?g:p.fill,parentViewBox:p.parentViewBox,value:m,textBreakAll:a,viewBox:p.viewBox,index:v,zIndex:0}))})))}Ha.displayName="LabelList";function Kv(e){var{label:t}=e;return t?t===!0?f.createElement(Ha,{key:"labelList-implicit"}):f.isValidElement(t)||Wv(t)?f.createElement(Ha,{key:"labelList-implicit",content:t}):typeof t=="object"?f.createElement(Ha,$s({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yf.apply(null,arguments)}var XE=e=>{var{cx:t,cy:r,r:n,className:o}=e,i=de("recharts-dot",o);return q(t)&&q(r)&&q(n)?f.createElement("circle",yf({},At(e),fp(e),{className:i,cx:t,cy:r,r:n})):null},ZE=e=>e.graphicalItems.polarItems,OU=j([je,Fi],dv),ec=j([ZE,ke,OU],fv),EU=j([ec],pv),tc=j([EU,zl],vv),CU=j([tc,ke,ec],hv);j([tc,ke,ec],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(o=>{var i,a=be(n,(i=t.dataKey)!==null&&i!==void 0?i:o.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:be(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var Sx=()=>{},AU=j([tc,ke,ec,Yl,je],xv),_U=j([ke,yv,bv,Sx,AU,Sx,ve,je],wv),JE=j([ke,ve,tc,CU,Li,je,_U],Pv),TU=j([JE,Co,tn],Ev),jU=j([ke,JE,TU,je],Av);j([tn,jU],$1);var NU={radiusAxis:{},angleAxis:{}},QE=xt({name:"polarAxis",initialState:NU,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:yte,removeRadiusAxis:bte,addAngleAxis:xte,removeAngleAxis:wte}=QE.actions,MU=QE.reducer;function eC(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function Ox(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ex(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ox(Object(r),!0).forEach(function(n){IU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IU(e,t,r){return(t=kU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kU(e){var t=RU(e,"string");return typeof t=="symbol"?t:t+""}function RU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DU=(e,t)=>t,Uv=j([ZE,DU],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),$U=[],Hv=(e,t,r)=>r?.length===0?$U:r,tC=j([zl,Uv,Hv],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var o;if(t?.data!=null&&t.data.length>0?o=t.data:o=n,(!o||!o.length)&&r!=null&&(o=r.map(i=>Ex(Ex({},t.presentationProps),i.props))),o!=null)return o}}),LU=j([tC,Uv,Hv],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,o)=>{var i,a=be(n,t.nameKey,t.name),s;return r!=null&&(i=r[o])!==null&&i!==void 0&&(i=i.props)!==null&&i!==void 0&&i.fill?s=r[o].props.fill:typeof n=="object"&&n!=null&&"fill"in n?s=n.fill:s=t.fill,{value:wo(a,t.dataKey),color:s,payload:n,type:t.legendType}})}),FU=j([tC,Uv,Hv,Be],(e,t,r,n)=>{if(!(t==null||e==null))return B8({offset:n,pieSettings:t,displayedData:e,cells:r})}),ja={exports:{}},ge={};var Cx;function zU(){if(Cx)return ge;Cx=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,v=60122,g=60117,m=60129,h=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),v=b("react.server.block"),g=b("react.fundamental"),m=b("react.debug_trace_mode"),h=b("react.legacy_hidden")}function x(M){if(typeof M=="object"&&M!==null){var k=M.$$typeof;switch(k){case e:switch(M=M.type,M){case r:case o:case n:case l:case c:return M;default:switch(M=M&&M.$$typeof,M){case a:case s:case d:case u:case i:return M;default:return k}}case t:return k}}}var w=i,P=e,O=s,S=r,E=d,C=u,N=t,D=o,$=n,_=l;return ge.ContextConsumer=a,ge.ContextProvider=w,ge.Element=P,ge.ForwardRef=O,ge.Fragment=S,ge.Lazy=E,ge.Memo=C,ge.Portal=N,ge.Profiler=D,ge.StrictMode=$,ge.Suspense=_,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(M){return x(M)===a},ge.isContextProvider=function(M){return x(M)===i},ge.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===e},ge.isForwardRef=function(M){return x(M)===s},ge.isFragment=function(M){return x(M)===r},ge.isLazy=function(M){return x(M)===d},ge.isMemo=function(M){return x(M)===u},ge.isPortal=function(M){return x(M)===t},ge.isProfiler=function(M){return x(M)===o},ge.isStrictMode=function(M){return x(M)===n},ge.isSuspense=function(M){return x(M)===l},ge.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===o||M===m||M===n||M===l||M===c||M===h||typeof M=="object"&&M!==null&&(M.$$typeof===d||M.$$typeof===u||M.$$typeof===i||M.$$typeof===a||M.$$typeof===s||M.$$typeof===g||M.$$typeof===p||M[0]===v)},ge.typeOf=x,ge}var ye={};var Ax;function BU(){return Ax||(Ax=1,process.env.NODE_ENV!=="production"&&(function(){var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,v=60122,g=60117,m=60129,h=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),v=b("react.server.block"),g=b("react.fundamental"),b("react.scope"),b("react.opaque.id"),m=b("react.debug_trace_mode"),b("react.offscreen"),h=b("react.legacy_hidden")}var x=!1;function w(z){return!!(typeof z=="string"||typeof z=="function"||z===r||z===o||z===m||z===n||z===l||z===c||z===h||x||typeof z=="object"&&z!==null&&(z.$$typeof===d||z.$$typeof===u||z.$$typeof===i||z.$$typeof===a||z.$$typeof===s||z.$$typeof===g||z.$$typeof===p||z[0]===v))}function P(z){if(typeof z=="object"&&z!==null){var F=z.$$typeof;switch(F){case e:var fe=z.type;switch(fe){case r:case o:case n:case l:case c:return fe;default:var se=fe&&fe.$$typeof;switch(se){case a:case s:case d:case u:case i:return se;default:return F}}case t:return F}}}var O=a,S=i,E=e,C=s,N=r,D=d,$=u,_=t,M=o,k=n,V=l,B=!1,K=!1;function T(z){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function I(z){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(z){return P(z)===a}function ee(z){return P(z)===i}function re(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function oe(z){return P(z)===s}function ne(z){return P(z)===r}function le(z){return P(z)===d}function Ee(z){return P(z)===u}function W(z){return P(z)===t}function ue(z){return P(z)===o}function L(z){return P(z)===n}function H(z){return P(z)===l}ye.ContextConsumer=O,ye.ContextProvider=S,ye.Element=E,ye.ForwardRef=C,ye.Fragment=N,ye.Lazy=D,ye.Memo=$,ye.Portal=_,ye.Profiler=M,ye.StrictMode=k,ye.Suspense=V,ye.isAsyncMode=T,ye.isConcurrentMode=I,ye.isContextConsumer=G,ye.isContextProvider=ee,ye.isElement=re,ye.isForwardRef=oe,ye.isFragment=ne,ye.isLazy=le,ye.isMemo=Ee,ye.isPortal=W,ye.isProfiler=ue,ye.isStrictMode=L,ye.isSuspense=H,ye.isValidElementType=w,ye.typeOf=P})()),ye}var _x;function VU(){return _x||(_x=1,process.env.NODE_ENV==="production"?ja.exports=zU():ja.exports=BU()),ja.exports}var WU=VU(),Tx=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",jx=null,sd=null,rC=e=>{if(e===jx&&Array.isArray(sd))return sd;var t=[];return A.Children.forEach(e,r=>{Te(r)||(WU.isFragment(r)?t=t.concat(rC(r.props.children)):t.push(r))}),sd=t,jx=e,t};function Gv(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(o=>Tx(o)):n=[Tx(t)],rC(e).forEach(o=>{var i=Cn(o,"type.displayName")||Cn(o,"type.name");i&&n.indexOf(i)!==-1&&r.push(o)}),r}var nC=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,ld={},Nx;function KU(){return Nx||(Nx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const o=r[Symbol.toStringTag];return o==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${o}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(ld)),ld}var cd,Mx;function UU(){return Mx||(Mx=1,cd=KU().isPlainObject),cd}var HU=UU();const GU=Jr(HU);var Ix,kx,Rx,Dx,$x;function Lx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Fx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lx(Object(r),!0).forEach(function(n){qU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qU(e,t,r){return(t=YU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YU(e){var t=XU(e,"string");return typeof t=="symbol"?t:t+""}function XU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ls.apply(null,arguments)}function Wo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var zx=(e,t,r,n,o)=>{var i=r-n,a;return a=Me(Ix||(Ix=Wo(["M ",",",""])),e,t),a+=Me(kx||(kx=Wo(["L ",",",""])),e+r,t),a+=Me(Rx||(Rx=Wo(["L ",",",""])),e+r-i/2,t+o),a+=Me(Dx||(Dx=Wo(["L ",",",""])),e+r-i/2-n,t+o),a+=Me($x||($x=Wo(["L ",","," Z"])),e,t),a},ZU={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},JU=e=>{var t=Le(e,ZU),{x:r,y:n,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:d}=t,p=A.useRef(null),[v,g]=A.useState(-1),m=A.useRef(o),h=A.useRef(i),b=A.useRef(a),x=A.useRef(r),w=A.useRef(n),P=Ii(e,"trapezoid-");if(A.useEffect(()=>{if(p.current&&p.current.getTotalLength)try{var k=p.current.getTotalLength();k&&g(k)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var O=de("recharts-trapezoid",s);if(!d)return f.createElement("g",null,f.createElement("path",Ls({},mt(t),{className:O,d:zx(r,n,o,i,a)})));var S=m.current,E=h.current,C=b.current,N=x.current,D=w.current,$="0px ".concat(v===-1?1:v,"px"),_="".concat(v,"px 0px"),M=AO(["strokeDasharray"],c,l);return f.createElement(Mi,{animationId:P,key:P,canBegin:v>0,duration:c,easing:l,isActive:d,begin:u},k=>{var V=Ae(S,o,k),B=Ae(E,i,k),K=Ae(C,a,k),T=Ae(N,r,k),I=Ae(D,n,k);p.current&&(m.current=V,h.current=B,b.current=K,x.current=T,w.current=I);var G=k>0?{transition:M,strokeDasharray:_}:{strokeDasharray:$};return f.createElement("path",Ls({},mt(t),{className:O,d:zx(T,I,V,B,K),ref:p,style:Fx(Fx({},G),t.style)}))})},QU=["option","shapeType","activeClassName"];function e8(e,t){if(e==null)return{};var r,n,o=t8(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function t8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Bx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Fs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bx(Object(r),!0).forEach(function(n){r8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r8(e,t,r){return(t=n8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n8(e){var t=o8(e,"string");return typeof t=="symbol"?t:t+""}function o8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i8(e,t){return Fs(Fs({},t),e)}function a8(e,t){return e==="symbols"}function Vx(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return f.createElement(NO,r);case"trapezoid":return f.createElement(JU,r);case"sector":return f.createElement(RO,r);case"symbols":if(a8(t))return f.createElement(dp,r);break;case"curve":return f.createElement(jp,r);default:return null}}function s8(e){return A.isValidElement(e)?e.props:e}function qv(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,o=e8(e,QU),i;if(A.isValidElement(t))i=A.cloneElement(t,Fs(Fs({},o),s8(t)));else if(typeof t=="function")i=t(o,o.index);else if(GU(t)&&typeof t!="boolean"){var a=i8(t,o);i=f.createElement(Vx,{shapeType:r,elementProps:a})}else{var s=o;i=f.createElement(Vx,{shapeType:r,elementProps:s})}return o.isActive?f.createElement(Ye,{className:n},i):i}var Yv=(e,t,r)=>{var n=Pe();return(o,i)=>a=>{e?.(o,i,a),n(pE({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},Xv=e=>{var t=Pe();return(r,n)=>o=>{e?.(r,n,o),t(lW())}},Zv=(e,t,r)=>{var n=Pe();return(o,i)=>a=>{e?.(o,i,a),n(cW({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};function Jv(e){var{tooltipEntrySettings:t}=e,r=Pe(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(oW(t)):o.current!==t&&r(iW({prev:o.current,next:t})),o.current=t)},[t,r,n]),A.useLayoutEffect(()=>()=>{o.current&&(r(aW(o.current)),o.current=null)},[r]),null}function oC(e){var{legendPayload:t}=e,r=Pe(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(SO(t)):o.current!==t&&r(OO({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(EO(o.current)),o.current=null)},[r]),null}function l8(e){var{legendPayload:t}=e,r=Pe(),n=J(ve),o=A.useRef(null);return A.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(o.current===null?r(SO(t)):o.current!==t&&r(OO({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(EO(o.current)),o.current=null)},[r]),null}var ud,c8=()=>{var[e]=f.useState(()=>Zo("uid-"));return e},u8=(ud=f.useId)!==null&&ud!==void 0?ud:c8;function d8(e,t){var r=u8();return t||(e?"".concat(e,"-").concat(r):r)}var f8=A.createContext(void 0),Qv=e=>{var{id:t,type:r,children:n}=e,o=d8("recharts-".concat(r),t);return f.createElement(f8.Provider,{value:o},n(o))},p8={cartesianItems:[],polarItems:[]},iC=xt({name:"graphicalItems",initialState:p8,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Ce()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=n)},prepare:Ce()},removeCartesianGraphicalItem:{reducer(e,t){var r=Bt(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Ce()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Ce()},removePolarGraphicalItem:{reducer(e,t){var r=Bt(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Ce()}}}),{addCartesianGraphicalItem:v8,replaceCartesianGraphicalItem:m8,removeCartesianGraphicalItem:h8,addPolarGraphicalItem:g8,removePolarGraphicalItem:y8}=iC.actions,b8=iC.reducer,x8=e=>{var t=Pe(),r=A.useRef(null);return A.useLayoutEffect(()=>{r.current===null?t(v8(e)):r.current!==e&&t(m8({prev:r.current,next:e})),r.current=e},[t,e]),A.useLayoutEffect(()=>()=>{r.current&&(t(h8(r.current)),r.current=null)},[t]),null},aC=A.memo(x8);function w8(e){var t=Pe();return A.useLayoutEffect(()=>(t(g8(e)),()=>{t(y8(e))}),[t,e]),null}var P8=["key"],S8=["onMouseEnter","onClick","onMouseLeave"],O8=["id"],E8=["id"];function Wx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wx(Object(r),!0).forEach(function(n){C8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C8(e,t,r){return(t=A8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A8(e){var t=_8(e,"string");return typeof t=="symbol"?t:t+""}function _8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yr.apply(null,arguments)}function rc(e,t){if(e==null)return{};var r,n,o=T8(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function T8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function j8(e){var t=A.useMemo(()=>Gv(e.children,Ui),[e.children]),r=J(n=>LU(n,e.id,t));return r==null?null:f.createElement(l8,{legendPayload:r})}var N8=f.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:o,strokeWidth:i,fill:a,name:s,hide:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:n.map(p=>p.tooltipPayload),getPosition:p=>{var v;return(v=n[Number(p)])===null||v===void 0?void 0:v.tooltipPosition},settings:{stroke:o,strokeWidth:i,fill:a,dataKey:t,nameKey:r,name:wo(s,t),hide:l,type:c,color:a,unit:"",graphicalItemId:u}};return f.createElement(Jv,{tooltipEntrySettings:d})}),M8=(e,t)=>e>t?"start":e<t?"end":"middle",I8=(e,t,r)=>it(typeof t=="function"?t(e):t,r,r*.8),k8=(e,t,r)=>{var{top:n,left:o,width:i,height:a}=t,s=MO(i,a),l=o+it(e.cx,i,i/2),c=n+it(e.cy,a,a/2),u=it(e.innerRadius,s,0),d=I8(r,e.outerRadius,s),p=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:p}},R8=(e,t)=>{var r=Ge(t-e),n=Math.min(Math.abs(t-e),360);return r*n},D8=(e,t)=>{if(f.isValidElement(e))return f.cloneElement(e,t);if(typeof e=="function")return e(t);var r=de("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,o=rc(t,P8);return f.createElement(jp,Yr({},o,{type:"linear",className:r}))},$8=(e,t,r)=>{if(f.isValidElement(e))return f.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),f.isValidElement(n)))return n;var o=de("recharts-pie-label-text",eC(e));return f.createElement(Ql,Yr({},t,{alignmentBaseline:"middle",className:o}),n)};function L8(e){var{sectors:t,props:r,showLabels:n}=e,{label:o,labelLine:i,dataKey:a}=r;if(!n||!o||!t)return null;var s=At(r),l=On(o),c=On(i),u=typeof o=="object"&&"offsetRadius"in o&&typeof o.offsetRadius=="number"&&o.offsetRadius||20,d=t.map((p,v)=>{var g=(p.startAngle+p.endAngle)/2,m=Re(p.cx,p.cy,p.outerRadius+u,g),h=Ie(Ie(Ie(Ie({},s),p),{},{stroke:"none"},l),{},{index:v,textAnchor:M8(m.x,p.cx)},m),b=Ie(Ie(Ie(Ie({},s),p),{},{fill:"none",stroke:p.fill},c),{},{index:v,points:[Re(p.cx,p.cy,p.outerRadius,g),m],key:"line"});return f.createElement(wt,{zIndex:De.label,key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},f.createElement(Ye,null,i&&D8(i,b),$8(o,h,be(p,a))))});return f.createElement(Ye,{className:"recharts-pie-labels"},d)}function F8(e){var{sectors:t,props:r,showLabels:n}=e,{label:o}=r;return typeof o=="object"&&o!=null&&"position"in o?f.createElement(Kv,{label:o}):f.createElement(L8,{sectors:t,props:r,showLabels:n})}function z8(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:o,shape:i,id:a}=e,s=J(qr),l=J(Dv),c=J(qW),{onMouseEnter:u,onClick:d,onMouseLeave:p}=o,v=rc(o,S8),g=Yv(u,o.dataKey,a),m=Xv(p),h=Zv(d,o.dataKey,a);return t==null||t.length===0?null:f.createElement(f.Fragment,null,t.map((b,x)=>{if(b?.startAngle===0&&b?.endAngle===0&&t.length!==1)return null;var w=c==null||c===a,P=String(x)===s&&(l==null||o.dataKey===l)&&w,O=s?n:null,S=r&&P?r:O,E=Ie(Ie({},b),{},{stroke:b.stroke,tabIndex:-1,[lO]:x,[cO]:a});return f.createElement(Ye,Yr({key:"sector-".concat(b?.startAngle,"-").concat(b?.endAngle,"-").concat(b.midAngle,"-").concat(x),tabIndex:-1,className:"recharts-pie-sector"},Oi(v,b,x),{onMouseEnter:g(b,x),onMouseLeave:m(b,x),onClick:h(b,x)}),f.createElement(qv,Yr({option:i??S,index:x,shapeType:"sector",isActive:P},E)))}))}function B8(e){var t,{pieSettings:r,displayedData:n,cells:o,offset:i}=e,{cornerRadius:a,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:d}=r,p=Math.abs(r.minAngle),v=R8(s,l),g=Math.abs(v),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,h=n.filter(S=>be(S,c,0)!==0).length,b=(g>=360?h:h-1)*m,x=g-h*p-b,w=n.reduce((S,E)=>{var C=be(E,c,0);return S+(q(C)?C:0)},0),P;if(w>0){var O;P=n.map((S,E)=>{var C=be(S,c,0),N=be(S,u,E),D=k8(r,i,S),$=(q(C)?C:0)/w,_,M=Ie(Ie({},S),o&&o[E]&&o[E].props);E?_=O.endAngle+Ge(v)*m*(C!==0?1:0):_=s;var k=_+Ge(v)*((C!==0?p:0)+$*x),V=(_+k)/2,B=(D.innerRadius+D.outerRadius)/2,K=[{name:N,value:C,payload:M,dataKey:c,type:d,graphicalItemId:r.id}],T=Re(D.cx,D.cy,B,V);return O=Ie(Ie(Ie(Ie({},r.presentationProps),{},{percent:$,cornerRadius:typeof a=="string"?parseFloat(a):a,name:N,tooltipPayload:K,midAngle:V,middleRadius:B,tooltipPosition:T},M),D),{},{value:C,dataKey:c,startAngle:_,endAngle:k,payload:M,paddingAngle:Ge(v)*m}),O})}return P}function V8(e){var{showLabels:t,sectors:r,children:n}=e,o=A.useMemo(()=>!t||!r?[]:r.map(i=>({value:i.value,payload:i.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:i.cx,cy:i.cy,innerRadius:i.innerRadius,outerRadius:i.outerRadius,startAngle:i.startAngle,endAngle:i.endAngle,clockWise:!1},fill:i.fill})),[r,t]);return f.createElement(wU,{value:t?o:void 0},n)}function W8(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,activeShape:c,inactiveShape:u,onAnimationStart:d,onAnimationEnd:p}=t,v=Ii(t,"recharts-pie-"),g=r.current,[m,h]=A.useState(!1),b=A.useCallback(()=>{typeof p=="function"&&p(),h(!1)},[p]),x=A.useCallback(()=>{typeof d=="function"&&d(),h(!0)},[d]);return f.createElement(V8,{showLabels:!m,sectors:o},f.createElement(Mi,{animationId:v,begin:a,duration:s,isActive:i,easing:l,onAnimationStart:x,onAnimationEnd:b,key:v},w=>{var P,O=[],S=o&&o[0],E=(P=S?.startAngle)!==null&&P!==void 0?P:0;return o?.forEach((C,N)=>{var D=g&&g[N],$=N>0?Cn(C,"paddingAngle",0):0;if(D){var _=Ae(D.endAngle-D.startAngle,C.endAngle-C.startAngle,w),M=Ie(Ie({},C),{},{startAngle:E+$,endAngle:E+_+$});O.push(M),E=M.endAngle}else{var{endAngle:k,startAngle:V}=C,B=Ae(0,k-V,w),K=Ie(Ie({},C),{},{startAngle:E+$,endAngle:E+B+$});O.push(K),E=K.endAngle}}),r.current=O,f.createElement(Ye,null,f.createElement(z8,{sectors:O,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),f.createElement(F8,{showLabels:!m,sectors:o,props:t}),t.children)}var K8={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:De.area};function U8(e){var{id:t}=e,r=rc(e,O8),{hide:n,className:o,rootTabIndex:i}=e,a=A.useMemo(()=>Gv(e.children,Ui),[e.children]),s=J(u=>FU(u,t,a)),l=A.useRef(null),c=de("recharts-pie",o);return n||s==null?(l.current=null,f.createElement(Ye,{tabIndex:i,className:c})):f.createElement(wt,{zIndex:e.zIndex},f.createElement(N8,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),f.createElement(Ye,{tabIndex:i,className:c},f.createElement(W8,{props:Ie(Ie({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function sC(e){var t=Le(e,K8),{id:r}=t,n=rc(t,E8),o=At(n);return f.createElement(Qv,{id:r,type:"pie"},i=>f.createElement(f.Fragment,null,f.createElement(w8,{type:"pie",id:i,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:o,maxRadius:t.maxRadius}),f.createElement(j8,Yr({},n,{id:i})),f.createElement(U8,Yr({},n,{id:i}))))}sC.displayName="Pie";var H8=["points"];function Kx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kx(Object(r),!0).forEach(function(n){G8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G8(e,t,r){return(t=q8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q8(e){var t=Y8(e,"string");return typeof t=="symbol"?t:t+""}function Y8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zs.apply(null,arguments)}function X8(e,t){if(e==null)return{};var r,n,o=Z8(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Z8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function J8(e){var{option:t,dotProps:r,className:n}=e;if(A.isValidElement(t))return A.cloneElement(t,r);if(typeof t=="function")return t(r);var o=de(n,typeof t!="boolean"?t.className:""),i=r??{},{points:a}=i,s=X8(i,H8);return f.createElement(XE,zs({},s,{className:o}))}function Q8(e,t){return e==null?!1:t?!0:e.length===1}function eH(e){var{points:t,dot:r,className:n,dotClassName:o,dataKey:i,baseProps:a,needClip:s,clipPathId:l,zIndex:c=De.scatter}=e;if(!Q8(t,r))return null;var u=nC(r),d=YD(r),p=t.map((g,m)=>{var h,b,x=dd(dd(dd({r:3},a),d),{},{index:m,cx:(h=g.x)!==null&&h!==void 0?h:void 0,cy:(b=g.y)!==null&&b!==void 0?b:void 0,dataKey:i,value:g.value,payload:g.payload,points:t});return f.createElement(J8,{key:"dot-".concat(m),option:r,dotProps:x,className:o})}),v={};return s&&l!=null&&(v.clipPath="url(#clipPath-".concat(u?"":"dots-").concat(l,")")),f.createElement(wt,{zIndex:c},f.createElement(Ye,zs({className:n},v),p))}function Ux(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Hx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(r),!0).forEach(function(n){tH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ux(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tH(e,t,r){return(t=rH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rH(e){var t=nH(e,"string");return typeof t=="symbol"?t:t+""}function nH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lC=0,oH={xAxis:{},yAxis:{},zAxis:{}},cC=xt({name:"cartesianAxis",initialState:oH,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Ce()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Ce()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Ce()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Ce()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Ce()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Ce()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Ce()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Ce()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Ce()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,o=e.yAxis[r];if(o){var i,a=o.widthHistory||[];if(a.length===3&&a[0]===a[2]&&n===a[1]&&n!==o.width&&Math.abs(n-((i=a[0])!==null&&i!==void 0?i:0))<=1)return;var s=[...a,n].slice(-3);e.yAxis[r]=Hx(Hx({},o),{},{width:n,widthHistory:s})}}}}),{addXAxis:iH,replaceXAxis:aH,removeXAxis:sH,addYAxis:lH,replaceYAxis:cH,removeYAxis:uH,addZAxis:Pte,replaceZAxis:Ste,removeZAxis:Ote,updateYAxisWidth:dH}=cC.actions,fH=cC.reducer,pH=j([Be],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),vH=j([pH,Tr,jr],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),em=()=>J(vH),mH=()=>J(QW);function Gx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gx(Object(r),!0).forEach(function(n){hH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hH(e,t,r){return(t=gH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gH(e){var t=yH(e,"string");return typeof t=="symbol"?t:t+""}function yH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bH=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:o,dataKey:i,clipPath:a}=e;if(o===!1||t.x==null||t.y==null)return null;var s={index:r,dataKey:i,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=fd(fd(fd({},s),On(o)),fp(o)),c;return A.isValidElement(o)?c=A.cloneElement(o,l):typeof o=="function"?c=o(l):c=f.createElement(XE,l),f.createElement(Ye,{className:"recharts-active-dot",clipPath:a},c)};function xH(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:o,clipPath:i,zIndex:a=De.activeDot}=e,s=J(qr),l=mH();if(t==null||l==null)return null;var c=t.find(u=>l.includes(u.payload));return Te(c)?null:f.createElement(wt,{zIndex:a},f.createElement(bH,{point:c,childIndex:Number(s),mainColor:r,dataKey:o,activeDot:n,clipPath:i}))}var qx=(e,t,r)=>{var n=r??e;if(!Te(n))return it(n,t,0)},wH=(e,t,r)=>{var n={},o=e.filter(Kl),i=e.filter(c=>c.stackId==null),a=o.reduce((c,u)=>{var d=c[u.stackId];return d==null&&(d=[]),d.push(u),c[u.stackId]=d,c},n),s=Object.entries(a).map(c=>{var u,[d,p]=c,v=p.map(m=>m.dataKey),g=qx(t,r,(u=p[0])===null||u===void 0?void 0:u.barSize);return{stackId:d,dataKeys:v,barSize:g}}),l=i.map(c=>{var u=[c.dataKey].filter(p=>p!=null),d=qx(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...s,...l]};function Yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Na(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){PH(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 PH(e,t,r){return(t=SH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SH(e){var t=OH(e,"string");return typeof t=="symbol"?t:t+""}function OH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EH(e,t,r,n,o){var i,a=n.length;if(!(a<1)){var s=it(e,r,0,!0),l,c=[];if(ce((i=n[0])===null||i===void 0?void 0:i.barSize)){var u=!1,d=r/a,p=n.reduce((x,w)=>x+(w.barSize||0),0);p+=(a-1)*s,p>=r&&(p-=(a-1)*s,s=0),p>=r&&d>0&&(u=!0,d*=.9,p=a*d);var v=(r-p)/2>>0,g={offset:v-s,size:0};l=n.reduce((x,w)=>{var P,O={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:g.offset+g.size+s,size:u?d:(P=w.barSize)!==null&&P!==void 0?P:0}},S=[...x,O];return g=O.position,S},c)}else{var m=it(t,r,0,!0);r-2*m-(a-1)*s<=0&&(s=0);var h=(r-2*m-(a-1)*s)/a;h>1&&(h>>=0);var b=ce(o)?Math.min(h,o):h;l=n.reduce((x,w,P)=>[...x,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(h+s)*P+(h-b)/2,size:b}}],c)}return l}}var CH=(e,t,r,n,o,i,a)=>{var s=Te(a)?t:a,l=EH(r,n,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>Na(Na({},c),{},{position:Na(Na({},c.position),{},{offset:c.position.offset-o/2})}))),l},AH=(e,t)=>{var r=cv(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var o=e[n];if(o){var{stackedData:i}=o;if(i)return i.find(a=>a.key===r)}}}},_H=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function TH(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ce(e.zIndex)?e.zIndex:t}var uC=e=>{var{chartData:t}=e,r=Pe(),n=ct();return A.useEffect(()=>n?()=>{}:(r(ex(t)),()=>{r(ex(void 0))}),[t,r,n]),null},Xx={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},dC=xt({name:"brush",initialState:Xx,reducers:{setBrushSettings(e,t){return t.payload==null?Xx:t.payload}}}),{setBrushSettings:Ete}=dC.actions,jH=dC.reducer;function NH(e){return(e%180+180)%180}var MH=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=NH(o),a=i*Math.PI/180,s=Math.atan(n/r),l=a>s&&a<Math.PI-s?n/Math.sin(a):r/Math.cos(a);return Math.abs(l)},IH={dots:[],areas:[],lines:[]},fC=xt({name:"referenceElements",initialState:IH,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Bt(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Bt(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Bt(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:Cte,removeDot:Ate,addArea:_te,removeArea:Tte,addLine:jte,removeLine:Nte}=fC.actions,kH=fC.reducer,RH=A.createContext(void 0),DH=e=>{var{children:t}=e,[r]=A.useState("".concat(Zo("recharts"),"-clip")),n=em();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return f.createElement(RH.Provider,{value:r},f.createElement("defs",null,f.createElement("clipPath",{id:r},f.createElement("rect",{x:o,y:i,height:s,width:a}))),t)};function pC(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t){var o=e[n];o!==void 0&&r.push(o)}return r}function $H(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return MH(n,r)}function LH(e,t,r){var n=r==="width",{x:o,y:i,width:a,height:s}=e;return t===1?{start:n?o:i,end:n?o+a:i+s}:{start:n?o+a:i+s,end:n?o:i}}function di(e,t,r,n,o){if(e*t<e*n||e*t>e*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function FH(e,t){return pC(e,t+1)}function zH(e,t,r,n,o){for(var i=(n||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,d=function(){var g=n?.[l];if(g===void 0)return{v:pC(n,c)};var m=l,h,b=()=>(h===void 0&&(h=r(g,m)),h),x=g.coordinate,w=l===0||di(e,x,b,u,s);w||(l=0,u=a,c+=1),w&&(u=x+e*(b()/2+o),l+=c)},p;c<=i.length;)if(p=d(),p)return p.v;return[]}function BH(e,t,r,n,o){var i=(n||[]).slice(),a=i.length;if(a===0)return[];for(var{start:s,end:l}=t,c=1;c<=a;c++){for(var u=(a-1)%c,d=s,p=!0,v=function(){var P=n[m];if(P==null)return 0;var O=m,S,E=()=>(S===void 0&&(S=r(P,O)),S),C=P.coordinate,N=m===u||di(e,C,E,d,l);if(!N)return p=!1,1;N&&(d=C+e*(E()/2+o))},g,m=u;m<a&&(g=v(),!(g!==0&&g===1));m+=c);if(p){for(var h=[],b=u;b<a;b+=c){var x=n[b];x!=null&&h.push(x)}return h}}return[]}function Zx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zx(Object(r),!0).forEach(function(n){VH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VH(e,t,r){return(t=WH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WH(e){var t=KH(e,"string");return typeof t=="symbol"?t:t+""}function KH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UH(e,t,r,n,o){for(var i=(n||[]).slice(),a=i.length,{start:s}=t,{end:l}=t,c=function(p){var v=i[p];if(v==null)return 1;var g=v,m,h=()=>(m===void 0&&(m=r(v,p)),m);if(p===a-1){var b=e*(g.coordinate+e*h()/2-l);i[p]=g=nt(nt({},g),{},{tickCoord:b>0?g.coordinate-b*e:g.coordinate})}else i[p]=g=nt(nt({},g),{},{tickCoord:g.coordinate});if(g.tickCoord!=null){var x=di(e,g.tickCoord,h,s,l);x&&(l=g.tickCoord-e*(h()/2+o),i[p]=nt(nt({},g),{},{isShow:!0}))}},u=a-1;u>=0;u--)c(u);return i}function HH(e,t,r,n,o,i){var a=(n||[]).slice(),s=a.length,{start:l,end:c}=t;if(i){var u=n[s-1];if(u!=null){var d=r(u,s-1),p=e*(u.coordinate+e*d/2-c);if(a[s-1]=u=nt(nt({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),u.tickCoord!=null){var v=di(e,u.tickCoord,()=>d,l,c);v&&(c=u.tickCoord-e*(d/2+o),a[s-1]=nt(nt({},u),{},{isShow:!0}))}}}for(var g=i?s-1:s,m=function(x){var w=a[x];if(w==null)return 1;var P=w,O,S=()=>(O===void 0&&(O=r(w,x)),O);if(x===0){var E=e*(P.coordinate-e*S()/2-l);a[x]=P=nt(nt({},P),{},{tickCoord:E<0?P.coordinate-E*e:P.coordinate})}else a[x]=P=nt(nt({},P),{},{tickCoord:P.coordinate});if(P.tickCoord!=null){var C=di(e,P.tickCoord,S,l,c);C&&(l=P.tickCoord+e*(S()/2+o),a[x]=nt(nt({},P),{},{isShow:!0}))}},h=0;h<g;h++)m(h);return a}function tm(e,t,r){var{tick:n,ticks:o,viewBox:i,minTickGap:a,orientation:s,interval:l,tickFormatter:c,unit:u,angle:d}=e;if(!o||!o.length||!n)return[];if(q(l)||Il.isSsr){var p;return(p=FH(o,q(l)?l:0))!==null&&p!==void 0?p:[]}var v=[],g=s==="top"||s==="bottom"?"width":"height",m=u&&g==="width"?Xo(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=(O,S)=>{var E=typeof c=="function"?c(O.value,S):O.value;return g==="width"?$H(Xo(E,{fontSize:t,letterSpacing:r}),m,d):Xo(E,{fontSize:t,letterSpacing:r})[g]},b=o[0],x=o[1],w=o.length>=2&&b!=null&&x!=null?Ge(x.coordinate-b.coordinate):1,P=LH(i,w,g);return l==="equidistantPreserveStart"?zH(w,P,h,o,a):l==="equidistantPreserveEnd"?BH(w,P,h,o,a):(l==="preserveStart"||l==="preserveStartEnd"?v=HH(w,P,h,o,a,l==="preserveStartEnd"):v=UH(w,P,h,o,a),v.filter(O=>O.isShow))}var GH=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:o=0,tickMargin:i=0}=e,a=0;if(t){Array.from(t).forEach(u=>{if(u){var d=u.getBoundingClientRect();d.width>a&&(a=d.width)}});var s=r?r.getBoundingClientRect().width:0,l=o+i,c=a+l+s+(r?n:0);return Math.round(c)}return 0},qH=["axisLine","width","height","className","hide","ticks","axisType"];function YH(e,t){if(e==null)return{};var r,n,o=XH(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function XH(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mn.apply(null,arguments)}function Jx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jx(Object(r),!0).forEach(function(n){ZH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZH(e,t,r){return(t=JH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JH(e){var t=QH(e,"string");return typeof t=="symbol"?t:t+""}function QH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gr={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",zIndex:De.axis};function eG(e){var{x:t,y:r,width:n,height:o,orientation:i,mirror:a,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var c=Ne(Ne(Ne({},l),At(s)),{},{fill:"none"});if(i==="top"||i==="bottom"){var u=+(i==="top"&&!a||i==="bottom"&&a);c=Ne(Ne({},c),{},{x1:t,y1:r+u*o,x2:t+n,y2:r+u*o})}else{var d=+(i==="left"&&!a||i==="right"&&a);c=Ne(Ne({},c),{},{x1:t+d*n,y1:r,x2:t+d*n,y2:r+o})}return f.createElement("line",Mn({},c,{className:de("recharts-cartesian-axis-line",Cn(s,"className"))}))}function tG(e,t,r,n,o,i,a,s,l){var c,u,d,p,v,g,m=s?-1:1,h=e.tickSize||a,b=q(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":c=u=e.coordinate,p=r+ +!s*o,d=p-m*h,g=d-m*l,v=b;break;case"left":d=p=e.coordinate,u=t+ +!s*n,c=u-m*h,v=c-m*l,g=b;break;case"right":d=p=e.coordinate,u=t+ +s*n,c=u+m*h,v=c+m*l,g=b;break;default:c=u=e.coordinate,p=r+ +s*o,d=p+m*h,g=d+m*l,v=b;break}return{line:{x1:c,y1:d,x2:u,y2:p},tick:{x:v,y:g}}}function rG(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function nG(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function oG(e){var{option:t,tickProps:r,value:n}=e,o,i=de(r.className,"recharts-cartesian-axis-tick-value");if(f.isValidElement(t))o=f.cloneElement(t,Ne(Ne({},r),{},{className:i}));else if(typeof t=="function")o=t(Ne(Ne({},r),{},{className:i}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=de(a,eC(t))),o=f.createElement(Ql,Mn({},r,{className:a}),n)}return o}var iG=A.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:o,stroke:i,tickFormatter:a,unit:s,padding:l,tickTextProps:c,orientation:u,mirror:d,x:p,y:v,width:g,height:m,tickSize:h,tickMargin:b,fontSize:x,letterSpacing:w,getTicksConfig:P,events:O,axisType:S}=e,E=tm(Ne(Ne({},P),{},{ticks:r}),x,w),C=rG(u,d),N=nG(u,d),D=At(P),$=On(n),_={};typeof o=="object"&&(_=o);var M=Ne(Ne({},D),{},{fill:"none"},_),k=E.map(K=>Ne({entry:K},tG(K,p,v,g,m,u,h,d,b))),V=k.map(K=>{var{entry:T,line:I}=K;return f.createElement(Ye,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},o&&f.createElement("line",Mn({},M,I,{className:de("recharts-cartesian-axis-tick-line",Cn(o,"className"))})))}),B=k.map((K,T)=>{var I,G,{entry:ee,tick:re}=K,oe=Ne(Ne(Ne(Ne({verticalAnchor:N},D),{},{textAnchor:C,stroke:"none",fill:i},re),{},{index:T,payload:ee,visibleTicksCount:E.length,tickFormatter:a,padding:l},c),{},{angle:(I=(G=c?.angle)!==null&&G!==void 0?G:D.angle)!==null&&I!==void 0?I:0}),ne=Ne(Ne({},oe),$);return f.createElement(Ye,Mn({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(ee.value,"-").concat(ee.coordinate,"-").concat(ee.tickCoord)},Oi(O,ee,T)),n&&f.createElement(oG,{option:n,tickProps:ne,value:"".concat(typeof a=="function"?a(ee.value,T):ee.value).concat(s||"")}))});return f.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(S,"-ticks")},B.length>0&&f.createElement(wt,{zIndex:De.label},f.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(S,"-tick-labels"),ref:t},B)),V.length>0&&f.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(S,"-tick-lines")},V))}),aG=A.forwardRef((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l}=e,c=YH(e,qH),[u,d]=A.useState(""),[p,v]=A.useState(""),g=A.useRef(null);A.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var h;return GH({ticks:g.current,label:(h=e.labelRef)===null||h===void 0?void 0:h.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=A.useCallback(h=>{if(h){var b=h.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=b;var x=b[0];if(x){var w=window.getComputedStyle(x),P=w.fontSize,O=w.letterSpacing;(P!==u||O!==p)&&(d(P),v(O))}}},[u,p]);return a||n!=null&&n<=0||o!=null&&o<=0?null:f.createElement(wt,{zIndex:e.zIndex},f.createElement(Ye,{className:de("recharts-cartesian-axis",i)},f.createElement(eG,{x:e.x,y:e.y,width:n,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:At(e)}),f.createElement(iG,{ref:m,axisType:l,events:c,fontSize:u,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y}),f.createElement(eU,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},f.createElement(uU,{label:e.label,labelRef:e.labelRef}),e.children)))}),rm=f.forwardRef((e,t)=>{var r=Le(e,gr);return f.createElement(aG,Mn({},r,{ref:t}))});rm.displayName="CartesianAxis";var sG=["x1","y1","x2","y2","key"],lG=["offset"],cG=["xAxisId","yAxisId"],uG=["xAxisId","yAxisId"];function Qx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qx(Object(r),!0).forEach(function(n){dG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dG(e,t,r){return(t=fG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fG(e){var t=pG(e,"string");return typeof t=="symbol"?t:t+""}function pG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gn.apply(null,arguments)}function Bs(e,t){if(e==null)return{};var r,n,o=vG(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function vG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var mG=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:o,width:i,height:a,ry:s}=e;return f.createElement("rect",{x:n,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function vC(e){var{option:t,lineItemProps:r}=e,n;if(f.isValidElement(t))n=f.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var o,{x1:i,y1:a,x2:s,y2:l,key:c}=r,u=Bs(r,sG),d=(o=At(u))!==null&&o!==void 0?o:{},{offset:p}=d,v=Bs(d,lG);n=f.createElement("line",gn({},v,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function hG(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Bs(e,cG),l=o.map((c,u)=>{var d=ot(ot({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return f.createElement(vC,{key:"line-".concat(u),option:n,lineItemProps:d})});return f.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function gG(e){var{y:t,height:r,vertical:n=!0,verticalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Bs(e,uG),l=o.map((c,u)=>{var d=ot(ot({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return f.createElement(vC,{option:n,lineItemProps:d,key:"line-".concat(u)})});return f.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function yG(e){var{horizontalFill:t,fillOpacity:r,x:n,y:o,width:i,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length||s==null)return null;var c=s.map(d=>Math.round(d+o-o)).sort((d,p)=>d-p);o!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var v=c[p+1],g=v==null,m=g?o+a-d:v-d;if(m<=0)return null;var h=p%t.length;return f.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:m,width:i,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return f.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function bG(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:o,y:i,width:a,height:s,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var c=l.map(d=>Math.round(d+o-o)).sort((d,p)=>d-p);o!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var v=c[p+1],g=v==null,m=g?o+a-d:v-d;if(m<=0)return null;var h=p%r.length;return f.createElement("rect",{key:"react-".concat(p),x:d,y:i,width:m,height:s,stroke:"none",fill:r[h],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return f.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var xG=(e,t)=>{var{xAxis:r,width:n,height:o,offset:i}=e;return iO(tm(ot(ot(ot({},gr),r),{},{ticks:aO(r),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},wG=(e,t)=>{var{yAxis:r,width:n,height:o,offset:i}=e;return iO(tm(ot(ot(ot({},gr),r),{},{ticks:aO(r),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},PG={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:De.grid};function nm(e){var t=Cp(),r=Ap(),n=pO(),o=ot(ot({},Le(e,PG)),{},{x:q(e.x)?e.x:n.left,y:q(e.y)?e.y:n.top,width:q(e.width)?e.width:n.width,height:q(e.height)?e.height:n.height}),{xAxisId:i,yAxisId:a,x:s,y:l,width:c,height:u,syncWithTicks:d,horizontalValues:p,verticalValues:v}=o,g=ct(),m=J(N=>Vb(N,"xAxis",i,g)),h=J(N=>Vb(N,"yAxis",a,g));if(!ar(c)||!ar(u)||!q(s)||!q(l))return null;var b=o.verticalCoordinatesGenerator||xG,x=o.horizontalCoordinatesGenerator||wG,{horizontalPoints:w,verticalPoints:P}=o;if((!w||!w.length)&&typeof x=="function"){var O=p&&p.length,S=x({yAxis:h?ot(ot({},h),{},{ticks:O?p:h.ticks}):void 0,width:t??c,height:r??u,offset:n},O?!0:d);ps(Array.isArray(S),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof S,"]")),Array.isArray(S)&&(w=S)}if((!P||!P.length)&&typeof b=="function"){var E=v&&v.length,C=b({xAxis:m?ot(ot({},m),{},{ticks:E?v:m.ticks}):void 0,width:t??c,height:r??u,offset:n},E?!0:d);ps(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(P=C)}return f.createElement(wt,{zIndex:o.zIndex},f.createElement("g",{className:"recharts-cartesian-grid"},f.createElement(mG,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),f.createElement(yG,gn({},o,{horizontalPoints:w})),f.createElement(bG,gn({},o,{verticalPoints:P})),f.createElement(hG,gn({},o,{offset:n,horizontalPoints:w,xAxis:m,yAxis:h})),f.createElement(gG,gn({},o,{offset:n,verticalPoints:P,xAxis:m,yAxis:h}))))}nm.displayName="CartesianGrid";var SG={},mC=xt({name:"errorBars",initialState:SG,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:o}=t.payload;e[r]&&(e[r]=e[r].map(i=>i.dataKey===n.dataKey&&i.direction===n.direction?o:i))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==n.dataKey||o.direction!==n.direction))}}}),{addErrorBar:Mte,replaceErrorBar:Ite,removeErrorBar:kte}=mC.actions,OG=mC.reducer,EG=["children"];function CG(e,t){if(e==null)return{};var r,n,o=AG(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function AG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var _G={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},TG=A.createContext(_G);function hC(e){var{children:t}=e,r=CG(e,EG);return f.createElement(TG.Provider,{value:r},t)}function om(e,t){var r,n,o=J(c=>Ir(c,e)),i=J(c=>kr(c,t)),a=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:Ke.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:Ue.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function gC(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=em(),{needClipX:i,needClipY:a,needClip:s}=om(t,r);if(!s||!o)return null;var{x:l,y:c,width:u,height:d}=o;return f.createElement("clipPath",{id:"clipPath-".concat(n)},f.createElement("rect",{x:i?l:l-u/2,y:a?c:c-d/2,width:i?u:u*2,height:a?d:d*2}))}var yC=(e,t,r,n)=>Gr(e,"xAxis",t,n),bC=(e,t,r,n)=>Hr(e,"xAxis",t,n),xC=(e,t,r,n)=>Gr(e,"yAxis",r,n),wC=(e,t,r,n)=>Hr(e,"yAxis",r,n),jG=j([ve,yC,xC,bC,wC],(e,t,r,n,o)=>_r(e,"xAxis")?co(t,n,!1):co(r,o,!1)),NG=(e,t,r,n,o)=>o;function MG(e){return e.type==="line"}var IG=j([Gl,NG],(e,t)=>e.filter(MG).find(r=>r.id===t)),kG=j([ve,yC,xC,bC,wC,IG,jG,ev],(e,t,r,n,o,i,a,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(!(i==null||t==null||r==null||n==null||o==null||n.length===0||o.length===0||a==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:d,data:p}=i,v;if(p!=null&&p.length>0?v=p:v=l?.slice(c,u+1),v!=null)return Pq({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:o,dataKey:d,bandSize:a,displayedData:v})}});function RG(e){var t=On(e),r=3,n=2;if(t!=null){var{r:o,strokeWidth:i}=t,a=Number(o),s=Number(i);return(Number.isNaN(a)||a<0)&&(a=r),(Number.isNaN(s)||s<0)&&(s=n),{r:a,strokeWidth:s}}return{r,strokeWidth:n}}var Ma={exports:{}},pd={};var ew;function DG(){if(ew)return pd;ew=1;var e=A;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return pd.useSyncExternalStoreWithSelector=function(l,c,u,d,p){var v=o(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=a(function(){function h(O){if(!b){if(b=!0,x=O,O=d(O),p!==void 0&&g.hasValue){var S=g.value;if(p(S,O))return w=S}return w=O}if(S=w,r(x,O))return S;var E=d(O);return p!==void 0&&p(S,E)?(x=O,S):(x=O,w=E)}var b=!1,x,w,P=u===void 0?null:u;return[function(){return h(c())},P===null?void 0:function(){return h(P())}]},[c,u,d,p]);var m=n(l,v[0],v[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},pd}var vd={};var tw;function $G(){return tw||(tw=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=A,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,a=t.useMemo,s=t.useDebugValue;vd.useSyncExternalStoreWithSelector=function(l,c,u,d,p){var v=o(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=a(function(){function h(O){if(!b){if(b=!0,x=O,O=d(O),p!==void 0&&g.hasValue){var S=g.value;if(p(S,O))return w=S}return w=O}if(S=w,r(x,O))return S;var E=d(O);return p!==void 0&&p(S,E)?(x=O,S):(x=O,w=E)}var b=!1,x,w,P=u===void 0?null:u;return[function(){return h(c())},P===null?void 0:function(){return h(P())}]},[c,u,d,p]);var m=n(l,v[0],v[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),vd}var rw;function LG(){return rw||(rw=1,process.env.NODE_ENV==="production"?Ma.exports=DG():Ma.exports=$G()),Ma.exports}LG();function FG(e){e()}function zG(){let e=null,t=null;return{clear(){e=null,t=null},notify(){FG(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var nw={notify(){},get:()=>[]};function BG(e,t){let r,n=nw,o=0,i=!1;function a(m){u();const h=n.subscribe(m);let b=!1;return()=>{b||(b=!0,h(),d())}}function s(){n.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return i}function u(){o++,r||(r=e.subscribe(l),n=zG())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=nw)}function p(){i||(i=!0,u())}function v(){i&&(i=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>n};return g}var VG=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",WG=VG(),KG=()=>typeof navigator<"u"&&navigator.product==="ReactNative",UG=KG(),HG=()=>WG||UG?f.useLayoutEffect:f.useEffect,GG=HG();function ow(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function qG(e,t){if(ow(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!ow(e[r[o]],t[r[o]]))return!1;return!0}var YG=Symbol.for("react-redux-context"),XG=typeof globalThis<"u"?globalThis:{};function ZG(){if(!f.createContext)return{};const e=XG[YG]??=new Map;let t=e.get(f.createContext);return t||(t=f.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(f.createContext,t)),t}var JG=ZG();function QG(e){const{children:t,context:r,serverState:n,store:o}=e,i=f.useMemo(()=>{const l=BG(o),c={store:o,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:d="once"}=e;return Object.assign(c,{stabilityCheck:d,identityFunctionCheck:u})}},[o,n]),a=f.useMemo(()=>o.getState(),[o]);GG(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]);const s=r||JG;return f.createElement(s.Provider,{value:i},t)}var eq=QG,tq=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function rq(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function nc(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(tq.has(n)){if(e[n]==null&&t[n]==null)continue;if(!qG(e[n],t[n]))return!1}else if(!rq(e[n],t[n]))return!1;return!0}var nq=["id"],oq=["type","layout","connectNulls","needClip","shape"],iq=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fi.apply(null,arguments)}function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Zt(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){aq(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 aq(e,t,r){return(t=sq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sq(e){var t=lq(e,"string");return typeof t=="symbol"?t:t+""}function lq(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function im(e,t){if(e==null)return{};var r,n,o=cq(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function cq(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var uq=e=>{var{dataKey:t,name:r,stroke:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:wo(r,t),payload:e}]},dq=f.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:o,fill:i,name:a,hide:s,unit:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:r,getPosition:Fn,settings:{stroke:n,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:wo(a,t),hide:s,type:c,color:n,unit:l,graphicalItemId:u}};return f.createElement(Jv,{tooltipEntrySettings:d})}),PC=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function fq(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],o=0;o<t;++o)n=[...n,...r];return n}var pq=(e,t,r)=>{var n=r.reduce((v,g)=>v+g);if(!n)return PC(t,e);for(var o=Math.floor(e/n),i=e%n,a=t-e,s=[],l=0,c=0;l<r.length;c+=(u=r[l])!==null&&u!==void 0?u:0,++l){var u,d=r[l];if(d!=null&&c+d>i){s=[...r.slice(0,l),i-c];break}}var p=s.length%2===0?[0,a]:[a];return[...fq(r,o),...s,...p].map(v=>"".concat(v,"px")).join(", ")};function vq(e){var{clipPathId:t,points:r,props:n}=e,{dot:o,dataKey:i,needClip:a}=n,{id:s}=n,l=im(n,nq),c=At(l);return f.createElement(eH,{points:r,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:c,needClip:a,clipPathId:t})}function mq(e){var{showLabels:t,children:r,points:n}=e,o=A.useMemo(()=>n?.map(i=>{var a,s,l={x:(a=i.x)!==null&&a!==void 0?a:0,y:(s=i.y)!==null&&s!==void 0?s:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Zt(Zt({},l),{},{value:i.value,payload:i.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[n]);return f.createElement(qE,{value:t?o:void 0},r)}function aw(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:o,props:i}=e,{type:a,layout:s,connectNulls:l,needClip:c,shape:u}=i,d=im(i,oq),p=Zt(Zt({},mt(d)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:a,layout:s,connectNulls:l,strokeDasharray:o??i.strokeDasharray});return f.createElement(f.Fragment,null,n?.length>1&&f.createElement(qv,fi({shapeType:"curve",option:u},p,{pathRef:r})),f.createElement(vq,{points:n,clipPathId:t,props:i}))}function hq(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function gq(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:o,longestAnimatedLengthRef:i}=e,{points:a,strokeDasharray:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:d,animateNewValues:p,width:v,height:g,onAnimationEnd:m,onAnimationStart:h}=r,b=o.current,x=Ii(a,"recharts-line-"),w=A.useRef(x),[P,O]=A.useState(!1),S=!P,E=A.useCallback(()=>{typeof m=="function"&&m(),O(!1)},[m]),C=A.useCallback(()=>{typeof h=="function"&&h(),O(!0)},[h]),N=hq(n.current),D=A.useRef(0);w.current!==x&&(D.current=i.current,w.current=x);var $=D.current;return f.createElement(mq,{points:a,showLabels:S},r.children,f.createElement(Mi,{animationId:x,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:E,onAnimationStart:C,key:x},_=>{var M=Ae($,N+$,_),k=Math.min(M,N),V;if(l)if(s){var B="".concat(s).split(/[,\s]+/gim).map(I=>parseFloat(I));V=pq(k,N,B)}else V=PC(N,k);else V=s==null?void 0:String(s);if(_>0&&N>0&&(o.current=a,i.current=Math.max(i.current,k)),b){var K=b.length/a.length,T=_===1?a:a.map((I,G)=>{var ee=Math.floor(G*K);if(b[ee]){var re=b[ee];return Zt(Zt({},I),{},{x:Ae(re.x,I.x,_),y:Ae(re.y,I.y,_)})}return p?Zt(Zt({},I),{},{x:Ae(v*2,I.x,_),y:Ae(g/2,I.y,_)}):Zt(Zt({},I),{},{x:I.x,y:I.y})});return o.current=T,f.createElement(aw,{props:r,points:T,clipPathId:t,pathRef:n,strokeDasharray:V})}return f.createElement(aw,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:V})}),f.createElement(Kv,{label:r.label}))}function yq(e){var{clipPathId:t,props:r}=e,n=A.useRef(null),o=A.useRef(0),i=A.useRef(null);return f.createElement(gq,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:o,pathRef:i})}var bq=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:be(e.payload,t)}};class xq extends A.Component{render(){var{hide:t,dot:r,points:n,className:o,xAxisId:i,yAxisId:a,top:s,left:l,width:c,height:u,id:d,needClip:p,zIndex:v}=this.props;if(t)return null;var g=de("recharts-line",o),m=d,{r:h,strokeWidth:b}=RG(r),x=nC(r),w=h*2+b,P=p?"url(#clipPath-".concat(x?"":"dots-").concat(m,")"):void 0;return f.createElement(wt,{zIndex:v},f.createElement(Ye,{className:g},p&&f.createElement("defs",null,f.createElement(gC,{clipPathId:m,xAxisId:i,yAxisId:a}),!x&&f.createElement("clipPath",{id:"clipPath-dots-".concat(m)},f.createElement("rect",{x:l-w/2,y:s-w/2,width:c+w,height:u+w}))),f.createElement(hC,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:bq,errorBarOffset:0},f.createElement(yq,{props:this.props,clipPathId:m}))),f.createElement(xH,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:P}))}}var SC={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:De.line,type:"linear"};function wq(e){var t=Le(e,SC),{activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:d,legendType:p,xAxisId:v,yAxisId:g,id:m}=t,h=im(t,iq),{needClip:b}=om(v,g),x=em(),w=zn(),P=ct(),O=J(D=>kG(D,v,g,P,m));if(w!=="horizontal"&&w!=="vertical"||O==null||x==null)return null;var{height:S,width:E,x:C,y:N}=x;return f.createElement(xq,fi({},h,{id:m,connectNulls:s,dot:l,activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,isAnimationActive:u,hide:c,label:d,legendType:p,xAxisId:v,yAxisId:g,points:O,layout:w,height:S,width:E,left:C,top:N,needClip:b}))}function Pq(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,dataKey:a,bandSize:s,displayedData:l}=e;return l.map((c,u)=>{var d=be(c,a);if(t==="horizontal"){var p=Fg({axis:r,ticks:o,bandSize:s,entry:c,index:u}),v=Te(d)?null:n.scale.map(d);return{x:p,y:v??null,value:d,payload:c}}var g=Te(d)?null:r.scale.map(d),m=Fg({axis:n,ticks:i,bandSize:s,entry:c,index:u});return g==null||m==null?null:{x:g,y:m,value:d,payload:c}}).filter(Boolean)}function Sq(e){var t=Le(e,SC),r=ct();return f.createElement(Qv,{id:t.id,type:"line"},n=>f.createElement(f.Fragment,null,f.createElement(oC,{legendPayload:uq(t)}),f.createElement(dq,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),f.createElement(aC,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),f.createElement(wq,fi({},t,{id:n}))))}var OC=f.memo(Sq,nc);OC.displayName="Line";function Wn(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:lC}function Kn(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:lC}var Oq=process.env.NODE_ENV==="production",md="Invariant failed";function Eq(e,t){if(Oq)throw new Error(md);var r=typeof t=="function"?t():t,n=r?"".concat(md,": ").concat(r):md;throw new Error(n)}function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bf.apply(null,arguments)}function Vs(e){return f.createElement(qv,bf({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var Cq=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,o)=>{if(q(t))return t;var i=q(n)||Te(n);return i?t(n,o):(i||Eq(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},Aq=(e,t,r)=>r,_q=(e,t)=>t,Hi=j([Gl,_q],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),Tq=j([Hi],e=>e?.maxBarSize),jq=(e,t,r,n)=>n,Nq=j([ve,Gl,Wn,Kn,Aq],(e,t,r,n,o)=>t.filter(i=>e==="horizontal"?i.xAxisId===r:i.yAxisId===n).filter(i=>i.isPanorama===o).filter(i=>i.hide===!1).filter(i=>i.type==="bar")),Mq=(e,t,r)=>{var n=ve(e),o=Wn(e,t),i=Kn(e,t);if(!(o==null||i==null))return n==="horizontal"?ff(e,"yAxis",i,r):ff(e,"xAxis",o,r)},Iq=(e,t)=>{var r=ve(e),n=Wn(e,t),o=Kn(e,t);if(!(n==null||o==null))return r==="horizontal"?Bb(e,"xAxis",n):Bb(e,"yAxis",o)},kq=j([Nq,q5,Iq],wH),Rq=(e,t,r)=>{var n,o,i=Hi(e,t);if(i==null)return 0;var a=Wn(e,t),s=Kn(e,t);if(a==null||s==null)return 0;var l=ve(e),c=A1(e),{maxBarSize:u}=i,d=Te(u)?c:u,p,v;return l==="horizontal"?(p=Gr(e,"xAxis",a,r),v=Hr(e,"xAxis",a,r)):(p=Gr(e,"yAxis",s,r),v=Hr(e,"yAxis",s,r)),(n=(o=co(p,v,!0))!==null&&o!==void 0?o:d)!==null&&n!==void 0?n:0},EC=(e,t,r)=>{var n=ve(e),o=Wn(e,t),i=Kn(e,t);if(!(o==null||i==null)){var a,s;return n==="horizontal"?(a=Gr(e,"xAxis",o,r),s=Hr(e,"xAxis",o,r)):(a=Gr(e,"yAxis",i,r),s=Hr(e,"yAxis",i,r)),co(a,s)}},Dq=j([kq,A1,G5,_1,Rq,EC,Tq],CH),$q=(e,t,r)=>{var n=Wn(e,t);if(n!=null)return Gr(e,"xAxis",n,r)},Lq=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Gr(e,"yAxis",n,r)},Fq=(e,t,r)=>{var n=Wn(e,t);if(n!=null)return Hr(e,"xAxis",n,r)},zq=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Hr(e,"yAxis",n,r)},Bq=j([Dq,Hi],_H),Vq=j([Mq,Hi],AH),Wq=j([Be,Pp,$q,Lq,Fq,zq,Bq,ve,F5,EC,Vq,Hi,jq],(e,t,r,n,o,i,a,s,l,c,u,d,p)=>{var{chartData:v,dataStartIndex:g,dataEndIndex:m}=l;if(!(d==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||r==null||n==null||o==null||i==null||c==null)){var{data:h}=d,b;if(h!=null&&h.length>0?b=h:b=v?.slice(g,m+1),b!=null)return g9({layout:s,barSettings:d,pos:a,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,stackedData:u,displayedData:b,offset:e,cells:p,dataStartIndex:g})}}),Kq=["index"];function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xf.apply(null,arguments)}function Uq(e,t){if(e==null)return{};var r,n,o=Hq(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Hq(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var CC=A.createContext(void 0),Gq=e=>{var t=A.useContext(CC);if(t!=null)return t.stackId;if(e!=null)return MF(e)},qq=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),Yq=e=>{var t=A.useContext(CC);if(t!=null){var{stackId:r}=t;return"url(#".concat(qq(r,e),")")}},AC=e=>{var{index:t}=e,r=Uq(e,Kq),n=Yq(t);return f.createElement(Ye,xf({className:"recharts-bar-stack-layer",clipPath:n},r))},Xq=["onMouseEnter","onMouseLeave","onClick"],Zq=["value","background","tooltipPosition"],Jq=["id"],Qq=["onMouseEnter","onClick","onMouseLeave"];function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Or.apply(null,arguments)}function sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ft(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){e9(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 e9(e,t,r){return(t=t9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t9(e){var t=r9(e,"string");return typeof t=="symbol"?t:t+""}function r9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ws(e,t){if(e==null)return{};var r,n,o=n9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function n9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var o9=e=>{var{dataKey:t,name:r,fill:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:wo(r,t),payload:e}]},i9=f.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:o,name:i,hide:a,unit:s,tooltipType:l,id:c}=e,u={dataDefinedOnItem:void 0,getPosition:Fn,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:t,nameKey:void 0,name:wo(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:c}};return f.createElement(Jv,{tooltipEntrySettings:u})});function a9(e){var t=J(qr),{data:r,dataKey:n,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=Ws(i,Xq),u=Yv(a,n,i.id),d=Xv(s),p=Zv(l,n,i.id);if(!o||r==null)return null;var v=On(o);return f.createElement(wt,{zIndex:TH(o,De.barBackground)},r.map((g,m)=>{var{value:h,background:b,tooltipPosition:x}=g,w=Ws(g,Zq);if(!b)return null;var P=u(g,m),O=d(g,m),S=p(g,m),E=ft(ft(ft(ft(ft({option:o,isActive:String(m)===t},w),{},{fill:"#eee"},b),v),Oi(c,g,m)),{},{onMouseEnter:P,onMouseLeave:O,onClick:S,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return f.createElement(Vs,Or({key:"background-bar-".concat(m)},E))}))}function s9(e){var{showLabels:t,children:r,rects:n}=e,o=n?.map(i=>{var a={x:i.x,y:i.y,width:i.width,lowerWidth:i.width,upperWidth:i.width,height:i.height};return ft(ft({},a),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:a,fill:i.fill})});return f.createElement(qE,{value:t?o:void 0},r)}function l9(e){var{shape:t,activeBar:r,baseProps:n,entry:o,index:i,dataKey:a}=e,s=J(qr),l=J(Dv),c=r&&String(i)===s&&(l==null||a===l),u=c?r:t;return c?f.createElement(wt,{zIndex:De.activeBar},f.createElement(AC,{index:i},f.createElement(Vs,Or({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a})))):f.createElement(Vs,Or({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a}))}function c9(e){var{shape:t,baseProps:r,entry:n,index:o,dataKey:i}=e;return f.createElement(Vs,Or({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:o,dataKey:i}))}function u9(e){var t,{data:r,props:n}=e,o=(t=At(n))!==null&&t!==void 0?t:{},{id:i}=o,a=Ws(o,Jq),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:u,onClick:d,onMouseLeave:p}=n,v=Ws(n,Qq),g=Yv(u,l,i),m=Xv(p),h=Zv(d,l,i);return r?f.createElement(f.Fragment,null,r.map((b,x)=>f.createElement(AC,Or({index:x,key:"rectangle-".concat(b?.x,"-").concat(b?.y,"-").concat(b?.value,"-").concat(x),className:"recharts-bar-rectangle"},Oi(v,b,x),{onMouseEnter:g(b,x),onMouseLeave:m(b,x),onClick:h(b,x)}),c?f.createElement(l9,{shape:s,activeBar:c,baseProps:a,entry:b,index:x,dataKey:l}):f.createElement(c9,{shape:s,baseProps:a,entry:b,index:x,dataKey:l})))):null}function d9(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,d=r.current,p=Ii(t,"recharts-bar-"),[v,g]=A.useState(!1),m=!v,h=A.useCallback(()=>{typeof c=="function"&&c(),g(!1)},[c]),b=A.useCallback(()=>{typeof u=="function"&&u(),g(!0)},[u]);return f.createElement(s9,{showLabels:m,rects:n},f.createElement(Mi,{animationId:p,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:h,onAnimationStart:b,key:p},x=>{var w=x===1?n:n?.map((P,O)=>{var S=d&&d[O];if(S)return ft(ft({},P),{},{x:Ae(S.x,P.x,x),y:Ae(S.y,P.y,x),width:Ae(S.width,P.width,x),height:Ae(S.height,P.height,x)});if(o==="horizontal"){var E=Ae(0,P.height,x),C=Ae(P.stackedBarStart,P.y,x);return ft(ft({},P),{},{y:C,height:E})}var N=Ae(0,P.width,x),D=Ae(P.stackedBarStart,P.x,x);return ft(ft({},P),{},{width:N,x:D})});return x>0&&(r.current=w??null),w==null?null:f.createElement(Ye,null,f.createElement(u9,{props:t,data:w}))}),f.createElement(Kv,{label:t.label}),t.children)}function f9(e){var t=A.useRef(null);return f.createElement(d9,{previousRectanglesRef:t,props:e})}var _C=0,p9=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:be(e,t)}};class v9 extends A.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:o,xAxisId:i,yAxisId:a,needClip:s,background:l,id:c}=this.props;if(t||r==null)return null;var u=de("recharts-bar",o),d=c;return f.createElement(Ye,{className:u,id:c},s&&f.createElement("defs",null,f.createElement(gC,{clipPathId:d,xAxisId:i,yAxisId:a})),f.createElement(Ye,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},f.createElement(a9,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),f.createElement(f9,this.props)))}}var m9={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:_C,xAxisId:0,yAxisId:0,zIndex:De.bar};function h9(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:d}=om(t,r),p=zn(),v=ct(),g=Gv(e.children,Ui),m=J(x=>Wq(x,e.id,v,g));if(p!=="vertical"&&p!=="horizontal")return null;var h,b=m?.[0];return b==null||b.height==null||b.width==null?h=0:h=p==="vertical"?b.height/2:b.width/2,f.createElement(hC,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:p9,errorBarOffset:h},f.createElement(v9,Or({},e,{layout:p,needClip:d,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function g9(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:o,bandSize:i,xAxis:a,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:d,offset:p,cells:v,parentViewBox:g,dataStartIndex:m}=e,h=t==="horizontal"?s:a,b=u?h.scale.domain():null,x=IF({numericAxis:h}),w=h.scale.map(x);return d.map((P,O)=>{var S,E,C,N,D,$;if(u){var _=u[O+m];if(_==null)return null;S=AF(_,b)}else S=be(P,r),Array.isArray(S)||(S=[x,S]);var M=Cq(n,_C)(S[1],O);if(t==="horizontal"){var k,V=s.scale.map(S[0]),B=s.scale.map(S[1]);if(V==null||B==null)return null;E=zg({axis:a,ticks:l,bandSize:i,offset:o.offset,entry:P,index:O}),C=(k=B??V)!==null&&k!==void 0?k:void 0,N=o.size;var K=V-B;if(D=or(K)?0:K,$={x:E,y:p.top,width:N,height:p.height},Math.abs(M)>0&&Math.abs(D)<Math.abs(M)){var T=Ge(D||M)*(Math.abs(M)-Math.abs(D));C-=T,D+=T}}else{var I=a.scale.map(S[0]),G=a.scale.map(S[1]);if(I==null||G==null)return null;if(E=I,C=zg({axis:s,ticks:c,bandSize:i,offset:o.offset,entry:P,index:O}),N=G-I,D=o.size,$={x:p.left,y:C,width:p.width,height:D},Math.abs(M)>0&&Math.abs(N)<Math.abs(M)){var ee=Ge(N||M)*(Math.abs(M)-Math.abs(N));N+=ee}}if(E==null||C==null||N==null||D==null)return null;var re=ft(ft({},P),{},{stackedBarStart:w,x:E,y:C,width:N,height:D,value:u?S:S[1],payload:P,background:$,tooltipPosition:{x:E+N/2,y:C+D/2},parentViewBox:g},v&&v[O]&&v[O].props);return re}).filter(Boolean)}function y9(e){var t=Le(e,m9),r=Gq(t.stackId),n=ct();return f.createElement(Qv,{id:t.id,type:"bar"},o=>f.createElement(f.Fragment,null,f.createElement(oC,{legendPayload:o9(t)}),f.createElement(i9,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:o}),f.createElement(aC,{type:"bar",id:o,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),f.createElement(wt,{zIndex:t.zIndex},f.createElement(h9,Or({},t,{id:o})))))}var TC=f.memo(y9,nc);TC.displayName="Bar";var b9=["domain","range"],x9=["domain","range"];function lw(e,t){if(e==null)return{};var r,n,o=w9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function w9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function cw(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function jC(e,t){if(e===t)return!0;var{domain:r,range:n}=e,o=lw(e,b9),{domain:i,range:a}=t,s=lw(t,x9);return!cw(r,i)||!cw(n,a)?!1:nc(o,s)}var P9=["type"],S9=["dangerouslySetInnerHTML","ticks","scale"],O9=["id","scale"];function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wf.apply(null,arguments)}function uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dw(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){E9(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 E9(e,t,r){return(t=C9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C9(e){var t=A9(e,"string");return typeof t=="symbol"?t:t+""}function A9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pf(e,t){if(e==null)return{};var r,n,o=_9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function T9(e){var t=Pe(),r=A.useRef(null),n=vO(),{type:o}=e,i=Pf(e,P9),a=Vl(n,"xAxis",o),s=A.useMemo(()=>{if(a!=null)return dw(dw({},i),{},{type:a})},[i,a]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(iH(s)):r.current!==s&&t(aH({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(sH(r.current)),r.current=null)},[t]),null}var j9=e=>{var{xAxisId:t,className:r}=e,n=J(Pp),o=ct(),i="xAxis",a=J(b=>sE(b,i,t,o)),s=J(b=>nE(b,t)),l=J(b=>q4(b,t)),c=J(b=>L1(b,t));if(s==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:p}=e,v=Pf(e,S9),{id:g,scale:m}=c,h=Pf(c,O9);return f.createElement(rm,wf({},v,h,{x:l.x,y:l.y,width:s.width,height:s.height,className:de("recharts-".concat(i," ").concat(i),r),viewBox:n,ticks:a,axisType:i}))},N9={allowDataOverflow:Ke.allowDataOverflow,allowDecimals:Ke.allowDecimals,allowDuplicatedCategory:Ke.allowDuplicatedCategory,angle:Ke.angle,axisLine:gr.axisLine,height:Ke.height,hide:!1,includeHidden:Ke.includeHidden,interval:Ke.interval,label:!1,minTickGap:Ke.minTickGap,mirror:Ke.mirror,orientation:Ke.orientation,padding:Ke.padding,reversed:Ke.reversed,scale:Ke.scale,tick:Ke.tick,tickCount:Ke.tickCount,tickLine:gr.tickLine,tickSize:gr.tickSize,type:Ke.type,xAxisId:0},M9=e=>{var t=Le(e,N9);return f.createElement(f.Fragment,null,f.createElement(T9,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),f.createElement(j9,t))},Ks=f.memo(M9,jC);Ks.displayName="XAxis";var I9=["type"],k9=["dangerouslySetInnerHTML","ticks","scale"],R9=["id","scale"];function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sf.apply(null,arguments)}function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function pw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(r),!0).forEach(function(n){D9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D9(e,t,r){return(t=$9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $9(e){var t=L9(e,"string");return typeof t=="symbol"?t:t+""}function L9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Of(e,t){if(e==null)return{};var r,n,o=F9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function F9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function z9(e){var t=Pe(),r=A.useRef(null),n=vO(),{type:o}=e,i=Of(e,I9),a=Vl(n,"yAxis",o),s=A.useMemo(()=>{if(a!=null)return pw(pw({},i),{},{type:a})},[a,i]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(lH(s)):r.current!==s&&t(cH({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(uH(r.current)),r.current=null)},[t]),null}function B9(e){var{yAxisId:t,className:r,width:n,label:o}=e,i=A.useRef(null),a=A.useRef(null),s=J(Pp),l=ct(),c=Pe(),u="yAxis",d=J(S=>oE(S,t)),p=J(S=>X4(S,t)),v=J(S=>sE(S,u,t,l)),g=J(S=>F1(S,t));if(A.useLayoutEffect(()=>{if(!(n!=="auto"||!d||Wv(o)||A.isValidElement(o)||g==null)){var S=i.current;if(S){var E=S.getCalculatedWidth();Math.round(d.width)!==Math.round(E)&&c(dH({id:t,width:E}))}}},[v,d,c,o,t,n,g]),d==null||p==null||g==null)return null;var{dangerouslySetInnerHTML:m,ticks:h,scale:b}=e,x=Of(e,k9),{id:w,scale:P}=g,O=Of(g,R9);return f.createElement(rm,Sf({},x,O,{ref:i,labelRef:a,x:p.x,y:p.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:d.width,height:d.height,className:de("recharts-".concat(u," ").concat(u),r),viewBox:s,ticks:v,axisType:u}))}var V9={allowDataOverflow:Ue.allowDataOverflow,allowDecimals:Ue.allowDecimals,allowDuplicatedCategory:Ue.allowDuplicatedCategory,angle:Ue.angle,axisLine:gr.axisLine,hide:!1,includeHidden:Ue.includeHidden,interval:Ue.interval,label:!1,minTickGap:Ue.minTickGap,mirror:Ue.mirror,orientation:Ue.orientation,padding:Ue.padding,reversed:Ue.reversed,scale:Ue.scale,tick:Ue.tick,tickCount:Ue.tickCount,tickLine:gr.tickLine,tickSize:gr.tickSize,type:Ue.type,width:Ue.width,yAxisId:0},W9=e=>{var t=Le(e,V9);return f.createElement(f.Fragment,null,f.createElement(z9,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),f.createElement(B9,t))},Us=f.memo(W9,jC);Us.displayName="YAxis";var K9=(e,t)=>t,am=j([K9,ve,R1,Je,OE,Rr,f6,Be],b6),sm=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},NC=Rt("mouseClick"),MC=_i();MC.startListening({actionCreator:NC,effect:(e,t)=>{var r=e.payload,n=am(t.getState(),sm(r));n?.activeIndex!=null&&t.dispatch(uW({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Ef=Rt("mouseMove"),IC=_i(),Ia=null;IC.startListening({actionCreator:Ef,effect:(e,t)=>{var r=e.payload;Ia!==null&&cancelAnimationFrame(Ia);var n=sm(r);Ia=requestAnimationFrame(()=>{var o=t.getState(),i=jv(o,o.tooltip.settings.shared);if(i==="axis"){var a=am(o,n);a?.activeIndex!=null?t.dispatch(mE({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(vE())}Ia=null})}});function U9(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var vw={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},kC=xt({name:"rootProps",initialState:vw,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:vw.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),H9=kC.reducer,{updateOptions:G9}=kC.actions,q9=null,Y9={updatePolarOptions:(e,t)=>t.payload},RC=xt({name:"polarOptions",initialState:q9,reducers:Y9}),{updatePolarOptions:X9}=RC.actions,Z9=RC.reducer,DC=Rt("keyDown"),$C=Rt("focus"),lm=_i();lm.startListening({actionCreator:DC,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip,i=e.payload;if(!(i!=="ArrowRight"&&i!=="ArrowLeft"&&i!=="Enter")){var a=Nv(o,jo(r),Bi(r),Wi(r)),s=a==null?-1:Number(a);if(!(!Number.isFinite(s)||s<0)){var l=Rr(r);if(i==="Enter"){var c=Ds(r,"axis","hover",String(o.index));t.dispatch(vf({active:!o.active,activeIndex:o.index,activeCoordinate:c}));return}var u=eW(r),d=u==="left-to-right"?1:-1,p=i==="ArrowRight"?1:-1,v=s+p*d;if(!(l==null||v>=l.length||v<0)){var g=Ds(r,"axis","hover",String(v));t.dispatch(vf({active:!0,activeIndex:v.toString(),activeCoordinate:g}))}}}}}});lm.startListening({actionCreator:$C,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var i="0",a=Ds(r,"axis","hover",String(i));t.dispatch(vf({active:!0,activeIndex:i,activeCoordinate:a}))}}}});var Nt=Rt("externalEvent"),LC=_i(),hd=new Map;LC.startListening({actionCreator:Nt,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var o=n.type,i=hd.get(o);i!==void 0&&cancelAnimationFrame(i);var a=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:XW(s),activeDataKey:Dv(s),activeIndex:qr(s),activeLabel:AE(s),activeTooltipIndex:qr(s),isTooltipActive:ZW(s)};r(l,n)}finally{hd.delete(o)}});hd.set(o,a)}}});var J9=j([_o],e=>e.tooltipItemPayloads),Q9=j([J9,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(i=>i.settings.graphicalItemId===r);if(n!=null){var{getPosition:o}=n;if(o!=null)return o(t)}}}),FC=Rt("touchMove"),zC=_i();zC.startListening({actionCreator:FC,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),o=jv(n,n.tooltip.settings.shared);if(o==="axis"){var i=r.touches[0];if(i==null)return;var a=am(n,sm({clientX:i.clientX,clientY:i.clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(mE({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(o==="item"){var s,l=r.touches[0];if(document.elementFromPoint==null||l==null)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var u=c.getAttribute(lO),d=(s=c.getAttribute(cO))!==null&&s!==void 0?s:void 0,p=To(n).find(m=>m.id===d);if(u==null||p==null||d==null)return;var{dataKey:v}=p,g=Q9(n,u,d);t.dispatch(pE({activeDataKey:v,activeIndex:u,activeCoordinate:g,activeGraphicalItemId:d}))}}}});var e7=CS({brush:jH,cartesianAxis:fH,chartData:X6,errorBars:OG,graphicalItems:b8,layout:PF,legend:jz,options:U6,polarAxis:MU,polarOptions:Z9,referenceElements:kH,rootProps:H9,tooltip:dW,zIndex:I6}),t7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return GL({reducer:e7,preloadedState:t,middleware:n=>{var o;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([MC.middleware,IC.middleware,lm.middleware,LC.middleware,zC.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(US({type:"raf"}))},devTools:{serialize:{replacer:U9},name:"recharts-".concat(r)}})};function BC(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,o=ct(),i=A.useRef(null);if(o)return r;i.current==null&&(i.current=t7(t,n));var a=mp;return f.createElement(eq,{context:a,store:i.current},r)}function r7(e){var{layout:t,margin:r}=e,n=Pe(),o=ct();return A.useEffect(()=>{o||(n(bF(t)),n(yF(r)))},[n,o,t,r]),null}var VC=A.memo(r7,nc);function WC(e){var t=Pe();return A.useEffect(()=>{t(G9(e))},[t,e]),null}function mw(e){var{zIndex:t,isPanorama:r}=e,n=A.useRef(null),o=Pe();return A.useLayoutEffect(()=>(n.current&&o(N6({zIndex:t,element:n.current,isPanorama:r})),()=>{o(M6({zIndex:t,isPanorama:r}))}),[o,t,r]),f.createElement("g",{tabIndex:-1,ref:n})}function hw(e){var{children:t,isPanorama:r}=e,n=J(w6);if(!n||n.length===0)return t;var o=n.filter(a=>a<0),i=n.filter(a=>a>0);return f.createElement(f.Fragment,null,o.map(a=>f.createElement(mw,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>f.createElement(mw,{key:a,zIndex:a,isPanorama:r})))}var n7=["children"];function o7(e,t){if(e==null)return{};var r,n,o=i7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function i7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}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)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hs.apply(null,arguments)}var a7={width:"100%",height:"100%",display:"block"},s7=A.forwardRef((e,t)=>{var r=Cp(),n=Ap(),o=CO();if(!ar(r)||!ar(n))return null;var{children:i,otherAttributes:a,title:s,desc:l}=e,c,u;return a!=null&&(typeof a.tabIndex=="number"?c=a.tabIndex:c=o?0:void 0,typeof a.role=="string"?u=a.role:u=o?"application":void 0),f.createElement(op,Hs({},a,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:a7,ref:t}),i)}),l7=e=>{var{children:t}=e,r=J(Al);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return f.createElement(op,{width:n,height:o,x:a,y:i},t)},gw=A.forwardRef((e,t)=>{var{children:r}=e,n=o7(e,n7),o=ct();return o?f.createElement(l7,null,f.createElement(hw,{isPanorama:!0},r)):f.createElement(s7,Hs({ref:t},n),f.createElement(hw,{isPanorama:!1},r))});function c7(){var e=Pe(),[t,r]=A.useState(null),n=J(FF);return A.useEffect(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;ce(i)&&i!==n&&e(wF(i))}},[t,e,n]),r}function yw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function u7(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){d7(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 d7(e,t,r){return(t=f7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f7(e){var t=p7(e,"string");return typeof t=="symbol"?t:t+""}function p7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(null,arguments)}var v7=()=>(iK(),null);function Gs(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var m7=A.forwardRef((e,t)=>{var r,n,o=A.useRef(null),[i,a]=A.useState({containerWidth:Gs((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Gs((n=e.style)===null||n===void 0?void 0:n.height)}),s=A.useCallback((c,u)=>{a(d=>{var p=Math.round(c),v=Math.round(u);return d.containerWidth===p&&d.containerHeight===v?d:{containerWidth:p,containerHeight:v}})},[]),l=A.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:d}=c.getBoundingClientRect();s(u,d);var p=g=>{var m=g[0];if(m!=null){var{width:h,height:b}=m.contentRect;s(h,b)}},v=new ResizeObserver(p);v.observe(c),o.current=v}},[t,s]);return A.useEffect(()=>()=>{var c=o.current;c?.disconnect()},[s]),f.createElement(f.Fragment,null,f.createElement(ji,{width:i.containerWidth,height:i.containerHeight}),f.createElement("div",Kr({ref:l},e)))}),h7=A.forwardRef((e,t)=>{var{width:r,height:n}=e,[o,i]=A.useState({containerWidth:Gs(r),containerHeight:Gs(n)}),a=A.useCallback((l,c)=>{i(u=>{var d=Math.round(l),p=Math.round(c);return u.containerWidth===d&&u.containerHeight===p?u:{containerWidth:d,containerHeight:p}})},[]),s=A.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();a(c,u)}},[t,a]);return f.createElement(f.Fragment,null,f.createElement(ji,{width:o.containerWidth,height:o.containerHeight}),f.createElement("div",Kr({ref:s},e)))}),g7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return f.createElement(f.Fragment,null,f.createElement(ji,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))}),y7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?f.createElement(h7,Kr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?f.createElement(g7,Kr({},e,{width:r,height:n,ref:t})):f.createElement(f.Fragment,null,f.createElement(ji,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))});function b7(e){return e?m7:y7}var x7=A.forwardRef((e,t)=>{var{children:r,className:n,height:o,onClick:i,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:d,onMouseUp:p,onTouchEnd:v,onTouchMove:g,onTouchStart:m,style:h,width:b,responsive:x,dispatchTouchEvents:w=!0}=e,P=A.useRef(null),O=Pe(),[S,E]=A.useState(null),[C,N]=A.useState(null),D=c7(),$=Sp(),_=$?.width>0?$.width:b,M=$?.height>0?$.height:o,k=A.useCallback(L=>{D(L),typeof t=="function"&&t(L),E(L),N(L),L!=null&&(P.current=L)},[D,t,E,N]),V=A.useCallback(L=>{O(NC(L)),O(Nt({handler:i,reactEvent:L}))},[O,i]),B=A.useCallback(L=>{O(Ef(L)),O(Nt({handler:c,reactEvent:L}))},[O,c]),K=A.useCallback(L=>{O(vE()),O(Nt({handler:u,reactEvent:L}))},[O,u]),T=A.useCallback(L=>{O(Ef(L)),O(Nt({handler:d,reactEvent:L}))},[O,d]),I=A.useCallback(()=>{O($C())},[O]),G=A.useCallback(L=>{O(DC(L.key))},[O]),ee=A.useCallback(L=>{O(Nt({handler:a,reactEvent:L}))},[O,a]),re=A.useCallback(L=>{O(Nt({handler:s,reactEvent:L}))},[O,s]),oe=A.useCallback(L=>{O(Nt({handler:l,reactEvent:L}))},[O,l]),ne=A.useCallback(L=>{O(Nt({handler:p,reactEvent:L}))},[O,p]),le=A.useCallback(L=>{O(Nt({handler:m,reactEvent:L}))},[O,m]),Ee=A.useCallback(L=>{w&&O(FC(L)),O(Nt({handler:g,reactEvent:L}))},[O,w,g]),W=A.useCallback(L=>{O(Nt({handler:v,reactEvent:L}))},[O,v]),ue=b7(x);return f.createElement(kE.Provider,{value:S},f.createElement(VP.Provider,{value:C},f.createElement(ue,{width:_??h?.width,height:M??h?.height,className:de("recharts-wrapper",n),style:u7({position:"relative",cursor:"default",width:_,height:M},h),onClick:V,onContextMenu:ee,onDoubleClick:re,onFocus:I,onKeyDown:G,onMouseDown:oe,onMouseEnter:B,onMouseLeave:K,onMouseMove:T,onMouseUp:ne,onTouchEnd:W,onTouchMove:Ee,onTouchStart:le,ref:k},f.createElement(v7,null),r)))}),w7=["width","height","responsive","children","className","style","compact","title","desc"];function P7(e,t){if(e==null)return{};var r,n,o=S7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function S7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var KC=A.forwardRef((e,t)=>{var{width:r,height:n,responsive:o,children:i,className:a,style:s,compact:l,title:c,desc:u}=e,d=P7(e,w7),p=At(d);return l?f.createElement(f.Fragment,null,f.createElement(ji,{width:r,height:n}),f.createElement(gw,{otherAttributes:p,title:c,desc:u},i)):f.createElement(x7,{className:a,style:s,width:r,height:n,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},f.createElement(gw,{otherAttributes:p,title:c,desc:u,ref:t},f.createElement(DH,null,i)))});function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cf.apply(null,arguments)}var O7={top:5,right:5,bottom:5,left:5},E7={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:O7,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},UC=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,E7),{chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,categoricalChartProps:c}=t,u={chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,eventEmitter:void 0};return f.createElement(BC,{preloadedState:{options:u},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:i},f.createElement(uC,{chartData:c.data}),f.createElement(VC,{layout:o.layout,margin:o.margin}),f.createElement(WC,{baseValue:o.baseValue,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),f.createElement(KC,Cf({},o,{ref:r})))}),C7=["axis"],A7=A.forwardRef((e,t)=>f.createElement(UC,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:C7,tooltipPayloadSearcher:Bv,categoricalChartProps:e,ref:t})),_7=["axis","item"],T7=A.forwardRef((e,t)=>f.createElement(UC,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:_7,tooltipPayloadSearcher:Bv,categoricalChartProps:e,ref:t}));function j7(e){var t=Pe();return A.useEffect(()=>{t(X9(e))},[t,e]),null}var N7=["layout"];function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Af.apply(null,arguments)}function M7(e,t){if(e==null)return{};var r,n,o=I7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function I7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var k7={top:5,right:5,bottom:5,left:5},HC={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:k7,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},R7=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,HC),{layout:i}=o,a=M7(o,N7),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=t,d={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return f.createElement(BC,{preloadedState:{options:d},reduxStoreName:(n=o.id)!==null&&n!==void 0?n:s},f.createElement(uC,{chartData:o.data}),f.createElement(VC,{layout:i,margin:o.margin}),f.createElement(WC,{baseValue:void 0,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),f.createElement(j7,{cx:o.cx,cy:o.cy,startAngle:o.startAngle,endAngle:o.endAngle,innerRadius:o.innerRadius,outerRadius:o.outerRadius}),f.createElement(KC,Af({},a,{ref:r})))});function bw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function xw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bw(Object(r),!0).forEach(function(n){D7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D7(e,t,r){return(t=$7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $7(e){var t=L7(e,"string");return typeof t=="symbol"?t:t+""}function L7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var F7=["item"],z7=xw(xw({},HC),{},{layout:"centric",startAngle:0,endAngle:360}),B7=A.forwardRef((e,t)=>{var r=Le(e,z7);return f.createElement(R7,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:F7,tooltipPayloadSearcher:Bv,categoricalChartProps:r,ref:t})});const GC=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),ka=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],qC=f.forwardRef(({className:e,size:t,data:r,series:n,showGrid:o=!0,showLegend:i=!0,showTooltip:a=!0,xAxisLabel:s,yAxisLabel:l,radius:c=0,stacked:u=!1,layout:d="horizontal",...p},v)=>{const g=f.useMemo(()=>{if(n)return n;const h=r[0];return h?Object.keys(h).filter(x=>x!=="label"&&typeof h[x]=="number").map((x,w)=>({key:x,name:x.charAt(0).toUpperCase()+x.slice(1),color:ka[w%ka.length]})):[]},[r,n]),m=d==="vertical";return y.jsx("div",{ref:v,className:R(GC({size:t,className:e})),role:"img",...p,children:y.jsx(Op,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(T7,{data:r,layout:d,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(nm,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!m,horizontal:m}),m?y.jsxs(y.Fragment,{children:[y.jsx(Ks,{type:"number",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(Us,{type:"category",dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0})]}):y.jsxs(y.Fragment,{children:[y.jsx(Ks,{dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(Us,{stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0})]}),a&&y.jsx(Vv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},cursor:{fill:"rgba(0, 0, 0, 0.05)"}}),i&&y.jsx(Ml,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-secondary)"}}),g.map((h,b)=>y.jsx(TC,{dataKey:h.key,name:h.name,fill:h.color||ka[b%ka.length],radius:c,stackId:u?"stack":void 0},h.key))]})})})});qC.displayName="BarChart";const YC=te("text-small flex items-center font-sans",{variants:{size:{sm:"text-label gap-1.5",default:"text-small gap-2",lg:"text-body gap-2.5"}},defaultVariants:{size:"default"}}),_f=te("focus-visible:ring-sunflower inline-flex items-center transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{isCurrentPage:{true:"cursor-default text-black",false:"text-quaternary hover:text-primary"}},defaultVariants:{isCurrentPage:!1}}),XC=f.forwardRef(({className:e,size:t,separator:r=y.jsx(cm,{}),children:n,...o},i)=>{const a=f.Children.toArray(n).filter(f.isValidElement);return y.jsx("nav",{ref:i,"aria-label":"Breadcrumb",...o,children:y.jsx("ol",{className:R(YC({size:t,className:e})),children:a.map((s,l)=>y.jsxs("li",{className:"inline-flex items-center gap-2",children:[s,l<a.length-1&&r]},l))})})});XC.displayName="Breadcrumbs";const ZC=f.forwardRef(({className:e,asChild:t=!1,isCurrentPage:r=!1,...n},o)=>{if(r)return y.jsx("span",{className:R(_f({isCurrentPage:!0,className:e})),"aria-current":"page",children:n.children});const i=t?Oe:"a";return y.jsx(i,{ref:o,className:R(_f({isCurrentPage:!1,className:e})),...n})});ZC.displayName="BreadcrumbItem";const cm=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx("span",{ref:n,role:"presentation","aria-hidden":"true",className:R("text-tertiary",e),...r,children:t??y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",children:y.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}));cm.displayName="BreadcrumbSeparator";const JC=te("focus-visible:ring-sunflower rounded transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{default:"",elevated:"shadow",ghost:""},padding:{none:"p-0",sm:"p-4",default:"p-6",lg:"p-8"},bg:{card:"bg-card",main:"bg-main",alt:"bg-alt",contrast:"bg-contrast",transparent:"bg-transparent",sunflower:"bg-sunflower","sunflower-hover":"bg-sunflower-hover","lemon-meringue":"bg-lemon-meringue",vanilla:"bg-vanilla",eggshell:"bg-eggshell","warm-purple":"bg-warm-purple","cool-purple":"bg-cool-purple","electric-blue":"bg-electric-blue","deep-blue":"bg-deep-blue",error:"bg-error"}},defaultVariants:{variant:"default",padding:"default",bg:"alt"}}),QC=f.forwardRef(({className:e,variant:t,padding:r,bg:n,asChild:o=!1,...i},a)=>{const s=o?Oe:"div";return y.jsx(s,{className:R(JC({variant:t,padding:r,bg:n,className:e})),ref:a,...i})});QC.displayName="Card";function oc(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ic(e){const[t,r]=f.useState(void 0);return qe(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ac="Checkbox",[V7]=Xe(ac),[W7,um]=V7(ac);function K7(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[p,v]=at({prop:r,defaultProp:o??!1,onChange:l,caller:ac}),[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useRef(!1),w=g?!!a||!!g.closest("form"):!0,P={checked:p,disabled:i,setChecked:v,control:g,setControl:m,name:s,form:a,value:u,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:Ur(o)?!1:o,isFormControl:w,bubbleInput:h,setBubbleInput:b};return y.jsx(W7,{scope:t,...P,children:U7(d)?d(P):n})}var eA="CheckboxTrigger",tA=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:i,value:a,disabled:s,checked:l,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:g}=um(eA,e),m=ie(o,u),h=f.useRef(l);return f.useEffect(()=>{const b=i?.form;if(b){const x=()=>d(h.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,d]),y.jsx(Q.button,{type:"button",role:"checkbox","aria-checked":Ur(l)?"mixed":l,"aria-required":c,"data-state":sA(l),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:m,onKeyDown:U(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:U(r,b=>{d(x=>Ur(x)?!0:!x),g&&v&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});tA.displayName=eA;var rA=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:c,form:u,...d}=e;return y.jsx(K7,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:c,name:n,form:u,value:l,internal_do_not_use_render:({isFormControl:p})=>y.jsxs(y.Fragment,{children:[y.jsx(tA,{...d,ref:t,__scopeCheckbox:r}),p&&y.jsx(aA,{__scopeCheckbox:r})]})})});rA.displayName=ac;var nA="CheckboxIndicator",oA=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=um(nA,r);return y.jsx(lt,{present:n||Ur(i.checked)||i.checked===!0,children:y.jsx(Q.span,{"data-state":sA(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});oA.displayName=nA;var iA="CheckboxBubbleInput",aA=f.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:c,value:u,form:d,bubbleInput:p,setBubbleInput:v}=um(iA,e),g=ie(r,v),m=oc(i),h=ic(n);f.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,O=Object.getOwnPropertyDescriptor(w,"checked").set,S=!o.current;if(m!==i&&O){const E=new Event("click",{bubbles:S});x.indeterminate=Ur(i),O.call(x,Ur(i)?!1:i),x.dispatchEvent(E)}},[p,m,i,o]);const b=f.useRef(Ur(i)?!1:i);return y.jsx(Q.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??b.current,required:s,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:g,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});aA.displayName=iA;function U7(e){return typeof e=="function"}function Ur(e){return e==="indeterminate"}function sA(e){return Ur(e)?"indeterminate":e?"checked":"unchecked"}const lA=f.forwardRef(({className:e,...t},r)=>y.jsx(rA,{ref:r,className:R("border-border bg-card peer h-5 w-5 shrink-0 rounded border transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-sunflower data-[state=checked]:bg-sunflower data-[state=checked]:text-primary",e),...t,children:y.jsx(oA,{className:R("flex items-center justify-center text-current"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",className:"h-3.5 w-3.5",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})})})}));lA.displayName="Checkbox";const H7=["top","right","bottom","left"],Xr=Math.min,Pt=Math.max,qs=Math.round,Ra=Math.floor,nr=e=>({x:e,y:e}),G7={left:"right",right:"left",bottom:"top",top:"bottom"},q7={start:"end",end:"start"};function Tf(e,t,r){return Pt(e,Xr(t,r))}function Er(e,t){return typeof e=="function"?e(t):e}function Cr(e){return e.split("-")[0]}function No(e){return e.split("-")[1]}function dm(e){return e==="x"?"y":"x"}function fm(e){return e==="y"?"height":"width"}const Y7=new Set(["top","bottom"]);function tr(e){return Y7.has(Cr(e))?"y":"x"}function pm(e){return dm(tr(e))}function X7(e,t,r){r===void 0&&(r=!1);const n=No(e),o=pm(e),i=fm(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ys(a)),[a,Ys(a)]}function Z7(e){const t=Ys(e);return[jf(e),t,jf(t)]}function jf(e){return e.replace(/start|end/g,t=>q7[t])}const ww=["left","right"],Pw=["right","left"],J7=["top","bottom"],Q7=["bottom","top"];function eY(e,t,r){switch(e){case"top":case"bottom":return r?t?Pw:ww:t?ww:Pw;case"left":case"right":return t?J7:Q7;default:return[]}}function tY(e,t,r,n){const o=No(e);let i=eY(Cr(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(jf)))),i}function Ys(e){return e.replace(/left|right|bottom|top/g,t=>G7[t])}function rY(e){return{top:0,right:0,bottom:0,left:0,...e}}function cA(e){return typeof e!="number"?rY(e):{top:e,right:e,bottom:e,left:e}}function Xs(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Sw(e,t,r){let{reference:n,floating:o}=e;const i=tr(t),a=pm(t),s=fm(a),l=Cr(t),c=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[s]/2-o[s]/2;let v;switch(l){case"top":v={x:u,y:n.y-o.height};break;case"bottom":v={x:u,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:d};break;case"left":v={x:n.x-o.width,y:d};break;default:v={x:n.x,y:n.y}}switch(No(t)){case"start":v[a]-=p*(r&&c?-1:1);break;case"end":v[a]+=p*(r&&c?-1:1);break}return v}async function nY(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:v=0}=Er(t,e),g=cA(v),h=s[p?d==="floating"?"reference":"floating":d],b=Xs(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(h)))==null||r?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),x=d==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),P=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},O=Xs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:l}):x);return{top:(b.top-O.top+g.top)/P.y,bottom:(O.bottom-b.bottom+g.bottom)/P.y,left:(b.left-O.left+g.left)/P.x,right:(O.right-b.right+g.right)/P.x}}const oY=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Sw(c,n,l),p=n,v={},g=0;for(let h=0;h<s.length;h++){var m;const{name:b,fn:x}=s[h],{x:w,y:P,data:O,reset:S}=await x({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:v,rects:c,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:nY},elements:{reference:e,floating:t}});u=w??u,d=P??d,v={...v,[b]:{...v[b],...O}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(c=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:d}=Sw(c,p,l)),h=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:v}},iY=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Er(e,t)||{};if(c==null)return{};const d=cA(u),p={x:r,y:n},v=pm(o),g=fm(v),m=await a.getDimensions(c),h=v==="y",b=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",P=i.reference[g]+i.reference[v]-p[v]-i.floating[g],O=p[v]-i.reference[v],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let E=S?S[w]:0;(!E||!await(a.isElement==null?void 0:a.isElement(S)))&&(E=s.floating[w]||i.floating[g]);const C=P/2-O/2,N=E/2-m[g]/2-1,D=Xr(d[b],N),$=Xr(d[x],N),_=D,M=E-m[g]-$,k=E/2-m[g]/2+C,V=Tf(_,k,M),B=!l.arrow&&No(o)!=null&&k!==V&&i.reference[g]/2-(k<_?D:$)-m[g]/2<0,K=B?k<_?k-_:k-M:0;return{[v]:p[v]+K,data:{[v]:V,centerOffset:k-V-K,...B&&{alignmentOffset:K}},reset:B}}}),aY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...h}=Er(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=Cr(o),x=tr(s),w=Cr(s)===s,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),O=p||(w||!m?[Ys(s)]:Z7(s)),S=g!=="none";!p&&S&&O.push(...tY(s,m,g,P));const E=[s,...O],C=await l.detectOverflow(t,h),N=[];let D=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&N.push(C[b]),d){const k=X7(o,a,P);N.push(C[k[0]],C[k[1]])}if(D=[...D,{placement:o,overflows:N}],!N.every(k=>k<=0)){var $,_;const k=((($=i.flip)==null?void 0:$.index)||0)+1,V=E[k];if(V&&(!(d==="alignment"?x!==tr(V):!1)||D.every(T=>tr(T.placement)===x?T.overflows[0]>0:!0)))return{data:{index:k,overflows:D},reset:{placement:V}};let B=(_=D.filter(K=>K.overflows[0]<=0).sort((K,T)=>K.overflows[1]-T.overflows[1])[0])==null?void 0:_.placement;if(!B)switch(v){case"bestFit":{var M;const K=(M=D.filter(T=>{if(S){const I=tr(T.placement);return I===x||I==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(I=>I>0).reduce((I,G)=>I+G,0)]).sort((T,I)=>T[1]-I[1])[0])==null?void 0:M[0];K&&(B=K);break}case"initialPlacement":B=s;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Ow(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ew(e){return H7.some(t=>e[t]>=0)}const sY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Er(e,t);switch(o){case"referenceHidden":{const a=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=Ow(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ew(s)}}}case"escaped":{const a=await n.detectOverflow(t,{...i,altBoundary:!0}),s=Ow(a,r.floating);return{data:{escapedOffsets:s,escaped:Ew(s)}}}default:return{}}}}},uA=new Set(["left","top"]);async function lY(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Cr(r),s=No(r),l=tr(r)==="y",c=uA.has(a)?-1:1,u=i&&l?-1:1,d=Er(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(v=s==="end"?g*-1:g),l?{x:v*u,y:p*c}:{x:p*c,y:v*u}}const cY=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await lY(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},uY=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...c}=Er(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=tr(Cr(o)),v=dm(p);let g=u[v],m=u[p];if(a){const b=v==="y"?"top":"left",x=v==="y"?"bottom":"right",w=g+d[b],P=g-d[x];g=Tf(w,g,P)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=m+d[b],P=m-d[x];m=Tf(w,m,P)}const h=l.fn({...t,[v]:g,[p]:m});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[v]:a,[p]:s}}}}}},dY=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Er(e,t),u={x:r,y:n},d=tr(o),p=dm(d);let v=u[p],g=u[d];const m=Er(s,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=p==="y"?"height":"width",P=i.reference[p]-i.floating[w]+h.mainAxis,O=i.reference[p]+i.reference[w]-h.mainAxis;v<P?v=P:v>O&&(v=O)}if(c){var b,x;const w=p==="y"?"width":"height",P=uA.has(Cr(o)),O=i.reference[d]-i.floating[w]+(P&&((b=a.offset)==null?void 0:b[d])||0)+(P?0:h.crossAxis),S=i.reference[d]+i.reference[w]+(P?0:((x=a.offset)==null?void 0:x[d])||0)-(P?h.crossAxis:0);g<O?g=O:g>S&&(g=S)}return{[p]:v,[d]:g}}}},fY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Er(e,t),u=await a.detectOverflow(t,c),d=Cr(o),p=No(o),v=tr(o)==="y",{width:g,height:m}=i.floating;let h,b;d==="top"||d==="bottom"?(h=d,b=p===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,h=p==="end"?"top":"bottom");const x=m-u.top-u.bottom,w=g-u.left-u.right,P=Xr(m-u[h],x),O=Xr(g-u[b],w),S=!t.middlewareData.shift;let E=P,C=O;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=x),S&&!p){const D=Pt(u.left,0),$=Pt(u.right,0),_=Pt(u.top,0),M=Pt(u.bottom,0);v?C=g-2*(D!==0||$!==0?D+$:Pt(u.left,u.right)):E=m-2*(_!==0||M!==0?_+M:Pt(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:E});const N=await a.getDimensions(s.floating);return g!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function sc(){return typeof window<"u"}function Mo(e){return dA(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ur(e){var t;return(t=(dA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dA(e){return sc()?e instanceof Node||e instanceof Ct(e).Node:!1}function Wt(e){return sc()?e instanceof Element||e instanceof Ct(e).Element:!1}function lr(e){return sc()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function Cw(e){return!sc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}const pY=new Set(["inline","contents"]);function Gi(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!pY.has(o)}const vY=new Set(["table","td","th"]);function mY(e){return vY.has(Mo(e))}const hY=[":popover-open",":modal"];function lc(e){return hY.some(t=>{try{return e.matches(t)}catch{return!1}})}const gY=["transform","translate","scale","rotate","perspective"],yY=["transform","translate","scale","rotate","perspective","filter"],bY=["paint","layout","strict","content"];function vm(e){const t=mm(),r=Wt(e)?Kt(e):e;return gY.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)||yY.some(n=>(r.willChange||"").includes(n))||bY.some(n=>(r.contain||"").includes(n))}function xY(e){let t=Zr(e);for(;lr(t)&&!ho(t);){if(vm(t))return t;if(lc(t))return null;t=Zr(t)}return null}function mm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wY=new Set(["html","body","#document"]);function ho(e){return wY.has(Mo(e))}function Kt(e){return Ct(e).getComputedStyle(e)}function cc(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zr(e){if(Mo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cw(e)&&e.host||ur(e);return Cw(t)?t.host:t}function fA(e){const t=Zr(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:lr(t)&&Gi(t)?t:fA(t)}function pi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=fA(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Ct(o);if(i){const s=Nf(a);return t.concat(a,a.visualViewport||[],Gi(o)?o:[],s&&r?pi(s):[])}return t.concat(o,pi(o,[],r))}function Nf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pA(e){const t=Kt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=lr(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=qs(r)!==i||qs(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function hm(e){return Wt(e)?e:e.contextElement}function so(e){const t=hm(e);if(!lr(t))return nr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=pA(t);let a=(i?qs(r.width):r.width)/n,s=(i?qs(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const PY=nr(0);function vA(e){const t=Ct(e);return!mm()||!t.visualViewport?PY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function SY(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ct(e)?!1:t}function In(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=hm(e);let a=nr(1);t&&(n?Wt(n)&&(a=so(n)):a=so(e));const s=SY(i,r,n)?vA(i):nr(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const p=Ct(i),v=n&&Wt(n)?Ct(n):n;let g=p,m=Nf(g);for(;m&&n&&v!==g;){const h=so(m),b=m.getBoundingClientRect(),x=Kt(m),w=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*h.x,P=b.top+(m.clientTop+parseFloat(x.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=w,c+=P,g=Ct(m),m=Nf(g)}}return Xs({width:u,height:d,x:l,y:c})}function uc(e,t){const r=cc(e).scrollLeft;return t?t.left+r:In(ur(e)).left+r}function mA(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-uc(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function OY(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=ur(n),s=t?lc(t.floating):!1;if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=nr(1);const u=nr(0),d=lr(n);if((d||!d&&!i)&&((Mo(n)!=="body"||Gi(a))&&(l=cc(n)),lr(n))){const v=In(n);c=so(n),u.x=v.x+n.clientLeft,u.y=v.y+n.clientTop}const p=a&&!d&&!i?mA(a,l):nr(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function EY(e){return Array.from(e.getClientRects())}function CY(e){const t=ur(e),r=cc(e),n=e.ownerDocument.body,o=Pt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Pt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+uc(e);const s=-r.scrollTop;return Kt(n).direction==="rtl"&&(a+=Pt(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const Aw=25;function AY(e,t){const r=Ct(e),n=ur(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=mm();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=uc(n);if(c<=0){const u=n.ownerDocument,d=u.body,p=getComputedStyle(d),v=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(n.clientWidth-d.clientWidth-v);g<=Aw&&(i-=g)}else c<=Aw&&(i+=c);return{width:i,height:a,x:s,y:l}}const _Y=new Set(["absolute","fixed"]);function TY(e,t){const r=In(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=lr(e)?so(e):nr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:a,height:s,x:l,y:c}}function _w(e,t,r){let n;if(t==="viewport")n=AY(e,r);else if(t==="document")n=CY(ur(e));else if(Wt(t))n=TY(t,r);else{const o=vA(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xs(n)}function hA(e,t){const r=Zr(e);return r===t||!Wt(r)||ho(r)?!1:Kt(r).position==="fixed"||hA(r,t)}function jY(e,t){const r=t.get(e);if(r)return r;let n=pi(e,[],!1).filter(s=>Wt(s)&&Mo(s)!=="body"),o=null;const i=Kt(e).position==="fixed";let a=i?Zr(e):e;for(;Wt(a)&&!ho(a);){const s=Kt(a),l=vm(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&_Y.has(o.position)||Gi(a)&&!l&&hA(e,a))?n=n.filter(u=>u!==a):o=s,a=Zr(a)}return t.set(e,n),n}function NY(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?lc(t)?[]:jY(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,u)=>{const d=_w(t,u,o);return c.top=Pt(d.top,c.top),c.right=Xr(d.right,c.right),c.bottom=Xr(d.bottom,c.bottom),c.left=Pt(d.left,c.left),c},_w(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function MY(e){const{width:t,height:r}=pA(e);return{width:t,height:r}}function IY(e,t,r){const n=lr(t),o=ur(t),i=r==="fixed",a=In(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=nr(0);function c(){l.x=uc(o)}if(n||!n&&!i)if((Mo(t)!=="body"||Gi(o))&&(s=cc(t)),n){const v=In(t,!0,i,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=o&&!n&&!i?mA(o,s):nr(0),d=a.left+s.scrollLeft-l.x-u.x,p=a.top+s.scrollTop-l.y-u.y;return{x:d,y:p,width:a.width,height:a.height}}function gd(e){return Kt(e).position==="static"}function Tw(e,t){if(!lr(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ur(e)===r&&(r=r.ownerDocument.body),r}function gA(e,t){const r=Ct(e);if(lc(e))return r;if(!lr(e)){let o=Zr(e);for(;o&&!ho(o);){if(Wt(o)&&!gd(o))return o;o=Zr(o)}return r}let n=Tw(e,t);for(;n&&mY(n)&&gd(n);)n=Tw(n,t);return n&&ho(n)&&gd(n)&&!vm(n)?r:n||xY(e)||r}const kY=async function(e){const t=this.getOffsetParent||gA,r=this.getDimensions,n=await r(e.floating);return{reference:IY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function RY(e){return Kt(e).direction==="rtl"}const DY={convertOffsetParentRelativeRectToViewportRelativeRect:OY,getDocumentElement:ur,getClippingRect:NY,getOffsetParent:gA,getElementRects:kY,getClientRects:EY,getDimensions:MY,getScale:so,isElement:Wt,isRTL:RY};function yA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $Y(e,t){let r=null,n;const o=ur(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:v}=c;if(s||t(),!p||!v)return;const g=Ra(d),m=Ra(o.clientWidth-(u+p)),h=Ra(o.clientHeight-(d+v)),b=Ra(u),w={rootMargin:-g+"px "+-m+"px "+-h+"px "+-b+"px",threshold:Pt(0,Xr(1,l))||1};let P=!0;function O(S){const E=S[0].intersectionRatio;if(E!==l){if(!P)return a();E?a(!1,E):n=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!yA(c,e.getBoundingClientRect())&&a(),P=!1}try{r=new IntersectionObserver(O,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(O,w)}r.observe(e)}return a(!0),i}function LY(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=hm(e),u=o||i?[...c?pi(c):[],...pi(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=c&&s?$Y(c,r):null;let p=-1,v=null;a&&(v=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),r()}),c&&!l&&v.observe(c),v.observe(t));let g,m=l?In(e):null;l&&h();function h(){const b=In(e);m&&!yA(m,b)&&r(),m=b,g=requestAnimationFrame(h)}return r(),()=>{var b;u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d?.(),(b=v)==null||b.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const FY=cY,zY=uY,BY=aY,VY=fY,WY=sY,jw=iY,KY=dY,UY=(e,t,r)=>{const n=new Map,o={platform:DY,...r},i={...o.platform,_c:n};return oY(e,t,{...o,platform:i})};var HY=typeof document<"u",GY=function(){},Ga=HY?A.useLayoutEffect:GY;function Zs(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,o;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(!Zs(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Zs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function bA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nw(e,t){const r=bA(e);return Math.round(t*r)/r}function yd(e){const t=f.useRef(e);return Ga(()=>{t.current=e}),t}function qY(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=f.useState(n);Zs(p,n)||v(n);const[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useCallback(T=>{T!==S.current&&(S.current=T,m(T))},[]),w=f.useCallback(T=>{T!==E.current&&(E.current=T,b(T))},[]),P=i||g,O=a||h,S=f.useRef(null),E=f.useRef(null),C=f.useRef(u),N=l!=null,D=yd(l),$=yd(o),_=yd(c),M=f.useCallback(()=>{if(!S.current||!E.current)return;const T={placement:t,strategy:r,middleware:p};$.current&&(T.platform=$.current),UY(S.current,E.current,T).then(I=>{const G={...I,isPositioned:_.current!==!1};k.current&&!Zs(C.current,G)&&(C.current=G,yi.flushSync(()=>{d(G)}))})},[p,t,r,$,_]);Ga(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[c]);const k=f.useRef(!1);Ga(()=>(k.current=!0,()=>{k.current=!1}),[]),Ga(()=>{if(P&&(S.current=P),O&&(E.current=O),P&&O){if(D.current)return D.current(P,O,M);M()}},[P,O,M,D,N]);const V=f.useMemo(()=>({reference:S,floating:E,setReference:x,setFloating:w}),[x,w]),B=f.useMemo(()=>({reference:P,floating:O}),[P,O]),K=f.useMemo(()=>{const T={position:r,left:0,top:0};if(!B.floating)return T;const I=Nw(B.floating,u.x),G=Nw(B.floating,u.y);return s?{...T,transform:"translate("+I+"px, "+G+"px)",...bA(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:I,top:G}},[r,s,B.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:M,refs:V,elements:B,floatingStyles:K}),[u,M,V,B,K])}const YY=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?jw({element:n.current,padding:o}).fn(r):{}:n?jw({element:n,padding:o}).fn(r):{}}}},XY=(e,t)=>({...FY(e),options:[e,t]}),ZY=(e,t)=>({...zY(e),options:[e,t]}),JY=(e,t)=>({...KY(e),options:[e,t]}),QY=(e,t)=>({...BY(e),options:[e,t]}),eX=(e,t)=>({...VY(e),options:[e,t]}),tX=(e,t)=>({...WY(e),options:[e,t]}),rX=(e,t)=>({...YY(e),options:[e,t]});var nX="Arrow",xA=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return y.jsx(Q.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});xA.displayName=nX;var oX=xA,gm="Popper",[wA,rn]=Xe(gm),[iX,PA]=wA(gm),SA=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return y.jsx(iX,{scope:t,anchor:n,onAnchorChange:o,children:r})};SA.displayName=gm;var OA="PopperAnchor",EA=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=PA(OA,r),a=f.useRef(null),s=ie(t,a),l=f.useRef(null);return f.useEffect(()=>{const c=l.current;l.current=n?.current||a.current,c!==l.current&&i.onAnchorChange(l.current)}),n?null:y.jsx(Q.div,{...o,ref:s})});EA.displayName=OA;var ym="PopperContent",[aX,sX]=wA(ym),CA=f.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...m}=e,h=PA(ym,r),[b,x]=f.useState(null),w=ie(t,W=>x(W)),[P,O]=f.useState(null),S=ic(P),E=S?.width??0,C=S?.height??0,N=n+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},$=Array.isArray(c)?c:[c],_=$.length>0,M={padding:D,boundary:$.filter(cX),altBoundary:_},{refs:k,floatingStyles:V,placement:B,isPositioned:K,middlewareData:T}=qY({strategy:"fixed",placement:N,whileElementsMounted:(...W)=>LY(...W,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[XY({mainAxis:o+C,alignmentAxis:a}),l&&ZY({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?JY():void 0,...M}),l&&QY({...M}),eX({...M,apply:({elements:W,rects:ue,availableWidth:L,availableHeight:H})=>{const{width:z,height:F}=ue.reference,fe=W.floating.style;fe.setProperty("--radix-popper-available-width",`${L}px`),fe.setProperty("--radix-popper-available-height",`${H}px`),fe.setProperty("--radix-popper-anchor-width",`${z}px`),fe.setProperty("--radix-popper-anchor-height",`${F}px`)}}),P&&rX({element:P,padding:s}),uX({arrowWidth:E,arrowHeight:C}),p&&tX({strategy:"referenceHidden",...M})]}),[I,G]=TA(B),ee=st(g);qe(()=>{K&&ee?.()},[K,ee]);const re=T.arrow?.x,oe=T.arrow?.y,ne=T.arrow?.centerOffset!==0,[le,Ee]=f.useState();return qe(()=>{b&&Ee(window.getComputedStyle(b).zIndex)},[b]),y.jsx("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:K?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[T.transformOrigin?.x,T.transformOrigin?.y].join(" "),...T.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(aX,{scope:r,placedSide:I,onArrowChange:O,arrowX:re,arrowY:oe,shouldHideArrow:ne,children:y.jsx(Q.div,{"data-side":I,"data-align":G,...m,ref:w,style:{...m.style,animation:K?void 0:"none"}})})})});CA.displayName=ym;var AA="PopperArrow",lX={top:"bottom",right:"left",bottom:"top",left:"right"},_A=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=sX(AA,n),a=lX[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(oX,{...o,ref:r,style:{...o.style,display:"block"}})})});_A.displayName=AA;function cX(e){return e!==null}var uX=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,u]=TA(r),d={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+s/2,v=(o.arrow?.y??0)+l/2;let g="",m="";return c==="bottom"?(g=a?d:`${p}px`,m=`${-l}px`):c==="top"?(g=a?d:`${p}px`,m=`${n.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=a?d:`${v}px`):c==="left"&&(g=`${n.floating.width+l}px`,m=a?d:`${v}px`),{data:{x:g,y:m}}}});function TA(e){const[t,r="center"]=e.split("-");return[t,r]}var qi=SA,Yi=EA,dc=CA,fc=_A,bd="rovingFocusGroup.onEntryFocus",dX={bubbles:!1,cancelable:!0},Xi="RovingFocusGroup",[Mf,jA,fX]=bi(Xi),[pX,pc]=Xe(Xi,[fX]),[vX,mX]=pX(Xi),NA=f.forwardRef((e,t)=>y.jsx(Mf.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Mf.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(hX,{...e,ref:t})})}));NA.displayName=Xi;var hX=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,p=f.useRef(null),v=ie(t,p),g=xi(i),[m,h]=at({prop:a,defaultProp:s??null,onChange:l,caller:Xi}),[b,x]=f.useState(!1),w=st(c),P=jA(r),O=f.useRef(!1),[S,E]=f.useState(0);return f.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(bd,w),()=>C.removeEventListener(bd,w)},[w]),y.jsx(vX,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:m,onItemFocus:f.useCallback(C=>h(C),[h]),onItemShiftTab:f.useCallback(()=>x(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(C=>C+1),[]),onFocusableItemRemove:f.useCallback(()=>E(C=>C-1),[]),children:y.jsx(Q.div,{tabIndex:b||S===0?-1:0,"data-orientation":n,...d,ref:v,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{O.current=!0}),onFocus:U(e.onFocus,C=>{const N=!O.current;if(C.target===C.currentTarget&&N&&!b){const D=new CustomEvent(bd,dX);if(C.currentTarget.dispatchEvent(D),!D.defaultPrevented){const $=P().filter(B=>B.focusable),_=$.find(B=>B.active),M=$.find(B=>B.id===m),V=[_,M,...$].filter(Boolean).map(B=>B.ref.current);kA(V,u)}}O.current=!1}),onBlur:U(e.onBlur,()=>x(!1))})})}),MA="RovingFocusGroupItem",IA=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:a,...s}=e,l=vt(),c=i||l,u=mX(MA,r),d=u.currentTabStopId===c,p=jA(r),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:m}=u;return f.useEffect(()=>{if(n)return v(),()=>g()},[n,v,g]),y.jsx(Mf.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:y.jsx(Q.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:U(e.onMouseDown,h=>{n?u.onItemFocus(c):h.preventDefault()}),onFocus:U(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:U(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const b=bX(h,u.orientation,u.dir);if(b!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let w=p().filter(P=>P.focusable).map(P=>P.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const P=w.indexOf(h.currentTarget);w=u.loop?xX(w,P+1):w.slice(P+1)}setTimeout(()=>kA(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});IA.displayName=MA;var gX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yX(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function bX(e,t,r){const n=yX(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return gX[n]}function kA(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function xX(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var RA=NA,DA=IA;function wX(e){const t=PX(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(OX);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function PX(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=CX(o),s=EX(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var SX=Symbol("radix.slottable");function OX(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===SX}function EX(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function CX(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 If=["Enter"," "],AX=["ArrowDown","PageUp","Home"],$A=["ArrowUp","PageDown","End"],_X=[...AX,...$A],TX={ltr:[...If,"ArrowRight"],rtl:[...If,"ArrowLeft"]},jX={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Zi="Menu",[vi,NX,MX]=bi(Zi),[Un,vc]=Xe(Zi,[MX,rn,pc]),Ji=rn(),LA=pc(),[FA,nn]=Un(Zi),[IX,Qi]=Un(Zi),zA=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:a=!0}=e,s=Ji(t),[l,c]=f.useState(null),u=f.useRef(!1),d=st(i),p=xi(o);return f.useEffect(()=>{const v=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),y.jsx(qi,{...s,children:y.jsx(FA,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:y.jsx(IX,{scope:t,onClose:f.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:p,modal:a,children:n})})})};zA.displayName=Zi;var kX="MenuAnchor",bm=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Ji(r);return y.jsx(Yi,{...o,...n,ref:t})});bm.displayName=kX;var xm="MenuPortal",[RX,BA]=Un(xm,{forceMount:void 0}),VA=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=nn(xm,t);return y.jsx(RX,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};VA.displayName=xm;var kt="MenuContent",[DX,wm]=Un(kt),WA=f.forwardRef((e,t)=>{const r=BA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=Qi(kt,e.__scopeMenu);return y.jsx(vi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(vi.Slot,{scope:e.__scopeMenu,children:a.modal?y.jsx($X,{...o,ref:t}):y.jsx(LX,{...o,ref:t})})})})}),$X=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu),n=f.useRef(null),o=ie(t,n);return f.useEffect(()=>{const i=n.current;if(i)return ll(i)},[]),y.jsx(Pm,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),LX=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu);return y.jsx(Pm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),FX=wX("MenuContent.ScrollLock"),Pm=f.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,onDismiss:v,disableOutsideScroll:g,...m}=e,h=nn(kt,r),b=Qi(kt,r),x=Ji(r),w=LA(r),P=NX(r),[O,S]=f.useState(null),E=f.useRef(null),C=ie(t,E,h.onContentChange),N=f.useRef(0),D=f.useRef(""),$=f.useRef(0),_=f.useRef(null),M=f.useRef("right"),k=f.useRef(0),V=g?Pi:f.Fragment,B=g?{as:FX,allowPinchZoom:!0}:void 0,K=I=>{const G=D.current+I,ee=P().filter(W=>!W.disabled),re=document.activeElement,oe=ee.find(W=>W.ref.current===re)?.textValue,ne=ee.map(W=>W.textValue),le=ZX(ne,G,oe),Ee=ee.find(W=>W.textValue===le)?.ref.current;(function W(ue){D.current=ue,window.clearTimeout(N.current),ue!==""&&(N.current=window.setTimeout(()=>W(""),1e3))})(G),Ee&&setTimeout(()=>Ee.focus())};f.useEffect(()=>()=>window.clearTimeout(N.current),[]),al();const T=f.useCallback(I=>M.current===_.current?.side&&QX(I,_.current?.area),[]);return y.jsx(DX,{scope:r,searchRef:D,onItemEnter:f.useCallback(I=>{T(I)&&I.preventDefault()},[T]),onItemLeave:f.useCallback(I=>{T(I)||(E.current?.focus(),S(null))},[T]),onTriggerLeave:f.useCallback(I=>{T(I)&&I.preventDefault()},[T]),pointerGraceTimerRef:$,onPointerGraceIntentChange:f.useCallback(I=>{_.current=I},[]),children:y.jsx(V,{...B,children:y.jsx(wi,{asChild:!0,trapped:o,onMountAutoFocus:U(i,I=>{I.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,onDismiss:v,children:y.jsx(RA,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:O,onCurrentTabStopIdChange:S,onEntryFocus:U(l,I=>{b.isUsingKeyboardRef.current||I.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(dc,{role:"menu","aria-orientation":"vertical","data-state":a_(h.open),"data-radix-menu-content":"",dir:b.dir,...x,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:U(m.onKeyDown,I=>{const ee=I.target.closest("[data-radix-menu-content]")===I.currentTarget,re=I.ctrlKey||I.altKey||I.metaKey,oe=I.key.length===1;ee&&(I.key==="Tab"&&I.preventDefault(),!re&&oe&&K(I.key));const ne=E.current;if(I.target!==ne||!_X.includes(I.key))return;I.preventDefault();const Ee=P().filter(W=>!W.disabled).map(W=>W.ref.current);$A.includes(I.key)&&Ee.reverse(),YX(Ee)}),onBlur:U(e.onBlur,I=>{I.currentTarget.contains(I.target)||(window.clearTimeout(N.current),D.current="")}),onPointerMove:U(e.onPointerMove,mi(I=>{const G=I.target,ee=k.current!==I.clientX;if(I.currentTarget.contains(G)&&ee){const re=I.clientX>k.current?"right":"left";M.current=re,k.current=I.clientX}}))})})})})})})});WA.displayName=kt;var zX="MenuGroup",Sm=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"group",...n,ref:t})});Sm.displayName=zX;var BX="MenuLabel",KA=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});KA.displayName=BX;var Js="MenuItem",Mw="menu.itemSelect",mc=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=f.useRef(null),a=Qi(Js,e.__scopeMenu),s=wm(Js,e.__scopeMenu),l=ie(t,i),c=f.useRef(!1),u=()=>{const d=i.current;if(!r&&d){const p=new CustomEvent(Mw,{bubbles:!0,cancelable:!0});d.addEventListener(Mw,v=>n?.(v),{once:!0}),Uf(d,p),p.defaultPrevented?c.current=!1:a.onClose()}};return y.jsx(UA,{...o,ref:l,disabled:r,onClick:U(e.onClick,u),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:U(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:U(e.onKeyDown,d=>{const p=s.searchRef.current!=="";r||p&&d.key===" "||If.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});mc.displayName=Js;var UA=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,a=wm(Js,r),s=LA(r),l=f.useRef(null),c=ie(t,l),[u,d]=f.useState(!1),[p,v]=f.useState("");return f.useEffect(()=>{const g=l.current;g&&v((g.textContent??"").trim())},[i.children]),y.jsx(vi.ItemSlot,{scope:r,disabled:n,textValue:o??p,children:y.jsx(DA,{asChild:!0,...s,focusable:!n,children:y.jsx(Q.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:c,onPointerMove:U(e.onPointerMove,mi(g=>{n?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:U(e.onPointerLeave,mi(g=>a.onItemLeave(g))),onFocus:U(e.onFocus,()=>d(!0)),onBlur:U(e.onBlur,()=>d(!1))})})})}),VX="MenuCheckboxItem",HA=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return y.jsx(ZA,{scope:e.__scopeMenu,checked:r,children:y.jsx(mc,{role:"menuitemcheckbox","aria-checked":Qs(r)?"mixed":r,...o,ref:t,"data-state":Cm(r),onSelect:U(o.onSelect,()=>n?.(Qs(r)?!0:!r),{checkForDefaultPrevented:!1})})})});HA.displayName=VX;var GA="MenuRadioGroup",[WX,KX]=Un(GA,{value:void 0,onValueChange:()=>{}}),qA=f.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=st(n);return y.jsx(WX,{scope:e.__scopeMenu,value:r,onValueChange:i,children:y.jsx(Sm,{...o,ref:t})})});qA.displayName=GA;var YA="MenuRadioItem",XA=f.forwardRef((e,t)=>{const{value:r,...n}=e,o=KX(YA,e.__scopeMenu),i=r===o.value;return y.jsx(ZA,{scope:e.__scopeMenu,checked:i,children:y.jsx(mc,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":Cm(i),onSelect:U(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});XA.displayName=YA;var Om="MenuItemIndicator",[ZA,UX]=Un(Om,{checked:!1}),JA=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=UX(Om,r);return y.jsx(lt,{present:n||Qs(i.checked)||i.checked===!0,children:y.jsx(Q.span,{...o,ref:t,"data-state":Cm(i.checked)})})});JA.displayName=Om;var HX="MenuSeparator",QA=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});QA.displayName=HX;var GX="MenuArrow",e_=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Ji(r);return y.jsx(fc,{...o,...n,ref:t})});e_.displayName=GX;var Em="MenuSub",[qX,t_]=Un(Em),r_=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=nn(Em,t),a=Ji(t),[s,l]=f.useState(null),[c,u]=f.useState(null),d=st(o);return f.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),y.jsx(qi,{...a,children:y.jsx(FA,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:y.jsx(qX,{scope:t,contentId:vt(),triggerId:vt(),trigger:s,onTriggerChange:l,children:r})})})};r_.displayName=Em;var qo="MenuSubTrigger",n_=f.forwardRef((e,t)=>{const r=nn(qo,e.__scopeMenu),n=Qi(qo,e.__scopeMenu),o=t_(qo,e.__scopeMenu),i=wm(qo,e.__scopeMenu),a=f.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=f.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return f.useEffect(()=>u,[u]),f.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),y.jsx(bm,{asChild:!0,...c,children:y.jsx(UA,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":a_(r.open),...e,ref:cr(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:U(e.onPointerMove,mi(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:U(e.onPointerLeave,mi(d=>{u();const p=r.content?.getBoundingClientRect();if(p){const v=r.content?.dataset.side,g=v==="right",m=g?-5:5,h=p[g?"left":"right"],b=p[g?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:h,y:p.top},{x:b,y:p.top},{x:b,y:p.bottom},{x:h,y:p.bottom}],side:v}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:U(e.onKeyDown,d=>{const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||TX[n.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});n_.displayName=qo;var o_="MenuSubContent",i_=f.forwardRef((e,t)=>{const r=BA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=Qi(kt,e.__scopeMenu),s=t_(o_,e.__scopeMenu),l=f.useRef(null),c=ie(t,l);return y.jsx(vi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(vi.Slot,{scope:e.__scopeMenu,children:y.jsx(Pm,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{a.isUsingKeyboardRef.current&&l.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:U(e.onFocusOutside,u=>{u.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:U(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:U(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),p=jX[a.dir].includes(u.key);d&&p&&(i.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});i_.displayName=o_;function a_(e){return e?"open":"closed"}function Qs(e){return e==="indeterminate"}function Cm(e){return Qs(e)?"indeterminate":e?"checked":"unchecked"}function YX(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function XX(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function ZX(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=XX(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function JX(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,u=s.y,d=l.x,p=l.y;u>n!=p>n&&r<(d-c)*(n-u)/(p-u)+c&&(o=!o)}return o}function QX(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return JX(r,t)}function mi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var s_=zA,l_=bm,c_=VA,u_=WA,d_=Sm,f_=KA,p_=mc,v_=HA,m_=qA,h_=XA,g_=JA,y_=QA,b_=e_,x_=r_,w_=n_,P_=i_,Am="ContextMenu",[eZ]=Xe(Am,[vc]),ut=vc(),[tZ,S_]=eZ(Am),O_=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:o,modal:i=!0}=e,[a,s]=f.useState(!1),l=ut(t),c=st(n),u=f.useCallback(d=>{s(d),c(d)},[c]);return y.jsx(tZ,{scope:t,open:a,onOpenChange:u,modal:i,children:y.jsx(s_,{...l,dir:o,open:a,onOpenChange:u,modal:i,children:r})})};O_.displayName=Am;var E_="ContextMenuTrigger",C_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...o}=e,i=S_(E_,r),a=ut(r),s=f.useRef({x:0,y:0}),l=f.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),c=f.useRef(0),u=f.useCallback(()=>window.clearTimeout(c.current),[]),d=p=>{s.current={x:p.clientX,y:p.clientY},i.onOpenChange(!0)};return f.useEffect(()=>u,[u]),f.useEffect(()=>{n&&u()},[n,u]),y.jsxs(y.Fragment,{children:[y.jsx(l_,{...a,virtualRef:l}),y.jsx(Q.span,{"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:n?e.onContextMenu:U(e.onContextMenu,p=>{u(),d(p),p.preventDefault()}),onPointerDown:n?e.onPointerDown:U(e.onPointerDown,Da(p=>{u(),c.current=window.setTimeout(()=>d(p),700)})),onPointerMove:n?e.onPointerMove:U(e.onPointerMove,Da(u)),onPointerCancel:n?e.onPointerCancel:U(e.onPointerCancel,Da(u)),onPointerUp:n?e.onPointerUp:U(e.onPointerUp,Da(u))})]})});C_.displayName=E_;var rZ="ContextMenuPortal",A_=e=>{const{__scopeContextMenu:t,...r}=e,n=ut(t);return y.jsx(c_,{...n,...r})};A_.displayName=rZ;var __="ContextMenuContent",T_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=S_(__,r),i=ut(r),a=f.useRef(!1);return y.jsx(u_,{...i,...n,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),!s.defaultPrevented&&a.current&&s.preventDefault(),a.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),!s.defaultPrevented&&!o.modal&&(a.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});T_.displayName=__;var nZ="ContextMenuGroup",j_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(d_,{...o,...n,ref:t})});j_.displayName=nZ;var oZ="ContextMenuLabel",N_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(f_,{...o,...n,ref:t})});N_.displayName=oZ;var iZ="ContextMenuItem",M_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(p_,{...o,...n,ref:t})});M_.displayName=iZ;var aZ="ContextMenuCheckboxItem",I_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(v_,{...o,...n,ref:t})});I_.displayName=aZ;var sZ="ContextMenuRadioGroup",k_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(m_,{...o,...n,ref:t})});k_.displayName=sZ;var lZ="ContextMenuRadioItem",R_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(h_,{...o,...n,ref:t})});R_.displayName=lZ;var cZ="ContextMenuItemIndicator",D_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(g_,{...o,...n,ref:t})});D_.displayName=cZ;var uZ="ContextMenuSeparator",$_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(y_,{...o,...n,ref:t})});$_.displayName=uZ;var dZ="ContextMenuArrow",fZ=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(b_,{...o,...n,ref:t})});fZ.displayName=dZ;var L_="ContextMenuSub",F_=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:o,defaultOpen:i}=e,a=ut(t),[s,l]=at({prop:o,defaultProp:i??!1,onChange:n,caller:L_});return y.jsx(x_,{...a,open:s,onOpenChange:l,children:r})};F_.displayName=L_;var pZ="ContextMenuSubTrigger",z_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(w_,{...o,...n,ref:t})});z_.displayName=pZ;var vZ="ContextMenuSubContent",B_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(P_,{...o,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});B_.displayName=vZ;function Da(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var mZ=O_,hZ=C_,gZ=A_,yZ=T_,bZ=j_,xZ=N_,wZ=M_,PZ=I_,SZ=k_,OZ=R_,V_=D_,EZ=$_,CZ=F_,AZ=z_,_Z=B_;const TZ=mZ,jZ=hZ,NZ=bZ,W_=gZ,MZ=CZ,IZ=SZ,K_=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(AZ,{ref:o,className:R("text-body flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-[state=open]:bg-vanilla data-[state=open]:text-primary",t&&"pl-8",e),...n,children:[r,y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-auto h-4 w-4",children:y.jsx("path",{d:"m9 18 6-6-6-6"})})]}));K_.displayName="ContextMenuSubTrigger";const U_=f.forwardRef(({className:e,...t},r)=>y.jsx(_Z,{ref:r,className:R("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","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",e),...t}));U_.displayName="ContextMenuSubContent";const H_=f.forwardRef(({className:e,...t},r)=>y.jsx(W_,{children:y.jsx(yZ,{ref:r,className:R("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","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",e),...t})}));H_.displayName="ContextMenuContent";const G_=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(wZ,{ref:n,className:R("text-body relative flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",e),...r}));G_.displayName="ContextMenuItem";const q_=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(PZ,{ref:o,className:R("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),checked:r,...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(V_,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));q_.displayName="ContextMenuCheckboxItem";const Y_=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(OZ,{ref:n,className:R("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(V_,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:y.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));Y_.displayName="ContextMenuRadioItem";const X_=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(xZ,{ref:n,className:R("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));X_.displayName="ContextMenuLabel";const Z_=f.forwardRef(({className:e,...t},r)=>y.jsx(EZ,{ref:r,className:R("bg-border -mx-1 my-1 h-px",e),...t}));Z_.displayName="ContextMenuSeparator";const J_=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:R("text-small text-tertiary ml-auto tracking-widest",e),...t}));J_.displayName="ContextMenuShortcut";function kZ(e){const t=RZ(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find($Z);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function RZ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=FZ(o),s=LZ(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var DZ=Symbol("radix.slottable");function $Z(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===DZ}function LZ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function FZ(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 hc="Popover",[Q_]=Xe(hc,[rn]),ea=rn(),[zZ,on]=Q_(hc),eT=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=ea(t),l=f.useRef(null),[c,u]=f.useState(!1),[d,p]=at({prop:n,defaultProp:o??!1,onChange:i,caller:hc});return y.jsx(qi,{...s,children:y.jsx(zZ,{scope:t,contentId:vt(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(v=>!v),[p]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>u(!0),[]),onCustomAnchorRemove:f.useCallback(()=>u(!1),[]),modal:a,children:r})})};eT.displayName=hc;var tT="PopoverAnchor",BZ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(tT,r),i=ea(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(a(),()=>s()),[a,s]),y.jsx(Yi,{...i,...n,ref:t})});BZ.displayName=tT;var rT="PopoverTrigger",nT=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(rT,r),i=ea(r),a=ie(t,o.triggerRef),s=y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lT(o.open),...n,ref:a,onClick:U(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:y.jsx(Yi,{asChild:!0,...i,children:s})});nT.displayName=rT;var _m="PopoverPortal",[VZ,WZ]=Q_(_m,{forceMount:void 0}),oT=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=on(_m,t);return y.jsx(VZ,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};oT.displayName=_m;var go="PopoverContent",iT=f.forwardRef((e,t)=>{const r=WZ(go,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=on(go,e.__scopePopover);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(UZ,{...o,ref:t}):y.jsx(HZ,{...o,ref:t})})});iT.displayName=go;var KZ=kZ("PopoverContent.RemoveScroll"),UZ=f.forwardRef((e,t)=>{const r=on(go,e.__scopePopover),n=f.useRef(null),o=ie(t,n),i=f.useRef(!1);return f.useEffect(()=>{const a=n.current;if(a)return ll(a)},[]),y.jsx(Pi,{as:KZ,allowPinchZoom:!0,children:y.jsx(aT,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,a=>{a.preventDefault(),i.current||r.triggerRef.current?.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:U(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),HZ=f.forwardRef((e,t)=>{const r=on(go,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(aT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;r.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),aT=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=on(go,r),v=ea(r);return al(),y.jsx(wi,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:y.jsx(dc,{"data-state":lT(p.open),role:"dialog",id:p.contentId,...v,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),sT="PopoverClose",GZ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(sT,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});GZ.displayName=sT;var qZ="PopoverArrow",YZ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ea(r);return y.jsx(fc,{...o,...n,ref:t})});YZ.displayName=qZ;function lT(e){return e?"open":"closed"}var cT=eT,uT=nT,dT=oT,fT=iT;const XZ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Iw=["January","February","March","April","May","June","July","August","September","October","November","December"];function kw(e,t){return new Date(e,t+1,0).getDate()}function ZZ(e,t){return new Date(e,t,1).getDay()}function pT(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function JZ(e){return pT(new Date,e)}function Rw(e,t="yyyy-MM-dd"){if(!e)return"";const r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),o=e.getFullYear();return t.replace("yyyy",String(o)).replace("MM",r).replace("dd",n)}const vT=te(["bg-card text-body text-primary placeholder:text-tertiary","flex h-10 w-full items-center justify-between rounded-md border px-3 py-2","font-sans transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:"border-border",error:"border-error"}},defaultVariants:{variant:"default"}}),mT=te(["inline-flex h-9 w-9 items-center justify-center rounded-full text-sm","transition-colors focus-visible:outline-none","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-1"],{variants:{state:{default:"hover:bg-sunflower text-primary",selected:"bg-sunflower text-primary font-medium",today:"hover:bg-sunflower border-sunflower text-primary border",disabled:"text-tertiary cursor-not-allowed opacity-50",outside:"text-tertiary opacity-50"}},defaultVariants:{state:"default"}}),hT=f.forwardRef(({value:e,onChange:t,placeholder:r="Select a date",format:n="MM/dd/yyyy",minDate:o,maxDate:i,disabled:a=!1,variant:s,className:l,id:c,name:u,"aria-label":d,"aria-describedby":p},v)=>{const[g,m]=f.useState(!1),[h,b]=f.useState(()=>e||new Date),x=h.getFullYear(),w=h.getMonth(),P=kw(x,w),O=ZZ(x,w),S=f.useMemo(()=>{const _=[],M=w===0?11:w-1,k=w===0?x-1:x,V=kw(k,M);for(let I=O-1;I>=0;I--)_.push({date:new Date(k,M,V-I),isOutside:!0});for(let I=1;I<=P;I++)_.push({date:new Date(x,w,I),isOutside:!1});const B=42-_.length,K=w===11?0:w+1,T=w===11?x+1:x;for(let I=1;I<=B;I++)_.push({date:new Date(T,K,I),isOutside:!0});return _},[x,w,P,O]),E=()=>{b(new Date(x,w-1,1))},C=()=>{b(new Date(x,w+1,1))},N=_=>{t?.(_),m(!1)},D=_=>!!(o&&_<new Date(o.setHours(0,0,0,0))||i&&_>new Date(i.setHours(23,59,59,999))),$=(_,M)=>D(_)?"disabled":M?"outside":e&&pT(e,_)?"selected":JZ(_)?"today":"default";return f.useEffect(()=>{e&&b(e)},[e]),y.jsxs(cT,{open:g,onOpenChange:m,children:[y.jsx(uT,{asChild:!0,children:y.jsxs("button",{ref:v,id:c,type:"button",disabled:a,className:R(vT({variant:s}),l),"aria-label":d||"Choose date","aria-describedby":p,"aria-haspopup":"dialog","aria-expanded":g,children:[y.jsx("span",{className:R("truncate",!e&&"text-tertiary"),children:e?Rw(e,n):r}),y.jsx(s0,{className:"text-tertiary h-4 w-4 shrink-0"}),u&&y.jsx("input",{type:"hidden",name:u,value:e?Rw(e,"yyyy-MM-dd"):""})]})}),y.jsx(dT,{children:y.jsxs(fT,{className:R("bg-main border-border z-50 w-auto rounded-lg border p-4 shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=top]:slide-in-from-bottom-2"),sideOffset:4,align:"start",children:[y.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[y.jsx("button",{type:"button",onClick:E,className:R("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Previous month",children:y.jsx(ol,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Iw[w]," ",x]}),y.jsx("button",{type:"button",onClick:C,className:R("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Next month",children:y.jsx(il,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:XZ.map(_=>y.jsx("div",{className:"text-tertiary text-center text-xs font-medium",children:_},_))}),y.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid","aria-label":`${Iw[w]} ${x}`,children:S.map(({date:_,isOutside:M},k)=>{const V=$(_,M),B=V==="disabled";return y.jsx("button",{type:"button",onClick:()=>!B&&N(_),disabled:B,className:mT({state:V}),"aria-label":_.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":V==="selected",tabIndex:M?-1:0,children:_.getDate()},k)})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsx("button",{type:"button",onClick:()=>N(new Date),className:R("text-sunflower hover:text-sunflower-hover w-full text-center text-sm font-medium","transition-colors focus-visible:underline focus-visible:outline-none"),children:"Today"})})]})})]})});hT.displayName="DatePicker";const QZ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Dw=["January","February","March","April","May","June","July","August","September","October","November","December"];function $w(e,t){return new Date(e,t+1,0).getDate()}function eJ(e,t){return new Date(e,t,1).getDay()}function gT(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function tJ(e){return gT(new Date,e)}function rJ(e,t="yyyy-MM-dd",r=!0){if(!e)return"";const n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),i=e.getFullYear(),a=e.getHours(),s=a%12||12,l=r?String(a).padStart(2,"0"):String(s).padStart(2,"0"),c=String(e.getMinutes()).padStart(2,"0"),u=a>=12?"PM":"AM";return t.replace("yyyy",String(i)).replace("MM",n).replace("dd",o).replace("HH",String(a).padStart(2,"0")).replace("hh",l).replace("mm",c).replace("a",u)}function Lw(e){const t=e.match(/^(\d{1,2}):(\d{2})$/);return t&&t[1]&&t[2]?{hours:Math.min(23,Math.max(0,parseInt(t[1],10))),minutes:Math.min(59,Math.max(0,parseInt(t[2],10)))}:{hours:0,minutes:0}}const yT=te(["bg-card text-body text-primary placeholder:text-tertiary","flex h-10 w-full items-center justify-between rounded-md border px-3 py-2","font-sans transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:"border-border",error:"border-error"}},defaultVariants:{variant:"default"}}),bT=te(["inline-flex h-9 w-9 items-center justify-center rounded-full text-sm","transition-colors focus-visible:outline-none","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-1"],{variants:{state:{default:"hover:bg-sunflower text-primary",selected:"bg-sunflower text-primary font-medium",today:"hover:bg-sunflower border-sunflower text-primary border",disabled:"text-tertiary cursor-not-allowed opacity-50",outside:"text-tertiary opacity-50"}},defaultVariants:{state:"default"}}),xT=f.forwardRef(({value:e,onChange:t,placeholder:r="Select date and time",format:n="yyyy-MM-dd HH:mm",minDate:o,maxDate:i,disabled:a=!1,variant:s,className:l,id:c,name:u,use24Hour:d=!0,minuteStep:p=1,"aria-label":v,"aria-describedby":g},m)=>{const[h,b]=f.useState(!1),[x,w]=f.useState(()=>e||new Date),[P,O]=f.useState(()=>e?`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`:"12:00"),S=x.getFullYear(),E=x.getMonth(),C=$w(S,E),N=eJ(S,E),D=f.useMemo(()=>{const T=[],I=E===0?11:E-1,G=E===0?S-1:S,ee=$w(G,I);for(let le=N-1;le>=0;le--)T.push({date:new Date(G,I,ee-le),isOutside:!0});for(let le=1;le<=C;le++)T.push({date:new Date(S,E,le),isOutside:!1});const re=42-T.length,oe=E===11?0:E+1,ne=E===11?S+1:S;for(let le=1;le<=re;le++)T.push({date:new Date(ne,oe,le),isOutside:!0});return T},[S,E,C,N]),$=()=>{w(new Date(S,E-1,1))},_=()=>{w(new Date(S,E+1,1))},M=T=>{const{hours:I,minutes:G}=Lw(P),ee=new Date(T.getFullYear(),T.getMonth(),T.getDate(),I,G);t?.(ee)},k=T=>{const I=T.target.value;if(O(I),e){const{hours:G,minutes:ee}=Lw(I),re=new Date(e);re.setHours(G,ee),t?.(re)}},V=()=>{const T=new Date;O(`${String(T.getHours()).padStart(2,"0")}:${String(T.getMinutes()).padStart(2,"0")}`),t?.(T),b(!1)},B=T=>!!(o&&T<new Date(o.setHours(0,0,0,0))||i&&T>new Date(i.setHours(23,59,59,999))),K=(T,I)=>B(T)?"disabled":I?"outside":e&&gT(e,T)?"selected":tJ(T)?"today":"default";return f.useEffect(()=>{e&&(w(e),O(`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`))},[e]),y.jsxs(cT,{open:h,onOpenChange:b,children:[y.jsx(uT,{asChild:!0,children:y.jsxs("button",{ref:m,id:c,type:"button",disabled:a,className:R(yT({variant:s}),l),"aria-label":v||"Choose date and time","aria-describedby":g,"aria-haspopup":"dialog","aria-expanded":h,children:[y.jsx("span",{className:R("truncate",!e&&"text-tertiary"),children:e?rJ(e,n,d):r}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx(lk,{className:"text-tertiary h-4 w-4 shrink-0"}),y.jsx(s0,{className:"text-tertiary h-4 w-4 shrink-0"})]}),u&&y.jsx("input",{type:"hidden",name:u,value:e?e.toISOString():""})]})}),y.jsx(dT,{children:y.jsxs(fT,{className:R("bg-main border-border z-50 w-auto rounded-lg border p-4 shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=top]:slide-in-from-bottom-2"),sideOffset:4,align:"start",children:[y.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[y.jsx("button",{type:"button",onClick:$,className:R("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Previous month",children:y.jsx(ol,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Dw[E]," ",S]}),y.jsx("button",{type:"button",onClick:_,className:R("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Next month",children:y.jsx(il,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:QZ.map(T=>y.jsx("div",{className:"text-tertiary text-center text-xs font-medium",children:T},T))}),y.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid","aria-label":`${Dw[E]} ${S}`,children:D.map(({date:T,isOutside:I},G)=>{const ee=K(T,I),re=ee==="disabled";return y.jsx("button",{type:"button",onClick:()=>!re&&M(T),disabled:re,className:bT({state:ee}),"aria-label":T.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":ee==="selected",tabIndex:I?-1:0,children:T.getDate()},G)})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("label",{htmlFor:"time-input",className:"text-secondary text-sm font-medium",children:"Time"}),y.jsx("input",{id:"time-input",type:"time",value:P,onChange:k,step:p*60,className:R("bg-card text-body text-primary border-border rounded-md border px-2 py-1","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Select time"})]})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsx("button",{type:"button",onClick:V,className:R("text-sunflower hover:text-sunflower-hover w-full text-center text-sm font-medium","transition-colors focus-visible:underline focus-visible:outline-none"),children:"Now"})})]})})]})});xT.displayName="DateTimePicker";const wT=te("bg-border shrink-0",{variants:{orientation:{horizontal:"h-px w-full",vertical:"h-full w-px"}},defaultVariants:{orientation:"horizontal"}}),PT=f.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>{const i=t??"horizontal";return y.jsx("div",{ref:o,role:r?"none":"separator","aria-orientation":r?void 0:i,className:R(wT({orientation:i,className:e})),...n})});PT.displayName="Divider";var gc="DropdownMenu",[nJ]=Xe(gc,[vc]),dt=vc(),[oJ,ST]=nJ(gc),OT=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=dt(t),c=f.useRef(null),[u,d]=at({prop:o,defaultProp:i??!1,onChange:a,caller:gc});return y.jsx(oJ,{scope:t,triggerId:vt(),triggerRef:c,contentId:vt(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(p=>!p),[d]),modal:s,children:y.jsx(s_,{...l,open:u,onOpenChange:d,dir:n,modal:s,children:r})})};OT.displayName=gc;var ET="DropdownMenuTrigger",CT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=ST(ET,r),a=dt(r);return y.jsx(l_,{asChild:!0,...a,children:y.jsx(Q.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:cr(t,i.triggerRef),onPointerDown:U(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:U(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});CT.displayName=ET;var iJ="DropdownMenuPortal",AT=e=>{const{__scopeDropdownMenu:t,...r}=e,n=dt(t);return y.jsx(c_,{...n,...r})};AT.displayName=iJ;var _T="DropdownMenuContent",TT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ST(_T,r),i=dt(r),a=f.useRef(!1);return y.jsx(u_,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:U(e.onCloseAutoFocus,s=>{a.current||o.triggerRef.current?.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:U(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});TT.displayName=_T;var aJ="DropdownMenuGroup",jT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(d_,{...o,...n,ref:t})});jT.displayName=aJ;var sJ="DropdownMenuLabel",NT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(f_,{...o,...n,ref:t})});NT.displayName=sJ;var lJ="DropdownMenuItem",MT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(p_,{...o,...n,ref:t})});MT.displayName=lJ;var cJ="DropdownMenuCheckboxItem",IT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(v_,{...o,...n,ref:t})});IT.displayName=cJ;var uJ="DropdownMenuRadioGroup",kT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(m_,{...o,...n,ref:t})});kT.displayName=uJ;var dJ="DropdownMenuRadioItem",RT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(h_,{...o,...n,ref:t})});RT.displayName=dJ;var fJ="DropdownMenuItemIndicator",DT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(g_,{...o,...n,ref:t})});DT.displayName=fJ;var pJ="DropdownMenuSeparator",$T=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(y_,{...o,...n,ref:t})});$T.displayName=pJ;var vJ="DropdownMenuArrow",mJ=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(b_,{...o,...n,ref:t})});mJ.displayName=vJ;var hJ=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=dt(t),[s,l]=at({prop:n,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return y.jsx(x_,{...a,open:s,onOpenChange:l,children:r})},gJ="DropdownMenuSubTrigger",LT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(w_,{...o,...n,ref:t})});LT.displayName=gJ;var yJ="DropdownMenuSubContent",FT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(P_,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});FT.displayName=yJ;var bJ=OT,zT=CT,xJ=AT,wJ=TT,PJ=jT,SJ=NT,OJ=MT,EJ=IT,CJ=kT,AJ=RT,BT=DT,_J=$T,TJ=hJ,jJ=LT,NJ=FT;const MJ=bJ,IJ=zT,kJ=PJ,VT=xJ,RJ=TJ,DJ=CJ,WT=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(jJ,{ref:o,className:R("text-body flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-[state=open]:bg-vanilla data-[state=open]:text-primary",t&&"pl-8",e),...n,children:[r,y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-auto h-4 w-4",children:y.jsx("path",{d:"m9 18 6-6-6-6"})})]}));WT.displayName="DropdownMenuSubTrigger";const KT=f.forwardRef(({className:e,...t},r)=>y.jsx(NJ,{ref:r,className:R("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","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",e),...t}));KT.displayName="DropdownMenuSubContent";const UT=f.forwardRef(({className:e,sideOffset:t=4,...r},n)=>y.jsx(VT,{children:y.jsx(wJ,{ref:n,sideOffset:t,className:R("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","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",e),...r})}));UT.displayName="DropdownMenuContent";const HT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(OJ,{ref:n,className:R("text-body relative flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",e),...r}));HT.displayName="DropdownMenuItem";const GT=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(EJ,{ref:o,className:R("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),checked:r,...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(BT,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));GT.displayName="DropdownMenuCheckboxItem";const qT=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(AJ,{ref:n,className:R("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(BT,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:y.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));qT.displayName="DropdownMenuRadioItem";const YT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(SJ,{ref:n,className:R("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));YT.displayName="DropdownMenuLabel";const XT=f.forwardRef(({className:e,...t},r)=>y.jsx(_J,{ref:r,className:R("bg-border -mx-1 my-1 h-px",e),...t}));XT.displayName="DropdownMenuSeparator";const ZT=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:R("text-small text-tertiary ml-auto tracking-widest",e),...t}));ZT.displayName="DropdownMenuShortcut";const JT=f.forwardRef(({className:e,iconSize:t="default",...r},n)=>{const o={sm:"h-4 w-4",default:"h-5 w-5",lg:"h-6 w-6"},i={sm:"h-7 w-7",default:"h-8 w-8",lg:"h-10 w-10"};return y.jsxs(zT,{ref:n,className:R("text-secondary inline-flex items-center justify-center rounded-md transition-colors","hover:bg-vanilla hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50",i[t],e),...r,children:[y.jsx(l0,{className:o[t]}),y.jsx("span",{className:"sr-only",children:"Open menu"})]})});JT.displayName="ActionsMenuButton";const QT=te("inline-block",{variants:{size:{xs:"h-3",sm:"h-4",md:"h-5",lg:"h-6",xl:"h-8"}},defaultVariants:{size:"md"}});function $J(e){if(!e)return"";if(e===!0)return"hidden";const t=[];return e.base===!0&&t.push("hidden"),e.sm===!1&&t.push("sm:block"),e.sm===!0&&t.push("sm:hidden"),e.md===!1&&t.push("md:block"),e.md===!0&&t.push("md:hidden"),e.lg===!1&&t.push("lg:block"),e.lg===!0&&t.push("lg:hidden"),e.xl===!1&&t.push("xl:block"),e.xl===!0&&t.push("xl:hidden"),e["2xl"]===!1&&t.push("2xl:block"),e["2xl"]===!0&&t.push("2xl:hidden"),t.join(" ")}const ej=f.forwardRef(({className:e,size:t,compact:r,...n},o)=>{const i=$J(r),a=r!==!0;return y.jsx("svg",{ref:o,viewBox:"0 0 179.96 38.58",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:R(QT({size:t,className:e})),"aria-label":"Engrate",role:"img",...n,children:y.jsx("g",{id:"engrate-logo",children:y.jsxs("g",{children:[a&&y.jsxs("g",{className:i,children:[y.jsx("path",{fill:"var(--color-primary)",d:"M57.65,27.3c3.61,0,4.09-.62,4.14-3.96.09-5.72.18-11.88.18-18.22,0-3.34-.53-3.96-3.87-3.96V.27h21.21l.92,5.02h-.7c-2.02-2.51-3.26-3.96-7.39-3.96h-3.79c-2.2,0-2.6.22-2.6,1.76v9.59h4.53c3.78,0,4.14-.57,4.8-3.83h.97v9.59h-.97c-.48-3.43-1.23-4.27-4.4-4.27h-4.93v11.09c0,1.5.66,1.85,2.82,1.85h5.81c4.18,0,5.02-.79,7.83-5.5h.84c-.44,1.14-1.14,4.89-1.5,6.56h-23.9v-.88Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M84.6,27.47c2.38,0,2.9-.62,2.9-3.96v-8.23c0-1.01-.22-1.19-1.06-1.72-.35-.22-.53-.31-.53-.57,0-.35.26-.48.75-.75,1.5-.92,2.68-1.67,3.26-1.67.22,0,.48.13.48.53v1.8c1.19-.79,2.99-2.07,5.85-2.07,2.6,0,6.03.97,6.03,6.12v6.56c0,3.34.53,3.96,2.6,3.96v.7h-8.27v-.7c2.07,0,2.6-.62,2.6-3.96v-5.81c0-3.57-1.54-5.37-4.58-5.37-1.8,0-3.34,1.36-4.05,2.2v8.98c0,3.34.53,3.96,2.68,3.96v.7h-8.67v-.7Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M113.68,23.49c-.97,0-1.5-.09-1.98-.22-1.14.79-2.6,1.36-2.6,2.38,0,1.23,1.36,1.5,9.07,1.85,3.17.13,4.49,1.5,4.49,3.83,0,5.72-5.59,7.26-10.52,7.26-3.35,0-7.7-.79-7.7-3.7,0-2.07,1.5-3.12,5.02-4.88-1.8-.88-3.04-2.38-3.04-3.65,0-1.41,2.11-2.07,4.09-3.56-2.46-1.06-4.09-2.95-4.09-5.77,0-3.83,2.86-6.16,6.91-6.16,2.77,0,5.15,1.06,5.99,1.06.92,0,2.2-.53,3.43-.53,1.01,0,1.5.26,1.5.92,0,.75-.53,1.19-1.41,1.19s-1.36-.53-2.07-.53c-.62,0-.97.35-.97.92,0,1.19.57,1.41.57,3.48,0,3.61-3.34,6.12-6.69,6.12M113.5,37.7c3.57,0,6.95-1.58,6.95-4.8,0-1.85-1.54-2.6-9.33-2.6-1.72.66-3.61,1.98-3.61,4.05,0,2.2,2.73,3.34,5.99,3.34M113.02,11.74c-2.33,0-3.78,2.07-3.78,5.06,0,3.26,1.54,5.81,4.53,5.81,2.33,0,3.78-1.5,3.78-4.31,0-3.7-1.54-6.56-4.53-6.56"}),y.jsx("path",{fill:"var(--color-primary)",d:"M124.99,27.47c2.11,0,2.64-.62,2.64-3.96v-7.83c0-1.06-.22-1.5-1.06-1.89-.62-.31-.84-.35-.84-.62,0-.35.35-.48,2.02-1.23,1.94-.84,2.02-1.36,2.51-1.36.31,0,.44.18.44.48v1.45c0,.35.18.53.44.53.4,0,2.6-2.2,4.84-2.2,1.19,0,1.94.53,1.94,1.54,0,.79-.48,1.5-2.02,1.5-.57,0-1.63-.13-2.42-.13-1.58,0-2.77.79-2.77,3.17v7.22c0,2.73.48,3.26,2.73,3.34v.7h-8.45v-.7Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M148.71,15.68c0-3.04-1.14-3.79-2.99-3.79-4.05,0-2.38,4.53-4.97,4.53-.75,0-1.28-.4-1.28-1.19,0-1.63,3.96-4.4,7.35-4.4,2.95,0,4.97,1.5,4.97,5.28v9.64c0,1.01.62,1.28,1.1,1.28.66,0,1.1-.26,1.54-.66l.44.48c-.62.97-2.11,1.67-3.43,1.67s-2.64-.97-2.73-2.6c-2.07,1.89-4.09,2.6-5.77,2.6-2.51,0-4.27-1.5-4.27-3.43,0-3.04,2.51-3.92,7.66-5.24l2.38-.62v-3.56ZM148.71,19.95l-1.76.44c-3.3.84-5.02,1.85-5.02,3.7,0,1.63.92,2.95,2.91,2.95,1.41,0,2.68-.88,3.87-1.8v-5.28Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M165.13,12.68h-3.08c-1.8,0-2.42.44-2.42,3.17v8.49c0,1.94,1.19,2.68,2.82,2.68,1.23,0,2.24-.22,3.08-.35v.88c-1.23.44-2.46.97-4.45.97-3.65,0-4.53-2.29-4.53-4.4v-9.77c0-1.45-.09-1.58-.53-1.76-.35-.13-1.41-.18-1.41-.62,0-.31.4-.62.75-.97,2.95-2.99,3.34-3.61,3.79-3.61.26,0,.48.13.48.7v3.08h5.5v1.5Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M168.16,17.08c-.18.66-.31,1.41-.31,2.6,0,3.92,2.38,7.35,6.47,7.35,1.76,0,3.17-.62,5.11-1.94l.53.7c-1.98,1.58-3.92,2.99-6.78,2.99-5.24,0-8.41-4.49-8.41-8.36,0-5.55,3.87-9.33,8.49-9.33,3.7,0,6.6,3.04,6.6,5.77,0,.18-.13.22-.44.22h-11.27ZM176.79,16.03c-.18-2.38-1.72-4.05-3.96-4.05-2.55,0-3.96,2.07-4.45,4.05h8.41Z"})]}),y.jsxs("g",{children:[y.jsx("path",{fill:"var(--color-sunflower)",d:"M.2,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L7.28.28c-.17-.37-.62-.37-.79,0L.17,13.8c-.24.51-.23,1.14.03,1.63"}),y.jsx("path",{fill:"var(--color-sunflower)",d:"M12.25,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L19.33.28c-.17-.37-.62-.37-.79,0l-6.32,13.53c-.24.51-.23,1.14.03,1.63"}),y.jsx("path",{fill:"var(--color-sunflower)",d:"M24.31,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L31.39.28c-.17-.37-.62-.37-.79,0l-6.32,13.53c-.24.51-.23,1.14.03,1.63"})]})]})})})});ej.displayName="EngrateLogo";const tj=te("font-mono text-xs leading-5 font-normal tracking-[1.2px] uppercase",{variants:{variant:{default:"text-primary",primary:"text-primary",secondary:"text-secondary"},size:{default:"text-xs",sm:"text-[10px]",lg:"text-sm"}},defaultVariants:{variant:"default",size:"default"}}),rj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"span";return y.jsx(a,{className:R(tj({variant:t,size:r,className:e})),ref:i,...o})});rj.displayName="Eyebrow";const nj=te("w-full font-sans",{variants:{variant:{default:"border-border border-t bg-white",filled:"bg-main border-border border-t",dark:"bg-primary text-white"},size:{sm:"px-4 py-6",default:"px-6 py-10",lg:"px-8 py-16"}},defaultVariants:{variant:"default",size:"default"}}),oj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"footer";return y.jsx(a,{ref:i,className:R(nj({variant:t,size:r,className:e})),...o})});oj.displayName="Footer";const ij=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return y.jsx(o,{ref:n,className:R("grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-4",e),...r})});ij.displayName="FooterContent";const aj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return y.jsx(o,{ref:n,className:R("flex flex-col gap-3",e),...r})});aj.displayName="FooterSection";const sj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"h3";return y.jsx(o,{ref:n,className:R("text-small font-medium",e),...r})});sj.displayName="FooterHeading";const lj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"nav";return y.jsx(o,{ref:n,className:R("text-small text-secondary flex flex-col gap-2",e),...r})});lj.displayName="FooterLinks";const cj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return y.jsx(o,{ref:n,className:R("border-border mt-8 flex flex-col items-center justify-between gap-4 border-t pt-8 sm:flex-row",e),...r})});cj.displayName="FooterBottom";const uj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"p";return y.jsx(o,{ref:n,className:R("text-small text-secondary",e),...r})});uj.displayName="FooterCopyright";const Tm=f.forwardRef(({className:e,variant:t="default",children:r,...n},o)=>r?y.jsx("p",{ref:o,className:R("text-descriptive font-sans text-sm",t==="default"?"text-tertiary":"text-error",e),...n,children:r}):null);Tm.displayName="FormMessage";var LJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],FJ=LJ.reduce((e,t)=>{const r=EP(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),zJ="Label",dj=f.forwardRef((e,t)=>y.jsx(FJ.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));dj.displayName=zJ;var BJ=dj;const fj=te("text-tertiary font-sans font-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-50",{variants:{size:{default:"text-small",sm:"text-label"}},defaultVariants:{size:"default"}}),jm=f.forwardRef(({className:e,size:t,...r},n)=>y.jsx(BJ,{ref:n,className:R(fj({size:t}),e),...r}));jm.displayName="Label";const pj=f.forwardRef(({className:e,label:t,labelSize:r,hint:n,error:o,htmlFor:i,children:a,...s},l)=>{const c=i?`${i}-message`:void 0;return y.jsxs("div",{ref:l,className:R("flex flex-col gap-1.5",e),...s,children:[t&&y.jsx(jm,{htmlFor:i,size:r,children:t}),a,(n||o)&&y.jsx(Tm,{id:c,variant:o?"error":"default",role:o?"alert":void 0,children:o||n})]})});pj.displayName="FormField";const VJ=te("grid",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12"},gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"}},defaultVariants:{cols:1,gap:"md",align:"stretch",justify:"stretch"}}),WJ={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12"},KJ={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},UJ={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},HJ={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"};function yn(e,t,r){if(!e)return r?t[r]:"";if(typeof e=="object"){const n=[];return e.base!==void 0?n.push(t[e.base]):r&&n.push(t[r]),e.sm!==void 0&&n.push(`sm:${t[e.sm].split(":").pop()}`),e.md!==void 0&&n.push(`md:${t[e.md].split(":").pop()}`),e.lg!==void 0&&n.push(`lg:${t[e.lg].split(":").pop()}`),e.xl!==void 0&&n.push(`xl:${t[e.xl].split(":").pop()}`),e["2xl"]!==void 0&&n.push(`2xl:${t[e["2xl"]].split(":").pop()}`),n.join(" ")}return t[e]}const vj=f.forwardRef(({className:e,cols:t,gap:r,align:n,justify:o,as:i="div",asChild:a=!1,...s},l)=>{const c=a?Oe:i,u=yn(t,WJ,1),d=yn(r,KJ,"md"),p=yn(n,UJ,"stretch"),v=yn(o,HJ,"stretch");return y.jsx(c,{className:R("grid",u,d,p,v,e),ref:l,...s})});vj.displayName="Grid";const GJ=te("",{variants:{colSpan:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},rowSpan:{1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},colStart:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",auto:"col-start-auto"}},defaultVariants:{}}),qJ={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},YJ={1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},XJ={1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",auto:"col-start-auto"},mj=f.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:n,as:o="div",asChild:i=!1,...a},s)=>{const l=i?Oe:o,c=yn(t,qJ),u=yn(r,YJ),d=yn(n,XJ);return y.jsx(l,{className:R(c,u,d,e),ref:s,...a})});mj.displayName="GridItem";const hj=te("flex w-full items-center justify-between font-sans",{variants:{variant:{default:"border-border border-b bg-white",transparent:"bg-transparent",filled:"bg-main border-border border-b"},size:{sm:"h-12 px-4",default:"h-16 px-6",lg:"h-20 px-8"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"default",size:"default",sticky:!1}}),gj=f.forwardRef(({className:e,variant:t,size:r,sticky:n,asChild:o=!1,...i},a)=>{const s=o?Oe:"header";return y.jsx(s,{ref:a,className:R(hj({variant:t,size:r,sticky:n,className:e})),...i})});gj.displayName="Header";const yj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return y.jsx(o,{ref:n,className:R("flex shrink-0 items-center",e),...r})});yj.displayName="HeaderLogo";const bj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"nav";return y.jsx(o,{ref:n,className:R("flex items-center gap-6",e),...r})});bj.displayName="HeaderNav";const xj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return y.jsx(o,{ref:n,className:R("flex shrink-0 items-center gap-3",e),...r})});xj.displayName="HeaderActions";const wj=te("text-primary font-normal",{variants:{level:{hero:"font-display text-hero",h1:"text-h1 font-sans font-normal",h2:"text-h2 font-sans font-normal",h3:"text-h3 font-sans font-normal",h4:"text-h4 font-sans font-normal"}},defaultVariants:{level:"h1"}}),ZJ={hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4"},Pj=f.forwardRef(({className:e,level:t="h1",as:r,asChild:n=!1,...o},i)=>{const a=r??ZJ[t??"h1"],s=n?Oe:a;return y.jsx(s,{className:R(wj({level:t,className:e})),ref:i,...o})});Pj.displayName="Heading";const Sj=te("bg-card text-body text-primary placeholder:text-tertiary flex h-10 w-full rounded-md border px-3 py-2 font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-border focus-visible:ring-sunflower",error:"border-error focus-visible:ring-error"}},defaultVariants:{variant:"default"}}),Oj=f.forwardRef(({className:e,variant:t,type:r="text",...n},o)=>y.jsx("input",{type:r,className:R(Sj({variant:t}),e),ref:o,...n}));Oj.displayName="Input";const Ej=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),$a=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],Cj=f.forwardRef(({className:e,size:t,data:r,series:n,showGrid:o=!0,showLegend:i=!0,showTooltip:a=!0,xAxisLabel:s,yAxisLabel:l,strokeWidth:c=2,curved:u=!0,showDots:d=!0,...p},v)=>{const g=f.useMemo(()=>{if(n)return n;const m=r[0];return m?Object.keys(m).filter(b=>b!=="label"&&typeof m[b]=="number").map((b,x)=>({key:b,name:b.charAt(0).toUpperCase()+b.slice(1),color:$a[x%$a.length]})):[]},[r,n]);return y.jsx("div",{ref:v,className:R(Ej({size:t,className:e})),role:"img",...p,children:y.jsx(Op,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(A7,{data:r,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(nm,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),y.jsx(Ks,{dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(Us,{stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0}),a&&y.jsx(Vv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400}}),i&&y.jsx(Ml,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-secondary)"}}),g.map((m,h)=>y.jsx(OC,{type:u?"monotone":"linear",dataKey:m.key,name:m.name,stroke:m.color||$a[h%$a.length],strokeWidth:c,dot:d,activeDot:d?{r:6}:!1},m.key))]})})})});Cj.displayName="LineChart";const Aj=te("focus-visible:ring-sunflower inline-flex items-center font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{default:"text-primary hover:text-secondary underline underline-offset-4",muted:"text-secondary hover:text-primary underline underline-offset-4",nav:"text-primary hover:text-secondary no-underline hover:underline hover:underline-offset-4"},size:{sm:"text-small",default:"text-body",lg:"text-body font-medium"}},defaultVariants:{variant:"default",size:"default"}}),_j=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"a";return y.jsx(a,{className:R(Aj({variant:t,size:r,className:e})),ref:i,...o})});_j.displayName="Link";const JJ=oP,QJ=iP,Tj=aP,eQ=ul,Nm=f.forwardRef(({className:e,...t},r)=>y.jsx(sP,{ref:r,className:R("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-200",e),...t}));Nm.displayName="ModalOverlay";const jj=te(["fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2","bg-main grid w-full gap-4 p-6 shadow-lg","max-h-[85vh] overflow-y-auto","border-border rounded-lg border","focus-visible:ring-sunflower focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","duration-200"],{variants:{size:{sm:"max-w-[400px]",default:"max-w-[500px]",lg:"max-w-[640px]",full:"max-w-[95vw]"}},defaultVariants:{size:"default"}}),Nj=f.forwardRef(({className:e,children:t,size:r,showCloseButton:n=!0,...o},i)=>y.jsxs(Tj,{children:[y.jsx(Nm,{}),y.jsxs(lP,{ref:i,className:R(jj({size:r}),e),...o,children:[t,n&&y.jsxs(ul,{className:R("absolute top-4 right-4 rounded-sm opacity-70","ring-offset-main transition-opacity","hover:opacity-100","focus:ring-sunflower focus:ring-2 focus:ring-offset-2 focus:outline-none","disabled:pointer-events-none","data-[state=open]:bg-alt data-[state=open]:text-secondary"),children:[y.jsx(c0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Nj.displayName="ModalContent";const Mj=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}));Mj.displayName="ModalHeader";const Ij=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));Ij.displayName="ModalFooter";const kj=f.forwardRef(({className:e,...t},r)=>y.jsx(cP,{ref:r,className:R("text-primary text-lg leading-none tracking-tight",e),...t}));kj.displayName="ModalTitle";const Rj=f.forwardRef(({className:e,...t},r)=>y.jsx(uP,{ref:r,className:R("text-secondary text-sm",e),...t}));Rj.displayName="ModalDescription";const Dj=te("flex items-center justify-center gap-1 font-sans",{variants:{size:{sm:"text-small",default:"text-body",lg:"text-lead"}},defaultVariants:{size:"default"}}),$j=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-primary hover:bg-alt active:bg-contrast rounded-full",active:"bg-sunflower text-primary hover:bg-sunflower-hover rounded-full",ellipsis:"text-tertiary cursor-default"},size:{sm:"text-small h-7 w-7",default:"text-small h-9 w-9",lg:"text-body h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),Lj=f.forwardRef(({className:e,size:t,page:r,totalPages:n,onPageChange:o,siblingCount:i=1,...a},s)=>{const l=f.useMemo(()=>{const d=i*2+3+2;if(n<=d)return Array.from({length:n},(h,b)=>b+1);const p=Math.max(r-i,1),v=Math.min(r+i,n),g=p>2,m=v<n-1;if(!g&&m){const h=3+2*i;return[...Array.from({length:h},(x,w)=>w+1),"ellipsis-right",n]}if(g&&!m){const h=3+2*i;return[1,"ellipsis-left",...Array.from({length:h},(x,w)=>n-h+w+1)]}return g&&m?[1,"ellipsis-left",...Array.from({length:i*2+1},(b,x)=>p+x),"ellipsis-right",n]:Array.from({length:n},(h,b)=>b+1)},[r,n,i]),c=u=>{u>=1&&u<=n&&u!==r&&o?.(u)};return y.jsxs("nav",{ref:s,role:"navigation","aria-label":"Pagination",className:R(Dj({size:t,className:e})),...a,children:[y.jsx(ro,{size:t,onClick:()=>c(r-1),disabled:r===1,"aria-label":"Go to previous page",children:y.jsx(ol,{className:"h-4 w-4"})}),l.map(u=>typeof u=="string"?y.jsx(ro,{size:t,variant:"ellipsis",disabled:!0,"aria-hidden":!0,children:y.jsx(l0,{className:"h-4 w-4"})},u):y.jsx(ro,{size:t,variant:u===r?"active":"default",onClick:()=>c(u),"aria-label":`Go to page ${u}`,"aria-current":u===r?"page":void 0,children:u},u)),y.jsx(ro,{size:t,onClick:()=>c(r+1),disabled:r===n,"aria-label":"Go to next page",children:y.jsx(il,{className:"h-4 w-4"})})]})});Lj.displayName="Pagination";const ro=f.forwardRef(({className:e,variant:t,size:r,...n},o)=>y.jsx("button",{ref:o,type:"button",className:R($j({variant:t,size:r,className:e})),...n}));ro.displayName="PaginationItem";const Fj=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Fw=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],zj=f.forwardRef(({className:e,size:t,data:r,showLegend:n=!0,showTooltip:o=!0,innerRadius:i=0,outerRadius:a="80%",paddingAngle:s=0,showLabels:l=!1,startAngle:c=90,endAngle:u=-270,...d},p)=>{const v=f.useMemo(()=>r.reduce((m,h)=>m+h.value,0),[r]),g=f.useCallback(m=>{const{cx:h=0,cy:b=0,midAngle:x=0,percent:w=0}=m,P=m.innerRadius??0,O=m.outerRadius??0,S=Math.PI/180,E=P+(O-P)*.5,C=h+E*Math.cos(-x*S),N=b+E*Math.sin(-x*S);return y.jsx("text",{x:C,y:N,fill:"var(--color-white)",textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"12px",fontFamily:"var(--font-sans)",fontWeight:500},children:`${(w*100).toFixed(0)}%`})},[]);return y.jsx("div",{ref:p,className:R(Fj({size:t,className:e})),role:"img",...d,children:y.jsx(Op,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(B7,{children:[o&&y.jsx(Vv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},formatter:(m,h)=>[`${m} (${v>0?(Number(m)/v*100).toFixed(1):0}%)`,h]}),n&&y.jsx(Ml,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-secondary)"}}),y.jsx(sC,{data:r,cx:"50%",cy:"50%",innerRadius:i,outerRadius:a,paddingAngle:s,dataKey:"value",nameKey:"name",startAngle:c,endAngle:u,label:l?g:!1,labelLine:!1,children:r.map((m,h)=>y.jsx(Ui,{fill:m.color||Fw[h%Fw.length]},`cell-${m.name}-${h}`))})]})})})});zj.displayName="PieChart";const Bj=te("bg-border relative w-full overflow-hidden rounded-full",{variants:{size:{sm:"h-1",default:"h-2",lg:"h-3",xl:"h-4"}},defaultVariants:{size:"default"}}),Vj=te("h-full transition-all duration-300 ease-out",{variants:{variant:{default:"bg-sunflower",muted:"bg-secondary",success:"bg-electric-blue"},animated:{true:"animate-pulse",false:""}},defaultVariants:{variant:"default",animated:!1}}),Wj=f.forwardRef(({className:e,value:t=0,max:r=100,size:n,variant:o,animated:i,label:a="Progress",indeterminate:s=!1,...l},c)=>{const u=Math.min(Math.max(t/r*100,0),100);return y.jsx("div",{ref:c,role:"progressbar","aria-valuenow":s?void 0:t,"aria-valuemin":0,"aria-valuemax":r,"aria-label":a,className:R(Bj({size:n,className:e})),...l,children:y.jsx("div",{className:R(Vj({variant:o,animated:i}),s&&"animate-progress-indeterminate"),style:{width:s?"50%":`${u}%`}})})});Wj.displayName="ProgressIndicator";var Mm="Radio",[tQ,Kj]=Xe(Mm),[rQ,nQ]=tQ(Mm),Uj=f.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,form:c,...u}=e,[d,p]=f.useState(null),v=ie(t,h=>p(h)),g=f.useRef(!1),m=d?c||!!d.closest("form"):!0;return y.jsxs(rQ,{scope:r,checked:o,disabled:a,children:[y.jsx(Q.button,{type:"button",role:"radio","aria-checked":o,"data-state":Yj(o),"data-disabled":a?"":void 0,disabled:a,value:s,...u,ref:v,onClick:U(e.onClick,h=>{o||l?.(),m&&(g.current=h.isPropagationStopped(),g.current||h.stopPropagation())})}),m&&y.jsx(qj,{control:d,bubbles:!g.current,name:n,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});Uj.displayName=Mm;var Hj="RadioIndicator",Gj=f.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=nQ(Hj,r);return y.jsx(lt,{present:n||i.checked,children:y.jsx(Q.span,{"data-state":Yj(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});Gj.displayName=Hj;var oQ="RadioBubbleInput",qj=f.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=ie(a,i),l=oc(r),c=ic(t);return f.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&v){const g=new Event("click",{bubbles:n});v.call(u,r),u.dispatchEvent(g)}},[l,r,n]),y.jsx(Q.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});qj.displayName=oQ;function Yj(e){return e?"checked":"unchecked"}var iQ=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],yc="RadioGroup",[aQ]=Xe(yc,[pc,Kj]),Xj=pc(),Zj=Kj(),[sQ,lQ]=aQ(yc),Jj=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...p}=e,v=Xj(r),g=xi(c),[m,h]=at({prop:i,defaultProp:o??null,onChange:d,caller:yc});return y.jsx(sQ,{scope:r,name:n,required:a,disabled:s,value:m,onValueChange:h,children:y.jsx(RA,{asChild:!0,...v,orientation:l,dir:g,loop:u,children:y.jsx(Q.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:g,...p,ref:t})})})});Jj.displayName=yc;var Qj="RadioGroupItem",eN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=lQ(Qj,r),a=i.disabled||n,s=Xj(r),l=Zj(r),c=f.useRef(null),u=ie(t,c),d=i.value===o.value,p=f.useRef(!1);return f.useEffect(()=>{const v=m=>{iQ.includes(m.key)&&(p.current=!0)},g=()=>p.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),y.jsx(DA,{asChild:!0,...s,focusable:!a,active:d,children:y.jsx(Uj,{disabled:a,required:i.required,checked:d,...l,...o,name:i.name,ref:u,onCheck:()=>i.onValueChange(o.value),onKeyDown:U(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:U(o.onFocus,()=>{p.current&&c.current?.click()})})})});eN.displayName=Qj;var cQ="RadioGroupIndicator",tN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=Zj(r);return y.jsx(Gj,{...o,...n,ref:t})});tN.displayName=cQ;var uQ=Jj,dQ=eN,fQ=tN;const rN=f.forwardRef(({className:e,...t},r)=>y.jsx(uQ,{className:R("grid gap-2",e),...t,ref:r}));rN.displayName="RadioGroup";const nN=f.forwardRef(({className:e,...t},r)=>y.jsx(dQ,{ref:r,className:R("border-border bg-card aspect-square h-5 w-5 rounded-full border transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-sunflower",e),...t,children:y.jsx(fQ,{className:"flex items-center justify-center",children:y.jsx("span",{className:"bg-sunflower h-2.5 w-2.5 rounded-full"})})}));nN.displayName="RadioGroupItem";function zw(e,[t,r]){return Math.min(r,Math.max(t,e))}function pQ(e){const t=vQ(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(hQ);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function vQ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=yQ(o),s=gQ(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mQ=Symbol("radix.slottable");function hQ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mQ}function gQ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function yQ(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 oN=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"}),bQ="VisuallyHidden",bc=f.forwardRef((e,t)=>y.jsx(Q.span,{...e,ref:t,style:{...oN,...e.style}}));bc.displayName=bQ;var xQ=bc,wQ=[" ","Enter","ArrowUp","ArrowDown"],PQ=[" ","Enter"],kn="Select",[xc,wc,SQ]=bi(kn),[Io]=Xe(kn,[SQ,rn]),Pc=rn(),[OQ,an]=Io(kn),[EQ,CQ]=Io(kn),iN=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:p,required:v,form:g}=e,m=Pc(t),[h,b]=f.useState(null),[x,w]=f.useState(null),[P,O]=f.useState(!1),S=xi(c),[E,C]=at({prop:n,defaultProp:o??!1,onChange:i,caller:kn}),[N,D]=at({prop:a,defaultProp:s,onChange:l,caller:kn}),$=f.useRef(null),_=h?g||!!h.closest("form"):!0,[M,k]=f.useState(new Set),V=Array.from(M).map(B=>B.props.value).join(";");return y.jsx(qi,{...m,children:y.jsxs(OQ,{required:v,scope:t,trigger:h,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:P,onValueNodeHasChildrenChange:O,contentId:vt(),value:N,onValueChange:D,open:E,onOpenChange:C,dir:S,triggerPointerDownPosRef:$,disabled:p,children:[y.jsx(xc.Provider,{scope:t,children:y.jsx(EQ,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(B=>{k(K=>new Set(K).add(B))},[]),onNativeOptionRemove:f.useCallback(B=>{k(K=>{const T=new Set(K);return T.delete(B),T})},[]),children:r})}),_?y.jsxs(jN,{"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:d,value:N,onChange:B=>D(B.target.value),disabled:p,form:g,children:[N===void 0?y.jsx("option",{value:""}):null,Array.from(M)]},V):null]})})};iN.displayName=kn;var aN="SelectTrigger",sN=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Pc(r),a=an(aN,r),s=a.disabled||n,l=ie(t,a.onTriggerChange),c=wc(r),u=f.useRef("touch"),[d,p,v]=MN(m=>{const h=c().filter(w=>!w.disabled),b=h.find(w=>w.value===a.value),x=IN(h,m,b);x!==void 0&&a.onValueChange(x.value)}),g=m=>{s||(a.onOpenChange(!0),v()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return y.jsx(Yi,{asChild:!0,...i,children:y.jsx(Q.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":NN(a.value)?"":void 0,...o,ref:l,onClick:U(o.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&g(m)}),onPointerDown:U(o.onPointerDown,m=>{u.current=m.pointerType;const h=m.target;h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:U(o.onKeyDown,m=>{const h=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&p(m.key),!(h&&m.key===" ")&&wQ.includes(m.key)&&(g(),m.preventDefault())})})})});sN.displayName=aN;var lN="SelectValue",cN=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a="",...s}=e,l=an(lN,r),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=ie(t,l.onValueNodeChange);return qe(()=>{c(u)},[c,u]),y.jsx(Q.span,{...s,ref:d,style:{pointerEvents:"none"},children:NN(l.value)?y.jsx(y.Fragment,{children:a}):i})});cN.displayName=lN;var AQ="SelectIcon",uN=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return y.jsx(Q.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});uN.displayName=AQ;var _Q="SelectPortal",dN=e=>y.jsx(Ln,{asChild:!0,...e});dN.displayName=_Q;var Rn="SelectContent",fN=f.forwardRef((e,t)=>{const r=an(Rn,e.__scopeSelect),[n,o]=f.useState();if(qe(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?yi.createPortal(y.jsx(pN,{scope:e.__scopeSelect,children:y.jsx(xc.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),i):null}return y.jsx(vN,{...e,ref:t})});fN.displayName=Rn;var Ft=10,[pN,sn]=Io(Rn),TQ="SelectContentImpl",jQ=pQ("SelectContent.RemoveScroll"),vN=f.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:h,...b}=e,x=an(Rn,r),[w,P]=f.useState(null),[O,S]=f.useState(null),E=ie(t,W=>P(W)),[C,N]=f.useState(null),[D,$]=f.useState(null),_=wc(r),[M,k]=f.useState(!1),V=f.useRef(!1);f.useEffect(()=>{if(w)return ll(w)},[w]),al();const B=f.useCallback(W=>{const[ue,...L]=_().map(F=>F.ref.current),[H]=L.slice(-1),z=document.activeElement;for(const F of W)if(F===z||(F?.scrollIntoView({block:"nearest"}),F===ue&&O&&(O.scrollTop=0),F===H&&O&&(O.scrollTop=O.scrollHeight),F?.focus(),document.activeElement!==z))return},[_,O]),K=f.useCallback(()=>B([C,w]),[B,C,w]);f.useEffect(()=>{M&&K()},[M,K]);const{onOpenChange:T,triggerPointerDownPosRef:I}=x;f.useEffect(()=>{if(w){let W={x:0,y:0};const ue=H=>{W={x:Math.abs(Math.round(H.pageX)-(I.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(I.current?.y??0))}},L=H=>{W.x<=10&&W.y<=10?H.preventDefault():w.contains(H.target)||T(!1),document.removeEventListener("pointermove",ue),I.current=null};return I.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",L,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",L,{capture:!0})}}},[w,T,I]),f.useEffect(()=>{const W=()=>T(!1);return window.addEventListener("blur",W),window.addEventListener("resize",W),()=>{window.removeEventListener("blur",W),window.removeEventListener("resize",W)}},[T]);const[G,ee]=MN(W=>{const ue=_().filter(z=>!z.disabled),L=ue.find(z=>z.ref.current===document.activeElement),H=IN(ue,W,L);H&&setTimeout(()=>H.ref.current.focus())}),re=f.useCallback((W,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&(N(W),H&&(V.current=!0))},[x.value]),oe=f.useCallback(()=>w?.focus(),[w]),ne=f.useCallback((W,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&$(W)},[x.value]),le=n==="popper"?kf:mN,Ee=le===kf?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:h}:{};return y.jsx(pN,{scope:r,content:w,viewport:O,onViewportChange:S,itemRefCallback:re,selectedItem:C,onItemLeave:oe,itemTextRefCallback:ne,focusSelectedItem:K,selectedItemText:D,position:n,isPositioned:M,searchRef:G,children:y.jsx(Pi,{as:jQ,allowPinchZoom:!0,children:y.jsx(wi,{asChild:!0,trapped:x.open,onMountAutoFocus:W=>{W.preventDefault()},onUnmountAutoFocus:U(o,W=>{x.trigger?.focus({preventScroll:!0}),W.preventDefault()}),children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:W=>W.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:y.jsx(le,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:W=>W.preventDefault(),...b,...Ee,onPlaced:()=>k(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:U(b.onKeyDown,W=>{const ue=W.ctrlKey||W.altKey||W.metaKey;if(W.key==="Tab"&&W.preventDefault(),!ue&&W.key.length===1&&ee(W.key),["ArrowUp","ArrowDown","Home","End"].includes(W.key)){let H=_().filter(z=>!z.disabled).map(z=>z.ref.current);if(["ArrowUp","End"].includes(W.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(W.key)){const z=W.target,F=H.indexOf(z);H=H.slice(F+1)}setTimeout(()=>B(H)),W.preventDefault()}})})})})})})});vN.displayName=TQ;var NQ="SelectItemAlignedPosition",mN=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=an(Rn,r),a=sn(Rn,r),[s,l]=f.useState(null),[c,u]=f.useState(null),d=ie(t,E=>u(E)),p=wc(r),v=f.useRef(!1),g=f.useRef(!0),{viewport:m,selectedItem:h,selectedItemText:b,focusSelectedItem:x}=a,w=f.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&h&&b){const E=i.trigger.getBoundingClientRect(),C=c.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),D=b.getBoundingClientRect();if(i.dir!=="rtl"){const z=D.left-C.left,F=N.left-z,fe=E.left-F,se=E.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-Ft,Lt=zw(F,[Ft,Math.max(Ft,et-Qe)]);s.style.minWidth=se+"px",s.style.left=Lt+"px"}else{const z=C.right-D.right,F=window.innerWidth-N.right-z,fe=window.innerWidth-E.right-F,se=E.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-Ft,Lt=zw(F,[Ft,Math.max(Ft,et-Qe)]);s.style.minWidth=se+"px",s.style.right=Lt+"px"}const $=p(),_=window.innerHeight-Ft*2,M=m.scrollHeight,k=window.getComputedStyle(c),V=parseInt(k.borderTopWidth,10),B=parseInt(k.paddingTop,10),K=parseInt(k.borderBottomWidth,10),T=parseInt(k.paddingBottom,10),I=V+B+M+T+K,G=Math.min(h.offsetHeight*5,I),ee=window.getComputedStyle(m),re=parseInt(ee.paddingTop,10),oe=parseInt(ee.paddingBottom,10),ne=E.top+E.height/2-Ft,le=_-ne,Ee=h.offsetHeight/2,W=h.offsetTop+Ee,ue=V+B+W,L=I-ue;if(ue<=ne){const z=$.length>0&&h===$[$.length-1].ref.current;s.style.bottom="0px";const F=c.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(le,Ee+(z?oe:0)+F+K),se=ue+fe;s.style.height=se+"px"}else{const z=$.length>0&&h===$[0].ref.current;s.style.top="0px";const fe=Math.max(ne,V+m.offsetTop+(z?re:0)+Ee)+L;s.style.height=fe+"px",m.scrollTop=ue-ne+m.offsetTop}s.style.margin=`${Ft}px 0`,s.style.minHeight=G+"px",s.style.maxHeight=_+"px",n?.(),requestAnimationFrame(()=>v.current=!0)}},[p,i.trigger,i.valueNode,s,c,m,h,b,i.dir,n]);qe(()=>w(),[w]);const[P,O]=f.useState();qe(()=>{c&&O(window.getComputedStyle(c).zIndex)},[c]);const S=f.useCallback(E=>{E&&g.current===!0&&(w(),x?.(),g.current=!1)},[w,x]);return y.jsx(IQ,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:S,children:y.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:y.jsx(Q.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});mN.displayName=NQ;var MQ="SelectPopperPosition",kf=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Ft,...i}=e,a=Pc(r);return y.jsx(dc,{...a,...i,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});kf.displayName=MQ;var[IQ,Im]=Io(Rn,{}),Rf="SelectViewport",hN=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=sn(Rf,r),a=Im(Rf,r),s=ie(t,i.onViewportChange),l=f.useRef(0);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(xc.Slot,{scope:r,children:y.jsx(Q.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:U(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:p}=a;if(p?.current&&d){const v=Math.abs(l.current-u.scrollTop);if(v>0){const g=window.innerHeight-Ft*2,m=parseFloat(d.style.minHeight),h=parseFloat(d.style.height),b=Math.max(m,h);if(b<g){const x=b+v,w=Math.min(g,x),P=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=P>0?P:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});hN.displayName=Rf;var gN="SelectGroup",[kQ,RQ]=Io(gN),yN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=vt();return y.jsx(kQ,{scope:r,id:o,children:y.jsx(Q.div,{role:"group","aria-labelledby":o,...n,ref:t})})});yN.displayName=gN;var bN="SelectLabel",xN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=RQ(bN,r);return y.jsx(Q.div,{id:o.id,...n,ref:t})});xN.displayName=bN;var el="SelectItem",[DQ,wN]=Io(el),PN=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=an(el,r),l=sn(el,r),c=s.value===n,[u,d]=f.useState(i??""),[p,v]=f.useState(!1),g=ie(t,x=>l.itemRefCallback?.(x,n,o)),m=vt(),h=f.useRef("touch"),b=()=>{o||(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 y.jsx(DQ,{scope:r,value:n,disabled:o,textId:m,isSelected:c,onItemTextChange:f.useCallback(x=>{d(w=>w||(x?.textContent??"").trim())},[]),children:y.jsx(xc.ItemSlot,{scope:r,value:n,disabled:o,textValue:u,children:y.jsx(Q.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:g,onFocus:U(a.onFocus,()=>v(!0)),onBlur:U(a.onBlur,()=>v(!1)),onClick:U(a.onClick,()=>{h.current!=="mouse"&&b()}),onPointerUp:U(a.onPointerUp,()=>{h.current==="mouse"&&b()}),onPointerDown:U(a.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:U(a.onPointerMove,x=>{h.current=x.pointerType,o?l.onItemLeave?.():h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:U(a.onPointerLeave,x=>{x.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:U(a.onKeyDown,x=>{l.searchRef?.current!==""&&x.key===" "||(PQ.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});PN.displayName=el;var Yo="SelectItemText",SN=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=an(Yo,r),s=sn(Yo,r),l=wN(Yo,r),c=CQ(Yo,r),[u,d]=f.useState(null),p=ie(t,b=>d(b),l.onItemTextChange,b=>s.itemTextRefCallback?.(b,l.value,l.disabled)),v=u?.textContent,g=f.useMemo(()=>y.jsx("option",{value:l.value,disabled:l.disabled,children:v},l.value),[l.disabled,l.value,v]),{onNativeOptionAdd:m,onNativeOptionRemove:h}=c;return qe(()=>(m(g),()=>h(g)),[m,h,g]),y.jsxs(y.Fragment,{children:[y.jsx(Q.span,{id:l.textId,...i,ref:p}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?yi.createPortal(i.children,a.valueNode):null]})});SN.displayName=Yo;var ON="SelectItemIndicator",EN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return wN(ON,r).isSelected?y.jsx(Q.span,{"aria-hidden":!0,...n,ref:t}):null});EN.displayName=ON;var Df="SelectScrollUpButton",CN=f.forwardRef((e,t)=>{const r=sn(Df,e.__scopeSelect),n=Im(Df,e.__scopeSelect),[o,i]=f.useState(!1),a=ie(t,n.onScrollButtonChange);return qe(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollTop>0;i(c)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?y.jsx(_N,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});CN.displayName=Df;var $f="SelectScrollDownButton",AN=f.forwardRef((e,t)=>{const r=sn($f,e.__scopeSelect),n=Im($f,e.__scopeSelect),[o,i]=f.useState(!1),a=ie(t,n.onScrollButtonChange);return qe(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;i(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?y.jsx(_N,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});AN.displayName=$f;var _N=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=sn("SelectScrollButton",r),a=f.useRef(null),s=wc(r),l=f.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),qe(()=>{s().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),y.jsx(Q.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:U(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:U(o.onPointerMove,()=>{i.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:U(o.onPointerLeave,()=>{l()})})}),$Q="SelectSeparator",TN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return y.jsx(Q.div,{"aria-hidden":!0,...n,ref:t})});TN.displayName=$Q;var Lf="SelectArrow",LQ=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Pc(r),i=an(Lf,r),a=sn(Lf,r);return i.open&&a.position==="popper"?y.jsx(fc,{...o,...n,ref:t}):null});LQ.displayName=Lf;var FQ="SelectBubbleInput",jN=f.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=f.useRef(null),i=ie(n,o),a=oc(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&u){const d=new Event("change",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[a,t]),y.jsx(Q.select,{...r,style:{...oN,...r.style},ref:i,defaultValue:t})});jN.displayName=FQ;function NN(e){return e===""||e===void 0}function MN(e){const t=st(e),r=f.useRef(""),n=f.useRef(0),o=f.useCallback(a=>{const s=r.current+a;t(s),(function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),i=f.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function IN(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=zQ(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function zQ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var BQ=iN,VQ=sN,WQ=cN,KQ=uN,UQ=dN,HQ=fN,GQ=hN,qQ=yN,YQ=xN,XQ=PN,ZQ=SN,JQ=EN,QQ=CN,eee=AN,tee=TN;const ree=BQ,nee=qQ,oee=WQ,kN=f.forwardRef(({className:e,children:t,variant:r="default",...n},o)=>y.jsxs(VQ,{ref:o,className:R("bg-card text-body text-primary flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 font-sans transition-colors","placeholder:text-tertiary","focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","[&>span]:line-clamp-1",r==="default"?"border-border focus-visible:ring-sunflower":"border-error focus-visible:ring-error",e),...n,children:[t,y.jsx(KQ,{asChild:!0,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 opacity-50",children:y.jsx("path",{d:"m6 9 6 6 6-6"})})})]}));kN.displayName="SelectTrigger";const km=f.forwardRef(({className:e,...t},r)=>y.jsx(QQ,{ref:r,className:R("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"m18 15-6-6-6 6"})})}));km.displayName="SelectScrollUpButton";const Rm=f.forwardRef(({className:e,...t},r)=>y.jsx(eee,{ref:r,className:R("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"m6 9 6 6 6-6"})})}));Rm.displayName="SelectScrollDownButton";const RN=f.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>y.jsx(UQ,{children:y.jsxs(HQ,{ref:o,className:R("border-border bg-card text-primary relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","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",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,...n,children:[y.jsx(km,{}),y.jsx(GQ,{className:R("p-1",r==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),y.jsx(Rm,{})]})}));RN.displayName="SelectContent";const DN=f.forwardRef(({className:e,...t},r)=>y.jsx(YQ,{ref:r,className:R("text-small text-tertiary py-1.5 pr-2 pl-8 font-normal",e),...t}));DN.displayName="SelectLabel";const $N=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(XQ,{ref:n,className:R("text-body relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(JQ,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})})})}),y.jsx(ZQ,{children:t})]}));$N.displayName="SelectItem";const LN=f.forwardRef(({className:e,...t},r)=>y.jsx(tee,{ref:r,className:R("bg-border -mx-1 my-1 h-px",e),...t}));LN.displayName="SelectSeparator";const FN=f.createContext(null);function Sc(){const e=f.useContext(FN);if(!e)throw new Error("Sidebar components must be used within a Sidebar");return e}const zN=te(["border-border bg-card flex h-dvh flex-col border-r transition-[width] duration-300 ease-in-out","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"],{variants:{variant:{default:"",bordered:"border-border border"},width:{sm:"",default:"",lg:""}},defaultVariants:{variant:"default",width:"default"}}),iee={sm:{expanded:"w-52",collapsed:"w-14"},default:{expanded:"w-64",collapsed:"w-16"},lg:{expanded:"w-72",collapsed:"w-20"}},BN=f.forwardRef(({className:e,variant:t,width:r="default",defaultCollapsed:n=!1,collapsed:o,onCollapsedChange:i,collapsible:a=!0,autoCollapseMobile:s=!0,children:l,...c},u)=>{const[d,p]=f.useState(n),v=o!==void 0,g=v?o:d,m=f.useCallback(x=>{a&&(v||p(x),i?.(x))},[v,i,a]);f.useEffect(()=>{if(!s||!a||typeof window>"u"||!window.matchMedia)return;const x=window.matchMedia("(max-width: 768px)"),w=P=>{m(P.matches)};return w(x),x.addEventListener("change",w),()=>x.removeEventListener("change",w)},[s,a,m]);const h=f.useMemo(()=>({collapsed:g,setCollapsed:m,collapsible:a}),[g,m,a]),b=iee[r||"default"];return y.jsx(FN.Provider,{value:h,children:y.jsx("aside",{ref:u,className:R(zN({variant:t}),g?b.collapsed:b.expanded,e),"data-collapsed":g,...c,children:l})})});BN.displayName="Sidebar";const VN=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex items-center gap-2 px-4 pt-4 pb-2",e),...t}));VN.displayName="SidebarHeader";const WN=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex-1 overflow-y-auto px-3 py-2",e),...t}));WN.displayName="SidebarContent";const KN=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("border-border mt-auto border-t px-3 py-3",e),...t}));KN.displayName="SidebarFooter";const UN=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("space-y-1 py-2",e),...t}));UN.displayName="SidebarGroup";const HN=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n}=Sc();return n?null:y.jsx("div",{ref:r,className:R("text-label text-tertiary px-3 py-2 font-sans uppercase",e),...t})});HN.displayName="SidebarGroupLabel";const Ff=te(["text-small flex w-full items-center gap-3 rounded-md px-3 py-2 font-sans transition-colors","text-secondary hover:bg-alt hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"],{variants:{active:{true:"bg-alt text-primary font-medium",false:""}},defaultVariants:{active:!1}}),GN=f.forwardRef(({className:e,active:t,icon:r,asChild:n=!1,children:o,...i},a)=>{const{collapsed:s}=Sc(),l=n?Oe:"button",c=y.jsxs(y.Fragment,{children:[r&&y.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&y.jsx("span",{className:"truncate",children:o})]});return n?y.jsx(Oe,{ref:a,className:R(Ff({active:t}),s&&"justify-center px-2",e),...i,children:f.isValidElement(o)?f.cloneElement(o,{children:y.jsxs(y.Fragment,{children:[r&&y.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&y.jsx("span",{className:"truncate",children:o.props.children})]})}):o}):y.jsx(l,{ref:a,className:R(Ff({active:t}),s&&"justify-center px-2",e),...i,children:c})});GN.displayName="SidebarItem";const qN=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n,setCollapsed:o,collapsible:i}=Sc();return i?y.jsx("button",{ref:r,type:"button",className:R("text-small flex w-full items-center rounded-md p-2 font-sans transition-colors","text-secondary hover:bg-alt hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),onClick:()=>o(!n),"aria-label":n?"Expand sidebar":"Collapse sidebar",...t,children:n?y.jsx(il,{className:"h-5 w-5"}):y.jsx(ol,{className:"h-5 w-5"})}):null});qN.displayName="SidebarTrigger";const YN=f.forwardRef(({className:e,...t},r)=>y.jsx("hr",{ref:r,className:R("border-border my-2 border-t",e),...t}));YN.displayName="SidebarSeparator";const XN=te("bg-contrast animate-pulse",{variants:{variant:{default:"rounded-md",circular:"rounded-full",text:"rounded"}},defaultVariants:{variant:"default"}}),ZN=f.forwardRef(({className:e,variant:t,width:r,height:n,style:o,...i},a)=>{const s={...o,...r!==void 0&&{width:typeof r=="number"?`${r}px`:r},...n!==void 0&&{height:typeof n=="number"?`${n}px`:n}};return y.jsx("div",{ref:a,"aria-hidden":"true",className:R(XN({variant:t,className:e})),style:s,...i})});ZN.displayName="Skeleton";const JN=te("inline-block animate-spin rounded-full border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]",{variants:{variant:{default:"text-sunflower",muted:"text-secondary",inverted:"text-white"},size:{sm:"h-4 w-4 border-2",default:"h-6 w-6 border-2",lg:"h-8 w-8 border-3",xl:"h-12 w-12 border-4"}},defaultVariants:{variant:"default",size:"default"}}),QN=f.forwardRef(({className:e,variant:t,size:r,label:n="Loading",...o},i)=>y.jsx("span",{ref:i,role:"status","aria-label":n,className:R(JN({variant:t,size:r,className:e})),...o,children:y.jsx("span",{className:"sr-only",children:n})}));QN.displayName="Spinner";const eM=te("flex",{variants:{direction:{vertical:"flex-col",horizontal:"flex-row"},gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"}},defaultVariants:{direction:"vertical",gap:"md",align:"stretch",justify:"start",wrap:"nowrap"}}),tM=f.forwardRef(({className:e,direction:t,gap:r,align:n,justify:o,wrap:i,as:a="div",asChild:s=!1,...l},c)=>{const u=s?Oe:a;return y.jsx(u,{className:R(eM({direction:t,gap:r,align:n,justify:o,wrap:i,className:e})),ref:c,...l})});tM.displayName="Stack";var Oc="Switch",[aee]=Xe(Oc),[see,lee]=aee(Oc),rM=f.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[p,v]=f.useState(null),g=ie(t,w=>v(w)),m=f.useRef(!1),h=p?u||!!p.closest("form"):!0,[b,x]=at({prop:o,defaultProp:i??!1,onChange:c,caller:Oc});return y.jsxs(see,{scope:r,checked:b,disabled:s,children:[y.jsx(Q.button,{type:"button",role:"switch","aria-checked":b,"aria-required":a,"data-state":aM(b),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:g,onClick:U(e.onClick,w=>{x(P=>!P),h&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),h&&y.jsx(iM,{control:p,bubbles:!m.current,name:n,value:l,checked:b,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});rM.displayName=Oc;var nM="SwitchThumb",oM=f.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=lee(nM,r);return y.jsx(Q.span,{"data-state":aM(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});oM.displayName=nM;var cee="SwitchBubbleInput",iM=f.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=ie(a,i),l=oc(r),c=ic(t);return f.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&v){const g=new Event("click",{bubbles:n});v.call(u,r),u.dispatchEvent(g)}},[l,r,n]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});iM.displayName=cee;function aM(e){return e?"checked":"unchecked"}var uee=rM,dee=oM;const sM=f.forwardRef(({className:e,...t},r)=>y.jsx(uee,{className:R("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-sunflower data-[state=unchecked]:bg-contrast",e),...t,ref:r,children:y.jsx(dee,{className:R("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform","data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));sM.displayName="Switch";const lM=te("text-body w-full caption-bottom border-collapse font-sans",{variants:{variant:{default:"border-separate border-spacing-0",striped:"border-separate border-spacing-0"},size:{default:"",compact:""}},defaultVariants:{variant:"default",size:"default"}}),fee=te("border-border bg-alt border-b",{variants:{},defaultVariants:{}}),pee=te("",{variants:{},defaultVariants:{}}),vee=te("transition-colors",{variants:{variant:{default:"border-border hover:bg-alt/50 border-b",striped:"border-border even:bg-alt/30 hover:bg-alt border-b"}},defaultVariants:{variant:"default"}}),mee=te("text-small text-primary text-left align-middle font-sans font-normal [&:has([role=checkbox])]:pr-0",{variants:{sortable:{true:"hover:bg-contrast cursor-pointer select-none",false:""},size:{default:"h-12 px-4",compact:"h-8 px-2"}},defaultVariants:{sortable:!1,size:"default"}}),hee=te("text-secondary align-middle [&:has([role=checkbox])]:pr-0",{variants:{size:{default:"p-4",compact:"p-2"}},defaultVariants:{size:"default"}}),Dm=f.createContext({size:"default"}),cM=f.forwardRef(({className:e,variant:t,size:r="default",...n},o)=>y.jsx(Dm.Provider,{value:{size:r??"default"},children:y.jsx("div",{className:"relative w-full overflow-auto",children:y.jsx("table",{ref:o,className:R(lM({variant:t,size:r}),e),...n})})}));cM.displayName="Table";const uM=f.forwardRef(({className:e,...t},r)=>y.jsx("thead",{ref:r,className:R(fee(),e),...t}));uM.displayName="TableHeader";const dM=f.forwardRef(({className:e,...t},r)=>y.jsx("tbody",{ref:r,className:R(pee(),e),...t}));dM.displayName="TableBody";const fM=f.forwardRef(({className:e,...t},r)=>y.jsx("tfoot",{ref:r,className:R("border-border bg-alt text-primary border-t font-normal",e),...t}));fM.displayName="TableFooter";const pM=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx("tr",{ref:n,className:R(vee({variant:t}),e),...r}));pM.displayName="TableRow";const vM=f.forwardRef(({className:e,children:t,sortable:r=!1,sortDirection:n=null,onSort:o,...i},a)=>{const{size:s}=f.useContext(Dm),l=()=>{r&&o&&o()},c=u=>{r&&o&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())};return y.jsx("th",{ref:a,className:R(mee({sortable:r,size:s}),e),onClick:l,onKeyDown:c,tabIndex:r?0:void 0,role:r?"button":void 0,"aria-sort":n==="asc"?"ascending":n==="desc"?"descending":void 0,...i,children:y.jsxs("div",{className:"flex items-center gap-2",children:[t,r&&y.jsxs("span",{className:"inline-flex flex-col","aria-hidden":"true",children:[y.jsx("svg",{className:R("h-3 w-3 transition-opacity",n==="asc"?"opacity-100":"opacity-30"),fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:y.jsx("path",{d:"M7 15l5-5 5 5"})}),y.jsx("svg",{className:R("-mt-1 h-3 w-3 transition-opacity",n==="desc"?"opacity-100":"opacity-30"),fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:y.jsx("path",{d:"M7 9l5 5 5-5"})})]})]})})});vM.displayName="TableHead";const mM=f.forwardRef(({className:e,...t},r)=>{const{size:n}=f.useContext(Dm);return y.jsx("td",{ref:r,className:R(hee({size:n}),e),...t})});mM.displayName="TableCell";const hM=f.forwardRef(({className:e,...t},r)=>y.jsx("caption",{ref:r,className:R("text-small text-tertiary mt-4",e),...t}));hM.displayName="TableCaption";function gee({data:e,initialSortKey:t=null,initialSortDirection:r="asc"}){const[n,o]=f.useState(t),[i,a]=f.useState(r),s=f.useCallback(c=>{o(u=>u===c?(a(d=>d==="asc"?"desc":d==="desc"?(o(null),null):"asc"),u):(a("asc"),c))},[]);return{sortedData:f.useMemo(()=>!n||!i?e:[...e].sort((c,u)=>{const d=c[n],p=u[n];if(d===p)return 0;let v=0;return typeof d=="string"&&typeof p=="string"?v=d.localeCompare(p):typeof d=="number"&&typeof p=="number"?v=d-p:v=String(d).localeCompare(String(p)),i==="asc"?v:-v}),[e,n,i]),sortKey:n,sortDirection:i,handleSort:s}}function yee({data:e,filterKeys:t}){const[r,n]=f.useState("");return{filteredData:f.useMemo(()=>{if(!r.trim())return e;const i=r.toLowerCase();return e.filter(a=>t&&t.length>0?t.some(s=>String(a[s]).toLowerCase().includes(i)):Object.values(a).some(s=>String(s).toLowerCase().includes(i)))},[e,r,t]),filterValue:r,setFilterValue:n}}const gM=f.createContext(null);function yM(){const e=f.useContext(gM);if(!e)throw new Error("Tab components must be used within a Tabs component");return e}const bM=f.forwardRef(({className:e,defaultValue:t="",value:r,onValueChange:n,children:o,...i},a)=>{const[s,l]=f.useState(t),c=r!==void 0?r:s,u=f.useCallback(d=>{r===void 0&&l(d),n?.(d)},[r,n]);return y.jsx(gM.Provider,{value:{activeTab:c,setActiveTab:u},children:y.jsx("div",{ref:a,className:R("w-full",e),...i,children:o})})});bM.displayName="Tabs";const xM=te("text-body inline-flex items-center font-sans transition-colors",{variants:{variant:{default:"border-border gap-1 border-b",pills:"rounded-pill bg-alt gap-2 p-1"}},defaultVariants:{variant:"default"}}),wM=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx("div",{ref:n,role:"tablist",className:R(xM({variant:t,className:e})),...r}));wM.displayName="TabList";const PM=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-secondary hover:text-primary data-[state=active]:border-sunflower data-[state=active]:text-primary border-b-2 border-transparent px-4 py-2",pills:"rounded-pill text-secondary hover:text-primary data-[state=active]:bg-card data-[state=active]:text-primary px-4 py-1.5 data-[state=active]:shadow-sm"},size:{sm:"text-small",default:"text-body",lg:"text-body font-medium"}},defaultVariants:{variant:"default",size:"default"}}),SM=f.forwardRef(({className:e,variant:t,size:r,value:n,...o},i)=>{const{activeTab:a,setActiveTab:s}=yM(),l=a===n;return y.jsx("button",{ref:i,role:"tab",type:"button","aria-selected":l,"data-state":l?"active":"inactive",onClick:()=>s(n),className:R(PM({variant:t,size:r,className:e})),...o})});SM.displayName="TabTrigger";const OM=te("font-sans",{variants:{size:{sm:"text-small mt-3",default:"text-body mt-4",lg:"text-body mt-6"}},defaultVariants:{size:"default"}}),EM=f.forwardRef(({className:e,size:t,value:r,...n},o)=>{const{activeTab:i}=yM(),a=i===r;return a?y.jsx("div",{ref:o,role:"tabpanel","data-state":a?"active":"inactive",className:R(OM({size:t,className:e})),...n}):null});EM.displayName="TabContent";const CM=te("font-sans",{variants:{variant:{lead:"text-lead text-primary","semi-lead":"text-semi-lead text-secondary","body-lg":"text-body-lg text-secondary",body:"text-body text-secondary",descriptive:"text-descriptive text-secondary",label:"text-label text-tertiary","label-sm":"text-label-sm text-tertiary"},weight:{regular:"font-normal",medium:"font-medium"}},defaultVariants:{variant:"body",weight:"regular"}}),AM=f.forwardRef(({className:e,variant:t="body",weight:r="regular",as:n="p",asChild:o=!1,...i},a)=>{const s=o?Oe:n;return y.jsx(s,{className:R(CM({variant:t,weight:r,className:e})),ref:a,...i})});AM.displayName="Text";const _M=te("bg-card text-body text-primary placeholder:text-tertiary flex min-h-[80px] w-full rounded-md border px-3 py-2 font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-border focus-visible:ring-sunflower",error:"border-error focus-visible:ring-error"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{variant:"default",resize:"vertical"}}),TM=f.forwardRef(({className:e,variant:t,resize:r,...n},o)=>y.jsx("textarea",{className:R(_M({variant:t,resize:r}),e),ref:o,...n}));TM.displayName="Textarea";var $m="ToastProvider",[Lm,bee,xee]=bi("Toast"),[jM]=Xe("Toast",[xee]),[wee,Ec]=jM($m),NM=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=f.useState(null),[c,u]=f.useState(0),d=f.useRef(!1),p=f.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${$m}\`. Expected non-empty \`string\`.`),y.jsx(Lm.Provider,{scope:t,children:y.jsx(wee,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:f.useCallback(()=>u(v=>v+1),[]),onToastRemove:f.useCallback(()=>u(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:a})})};NM.displayName=$m;var MM="ToastViewport",Pee=["F8"],zf="toast.viewportPause",Bf="toast.viewportResume",IM=f.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=Pee,label:o="Notifications ({hotkey})",...i}=e,a=Ec(MM,r),s=bee(r),l=f.useRef(null),c=f.useRef(null),u=f.useRef(null),d=f.useRef(null),p=ie(t,d,a.onViewportChange),v=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=a.toastCount>0;f.useEffect(()=>{const h=b=>{n.length!==0&&n.every(w=>b[w]||b.code===w)&&d.current?.focus()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[n]),f.useEffect(()=>{const h=l.current,b=d.current;if(g&&h&&b){const x=()=>{if(!a.isClosePausedRef.current){const S=new CustomEvent(zf);b.dispatchEvent(S),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const S=new CustomEvent(Bf);b.dispatchEvent(S),a.isClosePausedRef.current=!1}},P=S=>{!h.contains(S.relatedTarget)&&w()},O=()=>{h.contains(document.activeElement)||w()};return h.addEventListener("focusin",x),h.addEventListener("focusout",P),h.addEventListener("pointermove",x),h.addEventListener("pointerleave",O),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{h.removeEventListener("focusin",x),h.removeEventListener("focusout",P),h.removeEventListener("pointermove",x),h.removeEventListener("pointerleave",O),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[g,a.isClosePausedRef]);const m=f.useCallback(({tabbingDirection:h})=>{const x=s().map(w=>{const P=w.ref.current,O=[P,...Ree(P)];return h==="forwards"?O:O.reverse()});return(h==="forwards"?x.reverse():x).flat()},[s]);return f.useEffect(()=>{const h=d.current;if(h){const b=x=>{const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const O=document.activeElement,S=x.shiftKey;if(x.target===h&&S){c.current?.focus();return}const N=m({tabbingDirection:S?"backwards":"forwards"}),D=N.findIndex($=>$===O);xd(N.slice(D+1))?x.preventDefault():S?c.current?.focus():u.current?.focus()}};return h.addEventListener("keydown",b),()=>h.removeEventListener("keydown",b)}},[s,m]),y.jsxs(sR,{ref:l,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&y.jsx(Vf,{ref:c,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"forwards"});xd(h)}}),y.jsx(Lm.Slot,{scope:r,children:y.jsx(Q.ol,{tabIndex:-1,...i,ref:p})}),g&&y.jsx(Vf,{ref:u,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"backwards"});xd(h)}})]})});IM.displayName=MM;var kM="ToastFocusProxy",Vf=f.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=Ec(kM,r);return y.jsx(bc,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{const s=a.relatedTarget;!i.viewport?.contains(s)&&n()}})});Vf.displayName=kM;var ta="Toast",See="toast.swipeStart",Oee="toast.swipeMove",Eee="toast.swipeCancel",Cee="toast.swipeEnd",RM=f.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s,l]=at({prop:n,defaultProp:o??!0,onChange:i,caller:ta});return y.jsx(lt,{present:r||s,children:y.jsx(Tee,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:st(e.onPause),onResume:st(e.onResume),onSwipeStart:U(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:U(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:U(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:U(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});RM.displayName=ta;var[Aee,_ee]=jM(ta,{onClose(){}}),Tee=f.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:v,...g}=e,m=Ec(ta,r),[h,b]=f.useState(null),x=ie(t,k=>b(k)),w=f.useRef(null),P=f.useRef(null),O=o||m.duration,S=f.useRef(0),E=f.useRef(O),C=f.useRef(0),{onToastAdd:N,onToastRemove:D}=m,$=st(()=>{h?.contains(document.activeElement)&&m.viewport?.focus(),a()}),_=f.useCallback(k=>{!k||k===1/0||(window.clearTimeout(C.current),S.current=new Date().getTime(),C.current=window.setTimeout($,k))},[$]);f.useEffect(()=>{const k=m.viewport;if(k){const V=()=>{_(E.current),c?.()},B=()=>{const K=new Date().getTime()-S.current;E.current=E.current-K,window.clearTimeout(C.current),l?.()};return k.addEventListener(zf,B),k.addEventListener(Bf,V),()=>{k.removeEventListener(zf,B),k.removeEventListener(Bf,V)}}},[m.viewport,O,l,c,_]),f.useEffect(()=>{i&&!m.isClosePausedRef.current&&_(O)},[i,O,m.isClosePausedRef,_]),f.useEffect(()=>(N(),()=>D()),[N,D]);const M=f.useMemo(()=>h?VM(h):null,[h]);return m.viewport?y.jsxs(y.Fragment,{children:[M&&y.jsx(jee,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:M}),y.jsx(Aee,{scope:r,onClose:$,children:yi.createPortal(y.jsx(Lm.ItemSlot,{scope:r,children:y.jsx(aR,{asChild:!0,onEscapeKeyDown:U(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||$(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(Q.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...g,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:U(e.onKeyDown,k=>{k.key==="Escape"&&(s?.(k.nativeEvent),k.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:U(e.onPointerDown,k=>{k.button===0&&(w.current={x:k.clientX,y:k.clientY})}),onPointerMove:U(e.onPointerMove,k=>{if(!w.current)return;const V=k.clientX-w.current.x,B=k.clientY-w.current.y,K=!!P.current,T=["left","right"].includes(m.swipeDirection),I=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,G=T?I(0,V):0,ee=T?0:I(0,B),re=k.pointerType==="touch"?10:2,oe={x:G,y:ee},ne={originalEvent:k,delta:oe};K?(P.current=oe,La(Oee,d,ne,{discrete:!1})):Bw(oe,m.swipeDirection,re)?(P.current=oe,La(See,u,ne,{discrete:!1}),k.target.setPointerCapture(k.pointerId)):(Math.abs(V)>re||Math.abs(B)>re)&&(w.current=null)}),onPointerUp:U(e.onPointerUp,k=>{const V=P.current,B=k.target;if(B.hasPointerCapture(k.pointerId)&&B.releasePointerCapture(k.pointerId),P.current=null,w.current=null,V){const K=k.currentTarget,T={originalEvent:k,delta:V};Bw(V,m.swipeDirection,m.swipeThreshold)?La(Cee,v,T,{discrete:!0}):La(Eee,p,T,{discrete:!0}),K.addEventListener("click",I=>I.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),jee=e=>{const{__scopeToast:t,children:r,...n}=e,o=Ec(ta,t),[i,a]=f.useState(!1),[s,l]=f.useState(!1);return Iee(()=>a(!0)),f.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:y.jsx(Ln,{asChild:!0,children:y.jsx(bc,{...n,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",r]})})})},Nee="ToastTitle",DM=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});DM.displayName=Nee;var Mee="ToastDescription",$M=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});$M.displayName=Mee;var LM="ToastAction",FM=f.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?y.jsx(BM,{altText:r,asChild:!0,children:y.jsx(Fm,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${LM}\`. Expected non-empty \`string\`.`),null)});FM.displayName=LM;var zM="ToastClose",Fm=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=_ee(zM,r);return y.jsx(BM,{asChild:!0,children:y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,o.onClose)})})});Fm.displayName=zM;var BM=f.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return y.jsx(Q.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function VM(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),kee(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...VM(n))}}),t}function La(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Uf(o,i):o.dispatchEvent(i)}var Bw=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),i=n>o;return t==="left"||t==="right"?i&&n>r:!i&&o>r};function Iee(e=()=>{}){const t=st(e);qe(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function kee(e){return e.nodeType===e.ELEMENT_NODE}function Ree(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function xd(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var Dee=NM,$ee=IM,Lee=RM,Fee=DM,zee=$M,Bee=FM,Vee=Fm;const Wee=Dee,WM=f.forwardRef(({className:e,...t},r)=>y.jsx($ee,{ref:r,className:R("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-105",e),...t}));WM.displayName="ToastViewport";const KM=te(["group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-lg border p-4 shadow-lg transition-all","data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none","data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out","data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full"],{variants:{variant:{default:"border-border bg-main text-primary",success:"border-sunflower/30 bg-eggshell text-primary [&>svg]:text-sunflower",error:"border-error/30 bg-main text-primary [&>svg]:text-error",warning:"border-sunflower/50 bg-vanilla text-primary [&>svg]:text-sunflower",info:"border-electric-blue/30 bg-main text-primary [&>svg]:text-electric-blue"}},defaultVariants:{variant:"default"}}),UM=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(Lee,{ref:n,className:R(KM({variant:t}),e),...r}));UM.displayName="Toast";const HM=f.forwardRef(({className:e,...t},r)=>y.jsx(Bee,{ref:r,className:R("rounded-pill border-border inline-flex h-8 shrink-0 items-center justify-center border bg-transparent px-3 text-sm font-medium","ring-offset-main transition-colors","hover:bg-alt","focus:ring-sunflower focus:ring-2 focus:ring-offset-2 focus:outline-none","disabled:pointer-events-none disabled:opacity-50","group-[.error]:border-error/30 group-[.error]:hover:border-error/50 group-[.error]:hover:bg-error/10 group-[.error]:focus:ring-error",e),...t}));HM.displayName="ToastAction";const GM=f.forwardRef(({className:e,...t},r)=>y.jsxs(Vee,{ref:r,className:R("text-secondary absolute top-2 right-2 rounded-sm p-1 opacity-0 transition-opacity","hover:text-primary","focus:ring-sunflower focus:opacity-100 focus:ring-2 focus:outline-none","group-hover:opacity-100","group-[.error]:text-error/70 group-[.error]:hover:text-error group-[.error]:focus:ring-error group-[.error]:focus:ring-offset-error",e),"toast-close":"",...t,children:[y.jsx(c0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]}));GM.displayName="ToastClose";const qM=f.forwardRef(({className:e,...t},r)=>y.jsx(Fee,{ref:r,className:R("text-sm",e),...t}));qM.displayName="ToastTitle";const YM=f.forwardRef(({className:e,...t},r)=>y.jsx(zee,{ref:r,className:R("text-secondary text-sm",e),...t}));YM.displayName="ToastDescription";var Kee=Symbol("radix.slottable");function Uee(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Kee,t}var[Cc]=Xe("Tooltip",[rn]),Ac=rn(),XM="TooltipProvider",Hee=700,Wf="tooltip.open",[Gee,zm]=Cc(XM),ZM=e=>{const{__scopeTooltip:t,delayDuration:r=Hee,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,a=f.useRef(!0),s=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),y.jsx(Gee,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:f.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:i})};ZM.displayName=XM;var hi="Tooltip",[qee,ra]=Cc(hi),JM=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=zm(hi,e.__scopeTooltip),c=Ac(t),[u,d]=f.useState(null),p=vt(),v=f.useRef(0),g=a??l.disableHoverableContent,m=s??l.delayDuration,h=f.useRef(!1),[b,x]=at({prop:n,defaultProp:o??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(Wf))):l.onClose(),i?.(E)},caller:hi}),w=f.useMemo(()=>b?h.current?"delayed-open":"instant-open":"closed",[b]),P=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,x(!0)},[x]),O=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x(!1)},[x]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{h.current=!0,x(!0),v.current=0},m)},[m,x]);return f.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),y.jsx(qi,{...c,children:y.jsx(qee,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?S():P()},[l.isOpenDelayedRef,S,P]),onTriggerLeave:f.useCallback(()=>{g?O():(window.clearTimeout(v.current),v.current=0)},[O,g]),onOpen:P,onClose:O,disableHoverableContent:g,children:r})})};JM.displayName=hi;var Kf="TooltipTrigger",QM=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ra(Kf,r),i=zm(Kf,r),a=Ac(r),s=f.useRef(null),l=ie(t,s,o.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(Yi,{asChild:!0,...a,children:y.jsx(Q.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:U(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:U(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:U(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:U(e.onBlur,o.onClose),onClick:U(e.onClick,o.onClose)})})});QM.displayName=Kf;var Bm="TooltipPortal",[Yee,Xee]=Cc(Bm,{forceMount:void 0}),eI=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=ra(Bm,t);return y.jsx(Yee,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};eI.displayName=Bm;var yo="TooltipContent",tI=f.forwardRef((e,t)=>{const r=Xee(yo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=ra(yo,e.__scopeTooltip);return y.jsx(lt,{present:n||a.open,children:a.disableHoverableContent?y.jsx(rI,{side:o,...i,ref:t}):y.jsx(Zee,{side:o,...i,ref:t})})}),Zee=f.forwardRef((e,t)=>{const r=ra(yo,e.__scopeTooltip),n=zm(yo,e.__scopeTooltip),o=f.useRef(null),i=ie(t,o),[a,s]=f.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,p=f.useCallback(()=>{s(null),d(!1)},[d]),v=f.useCallback((g,m)=>{const h=g.currentTarget,b={x:g.clientX,y:g.clientY},x=tte(b,h.getBoundingClientRect()),w=rte(b,x),P=nte(m.getBoundingClientRect()),O=ite([...w,...P]);s(O),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(l&&u){const g=h=>v(h,u),m=h=>v(h,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",m)}}},[l,u,v,p]),f.useEffect(()=>{if(a){const g=m=>{const h=m.target,b={x:m.clientX,y:m.clientY},x=l?.contains(h)||u?.contains(h),w=!ote(b,a);x?p():w&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,a,c,p]),y.jsx(rI,{...e,ref:i})}),[Jee,Qee]=Cc(hi,{isInside:!1}),ete=Uee("TooltipContent"),rI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=ra(yo,r),c=Ac(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(Wf,u),()=>document.removeEventListener(Wf,u)),[u]),f.useEffect(()=>{if(l.trigger){const d=p=>{p.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),y.jsx($n,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(dc,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(ete,{children:n}),y.jsx(Jee,{scope:r,isInside:!0,children:y.jsx(xQ,{id:l.contentId,role:"tooltip",children:o||n})})]})})});tI.displayName=yo;var nI="TooltipArrow",oI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ac(r);return Qee(nI,r).isInside?null:y.jsx(fc,{...o,...n,ref:t})});oI.displayName=nI;function tte(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function rte(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function nte(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function ote(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,u=s.y,d=l.x,p=l.y;u>n!=p>n&&r<(d-c)*(n-u)/(p-u)+c&&(o=!o)}return o}function ite(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ate(t)}function ate(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],a=r[r.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var ste=ZM,lte=JM,cte=QM,ute=eI,dte=tI,fte=oI;const pte=ste,vte=lte,mte=cte,iI=ute,Vm=f.forwardRef(({className:e,...t},r)=>y.jsx(fte,{ref:r,className:R("fill-primary",e),...t}));Vm.displayName="TooltipArrow";const aI=te(["z-50 overflow-hidden rounded-md px-3 py-1.5 font-sans shadow-md","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","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"],{variants:{variant:{default:"bg-primary text-small text-white",light:"bg-card text-primary text-small border-border border"}},defaultVariants:{variant:"default"}}),sI=f.forwardRef(({className:e,variant:t,sideOffset:r=4,showArrow:n=!1,children:o,...i},a)=>y.jsx(iI,{children:y.jsxs(dte,{ref:a,sideOffset:r,className:R(aI({variant:t,className:e})),...i,children:[o,n&&y.jsx(Vm,{className:t==="light"?"fill-card":"fill-primary"})]})}));sI.displayName="TooltipContent";exports.Accordion=O0;exports.AccordionContent=_0;exports.AccordionItem=E0;exports.AccordionTrigger=A0;exports.ActionsMenuButton=JT;exports.AlertDialog=KD;exports.AlertDialogAction=kP;exports.AlertDialogCancel=RP;exports.AlertDialogContent=TP;exports.AlertDialogDescription=IP;exports.AlertDialogFooter=NP;exports.AlertDialogHeader=jP;exports.AlertDialogOverlay=rp;exports.AlertDialogPortal=AP;exports.AlertDialogTitle=MP;exports.AlertDialogTrigger=UD;exports.Badge=$P;exports.Banner=FP;exports.BarChart=qC;exports.BreadcrumbItem=ZC;exports.BreadcrumbSeparator=cm;exports.Breadcrumbs=XC;exports.Button=CP;exports.Card=QC;exports.Checkbox=lA;exports.ContextMenu=TZ;exports.ContextMenuCheckboxItem=q_;exports.ContextMenuContent=H_;exports.ContextMenuGroup=NZ;exports.ContextMenuItem=G_;exports.ContextMenuLabel=X_;exports.ContextMenuPortal=W_;exports.ContextMenuRadioGroup=IZ;exports.ContextMenuRadioItem=Y_;exports.ContextMenuSeparator=Z_;exports.ContextMenuShortcut=J_;exports.ContextMenuSub=MZ;exports.ContextMenuSubContent=U_;exports.ContextMenuSubTrigger=K_;exports.ContextMenuTrigger=jZ;exports.DatePicker=hT;exports.DateTimePicker=xT;exports.Divider=PT;exports.DropdownMenu=MJ;exports.DropdownMenuCheckboxItem=GT;exports.DropdownMenuContent=UT;exports.DropdownMenuGroup=kJ;exports.DropdownMenuItem=HT;exports.DropdownMenuLabel=YT;exports.DropdownMenuPortal=VT;exports.DropdownMenuRadioGroup=DJ;exports.DropdownMenuRadioItem=qT;exports.DropdownMenuSeparator=XT;exports.DropdownMenuShortcut=ZT;exports.DropdownMenuSub=RJ;exports.DropdownMenuSubContent=KT;exports.DropdownMenuSubTrigger=WT;exports.DropdownMenuTrigger=IJ;exports.EngrateLogo=ej;exports.Eyebrow=rj;exports.Footer=oj;exports.FooterBottom=cj;exports.FooterContent=ij;exports.FooterCopyright=uj;exports.FooterHeading=sj;exports.FooterLinks=lj;exports.FooterSection=aj;exports.FormField=pj;exports.FormMessage=Tm;exports.Grid=vj;exports.GridItem=mj;exports.Header=gj;exports.HeaderActions=xj;exports.HeaderLogo=yj;exports.HeaderNav=bj;exports.Heading=Pj;exports.Input=Oj;exports.Label=jm;exports.LineChart=Cj;exports.Link=_j;exports.Modal=JJ;exports.ModalClose=eQ;exports.ModalContent=Nj;exports.ModalDescription=Rj;exports.ModalFooter=Ij;exports.ModalHeader=Mj;exports.ModalOverlay=Nm;exports.ModalPortal=Tj;exports.ModalTitle=kj;exports.ModalTrigger=QJ;exports.Pagination=Lj;exports.PaginationItem=ro;exports.PieChart=zj;exports.ProgressIndicator=Wj;exports.RadioGroup=rN;exports.RadioGroupItem=nN;exports.Select=ree;exports.SelectContent=RN;exports.SelectGroup=nee;exports.SelectItem=$N;exports.SelectLabel=DN;exports.SelectScrollDownButton=Rm;exports.SelectScrollUpButton=km;exports.SelectSeparator=LN;exports.SelectTrigger=kN;exports.SelectValue=oee;exports.Sidebar=BN;exports.SidebarContent=WN;exports.SidebarFooter=KN;exports.SidebarGroup=UN;exports.SidebarGroupLabel=HN;exports.SidebarHeader=VN;exports.SidebarItem=GN;exports.SidebarSeparator=YN;exports.SidebarTrigger=qN;exports.Skeleton=ZN;exports.Spinner=QN;exports.Stack=tM;exports.Switch=sM;exports.TabContent=EM;exports.TabList=wM;exports.TabTrigger=SM;exports.Table=cM;exports.TableBody=dM;exports.TableCaption=hM;exports.TableCell=mM;exports.TableFooter=fM;exports.TableHead=vM;exports.TableHeader=uM;exports.TableRow=pM;exports.Tabs=bM;exports.Text=AM;exports.Textarea=TM;exports.Toast=UM;exports.ToastAction=HM;exports.ToastClose=GM;exports.ToastDescription=YM;exports.ToastProvider=Wee;exports.ToastTitle=qM;exports.ToastViewport=WM;exports.Tooltip=vte;exports.TooltipArrow=Vm;exports.TooltipContent=sI;exports.TooltipPortal=iI;exports.TooltipProvider=pte;exports.TooltipTrigger=mte;exports.accordionTriggerVariants=C0;exports.accordionVariants=S0;exports.alertDialogContentVariants=_P;exports.badgeVariants=DP;exports.bannerVariants=LP;exports.barChartVariants=GC;exports.breadcrumbItemVariants=_f;exports.breadcrumbsVariants=YC;exports.buttonVariants=dl;exports.calendarDayVariants=mT;exports.cardVariants=JC;exports.cn=R;exports.datePickerTriggerVariants=vT;exports.dateTimePickerCalendarDayVariants=bT;exports.dateTimePickerTriggerVariants=yT;exports.dividerVariants=wT;exports.engrateLogoVariants=QT;exports.eyebrowVariants=tj;exports.footerVariants=nj;exports.gridItemVariants=GJ;exports.gridVariants=VJ;exports.headerVariants=hj;exports.headingVariants=wj;exports.inputVariants=Sj;exports.labelVariants=fj;exports.lineChartVariants=Ej;exports.linkVariants=Aj;exports.modalContentVariants=jj;exports.paginationItemVariants=$j;exports.paginationVariants=Dj;exports.pieChartVariants=Fj;exports.progressBarVariants=Vj;exports.progressIndicatorVariants=Bj;exports.sidebarItemVariants=Ff;exports.sidebarVariants=zN;exports.skeletonVariants=XN;exports.spinnerVariants=JN;exports.stackVariants=eM;exports.tabContentVariants=OM;exports.tabListVariants=xM;exports.tabTriggerVariants=PM;exports.tableVariants=lM;exports.textVariants=CM;exports.textareaVariants=_M;exports.toastVariants=KM;exports.tooltipContentVariants=aI;exports.useFilterableTable=yee;exports.useSidebarContext=Sc;exports.useSortableTable=gee;
100
+ `).concat(P.x,",").concat(P.y),S=Te(e.id)?Zo("recharts-radial-line-"):e.id;return f.createElement("text",pr({},n,{dominantBaseline:"central",className:de("recharts-radial-bar-label",a)}),f.createElement("defs",null,f.createElement("path",{id:S,d:O})),f.createElement("textPath",{xlinkHref:"#".concat(S)},r))},sU=(e,t,r)=>{var{cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:u,y:d}=Re(n,o,a+t,c);return{x:u,y:d,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"end"};var p=(i+a)/2,{x:v,y:g}=Re(n,o,p,c);return{x:v,y:g,textAnchor:"middle",verticalAnchor:"middle"}},Ua=e=>e!=null&&"cx"in e&&q(e.cx),lU={angle:0,offset:5,zIndex:De.label,position:"middle",textBreakAll:!1};function cU(e){if(!Ua(e))return e;var{cx:t,cy:r,outerRadius:n}=e,o=n*2;return{x:t-n,y:r-n,width:o,upperWidth:o,lowerWidth:o,height:o}}function zr(e){var t=Le(e,lU),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:u}=t,d=nU(),p=HE(),v=o==="center"?p:d??p,g,m,h;r==null?g=v:Ua(r)?g=r:g=Ep(r);var b=cU(g);if(!g||Te(i)&&Te(a)&&!A.isValidElement(s)&&typeof s!="function")return null;var x=Go(Go({},t),{},{viewBox:g});if(A.isValidElement(s)){var{labelRef:w}=x,P=hx(x,YK);return A.cloneElement(s,P)}if(typeof s=="function"){var{content:O}=x,S=hx(x,XK);if(m=A.createElement(s,S),A.isValidElement(m))return m}else m=oU(t);var E=mt(t);if(Ua(g)){if(o==="insideStart"||o==="insideEnd"||o==="end")return aU(t,o,m,E,g);h=sU(g,t.offset,t.position)}else{if(!b)return null;var C=qK({viewBox:b,position:o,offset:t.offset,parentViewBox:Ua(n)?void 0:n});h=Go(Go({x:C.x,y:C.y,textAnchor:C.horizontalAnchor,verticalAnchor:C.verticalAnchor},C.width!==void 0?{width:C.width}:{}),C.height!==void 0?{height:C.height}:{})}return f.createElement(wt,{zIndex:t.zIndex},f.createElement(Ql,pr({ref:u,className:de("recharts-label",l)},E,h,{textAnchor:zK(E.textAnchor)?E.textAnchor:h.textAnchor,breakAll:c}),m))}zr.displayName="Label";var uU=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?f.createElement(zr,pr({key:"label-implicit"},n)):ir(e)?f.createElement(zr,pr({key:"label-implicit",value:e},n)):A.isValidElement(e)?e.type===zr?A.cloneElement(e,Go({key:"label-implicit"},n)):f.createElement(zr,pr({key:"label-implicit",content:e},n)):Wv(e)?f.createElement(zr,pr({key:"label-implicit",content:e},n)):e&&typeof e=="object"?f.createElement(zr,pr({},e,{key:"label-implicit"},n)):null};function dU(e){var{label:t,labelRef:r}=e,n=HE();return uU(t,n,r)||null}var nd={},od={},yx;function fU(){return yx||(yx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(od)),od}var id={},bx;function pU(){return bx||(bx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(id)),id}var xx;function vU(){return xx||(xx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fU(),r=pU(),n=pp();function o(i){if(n.isArrayLike(i))return t.last(r.toArray(i))}e.last=o})(nd)),nd}var ad,wx;function mU(){return wx||(wx=1,ad=vU().last),ad}var hU=mU();const gU=Jr(hU);var yU=["valueAccessor"],bU=["dataKey","clockWise","id","textBreakAll","zIndex"];function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$s.apply(null,arguments)}function Px(e,t){if(e==null)return{};var r,n,o=xU(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function xU(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var wU=e=>Array.isArray(e.value)?gU(e.value):e.value,GE=A.createContext(void 0),qE=GE.Provider,YE=A.createContext(void 0),PU=YE.Provider;function SU(){return A.useContext(GE)}function OU(){return A.useContext(YE)}function Ha(e){var{valueAccessor:t=wU}=e,r=Px(e,yU),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=Px(r,bU),c=SU(),u=OU(),d=c||u;return!d||!d.length?null:f.createElement(wt,{zIndex:s??De.label},f.createElement(Ye,{className:"recharts-label-list"},d.map((p,v)=>{var g,m=Te(n)?t(p,v):be(p.payload,n),h=Te(i)?{}:{id:"".concat(i,"-").concat(v)};return f.createElement(zr,$s({key:"label-".concat(v)},mt(p),l,h,{fill:(g=r.fill)!==null&&g!==void 0?g:p.fill,parentViewBox:p.parentViewBox,value:m,textBreakAll:a,viewBox:p.viewBox,index:v,zIndex:0}))})))}Ha.displayName="LabelList";function Kv(e){var{label:t}=e;return t?t===!0?f.createElement(Ha,{key:"labelList-implicit"}):f.isValidElement(t)||Wv(t)?f.createElement(Ha,{key:"labelList-implicit",content:t}):typeof t=="object"?f.createElement(Ha,$s({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yf.apply(null,arguments)}var XE=e=>{var{cx:t,cy:r,r:n,className:o}=e,i=de("recharts-dot",o);return q(t)&&q(r)&&q(n)?f.createElement("circle",yf({},At(e),fp(e),{className:i,cx:t,cy:r,r:n})):null},ZE=e=>e.graphicalItems.polarItems,EU=j([je,Fi],dv),ec=j([ZE,ke,EU],fv),CU=j([ec],pv),tc=j([CU,zl],vv),AU=j([tc,ke,ec],hv);j([tc,ke,ec],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(o=>{var i,a=be(n,(i=t.dataKey)!==null&&i!==void 0?i:o.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:be(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var Sx=()=>{},_U=j([tc,ke,ec,Yl,je],xv),TU=j([ke,yv,bv,Sx,_U,Sx,ve,je],wv),JE=j([ke,ve,tc,AU,Li,je,TU],Pv),jU=j([JE,Co,tn],Ev),NU=j([ke,JE,jU,je],Av);j([tn,NU],$1);var MU={radiusAxis:{},angleAxis:{}},QE=xt({name:"polarAxis",initialState:MU,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:bte,removeRadiusAxis:xte,addAngleAxis:wte,removeAngleAxis:Pte}=QE.actions,IU=QE.reducer;function eC(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function Ox(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ex(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ox(Object(r),!0).forEach(function(n){kU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kU(e,t,r){return(t=RU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RU(e){var t=DU(e,"string");return typeof t=="symbol"?t:t+""}function DU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $U=(e,t)=>t,Uv=j([ZE,$U],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),LU=[],Hv=(e,t,r)=>r?.length===0?LU:r,tC=j([zl,Uv,Hv],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var o;if(t?.data!=null&&t.data.length>0?o=t.data:o=n,(!o||!o.length)&&r!=null&&(o=r.map(i=>Ex(Ex({},t.presentationProps),i.props))),o!=null)return o}}),FU=j([tC,Uv,Hv],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,o)=>{var i,a=be(n,t.nameKey,t.name),s;return r!=null&&(i=r[o])!==null&&i!==void 0&&(i=i.props)!==null&&i!==void 0&&i.fill?s=r[o].props.fill:typeof n=="object"&&n!=null&&"fill"in n?s=n.fill:s=t.fill,{value:wo(a,t.dataKey),color:s,payload:n,type:t.legendType}})}),zU=j([tC,Uv,Hv,Be],(e,t,r,n)=>{if(!(t==null||e==null))return V8({offset:n,pieSettings:t,displayedData:e,cells:r})}),ja={exports:{}},ge={};var Cx;function BU(){if(Cx)return ge;Cx=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,v=60122,g=60117,m=60129,h=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),v=b("react.server.block"),g=b("react.fundamental"),m=b("react.debug_trace_mode"),h=b("react.legacy_hidden")}function x(M){if(typeof M=="object"&&M!==null){var k=M.$$typeof;switch(k){case e:switch(M=M.type,M){case r:case o:case n:case l:case c:return M;default:switch(M=M&&M.$$typeof,M){case a:case s:case d:case u:case i:return M;default:return k}}case t:return k}}}var w=i,P=e,O=s,S=r,E=d,C=u,N=t,D=o,$=n,_=l;return ge.ContextConsumer=a,ge.ContextProvider=w,ge.Element=P,ge.ForwardRef=O,ge.Fragment=S,ge.Lazy=E,ge.Memo=C,ge.Portal=N,ge.Profiler=D,ge.StrictMode=$,ge.Suspense=_,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(M){return x(M)===a},ge.isContextProvider=function(M){return x(M)===i},ge.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===e},ge.isForwardRef=function(M){return x(M)===s},ge.isFragment=function(M){return x(M)===r},ge.isLazy=function(M){return x(M)===d},ge.isMemo=function(M){return x(M)===u},ge.isPortal=function(M){return x(M)===t},ge.isProfiler=function(M){return x(M)===o},ge.isStrictMode=function(M){return x(M)===n},ge.isSuspense=function(M){return x(M)===l},ge.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===o||M===m||M===n||M===l||M===c||M===h||typeof M=="object"&&M!==null&&(M.$$typeof===d||M.$$typeof===u||M.$$typeof===i||M.$$typeof===a||M.$$typeof===s||M.$$typeof===g||M.$$typeof===p||M[0]===v)},ge.typeOf=x,ge}var ye={};var Ax;function VU(){return Ax||(Ax=1,process.env.NODE_ENV!=="production"&&(function(){var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,v=60122,g=60117,m=60129,h=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),v=b("react.server.block"),g=b("react.fundamental"),b("react.scope"),b("react.opaque.id"),m=b("react.debug_trace_mode"),b("react.offscreen"),h=b("react.legacy_hidden")}var x=!1;function w(z){return!!(typeof z=="string"||typeof z=="function"||z===r||z===o||z===m||z===n||z===l||z===c||z===h||x||typeof z=="object"&&z!==null&&(z.$$typeof===d||z.$$typeof===u||z.$$typeof===i||z.$$typeof===a||z.$$typeof===s||z.$$typeof===g||z.$$typeof===p||z[0]===v))}function P(z){if(typeof z=="object"&&z!==null){var F=z.$$typeof;switch(F){case e:var fe=z.type;switch(fe){case r:case o:case n:case l:case c:return fe;default:var se=fe&&fe.$$typeof;switch(se){case a:case s:case d:case u:case i:return se;default:return F}}case t:return F}}}var O=a,S=i,E=e,C=s,N=r,D=d,$=u,_=t,M=o,k=n,V=l,B=!1,K=!1;function T(z){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function I(z){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(z){return P(z)===a}function ee(z){return P(z)===i}function re(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function oe(z){return P(z)===s}function ne(z){return P(z)===r}function le(z){return P(z)===d}function Ee(z){return P(z)===u}function W(z){return P(z)===t}function ue(z){return P(z)===o}function L(z){return P(z)===n}function H(z){return P(z)===l}ye.ContextConsumer=O,ye.ContextProvider=S,ye.Element=E,ye.ForwardRef=C,ye.Fragment=N,ye.Lazy=D,ye.Memo=$,ye.Portal=_,ye.Profiler=M,ye.StrictMode=k,ye.Suspense=V,ye.isAsyncMode=T,ye.isConcurrentMode=I,ye.isContextConsumer=G,ye.isContextProvider=ee,ye.isElement=re,ye.isForwardRef=oe,ye.isFragment=ne,ye.isLazy=le,ye.isMemo=Ee,ye.isPortal=W,ye.isProfiler=ue,ye.isStrictMode=L,ye.isSuspense=H,ye.isValidElementType=w,ye.typeOf=P})()),ye}var _x;function WU(){return _x||(_x=1,process.env.NODE_ENV==="production"?ja.exports=BU():ja.exports=VU()),ja.exports}var KU=WU(),Tx=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",jx=null,sd=null,rC=e=>{if(e===jx&&Array.isArray(sd))return sd;var t=[];return A.Children.forEach(e,r=>{Te(r)||(KU.isFragment(r)?t=t.concat(rC(r.props.children)):t.push(r))}),sd=t,jx=e,t};function Gv(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(o=>Tx(o)):n=[Tx(t)],rC(e).forEach(o=>{var i=Cn(o,"type.displayName")||Cn(o,"type.name");i&&n.indexOf(i)!==-1&&r.push(o)}),r}var nC=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,ld={},Nx;function UU(){return Nx||(Nx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const o=r[Symbol.toStringTag];return o==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${o}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(ld)),ld}var cd,Mx;function HU(){return Mx||(Mx=1,cd=UU().isPlainObject),cd}var GU=HU();const qU=Jr(GU);var Ix,kx,Rx,Dx,$x;function Lx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Fx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lx(Object(r),!0).forEach(function(n){YU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YU(e,t,r){return(t=XU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XU(e){var t=ZU(e,"string");return typeof t=="symbol"?t:t+""}function ZU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ls.apply(null,arguments)}function Wo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var zx=(e,t,r,n,o)=>{var i=r-n,a;return a=Me(Ix||(Ix=Wo(["M ",",",""])),e,t),a+=Me(kx||(kx=Wo(["L ",",",""])),e+r,t),a+=Me(Rx||(Rx=Wo(["L ",",",""])),e+r-i/2,t+o),a+=Me(Dx||(Dx=Wo(["L ",",",""])),e+r-i/2-n,t+o),a+=Me($x||($x=Wo(["L ",","," Z"])),e,t),a},JU={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},QU=e=>{var t=Le(e,JU),{x:r,y:n,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:d}=t,p=A.useRef(null),[v,g]=A.useState(-1),m=A.useRef(o),h=A.useRef(i),b=A.useRef(a),x=A.useRef(r),w=A.useRef(n),P=Ii(e,"trapezoid-");if(A.useEffect(()=>{if(p.current&&p.current.getTotalLength)try{var k=p.current.getTotalLength();k&&g(k)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var O=de("recharts-trapezoid",s);if(!d)return f.createElement("g",null,f.createElement("path",Ls({},mt(t),{className:O,d:zx(r,n,o,i,a)})));var S=m.current,E=h.current,C=b.current,N=x.current,D=w.current,$="0px ".concat(v===-1?1:v,"px"),_="".concat(v,"px 0px"),M=AO(["strokeDasharray"],c,l);return f.createElement(Mi,{animationId:P,key:P,canBegin:v>0,duration:c,easing:l,isActive:d,begin:u},k=>{var V=Ae(S,o,k),B=Ae(E,i,k),K=Ae(C,a,k),T=Ae(N,r,k),I=Ae(D,n,k);p.current&&(m.current=V,h.current=B,b.current=K,x.current=T,w.current=I);var G=k>0?{transition:M,strokeDasharray:_}:{strokeDasharray:$};return f.createElement("path",Ls({},mt(t),{className:O,d:zx(T,I,V,B,K),ref:p,style:Fx(Fx({},G),t.style)}))})},e8=["option","shapeType","activeClassName"];function t8(e,t){if(e==null)return{};var r,n,o=r8(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function r8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Bx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Fs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bx(Object(r),!0).forEach(function(n){n8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n8(e,t,r){return(t=o8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o8(e){var t=i8(e,"string");return typeof t=="symbol"?t:t+""}function i8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a8(e,t){return Fs(Fs({},t),e)}function s8(e,t){return e==="symbols"}function Vx(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return f.createElement(NO,r);case"trapezoid":return f.createElement(QU,r);case"sector":return f.createElement(RO,r);case"symbols":if(s8(t))return f.createElement(dp,r);break;case"curve":return f.createElement(jp,r);default:return null}}function l8(e){return A.isValidElement(e)?e.props:e}function qv(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,o=t8(e,e8),i;if(A.isValidElement(t))i=A.cloneElement(t,Fs(Fs({},o),l8(t)));else if(typeof t=="function")i=t(o,o.index);else if(qU(t)&&typeof t!="boolean"){var a=a8(t,o);i=f.createElement(Vx,{shapeType:r,elementProps:a})}else{var s=o;i=f.createElement(Vx,{shapeType:r,elementProps:s})}return o.isActive?f.createElement(Ye,{className:n},i):i}var Yv=(e,t,r)=>{var n=Pe();return(o,i)=>a=>{e?.(o,i,a),n(pE({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},Xv=e=>{var t=Pe();return(r,n)=>o=>{e?.(r,n,o),t(cW())}},Zv=(e,t,r)=>{var n=Pe();return(o,i)=>a=>{e?.(o,i,a),n(uW({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};function Jv(e){var{tooltipEntrySettings:t}=e,r=Pe(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(iW(t)):o.current!==t&&r(aW({prev:o.current,next:t})),o.current=t)},[t,r,n]),A.useLayoutEffect(()=>()=>{o.current&&(r(sW(o.current)),o.current=null)},[r]),null}function oC(e){var{legendPayload:t}=e,r=Pe(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(SO(t)):o.current!==t&&r(OO({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(EO(o.current)),o.current=null)},[r]),null}function c8(e){var{legendPayload:t}=e,r=Pe(),n=J(ve),o=A.useRef(null);return A.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(o.current===null?r(SO(t)):o.current!==t&&r(OO({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(EO(o.current)),o.current=null)},[r]),null}var ud,u8=()=>{var[e]=f.useState(()=>Zo("uid-"));return e},d8=(ud=f.useId)!==null&&ud!==void 0?ud:u8;function f8(e,t){var r=d8();return t||(e?"".concat(e,"-").concat(r):r)}var p8=A.createContext(void 0),Qv=e=>{var{id:t,type:r,children:n}=e,o=f8("recharts-".concat(r),t);return f.createElement(p8.Provider,{value:o},n(o))},v8={cartesianItems:[],polarItems:[]},iC=xt({name:"graphicalItems",initialState:v8,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Ce()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=n)},prepare:Ce()},removeCartesianGraphicalItem:{reducer(e,t){var r=Bt(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Ce()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Ce()},removePolarGraphicalItem:{reducer(e,t){var r=Bt(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Ce()}}}),{addCartesianGraphicalItem:m8,replaceCartesianGraphicalItem:h8,removeCartesianGraphicalItem:g8,addPolarGraphicalItem:y8,removePolarGraphicalItem:b8}=iC.actions,x8=iC.reducer,w8=e=>{var t=Pe(),r=A.useRef(null);return A.useLayoutEffect(()=>{r.current===null?t(m8(e)):r.current!==e&&t(h8({prev:r.current,next:e})),r.current=e},[t,e]),A.useLayoutEffect(()=>()=>{r.current&&(t(g8(r.current)),r.current=null)},[t]),null},aC=A.memo(w8);function P8(e){var t=Pe();return A.useLayoutEffect(()=>(t(y8(e)),()=>{t(b8(e))}),[t,e]),null}var S8=["key"],O8=["onMouseEnter","onClick","onMouseLeave"],E8=["id"],C8=["id"];function Wx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wx(Object(r),!0).forEach(function(n){A8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A8(e,t,r){return(t=_8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _8(e){var t=T8(e,"string");return typeof t=="symbol"?t:t+""}function T8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yr.apply(null,arguments)}function rc(e,t){if(e==null)return{};var r,n,o=j8(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function j8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function N8(e){var t=A.useMemo(()=>Gv(e.children,Ui),[e.children]),r=J(n=>FU(n,e.id,t));return r==null?null:f.createElement(c8,{legendPayload:r})}var M8=f.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:o,strokeWidth:i,fill:a,name:s,hide:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:n.map(p=>p.tooltipPayload),getPosition:p=>{var v;return(v=n[Number(p)])===null||v===void 0?void 0:v.tooltipPosition},settings:{stroke:o,strokeWidth:i,fill:a,dataKey:t,nameKey:r,name:wo(s,t),hide:l,type:c,color:a,unit:"",graphicalItemId:u}};return f.createElement(Jv,{tooltipEntrySettings:d})}),I8=(e,t)=>e>t?"start":e<t?"end":"middle",k8=(e,t,r)=>it(typeof t=="function"?t(e):t,r,r*.8),R8=(e,t,r)=>{var{top:n,left:o,width:i,height:a}=t,s=MO(i,a),l=o+it(e.cx,i,i/2),c=n+it(e.cy,a,a/2),u=it(e.innerRadius,s,0),d=k8(r,e.outerRadius,s),p=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:p}},D8=(e,t)=>{var r=Ge(t-e),n=Math.min(Math.abs(t-e),360);return r*n},$8=(e,t)=>{if(f.isValidElement(e))return f.cloneElement(e,t);if(typeof e=="function")return e(t);var r=de("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,o=rc(t,S8);return f.createElement(jp,Yr({},o,{type:"linear",className:r}))},L8=(e,t,r)=>{if(f.isValidElement(e))return f.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),f.isValidElement(n)))return n;var o=de("recharts-pie-label-text",eC(e));return f.createElement(Ql,Yr({},t,{alignmentBaseline:"middle",className:o}),n)};function F8(e){var{sectors:t,props:r,showLabels:n}=e,{label:o,labelLine:i,dataKey:a}=r;if(!n||!o||!t)return null;var s=At(r),l=On(o),c=On(i),u=typeof o=="object"&&"offsetRadius"in o&&typeof o.offsetRadius=="number"&&o.offsetRadius||20,d=t.map((p,v)=>{var g=(p.startAngle+p.endAngle)/2,m=Re(p.cx,p.cy,p.outerRadius+u,g),h=Ie(Ie(Ie(Ie({},s),p),{},{stroke:"none"},l),{},{index:v,textAnchor:I8(m.x,p.cx)},m),b=Ie(Ie(Ie(Ie({},s),p),{},{fill:"none",stroke:p.fill},c),{},{index:v,points:[Re(p.cx,p.cy,p.outerRadius,g),m],key:"line"});return f.createElement(wt,{zIndex:De.label,key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},f.createElement(Ye,null,i&&$8(i,b),L8(o,h,be(p,a))))});return f.createElement(Ye,{className:"recharts-pie-labels"},d)}function z8(e){var{sectors:t,props:r,showLabels:n}=e,{label:o}=r;return typeof o=="object"&&o!=null&&"position"in o?f.createElement(Kv,{label:o}):f.createElement(F8,{sectors:t,props:r,showLabels:n})}function B8(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:o,shape:i,id:a}=e,s=J(qr),l=J(Dv),c=J(YW),{onMouseEnter:u,onClick:d,onMouseLeave:p}=o,v=rc(o,O8),g=Yv(u,o.dataKey,a),m=Xv(p),h=Zv(d,o.dataKey,a);return t==null||t.length===0?null:f.createElement(f.Fragment,null,t.map((b,x)=>{if(b?.startAngle===0&&b?.endAngle===0&&t.length!==1)return null;var w=c==null||c===a,P=String(x)===s&&(l==null||o.dataKey===l)&&w,O=s?n:null,S=r&&P?r:O,E=Ie(Ie({},b),{},{stroke:b.stroke,tabIndex:-1,[lO]:x,[cO]:a});return f.createElement(Ye,Yr({key:"sector-".concat(b?.startAngle,"-").concat(b?.endAngle,"-").concat(b.midAngle,"-").concat(x),tabIndex:-1,className:"recharts-pie-sector"},Oi(v,b,x),{onMouseEnter:g(b,x),onMouseLeave:m(b,x),onClick:h(b,x)}),f.createElement(qv,Yr({option:i??S,index:x,shapeType:"sector",isActive:P},E)))}))}function V8(e){var t,{pieSettings:r,displayedData:n,cells:o,offset:i}=e,{cornerRadius:a,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:d}=r,p=Math.abs(r.minAngle),v=D8(s,l),g=Math.abs(v),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,h=n.filter(S=>be(S,c,0)!==0).length,b=(g>=360?h:h-1)*m,x=g-h*p-b,w=n.reduce((S,E)=>{var C=be(E,c,0);return S+(q(C)?C:0)},0),P;if(w>0){var O;P=n.map((S,E)=>{var C=be(S,c,0),N=be(S,u,E),D=R8(r,i,S),$=(q(C)?C:0)/w,_,M=Ie(Ie({},S),o&&o[E]&&o[E].props);E?_=O.endAngle+Ge(v)*m*(C!==0?1:0):_=s;var k=_+Ge(v)*((C!==0?p:0)+$*x),V=(_+k)/2,B=(D.innerRadius+D.outerRadius)/2,K=[{name:N,value:C,payload:M,dataKey:c,type:d,graphicalItemId:r.id}],T=Re(D.cx,D.cy,B,V);return O=Ie(Ie(Ie(Ie({},r.presentationProps),{},{percent:$,cornerRadius:typeof a=="string"?parseFloat(a):a,name:N,tooltipPayload:K,midAngle:V,middleRadius:B,tooltipPosition:T},M),D),{},{value:C,dataKey:c,startAngle:_,endAngle:k,payload:M,paddingAngle:Ge(v)*m}),O})}return P}function W8(e){var{showLabels:t,sectors:r,children:n}=e,o=A.useMemo(()=>!t||!r?[]:r.map(i=>({value:i.value,payload:i.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:i.cx,cy:i.cy,innerRadius:i.innerRadius,outerRadius:i.outerRadius,startAngle:i.startAngle,endAngle:i.endAngle,clockWise:!1},fill:i.fill})),[r,t]);return f.createElement(PU,{value:t?o:void 0},n)}function K8(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,activeShape:c,inactiveShape:u,onAnimationStart:d,onAnimationEnd:p}=t,v=Ii(t,"recharts-pie-"),g=r.current,[m,h]=A.useState(!1),b=A.useCallback(()=>{typeof p=="function"&&p(),h(!1)},[p]),x=A.useCallback(()=>{typeof d=="function"&&d(),h(!0)},[d]);return f.createElement(W8,{showLabels:!m,sectors:o},f.createElement(Mi,{animationId:v,begin:a,duration:s,isActive:i,easing:l,onAnimationStart:x,onAnimationEnd:b,key:v},w=>{var P,O=[],S=o&&o[0],E=(P=S?.startAngle)!==null&&P!==void 0?P:0;return o?.forEach((C,N)=>{var D=g&&g[N],$=N>0?Cn(C,"paddingAngle",0):0;if(D){var _=Ae(D.endAngle-D.startAngle,C.endAngle-C.startAngle,w),M=Ie(Ie({},C),{},{startAngle:E+$,endAngle:E+_+$});O.push(M),E=M.endAngle}else{var{endAngle:k,startAngle:V}=C,B=Ae(0,k-V,w),K=Ie(Ie({},C),{},{startAngle:E+$,endAngle:E+B+$});O.push(K),E=K.endAngle}}),r.current=O,f.createElement(Ye,null,f.createElement(B8,{sectors:O,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),f.createElement(z8,{showLabels:!m,sectors:o,props:t}),t.children)}var U8={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:De.area};function H8(e){var{id:t}=e,r=rc(e,E8),{hide:n,className:o,rootTabIndex:i}=e,a=A.useMemo(()=>Gv(e.children,Ui),[e.children]),s=J(u=>zU(u,t,a)),l=A.useRef(null),c=de("recharts-pie",o);return n||s==null?(l.current=null,f.createElement(Ye,{tabIndex:i,className:c})):f.createElement(wt,{zIndex:e.zIndex},f.createElement(M8,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),f.createElement(Ye,{tabIndex:i,className:c},f.createElement(K8,{props:Ie(Ie({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function sC(e){var t=Le(e,U8),{id:r}=t,n=rc(t,C8),o=At(n);return f.createElement(Qv,{id:r,type:"pie"},i=>f.createElement(f.Fragment,null,f.createElement(P8,{type:"pie",id:i,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:o,maxRadius:t.maxRadius}),f.createElement(N8,Yr({},n,{id:i})),f.createElement(H8,Yr({},n,{id:i}))))}sC.displayName="Pie";var G8=["points"];function Kx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kx(Object(r),!0).forEach(function(n){q8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q8(e,t,r){return(t=Y8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y8(e){var t=X8(e,"string");return typeof t=="symbol"?t:t+""}function X8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zs.apply(null,arguments)}function Z8(e,t){if(e==null)return{};var r,n,o=J8(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function J8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Q8(e){var{option:t,dotProps:r,className:n}=e;if(A.isValidElement(t))return A.cloneElement(t,r);if(typeof t=="function")return t(r);var o=de(n,typeof t!="boolean"?t.className:""),i=r??{},{points:a}=i,s=Z8(i,G8);return f.createElement(XE,zs({},s,{className:o}))}function eH(e,t){return e==null?!1:t?!0:e.length===1}function tH(e){var{points:t,dot:r,className:n,dotClassName:o,dataKey:i,baseProps:a,needClip:s,clipPathId:l,zIndex:c=De.scatter}=e;if(!eH(t,r))return null;var u=nC(r),d=XD(r),p=t.map((g,m)=>{var h,b,x=dd(dd(dd({r:3},a),d),{},{index:m,cx:(h=g.x)!==null&&h!==void 0?h:void 0,cy:(b=g.y)!==null&&b!==void 0?b:void 0,dataKey:i,value:g.value,payload:g.payload,points:t});return f.createElement(Q8,{key:"dot-".concat(m),option:r,dotProps:x,className:o})}),v={};return s&&l!=null&&(v.clipPath="url(#clipPath-".concat(u?"":"dots-").concat(l,")")),f.createElement(wt,{zIndex:c},f.createElement(Ye,zs({className:n},v),p))}function Ux(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Hx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(r),!0).forEach(function(n){rH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ux(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rH(e,t,r){return(t=nH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nH(e){var t=oH(e,"string");return typeof t=="symbol"?t:t+""}function oH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lC=0,iH={xAxis:{},yAxis:{},zAxis:{}},cC=xt({name:"cartesianAxis",initialState:iH,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Ce()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Ce()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Ce()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Ce()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Ce()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Ce()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Ce()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Ce()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Ce()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,o=e.yAxis[r];if(o){var i,a=o.widthHistory||[];if(a.length===3&&a[0]===a[2]&&n===a[1]&&n!==o.width&&Math.abs(n-((i=a[0])!==null&&i!==void 0?i:0))<=1)return;var s=[...a,n].slice(-3);e.yAxis[r]=Hx(Hx({},o),{},{width:n,widthHistory:s})}}}}),{addXAxis:aH,replaceXAxis:sH,removeXAxis:lH,addYAxis:cH,replaceYAxis:uH,removeYAxis:dH,addZAxis:Ste,replaceZAxis:Ote,removeZAxis:Ete,updateYAxisWidth:fH}=cC.actions,pH=cC.reducer,vH=j([Be],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),mH=j([vH,Tr,jr],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),em=()=>J(mH),hH=()=>J(e6);function Gx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gx(Object(r),!0).forEach(function(n){gH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gH(e,t,r){return(t=yH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yH(e){var t=bH(e,"string");return typeof t=="symbol"?t:t+""}function bH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xH=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:o,dataKey:i,clipPath:a}=e;if(o===!1||t.x==null||t.y==null)return null;var s={index:r,dataKey:i,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=fd(fd(fd({},s),On(o)),fp(o)),c;return A.isValidElement(o)?c=A.cloneElement(o,l):typeof o=="function"?c=o(l):c=f.createElement(XE,l),f.createElement(Ye,{className:"recharts-active-dot",clipPath:a},c)};function wH(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:o,clipPath:i,zIndex:a=De.activeDot}=e,s=J(qr),l=hH();if(t==null||l==null)return null;var c=t.find(u=>l.includes(u.payload));return Te(c)?null:f.createElement(wt,{zIndex:a},f.createElement(xH,{point:c,childIndex:Number(s),mainColor:r,dataKey:o,activeDot:n,clipPath:i}))}var qx=(e,t,r)=>{var n=r??e;if(!Te(n))return it(n,t,0)},PH=(e,t,r)=>{var n={},o=e.filter(Kl),i=e.filter(c=>c.stackId==null),a=o.reduce((c,u)=>{var d=c[u.stackId];return d==null&&(d=[]),d.push(u),c[u.stackId]=d,c},n),s=Object.entries(a).map(c=>{var u,[d,p]=c,v=p.map(m=>m.dataKey),g=qx(t,r,(u=p[0])===null||u===void 0?void 0:u.barSize);return{stackId:d,dataKeys:v,barSize:g}}),l=i.map(c=>{var u=[c.dataKey].filter(p=>p!=null),d=qx(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...s,...l]};function Yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Na(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){SH(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 SH(e,t,r){return(t=OH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OH(e){var t=EH(e,"string");return typeof t=="symbol"?t:t+""}function EH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CH(e,t,r,n,o){var i,a=n.length;if(!(a<1)){var s=it(e,r,0,!0),l,c=[];if(ce((i=n[0])===null||i===void 0?void 0:i.barSize)){var u=!1,d=r/a,p=n.reduce((x,w)=>x+(w.barSize||0),0);p+=(a-1)*s,p>=r&&(p-=(a-1)*s,s=0),p>=r&&d>0&&(u=!0,d*=.9,p=a*d);var v=(r-p)/2>>0,g={offset:v-s,size:0};l=n.reduce((x,w)=>{var P,O={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:g.offset+g.size+s,size:u?d:(P=w.barSize)!==null&&P!==void 0?P:0}},S=[...x,O];return g=O.position,S},c)}else{var m=it(t,r,0,!0);r-2*m-(a-1)*s<=0&&(s=0);var h=(r-2*m-(a-1)*s)/a;h>1&&(h>>=0);var b=ce(o)?Math.min(h,o):h;l=n.reduce((x,w,P)=>[...x,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(h+s)*P+(h-b)/2,size:b}}],c)}return l}}var AH=(e,t,r,n,o,i,a)=>{var s=Te(a)?t:a,l=CH(r,n,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>Na(Na({},c),{},{position:Na(Na({},c.position),{},{offset:c.position.offset-o/2})}))),l},_H=(e,t)=>{var r=cv(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var o=e[n];if(o){var{stackedData:i}=o;if(i)return i.find(a=>a.key===r)}}}},TH=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function jH(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ce(e.zIndex)?e.zIndex:t}var uC=e=>{var{chartData:t}=e,r=Pe(),n=ct();return A.useEffect(()=>n?()=>{}:(r(ex(t)),()=>{r(ex(void 0))}),[t,r,n]),null},Xx={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},dC=xt({name:"brush",initialState:Xx,reducers:{setBrushSettings(e,t){return t.payload==null?Xx:t.payload}}}),{setBrushSettings:Cte}=dC.actions,NH=dC.reducer;function MH(e){return(e%180+180)%180}var IH=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=MH(o),a=i*Math.PI/180,s=Math.atan(n/r),l=a>s&&a<Math.PI-s?n/Math.sin(a):r/Math.cos(a);return Math.abs(l)},kH={dots:[],areas:[],lines:[]},fC=xt({name:"referenceElements",initialState:kH,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Bt(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Bt(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Bt(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:Ate,removeDot:_te,addArea:Tte,removeArea:jte,addLine:Nte,removeLine:Mte}=fC.actions,RH=fC.reducer,DH=A.createContext(void 0),$H=e=>{var{children:t}=e,[r]=A.useState("".concat(Zo("recharts"),"-clip")),n=em();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return f.createElement(DH.Provider,{value:r},f.createElement("defs",null,f.createElement("clipPath",{id:r},f.createElement("rect",{x:o,y:i,height:s,width:a}))),t)};function pC(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t){var o=e[n];o!==void 0&&r.push(o)}return r}function LH(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return IH(n,r)}function FH(e,t,r){var n=r==="width",{x:o,y:i,width:a,height:s}=e;return t===1?{start:n?o:i,end:n?o+a:i+s}:{start:n?o+a:i+s,end:n?o:i}}function di(e,t,r,n,o){if(e*t<e*n||e*t>e*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function zH(e,t){return pC(e,t+1)}function BH(e,t,r,n,o){for(var i=(n||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,d=function(){var g=n?.[l];if(g===void 0)return{v:pC(n,c)};var m=l,h,b=()=>(h===void 0&&(h=r(g,m)),h),x=g.coordinate,w=l===0||di(e,x,b,u,s);w||(l=0,u=a,c+=1),w&&(u=x+e*(b()/2+o),l+=c)},p;c<=i.length;)if(p=d(),p)return p.v;return[]}function VH(e,t,r,n,o){var i=(n||[]).slice(),a=i.length;if(a===0)return[];for(var{start:s,end:l}=t,c=1;c<=a;c++){for(var u=(a-1)%c,d=s,p=!0,v=function(){var P=n[m];if(P==null)return 0;var O=m,S,E=()=>(S===void 0&&(S=r(P,O)),S),C=P.coordinate,N=m===u||di(e,C,E,d,l);if(!N)return p=!1,1;N&&(d=C+e*(E()/2+o))},g,m=u;m<a&&(g=v(),!(g!==0&&g===1));m+=c);if(p){for(var h=[],b=u;b<a;b+=c){var x=n[b];x!=null&&h.push(x)}return h}}return[]}function Zx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zx(Object(r),!0).forEach(function(n){WH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WH(e,t,r){return(t=KH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KH(e){var t=UH(e,"string");return typeof t=="symbol"?t:t+""}function UH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HH(e,t,r,n,o){for(var i=(n||[]).slice(),a=i.length,{start:s}=t,{end:l}=t,c=function(p){var v=i[p];if(v==null)return 1;var g=v,m,h=()=>(m===void 0&&(m=r(v,p)),m);if(p===a-1){var b=e*(g.coordinate+e*h()/2-l);i[p]=g=nt(nt({},g),{},{tickCoord:b>0?g.coordinate-b*e:g.coordinate})}else i[p]=g=nt(nt({},g),{},{tickCoord:g.coordinate});if(g.tickCoord!=null){var x=di(e,g.tickCoord,h,s,l);x&&(l=g.tickCoord-e*(h()/2+o),i[p]=nt(nt({},g),{},{isShow:!0}))}},u=a-1;u>=0;u--)c(u);return i}function GH(e,t,r,n,o,i){var a=(n||[]).slice(),s=a.length,{start:l,end:c}=t;if(i){var u=n[s-1];if(u!=null){var d=r(u,s-1),p=e*(u.coordinate+e*d/2-c);if(a[s-1]=u=nt(nt({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),u.tickCoord!=null){var v=di(e,u.tickCoord,()=>d,l,c);v&&(c=u.tickCoord-e*(d/2+o),a[s-1]=nt(nt({},u),{},{isShow:!0}))}}}for(var g=i?s-1:s,m=function(x){var w=a[x];if(w==null)return 1;var P=w,O,S=()=>(O===void 0&&(O=r(w,x)),O);if(x===0){var E=e*(P.coordinate-e*S()/2-l);a[x]=P=nt(nt({},P),{},{tickCoord:E<0?P.coordinate-E*e:P.coordinate})}else a[x]=P=nt(nt({},P),{},{tickCoord:P.coordinate});if(P.tickCoord!=null){var C=di(e,P.tickCoord,S,l,c);C&&(l=P.tickCoord+e*(S()/2+o),a[x]=nt(nt({},P),{},{isShow:!0}))}},h=0;h<g;h++)m(h);return a}function tm(e,t,r){var{tick:n,ticks:o,viewBox:i,minTickGap:a,orientation:s,interval:l,tickFormatter:c,unit:u,angle:d}=e;if(!o||!o.length||!n)return[];if(q(l)||Il.isSsr){var p;return(p=zH(o,q(l)?l:0))!==null&&p!==void 0?p:[]}var v=[],g=s==="top"||s==="bottom"?"width":"height",m=u&&g==="width"?Xo(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=(O,S)=>{var E=typeof c=="function"?c(O.value,S):O.value;return g==="width"?LH(Xo(E,{fontSize:t,letterSpacing:r}),m,d):Xo(E,{fontSize:t,letterSpacing:r})[g]},b=o[0],x=o[1],w=o.length>=2&&b!=null&&x!=null?Ge(x.coordinate-b.coordinate):1,P=FH(i,w,g);return l==="equidistantPreserveStart"?BH(w,P,h,o,a):l==="equidistantPreserveEnd"?VH(w,P,h,o,a):(l==="preserveStart"||l==="preserveStartEnd"?v=GH(w,P,h,o,a,l==="preserveStartEnd"):v=HH(w,P,h,o,a),v.filter(O=>O.isShow))}var qH=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:o=0,tickMargin:i=0}=e,a=0;if(t){Array.from(t).forEach(u=>{if(u){var d=u.getBoundingClientRect();d.width>a&&(a=d.width)}});var s=r?r.getBoundingClientRect().width:0,l=o+i,c=a+l+s+(r?n:0);return Math.round(c)}return 0},YH=["axisLine","width","height","className","hide","ticks","axisType"];function XH(e,t){if(e==null)return{};var r,n,o=ZH(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ZH(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mn.apply(null,arguments)}function Jx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jx(Object(r),!0).forEach(function(n){JH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JH(e,t,r){return(t=QH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QH(e){var t=eG(e,"string");return typeof t=="symbol"?t:t+""}function eG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gr={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",zIndex:De.axis};function tG(e){var{x:t,y:r,width:n,height:o,orientation:i,mirror:a,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var c=Ne(Ne(Ne({},l),At(s)),{},{fill:"none"});if(i==="top"||i==="bottom"){var u=+(i==="top"&&!a||i==="bottom"&&a);c=Ne(Ne({},c),{},{x1:t,y1:r+u*o,x2:t+n,y2:r+u*o})}else{var d=+(i==="left"&&!a||i==="right"&&a);c=Ne(Ne({},c),{},{x1:t+d*n,y1:r,x2:t+d*n,y2:r+o})}return f.createElement("line",Mn({},c,{className:de("recharts-cartesian-axis-line",Cn(s,"className"))}))}function rG(e,t,r,n,o,i,a,s,l){var c,u,d,p,v,g,m=s?-1:1,h=e.tickSize||a,b=q(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":c=u=e.coordinate,p=r+ +!s*o,d=p-m*h,g=d-m*l,v=b;break;case"left":d=p=e.coordinate,u=t+ +!s*n,c=u-m*h,v=c-m*l,g=b;break;case"right":d=p=e.coordinate,u=t+ +s*n,c=u+m*h,v=c+m*l,g=b;break;default:c=u=e.coordinate,p=r+ +s*o,d=p+m*h,g=d+m*l,v=b;break}return{line:{x1:c,y1:d,x2:u,y2:p},tick:{x:v,y:g}}}function nG(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function oG(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function iG(e){var{option:t,tickProps:r,value:n}=e,o,i=de(r.className,"recharts-cartesian-axis-tick-value");if(f.isValidElement(t))o=f.cloneElement(t,Ne(Ne({},r),{},{className:i}));else if(typeof t=="function")o=t(Ne(Ne({},r),{},{className:i}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=de(a,eC(t))),o=f.createElement(Ql,Mn({},r,{className:a}),n)}return o}var aG=A.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:o,stroke:i,tickFormatter:a,unit:s,padding:l,tickTextProps:c,orientation:u,mirror:d,x:p,y:v,width:g,height:m,tickSize:h,tickMargin:b,fontSize:x,letterSpacing:w,getTicksConfig:P,events:O,axisType:S}=e,E=tm(Ne(Ne({},P),{},{ticks:r}),x,w),C=nG(u,d),N=oG(u,d),D=At(P),$=On(n),_={};typeof o=="object"&&(_=o);var M=Ne(Ne({},D),{},{fill:"none"},_),k=E.map(K=>Ne({entry:K},rG(K,p,v,g,m,u,h,d,b))),V=k.map(K=>{var{entry:T,line:I}=K;return f.createElement(Ye,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},o&&f.createElement("line",Mn({},M,I,{className:de("recharts-cartesian-axis-tick-line",Cn(o,"className"))})))}),B=k.map((K,T)=>{var I,G,{entry:ee,tick:re}=K,oe=Ne(Ne(Ne(Ne({verticalAnchor:N},D),{},{textAnchor:C,stroke:"none",fill:i},re),{},{index:T,payload:ee,visibleTicksCount:E.length,tickFormatter:a,padding:l},c),{},{angle:(I=(G=c?.angle)!==null&&G!==void 0?G:D.angle)!==null&&I!==void 0?I:0}),ne=Ne(Ne({},oe),$);return f.createElement(Ye,Mn({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(ee.value,"-").concat(ee.coordinate,"-").concat(ee.tickCoord)},Oi(O,ee,T)),n&&f.createElement(iG,{option:n,tickProps:ne,value:"".concat(typeof a=="function"?a(ee.value,T):ee.value).concat(s||"")}))});return f.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(S,"-ticks")},B.length>0&&f.createElement(wt,{zIndex:De.label},f.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(S,"-tick-labels"),ref:t},B)),V.length>0&&f.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(S,"-tick-lines")},V))}),sG=A.forwardRef((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l}=e,c=XH(e,YH),[u,d]=A.useState(""),[p,v]=A.useState(""),g=A.useRef(null);A.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var h;return qH({ticks:g.current,label:(h=e.labelRef)===null||h===void 0?void 0:h.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=A.useCallback(h=>{if(h){var b=h.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=b;var x=b[0];if(x){var w=window.getComputedStyle(x),P=w.fontSize,O=w.letterSpacing;(P!==u||O!==p)&&(d(P),v(O))}}},[u,p]);return a||n!=null&&n<=0||o!=null&&o<=0?null:f.createElement(wt,{zIndex:e.zIndex},f.createElement(Ye,{className:de("recharts-cartesian-axis",i)},f.createElement(tG,{x:e.x,y:e.y,width:n,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:At(e)}),f.createElement(aG,{ref:m,axisType:l,events:c,fontSize:u,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y}),f.createElement(tU,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},f.createElement(dU,{label:e.label,labelRef:e.labelRef}),e.children)))}),rm=f.forwardRef((e,t)=>{var r=Le(e,gr);return f.createElement(sG,Mn({},r,{ref:t}))});rm.displayName="CartesianAxis";var lG=["x1","y1","x2","y2","key"],cG=["offset"],uG=["xAxisId","yAxisId"],dG=["xAxisId","yAxisId"];function Qx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qx(Object(r),!0).forEach(function(n){fG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fG(e,t,r){return(t=pG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pG(e){var t=vG(e,"string");return typeof t=="symbol"?t:t+""}function vG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gn.apply(null,arguments)}function Bs(e,t){if(e==null)return{};var r,n,o=mG(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function mG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var hG=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:o,width:i,height:a,ry:s}=e;return f.createElement("rect",{x:n,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function vC(e){var{option:t,lineItemProps:r}=e,n;if(f.isValidElement(t))n=f.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var o,{x1:i,y1:a,x2:s,y2:l,key:c}=r,u=Bs(r,lG),d=(o=At(u))!==null&&o!==void 0?o:{},{offset:p}=d,v=Bs(d,cG);n=f.createElement("line",gn({},v,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function gG(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Bs(e,uG),l=o.map((c,u)=>{var d=ot(ot({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return f.createElement(vC,{key:"line-".concat(u),option:n,lineItemProps:d})});return f.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function yG(e){var{y:t,height:r,vertical:n=!0,verticalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Bs(e,dG),l=o.map((c,u)=>{var d=ot(ot({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return f.createElement(vC,{option:n,lineItemProps:d,key:"line-".concat(u)})});return f.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function bG(e){var{horizontalFill:t,fillOpacity:r,x:n,y:o,width:i,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length||s==null)return null;var c=s.map(d=>Math.round(d+o-o)).sort((d,p)=>d-p);o!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var v=c[p+1],g=v==null,m=g?o+a-d:v-d;if(m<=0)return null;var h=p%t.length;return f.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:m,width:i,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return f.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function xG(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:o,y:i,width:a,height:s,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var c=l.map(d=>Math.round(d+o-o)).sort((d,p)=>d-p);o!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var v=c[p+1],g=v==null,m=g?o+a-d:v-d;if(m<=0)return null;var h=p%r.length;return f.createElement("rect",{key:"react-".concat(p),x:d,y:i,width:m,height:s,stroke:"none",fill:r[h],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return f.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var wG=(e,t)=>{var{xAxis:r,width:n,height:o,offset:i}=e;return iO(tm(ot(ot(ot({},gr),r),{},{ticks:aO(r),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},PG=(e,t)=>{var{yAxis:r,width:n,height:o,offset:i}=e;return iO(tm(ot(ot(ot({},gr),r),{},{ticks:aO(r),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},SG={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:De.grid};function nm(e){var t=Cp(),r=Ap(),n=pO(),o=ot(ot({},Le(e,SG)),{},{x:q(e.x)?e.x:n.left,y:q(e.y)?e.y:n.top,width:q(e.width)?e.width:n.width,height:q(e.height)?e.height:n.height}),{xAxisId:i,yAxisId:a,x:s,y:l,width:c,height:u,syncWithTicks:d,horizontalValues:p,verticalValues:v}=o,g=ct(),m=J(N=>Vb(N,"xAxis",i,g)),h=J(N=>Vb(N,"yAxis",a,g));if(!ar(c)||!ar(u)||!q(s)||!q(l))return null;var b=o.verticalCoordinatesGenerator||wG,x=o.horizontalCoordinatesGenerator||PG,{horizontalPoints:w,verticalPoints:P}=o;if((!w||!w.length)&&typeof x=="function"){var O=p&&p.length,S=x({yAxis:h?ot(ot({},h),{},{ticks:O?p:h.ticks}):void 0,width:t??c,height:r??u,offset:n},O?!0:d);ps(Array.isArray(S),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof S,"]")),Array.isArray(S)&&(w=S)}if((!P||!P.length)&&typeof b=="function"){var E=v&&v.length,C=b({xAxis:m?ot(ot({},m),{},{ticks:E?v:m.ticks}):void 0,width:t??c,height:r??u,offset:n},E?!0:d);ps(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(P=C)}return f.createElement(wt,{zIndex:o.zIndex},f.createElement("g",{className:"recharts-cartesian-grid"},f.createElement(hG,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),f.createElement(bG,gn({},o,{horizontalPoints:w})),f.createElement(xG,gn({},o,{verticalPoints:P})),f.createElement(gG,gn({},o,{offset:n,horizontalPoints:w,xAxis:m,yAxis:h})),f.createElement(yG,gn({},o,{offset:n,verticalPoints:P,xAxis:m,yAxis:h}))))}nm.displayName="CartesianGrid";var OG={},mC=xt({name:"errorBars",initialState:OG,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:o}=t.payload;e[r]&&(e[r]=e[r].map(i=>i.dataKey===n.dataKey&&i.direction===n.direction?o:i))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==n.dataKey||o.direction!==n.direction))}}}),{addErrorBar:Ite,replaceErrorBar:kte,removeErrorBar:Rte}=mC.actions,EG=mC.reducer,CG=["children"];function AG(e,t){if(e==null)return{};var r,n,o=_G(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _G(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var TG={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},jG=A.createContext(TG);function hC(e){var{children:t}=e,r=AG(e,CG);return f.createElement(jG.Provider,{value:r},t)}function om(e,t){var r,n,o=J(c=>Ir(c,e)),i=J(c=>kr(c,t)),a=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:Ke.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:Ue.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function gC(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=em(),{needClipX:i,needClipY:a,needClip:s}=om(t,r);if(!s||!o)return null;var{x:l,y:c,width:u,height:d}=o;return f.createElement("clipPath",{id:"clipPath-".concat(n)},f.createElement("rect",{x:i?l:l-u/2,y:a?c:c-d/2,width:i?u:u*2,height:a?d:d*2}))}var yC=(e,t,r,n)=>Gr(e,"xAxis",t,n),bC=(e,t,r,n)=>Hr(e,"xAxis",t,n),xC=(e,t,r,n)=>Gr(e,"yAxis",r,n),wC=(e,t,r,n)=>Hr(e,"yAxis",r,n),NG=j([ve,yC,xC,bC,wC],(e,t,r,n,o)=>_r(e,"xAxis")?co(t,n,!1):co(r,o,!1)),MG=(e,t,r,n,o)=>o;function IG(e){return e.type==="line"}var kG=j([Gl,MG],(e,t)=>e.filter(IG).find(r=>r.id===t)),RG=j([ve,yC,xC,bC,wC,kG,NG,ev],(e,t,r,n,o,i,a,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(!(i==null||t==null||r==null||n==null||o==null||n.length===0||o.length===0||a==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:d,data:p}=i,v;if(p!=null&&p.length>0?v=p:v=l?.slice(c,u+1),v!=null)return Sq({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:o,dataKey:d,bandSize:a,displayedData:v})}});function DG(e){var t=On(e),r=3,n=2;if(t!=null){var{r:o,strokeWidth:i}=t,a=Number(o),s=Number(i);return(Number.isNaN(a)||a<0)&&(a=r),(Number.isNaN(s)||s<0)&&(s=n),{r:a,strokeWidth:s}}return{r,strokeWidth:n}}var Ma={exports:{}},pd={};var ew;function $G(){if(ew)return pd;ew=1;var e=A;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return pd.useSyncExternalStoreWithSelector=function(l,c,u,d,p){var v=o(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=a(function(){function h(O){if(!b){if(b=!0,x=O,O=d(O),p!==void 0&&g.hasValue){var S=g.value;if(p(S,O))return w=S}return w=O}if(S=w,r(x,O))return S;var E=d(O);return p!==void 0&&p(S,E)?(x=O,S):(x=O,w=E)}var b=!1,x,w,P=u===void 0?null:u;return[function(){return h(c())},P===null?void 0:function(){return h(P())}]},[c,u,d,p]);var m=n(l,v[0],v[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},pd}var vd={};var tw;function LG(){return tw||(tw=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=A,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,a=t.useMemo,s=t.useDebugValue;vd.useSyncExternalStoreWithSelector=function(l,c,u,d,p){var v=o(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=a(function(){function h(O){if(!b){if(b=!0,x=O,O=d(O),p!==void 0&&g.hasValue){var S=g.value;if(p(S,O))return w=S}return w=O}if(S=w,r(x,O))return S;var E=d(O);return p!==void 0&&p(S,E)?(x=O,S):(x=O,w=E)}var b=!1,x,w,P=u===void 0?null:u;return[function(){return h(c())},P===null?void 0:function(){return h(P())}]},[c,u,d,p]);var m=n(l,v[0],v[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),vd}var rw;function FG(){return rw||(rw=1,process.env.NODE_ENV==="production"?Ma.exports=$G():Ma.exports=LG()),Ma.exports}FG();function zG(e){e()}function BG(){let e=null,t=null;return{clear(){e=null,t=null},notify(){zG(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var nw={notify(){},get:()=>[]};function VG(e,t){let r,n=nw,o=0,i=!1;function a(m){u();const h=n.subscribe(m);let b=!1;return()=>{b||(b=!0,h(),d())}}function s(){n.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return i}function u(){o++,r||(r=e.subscribe(l),n=BG())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=nw)}function p(){i||(i=!0,u())}function v(){i&&(i=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>n};return g}var WG=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KG=WG(),UG=()=>typeof navigator<"u"&&navigator.product==="ReactNative",HG=UG(),GG=()=>KG||HG?f.useLayoutEffect:f.useEffect,qG=GG();function ow(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function YG(e,t){if(ow(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!ow(e[r[o]],t[r[o]]))return!1;return!0}var XG=Symbol.for("react-redux-context"),ZG=typeof globalThis<"u"?globalThis:{};function JG(){if(!f.createContext)return{};const e=ZG[XG]??=new Map;let t=e.get(f.createContext);return t||(t=f.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(f.createContext,t)),t}var QG=JG();function eq(e){const{children:t,context:r,serverState:n,store:o}=e,i=f.useMemo(()=>{const l=VG(o),c={store:o,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:d="once"}=e;return Object.assign(c,{stabilityCheck:d,identityFunctionCheck:u})}},[o,n]),a=f.useMemo(()=>o.getState(),[o]);qG(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]);const s=r||QG;return f.createElement(s.Provider,{value:i},t)}var tq=eq,rq=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function nq(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function nc(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(rq.has(n)){if(e[n]==null&&t[n]==null)continue;if(!YG(e[n],t[n]))return!1}else if(!nq(e[n],t[n]))return!1;return!0}var oq=["id"],iq=["type","layout","connectNulls","needClip","shape"],aq=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fi.apply(null,arguments)}function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Zt(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){sq(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 sq(e,t,r){return(t=lq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lq(e){var t=cq(e,"string");return typeof t=="symbol"?t:t+""}function cq(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function im(e,t){if(e==null)return{};var r,n,o=uq(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function uq(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var dq=e=>{var{dataKey:t,name:r,stroke:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:wo(r,t),payload:e}]},fq=f.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:o,fill:i,name:a,hide:s,unit:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:r,getPosition:Fn,settings:{stroke:n,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:wo(a,t),hide:s,type:c,color:n,unit:l,graphicalItemId:u}};return f.createElement(Jv,{tooltipEntrySettings:d})}),PC=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function pq(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],o=0;o<t;++o)n=[...n,...r];return n}var vq=(e,t,r)=>{var n=r.reduce((v,g)=>v+g);if(!n)return PC(t,e);for(var o=Math.floor(e/n),i=e%n,a=t-e,s=[],l=0,c=0;l<r.length;c+=(u=r[l])!==null&&u!==void 0?u:0,++l){var u,d=r[l];if(d!=null&&c+d>i){s=[...r.slice(0,l),i-c];break}}var p=s.length%2===0?[0,a]:[a];return[...pq(r,o),...s,...p].map(v=>"".concat(v,"px")).join(", ")};function mq(e){var{clipPathId:t,points:r,props:n}=e,{dot:o,dataKey:i,needClip:a}=n,{id:s}=n,l=im(n,oq),c=At(l);return f.createElement(tH,{points:r,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:c,needClip:a,clipPathId:t})}function hq(e){var{showLabels:t,children:r,points:n}=e,o=A.useMemo(()=>n?.map(i=>{var a,s,l={x:(a=i.x)!==null&&a!==void 0?a:0,y:(s=i.y)!==null&&s!==void 0?s:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Zt(Zt({},l),{},{value:i.value,payload:i.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[n]);return f.createElement(qE,{value:t?o:void 0},r)}function aw(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:o,props:i}=e,{type:a,layout:s,connectNulls:l,needClip:c,shape:u}=i,d=im(i,iq),p=Zt(Zt({},mt(d)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:a,layout:s,connectNulls:l,strokeDasharray:o??i.strokeDasharray});return f.createElement(f.Fragment,null,n?.length>1&&f.createElement(qv,fi({shapeType:"curve",option:u},p,{pathRef:r})),f.createElement(mq,{points:n,clipPathId:t,props:i}))}function gq(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function yq(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:o,longestAnimatedLengthRef:i}=e,{points:a,strokeDasharray:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:d,animateNewValues:p,width:v,height:g,onAnimationEnd:m,onAnimationStart:h}=r,b=o.current,x=Ii(a,"recharts-line-"),w=A.useRef(x),[P,O]=A.useState(!1),S=!P,E=A.useCallback(()=>{typeof m=="function"&&m(),O(!1)},[m]),C=A.useCallback(()=>{typeof h=="function"&&h(),O(!0)},[h]),N=gq(n.current),D=A.useRef(0);w.current!==x&&(D.current=i.current,w.current=x);var $=D.current;return f.createElement(hq,{points:a,showLabels:S},r.children,f.createElement(Mi,{animationId:x,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:E,onAnimationStart:C,key:x},_=>{var M=Ae($,N+$,_),k=Math.min(M,N),V;if(l)if(s){var B="".concat(s).split(/[,\s]+/gim).map(I=>parseFloat(I));V=vq(k,N,B)}else V=PC(N,k);else V=s==null?void 0:String(s);if(_>0&&N>0&&(o.current=a,i.current=Math.max(i.current,k)),b){var K=b.length/a.length,T=_===1?a:a.map((I,G)=>{var ee=Math.floor(G*K);if(b[ee]){var re=b[ee];return Zt(Zt({},I),{},{x:Ae(re.x,I.x,_),y:Ae(re.y,I.y,_)})}return p?Zt(Zt({},I),{},{x:Ae(v*2,I.x,_),y:Ae(g/2,I.y,_)}):Zt(Zt({},I),{},{x:I.x,y:I.y})});return o.current=T,f.createElement(aw,{props:r,points:T,clipPathId:t,pathRef:n,strokeDasharray:V})}return f.createElement(aw,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:V})}),f.createElement(Kv,{label:r.label}))}function bq(e){var{clipPathId:t,props:r}=e,n=A.useRef(null),o=A.useRef(0),i=A.useRef(null);return f.createElement(yq,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:o,pathRef:i})}var xq=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:be(e.payload,t)}};class wq extends A.Component{render(){var{hide:t,dot:r,points:n,className:o,xAxisId:i,yAxisId:a,top:s,left:l,width:c,height:u,id:d,needClip:p,zIndex:v}=this.props;if(t)return null;var g=de("recharts-line",o),m=d,{r:h,strokeWidth:b}=DG(r),x=nC(r),w=h*2+b,P=p?"url(#clipPath-".concat(x?"":"dots-").concat(m,")"):void 0;return f.createElement(wt,{zIndex:v},f.createElement(Ye,{className:g},p&&f.createElement("defs",null,f.createElement(gC,{clipPathId:m,xAxisId:i,yAxisId:a}),!x&&f.createElement("clipPath",{id:"clipPath-dots-".concat(m)},f.createElement("rect",{x:l-w/2,y:s-w/2,width:c+w,height:u+w}))),f.createElement(hC,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:xq,errorBarOffset:0},f.createElement(bq,{props:this.props,clipPathId:m}))),f.createElement(wH,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:P}))}}var SC={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:De.line,type:"linear"};function Pq(e){var t=Le(e,SC),{activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:d,legendType:p,xAxisId:v,yAxisId:g,id:m}=t,h=im(t,aq),{needClip:b}=om(v,g),x=em(),w=zn(),P=ct(),O=J(D=>RG(D,v,g,P,m));if(w!=="horizontal"&&w!=="vertical"||O==null||x==null)return null;var{height:S,width:E,x:C,y:N}=x;return f.createElement(wq,fi({},h,{id:m,connectNulls:s,dot:l,activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,isAnimationActive:u,hide:c,label:d,legendType:p,xAxisId:v,yAxisId:g,points:O,layout:w,height:S,width:E,left:C,top:N,needClip:b}))}function Sq(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,dataKey:a,bandSize:s,displayedData:l}=e;return l.map((c,u)=>{var d=be(c,a);if(t==="horizontal"){var p=Fg({axis:r,ticks:o,bandSize:s,entry:c,index:u}),v=Te(d)?null:n.scale.map(d);return{x:p,y:v??null,value:d,payload:c}}var g=Te(d)?null:r.scale.map(d),m=Fg({axis:n,ticks:i,bandSize:s,entry:c,index:u});return g==null||m==null?null:{x:g,y:m,value:d,payload:c}}).filter(Boolean)}function Oq(e){var t=Le(e,SC),r=ct();return f.createElement(Qv,{id:t.id,type:"line"},n=>f.createElement(f.Fragment,null,f.createElement(oC,{legendPayload:dq(t)}),f.createElement(fq,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),f.createElement(aC,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),f.createElement(Pq,fi({},t,{id:n}))))}var OC=f.memo(Oq,nc);OC.displayName="Line";function Wn(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:lC}function Kn(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:lC}var Eq=process.env.NODE_ENV==="production",md="Invariant failed";function Cq(e,t){if(Eq)throw new Error(md);var r=typeof t=="function"?t():t,n=r?"".concat(md,": ").concat(r):md;throw new Error(n)}function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bf.apply(null,arguments)}function Vs(e){return f.createElement(qv,bf({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var Aq=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,o)=>{if(q(t))return t;var i=q(n)||Te(n);return i?t(n,o):(i||Cq(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},_q=(e,t,r)=>r,Tq=(e,t)=>t,Hi=j([Gl,Tq],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),jq=j([Hi],e=>e?.maxBarSize),Nq=(e,t,r,n)=>n,Mq=j([ve,Gl,Wn,Kn,_q],(e,t,r,n,o)=>t.filter(i=>e==="horizontal"?i.xAxisId===r:i.yAxisId===n).filter(i=>i.isPanorama===o).filter(i=>i.hide===!1).filter(i=>i.type==="bar")),Iq=(e,t,r)=>{var n=ve(e),o=Wn(e,t),i=Kn(e,t);if(!(o==null||i==null))return n==="horizontal"?ff(e,"yAxis",i,r):ff(e,"xAxis",o,r)},kq=(e,t)=>{var r=ve(e),n=Wn(e,t),o=Kn(e,t);if(!(n==null||o==null))return r==="horizontal"?Bb(e,"xAxis",n):Bb(e,"yAxis",o)},Rq=j([Mq,Y5,kq],PH),Dq=(e,t,r)=>{var n,o,i=Hi(e,t);if(i==null)return 0;var a=Wn(e,t),s=Kn(e,t);if(a==null||s==null)return 0;var l=ve(e),c=A1(e),{maxBarSize:u}=i,d=Te(u)?c:u,p,v;return l==="horizontal"?(p=Gr(e,"xAxis",a,r),v=Hr(e,"xAxis",a,r)):(p=Gr(e,"yAxis",s,r),v=Hr(e,"yAxis",s,r)),(n=(o=co(p,v,!0))!==null&&o!==void 0?o:d)!==null&&n!==void 0?n:0},EC=(e,t,r)=>{var n=ve(e),o=Wn(e,t),i=Kn(e,t);if(!(o==null||i==null)){var a,s;return n==="horizontal"?(a=Gr(e,"xAxis",o,r),s=Hr(e,"xAxis",o,r)):(a=Gr(e,"yAxis",i,r),s=Hr(e,"yAxis",i,r)),co(a,s)}},$q=j([Rq,A1,q5,_1,Dq,EC,jq],AH),Lq=(e,t,r)=>{var n=Wn(e,t);if(n!=null)return Gr(e,"xAxis",n,r)},Fq=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Gr(e,"yAxis",n,r)},zq=(e,t,r)=>{var n=Wn(e,t);if(n!=null)return Hr(e,"xAxis",n,r)},Bq=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Hr(e,"yAxis",n,r)},Vq=j([$q,Hi],TH),Wq=j([Iq,Hi],_H),Kq=j([Be,Pp,Lq,Fq,zq,Bq,Vq,ve,z5,EC,Wq,Hi,Nq],(e,t,r,n,o,i,a,s,l,c,u,d,p)=>{var{chartData:v,dataStartIndex:g,dataEndIndex:m}=l;if(!(d==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||r==null||n==null||o==null||i==null||c==null)){var{data:h}=d,b;if(h!=null&&h.length>0?b=h:b=v?.slice(g,m+1),b!=null)return y9({layout:s,barSettings:d,pos:a,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,stackedData:u,displayedData:b,offset:e,cells:p,dataStartIndex:g})}}),Uq=["index"];function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xf.apply(null,arguments)}function Hq(e,t){if(e==null)return{};var r,n,o=Gq(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Gq(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var CC=A.createContext(void 0),qq=e=>{var t=A.useContext(CC);if(t!=null)return t.stackId;if(e!=null)return IF(e)},Yq=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),Xq=e=>{var t=A.useContext(CC);if(t!=null){var{stackId:r}=t;return"url(#".concat(Yq(r,e),")")}},AC=e=>{var{index:t}=e,r=Hq(e,Uq),n=Xq(t);return f.createElement(Ye,xf({className:"recharts-bar-stack-layer",clipPath:n},r))},Zq=["onMouseEnter","onMouseLeave","onClick"],Jq=["value","background","tooltipPosition"],Qq=["id"],e9=["onMouseEnter","onClick","onMouseLeave"];function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Or.apply(null,arguments)}function sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ft(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){t9(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 t9(e,t,r){return(t=r9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r9(e){var t=n9(e,"string");return typeof t=="symbol"?t:t+""}function n9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ws(e,t){if(e==null)return{};var r,n,o=o9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function o9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var i9=e=>{var{dataKey:t,name:r,fill:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:wo(r,t),payload:e}]},a9=f.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:o,name:i,hide:a,unit:s,tooltipType:l,id:c}=e,u={dataDefinedOnItem:void 0,getPosition:Fn,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:t,nameKey:void 0,name:wo(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:c}};return f.createElement(Jv,{tooltipEntrySettings:u})});function s9(e){var t=J(qr),{data:r,dataKey:n,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=Ws(i,Zq),u=Yv(a,n,i.id),d=Xv(s),p=Zv(l,n,i.id);if(!o||r==null)return null;var v=On(o);return f.createElement(wt,{zIndex:jH(o,De.barBackground)},r.map((g,m)=>{var{value:h,background:b,tooltipPosition:x}=g,w=Ws(g,Jq);if(!b)return null;var P=u(g,m),O=d(g,m),S=p(g,m),E=ft(ft(ft(ft(ft({option:o,isActive:String(m)===t},w),{},{fill:"#eee"},b),v),Oi(c,g,m)),{},{onMouseEnter:P,onMouseLeave:O,onClick:S,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return f.createElement(Vs,Or({key:"background-bar-".concat(m)},E))}))}function l9(e){var{showLabels:t,children:r,rects:n}=e,o=n?.map(i=>{var a={x:i.x,y:i.y,width:i.width,lowerWidth:i.width,upperWidth:i.width,height:i.height};return ft(ft({},a),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:a,fill:i.fill})});return f.createElement(qE,{value:t?o:void 0},r)}function c9(e){var{shape:t,activeBar:r,baseProps:n,entry:o,index:i,dataKey:a}=e,s=J(qr),l=J(Dv),c=r&&String(i)===s&&(l==null||a===l),u=c?r:t;return c?f.createElement(wt,{zIndex:De.activeBar},f.createElement(AC,{index:i},f.createElement(Vs,Or({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a})))):f.createElement(Vs,Or({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a}))}function u9(e){var{shape:t,baseProps:r,entry:n,index:o,dataKey:i}=e;return f.createElement(Vs,Or({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:o,dataKey:i}))}function d9(e){var t,{data:r,props:n}=e,o=(t=At(n))!==null&&t!==void 0?t:{},{id:i}=o,a=Ws(o,Qq),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:u,onClick:d,onMouseLeave:p}=n,v=Ws(n,e9),g=Yv(u,l,i),m=Xv(p),h=Zv(d,l,i);return r?f.createElement(f.Fragment,null,r.map((b,x)=>f.createElement(AC,Or({index:x,key:"rectangle-".concat(b?.x,"-").concat(b?.y,"-").concat(b?.value,"-").concat(x),className:"recharts-bar-rectangle"},Oi(v,b,x),{onMouseEnter:g(b,x),onMouseLeave:m(b,x),onClick:h(b,x)}),c?f.createElement(c9,{shape:s,activeBar:c,baseProps:a,entry:b,index:x,dataKey:l}):f.createElement(u9,{shape:s,baseProps:a,entry:b,index:x,dataKey:l})))):null}function f9(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,d=r.current,p=Ii(t,"recharts-bar-"),[v,g]=A.useState(!1),m=!v,h=A.useCallback(()=>{typeof c=="function"&&c(),g(!1)},[c]),b=A.useCallback(()=>{typeof u=="function"&&u(),g(!0)},[u]);return f.createElement(l9,{showLabels:m,rects:n},f.createElement(Mi,{animationId:p,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:h,onAnimationStart:b,key:p},x=>{var w=x===1?n:n?.map((P,O)=>{var S=d&&d[O];if(S)return ft(ft({},P),{},{x:Ae(S.x,P.x,x),y:Ae(S.y,P.y,x),width:Ae(S.width,P.width,x),height:Ae(S.height,P.height,x)});if(o==="horizontal"){var E=Ae(0,P.height,x),C=Ae(P.stackedBarStart,P.y,x);return ft(ft({},P),{},{y:C,height:E})}var N=Ae(0,P.width,x),D=Ae(P.stackedBarStart,P.x,x);return ft(ft({},P),{},{width:N,x:D})});return x>0&&(r.current=w??null),w==null?null:f.createElement(Ye,null,f.createElement(d9,{props:t,data:w}))}),f.createElement(Kv,{label:t.label}),t.children)}function p9(e){var t=A.useRef(null);return f.createElement(f9,{previousRectanglesRef:t,props:e})}var _C=0,v9=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:be(e,t)}};class m9 extends A.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:o,xAxisId:i,yAxisId:a,needClip:s,background:l,id:c}=this.props;if(t||r==null)return null;var u=de("recharts-bar",o),d=c;return f.createElement(Ye,{className:u,id:c},s&&f.createElement("defs",null,f.createElement(gC,{clipPathId:d,xAxisId:i,yAxisId:a})),f.createElement(Ye,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},f.createElement(s9,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),f.createElement(p9,this.props)))}}var h9={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:_C,xAxisId:0,yAxisId:0,zIndex:De.bar};function g9(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:d}=om(t,r),p=zn(),v=ct(),g=Gv(e.children,Ui),m=J(x=>Kq(x,e.id,v,g));if(p!=="vertical"&&p!=="horizontal")return null;var h,b=m?.[0];return b==null||b.height==null||b.width==null?h=0:h=p==="vertical"?b.height/2:b.width/2,f.createElement(hC,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:v9,errorBarOffset:h},f.createElement(m9,Or({},e,{layout:p,needClip:d,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function y9(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:o,bandSize:i,xAxis:a,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:d,offset:p,cells:v,parentViewBox:g,dataStartIndex:m}=e,h=t==="horizontal"?s:a,b=u?h.scale.domain():null,x=kF({numericAxis:h}),w=h.scale.map(x);return d.map((P,O)=>{var S,E,C,N,D,$;if(u){var _=u[O+m];if(_==null)return null;S=_F(_,b)}else S=be(P,r),Array.isArray(S)||(S=[x,S]);var M=Aq(n,_C)(S[1],O);if(t==="horizontal"){var k,V=s.scale.map(S[0]),B=s.scale.map(S[1]);if(V==null||B==null)return null;E=zg({axis:a,ticks:l,bandSize:i,offset:o.offset,entry:P,index:O}),C=(k=B??V)!==null&&k!==void 0?k:void 0,N=o.size;var K=V-B;if(D=or(K)?0:K,$={x:E,y:p.top,width:N,height:p.height},Math.abs(M)>0&&Math.abs(D)<Math.abs(M)){var T=Ge(D||M)*(Math.abs(M)-Math.abs(D));C-=T,D+=T}}else{var I=a.scale.map(S[0]),G=a.scale.map(S[1]);if(I==null||G==null)return null;if(E=I,C=zg({axis:s,ticks:c,bandSize:i,offset:o.offset,entry:P,index:O}),N=G-I,D=o.size,$={x:p.left,y:C,width:p.width,height:D},Math.abs(M)>0&&Math.abs(N)<Math.abs(M)){var ee=Ge(N||M)*(Math.abs(M)-Math.abs(N));N+=ee}}if(E==null||C==null||N==null||D==null)return null;var re=ft(ft({},P),{},{stackedBarStart:w,x:E,y:C,width:N,height:D,value:u?S:S[1],payload:P,background:$,tooltipPosition:{x:E+N/2,y:C+D/2},parentViewBox:g},v&&v[O]&&v[O].props);return re}).filter(Boolean)}function b9(e){var t=Le(e,h9),r=qq(t.stackId),n=ct();return f.createElement(Qv,{id:t.id,type:"bar"},o=>f.createElement(f.Fragment,null,f.createElement(oC,{legendPayload:i9(t)}),f.createElement(a9,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:o}),f.createElement(aC,{type:"bar",id:o,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),f.createElement(wt,{zIndex:t.zIndex},f.createElement(g9,Or({},t,{id:o})))))}var TC=f.memo(b9,nc);TC.displayName="Bar";var x9=["domain","range"],w9=["domain","range"];function lw(e,t){if(e==null)return{};var r,n,o=P9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function P9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function cw(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function jC(e,t){if(e===t)return!0;var{domain:r,range:n}=e,o=lw(e,x9),{domain:i,range:a}=t,s=lw(t,w9);return!cw(r,i)||!cw(n,a)?!1:nc(o,s)}var S9=["type"],O9=["dangerouslySetInnerHTML","ticks","scale"],E9=["id","scale"];function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wf.apply(null,arguments)}function uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dw(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){C9(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 C9(e,t,r){return(t=A9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A9(e){var t=_9(e,"string");return typeof t=="symbol"?t:t+""}function _9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pf(e,t){if(e==null)return{};var r,n,o=T9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function T9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function j9(e){var t=Pe(),r=A.useRef(null),n=vO(),{type:o}=e,i=Pf(e,S9),a=Vl(n,"xAxis",o),s=A.useMemo(()=>{if(a!=null)return dw(dw({},i),{},{type:a})},[i,a]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(aH(s)):r.current!==s&&t(sH({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(lH(r.current)),r.current=null)},[t]),null}var N9=e=>{var{xAxisId:t,className:r}=e,n=J(Pp),o=ct(),i="xAxis",a=J(b=>sE(b,i,t,o)),s=J(b=>nE(b,t)),l=J(b=>Y4(b,t)),c=J(b=>L1(b,t));if(s==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:p}=e,v=Pf(e,O9),{id:g,scale:m}=c,h=Pf(c,E9);return f.createElement(rm,wf({},v,h,{x:l.x,y:l.y,width:s.width,height:s.height,className:de("recharts-".concat(i," ").concat(i),r),viewBox:n,ticks:a,axisType:i}))},M9={allowDataOverflow:Ke.allowDataOverflow,allowDecimals:Ke.allowDecimals,allowDuplicatedCategory:Ke.allowDuplicatedCategory,angle:Ke.angle,axisLine:gr.axisLine,height:Ke.height,hide:!1,includeHidden:Ke.includeHidden,interval:Ke.interval,label:!1,minTickGap:Ke.minTickGap,mirror:Ke.mirror,orientation:Ke.orientation,padding:Ke.padding,reversed:Ke.reversed,scale:Ke.scale,tick:Ke.tick,tickCount:Ke.tickCount,tickLine:gr.tickLine,tickSize:gr.tickSize,type:Ke.type,xAxisId:0},I9=e=>{var t=Le(e,M9);return f.createElement(f.Fragment,null,f.createElement(j9,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),f.createElement(N9,t))},Ks=f.memo(I9,jC);Ks.displayName="XAxis";var k9=["type"],R9=["dangerouslySetInnerHTML","ticks","scale"],D9=["id","scale"];function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sf.apply(null,arguments)}function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function pw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(r),!0).forEach(function(n){$9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $9(e,t,r){return(t=L9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L9(e){var t=F9(e,"string");return typeof t=="symbol"?t:t+""}function F9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Of(e,t){if(e==null)return{};var r,n,o=z9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function z9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function B9(e){var t=Pe(),r=A.useRef(null),n=vO(),{type:o}=e,i=Of(e,k9),a=Vl(n,"yAxis",o),s=A.useMemo(()=>{if(a!=null)return pw(pw({},i),{},{type:a})},[a,i]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(cH(s)):r.current!==s&&t(uH({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(dH(r.current)),r.current=null)},[t]),null}function V9(e){var{yAxisId:t,className:r,width:n,label:o}=e,i=A.useRef(null),a=A.useRef(null),s=J(Pp),l=ct(),c=Pe(),u="yAxis",d=J(S=>oE(S,t)),p=J(S=>Z4(S,t)),v=J(S=>sE(S,u,t,l)),g=J(S=>F1(S,t));if(A.useLayoutEffect(()=>{if(!(n!=="auto"||!d||Wv(o)||A.isValidElement(o)||g==null)){var S=i.current;if(S){var E=S.getCalculatedWidth();Math.round(d.width)!==Math.round(E)&&c(fH({id:t,width:E}))}}},[v,d,c,o,t,n,g]),d==null||p==null||g==null)return null;var{dangerouslySetInnerHTML:m,ticks:h,scale:b}=e,x=Of(e,R9),{id:w,scale:P}=g,O=Of(g,D9);return f.createElement(rm,Sf({},x,O,{ref:i,labelRef:a,x:p.x,y:p.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:d.width,height:d.height,className:de("recharts-".concat(u," ").concat(u),r),viewBox:s,ticks:v,axisType:u}))}var W9={allowDataOverflow:Ue.allowDataOverflow,allowDecimals:Ue.allowDecimals,allowDuplicatedCategory:Ue.allowDuplicatedCategory,angle:Ue.angle,axisLine:gr.axisLine,hide:!1,includeHidden:Ue.includeHidden,interval:Ue.interval,label:!1,minTickGap:Ue.minTickGap,mirror:Ue.mirror,orientation:Ue.orientation,padding:Ue.padding,reversed:Ue.reversed,scale:Ue.scale,tick:Ue.tick,tickCount:Ue.tickCount,tickLine:gr.tickLine,tickSize:gr.tickSize,type:Ue.type,width:Ue.width,yAxisId:0},K9=e=>{var t=Le(e,W9);return f.createElement(f.Fragment,null,f.createElement(B9,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),f.createElement(V9,t))},Us=f.memo(K9,jC);Us.displayName="YAxis";var U9=(e,t)=>t,am=j([U9,ve,R1,Je,OE,Rr,p6,Be],x6),sm=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},NC=Rt("mouseClick"),MC=_i();MC.startListening({actionCreator:NC,effect:(e,t)=>{var r=e.payload,n=am(t.getState(),sm(r));n?.activeIndex!=null&&t.dispatch(dW({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Ef=Rt("mouseMove"),IC=_i(),Ia=null;IC.startListening({actionCreator:Ef,effect:(e,t)=>{var r=e.payload;Ia!==null&&cancelAnimationFrame(Ia);var n=sm(r);Ia=requestAnimationFrame(()=>{var o=t.getState(),i=jv(o,o.tooltip.settings.shared);if(i==="axis"){var a=am(o,n);a?.activeIndex!=null?t.dispatch(mE({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(vE())}Ia=null})}});function H9(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var vw={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},kC=xt({name:"rootProps",initialState:vw,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:vw.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),G9=kC.reducer,{updateOptions:q9}=kC.actions,Y9=null,X9={updatePolarOptions:(e,t)=>t.payload},RC=xt({name:"polarOptions",initialState:Y9,reducers:X9}),{updatePolarOptions:Z9}=RC.actions,J9=RC.reducer,DC=Rt("keyDown"),$C=Rt("focus"),lm=_i();lm.startListening({actionCreator:DC,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip,i=e.payload;if(!(i!=="ArrowRight"&&i!=="ArrowLeft"&&i!=="Enter")){var a=Nv(o,jo(r),Bi(r),Wi(r)),s=a==null?-1:Number(a);if(!(!Number.isFinite(s)||s<0)){var l=Rr(r);if(i==="Enter"){var c=Ds(r,"axis","hover",String(o.index));t.dispatch(vf({active:!o.active,activeIndex:o.index,activeCoordinate:c}));return}var u=tW(r),d=u==="left-to-right"?1:-1,p=i==="ArrowRight"?1:-1,v=s+p*d;if(!(l==null||v>=l.length||v<0)){var g=Ds(r,"axis","hover",String(v));t.dispatch(vf({active:!0,activeIndex:v.toString(),activeCoordinate:g}))}}}}}});lm.startListening({actionCreator:$C,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var i="0",a=Ds(r,"axis","hover",String(i));t.dispatch(vf({active:!0,activeIndex:i,activeCoordinate:a}))}}}});var Nt=Rt("externalEvent"),LC=_i(),hd=new Map;LC.startListening({actionCreator:Nt,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var o=n.type,i=hd.get(o);i!==void 0&&cancelAnimationFrame(i);var a=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:ZW(s),activeDataKey:Dv(s),activeIndex:qr(s),activeLabel:AE(s),activeTooltipIndex:qr(s),isTooltipActive:JW(s)};r(l,n)}finally{hd.delete(o)}});hd.set(o,a)}}});var Q9=j([_o],e=>e.tooltipItemPayloads),e7=j([Q9,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(i=>i.settings.graphicalItemId===r);if(n!=null){var{getPosition:o}=n;if(o!=null)return o(t)}}}),FC=Rt("touchMove"),zC=_i();zC.startListening({actionCreator:FC,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),o=jv(n,n.tooltip.settings.shared);if(o==="axis"){var i=r.touches[0];if(i==null)return;var a=am(n,sm({clientX:i.clientX,clientY:i.clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(mE({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(o==="item"){var s,l=r.touches[0];if(document.elementFromPoint==null||l==null)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var u=c.getAttribute(lO),d=(s=c.getAttribute(cO))!==null&&s!==void 0?s:void 0,p=To(n).find(m=>m.id===d);if(u==null||p==null||d==null)return;var{dataKey:v}=p,g=e7(n,u,d);t.dispatch(pE({activeDataKey:v,activeIndex:u,activeCoordinate:g,activeGraphicalItemId:d}))}}}});var t7=CS({brush:NH,cartesianAxis:pH,chartData:Z6,errorBars:EG,graphicalItems:x8,layout:SF,legend:Nz,options:H6,polarAxis:IU,polarOptions:J9,referenceElements:RH,rootProps:G9,tooltip:fW,zIndex:k6}),r7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return qL({reducer:t7,preloadedState:t,middleware:n=>{var o;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([MC.middleware,IC.middleware,lm.middleware,LC.middleware,zC.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(US({type:"raf"}))},devTools:{serialize:{replacer:H9},name:"recharts-".concat(r)}})};function BC(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,o=ct(),i=A.useRef(null);if(o)return r;i.current==null&&(i.current=r7(t,n));var a=mp;return f.createElement(tq,{context:a,store:i.current},r)}function n7(e){var{layout:t,margin:r}=e,n=Pe(),o=ct();return A.useEffect(()=>{o||(n(xF(t)),n(bF(r)))},[n,o,t,r]),null}var VC=A.memo(n7,nc);function WC(e){var t=Pe();return A.useEffect(()=>{t(q9(e))},[t,e]),null}function mw(e){var{zIndex:t,isPanorama:r}=e,n=A.useRef(null),o=Pe();return A.useLayoutEffect(()=>(n.current&&o(M6({zIndex:t,element:n.current,isPanorama:r})),()=>{o(I6({zIndex:t,isPanorama:r}))}),[o,t,r]),f.createElement("g",{tabIndex:-1,ref:n})}function hw(e){var{children:t,isPanorama:r}=e,n=J(P6);if(!n||n.length===0)return t;var o=n.filter(a=>a<0),i=n.filter(a=>a>0);return f.createElement(f.Fragment,null,o.map(a=>f.createElement(mw,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>f.createElement(mw,{key:a,zIndex:a,isPanorama:r})))}var o7=["children"];function i7(e,t){if(e==null)return{};var r,n,o=a7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function a7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}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)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hs.apply(null,arguments)}var s7={width:"100%",height:"100%",display:"block"},l7=A.forwardRef((e,t)=>{var r=Cp(),n=Ap(),o=CO();if(!ar(r)||!ar(n))return null;var{children:i,otherAttributes:a,title:s,desc:l}=e,c,u;return a!=null&&(typeof a.tabIndex=="number"?c=a.tabIndex:c=o?0:void 0,typeof a.role=="string"?u=a.role:u=o?"application":void 0),f.createElement(op,Hs({},a,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:s7,ref:t}),i)}),c7=e=>{var{children:t}=e,r=J(Al);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return f.createElement(op,{width:n,height:o,x:a,y:i},t)},gw=A.forwardRef((e,t)=>{var{children:r}=e,n=i7(e,o7),o=ct();return o?f.createElement(c7,null,f.createElement(hw,{isPanorama:!0},r)):f.createElement(l7,Hs({ref:t},n),f.createElement(hw,{isPanorama:!1},r))});function u7(){var e=Pe(),[t,r]=A.useState(null),n=J(zF);return A.useEffect(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;ce(i)&&i!==n&&e(PF(i))}},[t,e,n]),r}function yw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function d7(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){f7(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 f7(e,t,r){return(t=p7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p7(e){var t=v7(e,"string");return typeof t=="symbol"?t:t+""}function v7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(null,arguments)}var m7=()=>(aK(),null);function Gs(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var h7=A.forwardRef((e,t)=>{var r,n,o=A.useRef(null),[i,a]=A.useState({containerWidth:Gs((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Gs((n=e.style)===null||n===void 0?void 0:n.height)}),s=A.useCallback((c,u)=>{a(d=>{var p=Math.round(c),v=Math.round(u);return d.containerWidth===p&&d.containerHeight===v?d:{containerWidth:p,containerHeight:v}})},[]),l=A.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:d}=c.getBoundingClientRect();s(u,d);var p=g=>{var m=g[0];if(m!=null){var{width:h,height:b}=m.contentRect;s(h,b)}},v=new ResizeObserver(p);v.observe(c),o.current=v}},[t,s]);return A.useEffect(()=>()=>{var c=o.current;c?.disconnect()},[s]),f.createElement(f.Fragment,null,f.createElement(ji,{width:i.containerWidth,height:i.containerHeight}),f.createElement("div",Kr({ref:l},e)))}),g7=A.forwardRef((e,t)=>{var{width:r,height:n}=e,[o,i]=A.useState({containerWidth:Gs(r),containerHeight:Gs(n)}),a=A.useCallback((l,c)=>{i(u=>{var d=Math.round(l),p=Math.round(c);return u.containerWidth===d&&u.containerHeight===p?u:{containerWidth:d,containerHeight:p}})},[]),s=A.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();a(c,u)}},[t,a]);return f.createElement(f.Fragment,null,f.createElement(ji,{width:o.containerWidth,height:o.containerHeight}),f.createElement("div",Kr({ref:s},e)))}),y7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return f.createElement(f.Fragment,null,f.createElement(ji,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))}),b7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?f.createElement(g7,Kr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?f.createElement(y7,Kr({},e,{width:r,height:n,ref:t})):f.createElement(f.Fragment,null,f.createElement(ji,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))});function x7(e){return e?h7:b7}var w7=A.forwardRef((e,t)=>{var{children:r,className:n,height:o,onClick:i,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:d,onMouseUp:p,onTouchEnd:v,onTouchMove:g,onTouchStart:m,style:h,width:b,responsive:x,dispatchTouchEvents:w=!0}=e,P=A.useRef(null),O=Pe(),[S,E]=A.useState(null),[C,N]=A.useState(null),D=u7(),$=Sp(),_=$?.width>0?$.width:b,M=$?.height>0?$.height:o,k=A.useCallback(L=>{D(L),typeof t=="function"&&t(L),E(L),N(L),L!=null&&(P.current=L)},[D,t,E,N]),V=A.useCallback(L=>{O(NC(L)),O(Nt({handler:i,reactEvent:L}))},[O,i]),B=A.useCallback(L=>{O(Ef(L)),O(Nt({handler:c,reactEvent:L}))},[O,c]),K=A.useCallback(L=>{O(vE()),O(Nt({handler:u,reactEvent:L}))},[O,u]),T=A.useCallback(L=>{O(Ef(L)),O(Nt({handler:d,reactEvent:L}))},[O,d]),I=A.useCallback(()=>{O($C())},[O]),G=A.useCallback(L=>{O(DC(L.key))},[O]),ee=A.useCallback(L=>{O(Nt({handler:a,reactEvent:L}))},[O,a]),re=A.useCallback(L=>{O(Nt({handler:s,reactEvent:L}))},[O,s]),oe=A.useCallback(L=>{O(Nt({handler:l,reactEvent:L}))},[O,l]),ne=A.useCallback(L=>{O(Nt({handler:p,reactEvent:L}))},[O,p]),le=A.useCallback(L=>{O(Nt({handler:m,reactEvent:L}))},[O,m]),Ee=A.useCallback(L=>{w&&O(FC(L)),O(Nt({handler:g,reactEvent:L}))},[O,w,g]),W=A.useCallback(L=>{O(Nt({handler:v,reactEvent:L}))},[O,v]),ue=x7(x);return f.createElement(kE.Provider,{value:S},f.createElement(VP.Provider,{value:C},f.createElement(ue,{width:_??h?.width,height:M??h?.height,className:de("recharts-wrapper",n),style:d7({position:"relative",cursor:"default",width:_,height:M},h),onClick:V,onContextMenu:ee,onDoubleClick:re,onFocus:I,onKeyDown:G,onMouseDown:oe,onMouseEnter:B,onMouseLeave:K,onMouseMove:T,onMouseUp:ne,onTouchEnd:W,onTouchMove:Ee,onTouchStart:le,ref:k},f.createElement(m7,null),r)))}),P7=["width","height","responsive","children","className","style","compact","title","desc"];function S7(e,t){if(e==null)return{};var r,n,o=O7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function O7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var KC=A.forwardRef((e,t)=>{var{width:r,height:n,responsive:o,children:i,className:a,style:s,compact:l,title:c,desc:u}=e,d=S7(e,P7),p=At(d);return l?f.createElement(f.Fragment,null,f.createElement(ji,{width:r,height:n}),f.createElement(gw,{otherAttributes:p,title:c,desc:u},i)):f.createElement(w7,{className:a,style:s,width:r,height:n,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},f.createElement(gw,{otherAttributes:p,title:c,desc:u,ref:t},f.createElement($H,null,i)))});function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cf.apply(null,arguments)}var E7={top:5,right:5,bottom:5,left:5},C7={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:E7,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},UC=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,C7),{chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,categoricalChartProps:c}=t,u={chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,eventEmitter:void 0};return f.createElement(BC,{preloadedState:{options:u},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:i},f.createElement(uC,{chartData:c.data}),f.createElement(VC,{layout:o.layout,margin:o.margin}),f.createElement(WC,{baseValue:o.baseValue,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),f.createElement(KC,Cf({},o,{ref:r})))}),A7=["axis"],_7=A.forwardRef((e,t)=>f.createElement(UC,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:A7,tooltipPayloadSearcher:Bv,categoricalChartProps:e,ref:t})),T7=["axis","item"],j7=A.forwardRef((e,t)=>f.createElement(UC,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:T7,tooltipPayloadSearcher:Bv,categoricalChartProps:e,ref:t}));function N7(e){var t=Pe();return A.useEffect(()=>{t(Z9(e))},[t,e]),null}var M7=["layout"];function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Af.apply(null,arguments)}function I7(e,t){if(e==null)return{};var r,n,o=k7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function k7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var R7={top:5,right:5,bottom:5,left:5},HC={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:R7,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},D7=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,HC),{layout:i}=o,a=I7(o,M7),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=t,d={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return f.createElement(BC,{preloadedState:{options:d},reduxStoreName:(n=o.id)!==null&&n!==void 0?n:s},f.createElement(uC,{chartData:o.data}),f.createElement(VC,{layout:i,margin:o.margin}),f.createElement(WC,{baseValue:void 0,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),f.createElement(N7,{cx:o.cx,cy:o.cy,startAngle:o.startAngle,endAngle:o.endAngle,innerRadius:o.innerRadius,outerRadius:o.outerRadius}),f.createElement(KC,Af({},a,{ref:r})))});function bw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function xw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bw(Object(r),!0).forEach(function(n){$7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $7(e,t,r){return(t=L7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L7(e){var t=F7(e,"string");return typeof t=="symbol"?t:t+""}function F7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z7=["item"],B7=xw(xw({},HC),{},{layout:"centric",startAngle:0,endAngle:360}),V7=A.forwardRef((e,t)=>{var r=Le(e,B7);return f.createElement(D7,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:z7,tooltipPayloadSearcher:Bv,categoricalChartProps:r,ref:t})});const GC=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),ka=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],qC=f.forwardRef(({className:e,size:t,data:r,series:n,showGrid:o=!0,showLegend:i=!0,showTooltip:a=!0,xAxisLabel:s,yAxisLabel:l,radius:c=0,stacked:u=!1,layout:d="horizontal",...p},v)=>{const g=f.useMemo(()=>{if(n)return n;const h=r[0];return h?Object.keys(h).filter(x=>x!=="label"&&typeof h[x]=="number").map((x,w)=>({key:x,name:x.charAt(0).toUpperCase()+x.slice(1),color:ka[w%ka.length]})):[]},[r,n]),m=d==="vertical";return y.jsx("div",{ref:v,className:R(GC({size:t,className:e})),role:"img",...p,children:y.jsx(Op,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(j7,{data:r,layout:d,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(nm,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!m,horizontal:m}),m?y.jsxs(y.Fragment,{children:[y.jsx(Ks,{type:"number",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(Us,{type:"category",dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0})]}):y.jsxs(y.Fragment,{children:[y.jsx(Ks,{dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(Us,{stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0})]}),a&&y.jsx(Vv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},itemStyle:{color:"var(--color-secondary)"},cursor:{fill:"rgba(0, 0, 0, 0.05)"}}),i&&y.jsx(Ml,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:h=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:h})}),g.map((h,b)=>y.jsx(TC,{dataKey:h.key,name:h.name,fill:h.color||ka[b%ka.length],radius:c,stackId:u?"stack":void 0},h.key))]})})})});qC.displayName="BarChart";const YC=te("text-small flex items-center font-sans",{variants:{size:{sm:"text-label gap-1.5",default:"text-small gap-2",lg:"text-body gap-2.5"}},defaultVariants:{size:"default"}}),_f=te("focus-visible:ring-sunflower inline-flex items-center transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{isCurrentPage:{true:"cursor-default text-black",false:"text-quaternary hover:text-primary"}},defaultVariants:{isCurrentPage:!1}}),XC=f.forwardRef(({className:e,size:t,separator:r=y.jsx(cm,{}),children:n,...o},i)=>{const a=f.Children.toArray(n).filter(f.isValidElement);return y.jsx("nav",{ref:i,"aria-label":"Breadcrumb",...o,children:y.jsx("ol",{className:R(YC({size:t,className:e})),children:a.map((s,l)=>y.jsxs("li",{className:"inline-flex items-center gap-2",children:[s,l<a.length-1&&r]},l))})})});XC.displayName="Breadcrumbs";const ZC=f.forwardRef(({className:e,asChild:t=!1,isCurrentPage:r=!1,...n},o)=>{if(r)return y.jsx("span",{className:R(_f({isCurrentPage:!0,className:e})),"aria-current":"page",children:n.children});const i=t?Oe:"a";return y.jsx(i,{ref:o,className:R(_f({isCurrentPage:!1,className:e})),...n})});ZC.displayName="BreadcrumbItem";const cm=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx("span",{ref:n,role:"presentation","aria-hidden":"true",className:R("text-tertiary",e),...r,children:t??y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",children:y.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}));cm.displayName="BreadcrumbSeparator";const JC=te("focus-visible:ring-sunflower rounded transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{default:"",elevated:"shadow",ghost:""},padding:{none:"p-0",sm:"p-4",default:"p-6",lg:"p-8"},bg:{card:"bg-card",main:"bg-main",alt:"bg-alt",contrast:"bg-contrast",transparent:"bg-transparent",sunflower:"bg-sunflower","sunflower-hover":"bg-sunflower-hover","lemon-meringue":"bg-lemon-meringue",vanilla:"bg-vanilla",eggshell:"bg-eggshell","warm-purple":"bg-warm-purple","cool-purple":"bg-cool-purple","electric-blue":"bg-electric-blue","deep-blue":"bg-deep-blue",error:"bg-error"}},defaultVariants:{variant:"default",padding:"default",bg:"alt"}}),QC=f.forwardRef(({className:e,variant:t,padding:r,bg:n,asChild:o=!1,...i},a)=>{const s=o?Oe:"div";return y.jsx(s,{className:R(JC({variant:t,padding:r,bg:n,className:e})),ref:a,...i})});QC.displayName="Card";function oc(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ic(e){const[t,r]=f.useState(void 0);return qe(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ac="Checkbox",[W7]=Xe(ac),[K7,um]=W7(ac);function U7(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[p,v]=at({prop:r,defaultProp:o??!1,onChange:l,caller:ac}),[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useRef(!1),w=g?!!a||!!g.closest("form"):!0,P={checked:p,disabled:i,setChecked:v,control:g,setControl:m,name:s,form:a,value:u,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:Ur(o)?!1:o,isFormControl:w,bubbleInput:h,setBubbleInput:b};return y.jsx(K7,{scope:t,...P,children:H7(d)?d(P):n})}var eA="CheckboxTrigger",tA=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:i,value:a,disabled:s,checked:l,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:g}=um(eA,e),m=ie(o,u),h=f.useRef(l);return f.useEffect(()=>{const b=i?.form;if(b){const x=()=>d(h.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,d]),y.jsx(Q.button,{type:"button",role:"checkbox","aria-checked":Ur(l)?"mixed":l,"aria-required":c,"data-state":sA(l),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:m,onKeyDown:U(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:U(r,b=>{d(x=>Ur(x)?!0:!x),g&&v&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});tA.displayName=eA;var rA=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:c,form:u,...d}=e;return y.jsx(U7,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:c,name:n,form:u,value:l,internal_do_not_use_render:({isFormControl:p})=>y.jsxs(y.Fragment,{children:[y.jsx(tA,{...d,ref:t,__scopeCheckbox:r}),p&&y.jsx(aA,{__scopeCheckbox:r})]})})});rA.displayName=ac;var nA="CheckboxIndicator",oA=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=um(nA,r);return y.jsx(lt,{present:n||Ur(i.checked)||i.checked===!0,children:y.jsx(Q.span,{"data-state":sA(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});oA.displayName=nA;var iA="CheckboxBubbleInput",aA=f.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:c,value:u,form:d,bubbleInput:p,setBubbleInput:v}=um(iA,e),g=ie(r,v),m=oc(i),h=ic(n);f.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,O=Object.getOwnPropertyDescriptor(w,"checked").set,S=!o.current;if(m!==i&&O){const E=new Event("click",{bubbles:S});x.indeterminate=Ur(i),O.call(x,Ur(i)?!1:i),x.dispatchEvent(E)}},[p,m,i,o]);const b=f.useRef(Ur(i)?!1:i);return y.jsx(Q.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??b.current,required:s,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:g,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});aA.displayName=iA;function H7(e){return typeof e=="function"}function Ur(e){return e==="indeterminate"}function sA(e){return Ur(e)?"indeterminate":e?"checked":"unchecked"}const lA=f.forwardRef(({className:e,...t},r)=>y.jsx(rA,{ref:r,className:R("border-border bg-card peer h-5 w-5 shrink-0 rounded border transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-sunflower data-[state=checked]:bg-sunflower data-[state=checked]:text-primary",e),...t,children:y.jsx(oA,{className:R("flex items-center justify-center text-current"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",className:"h-3.5 w-3.5",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})})})}));lA.displayName="Checkbox";const G7=["top","right","bottom","left"],Xr=Math.min,Pt=Math.max,qs=Math.round,Ra=Math.floor,nr=e=>({x:e,y:e}),q7={left:"right",right:"left",bottom:"top",top:"bottom"},Y7={start:"end",end:"start"};function Tf(e,t,r){return Pt(e,Xr(t,r))}function Er(e,t){return typeof e=="function"?e(t):e}function Cr(e){return e.split("-")[0]}function No(e){return e.split("-")[1]}function dm(e){return e==="x"?"y":"x"}function fm(e){return e==="y"?"height":"width"}const X7=new Set(["top","bottom"]);function tr(e){return X7.has(Cr(e))?"y":"x"}function pm(e){return dm(tr(e))}function Z7(e,t,r){r===void 0&&(r=!1);const n=No(e),o=pm(e),i=fm(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ys(a)),[a,Ys(a)]}function J7(e){const t=Ys(e);return[jf(e),t,jf(t)]}function jf(e){return e.replace(/start|end/g,t=>Y7[t])}const ww=["left","right"],Pw=["right","left"],Q7=["top","bottom"],eY=["bottom","top"];function tY(e,t,r){switch(e){case"top":case"bottom":return r?t?Pw:ww:t?ww:Pw;case"left":case"right":return t?Q7:eY;default:return[]}}function rY(e,t,r,n){const o=No(e);let i=tY(Cr(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(jf)))),i}function Ys(e){return e.replace(/left|right|bottom|top/g,t=>q7[t])}function nY(e){return{top:0,right:0,bottom:0,left:0,...e}}function cA(e){return typeof e!="number"?nY(e):{top:e,right:e,bottom:e,left:e}}function Xs(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Sw(e,t,r){let{reference:n,floating:o}=e;const i=tr(t),a=pm(t),s=fm(a),l=Cr(t),c=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[s]/2-o[s]/2;let v;switch(l){case"top":v={x:u,y:n.y-o.height};break;case"bottom":v={x:u,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:d};break;case"left":v={x:n.x-o.width,y:d};break;default:v={x:n.x,y:n.y}}switch(No(t)){case"start":v[a]-=p*(r&&c?-1:1);break;case"end":v[a]+=p*(r&&c?-1:1);break}return v}async function oY(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:v=0}=Er(t,e),g=cA(v),h=s[p?d==="floating"?"reference":"floating":d],b=Xs(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(h)))==null||r?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),x=d==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),P=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},O=Xs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:l}):x);return{top:(b.top-O.top+g.top)/P.y,bottom:(O.bottom-b.bottom+g.bottom)/P.y,left:(b.left-O.left+g.left)/P.x,right:(O.right-b.right+g.right)/P.x}}const iY=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Sw(c,n,l),p=n,v={},g=0;for(let h=0;h<s.length;h++){var m;const{name:b,fn:x}=s[h],{x:w,y:P,data:O,reset:S}=await x({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:v,rects:c,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:oY},elements:{reference:e,floating:t}});u=w??u,d=P??d,v={...v,[b]:{...v[b],...O}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(c=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:d}=Sw(c,p,l)),h=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:v}},aY=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Er(e,t)||{};if(c==null)return{};const d=cA(u),p={x:r,y:n},v=pm(o),g=fm(v),m=await a.getDimensions(c),h=v==="y",b=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",P=i.reference[g]+i.reference[v]-p[v]-i.floating[g],O=p[v]-i.reference[v],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let E=S?S[w]:0;(!E||!await(a.isElement==null?void 0:a.isElement(S)))&&(E=s.floating[w]||i.floating[g]);const C=P/2-O/2,N=E/2-m[g]/2-1,D=Xr(d[b],N),$=Xr(d[x],N),_=D,M=E-m[g]-$,k=E/2-m[g]/2+C,V=Tf(_,k,M),B=!l.arrow&&No(o)!=null&&k!==V&&i.reference[g]/2-(k<_?D:$)-m[g]/2<0,K=B?k<_?k-_:k-M:0;return{[v]:p[v]+K,data:{[v]:V,centerOffset:k-V-K,...B&&{alignmentOffset:K}},reset:B}}}),sY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...h}=Er(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=Cr(o),x=tr(s),w=Cr(s)===s,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),O=p||(w||!m?[Ys(s)]:J7(s)),S=g!=="none";!p&&S&&O.push(...rY(s,m,g,P));const E=[s,...O],C=await l.detectOverflow(t,h),N=[];let D=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&N.push(C[b]),d){const k=Z7(o,a,P);N.push(C[k[0]],C[k[1]])}if(D=[...D,{placement:o,overflows:N}],!N.every(k=>k<=0)){var $,_;const k=((($=i.flip)==null?void 0:$.index)||0)+1,V=E[k];if(V&&(!(d==="alignment"?x!==tr(V):!1)||D.every(T=>tr(T.placement)===x?T.overflows[0]>0:!0)))return{data:{index:k,overflows:D},reset:{placement:V}};let B=(_=D.filter(K=>K.overflows[0]<=0).sort((K,T)=>K.overflows[1]-T.overflows[1])[0])==null?void 0:_.placement;if(!B)switch(v){case"bestFit":{var M;const K=(M=D.filter(T=>{if(S){const I=tr(T.placement);return I===x||I==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(I=>I>0).reduce((I,G)=>I+G,0)]).sort((T,I)=>T[1]-I[1])[0])==null?void 0:M[0];K&&(B=K);break}case"initialPlacement":B=s;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Ow(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ew(e){return G7.some(t=>e[t]>=0)}const lY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Er(e,t);switch(o){case"referenceHidden":{const a=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=Ow(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ew(s)}}}case"escaped":{const a=await n.detectOverflow(t,{...i,altBoundary:!0}),s=Ow(a,r.floating);return{data:{escapedOffsets:s,escaped:Ew(s)}}}default:return{}}}}},uA=new Set(["left","top"]);async function cY(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Cr(r),s=No(r),l=tr(r)==="y",c=uA.has(a)?-1:1,u=i&&l?-1:1,d=Er(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(v=s==="end"?g*-1:g),l?{x:v*u,y:p*c}:{x:p*c,y:v*u}}const uY=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await cY(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},dY=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...c}=Er(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=tr(Cr(o)),v=dm(p);let g=u[v],m=u[p];if(a){const b=v==="y"?"top":"left",x=v==="y"?"bottom":"right",w=g+d[b],P=g-d[x];g=Tf(w,g,P)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=m+d[b],P=m-d[x];m=Tf(w,m,P)}const h=l.fn({...t,[v]:g,[p]:m});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[v]:a,[p]:s}}}}}},fY=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Er(e,t),u={x:r,y:n},d=tr(o),p=dm(d);let v=u[p],g=u[d];const m=Er(s,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=p==="y"?"height":"width",P=i.reference[p]-i.floating[w]+h.mainAxis,O=i.reference[p]+i.reference[w]-h.mainAxis;v<P?v=P:v>O&&(v=O)}if(c){var b,x;const w=p==="y"?"width":"height",P=uA.has(Cr(o)),O=i.reference[d]-i.floating[w]+(P&&((b=a.offset)==null?void 0:b[d])||0)+(P?0:h.crossAxis),S=i.reference[d]+i.reference[w]+(P?0:((x=a.offset)==null?void 0:x[d])||0)-(P?h.crossAxis:0);g<O?g=O:g>S&&(g=S)}return{[p]:v,[d]:g}}}},pY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Er(e,t),u=await a.detectOverflow(t,c),d=Cr(o),p=No(o),v=tr(o)==="y",{width:g,height:m}=i.floating;let h,b;d==="top"||d==="bottom"?(h=d,b=p===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,h=p==="end"?"top":"bottom");const x=m-u.top-u.bottom,w=g-u.left-u.right,P=Xr(m-u[h],x),O=Xr(g-u[b],w),S=!t.middlewareData.shift;let E=P,C=O;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=x),S&&!p){const D=Pt(u.left,0),$=Pt(u.right,0),_=Pt(u.top,0),M=Pt(u.bottom,0);v?C=g-2*(D!==0||$!==0?D+$:Pt(u.left,u.right)):E=m-2*(_!==0||M!==0?_+M:Pt(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:E});const N=await a.getDimensions(s.floating);return g!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function sc(){return typeof window<"u"}function Mo(e){return dA(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ur(e){var t;return(t=(dA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dA(e){return sc()?e instanceof Node||e instanceof Ct(e).Node:!1}function Wt(e){return sc()?e instanceof Element||e instanceof Ct(e).Element:!1}function lr(e){return sc()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function Cw(e){return!sc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}const vY=new Set(["inline","contents"]);function Gi(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!vY.has(o)}const mY=new Set(["table","td","th"]);function hY(e){return mY.has(Mo(e))}const gY=[":popover-open",":modal"];function lc(e){return gY.some(t=>{try{return e.matches(t)}catch{return!1}})}const yY=["transform","translate","scale","rotate","perspective"],bY=["transform","translate","scale","rotate","perspective","filter"],xY=["paint","layout","strict","content"];function vm(e){const t=mm(),r=Wt(e)?Kt(e):e;return yY.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)||bY.some(n=>(r.willChange||"").includes(n))||xY.some(n=>(r.contain||"").includes(n))}function wY(e){let t=Zr(e);for(;lr(t)&&!ho(t);){if(vm(t))return t;if(lc(t))return null;t=Zr(t)}return null}function mm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const PY=new Set(["html","body","#document"]);function ho(e){return PY.has(Mo(e))}function Kt(e){return Ct(e).getComputedStyle(e)}function cc(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zr(e){if(Mo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cw(e)&&e.host||ur(e);return Cw(t)?t.host:t}function fA(e){const t=Zr(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:lr(t)&&Gi(t)?t:fA(t)}function pi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=fA(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Ct(o);if(i){const s=Nf(a);return t.concat(a,a.visualViewport||[],Gi(o)?o:[],s&&r?pi(s):[])}return t.concat(o,pi(o,[],r))}function Nf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pA(e){const t=Kt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=lr(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=qs(r)!==i||qs(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function hm(e){return Wt(e)?e:e.contextElement}function so(e){const t=hm(e);if(!lr(t))return nr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=pA(t);let a=(i?qs(r.width):r.width)/n,s=(i?qs(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const SY=nr(0);function vA(e){const t=Ct(e);return!mm()||!t.visualViewport?SY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function OY(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ct(e)?!1:t}function In(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=hm(e);let a=nr(1);t&&(n?Wt(n)&&(a=so(n)):a=so(e));const s=OY(i,r,n)?vA(i):nr(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const p=Ct(i),v=n&&Wt(n)?Ct(n):n;let g=p,m=Nf(g);for(;m&&n&&v!==g;){const h=so(m),b=m.getBoundingClientRect(),x=Kt(m),w=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*h.x,P=b.top+(m.clientTop+parseFloat(x.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=w,c+=P,g=Ct(m),m=Nf(g)}}return Xs({width:u,height:d,x:l,y:c})}function uc(e,t){const r=cc(e).scrollLeft;return t?t.left+r:In(ur(e)).left+r}function mA(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-uc(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function EY(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=ur(n),s=t?lc(t.floating):!1;if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=nr(1);const u=nr(0),d=lr(n);if((d||!d&&!i)&&((Mo(n)!=="body"||Gi(a))&&(l=cc(n)),lr(n))){const v=In(n);c=so(n),u.x=v.x+n.clientLeft,u.y=v.y+n.clientTop}const p=a&&!d&&!i?mA(a,l):nr(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function CY(e){return Array.from(e.getClientRects())}function AY(e){const t=ur(e),r=cc(e),n=e.ownerDocument.body,o=Pt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Pt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+uc(e);const s=-r.scrollTop;return Kt(n).direction==="rtl"&&(a+=Pt(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const Aw=25;function _Y(e,t){const r=Ct(e),n=ur(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=mm();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=uc(n);if(c<=0){const u=n.ownerDocument,d=u.body,p=getComputedStyle(d),v=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(n.clientWidth-d.clientWidth-v);g<=Aw&&(i-=g)}else c<=Aw&&(i+=c);return{width:i,height:a,x:s,y:l}}const TY=new Set(["absolute","fixed"]);function jY(e,t){const r=In(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=lr(e)?so(e):nr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:a,height:s,x:l,y:c}}function _w(e,t,r){let n;if(t==="viewport")n=_Y(e,r);else if(t==="document")n=AY(ur(e));else if(Wt(t))n=jY(t,r);else{const o=vA(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xs(n)}function hA(e,t){const r=Zr(e);return r===t||!Wt(r)||ho(r)?!1:Kt(r).position==="fixed"||hA(r,t)}function NY(e,t){const r=t.get(e);if(r)return r;let n=pi(e,[],!1).filter(s=>Wt(s)&&Mo(s)!=="body"),o=null;const i=Kt(e).position==="fixed";let a=i?Zr(e):e;for(;Wt(a)&&!ho(a);){const s=Kt(a),l=vm(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&TY.has(o.position)||Gi(a)&&!l&&hA(e,a))?n=n.filter(u=>u!==a):o=s,a=Zr(a)}return t.set(e,n),n}function MY(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?lc(t)?[]:NY(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,u)=>{const d=_w(t,u,o);return c.top=Pt(d.top,c.top),c.right=Xr(d.right,c.right),c.bottom=Xr(d.bottom,c.bottom),c.left=Pt(d.left,c.left),c},_w(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function IY(e){const{width:t,height:r}=pA(e);return{width:t,height:r}}function kY(e,t,r){const n=lr(t),o=ur(t),i=r==="fixed",a=In(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=nr(0);function c(){l.x=uc(o)}if(n||!n&&!i)if((Mo(t)!=="body"||Gi(o))&&(s=cc(t)),n){const v=In(t,!0,i,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=o&&!n&&!i?mA(o,s):nr(0),d=a.left+s.scrollLeft-l.x-u.x,p=a.top+s.scrollTop-l.y-u.y;return{x:d,y:p,width:a.width,height:a.height}}function gd(e){return Kt(e).position==="static"}function Tw(e,t){if(!lr(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ur(e)===r&&(r=r.ownerDocument.body),r}function gA(e,t){const r=Ct(e);if(lc(e))return r;if(!lr(e)){let o=Zr(e);for(;o&&!ho(o);){if(Wt(o)&&!gd(o))return o;o=Zr(o)}return r}let n=Tw(e,t);for(;n&&hY(n)&&gd(n);)n=Tw(n,t);return n&&ho(n)&&gd(n)&&!vm(n)?r:n||wY(e)||r}const RY=async function(e){const t=this.getOffsetParent||gA,r=this.getDimensions,n=await r(e.floating);return{reference:kY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function DY(e){return Kt(e).direction==="rtl"}const $Y={convertOffsetParentRelativeRectToViewportRelativeRect:EY,getDocumentElement:ur,getClippingRect:MY,getOffsetParent:gA,getElementRects:RY,getClientRects:CY,getDimensions:IY,getScale:so,isElement:Wt,isRTL:DY};function yA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LY(e,t){let r=null,n;const o=ur(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:v}=c;if(s||t(),!p||!v)return;const g=Ra(d),m=Ra(o.clientWidth-(u+p)),h=Ra(o.clientHeight-(d+v)),b=Ra(u),w={rootMargin:-g+"px "+-m+"px "+-h+"px "+-b+"px",threshold:Pt(0,Xr(1,l))||1};let P=!0;function O(S){const E=S[0].intersectionRatio;if(E!==l){if(!P)return a();E?a(!1,E):n=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!yA(c,e.getBoundingClientRect())&&a(),P=!1}try{r=new IntersectionObserver(O,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(O,w)}r.observe(e)}return a(!0),i}function FY(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=hm(e),u=o||i?[...c?pi(c):[],...pi(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=c&&s?LY(c,r):null;let p=-1,v=null;a&&(v=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),r()}),c&&!l&&v.observe(c),v.observe(t));let g,m=l?In(e):null;l&&h();function h(){const b=In(e);m&&!yA(m,b)&&r(),m=b,g=requestAnimationFrame(h)}return r(),()=>{var b;u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d?.(),(b=v)==null||b.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const zY=uY,BY=dY,VY=sY,WY=pY,KY=lY,jw=aY,UY=fY,HY=(e,t,r)=>{const n=new Map,o={platform:$Y,...r},i={...o.platform,_c:n};return iY(e,t,{...o,platform:i})};var GY=typeof document<"u",qY=function(){},Ga=GY?A.useLayoutEffect:qY;function Zs(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,o;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(!Zs(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Zs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function bA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nw(e,t){const r=bA(e);return Math.round(t*r)/r}function yd(e){const t=f.useRef(e);return Ga(()=>{t.current=e}),t}function YY(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=f.useState(n);Zs(p,n)||v(n);const[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useCallback(T=>{T!==S.current&&(S.current=T,m(T))},[]),w=f.useCallback(T=>{T!==E.current&&(E.current=T,b(T))},[]),P=i||g,O=a||h,S=f.useRef(null),E=f.useRef(null),C=f.useRef(u),N=l!=null,D=yd(l),$=yd(o),_=yd(c),M=f.useCallback(()=>{if(!S.current||!E.current)return;const T={placement:t,strategy:r,middleware:p};$.current&&(T.platform=$.current),HY(S.current,E.current,T).then(I=>{const G={...I,isPositioned:_.current!==!1};k.current&&!Zs(C.current,G)&&(C.current=G,yi.flushSync(()=>{d(G)}))})},[p,t,r,$,_]);Ga(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[c]);const k=f.useRef(!1);Ga(()=>(k.current=!0,()=>{k.current=!1}),[]),Ga(()=>{if(P&&(S.current=P),O&&(E.current=O),P&&O){if(D.current)return D.current(P,O,M);M()}},[P,O,M,D,N]);const V=f.useMemo(()=>({reference:S,floating:E,setReference:x,setFloating:w}),[x,w]),B=f.useMemo(()=>({reference:P,floating:O}),[P,O]),K=f.useMemo(()=>{const T={position:r,left:0,top:0};if(!B.floating)return T;const I=Nw(B.floating,u.x),G=Nw(B.floating,u.y);return s?{...T,transform:"translate("+I+"px, "+G+"px)",...bA(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:I,top:G}},[r,s,B.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:M,refs:V,elements:B,floatingStyles:K}),[u,M,V,B,K])}const XY=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?jw({element:n.current,padding:o}).fn(r):{}:n?jw({element:n,padding:o}).fn(r):{}}}},ZY=(e,t)=>({...zY(e),options:[e,t]}),JY=(e,t)=>({...BY(e),options:[e,t]}),QY=(e,t)=>({...UY(e),options:[e,t]}),eX=(e,t)=>({...VY(e),options:[e,t]}),tX=(e,t)=>({...WY(e),options:[e,t]}),rX=(e,t)=>({...KY(e),options:[e,t]}),nX=(e,t)=>({...XY(e),options:[e,t]});var oX="Arrow",xA=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return y.jsx(Q.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});xA.displayName=oX;var iX=xA,gm="Popper",[wA,rn]=Xe(gm),[aX,PA]=wA(gm),SA=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return y.jsx(aX,{scope:t,anchor:n,onAnchorChange:o,children:r})};SA.displayName=gm;var OA="PopperAnchor",EA=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=PA(OA,r),a=f.useRef(null),s=ie(t,a),l=f.useRef(null);return f.useEffect(()=>{const c=l.current;l.current=n?.current||a.current,c!==l.current&&i.onAnchorChange(l.current)}),n?null:y.jsx(Q.div,{...o,ref:s})});EA.displayName=OA;var ym="PopperContent",[sX,lX]=wA(ym),CA=f.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...m}=e,h=PA(ym,r),[b,x]=f.useState(null),w=ie(t,W=>x(W)),[P,O]=f.useState(null),S=ic(P),E=S?.width??0,C=S?.height??0,N=n+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},$=Array.isArray(c)?c:[c],_=$.length>0,M={padding:D,boundary:$.filter(uX),altBoundary:_},{refs:k,floatingStyles:V,placement:B,isPositioned:K,middlewareData:T}=YY({strategy:"fixed",placement:N,whileElementsMounted:(...W)=>FY(...W,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[ZY({mainAxis:o+C,alignmentAxis:a}),l&&JY({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?QY():void 0,...M}),l&&eX({...M}),tX({...M,apply:({elements:W,rects:ue,availableWidth:L,availableHeight:H})=>{const{width:z,height:F}=ue.reference,fe=W.floating.style;fe.setProperty("--radix-popper-available-width",`${L}px`),fe.setProperty("--radix-popper-available-height",`${H}px`),fe.setProperty("--radix-popper-anchor-width",`${z}px`),fe.setProperty("--radix-popper-anchor-height",`${F}px`)}}),P&&nX({element:P,padding:s}),dX({arrowWidth:E,arrowHeight:C}),p&&rX({strategy:"referenceHidden",...M})]}),[I,G]=TA(B),ee=st(g);qe(()=>{K&&ee?.()},[K,ee]);const re=T.arrow?.x,oe=T.arrow?.y,ne=T.arrow?.centerOffset!==0,[le,Ee]=f.useState();return qe(()=>{b&&Ee(window.getComputedStyle(b).zIndex)},[b]),y.jsx("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:K?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[T.transformOrigin?.x,T.transformOrigin?.y].join(" "),...T.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(sX,{scope:r,placedSide:I,onArrowChange:O,arrowX:re,arrowY:oe,shouldHideArrow:ne,children:y.jsx(Q.div,{"data-side":I,"data-align":G,...m,ref:w,style:{...m.style,animation:K?void 0:"none"}})})})});CA.displayName=ym;var AA="PopperArrow",cX={top:"bottom",right:"left",bottom:"top",left:"right"},_A=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=lX(AA,n),a=cX[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(iX,{...o,ref:r,style:{...o.style,display:"block"}})})});_A.displayName=AA;function uX(e){return e!==null}var dX=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,u]=TA(r),d={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+s/2,v=(o.arrow?.y??0)+l/2;let g="",m="";return c==="bottom"?(g=a?d:`${p}px`,m=`${-l}px`):c==="top"?(g=a?d:`${p}px`,m=`${n.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=a?d:`${v}px`):c==="left"&&(g=`${n.floating.width+l}px`,m=a?d:`${v}px`),{data:{x:g,y:m}}}});function TA(e){const[t,r="center"]=e.split("-");return[t,r]}var qi=SA,Yi=EA,dc=CA,fc=_A,bd="rovingFocusGroup.onEntryFocus",fX={bubbles:!1,cancelable:!0},Xi="RovingFocusGroup",[Mf,jA,pX]=bi(Xi),[vX,pc]=Xe(Xi,[pX]),[mX,hX]=vX(Xi),NA=f.forwardRef((e,t)=>y.jsx(Mf.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Mf.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(gX,{...e,ref:t})})}));NA.displayName=Xi;var gX=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,p=f.useRef(null),v=ie(t,p),g=xi(i),[m,h]=at({prop:a,defaultProp:s??null,onChange:l,caller:Xi}),[b,x]=f.useState(!1),w=st(c),P=jA(r),O=f.useRef(!1),[S,E]=f.useState(0);return f.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(bd,w),()=>C.removeEventListener(bd,w)},[w]),y.jsx(mX,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:m,onItemFocus:f.useCallback(C=>h(C),[h]),onItemShiftTab:f.useCallback(()=>x(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(C=>C+1),[]),onFocusableItemRemove:f.useCallback(()=>E(C=>C-1),[]),children:y.jsx(Q.div,{tabIndex:b||S===0?-1:0,"data-orientation":n,...d,ref:v,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{O.current=!0}),onFocus:U(e.onFocus,C=>{const N=!O.current;if(C.target===C.currentTarget&&N&&!b){const D=new CustomEvent(bd,fX);if(C.currentTarget.dispatchEvent(D),!D.defaultPrevented){const $=P().filter(B=>B.focusable),_=$.find(B=>B.active),M=$.find(B=>B.id===m),V=[_,M,...$].filter(Boolean).map(B=>B.ref.current);kA(V,u)}}O.current=!1}),onBlur:U(e.onBlur,()=>x(!1))})})}),MA="RovingFocusGroupItem",IA=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:a,...s}=e,l=vt(),c=i||l,u=hX(MA,r),d=u.currentTabStopId===c,p=jA(r),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:m}=u;return f.useEffect(()=>{if(n)return v(),()=>g()},[n,v,g]),y.jsx(Mf.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:y.jsx(Q.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:U(e.onMouseDown,h=>{n?u.onItemFocus(c):h.preventDefault()}),onFocus:U(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:U(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const b=xX(h,u.orientation,u.dir);if(b!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let w=p().filter(P=>P.focusable).map(P=>P.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const P=w.indexOf(h.currentTarget);w=u.loop?wX(w,P+1):w.slice(P+1)}setTimeout(()=>kA(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});IA.displayName=MA;var yX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bX(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xX(e,t,r){const n=bX(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return yX[n]}function kA(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function wX(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var RA=NA,DA=IA;function PX(e){const t=SX(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(EX);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function SX(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=AX(o),s=CX(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var OX=Symbol("radix.slottable");function EX(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===OX}function CX(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function AX(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 If=["Enter"," "],_X=["ArrowDown","PageUp","Home"],$A=["ArrowUp","PageDown","End"],TX=[..._X,...$A],jX={ltr:[...If,"ArrowRight"],rtl:[...If,"ArrowLeft"]},NX={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Zi="Menu",[vi,MX,IX]=bi(Zi),[Un,vc]=Xe(Zi,[IX,rn,pc]),Ji=rn(),LA=pc(),[FA,nn]=Un(Zi),[kX,Qi]=Un(Zi),zA=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:a=!0}=e,s=Ji(t),[l,c]=f.useState(null),u=f.useRef(!1),d=st(i),p=xi(o);return f.useEffect(()=>{const v=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),y.jsx(qi,{...s,children:y.jsx(FA,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:y.jsx(kX,{scope:t,onClose:f.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:p,modal:a,children:n})})})};zA.displayName=Zi;var RX="MenuAnchor",bm=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Ji(r);return y.jsx(Yi,{...o,...n,ref:t})});bm.displayName=RX;var xm="MenuPortal",[DX,BA]=Un(xm,{forceMount:void 0}),VA=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=nn(xm,t);return y.jsx(DX,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};VA.displayName=xm;var kt="MenuContent",[$X,wm]=Un(kt),WA=f.forwardRef((e,t)=>{const r=BA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=Qi(kt,e.__scopeMenu);return y.jsx(vi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(vi.Slot,{scope:e.__scopeMenu,children:a.modal?y.jsx(LX,{...o,ref:t}):y.jsx(FX,{...o,ref:t})})})})}),LX=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu),n=f.useRef(null),o=ie(t,n);return f.useEffect(()=>{const i=n.current;if(i)return ll(i)},[]),y.jsx(Pm,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),FX=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu);return y.jsx(Pm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),zX=PX("MenuContent.ScrollLock"),Pm=f.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,onDismiss:v,disableOutsideScroll:g,...m}=e,h=nn(kt,r),b=Qi(kt,r),x=Ji(r),w=LA(r),P=MX(r),[O,S]=f.useState(null),E=f.useRef(null),C=ie(t,E,h.onContentChange),N=f.useRef(0),D=f.useRef(""),$=f.useRef(0),_=f.useRef(null),M=f.useRef("right"),k=f.useRef(0),V=g?Pi:f.Fragment,B=g?{as:zX,allowPinchZoom:!0}:void 0,K=I=>{const G=D.current+I,ee=P().filter(W=>!W.disabled),re=document.activeElement,oe=ee.find(W=>W.ref.current===re)?.textValue,ne=ee.map(W=>W.textValue),le=JX(ne,G,oe),Ee=ee.find(W=>W.textValue===le)?.ref.current;(function W(ue){D.current=ue,window.clearTimeout(N.current),ue!==""&&(N.current=window.setTimeout(()=>W(""),1e3))})(G),Ee&&setTimeout(()=>Ee.focus())};f.useEffect(()=>()=>window.clearTimeout(N.current),[]),al();const T=f.useCallback(I=>M.current===_.current?.side&&eZ(I,_.current?.area),[]);return y.jsx($X,{scope:r,searchRef:D,onItemEnter:f.useCallback(I=>{T(I)&&I.preventDefault()},[T]),onItemLeave:f.useCallback(I=>{T(I)||(E.current?.focus(),S(null))},[T]),onTriggerLeave:f.useCallback(I=>{T(I)&&I.preventDefault()},[T]),pointerGraceTimerRef:$,onPointerGraceIntentChange:f.useCallback(I=>{_.current=I},[]),children:y.jsx(V,{...B,children:y.jsx(wi,{asChild:!0,trapped:o,onMountAutoFocus:U(i,I=>{I.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,onDismiss:v,children:y.jsx(RA,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:O,onCurrentTabStopIdChange:S,onEntryFocus:U(l,I=>{b.isUsingKeyboardRef.current||I.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(dc,{role:"menu","aria-orientation":"vertical","data-state":a_(h.open),"data-radix-menu-content":"",dir:b.dir,...x,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:U(m.onKeyDown,I=>{const ee=I.target.closest("[data-radix-menu-content]")===I.currentTarget,re=I.ctrlKey||I.altKey||I.metaKey,oe=I.key.length===1;ee&&(I.key==="Tab"&&I.preventDefault(),!re&&oe&&K(I.key));const ne=E.current;if(I.target!==ne||!TX.includes(I.key))return;I.preventDefault();const Ee=P().filter(W=>!W.disabled).map(W=>W.ref.current);$A.includes(I.key)&&Ee.reverse(),XX(Ee)}),onBlur:U(e.onBlur,I=>{I.currentTarget.contains(I.target)||(window.clearTimeout(N.current),D.current="")}),onPointerMove:U(e.onPointerMove,mi(I=>{const G=I.target,ee=k.current!==I.clientX;if(I.currentTarget.contains(G)&&ee){const re=I.clientX>k.current?"right":"left";M.current=re,k.current=I.clientX}}))})})})})})})});WA.displayName=kt;var BX="MenuGroup",Sm=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"group",...n,ref:t})});Sm.displayName=BX;var VX="MenuLabel",KA=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});KA.displayName=VX;var Js="MenuItem",Mw="menu.itemSelect",mc=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=f.useRef(null),a=Qi(Js,e.__scopeMenu),s=wm(Js,e.__scopeMenu),l=ie(t,i),c=f.useRef(!1),u=()=>{const d=i.current;if(!r&&d){const p=new CustomEvent(Mw,{bubbles:!0,cancelable:!0});d.addEventListener(Mw,v=>n?.(v),{once:!0}),Uf(d,p),p.defaultPrevented?c.current=!1:a.onClose()}};return y.jsx(UA,{...o,ref:l,disabled:r,onClick:U(e.onClick,u),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:U(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:U(e.onKeyDown,d=>{const p=s.searchRef.current!=="";r||p&&d.key===" "||If.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});mc.displayName=Js;var UA=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,a=wm(Js,r),s=LA(r),l=f.useRef(null),c=ie(t,l),[u,d]=f.useState(!1),[p,v]=f.useState("");return f.useEffect(()=>{const g=l.current;g&&v((g.textContent??"").trim())},[i.children]),y.jsx(vi.ItemSlot,{scope:r,disabled:n,textValue:o??p,children:y.jsx(DA,{asChild:!0,...s,focusable:!n,children:y.jsx(Q.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:c,onPointerMove:U(e.onPointerMove,mi(g=>{n?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:U(e.onPointerLeave,mi(g=>a.onItemLeave(g))),onFocus:U(e.onFocus,()=>d(!0)),onBlur:U(e.onBlur,()=>d(!1))})})})}),WX="MenuCheckboxItem",HA=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return y.jsx(ZA,{scope:e.__scopeMenu,checked:r,children:y.jsx(mc,{role:"menuitemcheckbox","aria-checked":Qs(r)?"mixed":r,...o,ref:t,"data-state":Cm(r),onSelect:U(o.onSelect,()=>n?.(Qs(r)?!0:!r),{checkForDefaultPrevented:!1})})})});HA.displayName=WX;var GA="MenuRadioGroup",[KX,UX]=Un(GA,{value:void 0,onValueChange:()=>{}}),qA=f.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=st(n);return y.jsx(KX,{scope:e.__scopeMenu,value:r,onValueChange:i,children:y.jsx(Sm,{...o,ref:t})})});qA.displayName=GA;var YA="MenuRadioItem",XA=f.forwardRef((e,t)=>{const{value:r,...n}=e,o=UX(YA,e.__scopeMenu),i=r===o.value;return y.jsx(ZA,{scope:e.__scopeMenu,checked:i,children:y.jsx(mc,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":Cm(i),onSelect:U(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});XA.displayName=YA;var Om="MenuItemIndicator",[ZA,HX]=Un(Om,{checked:!1}),JA=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=HX(Om,r);return y.jsx(lt,{present:n||Qs(i.checked)||i.checked===!0,children:y.jsx(Q.span,{...o,ref:t,"data-state":Cm(i.checked)})})});JA.displayName=Om;var GX="MenuSeparator",QA=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});QA.displayName=GX;var qX="MenuArrow",e_=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Ji(r);return y.jsx(fc,{...o,...n,ref:t})});e_.displayName=qX;var Em="MenuSub",[YX,t_]=Un(Em),r_=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=nn(Em,t),a=Ji(t),[s,l]=f.useState(null),[c,u]=f.useState(null),d=st(o);return f.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),y.jsx(qi,{...a,children:y.jsx(FA,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:y.jsx(YX,{scope:t,contentId:vt(),triggerId:vt(),trigger:s,onTriggerChange:l,children:r})})})};r_.displayName=Em;var qo="MenuSubTrigger",n_=f.forwardRef((e,t)=>{const r=nn(qo,e.__scopeMenu),n=Qi(qo,e.__scopeMenu),o=t_(qo,e.__scopeMenu),i=wm(qo,e.__scopeMenu),a=f.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=f.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return f.useEffect(()=>u,[u]),f.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),y.jsx(bm,{asChild:!0,...c,children:y.jsx(UA,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":a_(r.open),...e,ref:cr(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:U(e.onPointerMove,mi(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:U(e.onPointerLeave,mi(d=>{u();const p=r.content?.getBoundingClientRect();if(p){const v=r.content?.dataset.side,g=v==="right",m=g?-5:5,h=p[g?"left":"right"],b=p[g?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:h,y:p.top},{x:b,y:p.top},{x:b,y:p.bottom},{x:h,y:p.bottom}],side:v}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:U(e.onKeyDown,d=>{const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||jX[n.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});n_.displayName=qo;var o_="MenuSubContent",i_=f.forwardRef((e,t)=>{const r=BA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=Qi(kt,e.__scopeMenu),s=t_(o_,e.__scopeMenu),l=f.useRef(null),c=ie(t,l);return y.jsx(vi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(vi.Slot,{scope:e.__scopeMenu,children:y.jsx(Pm,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{a.isUsingKeyboardRef.current&&l.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:U(e.onFocusOutside,u=>{u.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:U(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:U(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),p=NX[a.dir].includes(u.key);d&&p&&(i.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});i_.displayName=o_;function a_(e){return e?"open":"closed"}function Qs(e){return e==="indeterminate"}function Cm(e){return Qs(e)?"indeterminate":e?"checked":"unchecked"}function XX(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function ZX(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function JX(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=ZX(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function QX(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,u=s.y,d=l.x,p=l.y;u>n!=p>n&&r<(d-c)*(n-u)/(p-u)+c&&(o=!o)}return o}function eZ(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return QX(r,t)}function mi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var s_=zA,l_=bm,c_=VA,u_=WA,d_=Sm,f_=KA,p_=mc,v_=HA,m_=qA,h_=XA,g_=JA,y_=QA,b_=e_,x_=r_,w_=n_,P_=i_,Am="ContextMenu",[tZ]=Xe(Am,[vc]),ut=vc(),[rZ,S_]=tZ(Am),O_=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:o,modal:i=!0}=e,[a,s]=f.useState(!1),l=ut(t),c=st(n),u=f.useCallback(d=>{s(d),c(d)},[c]);return y.jsx(rZ,{scope:t,open:a,onOpenChange:u,modal:i,children:y.jsx(s_,{...l,dir:o,open:a,onOpenChange:u,modal:i,children:r})})};O_.displayName=Am;var E_="ContextMenuTrigger",C_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...o}=e,i=S_(E_,r),a=ut(r),s=f.useRef({x:0,y:0}),l=f.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),c=f.useRef(0),u=f.useCallback(()=>window.clearTimeout(c.current),[]),d=p=>{s.current={x:p.clientX,y:p.clientY},i.onOpenChange(!0)};return f.useEffect(()=>u,[u]),f.useEffect(()=>{n&&u()},[n,u]),y.jsxs(y.Fragment,{children:[y.jsx(l_,{...a,virtualRef:l}),y.jsx(Q.span,{"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:n?e.onContextMenu:U(e.onContextMenu,p=>{u(),d(p),p.preventDefault()}),onPointerDown:n?e.onPointerDown:U(e.onPointerDown,Da(p=>{u(),c.current=window.setTimeout(()=>d(p),700)})),onPointerMove:n?e.onPointerMove:U(e.onPointerMove,Da(u)),onPointerCancel:n?e.onPointerCancel:U(e.onPointerCancel,Da(u)),onPointerUp:n?e.onPointerUp:U(e.onPointerUp,Da(u))})]})});C_.displayName=E_;var nZ="ContextMenuPortal",A_=e=>{const{__scopeContextMenu:t,...r}=e,n=ut(t);return y.jsx(c_,{...n,...r})};A_.displayName=nZ;var __="ContextMenuContent",T_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=S_(__,r),i=ut(r),a=f.useRef(!1);return y.jsx(u_,{...i,...n,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),!s.defaultPrevented&&a.current&&s.preventDefault(),a.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),!s.defaultPrevented&&!o.modal&&(a.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});T_.displayName=__;var oZ="ContextMenuGroup",j_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(d_,{...o,...n,ref:t})});j_.displayName=oZ;var iZ="ContextMenuLabel",N_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(f_,{...o,...n,ref:t})});N_.displayName=iZ;var aZ="ContextMenuItem",M_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(p_,{...o,...n,ref:t})});M_.displayName=aZ;var sZ="ContextMenuCheckboxItem",I_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(v_,{...o,...n,ref:t})});I_.displayName=sZ;var lZ="ContextMenuRadioGroup",k_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(m_,{...o,...n,ref:t})});k_.displayName=lZ;var cZ="ContextMenuRadioItem",R_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(h_,{...o,...n,ref:t})});R_.displayName=cZ;var uZ="ContextMenuItemIndicator",D_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(g_,{...o,...n,ref:t})});D_.displayName=uZ;var dZ="ContextMenuSeparator",$_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(y_,{...o,...n,ref:t})});$_.displayName=dZ;var fZ="ContextMenuArrow",pZ=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(b_,{...o,...n,ref:t})});pZ.displayName=fZ;var L_="ContextMenuSub",F_=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:o,defaultOpen:i}=e,a=ut(t),[s,l]=at({prop:o,defaultProp:i??!1,onChange:n,caller:L_});return y.jsx(x_,{...a,open:s,onOpenChange:l,children:r})};F_.displayName=L_;var vZ="ContextMenuSubTrigger",z_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(w_,{...o,...n,ref:t})});z_.displayName=vZ;var mZ="ContextMenuSubContent",B_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(P_,{...o,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});B_.displayName=mZ;function Da(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var hZ=O_,gZ=C_,yZ=A_,bZ=T_,xZ=j_,wZ=N_,PZ=M_,SZ=I_,OZ=k_,EZ=R_,V_=D_,CZ=$_,AZ=F_,_Z=z_,TZ=B_;const jZ=hZ,NZ=gZ,MZ=xZ,W_=yZ,IZ=AZ,kZ=OZ,K_=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(_Z,{ref:o,className:R("text-body flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-[state=open]:bg-vanilla data-[state=open]:text-primary",t&&"pl-8",e),...n,children:[r,y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-auto h-4 w-4",children:y.jsx("path",{d:"m9 18 6-6-6-6"})})]}));K_.displayName="ContextMenuSubTrigger";const U_=f.forwardRef(({className:e,...t},r)=>y.jsx(TZ,{ref:r,className:R("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","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",e),...t}));U_.displayName="ContextMenuSubContent";const H_=f.forwardRef(({className:e,...t},r)=>y.jsx(W_,{children:y.jsx(bZ,{ref:r,className:R("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","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",e),...t})}));H_.displayName="ContextMenuContent";const G_=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(PZ,{ref:n,className:R("text-body relative flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",e),...r}));G_.displayName="ContextMenuItem";const q_=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(SZ,{ref:o,className:R("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),checked:r,...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(V_,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));q_.displayName="ContextMenuCheckboxItem";const Y_=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(EZ,{ref:n,className:R("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(V_,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:y.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));Y_.displayName="ContextMenuRadioItem";const X_=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(wZ,{ref:n,className:R("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));X_.displayName="ContextMenuLabel";const Z_=f.forwardRef(({className:e,...t},r)=>y.jsx(CZ,{ref:r,className:R("bg-border -mx-1 my-1 h-px",e),...t}));Z_.displayName="ContextMenuSeparator";const J_=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:R("text-small text-tertiary ml-auto tracking-widest",e),...t}));J_.displayName="ContextMenuShortcut";function RZ(e){const t=DZ(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(LZ);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function DZ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=zZ(o),s=FZ(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $Z=Symbol("radix.slottable");function LZ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$Z}function FZ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function zZ(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 hc="Popover",[Q_]=Xe(hc,[rn]),ea=rn(),[BZ,on]=Q_(hc),eT=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=ea(t),l=f.useRef(null),[c,u]=f.useState(!1),[d,p]=at({prop:n,defaultProp:o??!1,onChange:i,caller:hc});return y.jsx(qi,{...s,children:y.jsx(BZ,{scope:t,contentId:vt(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(v=>!v),[p]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>u(!0),[]),onCustomAnchorRemove:f.useCallback(()=>u(!1),[]),modal:a,children:r})})};eT.displayName=hc;var tT="PopoverAnchor",VZ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(tT,r),i=ea(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(a(),()=>s()),[a,s]),y.jsx(Yi,{...i,...n,ref:t})});VZ.displayName=tT;var rT="PopoverTrigger",nT=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(rT,r),i=ea(r),a=ie(t,o.triggerRef),s=y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lT(o.open),...n,ref:a,onClick:U(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:y.jsx(Yi,{asChild:!0,...i,children:s})});nT.displayName=rT;var _m="PopoverPortal",[WZ,KZ]=Q_(_m,{forceMount:void 0}),oT=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=on(_m,t);return y.jsx(WZ,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};oT.displayName=_m;var go="PopoverContent",iT=f.forwardRef((e,t)=>{const r=KZ(go,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=on(go,e.__scopePopover);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(HZ,{...o,ref:t}):y.jsx(GZ,{...o,ref:t})})});iT.displayName=go;var UZ=RZ("PopoverContent.RemoveScroll"),HZ=f.forwardRef((e,t)=>{const r=on(go,e.__scopePopover),n=f.useRef(null),o=ie(t,n),i=f.useRef(!1);return f.useEffect(()=>{const a=n.current;if(a)return ll(a)},[]),y.jsx(Pi,{as:UZ,allowPinchZoom:!0,children:y.jsx(aT,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,a=>{a.preventDefault(),i.current||r.triggerRef.current?.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:U(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),GZ=f.forwardRef((e,t)=>{const r=on(go,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(aT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;r.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),aT=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=on(go,r),v=ea(r);return al(),y.jsx(wi,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:y.jsx(dc,{"data-state":lT(p.open),role:"dialog",id:p.contentId,...v,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),sT="PopoverClose",qZ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(sT,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});qZ.displayName=sT;var YZ="PopoverArrow",XZ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ea(r);return y.jsx(fc,{...o,...n,ref:t})});XZ.displayName=YZ;function lT(e){return e?"open":"closed"}var cT=eT,uT=nT,dT=oT,fT=iT;const ZZ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Iw=["January","February","March","April","May","June","July","August","September","October","November","December"];function kw(e,t){return new Date(e,t+1,0).getDate()}function JZ(e,t){return new Date(e,t,1).getDay()}function pT(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function QZ(e){return pT(new Date,e)}function Rw(e,t="yyyy-MM-dd"){if(!e)return"";const r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),o=e.getFullYear();return t.replace("yyyy",String(o)).replace("MM",r).replace("dd",n)}const vT=te(["bg-card text-body text-primary placeholder:text-tertiary","flex h-10 w-full items-center justify-between rounded-md border px-3 py-2","font-sans transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:"border-border",error:"border-error"}},defaultVariants:{variant:"default"}}),mT=te(["inline-flex h-9 w-9 items-center justify-center rounded-full text-sm","transition-colors focus-visible:outline-none","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-1"],{variants:{state:{default:"hover:bg-sunflower text-primary",selected:"bg-sunflower text-primary font-medium",today:"hover:bg-sunflower border-sunflower text-primary border",disabled:"text-tertiary cursor-not-allowed opacity-50",outside:"text-tertiary opacity-50"}},defaultVariants:{state:"default"}}),hT=f.forwardRef(({value:e,onChange:t,placeholder:r="Select a date",format:n="MM/dd/yyyy",minDate:o,maxDate:i,disabled:a=!1,variant:s,className:l,id:c,name:u,"aria-label":d,"aria-describedby":p},v)=>{const[g,m]=f.useState(!1),[h,b]=f.useState(()=>e||new Date),x=h.getFullYear(),w=h.getMonth(),P=kw(x,w),O=JZ(x,w),S=f.useMemo(()=>{const _=[],M=w===0?11:w-1,k=w===0?x-1:x,V=kw(k,M);for(let I=O-1;I>=0;I--)_.push({date:new Date(k,M,V-I),isOutside:!0});for(let I=1;I<=P;I++)_.push({date:new Date(x,w,I),isOutside:!1});const B=42-_.length,K=w===11?0:w+1,T=w===11?x+1:x;for(let I=1;I<=B;I++)_.push({date:new Date(T,K,I),isOutside:!0});return _},[x,w,P,O]),E=()=>{b(new Date(x,w-1,1))},C=()=>{b(new Date(x,w+1,1))},N=_=>{t?.(_),m(!1)},D=_=>!!(o&&_<new Date(o.setHours(0,0,0,0))||i&&_>new Date(i.setHours(23,59,59,999))),$=(_,M)=>D(_)?"disabled":M?"outside":e&&pT(e,_)?"selected":QZ(_)?"today":"default";return f.useEffect(()=>{e&&b(e)},[e]),y.jsxs(cT,{open:g,onOpenChange:m,children:[y.jsx(uT,{asChild:!0,children:y.jsxs("button",{ref:v,id:c,type:"button",disabled:a,className:R(vT({variant:s}),l),"aria-label":d||"Choose date","aria-describedby":p,"aria-haspopup":"dialog","aria-expanded":g,children:[y.jsx("span",{className:R("truncate",!e&&"text-tertiary"),children:e?Rw(e,n):r}),y.jsx(s0,{className:"text-tertiary h-4 w-4 shrink-0"}),u&&y.jsx("input",{type:"hidden",name:u,value:e?Rw(e,"yyyy-MM-dd"):""})]})}),y.jsx(dT,{children:y.jsxs(fT,{className:R("bg-main border-border z-50 w-auto rounded-lg border p-4 shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=top]:slide-in-from-bottom-2"),sideOffset:4,align:"start",children:[y.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[y.jsx("button",{type:"button",onClick:E,className:R("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Previous month",children:y.jsx(ol,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Iw[w]," ",x]}),y.jsx("button",{type:"button",onClick:C,className:R("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Next month",children:y.jsx(il,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:ZZ.map(_=>y.jsx("div",{className:"text-tertiary text-center text-xs font-medium",children:_},_))}),y.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid","aria-label":`${Iw[w]} ${x}`,children:S.map(({date:_,isOutside:M},k)=>{const V=$(_,M),B=V==="disabled";return y.jsx("button",{type:"button",onClick:()=>!B&&N(_),disabled:B,className:mT({state:V}),"aria-label":_.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":V==="selected",tabIndex:M?-1:0,children:_.getDate()},k)})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsx("button",{type:"button",onClick:()=>N(new Date),className:R("text-sunflower hover:text-sunflower-hover w-full text-center text-sm font-medium","transition-colors focus-visible:underline focus-visible:outline-none"),children:"Today"})})]})})]})});hT.displayName="DatePicker";const eJ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Dw=["January","February","March","April","May","June","July","August","September","October","November","December"];function $w(e,t){return new Date(e,t+1,0).getDate()}function tJ(e,t){return new Date(e,t,1).getDay()}function gT(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function rJ(e){return gT(new Date,e)}function nJ(e,t="yyyy-MM-dd",r=!0){if(!e)return"";const n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),i=e.getFullYear(),a=e.getHours(),s=a%12||12,l=r?String(a).padStart(2,"0"):String(s).padStart(2,"0"),c=String(e.getMinutes()).padStart(2,"0"),u=a>=12?"PM":"AM";return t.replace("yyyy",String(i)).replace("MM",n).replace("dd",o).replace("HH",String(a).padStart(2,"0")).replace("hh",l).replace("mm",c).replace("a",u)}function Lw(e){const t=e.match(/^(\d{1,2}):(\d{2})$/);return t&&t[1]&&t[2]?{hours:Math.min(23,Math.max(0,parseInt(t[1],10))),minutes:Math.min(59,Math.max(0,parseInt(t[2],10)))}:{hours:0,minutes:0}}const yT=te(["bg-card text-body text-primary placeholder:text-tertiary","flex h-10 w-full items-center justify-between rounded-md border px-3 py-2","font-sans transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:"border-border",error:"border-error"}},defaultVariants:{variant:"default"}}),bT=te(["inline-flex h-9 w-9 items-center justify-center rounded-full text-sm","transition-colors focus-visible:outline-none","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-1"],{variants:{state:{default:"hover:bg-sunflower text-primary",selected:"bg-sunflower text-primary font-medium",today:"hover:bg-sunflower border-sunflower text-primary border",disabled:"text-tertiary cursor-not-allowed opacity-50",outside:"text-tertiary opacity-50"}},defaultVariants:{state:"default"}}),xT=f.forwardRef(({value:e,onChange:t,placeholder:r="Select date and time",format:n="yyyy-MM-dd HH:mm",minDate:o,maxDate:i,disabled:a=!1,variant:s,className:l,id:c,name:u,use24Hour:d=!0,minuteStep:p=1,"aria-label":v,"aria-describedby":g},m)=>{const[h,b]=f.useState(!1),[x,w]=f.useState(()=>e||new Date),[P,O]=f.useState(()=>e?`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`:"12:00"),S=x.getFullYear(),E=x.getMonth(),C=$w(S,E),N=tJ(S,E),D=f.useMemo(()=>{const T=[],I=E===0?11:E-1,G=E===0?S-1:S,ee=$w(G,I);for(let le=N-1;le>=0;le--)T.push({date:new Date(G,I,ee-le),isOutside:!0});for(let le=1;le<=C;le++)T.push({date:new Date(S,E,le),isOutside:!1});const re=42-T.length,oe=E===11?0:E+1,ne=E===11?S+1:S;for(let le=1;le<=re;le++)T.push({date:new Date(ne,oe,le),isOutside:!0});return T},[S,E,C,N]),$=()=>{w(new Date(S,E-1,1))},_=()=>{w(new Date(S,E+1,1))},M=T=>{const{hours:I,minutes:G}=Lw(P),ee=new Date(T.getFullYear(),T.getMonth(),T.getDate(),I,G);t?.(ee)},k=T=>{const I=T.target.value;if(O(I),e){const{hours:G,minutes:ee}=Lw(I),re=new Date(e);re.setHours(G,ee),t?.(re)}},V=()=>{const T=new Date;O(`${String(T.getHours()).padStart(2,"0")}:${String(T.getMinutes()).padStart(2,"0")}`),t?.(T),b(!1)},B=T=>!!(o&&T<new Date(o.setHours(0,0,0,0))||i&&T>new Date(i.setHours(23,59,59,999))),K=(T,I)=>B(T)?"disabled":I?"outside":e&&gT(e,T)?"selected":rJ(T)?"today":"default";return f.useEffect(()=>{e&&(w(e),O(`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`))},[e]),y.jsxs(cT,{open:h,onOpenChange:b,children:[y.jsx(uT,{asChild:!0,children:y.jsxs("button",{ref:m,id:c,type:"button",disabled:a,className:R(yT({variant:s}),l),"aria-label":v||"Choose date and time","aria-describedby":g,"aria-haspopup":"dialog","aria-expanded":h,children:[y.jsx("span",{className:R("truncate",!e&&"text-tertiary"),children:e?nJ(e,n,d):r}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx(ck,{className:"text-tertiary h-4 w-4 shrink-0"}),y.jsx(s0,{className:"text-tertiary h-4 w-4 shrink-0"})]}),u&&y.jsx("input",{type:"hidden",name:u,value:e?e.toISOString():""})]})}),y.jsx(dT,{children:y.jsxs(fT,{className:R("bg-main border-border z-50 w-auto rounded-lg border p-4 shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=top]:slide-in-from-bottom-2"),sideOffset:4,align:"start",children:[y.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[y.jsx("button",{type:"button",onClick:$,className:R("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Previous month",children:y.jsx(ol,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Dw[E]," ",S]}),y.jsx("button",{type:"button",onClick:_,className:R("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Next month",children:y.jsx(il,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:eJ.map(T=>y.jsx("div",{className:"text-tertiary text-center text-xs font-medium",children:T},T))}),y.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid","aria-label":`${Dw[E]} ${S}`,children:D.map(({date:T,isOutside:I},G)=>{const ee=K(T,I),re=ee==="disabled";return y.jsx("button",{type:"button",onClick:()=>!re&&M(T),disabled:re,className:bT({state:ee}),"aria-label":T.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":ee==="selected",tabIndex:I?-1:0,children:T.getDate()},G)})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("label",{htmlFor:"time-input",className:"text-secondary text-sm font-medium",children:"Time"}),y.jsx("input",{id:"time-input",type:"time",value:P,onChange:k,step:p*60,className:R("bg-card text-body text-primary border-border rounded-md border px-2 py-1","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Select time"})]})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsx("button",{type:"button",onClick:V,className:R("text-sunflower hover:text-sunflower-hover w-full text-center text-sm font-medium","transition-colors focus-visible:underline focus-visible:outline-none"),children:"Now"})})]})})]})});xT.displayName="DateTimePicker";const wT=te("bg-border shrink-0",{variants:{orientation:{horizontal:"h-px w-full",vertical:"h-full w-px"}},defaultVariants:{orientation:"horizontal"}}),PT=f.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>{const i=t??"horizontal";return y.jsx("div",{ref:o,role:r?"none":"separator","aria-orientation":r?void 0:i,className:R(wT({orientation:i,className:e})),...n})});PT.displayName="Divider";var gc="DropdownMenu",[oJ]=Xe(gc,[vc]),dt=vc(),[iJ,ST]=oJ(gc),OT=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=dt(t),c=f.useRef(null),[u,d]=at({prop:o,defaultProp:i??!1,onChange:a,caller:gc});return y.jsx(iJ,{scope:t,triggerId:vt(),triggerRef:c,contentId:vt(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(p=>!p),[d]),modal:s,children:y.jsx(s_,{...l,open:u,onOpenChange:d,dir:n,modal:s,children:r})})};OT.displayName=gc;var ET="DropdownMenuTrigger",CT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=ST(ET,r),a=dt(r);return y.jsx(l_,{asChild:!0,...a,children:y.jsx(Q.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:cr(t,i.triggerRef),onPointerDown:U(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:U(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});CT.displayName=ET;var aJ="DropdownMenuPortal",AT=e=>{const{__scopeDropdownMenu:t,...r}=e,n=dt(t);return y.jsx(c_,{...n,...r})};AT.displayName=aJ;var _T="DropdownMenuContent",TT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ST(_T,r),i=dt(r),a=f.useRef(!1);return y.jsx(u_,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:U(e.onCloseAutoFocus,s=>{a.current||o.triggerRef.current?.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:U(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});TT.displayName=_T;var sJ="DropdownMenuGroup",jT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(d_,{...o,...n,ref:t})});jT.displayName=sJ;var lJ="DropdownMenuLabel",NT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(f_,{...o,...n,ref:t})});NT.displayName=lJ;var cJ="DropdownMenuItem",MT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(p_,{...o,...n,ref:t})});MT.displayName=cJ;var uJ="DropdownMenuCheckboxItem",IT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(v_,{...o,...n,ref:t})});IT.displayName=uJ;var dJ="DropdownMenuRadioGroup",kT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(m_,{...o,...n,ref:t})});kT.displayName=dJ;var fJ="DropdownMenuRadioItem",RT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(h_,{...o,...n,ref:t})});RT.displayName=fJ;var pJ="DropdownMenuItemIndicator",DT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(g_,{...o,...n,ref:t})});DT.displayName=pJ;var vJ="DropdownMenuSeparator",$T=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(y_,{...o,...n,ref:t})});$T.displayName=vJ;var mJ="DropdownMenuArrow",hJ=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(b_,{...o,...n,ref:t})});hJ.displayName=mJ;var gJ=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=dt(t),[s,l]=at({prop:n,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return y.jsx(x_,{...a,open:s,onOpenChange:l,children:r})},yJ="DropdownMenuSubTrigger",LT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(w_,{...o,...n,ref:t})});LT.displayName=yJ;var bJ="DropdownMenuSubContent",FT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(P_,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});FT.displayName=bJ;var xJ=OT,zT=CT,wJ=AT,PJ=TT,SJ=jT,OJ=NT,EJ=MT,CJ=IT,AJ=kT,_J=RT,BT=DT,TJ=$T,jJ=gJ,NJ=LT,MJ=FT;const IJ=xJ,kJ=zT,RJ=SJ,VT=wJ,DJ=jJ,$J=AJ,WT=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(NJ,{ref:o,className:R("text-body flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-[state=open]:bg-vanilla data-[state=open]:text-primary",t&&"pl-8",e),...n,children:[r,y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-auto h-4 w-4",children:y.jsx("path",{d:"m9 18 6-6-6-6"})})]}));WT.displayName="DropdownMenuSubTrigger";const KT=f.forwardRef(({className:e,...t},r)=>y.jsx(MJ,{ref:r,className:R("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","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",e),...t}));KT.displayName="DropdownMenuSubContent";const UT=f.forwardRef(({className:e,sideOffset:t=4,...r},n)=>y.jsx(VT,{children:y.jsx(PJ,{ref:n,sideOffset:t,className:R("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","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",e),...r})}));UT.displayName="DropdownMenuContent";const HT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(EJ,{ref:n,className:R("text-body relative flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",e),...r}));HT.displayName="DropdownMenuItem";const GT=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(CJ,{ref:o,className:R("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),checked:r,...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(BT,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));GT.displayName="DropdownMenuCheckboxItem";const qT=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(_J,{ref:n,className:R("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(BT,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:y.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));qT.displayName="DropdownMenuRadioItem";const YT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(OJ,{ref:n,className:R("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));YT.displayName="DropdownMenuLabel";const XT=f.forwardRef(({className:e,...t},r)=>y.jsx(TJ,{ref:r,className:R("bg-border -mx-1 my-1 h-px",e),...t}));XT.displayName="DropdownMenuSeparator";const ZT=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:R("text-small text-tertiary ml-auto tracking-widest",e),...t}));ZT.displayName="DropdownMenuShortcut";const JT=f.forwardRef(({className:e,iconSize:t="default",...r},n)=>{const o={sm:"h-4 w-4",default:"h-5 w-5",lg:"h-6 w-6"},i={sm:"h-7 w-7",default:"h-8 w-8",lg:"h-10 w-10"};return y.jsxs(zT,{ref:n,className:R("text-secondary inline-flex items-center justify-center rounded-md transition-colors","hover:bg-vanilla hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50",i[t],e),...r,children:[y.jsx(l0,{className:o[t]}),y.jsx("span",{className:"sr-only",children:"Open menu"})]})});JT.displayName="ActionsMenuButton";const QT=te("inline-block",{variants:{size:{xs:"h-3",sm:"h-4",md:"h-5",lg:"h-6",xl:"h-8"}},defaultVariants:{size:"md"}});function LJ(e){if(!e)return"";if(e===!0)return"hidden";const t=[];return e.base===!0&&t.push("hidden"),e.sm===!1&&t.push("sm:block"),e.sm===!0&&t.push("sm:hidden"),e.md===!1&&t.push("md:block"),e.md===!0&&t.push("md:hidden"),e.lg===!1&&t.push("lg:block"),e.lg===!0&&t.push("lg:hidden"),e.xl===!1&&t.push("xl:block"),e.xl===!0&&t.push("xl:hidden"),e["2xl"]===!1&&t.push("2xl:block"),e["2xl"]===!0&&t.push("2xl:hidden"),t.join(" ")}const ej=f.forwardRef(({className:e,size:t,compact:r,...n},o)=>{const i=LJ(r),a=r!==!0;return y.jsx("svg",{ref:o,viewBox:"0 0 179.96 38.58",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:R(QT({size:t,className:e})),"aria-label":"Engrate",role:"img",...n,children:y.jsx("g",{id:"engrate-logo",children:y.jsxs("g",{children:[a&&y.jsxs("g",{className:i,children:[y.jsx("path",{fill:"var(--color-primary)",d:"M57.65,27.3c3.61,0,4.09-.62,4.14-3.96.09-5.72.18-11.88.18-18.22,0-3.34-.53-3.96-3.87-3.96V.27h21.21l.92,5.02h-.7c-2.02-2.51-3.26-3.96-7.39-3.96h-3.79c-2.2,0-2.6.22-2.6,1.76v9.59h4.53c3.78,0,4.14-.57,4.8-3.83h.97v9.59h-.97c-.48-3.43-1.23-4.27-4.4-4.27h-4.93v11.09c0,1.5.66,1.85,2.82,1.85h5.81c4.18,0,5.02-.79,7.83-5.5h.84c-.44,1.14-1.14,4.89-1.5,6.56h-23.9v-.88Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M84.6,27.47c2.38,0,2.9-.62,2.9-3.96v-8.23c0-1.01-.22-1.19-1.06-1.72-.35-.22-.53-.31-.53-.57,0-.35.26-.48.75-.75,1.5-.92,2.68-1.67,3.26-1.67.22,0,.48.13.48.53v1.8c1.19-.79,2.99-2.07,5.85-2.07,2.6,0,6.03.97,6.03,6.12v6.56c0,3.34.53,3.96,2.6,3.96v.7h-8.27v-.7c2.07,0,2.6-.62,2.6-3.96v-5.81c0-3.57-1.54-5.37-4.58-5.37-1.8,0-3.34,1.36-4.05,2.2v8.98c0,3.34.53,3.96,2.68,3.96v.7h-8.67v-.7Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M113.68,23.49c-.97,0-1.5-.09-1.98-.22-1.14.79-2.6,1.36-2.6,2.38,0,1.23,1.36,1.5,9.07,1.85,3.17.13,4.49,1.5,4.49,3.83,0,5.72-5.59,7.26-10.52,7.26-3.35,0-7.7-.79-7.7-3.7,0-2.07,1.5-3.12,5.02-4.88-1.8-.88-3.04-2.38-3.04-3.65,0-1.41,2.11-2.07,4.09-3.56-2.46-1.06-4.09-2.95-4.09-5.77,0-3.83,2.86-6.16,6.91-6.16,2.77,0,5.15,1.06,5.99,1.06.92,0,2.2-.53,3.43-.53,1.01,0,1.5.26,1.5.92,0,.75-.53,1.19-1.41,1.19s-1.36-.53-2.07-.53c-.62,0-.97.35-.97.92,0,1.19.57,1.41.57,3.48,0,3.61-3.34,6.12-6.69,6.12M113.5,37.7c3.57,0,6.95-1.58,6.95-4.8,0-1.85-1.54-2.6-9.33-2.6-1.72.66-3.61,1.98-3.61,4.05,0,2.2,2.73,3.34,5.99,3.34M113.02,11.74c-2.33,0-3.78,2.07-3.78,5.06,0,3.26,1.54,5.81,4.53,5.81,2.33,0,3.78-1.5,3.78-4.31,0-3.7-1.54-6.56-4.53-6.56"}),y.jsx("path",{fill:"var(--color-primary)",d:"M124.99,27.47c2.11,0,2.64-.62,2.64-3.96v-7.83c0-1.06-.22-1.5-1.06-1.89-.62-.31-.84-.35-.84-.62,0-.35.35-.48,2.02-1.23,1.94-.84,2.02-1.36,2.51-1.36.31,0,.44.18.44.48v1.45c0,.35.18.53.44.53.4,0,2.6-2.2,4.84-2.2,1.19,0,1.94.53,1.94,1.54,0,.79-.48,1.5-2.02,1.5-.57,0-1.63-.13-2.42-.13-1.58,0-2.77.79-2.77,3.17v7.22c0,2.73.48,3.26,2.73,3.34v.7h-8.45v-.7Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M148.71,15.68c0-3.04-1.14-3.79-2.99-3.79-4.05,0-2.38,4.53-4.97,4.53-.75,0-1.28-.4-1.28-1.19,0-1.63,3.96-4.4,7.35-4.4,2.95,0,4.97,1.5,4.97,5.28v9.64c0,1.01.62,1.28,1.1,1.28.66,0,1.1-.26,1.54-.66l.44.48c-.62.97-2.11,1.67-3.43,1.67s-2.64-.97-2.73-2.6c-2.07,1.89-4.09,2.6-5.77,2.6-2.51,0-4.27-1.5-4.27-3.43,0-3.04,2.51-3.92,7.66-5.24l2.38-.62v-3.56ZM148.71,19.95l-1.76.44c-3.3.84-5.02,1.85-5.02,3.7,0,1.63.92,2.95,2.91,2.95,1.41,0,2.68-.88,3.87-1.8v-5.28Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M165.13,12.68h-3.08c-1.8,0-2.42.44-2.42,3.17v8.49c0,1.94,1.19,2.68,2.82,2.68,1.23,0,2.24-.22,3.08-.35v.88c-1.23.44-2.46.97-4.45.97-3.65,0-4.53-2.29-4.53-4.4v-9.77c0-1.45-.09-1.58-.53-1.76-.35-.13-1.41-.18-1.41-.62,0-.31.4-.62.75-.97,2.95-2.99,3.34-3.61,3.79-3.61.26,0,.48.13.48.7v3.08h5.5v1.5Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M168.16,17.08c-.18.66-.31,1.41-.31,2.6,0,3.92,2.38,7.35,6.47,7.35,1.76,0,3.17-.62,5.11-1.94l.53.7c-1.98,1.58-3.92,2.99-6.78,2.99-5.24,0-8.41-4.49-8.41-8.36,0-5.55,3.87-9.33,8.49-9.33,3.7,0,6.6,3.04,6.6,5.77,0,.18-.13.22-.44.22h-11.27ZM176.79,16.03c-.18-2.38-1.72-4.05-3.96-4.05-2.55,0-3.96,2.07-4.45,4.05h8.41Z"})]}),y.jsxs("g",{children:[y.jsx("path",{fill:"var(--color-sunflower)",d:"M.2,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L7.28.28c-.17-.37-.62-.37-.79,0L.17,13.8c-.24.51-.23,1.14.03,1.63"}),y.jsx("path",{fill:"var(--color-sunflower)",d:"M12.25,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L19.33.28c-.17-.37-.62-.37-.79,0l-6.32,13.53c-.24.51-.23,1.14.03,1.63"}),y.jsx("path",{fill:"var(--color-sunflower)",d:"M24.31,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L31.39.28c-.17-.37-.62-.37-.79,0l-6.32,13.53c-.24.51-.23,1.14.03,1.63"})]})]})})})});ej.displayName="EngrateLogo";const tj=te("font-mono text-xs leading-5 font-normal tracking-[1.2px] uppercase",{variants:{variant:{default:"text-primary",primary:"text-primary",secondary:"text-secondary"},size:{default:"text-xs",sm:"text-[10px]",lg:"text-sm"}},defaultVariants:{variant:"default",size:"default"}}),rj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"span";return y.jsx(a,{className:R(tj({variant:t,size:r,className:e})),ref:i,...o})});rj.displayName="Eyebrow";const nj=te("w-full font-sans",{variants:{variant:{default:"border-border border-t bg-white",filled:"bg-main border-border border-t",dark:"bg-primary text-white"},size:{sm:"px-4 py-6",default:"px-6 py-10",lg:"px-8 py-16"}},defaultVariants:{variant:"default",size:"default"}}),oj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"footer";return y.jsx(a,{ref:i,className:R(nj({variant:t,size:r,className:e})),...o})});oj.displayName="Footer";const ij=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return y.jsx(o,{ref:n,className:R("grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-4",e),...r})});ij.displayName="FooterContent";const aj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return y.jsx(o,{ref:n,className:R("flex flex-col gap-3",e),...r})});aj.displayName="FooterSection";const sj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"h3";return y.jsx(o,{ref:n,className:R("text-small font-medium",e),...r})});sj.displayName="FooterHeading";const lj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"nav";return y.jsx(o,{ref:n,className:R("text-small text-secondary flex flex-col gap-2",e),...r})});lj.displayName="FooterLinks";const cj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return y.jsx(o,{ref:n,className:R("border-border mt-8 flex flex-col items-center justify-between gap-4 border-t pt-8 sm:flex-row",e),...r})});cj.displayName="FooterBottom";const uj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"p";return y.jsx(o,{ref:n,className:R("text-small text-secondary",e),...r})});uj.displayName="FooterCopyright";const Tm=f.forwardRef(({className:e,variant:t="default",children:r,...n},o)=>r?y.jsx("p",{ref:o,className:R("text-descriptive font-sans text-sm",t==="default"?"text-tertiary":"text-error",e),...n,children:r}):null);Tm.displayName="FormMessage";var FJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],zJ=FJ.reduce((e,t)=>{const r=EP(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),BJ="Label",dj=f.forwardRef((e,t)=>y.jsx(zJ.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));dj.displayName=BJ;var VJ=dj;const fj=te("text-tertiary font-sans font-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-50",{variants:{size:{default:"text-small",sm:"text-label"}},defaultVariants:{size:"default"}}),jm=f.forwardRef(({className:e,size:t,...r},n)=>y.jsx(VJ,{ref:n,className:R(fj({size:t}),e),...r}));jm.displayName="Label";const pj=f.forwardRef(({className:e,label:t,labelSize:r,hint:n,error:o,htmlFor:i,children:a,...s},l)=>{const c=i?`${i}-message`:void 0;return y.jsxs("div",{ref:l,className:R("flex flex-col gap-1.5",e),...s,children:[t&&y.jsx(jm,{htmlFor:i,size:r,children:t}),a,(n||o)&&y.jsx(Tm,{id:c,variant:o?"error":"default",role:o?"alert":void 0,children:o||n})]})});pj.displayName="FormField";const WJ=te("grid",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12"},gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"}},defaultVariants:{cols:1,gap:"md",align:"stretch",justify:"stretch"}}),KJ={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12"},UJ={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},HJ={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},GJ={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"};function yn(e,t,r){if(!e)return r?t[r]:"";if(typeof e=="object"){const n=[];return e.base!==void 0?n.push(t[e.base]):r&&n.push(t[r]),e.sm!==void 0&&n.push(`sm:${t[e.sm].split(":").pop()}`),e.md!==void 0&&n.push(`md:${t[e.md].split(":").pop()}`),e.lg!==void 0&&n.push(`lg:${t[e.lg].split(":").pop()}`),e.xl!==void 0&&n.push(`xl:${t[e.xl].split(":").pop()}`),e["2xl"]!==void 0&&n.push(`2xl:${t[e["2xl"]].split(":").pop()}`),n.join(" ")}return t[e]}const vj=f.forwardRef(({className:e,cols:t,gap:r,align:n,justify:o,as:i="div",asChild:a=!1,...s},l)=>{const c=a?Oe:i,u=yn(t,KJ,1),d=yn(r,UJ,"md"),p=yn(n,HJ,"stretch"),v=yn(o,GJ,"stretch");return y.jsx(c,{className:R("grid",u,d,p,v,e),ref:l,...s})});vj.displayName="Grid";const qJ=te("",{variants:{colSpan:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},rowSpan:{1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},colStart:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",auto:"col-start-auto"}},defaultVariants:{}}),YJ={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},XJ={1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},ZJ={1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",auto:"col-start-auto"},mj=f.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:n,as:o="div",asChild:i=!1,...a},s)=>{const l=i?Oe:o,c=yn(t,YJ),u=yn(r,XJ),d=yn(n,ZJ);return y.jsx(l,{className:R(c,u,d,e),ref:s,...a})});mj.displayName="GridItem";const hj=te("flex w-full items-center justify-between font-sans",{variants:{variant:{default:"border-border border-b bg-white",transparent:"bg-transparent",filled:"bg-main border-border border-b"},size:{sm:"h-12 px-4",default:"h-16 px-6",lg:"h-20 px-8"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"default",size:"default",sticky:!1}}),gj=f.forwardRef(({className:e,variant:t,size:r,sticky:n,asChild:o=!1,...i},a)=>{const s=o?Oe:"header";return y.jsx(s,{ref:a,className:R(hj({variant:t,size:r,sticky:n,className:e})),...i})});gj.displayName="Header";const yj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return y.jsx(o,{ref:n,className:R("flex shrink-0 items-center",e),...r})});yj.displayName="HeaderLogo";const bj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"nav";return y.jsx(o,{ref:n,className:R("flex items-center gap-6",e),...r})});bj.displayName="HeaderNav";const xj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return y.jsx(o,{ref:n,className:R("flex shrink-0 items-center gap-3",e),...r})});xj.displayName="HeaderActions";const wj=te("text-primary font-normal",{variants:{level:{hero:"font-display text-hero",h1:"text-h1 font-sans font-normal",h2:"text-h2 font-sans font-normal",h3:"text-h3 font-sans font-normal",h4:"text-h4 font-sans font-normal"}},defaultVariants:{level:"h1"}}),JJ={hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4"},Pj=f.forwardRef(({className:e,level:t="h1",as:r,asChild:n=!1,...o},i)=>{const a=r??JJ[t??"h1"],s=n?Oe:a;return y.jsx(s,{className:R(wj({level:t,className:e})),ref:i,...o})});Pj.displayName="Heading";const Sj=te("bg-card text-body text-primary placeholder:text-tertiary flex h-10 w-full rounded-md border px-3 py-2 font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-border focus-visible:ring-sunflower",error:"border-error focus-visible:ring-error"}},defaultVariants:{variant:"default"}}),Oj=f.forwardRef(({className:e,variant:t,type:r="text",...n},o)=>y.jsx("input",{type:r,className:R(Sj({variant:t}),e),ref:o,...n}));Oj.displayName="Input";const Ej=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),$a=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],Cj=f.forwardRef(({className:e,size:t,data:r,series:n,showGrid:o=!0,showLegend:i=!0,showTooltip:a=!0,xAxisLabel:s,yAxisLabel:l,strokeWidth:c=2,curved:u=!0,showDots:d=!0,...p},v)=>{const g=f.useMemo(()=>{if(n)return n;const m=r[0];return m?Object.keys(m).filter(b=>b!=="label"&&typeof m[b]=="number").map((b,x)=>({key:b,name:b.charAt(0).toUpperCase()+b.slice(1),color:$a[x%$a.length]})):[]},[r,n]);return y.jsx("div",{ref:v,className:R(Ej({size:t,className:e})),role:"img",...p,children:y.jsx(Op,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(_7,{data:r,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(nm,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),y.jsx(Ks,{dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(Us,{stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0}),a&&y.jsx(Vv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},itemStyle:{color:"var(--color-secondary)"}}),i&&y.jsx(Ml,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),g.map((m,h)=>y.jsx(OC,{type:u?"monotone":"linear",dataKey:m.key,name:m.name,stroke:m.color||$a[h%$a.length],strokeWidth:c,dot:d,activeDot:d?{r:6}:!1},m.key))]})})})});Cj.displayName="LineChart";const Aj=te("focus-visible:ring-sunflower inline-flex items-center font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{default:"text-primary hover:text-secondary underline underline-offset-4",muted:"text-secondary hover:text-primary underline underline-offset-4",nav:"text-primary hover:text-secondary no-underline hover:underline hover:underline-offset-4"},size:{sm:"text-small",default:"text-body",lg:"text-body font-medium"}},defaultVariants:{variant:"default",size:"default"}}),_j=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"a";return y.jsx(a,{className:R(Aj({variant:t,size:r,className:e})),ref:i,...o})});_j.displayName="Link";const QJ=oP,eQ=iP,Tj=aP,tQ=ul,Nm=f.forwardRef(({className:e,...t},r)=>y.jsx(sP,{ref:r,className:R("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-200",e),...t}));Nm.displayName="ModalOverlay";const jj=te(["fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2","bg-main grid w-full gap-4 p-6 shadow-lg","max-h-[85vh] overflow-y-auto","border-border rounded-lg border","focus-visible:ring-sunflower focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","duration-200"],{variants:{size:{sm:"max-w-[400px]",default:"max-w-[500px]",lg:"max-w-[640px]",full:"max-w-[95vw]"}},defaultVariants:{size:"default"}}),Nj=f.forwardRef(({className:e,children:t,size:r,showCloseButton:n=!0,...o},i)=>y.jsxs(Tj,{children:[y.jsx(Nm,{}),y.jsxs(lP,{ref:i,className:R(jj({size:r}),e),...o,children:[t,n&&y.jsxs(ul,{className:R("absolute top-4 right-4 rounded-sm opacity-70","ring-offset-main transition-opacity","hover:opacity-100","focus:ring-sunflower focus:ring-2 focus:ring-offset-2 focus:outline-none","disabled:pointer-events-none","data-[state=open]:bg-alt data-[state=open]:text-secondary"),children:[y.jsx(c0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Nj.displayName="ModalContent";const Mj=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}));Mj.displayName="ModalHeader";const Ij=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));Ij.displayName="ModalFooter";const kj=f.forwardRef(({className:e,...t},r)=>y.jsx(cP,{ref:r,className:R("text-primary text-lg leading-none tracking-tight",e),...t}));kj.displayName="ModalTitle";const Rj=f.forwardRef(({className:e,...t},r)=>y.jsx(uP,{ref:r,className:R("text-secondary text-sm",e),...t}));Rj.displayName="ModalDescription";const Dj=te("flex items-center justify-center gap-1 font-sans",{variants:{size:{sm:"text-small",default:"text-body",lg:"text-lead"}},defaultVariants:{size:"default"}}),$j=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-primary hover:bg-alt active:bg-contrast rounded-full",active:"bg-sunflower text-primary hover:bg-sunflower-hover rounded-full",ellipsis:"text-tertiary cursor-default"},size:{sm:"text-small h-7 w-7",default:"text-small h-9 w-9",lg:"text-body h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),Lj=f.forwardRef(({className:e,size:t,page:r,totalPages:n,onPageChange:o,siblingCount:i=1,...a},s)=>{const l=f.useMemo(()=>{const d=i*2+3+2;if(n<=d)return Array.from({length:n},(h,b)=>b+1);const p=Math.max(r-i,1),v=Math.min(r+i,n),g=p>2,m=v<n-1;if(!g&&m){const h=3+2*i;return[...Array.from({length:h},(x,w)=>w+1),"ellipsis-right",n]}if(g&&!m){const h=3+2*i;return[1,"ellipsis-left",...Array.from({length:h},(x,w)=>n-h+w+1)]}return g&&m?[1,"ellipsis-left",...Array.from({length:i*2+1},(b,x)=>p+x),"ellipsis-right",n]:Array.from({length:n},(h,b)=>b+1)},[r,n,i]),c=u=>{u>=1&&u<=n&&u!==r&&o?.(u)};return y.jsxs("nav",{ref:s,role:"navigation","aria-label":"Pagination",className:R(Dj({size:t,className:e})),...a,children:[y.jsx(ro,{size:t,onClick:()=>c(r-1),disabled:r===1,"aria-label":"Go to previous page",children:y.jsx(ol,{className:"h-4 w-4"})}),l.map(u=>typeof u=="string"?y.jsx(ro,{size:t,variant:"ellipsis",disabled:!0,"aria-hidden":!0,children:y.jsx(l0,{className:"h-4 w-4"})},u):y.jsx(ro,{size:t,variant:u===r?"active":"default",onClick:()=>c(u),"aria-label":`Go to page ${u}`,"aria-current":u===r?"page":void 0,children:u},u)),y.jsx(ro,{size:t,onClick:()=>c(r+1),disabled:r===n,"aria-label":"Go to next page",children:y.jsx(il,{className:"h-4 w-4"})})]})});Lj.displayName="Pagination";const ro=f.forwardRef(({className:e,variant:t,size:r,...n},o)=>y.jsx("button",{ref:o,type:"button",className:R($j({variant:t,size:r,className:e})),...n}));ro.displayName="PaginationItem";const Fj=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Fw=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],zj=f.forwardRef(({className:e,size:t,data:r,showLegend:n=!0,showTooltip:o=!0,innerRadius:i=0,outerRadius:a="80%",paddingAngle:s=0,showLabels:l=!1,startAngle:c=90,endAngle:u=-270,...d},p)=>{const v=f.useMemo(()=>r.reduce((m,h)=>m+h.value,0),[r]),g=f.useCallback(m=>{const{cx:h=0,cy:b=0,midAngle:x=0,percent:w=0}=m,P=m.innerRadius??0,O=m.outerRadius??0,S=Math.PI/180,E=P+(O-P)*.5,C=h+E*Math.cos(-x*S),N=b+E*Math.sin(-x*S);return y.jsx("text",{x:C,y:N,fill:"var(--color-white)",textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"12px",fontFamily:"var(--font-sans)",fontWeight:500},children:`${(w*100).toFixed(0)}%`})},[]);return y.jsx("div",{ref:p,className:R(Fj({size:t,className:e})),role:"img",...d,children:y.jsx(Op,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(V7,{children:[o&&y.jsx(Vv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},itemStyle:{color:"var(--color-secondary)"},formatter:(m,h)=>[`${m} (${v>0?(Number(m)/v*100).toFixed(1):0}%)`,h]}),n&&y.jsx(Ml,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),y.jsx(sC,{data:r,cx:"50%",cy:"50%",innerRadius:i,outerRadius:a,paddingAngle:s,dataKey:"value",nameKey:"name",startAngle:c,endAngle:u,label:l?g:!1,labelLine:!1,children:r.map((m,h)=>y.jsx(Ui,{fill:m.color||Fw[h%Fw.length]},`cell-${m.name}-${h}`))})]})})})});zj.displayName="PieChart";const Bj=te("bg-border relative w-full overflow-hidden rounded-full",{variants:{size:{sm:"h-1",default:"h-2",lg:"h-3",xl:"h-4"}},defaultVariants:{size:"default"}}),Vj=te("h-full transition-all duration-300 ease-out",{variants:{variant:{default:"bg-sunflower",muted:"bg-secondary",success:"bg-electric-blue"},animated:{true:"animate-pulse",false:""}},defaultVariants:{variant:"default",animated:!1}}),Wj=f.forwardRef(({className:e,value:t=0,max:r=100,size:n,variant:o,animated:i,label:a="Progress",indeterminate:s=!1,...l},c)=>{const u=Math.min(Math.max(t/r*100,0),100);return y.jsx("div",{ref:c,role:"progressbar","aria-valuenow":s?void 0:t,"aria-valuemin":0,"aria-valuemax":r,"aria-label":a,className:R(Bj({size:n,className:e})),...l,children:y.jsx("div",{className:R(Vj({variant:o,animated:i}),s&&"animate-progress-indeterminate"),style:{width:s?"50%":`${u}%`}})})});Wj.displayName="ProgressIndicator";var Mm="Radio",[rQ,Kj]=Xe(Mm),[nQ,oQ]=rQ(Mm),Uj=f.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,form:c,...u}=e,[d,p]=f.useState(null),v=ie(t,h=>p(h)),g=f.useRef(!1),m=d?c||!!d.closest("form"):!0;return y.jsxs(nQ,{scope:r,checked:o,disabled:a,children:[y.jsx(Q.button,{type:"button",role:"radio","aria-checked":o,"data-state":Yj(o),"data-disabled":a?"":void 0,disabled:a,value:s,...u,ref:v,onClick:U(e.onClick,h=>{o||l?.(),m&&(g.current=h.isPropagationStopped(),g.current||h.stopPropagation())})}),m&&y.jsx(qj,{control:d,bubbles:!g.current,name:n,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});Uj.displayName=Mm;var Hj="RadioIndicator",Gj=f.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=oQ(Hj,r);return y.jsx(lt,{present:n||i.checked,children:y.jsx(Q.span,{"data-state":Yj(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});Gj.displayName=Hj;var iQ="RadioBubbleInput",qj=f.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=ie(a,i),l=oc(r),c=ic(t);return f.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&v){const g=new Event("click",{bubbles:n});v.call(u,r),u.dispatchEvent(g)}},[l,r,n]),y.jsx(Q.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});qj.displayName=iQ;function Yj(e){return e?"checked":"unchecked"}var aQ=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],yc="RadioGroup",[sQ]=Xe(yc,[pc,Kj]),Xj=pc(),Zj=Kj(),[lQ,cQ]=sQ(yc),Jj=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...p}=e,v=Xj(r),g=xi(c),[m,h]=at({prop:i,defaultProp:o??null,onChange:d,caller:yc});return y.jsx(lQ,{scope:r,name:n,required:a,disabled:s,value:m,onValueChange:h,children:y.jsx(RA,{asChild:!0,...v,orientation:l,dir:g,loop:u,children:y.jsx(Q.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:g,...p,ref:t})})})});Jj.displayName=yc;var Qj="RadioGroupItem",eN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=cQ(Qj,r),a=i.disabled||n,s=Xj(r),l=Zj(r),c=f.useRef(null),u=ie(t,c),d=i.value===o.value,p=f.useRef(!1);return f.useEffect(()=>{const v=m=>{aQ.includes(m.key)&&(p.current=!0)},g=()=>p.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),y.jsx(DA,{asChild:!0,...s,focusable:!a,active:d,children:y.jsx(Uj,{disabled:a,required:i.required,checked:d,...l,...o,name:i.name,ref:u,onCheck:()=>i.onValueChange(o.value),onKeyDown:U(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:U(o.onFocus,()=>{p.current&&c.current?.click()})})})});eN.displayName=Qj;var uQ="RadioGroupIndicator",tN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=Zj(r);return y.jsx(Gj,{...o,...n,ref:t})});tN.displayName=uQ;var dQ=Jj,fQ=eN,pQ=tN;const rN=f.forwardRef(({className:e,...t},r)=>y.jsx(dQ,{className:R("grid gap-2",e),...t,ref:r}));rN.displayName="RadioGroup";const nN=f.forwardRef(({className:e,...t},r)=>y.jsx(fQ,{ref:r,className:R("border-border bg-card aspect-square h-5 w-5 rounded-full border transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-sunflower",e),...t,children:y.jsx(pQ,{className:"flex items-center justify-center",children:y.jsx("span",{className:"bg-sunflower h-2.5 w-2.5 rounded-full"})})}));nN.displayName="RadioGroupItem";function zw(e,[t,r]){return Math.min(r,Math.max(t,e))}function vQ(e){const t=mQ(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(gQ);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function mQ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=bQ(o),s=yQ(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hQ=Symbol("radix.slottable");function gQ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hQ}function yQ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function bQ(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 oN=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"}),xQ="VisuallyHidden",bc=f.forwardRef((e,t)=>y.jsx(Q.span,{...e,ref:t,style:{...oN,...e.style}}));bc.displayName=xQ;var wQ=bc,PQ=[" ","Enter","ArrowUp","ArrowDown"],SQ=[" ","Enter"],kn="Select",[xc,wc,OQ]=bi(kn),[Io]=Xe(kn,[OQ,rn]),Pc=rn(),[EQ,an]=Io(kn),[CQ,AQ]=Io(kn),iN=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:p,required:v,form:g}=e,m=Pc(t),[h,b]=f.useState(null),[x,w]=f.useState(null),[P,O]=f.useState(!1),S=xi(c),[E,C]=at({prop:n,defaultProp:o??!1,onChange:i,caller:kn}),[N,D]=at({prop:a,defaultProp:s,onChange:l,caller:kn}),$=f.useRef(null),_=h?g||!!h.closest("form"):!0,[M,k]=f.useState(new Set),V=Array.from(M).map(B=>B.props.value).join(";");return y.jsx(qi,{...m,children:y.jsxs(EQ,{required:v,scope:t,trigger:h,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:P,onValueNodeHasChildrenChange:O,contentId:vt(),value:N,onValueChange:D,open:E,onOpenChange:C,dir:S,triggerPointerDownPosRef:$,disabled:p,children:[y.jsx(xc.Provider,{scope:t,children:y.jsx(CQ,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(B=>{k(K=>new Set(K).add(B))},[]),onNativeOptionRemove:f.useCallback(B=>{k(K=>{const T=new Set(K);return T.delete(B),T})},[]),children:r})}),_?y.jsxs(jN,{"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:d,value:N,onChange:B=>D(B.target.value),disabled:p,form:g,children:[N===void 0?y.jsx("option",{value:""}):null,Array.from(M)]},V):null]})})};iN.displayName=kn;var aN="SelectTrigger",sN=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Pc(r),a=an(aN,r),s=a.disabled||n,l=ie(t,a.onTriggerChange),c=wc(r),u=f.useRef("touch"),[d,p,v]=MN(m=>{const h=c().filter(w=>!w.disabled),b=h.find(w=>w.value===a.value),x=IN(h,m,b);x!==void 0&&a.onValueChange(x.value)}),g=m=>{s||(a.onOpenChange(!0),v()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return y.jsx(Yi,{asChild:!0,...i,children:y.jsx(Q.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":NN(a.value)?"":void 0,...o,ref:l,onClick:U(o.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&g(m)}),onPointerDown:U(o.onPointerDown,m=>{u.current=m.pointerType;const h=m.target;h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:U(o.onKeyDown,m=>{const h=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&p(m.key),!(h&&m.key===" ")&&PQ.includes(m.key)&&(g(),m.preventDefault())})})})});sN.displayName=aN;var lN="SelectValue",cN=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a="",...s}=e,l=an(lN,r),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=ie(t,l.onValueNodeChange);return qe(()=>{c(u)},[c,u]),y.jsx(Q.span,{...s,ref:d,style:{pointerEvents:"none"},children:NN(l.value)?y.jsx(y.Fragment,{children:a}):i})});cN.displayName=lN;var _Q="SelectIcon",uN=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return y.jsx(Q.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});uN.displayName=_Q;var TQ="SelectPortal",dN=e=>y.jsx(Ln,{asChild:!0,...e});dN.displayName=TQ;var Rn="SelectContent",fN=f.forwardRef((e,t)=>{const r=an(Rn,e.__scopeSelect),[n,o]=f.useState();if(qe(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?yi.createPortal(y.jsx(pN,{scope:e.__scopeSelect,children:y.jsx(xc.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),i):null}return y.jsx(vN,{...e,ref:t})});fN.displayName=Rn;var Ft=10,[pN,sn]=Io(Rn),jQ="SelectContentImpl",NQ=vQ("SelectContent.RemoveScroll"),vN=f.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:h,...b}=e,x=an(Rn,r),[w,P]=f.useState(null),[O,S]=f.useState(null),E=ie(t,W=>P(W)),[C,N]=f.useState(null),[D,$]=f.useState(null),_=wc(r),[M,k]=f.useState(!1),V=f.useRef(!1);f.useEffect(()=>{if(w)return ll(w)},[w]),al();const B=f.useCallback(W=>{const[ue,...L]=_().map(F=>F.ref.current),[H]=L.slice(-1),z=document.activeElement;for(const F of W)if(F===z||(F?.scrollIntoView({block:"nearest"}),F===ue&&O&&(O.scrollTop=0),F===H&&O&&(O.scrollTop=O.scrollHeight),F?.focus(),document.activeElement!==z))return},[_,O]),K=f.useCallback(()=>B([C,w]),[B,C,w]);f.useEffect(()=>{M&&K()},[M,K]);const{onOpenChange:T,triggerPointerDownPosRef:I}=x;f.useEffect(()=>{if(w){let W={x:0,y:0};const ue=H=>{W={x:Math.abs(Math.round(H.pageX)-(I.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(I.current?.y??0))}},L=H=>{W.x<=10&&W.y<=10?H.preventDefault():w.contains(H.target)||T(!1),document.removeEventListener("pointermove",ue),I.current=null};return I.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",L,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",L,{capture:!0})}}},[w,T,I]),f.useEffect(()=>{const W=()=>T(!1);return window.addEventListener("blur",W),window.addEventListener("resize",W),()=>{window.removeEventListener("blur",W),window.removeEventListener("resize",W)}},[T]);const[G,ee]=MN(W=>{const ue=_().filter(z=>!z.disabled),L=ue.find(z=>z.ref.current===document.activeElement),H=IN(ue,W,L);H&&setTimeout(()=>H.ref.current.focus())}),re=f.useCallback((W,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&(N(W),H&&(V.current=!0))},[x.value]),oe=f.useCallback(()=>w?.focus(),[w]),ne=f.useCallback((W,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&$(W)},[x.value]),le=n==="popper"?kf:mN,Ee=le===kf?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:h}:{};return y.jsx(pN,{scope:r,content:w,viewport:O,onViewportChange:S,itemRefCallback:re,selectedItem:C,onItemLeave:oe,itemTextRefCallback:ne,focusSelectedItem:K,selectedItemText:D,position:n,isPositioned:M,searchRef:G,children:y.jsx(Pi,{as:NQ,allowPinchZoom:!0,children:y.jsx(wi,{asChild:!0,trapped:x.open,onMountAutoFocus:W=>{W.preventDefault()},onUnmountAutoFocus:U(o,W=>{x.trigger?.focus({preventScroll:!0}),W.preventDefault()}),children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:W=>W.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:y.jsx(le,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:W=>W.preventDefault(),...b,...Ee,onPlaced:()=>k(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:U(b.onKeyDown,W=>{const ue=W.ctrlKey||W.altKey||W.metaKey;if(W.key==="Tab"&&W.preventDefault(),!ue&&W.key.length===1&&ee(W.key),["ArrowUp","ArrowDown","Home","End"].includes(W.key)){let H=_().filter(z=>!z.disabled).map(z=>z.ref.current);if(["ArrowUp","End"].includes(W.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(W.key)){const z=W.target,F=H.indexOf(z);H=H.slice(F+1)}setTimeout(()=>B(H)),W.preventDefault()}})})})})})})});vN.displayName=jQ;var MQ="SelectItemAlignedPosition",mN=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=an(Rn,r),a=sn(Rn,r),[s,l]=f.useState(null),[c,u]=f.useState(null),d=ie(t,E=>u(E)),p=wc(r),v=f.useRef(!1),g=f.useRef(!0),{viewport:m,selectedItem:h,selectedItemText:b,focusSelectedItem:x}=a,w=f.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&h&&b){const E=i.trigger.getBoundingClientRect(),C=c.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),D=b.getBoundingClientRect();if(i.dir!=="rtl"){const z=D.left-C.left,F=N.left-z,fe=E.left-F,se=E.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-Ft,Lt=zw(F,[Ft,Math.max(Ft,et-Qe)]);s.style.minWidth=se+"px",s.style.left=Lt+"px"}else{const z=C.right-D.right,F=window.innerWidth-N.right-z,fe=window.innerWidth-E.right-F,se=E.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-Ft,Lt=zw(F,[Ft,Math.max(Ft,et-Qe)]);s.style.minWidth=se+"px",s.style.right=Lt+"px"}const $=p(),_=window.innerHeight-Ft*2,M=m.scrollHeight,k=window.getComputedStyle(c),V=parseInt(k.borderTopWidth,10),B=parseInt(k.paddingTop,10),K=parseInt(k.borderBottomWidth,10),T=parseInt(k.paddingBottom,10),I=V+B+M+T+K,G=Math.min(h.offsetHeight*5,I),ee=window.getComputedStyle(m),re=parseInt(ee.paddingTop,10),oe=parseInt(ee.paddingBottom,10),ne=E.top+E.height/2-Ft,le=_-ne,Ee=h.offsetHeight/2,W=h.offsetTop+Ee,ue=V+B+W,L=I-ue;if(ue<=ne){const z=$.length>0&&h===$[$.length-1].ref.current;s.style.bottom="0px";const F=c.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(le,Ee+(z?oe:0)+F+K),se=ue+fe;s.style.height=se+"px"}else{const z=$.length>0&&h===$[0].ref.current;s.style.top="0px";const fe=Math.max(ne,V+m.offsetTop+(z?re:0)+Ee)+L;s.style.height=fe+"px",m.scrollTop=ue-ne+m.offsetTop}s.style.margin=`${Ft}px 0`,s.style.minHeight=G+"px",s.style.maxHeight=_+"px",n?.(),requestAnimationFrame(()=>v.current=!0)}},[p,i.trigger,i.valueNode,s,c,m,h,b,i.dir,n]);qe(()=>w(),[w]);const[P,O]=f.useState();qe(()=>{c&&O(window.getComputedStyle(c).zIndex)},[c]);const S=f.useCallback(E=>{E&&g.current===!0&&(w(),x?.(),g.current=!1)},[w,x]);return y.jsx(kQ,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:S,children:y.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:y.jsx(Q.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});mN.displayName=MQ;var IQ="SelectPopperPosition",kf=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Ft,...i}=e,a=Pc(r);return y.jsx(dc,{...a,...i,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});kf.displayName=IQ;var[kQ,Im]=Io(Rn,{}),Rf="SelectViewport",hN=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=sn(Rf,r),a=Im(Rf,r),s=ie(t,i.onViewportChange),l=f.useRef(0);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(xc.Slot,{scope:r,children:y.jsx(Q.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:U(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:p}=a;if(p?.current&&d){const v=Math.abs(l.current-u.scrollTop);if(v>0){const g=window.innerHeight-Ft*2,m=parseFloat(d.style.minHeight),h=parseFloat(d.style.height),b=Math.max(m,h);if(b<g){const x=b+v,w=Math.min(g,x),P=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=P>0?P:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});hN.displayName=Rf;var gN="SelectGroup",[RQ,DQ]=Io(gN),yN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=vt();return y.jsx(RQ,{scope:r,id:o,children:y.jsx(Q.div,{role:"group","aria-labelledby":o,...n,ref:t})})});yN.displayName=gN;var bN="SelectLabel",xN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=DQ(bN,r);return y.jsx(Q.div,{id:o.id,...n,ref:t})});xN.displayName=bN;var el="SelectItem",[$Q,wN]=Io(el),PN=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=an(el,r),l=sn(el,r),c=s.value===n,[u,d]=f.useState(i??""),[p,v]=f.useState(!1),g=ie(t,x=>l.itemRefCallback?.(x,n,o)),m=vt(),h=f.useRef("touch"),b=()=>{o||(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 y.jsx($Q,{scope:r,value:n,disabled:o,textId:m,isSelected:c,onItemTextChange:f.useCallback(x=>{d(w=>w||(x?.textContent??"").trim())},[]),children:y.jsx(xc.ItemSlot,{scope:r,value:n,disabled:o,textValue:u,children:y.jsx(Q.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:g,onFocus:U(a.onFocus,()=>v(!0)),onBlur:U(a.onBlur,()=>v(!1)),onClick:U(a.onClick,()=>{h.current!=="mouse"&&b()}),onPointerUp:U(a.onPointerUp,()=>{h.current==="mouse"&&b()}),onPointerDown:U(a.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:U(a.onPointerMove,x=>{h.current=x.pointerType,o?l.onItemLeave?.():h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:U(a.onPointerLeave,x=>{x.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:U(a.onKeyDown,x=>{l.searchRef?.current!==""&&x.key===" "||(SQ.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});PN.displayName=el;var Yo="SelectItemText",SN=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=an(Yo,r),s=sn(Yo,r),l=wN(Yo,r),c=AQ(Yo,r),[u,d]=f.useState(null),p=ie(t,b=>d(b),l.onItemTextChange,b=>s.itemTextRefCallback?.(b,l.value,l.disabled)),v=u?.textContent,g=f.useMemo(()=>y.jsx("option",{value:l.value,disabled:l.disabled,children:v},l.value),[l.disabled,l.value,v]),{onNativeOptionAdd:m,onNativeOptionRemove:h}=c;return qe(()=>(m(g),()=>h(g)),[m,h,g]),y.jsxs(y.Fragment,{children:[y.jsx(Q.span,{id:l.textId,...i,ref:p}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?yi.createPortal(i.children,a.valueNode):null]})});SN.displayName=Yo;var ON="SelectItemIndicator",EN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return wN(ON,r).isSelected?y.jsx(Q.span,{"aria-hidden":!0,...n,ref:t}):null});EN.displayName=ON;var Df="SelectScrollUpButton",CN=f.forwardRef((e,t)=>{const r=sn(Df,e.__scopeSelect),n=Im(Df,e.__scopeSelect),[o,i]=f.useState(!1),a=ie(t,n.onScrollButtonChange);return qe(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollTop>0;i(c)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?y.jsx(_N,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});CN.displayName=Df;var $f="SelectScrollDownButton",AN=f.forwardRef((e,t)=>{const r=sn($f,e.__scopeSelect),n=Im($f,e.__scopeSelect),[o,i]=f.useState(!1),a=ie(t,n.onScrollButtonChange);return qe(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;i(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?y.jsx(_N,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});AN.displayName=$f;var _N=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=sn("SelectScrollButton",r),a=f.useRef(null),s=wc(r),l=f.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),qe(()=>{s().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),y.jsx(Q.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:U(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:U(o.onPointerMove,()=>{i.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:U(o.onPointerLeave,()=>{l()})})}),LQ="SelectSeparator",TN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return y.jsx(Q.div,{"aria-hidden":!0,...n,ref:t})});TN.displayName=LQ;var Lf="SelectArrow",FQ=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Pc(r),i=an(Lf,r),a=sn(Lf,r);return i.open&&a.position==="popper"?y.jsx(fc,{...o,...n,ref:t}):null});FQ.displayName=Lf;var zQ="SelectBubbleInput",jN=f.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=f.useRef(null),i=ie(n,o),a=oc(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&u){const d=new Event("change",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[a,t]),y.jsx(Q.select,{...r,style:{...oN,...r.style},ref:i,defaultValue:t})});jN.displayName=zQ;function NN(e){return e===""||e===void 0}function MN(e){const t=st(e),r=f.useRef(""),n=f.useRef(0),o=f.useCallback(a=>{const s=r.current+a;t(s),(function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),i=f.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function IN(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=BQ(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function BQ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var VQ=iN,WQ=sN,KQ=cN,UQ=uN,HQ=dN,GQ=fN,qQ=hN,YQ=yN,XQ=xN,ZQ=PN,JQ=SN,QQ=EN,eee=CN,tee=AN,ree=TN;const nee=VQ,oee=YQ,iee=KQ,kN=f.forwardRef(({className:e,children:t,variant:r="default",...n},o)=>y.jsxs(WQ,{ref:o,className:R("bg-card text-body text-primary flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 font-sans transition-colors","placeholder:text-tertiary","focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","[&>span]:line-clamp-1",r==="default"?"border-border focus-visible:ring-sunflower":"border-error focus-visible:ring-error",e),...n,children:[t,y.jsx(UQ,{asChild:!0,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 opacity-50",children:y.jsx("path",{d:"m6 9 6 6 6-6"})})})]}));kN.displayName="SelectTrigger";const km=f.forwardRef(({className:e,...t},r)=>y.jsx(eee,{ref:r,className:R("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"m18 15-6-6-6 6"})})}));km.displayName="SelectScrollUpButton";const Rm=f.forwardRef(({className:e,...t},r)=>y.jsx(tee,{ref:r,className:R("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"m6 9 6 6 6-6"})})}));Rm.displayName="SelectScrollDownButton";const RN=f.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>y.jsx(HQ,{children:y.jsxs(GQ,{ref:o,className:R("border-border bg-card text-primary relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","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",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,...n,children:[y.jsx(km,{}),y.jsx(qQ,{className:R("p-1",r==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),y.jsx(Rm,{})]})}));RN.displayName="SelectContent";const DN=f.forwardRef(({className:e,...t},r)=>y.jsx(XQ,{ref:r,className:R("text-small text-tertiary py-1.5 pr-2 pl-8 font-normal",e),...t}));DN.displayName="SelectLabel";const $N=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(ZQ,{ref:n,className:R("text-body relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(QQ,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})})})}),y.jsx(JQ,{children:t})]}));$N.displayName="SelectItem";const LN=f.forwardRef(({className:e,...t},r)=>y.jsx(ree,{ref:r,className:R("bg-border -mx-1 my-1 h-px",e),...t}));LN.displayName="SelectSeparator";const FN=f.createContext(null);function Sc(){const e=f.useContext(FN);if(!e)throw new Error("Sidebar components must be used within a Sidebar");return e}const zN=te(["border-border bg-card flex h-dvh flex-col border-r transition-[width] duration-300 ease-in-out","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"],{variants:{variant:{default:"",bordered:"border-border border"},width:{sm:"",default:"",lg:""}},defaultVariants:{variant:"default",width:"default"}}),aee={sm:{expanded:"w-52",collapsed:"w-14"},default:{expanded:"w-64",collapsed:"w-16"},lg:{expanded:"w-72",collapsed:"w-20"}},BN=f.forwardRef(({className:e,variant:t,width:r="default",defaultCollapsed:n=!1,collapsed:o,onCollapsedChange:i,collapsible:a=!0,autoCollapseMobile:s=!0,children:l,...c},u)=>{const[d,p]=f.useState(n),v=o!==void 0,g=v?o:d,m=f.useCallback(x=>{a&&(v||p(x),i?.(x))},[v,i,a]);f.useEffect(()=>{if(!s||!a||typeof window>"u"||!window.matchMedia)return;const x=window.matchMedia("(max-width: 768px)"),w=P=>{m(P.matches)};return w(x),x.addEventListener("change",w),()=>x.removeEventListener("change",w)},[s,a,m]);const h=f.useMemo(()=>({collapsed:g,setCollapsed:m,collapsible:a}),[g,m,a]),b=aee[r||"default"];return y.jsx(FN.Provider,{value:h,children:y.jsx("aside",{ref:u,className:R(zN({variant:t}),g?b.collapsed:b.expanded,e),"data-collapsed":g,...c,children:l})})});BN.displayName="Sidebar";const VN=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex items-center gap-2 px-4 pt-4 pb-2",e),...t}));VN.displayName="SidebarHeader";const WN=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("flex-1 overflow-y-auto px-3 py-2",e),...t}));WN.displayName="SidebarContent";const KN=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("border-border mt-auto border-t px-3 py-3",e),...t}));KN.displayName="SidebarFooter";const UN=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:R("space-y-1 py-2",e),...t}));UN.displayName="SidebarGroup";const HN=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n}=Sc();return n?null:y.jsx("div",{ref:r,className:R("text-label text-tertiary px-3 py-2 font-sans uppercase",e),...t})});HN.displayName="SidebarGroupLabel";const Ff=te(["text-small flex w-full items-center gap-3 rounded-md px-3 py-2 font-sans transition-colors","text-secondary hover:bg-alt hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"],{variants:{active:{true:"bg-alt text-primary font-medium",false:""}},defaultVariants:{active:!1}}),GN=f.forwardRef(({className:e,active:t,icon:r,asChild:n=!1,children:o,...i},a)=>{const{collapsed:s}=Sc(),l=n?Oe:"button",c=y.jsxs(y.Fragment,{children:[r&&y.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&y.jsx("span",{className:"truncate",children:o})]});return n?y.jsx(Oe,{ref:a,className:R(Ff({active:t}),s&&"justify-center px-2",e),...i,children:f.isValidElement(o)?f.cloneElement(o,{children:y.jsxs(y.Fragment,{children:[r&&y.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&y.jsx("span",{className:"truncate",children:o.props.children})]})}):o}):y.jsx(l,{ref:a,className:R(Ff({active:t}),s&&"justify-center px-2",e),...i,children:c})});GN.displayName="SidebarItem";const qN=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n,setCollapsed:o,collapsible:i}=Sc();return i?y.jsx("button",{ref:r,type:"button",className:R("text-small flex w-full items-center rounded-md p-2 font-sans transition-colors","text-secondary hover:bg-alt hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),onClick:()=>o(!n),"aria-label":n?"Expand sidebar":"Collapse sidebar",...t,children:n?y.jsx(il,{className:"h-5 w-5"}):y.jsx(ol,{className:"h-5 w-5"})}):null});qN.displayName="SidebarTrigger";const YN=f.forwardRef(({className:e,...t},r)=>y.jsx("hr",{ref:r,className:R("border-border my-2 border-t",e),...t}));YN.displayName="SidebarSeparator";const XN=te("bg-contrast animate-pulse",{variants:{variant:{default:"rounded-md",circular:"rounded-full",text:"rounded"}},defaultVariants:{variant:"default"}}),ZN=f.forwardRef(({className:e,variant:t,width:r,height:n,style:o,...i},a)=>{const s={...o,...r!==void 0&&{width:typeof r=="number"?`${r}px`:r},...n!==void 0&&{height:typeof n=="number"?`${n}px`:n}};return y.jsx("div",{ref:a,"aria-hidden":"true",className:R(XN({variant:t,className:e})),style:s,...i})});ZN.displayName="Skeleton";const JN=te("inline-block animate-spin rounded-full border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]",{variants:{variant:{default:"text-sunflower",muted:"text-secondary",inverted:"text-white"},size:{sm:"h-4 w-4 border-2",default:"h-6 w-6 border-2",lg:"h-8 w-8 border-3",xl:"h-12 w-12 border-4"}},defaultVariants:{variant:"default",size:"default"}}),QN=f.forwardRef(({className:e,variant:t,size:r,label:n="Loading",...o},i)=>y.jsx("span",{ref:i,role:"status","aria-label":n,className:R(JN({variant:t,size:r,className:e})),...o,children:y.jsx("span",{className:"sr-only",children:n})}));QN.displayName="Spinner";const eM=te("flex",{variants:{direction:{vertical:"flex-col",horizontal:"flex-row"},gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"}},defaultVariants:{direction:"vertical",gap:"md",align:"stretch",justify:"start",wrap:"nowrap"}}),tM=f.forwardRef(({className:e,direction:t,gap:r,align:n,justify:o,wrap:i,as:a="div",asChild:s=!1,...l},c)=>{const u=s?Oe:a;return y.jsx(u,{className:R(eM({direction:t,gap:r,align:n,justify:o,wrap:i,className:e})),ref:c,...l})});tM.displayName="Stack";var Oc="Switch",[see]=Xe(Oc),[lee,cee]=see(Oc),rM=f.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[p,v]=f.useState(null),g=ie(t,w=>v(w)),m=f.useRef(!1),h=p?u||!!p.closest("form"):!0,[b,x]=at({prop:o,defaultProp:i??!1,onChange:c,caller:Oc});return y.jsxs(lee,{scope:r,checked:b,disabled:s,children:[y.jsx(Q.button,{type:"button",role:"switch","aria-checked":b,"aria-required":a,"data-state":aM(b),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:g,onClick:U(e.onClick,w=>{x(P=>!P),h&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),h&&y.jsx(iM,{control:p,bubbles:!m.current,name:n,value:l,checked:b,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});rM.displayName=Oc;var nM="SwitchThumb",oM=f.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=cee(nM,r);return y.jsx(Q.span,{"data-state":aM(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});oM.displayName=nM;var uee="SwitchBubbleInput",iM=f.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=ie(a,i),l=oc(r),c=ic(t);return f.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&v){const g=new Event("click",{bubbles:n});v.call(u,r),u.dispatchEvent(g)}},[l,r,n]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});iM.displayName=uee;function aM(e){return e?"checked":"unchecked"}var dee=rM,fee=oM;const sM=f.forwardRef(({className:e,...t},r)=>y.jsx(dee,{className:R("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-sunflower data-[state=unchecked]:bg-contrast",e),...t,ref:r,children:y.jsx(fee,{className:R("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform","data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));sM.displayName="Switch";const lM=te("text-body w-full caption-bottom border-collapse font-sans",{variants:{variant:{default:"border-separate border-spacing-0",striped:"border-separate border-spacing-0"},size:{default:"",compact:""}},defaultVariants:{variant:"default",size:"default"}}),pee=te("border-border bg-alt border-b",{variants:{},defaultVariants:{}}),vee=te("",{variants:{},defaultVariants:{}}),mee=te("transition-colors",{variants:{variant:{default:"border-border hover:bg-alt/50 border-b",striped:"border-border even:bg-alt/30 hover:bg-alt border-b"}},defaultVariants:{variant:"default"}}),hee=te("text-small text-primary text-left align-middle font-sans font-normal [&:has([role=checkbox])]:pr-0",{variants:{sortable:{true:"hover:bg-contrast cursor-pointer select-none",false:""},size:{default:"h-12 px-4",compact:"h-8 px-2"}},defaultVariants:{sortable:!1,size:"default"}}),gee=te("text-secondary align-middle [&:has([role=checkbox])]:pr-0",{variants:{size:{default:"p-4",compact:"p-2"}},defaultVariants:{size:"default"}}),Dm=f.createContext({size:"default"}),cM=f.forwardRef(({className:e,variant:t,size:r="default",...n},o)=>y.jsx(Dm.Provider,{value:{size:r??"default"},children:y.jsx("div",{className:"relative w-full overflow-auto",children:y.jsx("table",{ref:o,className:R(lM({variant:t,size:r}),e),...n})})}));cM.displayName="Table";const uM=f.forwardRef(({className:e,...t},r)=>y.jsx("thead",{ref:r,className:R(pee(),e),...t}));uM.displayName="TableHeader";const dM=f.forwardRef(({className:e,...t},r)=>y.jsx("tbody",{ref:r,className:R(vee(),e),...t}));dM.displayName="TableBody";const fM=f.forwardRef(({className:e,...t},r)=>y.jsx("tfoot",{ref:r,className:R("border-border bg-alt text-primary border-t font-normal",e),...t}));fM.displayName="TableFooter";const pM=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx("tr",{ref:n,className:R(mee({variant:t}),e),...r}));pM.displayName="TableRow";const vM=f.forwardRef(({className:e,children:t,sortable:r=!1,sortDirection:n=null,onSort:o,...i},a)=>{const{size:s}=f.useContext(Dm),l=()=>{r&&o&&o()},c=u=>{r&&o&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())};return y.jsx("th",{ref:a,className:R(hee({sortable:r,size:s}),e),onClick:l,onKeyDown:c,tabIndex:r?0:void 0,role:r?"button":void 0,"aria-sort":n==="asc"?"ascending":n==="desc"?"descending":void 0,...i,children:y.jsxs("div",{className:"flex items-center gap-2",children:[t,r&&y.jsxs("span",{className:"inline-flex flex-col","aria-hidden":"true",children:[y.jsx("svg",{className:R("h-3 w-3 transition-opacity",n==="asc"?"opacity-100":"opacity-30"),fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:y.jsx("path",{d:"M7 15l5-5 5 5"})}),y.jsx("svg",{className:R("-mt-1 h-3 w-3 transition-opacity",n==="desc"?"opacity-100":"opacity-30"),fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:y.jsx("path",{d:"M7 9l5 5 5-5"})})]})]})})});vM.displayName="TableHead";const mM=f.forwardRef(({className:e,...t},r)=>{const{size:n}=f.useContext(Dm);return y.jsx("td",{ref:r,className:R(gee({size:n}),e),...t})});mM.displayName="TableCell";const hM=f.forwardRef(({className:e,...t},r)=>y.jsx("caption",{ref:r,className:R("text-small text-tertiary mt-4",e),...t}));hM.displayName="TableCaption";function yee({data:e,initialSortKey:t=null,initialSortDirection:r="asc"}){const[n,o]=f.useState(t),[i,a]=f.useState(r),s=f.useCallback(c=>{o(u=>u===c?(a(d=>d==="asc"?"desc":d==="desc"?(o(null),null):"asc"),u):(a("asc"),c))},[]);return{sortedData:f.useMemo(()=>!n||!i?e:[...e].sort((c,u)=>{const d=c[n],p=u[n];if(d===p)return 0;let v=0;return typeof d=="string"&&typeof p=="string"?v=d.localeCompare(p):typeof d=="number"&&typeof p=="number"?v=d-p:v=String(d).localeCompare(String(p)),i==="asc"?v:-v}),[e,n,i]),sortKey:n,sortDirection:i,handleSort:s}}function bee({data:e,filterKeys:t}){const[r,n]=f.useState("");return{filteredData:f.useMemo(()=>{if(!r.trim())return e;const i=r.toLowerCase();return e.filter(a=>t&&t.length>0?t.some(s=>String(a[s]).toLowerCase().includes(i)):Object.values(a).some(s=>String(s).toLowerCase().includes(i)))},[e,r,t]),filterValue:r,setFilterValue:n}}const gM=f.createContext(null);function yM(){const e=f.useContext(gM);if(!e)throw new Error("Tab components must be used within a Tabs component");return e}const bM=f.forwardRef(({className:e,defaultValue:t="",value:r,onValueChange:n,children:o,...i},a)=>{const[s,l]=f.useState(t),c=f.useRef(new Map),u=r!==void 0?r:s,d=f.useCallback(v=>{r===void 0&&l(v),n?.(v)},[r,n]),p=f.useCallback((v,g)=>{g?c.current.set(v,g):c.current.delete(v)},[]);return y.jsx(gM.Provider,{value:{activeTab:u,setActiveTab:d,registerTrigger:p},children:y.jsx("div",{ref:a,className:R("w-full",e),...i,children:o})})});bM.displayName="Tabs";const xM=te("text-body inline-flex items-center font-sans transition-colors",{variants:{variant:{default:"border-border relative gap-1 border-b",pills:"rounded-pill bg-alt gap-2 p-1"}},defaultVariants:{variant:"default"}}),wM=f.createContext(null),PM=f.forwardRef(({className:e,variant:t,...r},n)=>{const o=f.useRef(null),[i,a]=f.useState(null),[s,l]=f.useState(!1),c=f.useRef(!1),u=f.useCallback(v=>{if(v&&o.current){const g=o.current.getBoundingClientRect();a({left:v.left-g.left,width:v.width}),c.current||(c.current=!0,l(!0))}},[]),d=f.useCallback(v=>{o.current=v,typeof n=="function"?n(v):n&&(n.current=v)},[n]),p=f.useMemo(()=>({variant:t??"default",setActiveRect:u}),[t,u]);return y.jsx(wM.Provider,{value:p,children:y.jsxs("div",{ref:d,role:"tablist",className:R(xM({variant:t,className:e})),...r,children:[r.children,t!=="pills"&&i&&y.jsx("span",{className:R("bg-sunflower pointer-events-none absolute bottom-0 h-0.5",s&&"transition-all duration-200 ease-out"),style:{left:i.left,width:i.width},"aria-hidden":"true"})]})})});PM.displayName="TabList";const SM=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-secondary hover:text-primary data-[state=active]:text-primary px-4 py-2",pills:"rounded-pill text-secondary hover:text-primary data-[state=active]:bg-card data-[state=active]:text-primary px-4 py-1.5 data-[state=active]:shadow-sm"},size:{sm:"text-small",default:"text-body",lg:"text-body font-medium"}},defaultVariants:{variant:"default",size:"default"}}),OM=f.forwardRef(({className:e,variant:t,size:r,value:n,...o},i)=>{const{activeTab:a,setActiveTab:s}=yM(),l=f.useContext(wM),c=f.useRef(null),u=a===n,d=f.useCallback(p=>{c.current=p,typeof i=="function"?i(p):i&&(i.current=p)},[i]);return f.useEffect(()=>{if(u&&c.current&&l){const p=()=>{if(c.current){const v=c.current.getBoundingClientRect();l.setActiveRect({left:v.left,width:v.width})}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)}},[u,l]),y.jsx("button",{ref:d,role:"tab",type:"button","aria-selected":u,"data-state":u?"active":"inactive",onClick:()=>s(n),className:R(SM({variant:t,size:r,className:e})),...o})});OM.displayName="TabTrigger";const EM=te("font-sans",{variants:{size:{sm:"text-small mt-3",default:"text-body mt-4",lg:"text-body mt-6"}},defaultVariants:{size:"default"}}),CM=f.forwardRef(({className:e,size:t,value:r,...n},o)=>{const{activeTab:i}=yM(),a=i===r;return a?y.jsx("div",{ref:o,role:"tabpanel","data-state":a?"active":"inactive",className:R(EM({size:t,className:e})),...n}):null});CM.displayName="TabContent";const AM=te("font-sans",{variants:{variant:{lead:"text-lead text-primary","semi-lead":"text-semi-lead text-secondary","body-lg":"text-body-lg text-secondary",body:"text-body text-secondary",descriptive:"text-descriptive text-secondary",label:"text-label text-tertiary","label-sm":"text-label-sm text-tertiary"},weight:{regular:"font-normal",medium:"font-medium"}},defaultVariants:{variant:"body",weight:"regular"}}),_M=f.forwardRef(({className:e,variant:t="body",weight:r="regular",as:n="p",asChild:o=!1,...i},a)=>{const s=o?Oe:n;return y.jsx(s,{className:R(AM({variant:t,weight:r,className:e})),ref:a,...i})});_M.displayName="Text";const TM=te("bg-card text-body text-primary placeholder:text-tertiary flex min-h-[80px] w-full rounded-md border px-3 py-2 font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-border focus-visible:ring-sunflower",error:"border-error focus-visible:ring-error"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{variant:"default",resize:"vertical"}}),jM=f.forwardRef(({className:e,variant:t,resize:r,...n},o)=>y.jsx("textarea",{className:R(TM({variant:t,resize:r}),e),ref:o,...n}));jM.displayName="Textarea";var $m="ToastProvider",[Lm,xee,wee]=bi("Toast"),[NM]=Xe("Toast",[wee]),[Pee,Ec]=NM($m),MM=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=f.useState(null),[c,u]=f.useState(0),d=f.useRef(!1),p=f.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${$m}\`. Expected non-empty \`string\`.`),y.jsx(Lm.Provider,{scope:t,children:y.jsx(Pee,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:f.useCallback(()=>u(v=>v+1),[]),onToastRemove:f.useCallback(()=>u(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:a})})};MM.displayName=$m;var IM="ToastViewport",See=["F8"],zf="toast.viewportPause",Bf="toast.viewportResume",kM=f.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=See,label:o="Notifications ({hotkey})",...i}=e,a=Ec(IM,r),s=xee(r),l=f.useRef(null),c=f.useRef(null),u=f.useRef(null),d=f.useRef(null),p=ie(t,d,a.onViewportChange),v=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=a.toastCount>0;f.useEffect(()=>{const h=b=>{n.length!==0&&n.every(w=>b[w]||b.code===w)&&d.current?.focus()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[n]),f.useEffect(()=>{const h=l.current,b=d.current;if(g&&h&&b){const x=()=>{if(!a.isClosePausedRef.current){const S=new CustomEvent(zf);b.dispatchEvent(S),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const S=new CustomEvent(Bf);b.dispatchEvent(S),a.isClosePausedRef.current=!1}},P=S=>{!h.contains(S.relatedTarget)&&w()},O=()=>{h.contains(document.activeElement)||w()};return h.addEventListener("focusin",x),h.addEventListener("focusout",P),h.addEventListener("pointermove",x),h.addEventListener("pointerleave",O),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{h.removeEventListener("focusin",x),h.removeEventListener("focusout",P),h.removeEventListener("pointermove",x),h.removeEventListener("pointerleave",O),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[g,a.isClosePausedRef]);const m=f.useCallback(({tabbingDirection:h})=>{const x=s().map(w=>{const P=w.ref.current,O=[P,...Dee(P)];return h==="forwards"?O:O.reverse()});return(h==="forwards"?x.reverse():x).flat()},[s]);return f.useEffect(()=>{const h=d.current;if(h){const b=x=>{const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const O=document.activeElement,S=x.shiftKey;if(x.target===h&&S){c.current?.focus();return}const N=m({tabbingDirection:S?"backwards":"forwards"}),D=N.findIndex($=>$===O);xd(N.slice(D+1))?x.preventDefault():S?c.current?.focus():u.current?.focus()}};return h.addEventListener("keydown",b),()=>h.removeEventListener("keydown",b)}},[s,m]),y.jsxs(lR,{ref:l,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&y.jsx(Vf,{ref:c,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"forwards"});xd(h)}}),y.jsx(Lm.Slot,{scope:r,children:y.jsx(Q.ol,{tabIndex:-1,...i,ref:p})}),g&&y.jsx(Vf,{ref:u,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"backwards"});xd(h)}})]})});kM.displayName=IM;var RM="ToastFocusProxy",Vf=f.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=Ec(RM,r);return y.jsx(bc,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{const s=a.relatedTarget;!i.viewport?.contains(s)&&n()}})});Vf.displayName=RM;var ta="Toast",Oee="toast.swipeStart",Eee="toast.swipeMove",Cee="toast.swipeCancel",Aee="toast.swipeEnd",DM=f.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s,l]=at({prop:n,defaultProp:o??!0,onChange:i,caller:ta});return y.jsx(lt,{present:r||s,children:y.jsx(jee,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:st(e.onPause),onResume:st(e.onResume),onSwipeStart:U(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:U(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:U(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:U(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});DM.displayName=ta;var[_ee,Tee]=NM(ta,{onClose(){}}),jee=f.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:v,...g}=e,m=Ec(ta,r),[h,b]=f.useState(null),x=ie(t,k=>b(k)),w=f.useRef(null),P=f.useRef(null),O=o||m.duration,S=f.useRef(0),E=f.useRef(O),C=f.useRef(0),{onToastAdd:N,onToastRemove:D}=m,$=st(()=>{h?.contains(document.activeElement)&&m.viewport?.focus(),a()}),_=f.useCallback(k=>{!k||k===1/0||(window.clearTimeout(C.current),S.current=new Date().getTime(),C.current=window.setTimeout($,k))},[$]);f.useEffect(()=>{const k=m.viewport;if(k){const V=()=>{_(E.current),c?.()},B=()=>{const K=new Date().getTime()-S.current;E.current=E.current-K,window.clearTimeout(C.current),l?.()};return k.addEventListener(zf,B),k.addEventListener(Bf,V),()=>{k.removeEventListener(zf,B),k.removeEventListener(Bf,V)}}},[m.viewport,O,l,c,_]),f.useEffect(()=>{i&&!m.isClosePausedRef.current&&_(O)},[i,O,m.isClosePausedRef,_]),f.useEffect(()=>(N(),()=>D()),[N,D]);const M=f.useMemo(()=>h?WM(h):null,[h]);return m.viewport?y.jsxs(y.Fragment,{children:[M&&y.jsx(Nee,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:M}),y.jsx(_ee,{scope:r,onClose:$,children:yi.createPortal(y.jsx(Lm.ItemSlot,{scope:r,children:y.jsx(sR,{asChild:!0,onEscapeKeyDown:U(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||$(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(Q.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...g,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:U(e.onKeyDown,k=>{k.key==="Escape"&&(s?.(k.nativeEvent),k.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:U(e.onPointerDown,k=>{k.button===0&&(w.current={x:k.clientX,y:k.clientY})}),onPointerMove:U(e.onPointerMove,k=>{if(!w.current)return;const V=k.clientX-w.current.x,B=k.clientY-w.current.y,K=!!P.current,T=["left","right"].includes(m.swipeDirection),I=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,G=T?I(0,V):0,ee=T?0:I(0,B),re=k.pointerType==="touch"?10:2,oe={x:G,y:ee},ne={originalEvent:k,delta:oe};K?(P.current=oe,La(Eee,d,ne,{discrete:!1})):Bw(oe,m.swipeDirection,re)?(P.current=oe,La(Oee,u,ne,{discrete:!1}),k.target.setPointerCapture(k.pointerId)):(Math.abs(V)>re||Math.abs(B)>re)&&(w.current=null)}),onPointerUp:U(e.onPointerUp,k=>{const V=P.current,B=k.target;if(B.hasPointerCapture(k.pointerId)&&B.releasePointerCapture(k.pointerId),P.current=null,w.current=null,V){const K=k.currentTarget,T={originalEvent:k,delta:V};Bw(V,m.swipeDirection,m.swipeThreshold)?La(Aee,v,T,{discrete:!0}):La(Cee,p,T,{discrete:!0}),K.addEventListener("click",I=>I.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),Nee=e=>{const{__scopeToast:t,children:r,...n}=e,o=Ec(ta,t),[i,a]=f.useState(!1),[s,l]=f.useState(!1);return kee(()=>a(!0)),f.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:y.jsx(Ln,{asChild:!0,children:y.jsx(bc,{...n,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",r]})})})},Mee="ToastTitle",$M=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});$M.displayName=Mee;var Iee="ToastDescription",LM=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});LM.displayName=Iee;var FM="ToastAction",zM=f.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?y.jsx(VM,{altText:r,asChild:!0,children:y.jsx(Fm,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${FM}\`. Expected non-empty \`string\`.`),null)});zM.displayName=FM;var BM="ToastClose",Fm=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=Tee(BM,r);return y.jsx(VM,{asChild:!0,children:y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,o.onClose)})})});Fm.displayName=BM;var VM=f.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return y.jsx(Q.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function WM(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),Ree(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...WM(n))}}),t}function La(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Uf(o,i):o.dispatchEvent(i)}var Bw=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),i=n>o;return t==="left"||t==="right"?i&&n>r:!i&&o>r};function kee(e=()=>{}){const t=st(e);qe(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function Ree(e){return e.nodeType===e.ELEMENT_NODE}function Dee(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function xd(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var $ee=MM,Lee=kM,Fee=DM,zee=$M,Bee=LM,Vee=zM,Wee=Fm;const Kee=$ee,KM=f.forwardRef(({className:e,...t},r)=>y.jsx(Lee,{ref:r,className:R("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-105",e),...t}));KM.displayName="ToastViewport";const UM=te(["group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-lg border p-4 shadow-lg transition-all","data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none","data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out","data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full"],{variants:{variant:{default:"border-border bg-main text-primary",success:"border-sunflower/30 bg-eggshell text-primary [&>svg]:text-sunflower",error:"border-error/30 bg-main text-primary [&>svg]:text-error",warning:"border-sunflower/50 bg-vanilla text-primary [&>svg]:text-sunflower",info:"border-electric-blue/30 bg-main text-primary [&>svg]:text-electric-blue"}},defaultVariants:{variant:"default"}}),HM=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(Fee,{ref:n,className:R(UM({variant:t}),e),...r}));HM.displayName="Toast";const GM=f.forwardRef(({className:e,...t},r)=>y.jsx(Vee,{ref:r,className:R("rounded-pill border-border inline-flex h-8 shrink-0 items-center justify-center border bg-transparent px-3 text-sm font-medium","ring-offset-main transition-colors","hover:bg-alt","focus:ring-sunflower focus:ring-2 focus:ring-offset-2 focus:outline-none","disabled:pointer-events-none disabled:opacity-50","group-[.error]:border-error/30 group-[.error]:hover:border-error/50 group-[.error]:hover:bg-error/10 group-[.error]:focus:ring-error",e),...t}));GM.displayName="ToastAction";const qM=f.forwardRef(({className:e,...t},r)=>y.jsxs(Wee,{ref:r,className:R("text-secondary absolute top-2 right-2 rounded-sm p-1 opacity-0 transition-opacity","hover:text-primary","focus:ring-sunflower focus:opacity-100 focus:ring-2 focus:outline-none","group-hover:opacity-100","group-[.error]:text-error/70 group-[.error]:hover:text-error group-[.error]:focus:ring-error group-[.error]:focus:ring-offset-error",e),"toast-close":"",...t,children:[y.jsx(c0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]}));qM.displayName="ToastClose";const YM=f.forwardRef(({className:e,...t},r)=>y.jsx(zee,{ref:r,className:R("text-sm",e),...t}));YM.displayName="ToastTitle";const XM=f.forwardRef(({className:e,...t},r)=>y.jsx(Bee,{ref:r,className:R("text-secondary text-sm",e),...t}));XM.displayName="ToastDescription";var Uee=Symbol("radix.slottable");function Hee(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Uee,t}var[Cc]=Xe("Tooltip",[rn]),Ac=rn(),ZM="TooltipProvider",Gee=700,Wf="tooltip.open",[qee,zm]=Cc(ZM),JM=e=>{const{__scopeTooltip:t,delayDuration:r=Gee,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,a=f.useRef(!0),s=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),y.jsx(qee,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:f.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:i})};JM.displayName=ZM;var hi="Tooltip",[Yee,ra]=Cc(hi),QM=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=zm(hi,e.__scopeTooltip),c=Ac(t),[u,d]=f.useState(null),p=vt(),v=f.useRef(0),g=a??l.disableHoverableContent,m=s??l.delayDuration,h=f.useRef(!1),[b,x]=at({prop:n,defaultProp:o??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(Wf))):l.onClose(),i?.(E)},caller:hi}),w=f.useMemo(()=>b?h.current?"delayed-open":"instant-open":"closed",[b]),P=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,x(!0)},[x]),O=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x(!1)},[x]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{h.current=!0,x(!0),v.current=0},m)},[m,x]);return f.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),y.jsx(qi,{...c,children:y.jsx(Yee,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?S():P()},[l.isOpenDelayedRef,S,P]),onTriggerLeave:f.useCallback(()=>{g?O():(window.clearTimeout(v.current),v.current=0)},[O,g]),onOpen:P,onClose:O,disableHoverableContent:g,children:r})})};QM.displayName=hi;var Kf="TooltipTrigger",eI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ra(Kf,r),i=zm(Kf,r),a=Ac(r),s=f.useRef(null),l=ie(t,s,o.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(Yi,{asChild:!0,...a,children:y.jsx(Q.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:U(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:U(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:U(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:U(e.onBlur,o.onClose),onClick:U(e.onClick,o.onClose)})})});eI.displayName=Kf;var Bm="TooltipPortal",[Xee,Zee]=Cc(Bm,{forceMount:void 0}),tI=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=ra(Bm,t);return y.jsx(Xee,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};tI.displayName=Bm;var yo="TooltipContent",rI=f.forwardRef((e,t)=>{const r=Zee(yo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=ra(yo,e.__scopeTooltip);return y.jsx(lt,{present:n||a.open,children:a.disableHoverableContent?y.jsx(nI,{side:o,...i,ref:t}):y.jsx(Jee,{side:o,...i,ref:t})})}),Jee=f.forwardRef((e,t)=>{const r=ra(yo,e.__scopeTooltip),n=zm(yo,e.__scopeTooltip),o=f.useRef(null),i=ie(t,o),[a,s]=f.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,p=f.useCallback(()=>{s(null),d(!1)},[d]),v=f.useCallback((g,m)=>{const h=g.currentTarget,b={x:g.clientX,y:g.clientY},x=rte(b,h.getBoundingClientRect()),w=nte(b,x),P=ote(m.getBoundingClientRect()),O=ate([...w,...P]);s(O),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(l&&u){const g=h=>v(h,u),m=h=>v(h,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",m)}}},[l,u,v,p]),f.useEffect(()=>{if(a){const g=m=>{const h=m.target,b={x:m.clientX,y:m.clientY},x=l?.contains(h)||u?.contains(h),w=!ite(b,a);x?p():w&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,a,c,p]),y.jsx(nI,{...e,ref:i})}),[Qee,ete]=Cc(hi,{isInside:!1}),tte=Hee("TooltipContent"),nI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=ra(yo,r),c=Ac(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(Wf,u),()=>document.removeEventListener(Wf,u)),[u]),f.useEffect(()=>{if(l.trigger){const d=p=>{p.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),y.jsx($n,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(dc,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(tte,{children:n}),y.jsx(Qee,{scope:r,isInside:!0,children:y.jsx(wQ,{id:l.contentId,role:"tooltip",children:o||n})})]})})});rI.displayName=yo;var oI="TooltipArrow",iI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Ac(r);return ete(oI,r).isInside?null:y.jsx(fc,{...o,...n,ref:t})});iI.displayName=oI;function rte(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function nte(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function ote(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function ite(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,u=s.y,d=l.x,p=l.y;u>n!=p>n&&r<(d-c)*(n-u)/(p-u)+c&&(o=!o)}return o}function ate(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ste(t)}function ste(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],a=r[r.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var lte=JM,cte=QM,ute=eI,dte=tI,fte=rI,pte=iI;const vte=lte,mte=cte,hte=ute,aI=dte,Vm=f.forwardRef(({className:e,...t},r)=>y.jsx(pte,{ref:r,className:R("fill-primary",e),...t}));Vm.displayName="TooltipArrow";const sI=te(["z-50 overflow-hidden rounded-md px-3 py-1.5 font-sans shadow-md","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","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"],{variants:{variant:{default:"bg-primary text-small text-white",light:"bg-card text-primary text-small border-border border"}},defaultVariants:{variant:"default"}}),lI=f.forwardRef(({className:e,variant:t,sideOffset:r=4,showArrow:n=!1,children:o,...i},a)=>y.jsx(aI,{children:y.jsxs(fte,{ref:a,sideOffset:r,className:R(sI({variant:t,className:e})),...i,children:[o,n&&y.jsx(Vm,{className:t==="light"?"fill-card":"fill-primary"})]})}));lI.displayName="TooltipContent";exports.Accordion=O0;exports.AccordionContent=_0;exports.AccordionItem=E0;exports.AccordionTrigger=A0;exports.ActionsMenuButton=JT;exports.AlertDialog=UD;exports.AlertDialogAction=kP;exports.AlertDialogCancel=RP;exports.AlertDialogContent=TP;exports.AlertDialogDescription=IP;exports.AlertDialogFooter=NP;exports.AlertDialogHeader=jP;exports.AlertDialogOverlay=rp;exports.AlertDialogPortal=AP;exports.AlertDialogTitle=MP;exports.AlertDialogTrigger=HD;exports.Badge=$P;exports.Banner=FP;exports.BarChart=qC;exports.BreadcrumbItem=ZC;exports.BreadcrumbSeparator=cm;exports.Breadcrumbs=XC;exports.Button=CP;exports.Card=QC;exports.Checkbox=lA;exports.ContextMenu=jZ;exports.ContextMenuCheckboxItem=q_;exports.ContextMenuContent=H_;exports.ContextMenuGroup=MZ;exports.ContextMenuItem=G_;exports.ContextMenuLabel=X_;exports.ContextMenuPortal=W_;exports.ContextMenuRadioGroup=kZ;exports.ContextMenuRadioItem=Y_;exports.ContextMenuSeparator=Z_;exports.ContextMenuShortcut=J_;exports.ContextMenuSub=IZ;exports.ContextMenuSubContent=U_;exports.ContextMenuSubTrigger=K_;exports.ContextMenuTrigger=NZ;exports.DatePicker=hT;exports.DateTimePicker=xT;exports.Divider=PT;exports.DropdownMenu=IJ;exports.DropdownMenuCheckboxItem=GT;exports.DropdownMenuContent=UT;exports.DropdownMenuGroup=RJ;exports.DropdownMenuItem=HT;exports.DropdownMenuLabel=YT;exports.DropdownMenuPortal=VT;exports.DropdownMenuRadioGroup=$J;exports.DropdownMenuRadioItem=qT;exports.DropdownMenuSeparator=XT;exports.DropdownMenuShortcut=ZT;exports.DropdownMenuSub=DJ;exports.DropdownMenuSubContent=KT;exports.DropdownMenuSubTrigger=WT;exports.DropdownMenuTrigger=kJ;exports.EngrateLogo=ej;exports.Eyebrow=rj;exports.Footer=oj;exports.FooterBottom=cj;exports.FooterContent=ij;exports.FooterCopyright=uj;exports.FooterHeading=sj;exports.FooterLinks=lj;exports.FooterSection=aj;exports.FormField=pj;exports.FormMessage=Tm;exports.Grid=vj;exports.GridItem=mj;exports.Header=gj;exports.HeaderActions=xj;exports.HeaderLogo=yj;exports.HeaderNav=bj;exports.Heading=Pj;exports.Input=Oj;exports.Label=jm;exports.LineChart=Cj;exports.Link=_j;exports.Modal=QJ;exports.ModalClose=tQ;exports.ModalContent=Nj;exports.ModalDescription=Rj;exports.ModalFooter=Ij;exports.ModalHeader=Mj;exports.ModalOverlay=Nm;exports.ModalPortal=Tj;exports.ModalTitle=kj;exports.ModalTrigger=eQ;exports.Pagination=Lj;exports.PaginationItem=ro;exports.PieChart=zj;exports.ProgressIndicator=Wj;exports.RadioGroup=rN;exports.RadioGroupItem=nN;exports.Select=nee;exports.SelectContent=RN;exports.SelectGroup=oee;exports.SelectItem=$N;exports.SelectLabel=DN;exports.SelectScrollDownButton=Rm;exports.SelectScrollUpButton=km;exports.SelectSeparator=LN;exports.SelectTrigger=kN;exports.SelectValue=iee;exports.Sidebar=BN;exports.SidebarContent=WN;exports.SidebarFooter=KN;exports.SidebarGroup=UN;exports.SidebarGroupLabel=HN;exports.SidebarHeader=VN;exports.SidebarItem=GN;exports.SidebarSeparator=YN;exports.SidebarTrigger=qN;exports.Skeleton=ZN;exports.Spinner=QN;exports.Stack=tM;exports.Switch=sM;exports.TabContent=CM;exports.TabList=PM;exports.TabTrigger=OM;exports.Table=cM;exports.TableBody=dM;exports.TableCaption=hM;exports.TableCell=mM;exports.TableFooter=fM;exports.TableHead=vM;exports.TableHeader=uM;exports.TableRow=pM;exports.Tabs=bM;exports.Text=_M;exports.Textarea=jM;exports.Toast=HM;exports.ToastAction=GM;exports.ToastClose=qM;exports.ToastDescription=XM;exports.ToastProvider=Kee;exports.ToastTitle=YM;exports.ToastViewport=KM;exports.Tooltip=mte;exports.TooltipArrow=Vm;exports.TooltipContent=lI;exports.TooltipPortal=aI;exports.TooltipProvider=vte;exports.TooltipTrigger=hte;exports.accordionTriggerVariants=C0;exports.accordionVariants=S0;exports.alertDialogContentVariants=_P;exports.badgeVariants=DP;exports.bannerVariants=LP;exports.barChartVariants=GC;exports.breadcrumbItemVariants=_f;exports.breadcrumbsVariants=YC;exports.buttonVariants=dl;exports.calendarDayVariants=mT;exports.cardVariants=JC;exports.cn=R;exports.datePickerTriggerVariants=vT;exports.dateTimePickerCalendarDayVariants=bT;exports.dateTimePickerTriggerVariants=yT;exports.dividerVariants=wT;exports.engrateLogoVariants=QT;exports.eyebrowVariants=tj;exports.footerVariants=nj;exports.gridItemVariants=qJ;exports.gridVariants=WJ;exports.headerVariants=hj;exports.headingVariants=wj;exports.inputVariants=Sj;exports.labelVariants=fj;exports.lineChartVariants=Ej;exports.linkVariants=Aj;exports.modalContentVariants=jj;exports.paginationItemVariants=$j;exports.paginationVariants=Dj;exports.pieChartVariants=Fj;exports.progressBarVariants=Vj;exports.progressIndicatorVariants=Bj;exports.sidebarItemVariants=Ff;exports.sidebarVariants=zN;exports.skeletonVariants=XN;exports.spinnerVariants=JN;exports.stackVariants=eM;exports.tabContentVariants=EM;exports.tabListVariants=xM;exports.tabTriggerVariants=SM;exports.tableVariants=lM;exports.textVariants=AM;exports.textareaVariants=TM;exports.toastVariants=UM;exports.tooltipContentVariants=sI;exports.useFilterableTable=bee;exports.useSidebarContext=Sc;exports.useSortableTable=yee;