@engrate/components 0.1.15 → 0.1.16

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,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),A=require("react"),xi=require("react-dom");function qw(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=qw(A),wi=qw(xi);function DI(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 Be(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,$I(o,...t)]}function $I(...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 Zm(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=Zm(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():Zm(e[o],null)}}}}function re(...e){return f.useCallback(cr(...e),e)}function Jm(e){const t=LI(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 LI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=VI(o),s=BI(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 zI=Symbol("radix.slottable");function FI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zI}function BI(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 bo(e){const t=e+"CollectionProvider",[r,n]=Be(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=Jm(s),c=A.forwardRef((m,h)=>{const{scope:b,children:x}=m,w=i(s,b),S=re(h,w.collectionRef);return y.jsx(l,{ref:S,children:x})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=Jm(u),v=A.forwardRef((m,h)=>{const{scope:b,children:x,...w}=m,S=A.useRef(null),E=re(h,S),P=i(u,b);return A.useEffect(()=>(P.itemMap.set(S,{ref:S,...w}),()=>{P.itemMap.delete(S)})),y.jsx(p,{[d]:"",ref:E,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((P,O)=>w.indexOf(P.ref.current)-w.indexOf(O.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 Ye=globalThis?.document?f.useLayoutEffect:()=>{},WI=f[" useInsertionEffect ".trim().toString()]||Ye;function nt({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,a]=KI({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=UI(u)?u(e):u;d!==e&&a.current?.(d)}else i(u)},[s,e,i,a]);return[l,c]}function KI({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return WI(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function UI(e){return typeof e=="function"}function HI(e){const t=GI(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(YI);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 GI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=ZI(o),s=XI(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 qI=Symbol("radix.slottable");function YI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qI}function XI(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 ZI(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 JI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=JI.reduce((e,t)=>{const r=HI(`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 Zf(e,t){e&&wi.flushSync(()=>e.dispatchEvent(t))}function QI(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var lt=e=>{const{present:t,children:r}=e,n=ek(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=re(n.ref,tk(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};lt.displayName="Presence";function ek(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),a=e?"mounted":"unmounted",[s,l]=QI(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=aa(n.current);i.current=s==="mounted"?c:"none"},[s]),Ye(()=>{const c=n.current,u=o.current;if(u!==e){const p=i.current,v=aa(c);e?l("MOUNT"):v==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ye(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=v=>{const m=aa(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=aa(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 aa(e){return e?.animationName||"none"}function tk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var rk=f[" useId ".trim().toString()]||(()=>{}),nk=0;function vt(e){const[t,r]=f.useState(rk());return Ye(()=>{r(n=>n??String(nk++))},[e]),e||(t?`radix-${t}`:"")}var il="Collapsible",[ok,Yw]=Be(il),[ik,Jf]=ok(il),Xw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,c]=nt({prop:n,defaultProp:o??!1,onChange:a,caller:il});return y.jsx(ik,{scope:r,disabled:i,contentId:vt(),open:l,onOpenToggle:f.useCallback(()=>c(u=>!u),[c]),children:y.jsx(Q.div,{"data-state":ep(l),"data-disabled":i?"":void 0,...s,ref:t})})});Xw.displayName=il;var Zw="CollapsibleTrigger",Jw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Jf(Zw,r);return y.jsx(Q.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ep(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:U(e.onClick,o.onOpenToggle)})});Jw.displayName=Zw;var Qf="CollapsibleContent",Qw=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Jf(Qf,e.__scopeCollapsible);return y.jsx(lt,{present:r||o.open,children:({present:i})=>y.jsx(ak,{...n,ref:t,present:i})})});Qw.displayName=Qf;var ak=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,a=Jf(Qf,r),[s,l]=f.useState(n),c=f.useRef(null),u=re(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)},[]),Ye(()=>{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":ep(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 ep(e){return e?"open":"closed"}var sk=Xw,lk=Jw,ck=Qw,uk=f.createContext(void 0);function xo(e){const t=f.useContext(uk);return e||t||"ltr"}var Ut="Accordion",dk=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[tp,fk,pk]=bo(Ut),[al]=Be(Ut,[pk,Yw]),rp=Yw(),e0=A.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return y.jsx(tp.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?y.jsx(gk,{...i,ref:t}):y.jsx(hk,{...o,ref:t})})});e0.displayName=Ut;var[t0,vk]=al(Ut),[r0,mk]=al(Ut,{collapsible:!1}),hk=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,l]=nt({prop:r,defaultProp:n??"",onChange:o,caller:Ut});return y.jsx(t0,{scope:e.__scopeAccordion,value:A.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:A.useCallback(()=>i&&l(""),[i,l]),children:y.jsx(r0,{scope:e.__scopeAccordion,collapsible:i,children:y.jsx(n0,{...a,ref:t})})})}),gk=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[a,s]=nt({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(t0,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:y.jsx(r0,{scope:e.__scopeAccordion,collapsible:!0,children:y.jsx(n0,{...i,ref:t})})})}),[yk,sl]=al(Ut),n0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...a}=e,s=A.useRef(null),l=re(s,t),c=fk(r),d=xo(o)==="ltr",p=U(e.onKeyDown,v=>{if(!dk.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,S=b-1,E=()=>{x=h+1,x>S&&(x=w)},P=()=>{x=h-1,x<w&&(x=S)};switch(v.key){case"Home":x=w;break;case"End":x=S;break;case"ArrowRight":i==="horizontal"&&(d?E():P());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(d?P():E());break;case"ArrowUp":i==="vertical"&&P();break}const O=x%b;m[O].ref.current?.focus()});return y.jsx(yk,{scope:r,disabled:n,direction:o,orientation:i,children:y.jsx(tp.Slot,{scope:r,children:y.jsx(Q.div,{...a,"data-orientation":i,ref:l,onKeyDown:n?void 0:p})})})}),Za="AccordionItem",[bk,np]=al(Za),o0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=sl(Za,r),a=vk(Za,r),s=rp(r),l=vt(),c=n&&a.value.includes(n)||!1,u=i.disabled||e.disabled;return y.jsx(bk,{scope:r,open:c,disabled:u,triggerId:l,children:y.jsx(sk,{"data-orientation":i.orientation,"data-state":u0(c),...s,...o,ref:t,disabled:u,open:c,onOpenChange:d=>{d?a.onItemOpen(n):a.onItemClose(n)}})})});o0.displayName=Za;var i0="AccordionHeader",a0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sl(Ut,r),i=np(i0,r);return y.jsx(Q.h3,{"data-orientation":o.orientation,"data-state":u0(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});a0.displayName=i0;var Ed="AccordionTrigger",s0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sl(Ut,r),i=np(Ed,r),a=mk(Ed,r),s=rp(r);return y.jsx(tp.ItemSlot,{scope:r,children:y.jsx(lk,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...n,ref:t})})});s0.displayName=Ed;var l0="AccordionContent",c0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sl(Ut,r),i=np(l0,r),a=rp(r);return y.jsx(ck,{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}})});c0.displayName=l0;function u0(e){return e?"open":"closed"}var xk=e0,wk=o0,Sk=a0,Pk=s0,Ek=c0;function d0(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=d0(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=d0(e))&&(n&&(n+=" "),n+=t);return n}const Qm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,eh=de,te=(e,t)=>r=>{var n;if(t?.variants==null)return eh(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=Qm(u)||Qm(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 eh(e,a,l,r?.class,r?.className)};const f0=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const Ok=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Ck=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const th=e=>{const t=Ck(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ak={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 _k=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,...Ak,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:f0("lucide",o),...!i&&!_k(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:f0(`lucide-${Ok(th(e))}`,`lucide-${e}`,n),...o}));return r.displayName=th(e),r};const jk=[["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"}]],p0=Dn("calendar",jk);const Nk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mk=Dn("chevron-down",Nk);const Ik=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ll=Dn("chevron-left",Ik);const kk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cl=Dn("chevron-right",kk);const Rk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Dk=Dn("clock",Rk);const $k=[["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"}]],v0=Dn("ellipsis",$k);const Lk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],m0=Dn("x",Lk),zk=(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}),h0=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ja="-",rh=[],Bk="arbitrary..",Vk=e=>{const t=Kk(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Wk(a);const s=a.split(Ja),l=s[0]===""&&s.length>1?1:0;return g0(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=n[a],c=r[a];return l?c?zk(c,l):l:c||rh}return r[a]||rh}}},g0=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=g0(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const s=t===0?e.join(Ja):e.slice(t).join(Ja),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(s))return u.classGroupId}},Wk=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?Bk+n:void 0})(),Kk=e=>{const{theme:t,classGroups:r}=e;return Uk(r,t)},Uk=(e,t)=>{const r=h0();for(const n in e){const o=e[n];op(o,r,n,t)}return r},op=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];Hk(a,t,r,n)}},Hk=(e,t,r,n)=>{if(typeof e=="string"){Gk(e,t,r);return}if(typeof e=="function"){qk(e,t,r,n);return}Yk(e,t,r,n)},Gk=(e,t,r)=>{const n=e===""?t:y0(t,e);n.classGroupId=r},qk=(e,t,r,n)=>{if(Xk(e)){op(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Fk(r,e))},Yk=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];op(l,y0(t,s),r,n)}},y0=(e,t)=>{let r=e;const n=t.split(Ja),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=h0(),r.nextPart.set(a,s)),r=s}return r},Xk=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Zk=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)}}},Od="!",nh=":",Jk=[],oh=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Qk=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===nh){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(Od)?(p=d.slice(0,-1),v=!0):d.startsWith(Od)&&(p=d.slice(1),v=!0);const g=c&&c>l?c-l:void 0;return oh(i,v,p,g)};if(t){const o=t+nh,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):oh(Jk,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},eR=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}},tR=e=>({cache:Zk(e.cacheSize),parseClassName:Qk(e),sortModifiers:eR(e),...Vk(e)}),rR=/\s+/,nR=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(rR);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+Od:x,S=w+b;if(a.indexOf(S)>-1)continue;a.push(S);const E=o(b,h);for(let P=0;P<E.length;++P){const O=E[P];a.push(w+O)}l=u+(l.length>0?" "+l:l)}return l},oR=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=b0(r))&&(o&&(o+=" "),o+=n);return o},b0=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=b0(e[n]))&&(r&&(r+=" "),r+=t);return r},ih=(e,...t)=>{let r,n,o,i;const a=l=>{const c=t.reduce((u,d)=>d(u),e());return r=tR(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=nR(l,r);return o(l,u),u};return i=a,(...l)=>i(oR(...l))},iR=[],ze=e=>{const t=r=>r[e]||iR;return t.isThemeGetter=!0,t},x0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aR=/^\d+\/\d+$/,sR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lR=/\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$/,cR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Hn=e=>aR.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),Dr=e=>!!e&&Number.isInteger(Number(e)),Nc=e=>e.endsWith("%")&&ae(e.slice(0,-1)),dr=e=>sR.test(e),fR=()=>!0,pR=e=>lR.test(e)&&!cR.test(e),S0=()=>!1,vR=e=>uR.test(e),mR=e=>dR.test(e),hR=e=>!X(e)&&!Z(e),gR=e=>wo(e,O0,S0),X=e=>x0.test(e),ln=e=>wo(e,C0,pR),Mc=e=>wo(e,SR,ae),ah=e=>wo(e,P0,S0),yR=e=>wo(e,E0,mR),sa=e=>wo(e,A0,vR),Z=e=>w0.test(e),$o=e=>So(e,C0),bR=e=>So(e,PR),sh=e=>So(e,P0),xR=e=>So(e,O0),wR=e=>So(e,E0),la=e=>So(e,A0,!0),wo=(e,t,r)=>{const n=x0.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},So=(e,t,r=!1)=>{const n=w0.exec(e);return n?n[1]?t(n[1]):r:!1},P0=e=>e==="position"||e==="percentage",E0=e=>e==="image"||e==="url",O0=e=>e==="length"||e==="size"||e==="bg-size",C0=e=>e==="length",SR=e=>e==="number",PR=e=>e==="family-name",A0=e=>e==="shadow",lh=()=>{const e=ze("color"),t=ze("font"),r=ze("text"),n=ze("font-weight"),o=ze("tracking"),i=ze("leading"),a=ze("breakpoint"),s=ze("container"),l=ze("spacing"),c=ze("radius"),u=ze("shadow"),d=ze("inset-shadow"),p=ze("text-shadow"),v=ze("drop-shadow"),g=ze("blur"),m=ze("perspective"),h=ze("aspect"),b=ze("ease"),x=ze("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...S(),Z,X],P=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],C=()=>[Z,X,l],N=()=>[Hn,"full","auto",...C()],$=()=>[Dr,"none","subgrid",Z,X],I=()=>["auto",{span:["full",Dr,Z,X]},Dr,Z,X],_=()=>[Dr,"auto",Z,X],j=()=>["auto","min","max","fr",Z,X],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...C()],W=()=>[Hn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],T=()=>[e,Z,X],k=()=>[...S(),sh,ah,{position:[Z,X]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",xR,gR,{size:[Z,X]}],ne=()=>[Nc,$o,ln],ie=()=>["","none","full",c,Z,X],oe=()=>["",ae,$o,ln],le=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[ae,Nc,sh,ah],ue=()=>["","none",g,Z,X],L=()=>["none",ae,Z,X],H=()=>["none",ae,Z,X],B=()=>[ae,Z,X],z=()=>[Hn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dr],breakpoint:[dr],color:[fR],container:[dr],"drop-shadow":[dr],ease:["in","out","in-out"],font:[hR],"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:E()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],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":$()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"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:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[s,"screen",...W()]}],"min-w":[{"min-w":[s,"screen","none",...W()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",r,$o,ln]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Z,Mc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nc,X]}],"font-family":[{font:[bR,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,Mc]}],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:k()}],"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]},wR,yR]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"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,$o,ln]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,la,sa]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,la,sa]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:oe()}],"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":oe()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,la,sa]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ae,Z,X]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"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":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"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":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"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":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"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":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"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":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"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":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"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":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"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":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"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:k()}],"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,la,sa]}],"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":E()}],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:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[Z,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"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,$o,ln,Mc]}],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"]}},ER=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Go(e,"cacheSize",t),Go(e,"prefix",r),Go(e,"experimentalParseClassName",n),ca(e.theme,i.theme),ca(e.classGroups,i.classGroups),ca(e.conflictingClassGroups,i.conflictingClassGroups),ca(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Go(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),ua(e.theme,o.theme),ua(e.classGroups,o.classGroups),ua(e.conflictingClassGroups,o.conflictingClassGroups),ua(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),_0(e,o,"orderSensitiveModifiers"),e),Go=(e,t,r)=>{r!==void 0&&(e[t]=r)},ca=(e,t)=>{if(t)for(const r in t)Go(e,r,t[r])},ua=(e,t)=>{if(t)for(const r in t)_0(e,t,r)},_0=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},OR=(e,...t)=>typeof e=="function"?ih(lh,e,...t):ih(()=>ER(lh(),e),...t),CR=OR({extend:{classGroups:{"font-size":[{text:["hero","h1","h2","h3","h4","lead","semi-lead","body-lg","body","descriptive","small","label","label-sm"]}]}}});function D(...e){return CR(de(e))}const T0=te("w-full",{variants:{variant:{default:"",bordered:"border-border rounded-lg border"}},defaultVariants:{variant:"default"}}),j0=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(xk,{ref:n,className:D(T0({variant:t}),e),...r}));j0.displayName="Accordion";const N0=f.forwardRef(({className:e,...t},r)=>y.jsx(wk,{ref:r,className:D("border-border border-b last:border-b-0",e),...t}));N0.displayName="AccordionItem";const M0=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"}}),I0=f.forwardRef(({className:e,children:t,size:r,...n},o)=>y.jsx(Sk,{className:"flex",children:y.jsxs(Pk,{ref:o,className:D(M0({size:r}),e),...n,children:[t,y.jsx(Mk,{className:"text-secondary h-4 w-4 shrink-0 transition-transform duration-200"})]})}));I0.displayName="AccordionTrigger";const k0=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx(Ek,{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:D("text-secondary pt-0 pb-4",e),children:t})}));k0.displayName="AccordionContent";function st(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>t.current?.(...r),[])}function AR(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 _R="DismissableLayer",Cd="dismissableLayer.update",TR="dismissableLayer.pointerDownOutside",jR="dismissableLayer.focusOutside",ch,R0=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(R0),[u,d]=f.useState(null),p=u?.ownerDocument??globalThis?.document,[,v]=f.useState({}),g=re(t,O=>d(O)),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,S=x>=b,E=MR(O=>{const C=O.target,N=[...c.branches].some($=>$.contains(C));!S||N||(o?.(O),a?.(O),O.defaultPrevented||s?.())},p),P=IR(O=>{const C=O.target;[...c.branches].some($=>$.contains(C))||(i?.(O),a?.(O),O.defaultPrevented||s?.())},p);return AR(O=>{x===c.layers.size-1&&(n?.(O),!O.defaultPrevented&&s&&(O.preventDefault(),s()))},p),f.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ch=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),uh(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ch)}},[u,p,r,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),uh())},[u,c]),f.useEffect(()=>{const O=()=>v({});return document.addEventListener(Cd,O),()=>document.removeEventListener(Cd,O)},[]),y.jsx(Q.div,{...l,ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,P.onFocusCapture),onBlurCapture:U(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,E.onPointerDownCapture)})});$n.displayName=_R;var NR="DismissableLayerBranch",D0=f.forwardRef((e,t)=>{const r=f.useContext(R0),n=f.useRef(null),o=re(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})});D0.displayName=NR;function MR(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(){$0(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&&$0(jR,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 uh(){const e=new CustomEvent(Cd);document.dispatchEvent(e)}function $0(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?Zf(o,i):o.dispatchEvent(i)}var kR=$n,RR=D0,Ic="focusScope.autoFocusOnMount",kc="focusScope.autoFocusOnUnmount",dh={bubbles:!1,cancelable:!0},DR="FocusScope",Si=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=re(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 S=w.target;s.contains(S)?d.current=S:$r(d.current,{select:!0})},h=function(w){if(v.paused||!s)return;const S=w.relatedTarget;S!==null&&(s.contains(S)||$r(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.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){ph.add(v);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(Ic,dh);s.addEventListener(Ic,c),s.dispatchEvent(b),b.defaultPrevented||($R(VR(L0(s)),{select:!0}),document.activeElement===m&&$r(s))}return()=>{s.removeEventListener(Ic,c),setTimeout(()=>{const b=new CustomEvent(kc,dh);s.addEventListener(kc,u),s.dispatchEvent(b),b.defaultPrevented||$r(m??document.body,{select:!0}),s.removeEventListener(kc,u),ph.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,S]=LR(x);w&&S?!m.shiftKey&&b===S?(m.preventDefault(),r&&$r(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&$r(S,{select:!0})):b===x&&m.preventDefault()}},[r,n,v.paused]);return y.jsx(Q.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});Si.displayName=DR;function $R(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if($r(n,{select:t}),document.activeElement!==r)return}function LR(e){const t=L0(e),r=fh(t,e),n=fh(t.reverse(),e);return[r,n]}function L0(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 fh(e,t){for(const r of e)if(!zR(r,{upTo:t}))return r}function zR(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 ph=BR();function BR(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=vh(e,t),e.unshift(t)},remove(t){e=vh(e,t),e[0]?.resume()}}}function vh(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 WR="Portal",Ln=f.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=f.useState(!1);Ye(()=>i(!0),[]);const a=r||o&&globalThis?.document?.body;return a?xi.createPortal(y.jsx(Q.div,{...n,ref:t}),a):null});Ln.displayName=WR;var Rc=0;function ul(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mh()),document.body.insertAdjacentElement("beforeend",e[1]??mh()),Rc++,()=>{Rc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rc--}},[])}function mh(){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 z0(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 KR(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 Va="right-scroll-bar-position",Wa="width-before-scroll-bar",UR="with-scroll-bars-hidden",HR="--removed-body-scroll-bar-size";function Dc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function GR(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 qR=typeof window<"u"?f.useLayoutEffect:f.useEffect,hh=new WeakMap;function YR(e,t){var r=GR(null,function(n){return e.forEach(function(o){return Dc(o,n)})});return qR(function(){var n=hh.get(r);if(n){var o=new Set(n),i=new Set(e),a=r.current;o.forEach(function(s){i.has(s)||Dc(s,null)}),i.forEach(function(s){o.has(s)||Dc(s,a)})}hh.set(r,e)},[e]),r}function XR(e){return e}function ZR(e,t){t===void 0&&(t=XR);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 JR(e){e===void 0&&(e={});var t=ZR(null);return t.options=Jt({async:!0,ssr:!1},e),t}var F0=function(e){var t=e.sideCar,r=z0(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))};F0.isSideCarExport=!0;function QR(e,t){return e.useMedium(t),F0}var B0=JR(),$c=function(){},dl=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:$c,onWheelCapture:$c,onTouchMoveCapture:$c}),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,S=z0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,P=YR([r,t]),O=Jt(Jt({},S),o);return f.createElement(f.Fragment,null,u&&f.createElement(E,{sideCar:B0,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({},O),{ref:P})):f.createElement(x,Jt({},O,{className:l,ref:P}),s))});dl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dl.classNames={fullWidth:Wa,zeroRight:Va};var eD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eD();return t&&e.setAttribute("nonce",t),e}function rD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function nD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var oD=function(){var e=0,t=null;return{add:function(r){e==0&&(t=tD())&&(rD(t,r),nD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iD=function(){var e=oD();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},V0=function(){var e=iD(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},aD={left:0,top:0,right:0,gap:0},Lc=function(e){return parseInt(e||"",10)||0},sD=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[Lc(r),Lc(n),Lc(o)]},lD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aD;var t=sD(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])}},cD=V0(),no="data-scroll-locked",uD=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(UR,` {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),A=require("react"),wi=require("react-dom");function Yw(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=Yw(A),Si=Yw(wi);function $I(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 Be(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,LI(o,...t)]}function LI(...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 Jm(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=Jm(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():Jm(e[o],null)}}}}function re(...e){return f.useCallback(cr(...e),e)}function Qm(e){const t=zI(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(BI);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 zI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=WI(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 BI(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 WI(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 xo(e){const t=e+"CollectionProvider",[r,n]=Be(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=Qm(s),c=A.forwardRef((m,h)=>{const{scope:b,children:x}=m,w=i(s,b),S=re(h,w.collectionRef);return y.jsx(l,{ref:S,children:x})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=Qm(u),v=A.forwardRef((m,h)=>{const{scope:b,children:x,...w}=m,S=A.useRef(null),E=re(h,S),P=i(u,b);return A.useEffect(()=>(P.itemMap.set(S,{ref:S,...w}),()=>{P.itemMap.delete(S)})),y.jsx(p,{[d]:"",ref:E,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((P,O)=>w.indexOf(P.ref.current)-w.indexOf(O.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 Ye=globalThis?.document?f.useLayoutEffect:()=>{},KI=f[" useInsertionEffect ".trim().toString()]||Ye;function nt({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,a]=UI({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=HI(u)?u(e):u;d!==e&&a.current?.(d)}else i(u)},[s,e,i,a]);return[l,c]}function UI({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return KI(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function HI(e){return typeof e=="function"}function GI(e){const t=qI(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(XI);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 qI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=JI(o),s=ZI(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 YI=Symbol("radix.slottable");function XI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===YI}function ZI(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 JI(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 QI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=QI.reduce((e,t)=>{const r=GI(`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 Jf(e,t){e&&Si.flushSync(()=>e.dispatchEvent(t))}function ek(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var lt=e=>{const{present:t,children:r}=e,n=tk(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=re(n.ref,rk(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};lt.displayName="Presence";function tk(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),a=e?"mounted":"unmounted",[s,l]=ek(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=sa(n.current);i.current=s==="mounted"?c:"none"},[s]),Ye(()=>{const c=n.current,u=o.current;if(u!==e){const p=i.current,v=sa(c);e?l("MOUNT"):v==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ye(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=v=>{const m=sa(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=sa(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 sa(e){return e?.animationName||"none"}function rk(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 nk=f[" useId ".trim().toString()]||(()=>{}),ok=0;function vt(e){const[t,r]=f.useState(nk());return Ye(()=>{r(n=>n??String(ok++))},[e]),e||(t?`radix-${t}`:"")}var al="Collapsible",[ik,Xw]=Be(al),[ak,Qf]=ik(al),Zw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,c]=nt({prop:n,defaultProp:o??!1,onChange:a,caller:al});return y.jsx(ak,{scope:r,disabled:i,contentId:vt(),open:l,onOpenToggle:f.useCallback(()=>c(u=>!u),[c]),children:y.jsx(Q.div,{"data-state":tp(l),"data-disabled":i?"":void 0,...s,ref:t})})});Zw.displayName=al;var Jw="CollapsibleTrigger",Qw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Qf(Jw,r);return y.jsx(Q.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":tp(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:U(e.onClick,o.onOpenToggle)})});Qw.displayName=Jw;var ep="CollapsibleContent",e0=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Qf(ep,e.__scopeCollapsible);return y.jsx(lt,{present:r||o.open,children:({present:i})=>y.jsx(sk,{...n,ref:t,present:i})})});e0.displayName=ep;var sk=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,a=Qf(ep,r),[s,l]=f.useState(n),c=f.useRef(null),u=re(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)},[]),Ye(()=>{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":tp(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 tp(e){return e?"open":"closed"}var lk=Zw,ck=Qw,uk=e0,dk=f.createContext(void 0);function wo(e){const t=f.useContext(dk);return e||t||"ltr"}var Ut="Accordion",fk=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[rp,pk,vk]=xo(Ut),[sl]=Be(Ut,[vk,Xw]),np=Xw(),t0=A.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return y.jsx(rp.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?y.jsx(yk,{...i,ref:t}):y.jsx(gk,{...o,ref:t})})});t0.displayName=Ut;var[r0,mk]=sl(Ut),[n0,hk]=sl(Ut,{collapsible:!1}),gk=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,l]=nt({prop:r,defaultProp:n??"",onChange:o,caller:Ut});return y.jsx(r0,{scope:e.__scopeAccordion,value:A.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:A.useCallback(()=>i&&l(""),[i,l]),children:y.jsx(n0,{scope:e.__scopeAccordion,collapsible:i,children:y.jsx(o0,{...a,ref:t})})})}),yk=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[a,s]=nt({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(r0,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:y.jsx(n0,{scope:e.__scopeAccordion,collapsible:!0,children:y.jsx(o0,{...i,ref:t})})})}),[bk,ll]=sl(Ut),o0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...a}=e,s=A.useRef(null),l=re(s,t),c=pk(r),d=wo(o)==="ltr",p=U(e.onKeyDown,v=>{if(!fk.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,S=b-1,E=()=>{x=h+1,x>S&&(x=w)},P=()=>{x=h-1,x<w&&(x=S)};switch(v.key){case"Home":x=w;break;case"End":x=S;break;case"ArrowRight":i==="horizontal"&&(d?E():P());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(d?P():E());break;case"ArrowUp":i==="vertical"&&P();break}const O=x%b;m[O].ref.current?.focus()});return y.jsx(bk,{scope:r,disabled:n,direction:o,orientation:i,children:y.jsx(rp.Slot,{scope:r,children:y.jsx(Q.div,{...a,"data-orientation":i,ref:l,onKeyDown:n?void 0:p})})})}),Ja="AccordionItem",[xk,op]=sl(Ja),i0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=ll(Ja,r),a=mk(Ja,r),s=np(r),l=vt(),c=n&&a.value.includes(n)||!1,u=i.disabled||e.disabled;return y.jsx(xk,{scope:r,open:c,disabled:u,triggerId:l,children:y.jsx(lk,{"data-orientation":i.orientation,"data-state":d0(c),...s,...o,ref:t,disabled:u,open:c,onOpenChange:d=>{d?a.onItemOpen(n):a.onItemClose(n)}})})});i0.displayName=Ja;var a0="AccordionHeader",s0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ll(Ut,r),i=op(a0,r);return y.jsx(Q.h3,{"data-orientation":o.orientation,"data-state":d0(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});s0.displayName=a0;var Od="AccordionTrigger",l0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ll(Ut,r),i=op(Od,r),a=hk(Od,r),s=np(r);return y.jsx(rp.ItemSlot,{scope:r,children:y.jsx(ck,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...n,ref:t})})});l0.displayName=Od;var c0="AccordionContent",u0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=ll(Ut,r),i=op(c0,r),a=np(r);return y.jsx(uk,{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}})});u0.displayName=c0;function d0(e){return e?"open":"closed"}var wk=t0,Sk=i0,Pk=s0,Ek=l0,Ok=u0;function f0(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=f0(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=f0(e))&&(n&&(n+=" "),n+=t);return n}const eh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,th=de,te=(e,t)=>r=>{var n;if(t?.variants==null)return th(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=eh(u)||eh(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 th(e,a,l,r?.class,r?.className)};const p0=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const Ck=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Ak=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const rh=e=>{const t=Ak(e);return t.charAt(0).toUpperCase()+t.slice(1)};var _k={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 jk=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,..._k,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:p0("lucide",o),...!i&&!Tk(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,u])=>A.createElement(c,u)),...Array.isArray(i)?i:[i]]));const $n=(e,t)=>{const r=A.forwardRef(({className:n,...o},i)=>A.createElement(jk,{ref:i,iconNode:t,className:p0(`lucide-${Ck(rh(e))}`,`lucide-${e}`,n),...o}));return r.displayName=rh(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"}]],v0=$n("calendar",Nk);const Mk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ik=$n("chevron-down",Mk);const kk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],cl=$n("chevron-left",kk);const Rk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ul=$n("chevron-right",Rk);const Dk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],$k=$n("clock",Dk);const Lk=[["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"}]],m0=$n("ellipsis",Lk);const zk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],h0=$n("x",zk),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},Bk=(e,t)=>({classGroupId:e,validator:t}),g0=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Qa="-",nh=[],Vk="arbitrary..",Wk=e=>{const t=Uk(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Kk(a);const s=a.split(Qa),l=s[0]===""&&s.length>1?1:0;return y0(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=n[a],c=r[a];return l?c?Fk(c,l):l:c||nh}return r[a]||nh}}},y0=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=y0(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const s=t===0?e.join(Qa):e.slice(t).join(Qa),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(s))return u.classGroupId}},Kk=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})(),Uk=e=>{const{theme:t,classGroups:r}=e;return Hk(r,t)},Hk=(e,t)=>{const r=g0();for(const n in e){const o=e[n];ip(o,r,n,t)}return r},ip=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];Gk(a,t,r,n)}},Gk=(e,t,r,n)=>{if(typeof e=="string"){qk(e,t,r);return}if(typeof e=="function"){Yk(e,t,r,n);return}Xk(e,t,r,n)},qk=(e,t,r)=>{const n=e===""?t:b0(t,e);n.classGroupId=r},Yk=(e,t,r,n)=>{if(Zk(e)){ip(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Bk(r,e))},Xk=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];ip(l,b0(t,s),r,n)}},b0=(e,t)=>{let r=e;const n=t.split(Qa),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=g0(),r.nextPart.set(a,s)),r=s}return r},Zk=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Jk=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)}}},Cd="!",oh=":",Qk=[],ih=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),eR=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===oh){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(Cd)?(p=d.slice(0,-1),v=!0):d.startsWith(Cd)&&(p=d.slice(1),v=!0);const g=c&&c>l?c-l:void 0;return ih(i,v,p,g)};if(t){const o=t+oh,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):ih(Qk,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},tR=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}},rR=e=>({cache:Jk(e.cacheSize),parseClassName:eR(e),sortModifiers:tR(e),...Wk(e)}),nR=/\s+/,oR=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(nR);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+Cd:x,S=w+b;if(a.indexOf(S)>-1)continue;a.push(S);const E=o(b,h);for(let P=0;P<E.length;++P){const O=E[P];a.push(w+O)}l=u+(l.length>0?" "+l:l)}return l},iR=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=x0(r))&&(o&&(o+=" "),o+=n);return o},x0=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=x0(e[n]))&&(r&&(r+=" "),r+=t);return r},ah=(e,...t)=>{let r,n,o,i;const a=l=>{const c=t.reduce((u,d)=>d(u),e());return r=rR(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=oR(l,r);return o(l,u),u};return i=a,(...l)=>i(iR(...l))},aR=[],ze=e=>{const t=r=>r[e]||aR;return t.isThemeGetter=!0,t},w0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,S0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,sR=/^\d+\/\d+$/,lR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cR=/\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$/,uR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gn=e=>sR.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),Dr=e=>!!e&&Number.isInteger(Number(e)),Mc=e=>e.endsWith("%")&&ae(e.slice(0,-1)),dr=e=>lR.test(e),pR=()=>!0,vR=e=>cR.test(e)&&!uR.test(e),P0=()=>!1,mR=e=>dR.test(e),hR=e=>fR.test(e),gR=e=>!X(e)&&!Z(e),yR=e=>So(e,C0,P0),X=e=>w0.test(e),ln=e=>So(e,A0,vR),Ic=e=>So(e,PR,ae),sh=e=>So(e,E0,P0),bR=e=>So(e,O0,hR),la=e=>So(e,_0,mR),Z=e=>S0.test(e),Lo=e=>Po(e,A0),xR=e=>Po(e,ER),lh=e=>Po(e,E0),wR=e=>Po(e,C0),SR=e=>Po(e,O0),ca=e=>Po(e,_0,!0),So=(e,t,r)=>{const n=w0.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Po=(e,t,r=!1)=>{const n=S0.exec(e);return n?n[1]?t(n[1]):r:!1},E0=e=>e==="position"||e==="percentage",O0=e=>e==="image"||e==="url",C0=e=>e==="length"||e==="size"||e==="bg-size",A0=e=>e==="length",PR=e=>e==="number",ER=e=>e==="family-name",_0=e=>e==="shadow",ch=()=>{const e=ze("color"),t=ze("font"),r=ze("text"),n=ze("font-weight"),o=ze("tracking"),i=ze("leading"),a=ze("breakpoint"),s=ze("container"),l=ze("spacing"),c=ze("radius"),u=ze("shadow"),d=ze("inset-shadow"),p=ze("text-shadow"),v=ze("drop-shadow"),g=ze("blur"),m=ze("perspective"),h=ze("aspect"),b=ze("ease"),x=ze("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...S(),Z,X],P=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],C=()=>[Z,X,l],N=()=>[Gn,"full","auto",...C()],$=()=>[Dr,"none","subgrid",Z,X],I=()=>["auto",{span:["full",Dr,Z,X]},Dr,Z,X],_=()=>[Dr,"auto",Z,X],j=()=>["auto","min","max","fr",Z,X],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...C()],W=()=>[Gn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],T=()=>[e,Z,X],k=()=>[...S(),lh,sh,{position:[Z,X]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",wR,yR,{size:[Z,X]}],ne=()=>[Mc,Lo,ln],ie=()=>["","none","full",c,Z,X],oe=()=>["",ae,Lo,ln],le=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[ae,Mc,lh,sh],ue=()=>["","none",g,Z,X],L=()=>["none",ae,Z,X],H=()=>["none",ae,Z,X],B=()=>[ae,Z,X],z=()=>[Gn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dr],breakpoint:[dr],color:[pR],container:[dr],"drop-shadow":[dr],ease:["in","out","in-out"],font:[gR],"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",Gn,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:E()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],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:[Gn,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,Gn,"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":$()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"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:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[s,"screen",...W()]}],"min-w":[{"min-w":[s,"screen","none",...W()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",r,Lo,ln]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Z,Ic]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mc,X]}],"font-family":[{font:[xR,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,Ic]}],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:k()}],"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]},SR,bR]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"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,Lo,ln]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,ca,la]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,ca,la]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:oe()}],"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":oe()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,ca,la]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ae,Z,X]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"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":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"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":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"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":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"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":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"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":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"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":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"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":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"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":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"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:k()}],"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,ca,la]}],"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":E()}],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:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[Z,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"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,Lo,ln,Ic]}],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"]}},OR=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(qo(e,"cacheSize",t),qo(e,"prefix",r),qo(e,"experimentalParseClassName",n),ua(e.theme,i.theme),ua(e.classGroups,i.classGroups),ua(e.conflictingClassGroups,i.conflictingClassGroups),ua(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),qo(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),da(e.theme,o.theme),da(e.classGroups,o.classGroups),da(e.conflictingClassGroups,o.conflictingClassGroups),da(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),T0(e,o,"orderSensitiveModifiers"),e),qo=(e,t,r)=>{r!==void 0&&(e[t]=r)},ua=(e,t)=>{if(t)for(const r in t)qo(e,r,t[r])},da=(e,t)=>{if(t)for(const r in t)T0(e,t,r)},T0=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},CR=(e,...t)=>typeof e=="function"?ah(ch,e,...t):ah(()=>OR(ch(),e),...t),AR=CR({extend:{classGroups:{"font-size":[{text:["hero","h1","h2","h3","h4","lead","semi-lead","body-lg","body","descriptive","small","label","label-sm"]}]}}});function D(...e){return AR(de(e))}const j0=te("w-full",{variants:{variant:{default:"",bordered:"border-border rounded-lg border"}},defaultVariants:{variant:"default"}}),N0=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(wk,{ref:n,className:D(j0({variant:t}),e),...r}));N0.displayName="Accordion";const M0=f.forwardRef(({className:e,...t},r)=>y.jsx(Sk,{ref:r,className:D("border-border border-b last:border-b-0",e),...t}));M0.displayName="AccordionItem";const I0=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"}}),k0=f.forwardRef(({className:e,children:t,size:r,...n},o)=>y.jsx(Pk,{className:"flex",children:y.jsxs(Ek,{ref:o,className:D(I0({size:r}),e),...n,children:[t,y.jsx(Ik,{className:"text-secondary h-4 w-4 shrink-0 transition-transform duration-200"})]})}));k0.displayName="AccordionTrigger";const R0=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx(Ok,{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:D("text-secondary pt-0 pb-4",e),children:t})}));R0.displayName="AccordionContent";function st(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>t.current?.(...r),[])}function _R(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",Ad="dismissableLayer.update",jR="dismissableLayer.pointerDownOutside",NR="dismissableLayer.focusOutside",uh,D0=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ln=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=f.useContext(D0),[u,d]=f.useState(null),p=u?.ownerDocument??globalThis?.document,[,v]=f.useState({}),g=re(t,O=>d(O)),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,S=x>=b,E=IR(O=>{const C=O.target,N=[...c.branches].some($=>$.contains(C));!S||N||(o?.(O),a?.(O),O.defaultPrevented||s?.())},p),P=kR(O=>{const C=O.target;[...c.branches].some($=>$.contains(C))||(i?.(O),a?.(O),O.defaultPrevented||s?.())},p);return _R(O=>{x===c.layers.size-1&&(n?.(O),!O.defaultPrevented&&s&&(O.preventDefault(),s()))},p),f.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(uh=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),dh(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=uh)}},[u,p,r,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),dh())},[u,c]),f.useEffect(()=>{const O=()=>v({});return document.addEventListener(Ad,O),()=>document.removeEventListener(Ad,O)},[]),y.jsx(Q.div,{...l,ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,P.onFocusCapture),onBlurCapture:U(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,E.onPointerDownCapture)})});Ln.displayName=TR;var MR="DismissableLayerBranch",$0=f.forwardRef((e,t)=>{const r=f.useContext(D0),n=f.useRef(null),o=re(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})});$0.displayName=MR;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(){L0(jR,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 kR(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!n.current&&L0(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 dh(){const e=new CustomEvent(Ad);document.dispatchEvent(e)}function L0(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?Jf(o,i):o.dispatchEvent(i)}var RR=Ln,DR=$0,kc="focusScope.autoFocusOnMount",Rc="focusScope.autoFocusOnUnmount",fh={bubbles:!1,cancelable:!0},$R="FocusScope",Pi=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=re(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 S=w.target;s.contains(S)?d.current=S:$r(d.current,{select:!0})},h=function(w){if(v.paused||!s)return;const S=w.relatedTarget;S!==null&&(s.contains(S)||$r(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.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){vh.add(v);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(kc,fh);s.addEventListener(kc,c),s.dispatchEvent(b),b.defaultPrevented||(LR(WR(z0(s)),{select:!0}),document.activeElement===m&&$r(s))}return()=>{s.removeEventListener(kc,c),setTimeout(()=>{const b=new CustomEvent(Rc,fh);s.addEventListener(Rc,u),s.dispatchEvent(b),b.defaultPrevented||$r(m??document.body,{select:!0}),s.removeEventListener(Rc,u),vh.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,S]=zR(x);w&&S?!m.shiftKey&&b===S?(m.preventDefault(),r&&$r(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&$r(S,{select:!0})):b===x&&m.preventDefault()}},[r,n,v.paused]);return y.jsx(Q.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});Pi.displayName=$R;function LR(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if($r(n,{select:t}),document.activeElement!==r)return}function zR(e){const t=z0(e),r=ph(t,e),n=ph(t.reverse(),e);return[r,n]}function z0(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 ph(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 BR(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&&BR(e)&&t&&e.select()}}var vh=VR();function VR(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=mh(e,t),e.unshift(t)},remove(t){e=mh(e,t),e[0]?.resume()}}}function mh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function WR(e){return e.filter(t=>t.tagName!=="A")}var KR="Portal",zn=f.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=f.useState(!1);Ye(()=>i(!0),[]);const a=r||o&&globalThis?.document?.body;return a?wi.createPortal(y.jsx(Q.div,{...n,ref:t}),a):null});zn.displayName=KR;var Dc=0;function dl(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hh()),document.body.insertAdjacentElement("beforeend",e[1]??hh()),Dc++,()=>{Dc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dc--}},[])}function hh(){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 F0(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 UR(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 Wa="right-scroll-bar-position",Ka="width-before-scroll-bar",HR="with-scroll-bars-hidden",GR="--removed-body-scroll-bar-size";function $c(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qR(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 YR=typeof window<"u"?f.useLayoutEffect:f.useEffect,gh=new WeakMap;function XR(e,t){var r=qR(null,function(n){return e.forEach(function(o){return $c(o,n)})});return YR(function(){var n=gh.get(r);if(n){var o=new Set(n),i=new Set(e),a=r.current;o.forEach(function(s){i.has(s)||$c(s,null)}),i.forEach(function(s){o.has(s)||$c(s,a)})}gh.set(r,e)},[e]),r}function ZR(e){return e}function JR(e,t){t===void 0&&(t=ZR);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 QR(e){e===void 0&&(e={});var t=JR(null);return t.options=Jt({async:!0,ssr:!1},e),t}var B0=function(e){var t=e.sideCar,r=F0(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))};B0.isSideCarExport=!0;function eD(e,t){return e.useMedium(t),B0}var V0=QR(),Lc=function(){},fl=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:Lc,onWheelCapture:Lc,onTouchMoveCapture:Lc}),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,S=F0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,P=XR([r,t]),O=Jt(Jt({},S),o);return f.createElement(f.Fragment,null,u&&f.createElement(E,{sideCar:V0,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({},O),{ref:P})):f.createElement(x,Jt({},O,{className:l,ref:P}),s))});fl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fl.classNames={fullWidth:Ka,zeroRight:Wa};var tD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=tD();return t&&e.setAttribute("nonce",t),e}function nD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function oD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var iD=function(){var e=0,t=null;return{add:function(r){e==0&&(t=rD())&&(nD(t,r),oD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},aD=function(){var e=iD();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},W0=function(){var e=aD(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},sD={left:0,top:0,right:0,gap:0},zc=function(e){return parseInt(e||"",10)||0},lD=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[zc(r),zc(n),zc(o)]},cD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sD;var t=lD(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])}},uD=W0(),oo="data-scroll-locked",dD=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(HR,` {
3
3
  overflow: hidden `).concat(n,`;
4
4
  padding-right: `).concat(s,"px ").concat(n,`;
5
5
  }
6
- body[`).concat(no,`] {
6
+ body[`).concat(oo,`] {
7
7
  overflow: hidden `).concat(n,`;
8
8
  overscroll-behavior: contain;
9
9
  `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
@@ -16,85 +16,85 @@
16
16
  `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
17
17
  }
18
18
 
19
- .`).concat(Va,` {
19
+ .`).concat(Wa,` {
20
20
  right: `).concat(s,"px ").concat(n,`;
21
21
  }
22
22
 
23
- .`).concat(Wa,` {
23
+ .`).concat(Ka,` {
24
24
  margin-right: `).concat(s,"px ").concat(n,`;
25
25
  }
26
26
 
27
- .`).concat(Va," .").concat(Va,` {
27
+ .`).concat(Wa," .").concat(Wa,` {
28
28
  right: 0 `).concat(n,`;
29
29
  }
30
30
 
31
- .`).concat(Wa," .").concat(Wa,` {
31
+ .`).concat(Ka," .").concat(Ka,` {
32
32
  margin-right: 0 `).concat(n,`;
33
33
  }
34
34
 
35
- body[`).concat(no,`] {
36
- `).concat(HR,": ").concat(s,`px;
35
+ body[`).concat(oo,`] {
36
+ `).concat(GR,": ").concat(s,`px;
37
37
  }
38
- `)},gh=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},dD=function(){f.useEffect(function(){return document.body.setAttribute(no,(gh()+1).toString()),function(){var e=gh()-1;e<=0?document.body.removeAttribute(no):document.body.setAttribute(no,e.toString())}},[])},fD=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;dD();var i=f.useMemo(function(){return lD(o)},[o]);return f.createElement(cD,{styles:uD(i,!t,o,r?"":"!important")})},Ad=!1;if(typeof window<"u")try{var da=Object.defineProperty({},"passive",{get:function(){return Ad=!0,!0}});window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{Ad=!1}var Gn=Ad?{passive:!1}:!1,pD=function(e){return e.tagName==="TEXTAREA"},W0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!pD(e)&&r[t]==="visible")},vD=function(e){return W0(e,"overflowY")},mD=function(e){return W0(e,"overflowX")},yh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=K0(e,n);if(o){var i=U0(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hD=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},gD=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},K0=function(e,t){return e==="v"?vD(t):mD(t)},U0=function(e,t){return e==="v"?hD(t):gD(t)},yD=function(e,t){return e==="h"&&t==="rtl"?-1:1},bD=function(e,t,r,n,o){var i=yD(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=U0(e,s),g=v[0],m=v[1],h=v[2],b=m-h-i*g;(g||b)&&K0(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},fa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bh=function(e){return[e.deltaX,e.deltaY]},xh=function(e){return e&&"current"in e?e.current:e},xD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wD=function(e){return`
38
+ `)},yh=function(){var e=parseInt(document.body.getAttribute(oo)||"0",10);return isFinite(e)?e:0},fD=function(){f.useEffect(function(){return document.body.setAttribute(oo,(yh()+1).toString()),function(){var e=yh()-1;e<=0?document.body.removeAttribute(oo):document.body.setAttribute(oo,e.toString())}},[])},pD=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;fD();var i=f.useMemo(function(){return cD(o)},[o]);return f.createElement(uD,{styles:dD(i,!t,o,r?"":"!important")})},_d=!1;if(typeof window<"u")try{var fa=Object.defineProperty({},"passive",{get:function(){return _d=!0,!0}});window.addEventListener("test",fa,fa),window.removeEventListener("test",fa,fa)}catch{_d=!1}var qn=_d?{passive:!1}:!1,vD=function(e){return e.tagName==="TEXTAREA"},K0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!vD(e)&&r[t]==="visible")},mD=function(e){return K0(e,"overflowY")},hD=function(e){return K0(e,"overflowX")},bh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=U0(e,n);if(o){var i=H0(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},gD=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},yD=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},U0=function(e,t){return e==="v"?mD(t):hD(t)},H0=function(e,t){return e==="v"?gD(t):yD(t)},bD=function(e,t){return e==="h"&&t==="rtl"?-1:1},xD=function(e,t,r,n,o){var i=bD(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=H0(e,s),g=v[0],m=v[1],h=v[2],b=m-h-i*g;(g||b)&&U0(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},pa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},xh=function(e){return[e.deltaX,e.deltaY]},wh=function(e){return e&&"current"in e?e.current:e},wD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},SD=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},SD=0,qn=[];function PD(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(SD++)[0],i=f.useState(V0)[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=KR([e.lockRef.current],(e.shards||[]).map(xh),!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=fa(m),x=r.current,w="deltaX"in m?m.deltaX:x[0]-b[0],S="deltaY"in m?m.deltaY:x[1]-b[1],E,P=m.target,O=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in m&&O==="h"&&P.type==="range")return!1;var C=window.getSelection(),N=C&&C.anchorNode,$=N?N===P||N.contains(P):!1;if($)return!1;var I=yh(O,P);if(!I)return!0;if(I?E=O:(E=O==="v"?"h":"v",I=yh(O,P)),!I)return!1;if(!n.current&&"changedTouches"in m&&(w||S)&&(n.current=E),!E)return!0;var _=n.current||E;return bD(_,h,m,_==="h"?w:S)},[]),l=f.useCallback(function(m){var h=m;if(!(!qn.length||qn[qn.length-1]!==i)){var b="deltaY"in h?bh(h):fa(h),x=t.current.filter(function(E){return E.name===h.type&&(E.target===h.target||h.target===E.shadowParent)&&xD(E.delta,b)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(xh).filter(Boolean).filter(function(E){return E.contains(h.target)}),S=w.length>0?s(h,w[0]):!a.current.noIsolation;S&&h.cancelable&&h.preventDefault()}}},[]),c=f.useCallback(function(m,h,b,x){var w={name:m,delta:h,target:b,should:x,shadowParent:ED(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),u=f.useCallback(function(m){r.current=fa(m),n.current=void 0},[]),d=f.useCallback(function(m){c(m.type,bh(m),m.target,s(m,e.lockRef.current))},[]),p=f.useCallback(function(m){c(m.type,fa(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:wD(o)}):null,v?f.createElement(fD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ED(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const OD=QR(B0,PD);var Pi=f.forwardRef(function(e,t){return f.createElement(dl,Jt({},e,{ref:t,sideCar:OD}))});Pi.classNames=dl.classNames;var CD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yn=new WeakMap,pa=new WeakMap,va={},zc=0,H0=function(e){return e&&(e.host||H0(e.parentNode))},AD=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=H0(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})},_D=function(e,t,r,n){var o=AD(t,Array.isArray(e)?e:[e]);va[r]||(va[r]=new WeakMap);var i=va[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&&pa.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(),zc++,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||(pa.has(d)||d.removeAttribute(n),pa.delete(d)),v||d.removeAttribute(r)}),zc--,zc||(Yn=new WeakMap,Yn=new WeakMap,pa=new WeakMap,va={})}},fl=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=CD(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),_D(n,o,r,"aria-hidden")):function(){return null}};function TD(e){const t=jD(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(MD);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 jD(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=kD(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 MD(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 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)}var pl="Dialog",[G0,q0]=Be(pl),[RD,Ht]=G0(pl),Y0=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]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:pl});return y.jsx(RD,{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})};Y0.displayName=pl;var X0="DialogTrigger",Z0=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(X0,r),i=re(t,o.triggerRef);return y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sp(o.open),...n,ref:i,onClick:U(e.onClick,o.onOpenToggle)})});Z0.displayName=X0;var ip="DialogPortal",[DD,J0]=G0(ip,{forceMount:void 0}),Q0=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Ht(ip,t);return y.jsx(DD,{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})}))})};Q0.displayName=ip;var Qa="DialogOverlay",eS=f.forwardRef((e,t)=>{const r=J0(Qa,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(Qa,e.__scopeDialog);return i.modal?y.jsx(lt,{present:n||i.open,children:y.jsx(LD,{...o,ref:t})}):null});eS.displayName=Qa;var $D=TD("DialogOverlay.RemoveScroll"),LD=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(Qa,r);return y.jsx(Pi,{as:$D,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Q.div,{"data-state":sp(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Pn="DialogContent",tS=f.forwardRef((e,t)=>{const r=J0(Pn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(Pn,e.__scopeDialog);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(zD,{...o,ref:t}):y.jsx(FD,{...o,ref:t})})});tS.displayName=Pn;var zD=f.forwardRef((e,t)=>{const r=Ht(Pn,e.__scopeDialog),n=f.useRef(null),o=re(t,r.contentRef,n);return f.useEffect(()=>{const i=n.current;if(i)return fl(i)},[]),y.jsx(rS,{...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(Pn,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(rS,{...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()}})}),rS=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Ht(Pn,r),l=f.useRef(null),c=re(t,l);return ul(),y.jsxs(y.Fragment,{children:[y.jsx(Si,{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":sp(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(VD,{titleId:s.titleId}),y.jsx(KD,{contentRef:l,descriptionId:s.descriptionId})]})]})}),ap="DialogTitle",nS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(ap,r);return y.jsx(Q.h2,{id:o.titleId,...n,ref:t})});nS.displayName=ap;var oS="DialogDescription",iS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(oS,r);return y.jsx(Q.p,{id:o.descriptionId,...n,ref:t})});iS.displayName=oS;var aS="DialogClose",sS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(aS,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});sS.displayName=aS;function sp(e){return e?"open":"closed"}var lS="DialogTitleWarning",[BD,cS]=DI(lS,{contentName:Pn,titleName:ap,docsSlug:"dialog"}),VD=({titleId:e})=>{const t=cS(lS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},PD=0,Yn=[];function ED(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(PD++)[0],i=f.useState(W0)[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=UR([e.lockRef.current],(e.shards||[]).map(wh),!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=pa(m),x=r.current,w="deltaX"in m?m.deltaX:x[0]-b[0],S="deltaY"in m?m.deltaY:x[1]-b[1],E,P=m.target,O=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in m&&O==="h"&&P.type==="range")return!1;var C=window.getSelection(),N=C&&C.anchorNode,$=N?N===P||N.contains(P):!1;if($)return!1;var I=bh(O,P);if(!I)return!0;if(I?E=O:(E=O==="v"?"h":"v",I=bh(O,P)),!I)return!1;if(!n.current&&"changedTouches"in m&&(w||S)&&(n.current=E),!E)return!0;var _=n.current||E;return xD(_,h,m,_==="h"?w:S)},[]),l=f.useCallback(function(m){var h=m;if(!(!Yn.length||Yn[Yn.length-1]!==i)){var b="deltaY"in h?xh(h):pa(h),x=t.current.filter(function(E){return E.name===h.type&&(E.target===h.target||h.target===E.shadowParent)&&wD(E.delta,b)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(wh).filter(Boolean).filter(function(E){return E.contains(h.target)}),S=w.length>0?s(h,w[0]):!a.current.noIsolation;S&&h.cancelable&&h.preventDefault()}}},[]),c=f.useCallback(function(m,h,b,x){var w={name:m,delta:h,target:b,should:x,shadowParent:OD(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),u=f.useCallback(function(m){r.current=pa(m),n.current=void 0},[]),d=f.useCallback(function(m){c(m.type,xh(m),m.target,s(m,e.lockRef.current))},[]),p=f.useCallback(function(m){c(m.type,pa(m),m.target,s(m,e.lockRef.current))},[]);f.useEffect(function(){return Yn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,qn),document.addEventListener("touchmove",l,qn),document.addEventListener("touchstart",u,qn),function(){Yn=Yn.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,qn),document.removeEventListener("touchmove",l,qn),document.removeEventListener("touchstart",u,qn)}},[]);var v=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(i,{styles:SD(o)}):null,v?f.createElement(pD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function OD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const CD=eD(V0,ED);var Ei=f.forwardRef(function(e,t){return f.createElement(fl,Jt({},e,{ref:t,sideCar:CD}))});Ei.classNames=fl.classNames;var AD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xn=new WeakMap,va=new WeakMap,ma={},Fc=0,G0=function(e){return e&&(e.host||G0(e.parentNode))},_D=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=G0(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=_D(t,Array.isArray(e)?e:[e]);ma[r]||(ma[r]=new WeakMap);var i=ma[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=(Xn.get(p)||0)+1,h=(i.get(p)||0)+1;Xn.set(p,m),i.set(p,h),a.push(p),m===1&&g&&va.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(),Fc++,function(){a.forEach(function(d){var p=Xn.get(d)-1,v=i.get(d)-1;Xn.set(d,p),i.set(d,v),p||(va.has(d)||d.removeAttribute(n),va.delete(d)),v||d.removeAttribute(r)}),Fc--,Fc||(Xn=new WeakMap,Xn=new WeakMap,va=new WeakMap,ma={})}},pl=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=AD(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),TD(n,o,r,"aria-hidden")):function(){return null}};function jD(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=RD(o),s=kD(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 MD=Symbol("radix.slottable");function ID(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===MD}function kD(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 RD(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 vl="Dialog",[q0,Y0]=Be(vl),[DD,Ht]=q0(vl),X0=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]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:vl});return y.jsx(DD,{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})};X0.displayName=vl;var Z0="DialogTrigger",J0=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(Z0,r),i=re(t,o.triggerRef);return y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":lp(o.open),...n,ref:i,onClick:U(e.onClick,o.onOpenToggle)})});J0.displayName=Z0;var ap="DialogPortal",[$D,Q0]=q0(ap,{forceMount:void 0}),eS=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Ht(ap,t);return y.jsx($D,{scope:t,forceMount:r,children:f.Children.map(n,a=>y.jsx(lt,{present:r||i.open,children:y.jsx(zn,{asChild:!0,container:o,children:a})}))})};eS.displayName=ap;var es="DialogOverlay",tS=f.forwardRef((e,t)=>{const r=Q0(es,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(es,e.__scopeDialog);return i.modal?y.jsx(lt,{present:n||i.open,children:y.jsx(zD,{...o,ref:t})}):null});tS.displayName=es;var LD=jD("DialogOverlay.RemoveScroll"),zD=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(es,r);return y.jsx(Ei,{as:LD,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Q.div,{"data-state":lp(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),En="DialogContent",rS=f.forwardRef((e,t)=>{const r=Q0(En,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(En,e.__scopeDialog);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(FD,{...o,ref:t}):y.jsx(BD,{...o,ref:t})})});rS.displayName=En;var FD=f.forwardRef((e,t)=>{const r=Ht(En,e.__scopeDialog),n=f.useRef(null),o=re(t,r.contentRef,n);return f.useEffect(()=>{const i=n.current;if(i)return pl(i)},[]),y.jsx(nS,{...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())})}),BD=f.forwardRef((e,t)=>{const r=Ht(En,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(nS,{...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()}})}),nS=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Ht(En,r),l=f.useRef(null),c=re(t,l);return dl(),y.jsxs(y.Fragment,{children:[y.jsx(Pi,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx(Ln,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":lp(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(WD,{titleId:s.titleId}),y.jsx(UD,{contentRef:l,descriptionId:s.descriptionId})]})]})}),sp="DialogTitle",oS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(sp,r);return y.jsx(Q.h2,{id:o.titleId,...n,ref:t})});oS.displayName=sp;var iS="DialogDescription",aS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(iS,r);return y.jsx(Q.p,{id:o.descriptionId,...n,ref:t})});aS.displayName=iS;var sS="DialogClose",lS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(sS,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});lS.displayName=sS;function lp(e){return e?"open":"closed"}var cS="DialogTitleWarning",[VD,uS]=$I(cS,{contentName:En,titleName:sp,docsSlug:"dialog"}),WD=({titleId:e})=>{const t=uS(cS),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},WD="DialogDescriptionWarning",KD=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cS(WD).contentName}}.`;return f.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},uS=Y0,dS=Z0,fS=Q0,pS=eS,vS=tS,mS=nS,hS=iS,vl=sS,UD=Symbol("radix.slottable");function HD(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=UD,t}var gS="AlertDialog",[GD]=Be(gS,[q0]),Ar=q0(),yS=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ar(t);return y.jsx(uS,{...n,...r,modal:!0})};yS.displayName=gS;var qD="AlertDialogTrigger",bS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(dS,{...o,...n,ref:t})});bS.displayName=qD;var YD="AlertDialogPortal",xS=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ar(t);return y.jsx(fS,{...n,...r})};xS.displayName=YD;var XD="AlertDialogOverlay",wS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(pS,{...o,...n,ref:t})});wS.displayName=XD;var oo="AlertDialogContent",[ZD,JD]=GD(oo),QD=HD("AlertDialogContent"),SS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=Ar(r),a=f.useRef(null),s=re(t,a),l=f.useRef(null);return y.jsx(BD,{contentName:oo,titleName:PS,docsSlug:"alert-dialog",children:y.jsx(ZD,{scope:r,cancelRef:l,children:y.jsxs(vS,{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(QD,{children:n}),y.jsx(t2,{contentRef:a})]})})})});SS.displayName=oo;var PS="AlertDialogTitle",ES=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(mS,{...o,...n,ref:t})});ES.displayName=PS;var OS="AlertDialogDescription",CS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(hS,{...o,...n,ref:t})});CS.displayName=OS;var e2="AlertDialogAction",AS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(vl,{...o,...n,ref:t})});AS.displayName=e2;var _S="AlertDialogCancel",TS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=JD(_S,r),i=Ar(r),a=re(t,o);return y.jsx(vl,{...i,...n,ref:a})});TS.displayName=_S;var t2=({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},KD="DialogDescriptionWarning",UD=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uS(KD).contentName}}.`;return f.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},dS=X0,fS=J0,pS=eS,vS=tS,mS=rS,hS=oS,gS=aS,ml=lS,HD=Symbol("radix.slottable");function GD(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=HD,t}var yS="AlertDialog",[qD]=Be(yS,[Y0]),Ar=Y0(),bS=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ar(t);return y.jsx(dS,{...n,...r,modal:!0})};bS.displayName=yS;var YD="AlertDialogTrigger",xS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(fS,{...o,...n,ref:t})});xS.displayName=YD;var XD="AlertDialogPortal",wS=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ar(t);return y.jsx(pS,{...n,...r})};wS.displayName=XD;var ZD="AlertDialogOverlay",SS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(vS,{...o,...n,ref:t})});SS.displayName=ZD;var io="AlertDialogContent",[JD,QD]=qD(io),e2=GD("AlertDialogContent"),PS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=Ar(r),a=f.useRef(null),s=re(t,a),l=f.useRef(null);return y.jsx(VD,{contentName:io,titleName:ES,docsSlug:"alert-dialog",children:y.jsx(JD,{scope:r,cancelRef:l,children:y.jsxs(mS,{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(e2,{children:n}),y.jsx(r2,{contentRef:a})]})})})});PS.displayName=io;var ES="AlertDialogTitle",OS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(hS,{...o,...n,ref:t})});OS.displayName=ES;var CS="AlertDialogDescription",AS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(gS,{...o,...n,ref:t})});AS.displayName=CS;var t2="AlertDialogAction",_S=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(ml,{...o,...n,ref:t})});_S.displayName=t2;var TS="AlertDialogCancel",jS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=QD(TS,r),i=Ar(r),a=re(t,o);return y.jsx(ml,{...i,...n,ref:a})});jS.displayName=TS;var r2=({contentRef:e})=>{const t=`\`${io}\` requires a description for the component to be accessible for screen reader users.
46
46
 
47
- You can add a description to the \`${oo}\` by passing a \`${OS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
47
+ You can add a description to the \`${io}\` by passing a \`${CS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
48
48
 
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.
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 \`${io}\`. 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},r2=yS,n2=bS,o2=xS,i2=wS,a2=SS,s2=AS,l2=TS,c2=ES,u2=CS,d2=Symbol.for("react.lazy"),es=f[" use ".trim().toString()];function f2(e){return typeof e=="object"&&e!==null&&"then"in e}function jS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===d2&&"_payload"in e&&f2(e._payload)}function NS(e){const t=p2(e),r=f.forwardRef((n,o)=>{let{children:i,...a}=n;jS(i)&&typeof es=="function"&&(i=es(i._payload));const s=f.Children.toArray(i),l=s.find(m2);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 Ee=NS("Slot");function p2(e){const t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(jS(o)&&typeof es=="function"&&(o=es(o._payload)),f.isValidElement(o)){const a=g2(o),s=h2(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 v2=Symbol("radix.slottable");function m2(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v2}function h2(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 g2(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 ml=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"}}),MS=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"button";return y.jsx(a,{className:D(ml({variant:t,size:r,className:e})),ref:i,...o})});MS.displayName="Button";const y2=r2,b2=n2,IS=o2,lp=f.forwardRef(({className:e,...t},r)=>y.jsx(i2,{ref:r,className:D("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}));lp.displayName="AlertDialogOverlay";const kS=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"}}),RS=f.forwardRef(({className:e,size:t,...r},n)=>y.jsxs(IS,{children:[y.jsx(lp,{}),y.jsx(a2,{ref:n,className:D(kS({size:t}),e),...r})]}));RS.displayName="AlertDialogContent";const DS=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col space-y-2 text-center sm:text-left",e),...t}));DS.displayName="AlertDialogHeader";const $S=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));$S.displayName="AlertDialogFooter";const LS=f.forwardRef(({className:e,...t},r)=>y.jsx(c2,{ref:r,className:D("text-primary text-lg leading-none tracking-tight",e),...t}));LS.displayName="AlertDialogTitle";const zS=f.forwardRef(({className:e,...t},r)=>y.jsx(u2,{ref:r,className:D("text-secondary text-sm",e),...t}));zS.displayName="AlertDialogDescription";const FS=f.forwardRef(({className:e,variant:t="primary",size:r="default",...n},o)=>y.jsx(s2,{ref:o,className:D(ml({variant:t,size:r}),e),...n}));FS.displayName="AlertDialogAction";const BS=f.forwardRef(({className:e,variant:t="secondary",size:r="default",...n},o)=>y.jsx(l2,{ref:o,className:D(ml({variant:t,size:r}),"mt-2 sm:mt-0",e),...n}));BS.displayName="AlertDialogCancel";const VS=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"}}),WS=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"span";return y.jsx(a,{className:D(VS({variant:t,size:r,className:e})),ref:i,...o})});WS.displayName="Badge";const KS=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"}}),US=f.forwardRef(({className:e,variant:t,align:r,asChild:n=!1,icon:o,action:i,onDismiss:a,children:s,...l},c)=>{const u=n?Ee:"div";return y.jsxs(u,{role:"alert",className:D(KS({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"})]})})]})});US.displayName="Banner";var x2=["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 cp(e){if(typeof e!="string")return!1;var t=x2;return t.includes(e)}var w2=["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"],S2=new Set(w2);function HS(e){return typeof e!="string"?!1:S2.has(e)}function GS(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)&&(HS(r)||GS(r))&&(t[r]=e[r]);return t}function En(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)&&(HS(r)||GS(r)||cp(r))&&(t[r]=e[r]);return t}function P2(e){return e==null?null:A.isValidElement(e)?mt(e.props):typeof e=="object"&&!Array.isArray(e)?mt(e):null}var E2=["children","width","height","viewBox","className","style","title","desc"];function _d(){return _d=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},_d.apply(null,arguments)}function O2(e,t){if(e==null)return{};var r,n,o=C2(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 C2(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 up=A.forwardRef((e,t)=>{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=O2(e,E2),d=i||{width:n,height:o,x:0,y:0},p=de("recharts-surface",a);return f.createElement("svg",_d({},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)}),A2=["children","className"];function Td(){return Td=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},Td.apply(null,arguments)}function _2(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 Xe=f.forwardRef((e,t)=>{var{children:r,className:n}=e,o=_2(e,A2),i=de("recharts-layer",n);return f.createElement("g",Td({className:i},mt(o),{ref:t}),r)}),qS=A.createContext(null),j2=()=>A.useContext(qS);function we(e){return function(){return e}}const YS=Math.cos,ts=Math.sin,Gt=Math.sqrt,rs=Math.PI,hl=2*rs,jd=Math.PI,Nd=2*jd,un=1e-6,N2=Nd-un;function XS(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function M2(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return XS;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?XS:M2(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((jd-Math.acos((m+p-h)/(2*b*x)))/2),S=w/x,E=w/b;Math.abs(S-1)>un&&this._append`L${t+S*u},${r+S*d}`,this._append`A${i},${i},0,0,${+(d*v>u*g)},${this._x1=t+E*l},${this._y1=r+E*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%Nd+Nd),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>=jd)},${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 dp(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 fp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ZS(e){this._context=e}ZS.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 gl(e){return new ZS(e)}function JS(e){return e[0]}function QS(e){return e[1]}function eP(e,t){var r=we(!0),n=null,o=gl,i=null,a=dp(s);e=typeof e=="function"?e:e===void 0?JS:we(e),t=typeof t=="function"?t:t===void 0?QS:we(t);function s(l){var c,u=(l=fp(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 ma(e,t,r){var n=null,o=we(!0),i=null,a=gl,s=null,l=dp(c);e=typeof e=="function"?e:e===void 0?JS:we(+e),t=typeof t=="function"?t:we(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?QS:we(+r);function c(d){var p,v,g,m=(d=fp(d)).length,h,b=!1,x,w=new Array(m),S=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],S[g]);s.lineEnd(),s.areaEnd()}b&&(w[p]=+e(h,p,d),S[p]=+t(h,p,d),s.point(n?+n(h,p,d):w[p],r?+r(h,p,d):S[p]))}if(x)return s=null,x+""||null}function u(){return eP().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 tP{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 k2(e){return new tP(e,!0)}function R2(e){return new tP(e,!1)}const pp={draw(e,t){const r=Gt(t/rs);e.moveTo(r,0),e.arc(0,0,r,0,hl)}},D2={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()}},rP=Gt(1/3),$2=rP*2,L2={draw(e,t){const r=Gt(t/$2),n=r*rP;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},z2={draw(e,t){const r=Gt(t),n=-r/2;e.rect(n,n,r,r)}},F2=.8908130915292852,nP=ts(rs/10)/ts(7*rs/10),B2=ts(hl/10)*nP,V2=-YS(hl/10)*nP,W2={draw(e,t){const r=Gt(t*F2),n=B2*r,o=V2*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){const a=hl*i/5,s=YS(a),l=ts(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}},Fc=Gt(3),K2={draw(e,t){const r=-Gt(t/(Fc*3));e.moveTo(0,r*2),e.lineTo(-Fc*r,-r),e.lineTo(Fc*r,-r),e.closePath()}},Tt=-.5,jt=Gt(3)/2,Md=1/Gt(12),U2=(Md/2+1)*3,H2={draw(e,t){const r=Gt(t/U2),n=r/2,o=r*Md,i=n,a=r*Md+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 G2(e,t){let r=null,n=dp(o);e=typeof e=="function"?e:we(e||pp),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 ns(){}function os(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 oP(e){this._context=e}oP.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:os(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:os(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function q2(e){return new oP(e)}function iP(e){this._context=e}iP.prototype={areaStart:ns,areaEnd:ns,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:os(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Y2(e){return new iP(e)}function aP(e){this._context=e}aP.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:os(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function X2(e){return new aP(e)}function sP(e){this._context=e}sP.prototype={areaStart:ns,areaEnd:ns,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 Z2(e){return new sP(e)}function wh(e){return e<0?-1:1}function Sh(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(wh(i)+wh(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Ph(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Bc(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 is(e){this._context=e}is.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:Bc(this,this._t0,Ph(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,Bc(this,Ph(this,r=Sh(this,e,t)),r);break;default:Bc(this,this._t0,r=Sh(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function lP(e){this._context=new cP(e)}(lP.prototype=Object.create(is.prototype)).point=function(e,t){is.prototype.point.call(this,t,e)};function cP(e){this._context=e}cP.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 J2(e){return new is(e)}function Q2(e){return new lP(e)}function uP(e){this._context=e}uP.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=Eh(e),o=Eh(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 Eh(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 e$(e){return new uP(e)}function yl(e,t){this._context=e,this._t=t}yl.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 t$(e){return new yl(e,.5)}function r$(e){return new yl(e,0)}function n$(e){return new yl(e,1)}function On(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 Id(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function o$(e,t){return e[t]}function i$(e){const t=[];return t.key=e,t}function a$(){var e=we([]),t=Id,r=On,n=o$;function o(i){var a=Array.from(e.apply(this,arguments),i$),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=fp(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?Id:typeof i=="function"?i:we(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(r=i??On,o):r},o}function s$(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}On(e,t)}}function l$(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}On(e,t)}}function c$(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,On(e,t)}}function Jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vc={},Wc={},Oh;function u$(){return Oh||(Oh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Wc)),Wc}var Kc={},Ch;function dP(){return Ch||(Ch=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})(Kc)),Kc}var Uc={},Ah;function vp(){return Ah||(Ah=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})(Uc)),Uc}var Hc={},Gc={},_h;function d$(){return _h||(_h=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})(Gc)),Gc}var Th;function mp(){return Th||(Th=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d$(),r=vp();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})(Hc)),Hc}var jh;function hp(){return jh||(jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=u$(),r=dP(),n=vp(),o=mp();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})(Vc)),Vc}var qc,Nh;function f$(){return Nh||(Nh=1,qc=hp().get),qc}var p$=f$();const Cn=Jr(p$);var v$=4;function Vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v$,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 qe=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",m$=0,ei=e=>{var t=++m$;return"".concat(e||"").concat(t)},at=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},fP=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 pP(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",Ei=e=>Te(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function yt(e){return e!=null}function zn(){}var h$=["type","size","sizeType"];function kd(){return kd=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},kd.apply(null,arguments)}function Mh(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 Ih(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mh(Object(r),!0).forEach(function(n){g$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g$(e,t,r){return(t=y$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y$(e){var t=b$(e,"string");return typeof t=="symbol"?t:t+""}function b$(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 x$(e,t){if(e==null)return{};var r,n,o=w$(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 w$(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 vP={symbolCircle:pp,symbolCross:D2,symbolDiamond:L2,symbolSquare:z2,symbolStar:W2,symbolTriangle:K2,symbolWye:H2},S$=Math.PI/180,P$=e=>{var t="symbol".concat(Ei(e));return vP[t]||pp},E$=(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*S$;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}},O$=(e,t)=>{vP["symbol".concat(Ei(e))]=t},gp=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=x$(e,h$),i=Ih(Ih({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=P$(a),v=G2().type(p).size(E$(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",kd({},d,{className:de("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};gp.registerSymbol=O$;var mP=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,yp=(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=>{cp(o)&&(n[o]=(i=>r[o](r,i)))}),n},C$=(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];cp(o)&&typeof i=="function"&&(n||(n={}),n[o]=C$(i,t,r))}),n};function kh(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?kh(Object(r),!0).forEach(function(n){_$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _$(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=j$(e,"string");return typeof t=="symbol"?t:t+""}function j$(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=A$({},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 as(){return as=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},as.apply(null,arguments)}function Rh(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?Rh(Object(r),!0).forEach(function(n){M$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M$(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=k$(e,"string");return typeof t=="symbol"?t:t+""}function k$(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,R$={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function D$(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},n2=bS,o2=xS,i2=wS,a2=SS,s2=PS,l2=_S,c2=jS,u2=OS,d2=AS,f2=Symbol.for("react.lazy"),ts=f[" use ".trim().toString()];function p2(e){return typeof e=="object"&&e!==null&&"then"in e}function NS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===f2&&"_payload"in e&&p2(e._payload)}function MS(e){const t=v2(e),r=f.forwardRef((n,o)=>{let{children:i,...a}=n;NS(i)&&typeof ts=="function"&&(i=ts(i._payload));const s=f.Children.toArray(i),l=s.find(h2);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 Ee=MS("Slot");function v2(e){const t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(NS(o)&&typeof ts=="function"&&(o=ts(o._payload)),f.isValidElement(o)){const a=y2(o),s=g2(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 m2=Symbol("radix.slottable");function h2(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===m2}function g2(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 y2(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 hl=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"}}),IS=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"button";return y.jsx(a,{className:D(hl({variant:t,size:r,className:e})),ref:i,...o})});IS.displayName="Button";const b2=n2,x2=o2,kS=i2,cp=f.forwardRef(({className:e,...t},r)=>y.jsx(a2,{ref:r,className:D("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}));cp.displayName="AlertDialogOverlay";const RS=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"}}),DS=f.forwardRef(({className:e,size:t,...r},n)=>y.jsxs(kS,{children:[y.jsx(cp,{}),y.jsx(s2,{ref:n,className:D(RS({size:t}),e),...r})]}));DS.displayName="AlertDialogContent";const $S=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col space-y-2 text-center sm:text-left",e),...t}));$S.displayName="AlertDialogHeader";const LS=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));LS.displayName="AlertDialogFooter";const zS=f.forwardRef(({className:e,...t},r)=>y.jsx(u2,{ref:r,className:D("text-primary text-lg leading-none tracking-tight",e),...t}));zS.displayName="AlertDialogTitle";const FS=f.forwardRef(({className:e,...t},r)=>y.jsx(d2,{ref:r,className:D("text-secondary text-sm",e),...t}));FS.displayName="AlertDialogDescription";const BS=f.forwardRef(({className:e,variant:t="primary",size:r="default",...n},o)=>y.jsx(l2,{ref:o,className:D(hl({variant:t,size:r}),e),...n}));BS.displayName="AlertDialogAction";const VS=f.forwardRef(({className:e,variant:t="secondary",size:r="default",...n},o)=>y.jsx(c2,{ref:o,className:D(hl({variant:t,size:r}),"mt-2 sm:mt-0",e),...n}));VS.displayName="AlertDialogCancel";const WS=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"}}),KS=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"span";return y.jsx(a,{className:D(WS({variant:t,size:r,className:e})),ref:i,...o})});KS.displayName="Badge";const US=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"}}),HS=f.forwardRef(({className:e,variant:t,align:r,asChild:n=!1,icon:o,action:i,onDismiss:a,children:s,...l},c)=>{const u=n?Ee:"div";return y.jsxs(u,{role:"alert",className:D(US({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"})]})})]})});HS.displayName="Banner";var w2=["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 up(e){if(typeof e!="string")return!1;var t=w2;return t.includes(e)}var S2=["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"],P2=new Set(S2);function GS(e){return typeof e!="string"?!1:P2.has(e)}function qS(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)&&(GS(r)||qS(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)&&(GS(r)||qS(r)||up(r))&&(t[r]=e[r]);return t}function E2(e){return e==null?null:A.isValidElement(e)?mt(e.props):typeof e=="object"&&!Array.isArray(e)?mt(e):null}var O2=["children","width","height","viewBox","className","style","title","desc"];function Td(){return Td=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},Td.apply(null,arguments)}function C2(e,t){if(e==null)return{};var r,n,o=A2(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 A2(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 dp=A.forwardRef((e,t)=>{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=C2(e,O2),d=i||{width:n,height:o,x:0,y:0},p=de("recharts-surface",a);return f.createElement("svg",Td({},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)}),_2=["children","className"];function jd(){return jd=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},jd.apply(null,arguments)}function T2(e,t){if(e==null)return{};var r,n,o=j2(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 j2(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 Xe=f.forwardRef((e,t)=>{var{children:r,className:n}=e,o=T2(e,_2),i=de("recharts-layer",n);return f.createElement("g",jd({className:i},mt(o),{ref:t}),r)}),YS=A.createContext(null),N2=()=>A.useContext(YS);function we(e){return function(){return e}}const XS=Math.cos,rs=Math.sin,Gt=Math.sqrt,ns=Math.PI,gl=2*ns,Nd=Math.PI,Md=2*Nd,dn=1e-6,M2=Md-dn;function ZS(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 ZS;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 k2{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?ZS: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>dn)if(!(Math.abs(d*l-c*u)>dn)||!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((Nd-Math.acos((m+p-h)/(2*b*x)))/2),S=w/x,E=w/b;Math.abs(S-1)>dn&&this._append`L${t+S*u},${r+S*d}`,this._append`A${i},${i},0,0,${+(d*v>u*g)},${this._x1=t+E*l},${this._y1=r+E*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)>dn||Math.abs(this._y1-u)>dn)&&this._append`L${c},${u}`,n&&(p<0&&(p=p%Md+Md),p>M2?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>dn&&this._append`A${n},${n},0,${+(p>=Nd)},${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 fp(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 k2(t)}function pp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function JS(e){this._context=e}JS.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 yl(e){return new JS(e)}function QS(e){return e[0]}function eP(e){return e[1]}function tP(e,t){var r=we(!0),n=null,o=yl,i=null,a=fp(s);e=typeof e=="function"?e:e===void 0?QS:we(e),t=typeof t=="function"?t:t===void 0?eP:we(t);function s(l){var c,u=(l=pp(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 ha(e,t,r){var n=null,o=we(!0),i=null,a=yl,s=null,l=fp(c);e=typeof e=="function"?e:e===void 0?QS:we(+e),t=typeof t=="function"?t:we(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?eP:we(+r);function c(d){var p,v,g,m=(d=pp(d)).length,h,b=!1,x,w=new Array(m),S=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],S[g]);s.lineEnd(),s.areaEnd()}b&&(w[p]=+e(h,p,d),S[p]=+t(h,p,d),s.point(n?+n(h,p,d):w[p],r?+r(h,p,d):S[p]))}if(x)return s=null,x+""||null}function u(){return tP().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 rP{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 R2(e){return new rP(e,!0)}function D2(e){return new rP(e,!1)}const vp={draw(e,t){const r=Gt(t/ns);e.moveTo(r,0),e.arc(0,0,r,0,gl)}},$2={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()}},nP=Gt(1/3),L2=nP*2,z2={draw(e,t){const r=Gt(t/L2),n=r*nP;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)}},B2=.8908130915292852,oP=rs(ns/10)/rs(7*ns/10),V2=rs(gl/10)*oP,W2=-XS(gl/10)*oP,K2={draw(e,t){const r=Gt(t*B2),n=V2*r,o=W2*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){const a=gl*i/5,s=XS(a),l=rs(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}},Bc=Gt(3),U2={draw(e,t){const r=-Gt(t/(Bc*3));e.moveTo(0,r*2),e.lineTo(-Bc*r,-r),e.lineTo(Bc*r,-r),e.closePath()}},Tt=-.5,jt=Gt(3)/2,Id=1/Gt(12),H2=(Id/2+1)*3,G2={draw(e,t){const r=Gt(t/H2),n=r/2,o=r*Id,i=n,a=r*Id+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 q2(e,t){let r=null,n=fp(o);e=typeof e=="function"?e:we(e||vp),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 os(){}function is(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 iP(e){this._context=e}iP.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:is(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:is(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Y2(e){return new iP(e)}function aP(e){this._context=e}aP.prototype={areaStart:os,areaEnd:os,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:is(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function X2(e){return new aP(e)}function sP(e){this._context=e}sP.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:is(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Z2(e){return new sP(e)}function lP(e){this._context=e}lP.prototype={areaStart:os,areaEnd:os,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 J2(e){return new lP(e)}function Sh(e){return e<0?-1:1}function Ph(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(Sh(i)+Sh(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Eh(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Vc(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 as(e){this._context=e}as.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:Vc(this,this._t0,Eh(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,Vc(this,Eh(this,r=Ph(this,e,t)),r);break;default:Vc(this,this._t0,r=Ph(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function cP(e){this._context=new uP(e)}(cP.prototype=Object.create(as.prototype)).point=function(e,t){as.prototype.point.call(this,t,e)};function uP(e){this._context=e}uP.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 Q2(e){return new as(e)}function e$(e){return new cP(e)}function dP(e){this._context=e}dP.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=Oh(e),o=Oh(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 Oh(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 t$(e){return new dP(e)}function bl(e,t){this._context=e,this._t=t}bl.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 r$(e){return new bl(e,.5)}function n$(e){return new bl(e,0)}function o$(e){return new bl(e,1)}function Cn(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 kd(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function i$(e,t){return e[t]}function a$(e){const t=[];return t.key=e,t}function s$(){var e=we([]),t=kd,r=Cn,n=i$;function o(i){var a=Array.from(e.apply(this,arguments),a$),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=pp(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?kd:typeof i=="function"?i:we(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(r=i??Cn,o):r},o}function l$(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}Cn(e,t)}}function c$(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}Cn(e,t)}}function u$(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,Cn(e,t)}}function Jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wc={},Kc={},Ch;function d$(){return Ch||(Ch=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Kc)),Kc}var Uc={},Ah;function fP(){return Ah||(Ah=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})(Uc)),Uc}var Hc={},_h;function mp(){return _h||(_h=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})(Hc)),Hc}var Gc={},qc={},Th;function f$(){return Th||(Th=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})(qc)),qc}var jh;function hp(){return jh||(jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=f$(),r=mp();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})(Gc)),Gc}var Nh;function gp(){return Nh||(Nh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d$(),r=fP(),n=mp(),o=hp();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})(Wc)),Wc}var Yc,Mh;function p$(){return Mh||(Mh=1,Yc=gp().get),Yc}var v$=p$();const An=Jr(v$);var m$=4;function Vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m$,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 qe=e=>e===0?0:e>0?1:-1,or=e=>typeof e=="number"&&e!=+e,_n=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",h$=0,ti=e=>{var t=++h$;return"".concat(e||"").concat(t)},at=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(_n(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},pP=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 vP(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):An(n,t))===r)}var Te=e=>e===null||typeof e>"u",Oi=e=>Te(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function yt(e){return e!=null}function Fn(){}var g$=["type","size","sizeType"];function Rd(){return Rd=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},Rd.apply(null,arguments)}function Ih(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 kh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ih(Object(r),!0).forEach(function(n){y$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y$(e,t,r){return(t=b$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b$(e){var t=x$(e,"string");return typeof t=="symbol"?t:t+""}function x$(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 w$(e,t){if(e==null)return{};var r,n,o=S$(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 S$(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 mP={symbolCircle:vp,symbolCross:$2,symbolDiamond:z2,symbolSquare:F2,symbolStar:K2,symbolTriangle:U2,symbolWye:G2},P$=Math.PI/180,E$=e=>{var t="symbol".concat(Oi(e));return mP[t]||vp},O$=(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*P$;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}},C$=(e,t)=>{mP["symbol".concat(Oi(e))]=t},yp=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=w$(e,g$),i=kh(kh({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=E$(a),v=q2().type(p).size(O$(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",Rd({},d,{className:de("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};yp.registerSymbol=C$;var hP=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,bp=(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=>{up(o)&&(n[o]=(i=>r[o](r,i)))}),n},A$=(e,t,r)=>n=>(e(t,r,n),null),Ci=(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];up(o)&&typeof i=="function"&&(n||(n={}),n[o]=A$(i,t,r))}),n};function Rh(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){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rh(Object(r),!0).forEach(function(n){T$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T$(e,t,r){return(t=j$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j$(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),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 ss(){return ss=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},ss.apply(null,arguments)}function Dh(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 M$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dh(Object(r),!0).forEach(function(n){I$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I$(e,t,r){return(t=k$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k$(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)}var Mt=32,D$={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function $$(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(gp,{fill:s,cx:o,cy:o,size:Mt,sizeType:"diameter",type:l})}function $$(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",as({className:v,style:l,key:"legend-item-".concat(d)},Oi(e,u,d)),f.createElement(up,{width:r,height:r,viewBox:s,style:c,"aria-label":"".concat(m," legend icon")},f.createElement(D$,{data:u,iconType:a,inactiveColor:i})),f.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},m))})}var L$=e=>{var t=Le(e,R$),{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($$,as({},t,{payload:r})))},Yc={},Xc={},Dh;function z$(){return Dh||(Dh=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})(Xc)),Xc}var Zc={},$h;function F$(){return $h||($h=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})(Zc)),Zc}var Jc={},Lh;function hP(){return Lh||(Lh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Jc)),Jc}var Qc={},eu={},tu={},zh;function B$(){return zh||(zh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(tu)),tu}var Fh;function bp(){return Fh||(Fh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=B$();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(eu)),eu}var ru={},Bh;function V$(){return Bh||(Bh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(ru)),ru}var Vh;function W$(){return Vh||(Vh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bp(),r=V$();function n(o){return r.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=n})(Qc)),Qc}var nu={},ou={},Wh;function K$(){return Wh||(Wh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hp();function r(n){return function(o){return t.get(o,n)}}e.property=r})(ou)),ou}var iu={},au={},su={},lu={},Kh;function gP(){return Kh||(Kh=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})(lu)),lu}var cu={},Uh;function yP(){return Uh||(Uh=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})(cu)),cu}var uu={},Hh;function bP(){return Hh||(Hh=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})(uu)),uu}var Gh;function U$(){return Gh||(Gh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gP(),r=yP(),n=bP();function o(u,d,p){return typeof p!="function"?o(u,d,()=>{}):i(u,d,function v(g,m,h,b,x,w){const S=p(g,m,h,b,x,w);return S!==void 0?!!S: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 S=!1;if(p(w,h,m,u,d,v)&&(S=!0),S){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})(su)),su}var qh;function xP(){return qh||(qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U$();function r(n,o){return t.isMatchWith(n,o,()=>{})}e.isMatch=r})(au)),au}var du={},fu={},pu={},Yh;function H$(){return Yh||(Yh=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})(pu)),pu}var vu={},Xh;function xp(){return Xh||(Xh=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})(vu)),vu}var mu={},Zh;function wP(){return Zh||(Zh=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]",S="[object BigUint64Array]",E="[object Int8Array]",P="[object Int16Array]",O="[object Int32Array]",C="[object BigInt64Array]",N="[object Float32Array]",$="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=C,e.bigUint64ArrayTag=S,e.booleanTag=o,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=N,e.float64ArrayTag=$,e.functionTag=d,e.int16ArrayTag=P,e.int32ArrayTag=O,e.int8ArrayTag=E,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})(mu)),mu}var hu={},Jh;function G$(){return Jh||(Jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(hu)),hu}var Qh;function SP(){return Qh||(Qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H$(),r=xp(),n=wP(),o=yP(),i=G$();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})(fu)),fu}var eg;function q$(){return eg||(eg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=SP();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(du)),du}var tg;function Y$(){return tg||(tg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xP(),r=q$();function n(o){return o=r.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=n})(iu)),iu}var gu={},yu={},bu={},rg;function X$(){return rg||(rg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=SP(),r=xp(),n=wP();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})(bu)),bu}var ng;function Z$(){return ng||(ng=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=X$();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(yu)),yu}var xu={},wu={},og;function PP(){return og||(og=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})(wu)),wu}var Su={},ig;function J$(){return ig||(ig=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xp();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(Su)),Su}var ag;function Q$(){return ag||(ag=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dP(),r=PP(),n=J$(),o=mp();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})(xu)),xu}var sg;function eL(){return sg||(sg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xP(),r=vp(),n=Z$(),o=hp(),i=Q$();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})(gu)),gu}var lg;function tL(){return lg||(lg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hP(),r=K$(),n=Y$(),o=eL();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})(nu)),nu}var cg;function rL(){return cg||(cg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z$(),r=F$(),n=hP(),o=W$(),i=tL();function a(s,l=n.identity){return o.isArrayLikeObject(s)?t.uniqBy(Array.from(s),r.ary(i.iteratee(l),1)):[]}e.uniqBy=a})(Yc)),Yc}var Pu,ug;function nL(){return ug||(ug=1,Pu=rL().uniqBy),Pu}var oL=nL();const dg=Jr(oL);function EP(e,t,r){return t===!0?dg(e,r):typeof t=="function"?dg(e,t):e}var ha={exports:{}},Eu={},ga={exports:{}},Ou={};var fg;function iL(){if(fg)return Ou;fg=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 Ou.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Ou}var Cu={};var pg;function aL(){return pg||(pg=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;Cu.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())})()),Cu}var vg;function OP(){return vg||(vg=1,process.env.NODE_ENV==="production"?ga.exports=iL():ga.exports=aL()),ga.exports}var mg;function sL(){if(mg)return Eu;mg=1;var e=A,t=OP();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 Eu.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(P){if(!x){if(x=!0,w=P,P=p(P),v!==void 0&&m.hasValue){var O=m.value;if(v(O,P))return S=O}return S=P}if(O=S,n(w,P))return O;var C=p(P);return v!==void 0&&v(O,C)?(w=P,O):(w=P,S=C)}var x=!1,w,S,E=d===void 0?null:d;return[function(){return b(u())},E===null?void 0:function(){return b(E())}]},[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},Eu}var Au={};var hg;function lL(){return hg||(hg=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=OP(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;Au.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(P){if(!x){if(x=!0,w=P,P=p(P),v!==void 0&&m.hasValue){var O=m.value;if(v(O,P))return S=O}return S=P}if(O=S,n(w,P))return O;var C=p(P);return v!==void 0&&v(O,C)?(w=P,O):(w=P,S=C)}var x=!1,w,S,E=d===void 0?null:d;return[function(){return b(u())},E===null?void 0:function(){return b(E())}]},[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())})()),Au}var gg;function cL(){return gg||(gg=1,process.env.NODE_ENV==="production"?ha.exports=sL():ha.exports=lL()),ha.exports}var uL=cL(),wp=A.createContext(null),dL=e=>e,Se=()=>{var e=A.useContext(wp);return e?e.store.dispatch:dL},Ka=()=>{},fL=()=>Ka,pL=(e,t)=>e===t;function J(e){var t=A.useContext(wp),r=A.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ka,[t,e]);return uL.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:fL,t?t.store.getState:Ka,t?t.store.getState:Ka,r,pL)}var vL=(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=M$({},t);return delete u.legendIcon,f.cloneElement(t.legendIcon,u)}return f.createElement(yp,{fill:s,cx:o,cy:o,size:Mt,sizeType:"diameter",type:l})}function L$(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",ss({className:v,style:l,key:"legend-item-".concat(d)},Ci(e,u,d)),f.createElement(dp,{width:r,height:r,viewBox:s,style:c,"aria-label":"".concat(m," legend icon")},f.createElement($$,{data:u,iconType:a,inactiveColor:i})),f.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},m))})}var z$=e=>{var t=Le(e,D$),{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(L$,ss({},t,{payload:r})))},Xc={},Zc={},$h;function F$(){return $h||($h=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})(Zc)),Zc}var Jc={},Lh;function B$(){return Lh||(Lh=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})(Jc)),Jc}var Qc={},zh;function gP(){return zh||(zh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Qc)),Qc}var eu={},tu={},ru={},Fh;function V$(){return Fh||(Fh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(ru)),ru}var Bh;function xp(){return Bh||(Bh=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})(tu)),tu}var nu={},Vh;function W$(){return Vh||(Vh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(nu)),nu}var Wh;function K$(){return Wh||(Wh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xp(),r=W$();function n(o){return r.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=n})(eu)),eu}var ou={},iu={},Kh;function U$(){return Kh||(Kh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gp();function r(n){return function(o){return t.get(o,n)}}e.property=r})(iu)),iu}var au={},su={},lu={},cu={},Uh;function yP(){return Uh||(Uh=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})(cu)),cu}var uu={},Hh;function bP(){return Hh||(Hh=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})(uu)),uu}var du={},Gh;function xP(){return Gh||(Gh=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})(du)),du}var qh;function H$(){return qh||(qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yP(),r=bP(),n=xP();function o(u,d,p){return typeof p!="function"?o(u,d,()=>{}):i(u,d,function v(g,m,h,b,x,w){const S=p(g,m,h,b,x,w);return S!==void 0?!!S: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 S=!1;if(p(w,h,m,u,d,v)&&(S=!0),S){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})(lu)),lu}var Yh;function wP(){return Yh||(Yh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H$();function r(n,o){return t.isMatchWith(n,o,()=>{})}e.isMatch=r})(su)),su}var fu={},pu={},vu={},Xh;function G$(){return Xh||(Xh=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})(vu)),vu}var mu={},Zh;function wp(){return Zh||(Zh=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})(mu)),mu}var hu={},Jh;function SP(){return Jh||(Jh=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]",S="[object BigUint64Array]",E="[object Int8Array]",P="[object Int16Array]",O="[object Int32Array]",C="[object BigInt64Array]",N="[object Float32Array]",$="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=C,e.bigUint64ArrayTag=S,e.booleanTag=o,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=N,e.float64ArrayTag=$,e.functionTag=d,e.int16ArrayTag=P,e.int32ArrayTag=O,e.int8ArrayTag=E,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})(hu)),hu}var gu={},Qh;function q$(){return Qh||(Qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(gu)),gu}var eg;function PP(){return eg||(eg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G$(),r=wp(),n=SP(),o=bP(),i=q$();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})(pu)),pu}var tg;function Y$(){return tg||(tg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PP();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(fu)),fu}var rg;function X$(){return rg||(rg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wP(),r=Y$();function n(o){return o=r.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=n})(au)),au}var yu={},bu={},xu={},ng;function Z$(){return ng||(ng=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PP(),r=wp(),n=SP();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})(xu)),xu}var og;function J$(){return og||(og=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Z$();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(bu)),bu}var wu={},Su={},ig;function EP(){return ig||(ig=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})(Su)),Su}var Pu={},ag;function Q$(){return ag||(ag=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wp();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(Pu)),Pu}var sg;function eL(){return sg||(sg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fP(),r=EP(),n=Q$(),o=hp();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})(wu)),wu}var lg;function tL(){return lg||(lg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wP(),r=mp(),n=J$(),o=gp(),i=eL();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})(yu)),yu}var cg;function rL(){return cg||(cg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gP(),r=U$(),n=X$(),o=tL();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})(ou)),ou}var ug;function nL(){return ug||(ug=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=F$(),r=B$(),n=gP(),o=K$(),i=rL();function a(s,l=n.identity){return o.isArrayLikeObject(s)?t.uniqBy(Array.from(s),r.ary(i.iteratee(l),1)):[]}e.uniqBy=a})(Xc)),Xc}var Eu,dg;function oL(){return dg||(dg=1,Eu=nL().uniqBy),Eu}var iL=oL();const fg=Jr(iL);function OP(e,t,r){return t===!0?fg(e,r):typeof t=="function"?fg(e,t):e}var ga={exports:{}},Ou={},ya={exports:{}},Cu={};var pg;function aL(){if(pg)return Cu;pg=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 Cu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Cu}var Au={};var vg;function sL(){return vg||(vg=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;Au.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())})()),Au}var mg;function CP(){return mg||(mg=1,process.env.NODE_ENV==="production"?ya.exports=aL():ya.exports=sL()),ya.exports}var hg;function lL(){if(hg)return Ou;hg=1;var e=A,t=CP();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 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(P){if(!x){if(x=!0,w=P,P=p(P),v!==void 0&&m.hasValue){var O=m.value;if(v(O,P))return S=O}return S=P}if(O=S,n(w,P))return O;var C=p(P);return v!==void 0&&v(O,C)?(w=P,O):(w=P,S=C)}var x=!1,w,S,E=d===void 0?null:d;return[function(){return b(u())},E===null?void 0:function(){return b(E())}]},[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},Ou}var _u={};var gg;function cL(){return gg||(gg=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=CP(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;_u.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(P){if(!x){if(x=!0,w=P,P=p(P),v!==void 0&&m.hasValue){var O=m.value;if(v(O,P))return S=O}return S=P}if(O=S,n(w,P))return O;var C=p(P);return v!==void 0&&v(O,C)?(w=P,O):(w=P,S=C)}var x=!1,w,S,E=d===void 0?null:d;return[function(){return b(u())},E===null?void 0:function(){return b(E())}]},[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())})()),_u}var yg;function uL(){return yg||(yg=1,process.env.NODE_ENV==="production"?ga.exports=lL():ga.exports=cL()),ga.exports}var dL=uL(),Sp=A.createContext(null),fL=e=>e,Se=()=>{var e=A.useContext(Sp);return e?e.store.dispatch:fL},Ua=()=>{},pL=()=>Ua,vL=(e,t)=>e===t;function J(e){var t=A.useContext(Sp),r=A.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ua,[t,e]);return dL.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:pL,t?t.store.getState:Ua,t?t.store.getState:Ua,r,vL)}var mL=(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})}}},mL=(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})}}},hL=(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})}},hL={inputStabilityCheck:"once",identityFunctionCheck:"once"};function gL(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function yL(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function bL(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 yg=e=>Array.isArray(e)?e:[e];function xL(e){const t=Array.isArray(e[0])?e[0]:e;return bL(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function bg(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var wL=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...hL,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:vL},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:mL}}},SL=class{constructor(e){this.value=e}deref(){return this.value}},PL=typeof WeakRef<"u"?WeakRef:SL,EL=0,xg=1;function ya(){return{s:EL,v:void 0,o:null,p:null}}function CP(e,t={}){let r=ya();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=ya(),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=ya(),g.set(v,s)):s=m}}const c=s;let u;if(s.s===xg)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 PL(u):u}return c.s=xg,c.v=u,u}return a.clearCache=()=>{r=ya(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function OL(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()),gL(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:v=CP,argsMemoizeOptions:g=[],devModeChecks:m={}}=u,h=yg(p),b=yg(g),x=xL(o),w=d(function(){return i++,c.apply(null,arguments)},...h);let S=!0;const E=v(function(){a++;const O=bg(x,arguments);if(s=w.apply(null,O),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:C,inputStabilityCheck:N}=wL(S,m);if(C.shouldRun&&C.run(c,O,s),N.shouldRun){const $=bg(x,arguments);N.run({inputSelectorResults:O,inputSelectorResultsCopy:$},{memoize:d,memoizeOptions:h},arguments)}S&&(S=!1)}return s},...b);return Object.assign(E,{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 M=OL(CP),CL=Object.assign((e,t=M)=>{yL(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:()=>CL}),_u={},Tu={},ju={},wg;function AL(){return wg||(wg=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})(ju)),ju}var Nu={},Mu={},Sg;function AP(){return Sg||(Sg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Mu)),Mu}var Pg;function _L(){return Pg||(Pg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AP(),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})(Nu)),Nu}var Eg;function TL(){return Eg||(Eg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AL(),r=_L(),n=mp();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})(Tu)),Tu}var Iu={},Og;function jL(){return Og||(Og=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})(Iu)),Iu}var ku={},Cg;function _P(){return Cg||(Cg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PP(),r=bp(),n=gP(),o=bP();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})(ku)),ku}var Ag;function NL(){return Ag||(Ag=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TL(),r=jL(),n=_P();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})(_u)),_u}var Ru,_g;function ML(){return _g||(_g=1,Ru=NL().sortBy),Ru}var IL=ML();const bl=Jr(IL);var TP=e=>e.legend.settings,kL=e=>e.legend.size,RL=e=>e.legend.payload,DL=M([RL,TP],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?bl(n,r):n});function $L(){return J(DL)}var ba=1;function jP(){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)>ba||Math.abs(a.left-t.left)>ba||Math.abs(a.top-t.top)>ba||Math.abs(a.width-t.width)>ba)&&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 LL=typeof Symbol=="function"&&Symbol.observable||"@@observable",Tg=LL,Du=()=>Math.random().toString(36).substring(7).split("").join("."),zL={INIT:`@@redux/INIT${Du()}`,REPLACE:`@@redux/REPLACE${Du()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Du()}`},bn=zL;function Ci(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(WL(e))return"date";if(VL(e))return"error";const r=BL(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 BL(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 WL(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 NP(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(NP)(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(!Ci(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 S=b;S.next&&S.next(u())}return x(),{unsubscribe:h(x)}},[Tg](){return this}}}return p({type:bn.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:v,[Tg]:g}}function jg(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function KL(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(!Ci(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 UL(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 MP(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"&&jg(`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{UL(r)}catch(a){i=a}return function(s={},l){if(i)throw i;if(process.env.NODE_ENV!=="production"){const d=KL(s,r,l,o);d&&jg(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 ss(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function HL(...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=ss(...s)(o.dispatch),{...o,dispatch:i}}}function Sp(e){return Ci(e)&&"type"in e&&typeof e.type=="string"}var IP=Symbol.for("immer-nothing"),Ng=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state"),GL=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 Pt(e,...t){if(process.env.NODE_ENV!=="production"){const r=GL[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 Ot=Object,lo=Ot.getPrototypeOf,ls="constructor",xl="prototype",Rd="configurable",cs="enumerable",Ua="writable",ti="value",yr=e=>!!e&&!!e[ht];function Vt(e){return e?kP(e)||Sl(e)||!!e[Ng]||!!e[ls]?.[Ng]||Pl(e)||El(e):!1}var qL=Ot[xl][ls].toString(),Mg=new WeakMap;function kP(e){if(!e||!Pp(e))return!1;const t=lo(e);if(t===null||t===Ot[xl])return!0;const r=Ot.hasOwnProperty.call(t,ls)&&t[ls];if(r===Object)return!0;if(!pn(r))return!1;let n=Mg.get(r);return n===void 0&&(n=Function.toString.call(r),Mg.set(r,n)),n===qL}function wl(e,t,r=!0){Ai(e)===0?(r?Reflect.ownKeys(e):Ot.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Ai(e){const t=e[ht];return t?t.type_:Sl(e)?1:Pl(e)?2:El(e)?3:0}var Ig=(e,t,r=Ai(e))=>r===2?e.has(t):Ot[xl].hasOwnProperty.call(e,t),Dd=(e,t,r=Ai(e))=>r===2?e.get(t):e[t],us=(e,t,r,n=Ai(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function YL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Sl=Array.isArray,Pl=e=>e instanceof Map,El=e=>e instanceof Set,Pp=e=>typeof e=="object",pn=e=>typeof e=="function",$u=e=>typeof e=="boolean";function XL(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var fr=e=>e.copy_||e.base_,Ep=e=>e.modified_?e.copy_:e.base_;function $d(e,t){if(Pl(e))return new Map(e);if(El(e))return new Set(e);if(Sl(e))return Array[xl].slice.call(e);const r=kP(e);if(t===!0||t==="class_only"&&!r){const n=Ot.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[Ua]===!1&&(s[Ua]=!0,s[Rd]=!0),(s.get||s.set)&&(n[a]={[Rd]:!0,[Ua]:!0,[cs]:s[cs],[ti]:e[a]})}return Ot.create(lo(e),n)}else{const n=lo(e);if(n!==null&&r)return{...e};const o=Ot.create(n);return Ot.assign(o,e)}}function Op(e,t=!1){return Ol(e)||yr(e)||!Vt(e)||(Ai(e)>1&&Ot.defineProperties(e,{set:xa,add:xa,clear:xa,delete:xa}),Ot.freeze(e),t&&wl(e,(r,n)=>{Op(n,!0)},!1)),e}function ZL(){Pt(2)}var xa={[ti]:ZL};function Ol(e){return e===null||!Pp(e)?!0:Ot.isFrozen(e)}var ds="MapSet",Ld="Patches",kg="ArrayMethods",RP={};function _n(e){const t=RP[e];return t||Pt(0,e),t}var Rg=e=>!!RP[e],ri,DP=()=>ri,JL=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Rg(ds)?_n(ds):void 0,arrayMethodsPlugin_:Rg(kg)?_n(kg):void 0});function Dg(e,t){t&&(e.patchPlugin_=_n(Ld),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function zd(e){Fd(e),e.drafts_.forEach(QL),e.drafts_=null}function Fd(e){e===ri&&(ri=e.parent_)}var $g=e=>ri=JL(ri,e);function QL(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Lg(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[ht].modified_&&(zd(t),Pt(4)),Vt(e)&&(e=zg(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[ht].base_,e,t)}else e=zg(t,r);return ez(t,e,!0),zd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==IP?e:void 0}function zg(e,t){if(Ol(t))return t;const r=t[ht];if(!r)return fs(t,e.handledSet_,e);if(!Cl(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);zP(r,e)}return r.copy_}function ez(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Op(t,r)}function $P(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Cl=(e,t)=>e.scope_===t,tz=[];function LP(e,t,r,n){const o=fr(e),i=e.type_;if(n!==void 0&&Dd(o,n,i)===t){us(o,n,r,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;wl(o,(l,c)=>{if(yr(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const a=e.draftLocations_.get(t)??tz;for(const s of a)us(o,s,r,i)}function rz(e,t,r){e.callbacks_.push(function(o){const i=t;if(!i||!Cl(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const a=Ep(i);LP(e,i.draft_??i,a,r),zP(i,o)})}function zP(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)}$P(e)}}function nz(e,t,r){const{scope_:n}=e;if(yr(r)){const o=r[ht];Cl(o,n)&&o.callbacks_.push(function(){Ha(e);const a=Ep(o);LP(e,r,a,t)})}else Vt(r)&&e.callbacks_.push(function(){const i=fr(e);e.type_===3?i.has(r)&&fs(r,n.handledSet_,n):Dd(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&fs(Dd(e.copy_,t,e.type_),n.handledSet_,n)})}function fs(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||yr(e)||t.has(e)||!Vt(e)||Ol(e)||(t.add(e),wl(e,(n,o)=>{if(yr(o)){const i=o[ht];if(Cl(i,r)){const a=Ep(i);us(e,n,a,e.type_),$P(i)}}else Vt(o)&&fs(o,t,r)})),e}function oz(e,t){const r=Sl(e),n={type_:r?1:0,scope_:t?t.scope_:DP(),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=ps;r&&(o=[n],i=ni);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var ps={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(!Ig(o,t,e.type_))return iz(e,o,t);const i=o[t];if(e.finalized_||!Vt(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&XL(t))return i;if(i===Lu(e.base_,t)){Ha(e);const a=e.type_===1?+t:t,s=Vd(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=FP(fr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Lu(fr(e),t),i=o?.[ht];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(YL(r,o)&&(r!==void 0||Ig(e.base_,t,e.type_)))return!0;Ha(e),Bd(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),nz(e,t,r)),!0},deleteProperty(e,t){return Ha(e),Lu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Bd(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&&{[Ua]:!0,[Rd]:e.type_!==1||t!=="length",[cs]:n[cs],[ti]:r[t]}},defineProperty(){Pt(11)},getPrototypeOf(e){return lo(e.base_)},setPrototypeOf(){Pt(12)}},ni={};for(let e in ps){let t=ps[e];ni[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ni.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Pt(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))&&Pt(14),ps.set.call(this,e[0],t,r,e[0])};function Lu(e,t){const r=e[ht];return(r?fr(r):e)[t]}function iz(e,t,r){const n=FP(t,r);return n?ti in n?n[ti]:n.get?.call(e.draft_):void 0}function FP(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 Bd(e){e.modified_||(e.modified_=!0,e.parent_&&Bd(e.parent_))}function Ha(e){e.copy_||(e.assigned_=new Map,e.copy_=$d(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var az=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)||Pt(6),o!==void 0&&!pn(o)&&Pt(7);let i;if(Vt(r)){const a=$g(this),s=Vd(a,r,void 0);let l=!0;try{i=n(s),l=!1}finally{l?zd(a):Fd(a)}return Dg(a,o),Lg(i,a)}else if(!r||!Pp(r)){if(i=n(r),i===void 0&&(i=r),i===IP&&(i=void 0),this.autoFreeze_&&Op(i,!0),o){const a=[],s=[];_n(Ld).generateReplacementPatches_(r,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Pt(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]},$u(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),$u(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),$u(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Vt(t)||Pt(8),yr(t)&&(t=Bt(t));const r=$g(this),n=Vd(r,t,void 0);return n[ht].isManual_=!0,Fd(r),n}finishDraft(t,r){const n=t&&t[ht];(!n||!n.isManual_)&&Pt(9);const{scope_:o}=n;return Dg(o,r),Lg(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(Ld).applyPatches_;return yr(t)?o(t,r):this.produce(t,i=>o(i,r))}};function Vd(e,t,r,n){const[o,i]=Pl(t)?_n(ds).proxyMap_(t,r):El(t)?_n(ds).proxySet_(t,r):oz(t,r);return(r?.scope_??DP()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?rz(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)||Pt(10,e),BP(e)}function BP(e){if(!Vt(e)||Ol(e))return e;const t=e[ht];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$d(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=$d(e,!0);return wl(r,(o,i)=>{us(r,o,BP(i))},n),t&&(t.finalized_=!1),r}var sz=new az,VP=sz.produce;function WP(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var lz=WP(),cz=WP,uz=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ss:ss.apply(null,arguments)},dz=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=>Sp(n)&&n.type===e,r}function fz(e){return typeof e=="function"&&"type"in e&&dz(e)}function pz(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 vz(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=fz}=e;return()=>r=>n=>(t(n)&&console.warn(pz(n.type)),r(n))}function KP(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})}},gL={inputStabilityCheck:"once",identityFunctionCheck:"once"};function yL(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function bL(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function xL(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 bg=e=>Array.isArray(e)?e:[e];function wL(e){const t=Array.isArray(e[0])?e[0]:e;return xL(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function xg(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var SL=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...gL,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:mL},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:hL}}},PL=class{constructor(e){this.value=e}deref(){return this.value}},EL=typeof WeakRef<"u"?WeakRef:PL,OL=0,wg=1;function ba(){return{s:OL,v:void 0,o:null,p:null}}function AP(e,t={}){let r=ba();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=ba(),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=ba(),g.set(v,s)):s=m}}const c=s;let u;if(s.s===wg)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 EL(u):u}return c.s=wg,c.v=u,u}return a.clearCache=()=>{r=ba(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function CL(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()),yL(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:v=AP,argsMemoizeOptions:g=[],devModeChecks:m={}}=u,h=bg(p),b=bg(g),x=wL(o),w=d(function(){return i++,c.apply(null,arguments)},...h);let S=!0;const E=v(function(){a++;const O=xg(x,arguments);if(s=w.apply(null,O),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:C,inputStabilityCheck:N}=SL(S,m);if(C.shouldRun&&C.run(c,O,s),N.shouldRun){const $=xg(x,arguments);N.run({inputSelectorResults:O,inputSelectorResultsCopy:$},{memoize:d,memoizeOptions:h},arguments)}S&&(S=!1)}return s},...b);return Object.assign(E,{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 M=CL(AP),AL=Object.assign((e,t=M)=>{bL(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:()=>AL}),Tu={},ju={},Nu={},Sg;function _L(){return Sg||(Sg=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})(Nu)),Nu}var Mu={},Iu={},Pg;function _P(){return Pg||(Pg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Iu)),Iu}var Eg;function TL(){return Eg||(Eg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_P(),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})(Mu)),Mu}var Og;function jL(){return Og||(Og=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_L(),r=TL(),n=hp();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})(ju)),ju}var ku={},Cg;function NL(){return Cg||(Cg=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})(ku)),ku}var Ru={},Ag;function TP(){return Ag||(Ag=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EP(),r=xp(),n=yP(),o=xP();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})(Ru)),Ru}var _g;function ML(){return _g||(_g=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jL(),r=NL(),n=TP();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})(Tu)),Tu}var Du,Tg;function IL(){return Tg||(Tg=1,Du=ML().sortBy),Du}var kL=IL();const xl=Jr(kL);var jP=e=>e.legend.settings,RL=e=>e.legend.size,DL=e=>e.legend.payload,$L=M([DL,jP],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?xl(n,r):n});function LL(){return J($L)}var xa=1;function NP(){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)>xa||Math.abs(a.left-t.left)>xa||Math.abs(a.top-t.top)>xa||Math.abs(a.width-t.width)>xa)&&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 zL=typeof Symbol=="function"&&Symbol.observable||"@@observable",jg=zL,$u=()=>Math.random().toString(36).substring(7).split("").join("."),FL={INIT:`@@redux/INIT${$u()}`,REPLACE:`@@redux/REPLACE${$u()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${$u()}`},xn=FL;function Ai(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 BL(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(KL(e))return"date";if(WL(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 WL(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function KL(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=BL(e)),t}function MP(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(MP)(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(!Ai(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:xn.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 S=b;S.next&&S.next(u())}return x(),{unsubscribe:h(x)}},[jg](){return this}}}return p({type:xn.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:v,[jg]:g}}function Ng(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function UL(e,t,r,n){const o=Object.keys(t),i=r&&r.type===xn.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(!Ai(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===xn.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 HL(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:xn.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:xn.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 '${xn.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 IP(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"&&Ng(`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{HL(r)}catch(a){i=a}return function(s={},l){if(i)throw i;if(process.env.NODE_ENV!=="production"){const d=UL(s,r,l,o);d&&Ng(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 ls(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function GL(...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=ls(...s)(o.dispatch),{...o,dispatch:i}}}function Pp(e){return Ai(e)&&"type"in e&&typeof e.type=="string"}var kP=Symbol.for("immer-nothing"),Mg=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state"),qL=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 Pt(e,...t){if(process.env.NODE_ENV!=="production"){const r=qL[e],n=vn(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 Ot=Object,co=Ot.getPrototypeOf,cs="constructor",wl="prototype",Dd="configurable",us="enumerable",Ha="writable",ri="value",yr=e=>!!e&&!!e[ht];function Vt(e){return e?RP(e)||Pl(e)||!!e[Mg]||!!e[cs]?.[Mg]||El(e)||Ol(e):!1}var YL=Ot[wl][cs].toString(),Ig=new WeakMap;function RP(e){if(!e||!Ep(e))return!1;const t=co(e);if(t===null||t===Ot[wl])return!0;const r=Ot.hasOwnProperty.call(t,cs)&&t[cs];if(r===Object)return!0;if(!vn(r))return!1;let n=Ig.get(r);return n===void 0&&(n=Function.toString.call(r),Ig.set(r,n)),n===YL}function Sl(e,t,r=!0){_i(e)===0?(r?Reflect.ownKeys(e):Ot.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function _i(e){const t=e[ht];return t?t.type_:Pl(e)?1:El(e)?2:Ol(e)?3:0}var kg=(e,t,r=_i(e))=>r===2?e.has(t):Ot[wl].hasOwnProperty.call(e,t),$d=(e,t,r=_i(e))=>r===2?e.get(t):e[t],ds=(e,t,r,n=_i(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function XL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Pl=Array.isArray,El=e=>e instanceof Map,Ol=e=>e instanceof Set,Ep=e=>typeof e=="object",vn=e=>typeof e=="function",Lu=e=>typeof e=="boolean";function ZL(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var fr=e=>e.copy_||e.base_,Op=e=>e.modified_?e.copy_:e.base_;function Ld(e,t){if(El(e))return new Map(e);if(Ol(e))return new Set(e);if(Pl(e))return Array[wl].slice.call(e);const r=RP(e);if(t===!0||t==="class_only"&&!r){const n=Ot.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[Ha]===!1&&(s[Ha]=!0,s[Dd]=!0),(s.get||s.set)&&(n[a]={[Dd]:!0,[Ha]:!0,[us]:s[us],[ri]:e[a]})}return Ot.create(co(e),n)}else{const n=co(e);if(n!==null&&r)return{...e};const o=Ot.create(n);return Ot.assign(o,e)}}function Cp(e,t=!1){return Cl(e)||yr(e)||!Vt(e)||(_i(e)>1&&Ot.defineProperties(e,{set:wa,add:wa,clear:wa,delete:wa}),Ot.freeze(e),t&&Sl(e,(r,n)=>{Cp(n,!0)},!1)),e}function JL(){Pt(2)}var wa={[ri]:JL};function Cl(e){return e===null||!Ep(e)?!0:Ot.isFrozen(e)}var fs="MapSet",zd="Patches",Rg="ArrayMethods",DP={};function Tn(e){const t=DP[e];return t||Pt(0,e),t}var Dg=e=>!!DP[e],ni,$P=()=>ni,QL=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Dg(fs)?Tn(fs):void 0,arrayMethodsPlugin_:Dg(Rg)?Tn(Rg):void 0});function $g(e,t){t&&(e.patchPlugin_=Tn(zd),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fd(e){Bd(e),e.drafts_.forEach(ez),e.drafts_=null}function Bd(e){e===ni&&(ni=e.parent_)}var Lg=e=>ni=QL(ni,e);function ez(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function zg(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[ht].modified_&&(Fd(t),Pt(4)),Vt(e)&&(e=Fg(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[ht].base_,e,t)}else e=Fg(t,r);return tz(t,e,!0),Fd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==kP?e:void 0}function Fg(e,t){if(Cl(t))return t;const r=t[ht];if(!r)return ps(t,e.handledSet_,e);if(!Al(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);FP(r,e)}return r.copy_}function tz(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Cp(t,r)}function LP(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Al=(e,t)=>e.scope_===t,rz=[];function zP(e,t,r,n){const o=fr(e),i=e.type_;if(n!==void 0&&$d(o,n,i)===t){ds(o,n,r,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;Sl(o,(l,c)=>{if(yr(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const a=e.draftLocations_.get(t)??rz;for(const s of a)ds(o,s,r,i)}function nz(e,t,r){e.callbacks_.push(function(o){const i=t;if(!i||!Al(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const a=Op(i);zP(e,i.draft_??i,a,r),FP(i,o)})}function FP(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)}LP(e)}}function oz(e,t,r){const{scope_:n}=e;if(yr(r)){const o=r[ht];Al(o,n)&&o.callbacks_.push(function(){Ga(e);const a=Op(o);zP(e,r,a,t)})}else Vt(r)&&e.callbacks_.push(function(){const i=fr(e);e.type_===3?i.has(r)&&ps(r,n.handledSet_,n):$d(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ps($d(e.copy_,t,e.type_),n.handledSet_,n)})}function ps(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||yr(e)||t.has(e)||!Vt(e)||Cl(e)||(t.add(e),Sl(e,(n,o)=>{if(yr(o)){const i=o[ht];if(Al(i,r)){const a=Op(i);ds(e,n,a,e.type_),LP(i)}}else Vt(o)&&ps(o,t,r)})),e}function iz(e,t){const r=Pl(e),n={type_:r?1:0,scope_:t?t.scope_:$P(),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=vs;r&&(o=[n],i=oi);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var vs={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(!kg(o,t,e.type_))return az(e,o,t);const i=o[t];if(e.finalized_||!Vt(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&ZL(t))return i;if(i===zu(e.base_,t)){Ga(e);const a=e.type_===1?+t:t,s=Wd(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=BP(fr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=zu(fr(e),t),i=o?.[ht];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(XL(r,o)&&(r!==void 0||kg(e.base_,t,e.type_)))return!0;Ga(e),Vd(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),oz(e,t,r)),!0},deleteProperty(e,t){return Ga(e),zu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Vd(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&&{[Ha]:!0,[Dd]:e.type_!==1||t!=="length",[us]:n[us],[ri]:r[t]}},defineProperty(){Pt(11)},getPrototypeOf(e){return co(e.base_)},setPrototypeOf(){Pt(12)}},oi={};for(let e in vs){let t=vs[e];oi[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}oi.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Pt(13),oi.set.call(this,e,t,void 0)};oi.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Pt(14),vs.set.call(this,e[0],t,r,e[0])};function zu(e,t){const r=e[ht];return(r?fr(r):e)[t]}function az(e,t,r){const n=BP(t,r);return n?ri in n?n[ri]:n.get?.call(e.draft_):void 0}function BP(e,t){if(!(t in e))return;let r=co(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=co(r)}}function Vd(e){e.modified_||(e.modified_=!0,e.parent_&&Vd(e.parent_))}function Ga(e){e.copy_||(e.assigned_=new Map,e.copy_=Ld(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var sz=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,o)=>{if(vn(r)&&!vn(n)){const a=n;n=r;const s=this;return function(c=a,...u){return s.produce(c,d=>n.call(this,d,...u))}}vn(n)||Pt(6),o!==void 0&&!vn(o)&&Pt(7);let i;if(Vt(r)){const a=Lg(this),s=Wd(a,r,void 0);let l=!0;try{i=n(s),l=!1}finally{l?Fd(a):Bd(a)}return $g(a,o),zg(i,a)}else if(!r||!Ep(r)){if(i=n(r),i===void 0&&(i=r),i===kP&&(i=void 0),this.autoFreeze_&&Cp(i,!0),o){const a=[],s=[];Tn(zd).generateReplacementPatches_(r,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Pt(1,r)},this.produceWithPatches=(r,n)=>{if(vn(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]},Lu(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Lu(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Lu(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Vt(t)||Pt(8),yr(t)&&(t=Bt(t));const r=Lg(this),n=Wd(r,t,void 0);return n[ht].isManual_=!0,Bd(r),n}finishDraft(t,r){const n=t&&t[ht];(!n||!n.isManual_)&&Pt(9);const{scope_:o}=n;return $g(o,r),zg(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=Tn(zd).applyPatches_;return yr(t)?o(t,r):this.produce(t,i=>o(i,r))}};function Wd(e,t,r,n){const[o,i]=El(t)?Tn(fs).proxyMap_(t,r):Ol(t)?Tn(fs).proxySet_(t,r):iz(t,r);return(r?.scope_??$P()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?nz(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)||Pt(10,e),VP(e)}function VP(e){if(!Vt(e)||Cl(e))return e;const t=e[ht];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ld(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Ld(e,!0);return Sl(r,(o,i)=>{ds(r,o,VP(i))},n),t&&(t.finalized_=!1),r}var lz=new sz,WP=lz.produce;function KP(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var cz=KP(),uz=KP,dz=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ls:ls.apply(null,arguments)},fz=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=>Pp(n)&&n.type===e,r}function pz(e){return typeof e=="function"&&"type"in e&&fz(e)}function vz(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 mz(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=pz}=e;return()=>r=>n=>(t(n)&&console.warn(vz(n.type)),r(n))}function UP(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 UP=class qo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,qo.prototype)}static get[Symbol.species](){return qo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new qo(...t[0].concat(this)):new qo(...t.concat(this))}};function Fg(e){return Vt(e)?VP(e,()=>{}):e}function wa(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function mz(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function hz(e,t,r){const n=HP(e,t,r);return{detectMutations(){return GP(e,t,n,r)}}}function HP(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]=HP(e,t,r[s],l))}}return i}function GP(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=GP(e,t,r.children[u],n[u],s,d);if(p.wasMutated)return p}return{wasMutated:!1}}function gz(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=mz,ignoredPaths:o,warnAfter:i=32}=e;const a=hz.bind(null,n,o);return({getState:s})=>{let l=s(),c=a(l),u;return d=>p=>{const v=KP(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 qP(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Ci(e)}function Wd(e,t="",r=qP,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=Wd(u,d,r,n,o,i),a))return a}}return i&&YP(e)&&i.add(e),!1}function YP(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!YP(t))return!1;return!0}function yz(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=qP,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(!Sp(v))return p(v);const g=p(v),m=KP(a,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(v.type)!==-1)&&m.measureTime(()=>{const h=Wd(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 HP=class Yo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Yo.prototype)}static get[Symbol.species](){return Yo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Yo(...t[0].concat(this)):new Yo(...t.concat(this))}};function Bg(e){return Vt(e)?WP(e,()=>{}):e}function Sa(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function hz(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function gz(e,t,r){const n=GP(e,t,r);return{detectMutations(){return qP(e,t,n,r)}}}function GP(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]=GP(e,t,r[s],l))}}return i}function qP(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=qP(e,t,r.children[u],n[u],s,d);if(p.wasMutated)return p}return{wasMutated:!1}}function yz(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=hz,ignoredPaths:o,warnAfter:i=32}=e;const a=gz.bind(null,n,o);return({getState:s})=>{let l=s(),c=a(l),u;return d=>p=>{const v=UP(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 YP(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Ai(e)}function Kd(e,t="",r=YP,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=Kd(u,d,r,n,o,i),a))return a}}return i&&XP(e)&&i.add(e),!1}function XP(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!XP(t))return!1;return!0}function bz(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=YP,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(!Pp(v))return p(v);const g=p(v),m=UP(a,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(v.type)!==-1)&&m.measureTime(()=>{const h=Kd(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
- (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=Wd(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,`
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=Kd(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 Sa(e){return typeof e=="boolean"}var bz=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new UP;if(r&&(Sa(r)?a.push(lz):a.push(cz(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};Sa(n)||(s=n),a.unshift(gz(s))}if(o){let s={};Sa(o)||(s=o),a.push(yz(s))}if(i){let s={};Sa(i)||(s=i),a.unshift(vz(s))}}return a},XP="RTK_autoBatch",Ce=()=>e=>({payload:e,meta:{[XP]:!0}}),Bg=e=>t=>{setTimeout(t,e)},ZP=(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:Bg(10):e.type==="callback"?e.queueNotification:Bg(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?.[XP],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},xz=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new UP(e);return n&&o.push(ZP(typeof n=="object"?n:void 0)),o};function wz(e){const t=bz(),{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(Ci(r))l=MP(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=ss;o&&(u=uz({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const d=HL(...c),p=xz(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 NP(l,a,g)}function JP(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 Sz(e){return typeof e=="function"}function Pz(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]=JP(t),i;if(Sz(e))i=()=>Fg(e());else{const s=Fg(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 VP(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 Ez="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Oz=(e=21)=>{let t="",r=e;for(;r--;)t+=Ez[Math.random()*64|0];return t},Cz=Symbol.for("rtk-slice-createasyncthunk");function Az(e,t){return`${e}/${t}`}function _z({creators:e}={}){const t=e?.asyncThunk?.[Cz];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(jz()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(w,S){const E=typeof w=="string"?w:w.type;if(!E)throw new Error(process.env.NODE_ENV==="production"?me(12):"`context.addCase` cannot be called with an empty action type");if(E 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: "+E);return l.sliceCaseReducersByType[E]=S,c},addMatcher(w,S){return l.sliceMatchers.push({matcher:w,reducer:S}),c},exposeAction(w,S){return l.actionCreators[w]=S,c},exposeCaseReducer(w,S){return l.sliceCaseReducersByName[w]=S,c}};s.forEach(w=>{const S=a[w],E={reducerName:w,type:Az(o,w),createNotation:typeof n.reducers=="function"};Mz(S)?kz(E,S,c,t):Nz(E,S,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={},S=[],E=void 0]=typeof n.extraReducers=="function"?JP(n.extraReducers):[n.extraReducers],P={...w,...l.sliceCaseReducersByType};return Pz(n.initialState,O=>{for(let C in P)O.addCase(C,P[C]);for(let C of l.sliceMatchers)O.addMatcher(C.matcher,C.reducer);for(let C of S)O.addMatcher(C.matcher,C.reducer);E&&O.addDefaultCase(E)})}const d=w=>w,p=new Map,v=new WeakMap;let g;function m(w,S){return g||(g=u()),g(w,S)}function h(){return g||(g=u()),g.getInitialState()}function b(w,S=!1){function E(O){let C=O[w];if(typeof C>"u"){if(S)C=wa(v,E,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 P(O=d){const C=wa(p,S,()=>new WeakMap);return wa(C,O,()=>{const N={};for(const[$,I]of Object.entries(n.selectors??{}))N[$]=Tz(I,O,()=>wa(v,O,h),S);return N})}return{reducerPath:w,getSelectors:P,get selectors(){return P(E)},selectSlice:E}}const x={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:h,...b(i),injectInto(w,{reducerPath:S,...E}={}){const P=S??i;return w.inject({reducerPath:P,reducer:m},E),{...x,...b(P,!0)}}};return x}}function Tz(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=_z();function jz(){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 Nz({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!Iz(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 Mz(e){return e._reducerDefinitionType==="asyncThunk"}function Iz(e){return e._reducerDefinitionType==="reducerWithPrepare"}function kz({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||Pa,pending:s||Pa,rejected:l||Pa,settled:c||Pa})}function Pa(){}var Rz="task",QP="listener",e1="completed",Cp="cancelled",Dz=`task-${Cp}`,$z=`task-${e1}`,Kd=`${QP}-${Cp}`,Lz=`${QP}-${e1}`,Al=class{constructor(e){this.code=e,this.message=`${Rz} ${Cp} (reason: ${e})`}name="TaskAbortError";message},Ap=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?me(32):`${t} is not a function`)},vs=()=>{},t1=(e,t=vs)=>(e.catch(t),e),r1=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),xn=e=>{if(e.aborted)throw new Al(e.reason)};function n1(e,t){let r=vs;return new Promise((n,o)=>{const i=()=>o(new Al(e.reason));if(e.aborted){i();return}r=r1(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=vs})}var zz=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Al?"cancelled":"rejected",error:r}}finally{t?.()}},ms=e=>t=>t1(n1(e,t).then(r=>(xn(e),r))),o1=e=>{const t=ms(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:io}=Object,Vg={},_i="listenerMiddleware",Fz=(e,t)=>{const r=n=>r1(e,()=>n.abort(e.reason));return(n,o)=>{Ap(n,"taskExecutor");const i=new AbortController;r(i);const a=zz(async()=>{xn(e),xn(i.signal);const s=await n({pause:ms(i.signal),delay:o1(i.signal),signal:i.signal});return xn(i.signal),s},()=>i.abort($z));return o?.autoJoin&&t.push(a.catch(vs)),{result:ms(e)(a),cancel(){i.abort(Dz)}}}},Bz=(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 n1(t,Promise.race(s));return xn(t),l}finally{i()}};return(n,o)=>t1(r(n,o))},i1=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 Ap(i,"options.listener"),{predicate:o,type:t,effect:i}},a1=io(e=>{const{type:t,predicate:r,effect:n}=i1(e);return{id:Oz(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?me(22):"Unsubscribe not initialized")}}},{withTypes:()=>a1}),Wg=(e,t)=>{const{type:r,effect:n,predicate:o}=i1(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},Ud=e=>{e.pending.forEach(t=>{t.abort(Kd)})},Vz=(e,t)=>()=>{for(const r of t.keys())Ud(r);e.clear()},Kg=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},s1=io(Rt(`${_i}/add`),{withTypes:()=>s1}),Wz=Rt(`${_i}/removeAll`),l1=io(Rt(`${_i}/remove`),{withTypes:()=>l1}),Kz=(...e)=>{console.error(`${_i}/error`,...e)},Ti=(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=Kz}=e;Ap(a,"onError");const s=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),g=>{v.unsubscribe(),g?.cancelActive&&Ud(v)}),l=v=>{const g=Wg(t,v)??a1(v);return s(g)};io(l,{withTypes:()=>l});const c=v=>{const g=Wg(t,v);return g&&(g.unsubscribe(),v.cancelActive&&Ud(g)),!!g};io(c,{withTypes:()=>c});const u=async(v,g,m,h)=>{const b=new AbortController,x=Bz(l,b.signal),w=[];try{v.pending.add(b),n(v),await Promise.resolve(v.effect(g,io({},m,{getOriginalState:h,condition:(S,E)=>x(S,E).then(Boolean),take:x,delay:o1(b.signal),pause:ms(b.signal),extra:i,signal:b.signal,fork:Fz(b.signal,w),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((S,E,P)=>{S!==b&&(S.abort(Kd),P.delete(S))})},cancel:()=>{b.abort(Kd),v.pending.delete(b)},throwIfCancelled:()=>{xn(b.signal)}})))}catch(S){S instanceof Al||Kg(a,S,{raisedBy:"effect"})}finally{await Promise.all(w),b.abort(Lz),o(v),v.pending.delete(b)}},d=Vz(t,r);return{middleware:v=>g=>m=>{if(!Sp(m))return g(m);if(s1.match(m))return l(m.payload);if(Wz.match(m)){d();return}if(l1.match(m))return c(m.payload);let h=v.getState();const b=()=>{if(h===Vg)throw new Error(process.env.NODE_ENV==="production"?me(23):`${_i}: getOriginalState can only be called synchronously`);return h};let x;try{if(x=g(m),t.size>0){const w=v.getState(),S=Array.from(t.values());for(const E of S){let P=!1;try{P=E.predicate(m,w,h)}catch(O){P=!1,Kg(a,O,{raisedBy:"predicate"})}P&&u(E,m,v,b)}}}finally{h=Vg}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 Uz={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},c1=xt({name:"chartLayout",initialState:Uz,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:Hz,setLayout:Gz,setChartSize:qz,setScale:Yz}=c1.actions,Xz=c1.reducer;function u1(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 Ug(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?Ug(Object(r),!0).forEach(function(n){Zz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zz(e,t,r){return(t=Jz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jz(e){var t=Qz(e,"string");return typeof t=="symbol"?t:t+""}function Qz(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 eF=(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",d1=(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},f1=(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?qe(i[0]-i[1])*2*m:m,d||p){var h=(d||p||[]).map((b,x)=>{var w=n?n.indexOf(b):b,S=a.map(w);return ce(S)?{coordinate:S+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)},tF=(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},rF=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)}}}},nF=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)}}}},oF={sign:rF,expand:s$,none:On,silhouette:l$,wiggle:c$,positive:nF},iF=(e,t,r)=>{var n,o=(n=oF[r])!==null&&n!==void 0?n:On,i=a$().keys(t).value((s,l)=>Number(be(s,l,0))).order(Id).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 aF(e){return e==null?void 0:String(e)}function Hg(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=pP(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 Gg=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},sF=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]},lF=e=>{var t=e.flat(2).filter(q);return[Math.min(...t),Math.max(...t)]},cF=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],uF=(e,t,r)=>{if(e!=null)return cF(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=u1(c,t,r),d=lF(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]))},qg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yg=/^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=bl(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 Xg(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 Po(e,t){if(e)return String(e);if(typeof t=="string")return t}var dF=(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,pF=e=>e.layout.scale,p1=e=>e.layout.margin,_l=M(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Tl=M(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),v1="data-recharts-item-index",m1="data-recharts-item-id",ji=60;function Zg(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 Ea(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){vF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vF(e,t,r){return(t=mF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mF(e){var t=hF(e,"string");return typeof t=="symbol"?t:t+""}function hF(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 gF=e=>e.brush.height;function yF(e){var t=Tl(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:ji;return r+o}return r},0)}function bF(e){var t=Tl(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:ji;return r+o}return r},0)}function xF(e){var t=_l(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function wF(e){var t=_l(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Ve=M([Tr,jr,p1,gF,yF,bF,xF,wF,TP,kL],(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=Ea(Ea({},d),u),v=p.bottom;p.bottom+=n,p=eF(p,l,c);var g=e-p.left-p.right,m=t-p.top-p.bottom;return Ea(Ea({brushBottom:v},p),{},{width:Math.max(g,0),height:Math.max(m,0)})}),SF=M(Ve,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),_p=M(Tr,jr,(e,t)=>({x:0,y:0,width:e,height:t})),PF=A.createContext(null),ct=()=>A.useContext(PF)!=null,jl=e=>e.brush,Nl=M([jl,Ve,p1],(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})),zu={},Fu={},Bu={},Jg;function EF(){return Jg||(Jg=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})(Bu)),Bu}var Qg;function OF(){return Qg||(Qg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EF();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})(Fu)),Fu}var ey;function CF(){return ey||(ey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OF();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})(zu)),zu}var Vu,ty;function AF(){return ty||(ty=1,Vu=CF().throttle),Vu}var _F=AF();const TF=Jr(_F);var hs=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}},h1=(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}},jF={width:0,height:0,overflow:"visible"},NF={width:0,overflowX:"visible"},MF={height:0,overflowY:"visible"},IF={},kF=e=>{var{width:t,height:r}=e,n=An(t),o=An(r);return n&&o?jF:n?NF:o?MF:IF};function RF(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 Hd(){return Hd=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},Hd.apply(null,arguments)}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 ny(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){DF(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 DF(e,t,r){return(t=$F(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $F(e){var t=LF(e,"string");return typeof t=="symbol"?t:t+""}function LF(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 g1=A.createContext(Qt.initialDimension);function zF(e){return ar(e.width)&&ar(e.height)}function y1(e){var{children:t,width:r,height:n}=e,o=A.useMemo(()=>({width:r,height:n}),[r,n]);return zF(o)?f.createElement(g1.Provider,{value:o},t):null}var Tp=()=>A.useContext(g1),FF=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($=>{var I=Math.round(C),_=Math.round(N);return $.containerWidth===I&&$.containerHeight===_?$:{containerWidth:I,containerHeight:_}})},[]);A.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return zn;var C=_=>{var j,R=_[0];if(R!=null){var{width:V,height:F}=R.contentRect;w(V,F),(j=h.current)===null||j===void 0||j.call(h,V,F)}};u>0&&(C=TF(C,u,{trailing:!0,leading:!1}));var N=new ResizeObserver(C),{width:$,height:I}=m.current.getBoundingClientRect();return w($,I),N.observe(m.current),()=>{N.disconnect()}},[w,u]);var{containerWidth:S,containerHeight:E}=b;hs(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:P,calculatedHeight:O}=h1(S,E,{width:o,height:i,aspect:r,maxHeight:l});return hs(P!=null&&P>0||O!=null&&O>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 Pa(e){return typeof e=="boolean"}var xz=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new HP;if(r&&(Pa(r)?a.push(cz):a.push(uz(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};Pa(n)||(s=n),a.unshift(yz(s))}if(o){let s={};Pa(o)||(s=o),a.push(bz(s))}if(i){let s={};Pa(i)||(s=i),a.unshift(mz(s))}}return a},ZP="RTK_autoBatch",Ce=()=>e=>({payload:e,meta:{[ZP]:!0}}),Vg=e=>t=>{setTimeout(t,e)},JP=(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:Vg(10):e.type==="callback"?e.queueNotification:Vg(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?.[ZP],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},wz=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new HP(e);return n&&o.push(JP(typeof n=="object"?n:void 0)),o};function Sz(e){const t=xz(),{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(Ai(r))l=IP(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=ls;o&&(u=dz({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const d=GL(...c),p=wz(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 MP(l,a,g)}function QP(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 Pz(e){return typeof e=="function"}function Ez(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]=QP(t),i;if(Pz(e))i=()=>Bg(e());else{const s=Bg(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 WP(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 Oz="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Cz=(e=21)=>{let t="",r=e;for(;r--;)t+=Oz[Math.random()*64|0];return t},Az=Symbol.for("rtk-slice-createasyncthunk");function _z(e,t){return`${e}/${t}`}function Tz({creators:e}={}){const t=e?.asyncThunk?.[Az];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(Nz()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(w,S){const E=typeof w=="string"?w:w.type;if(!E)throw new Error(process.env.NODE_ENV==="production"?me(12):"`context.addCase` cannot be called with an empty action type");if(E 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: "+E);return l.sliceCaseReducersByType[E]=S,c},addMatcher(w,S){return l.sliceMatchers.push({matcher:w,reducer:S}),c},exposeAction(w,S){return l.actionCreators[w]=S,c},exposeCaseReducer(w,S){return l.sliceCaseReducersByName[w]=S,c}};s.forEach(w=>{const S=a[w],E={reducerName:w,type:_z(o,w),createNotation:typeof n.reducers=="function"};Iz(S)?Rz(E,S,c,t):Mz(E,S,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={},S=[],E=void 0]=typeof n.extraReducers=="function"?QP(n.extraReducers):[n.extraReducers],P={...w,...l.sliceCaseReducersByType};return Ez(n.initialState,O=>{for(let C in P)O.addCase(C,P[C]);for(let C of l.sliceMatchers)O.addMatcher(C.matcher,C.reducer);for(let C of S)O.addMatcher(C.matcher,C.reducer);E&&O.addDefaultCase(E)})}const d=w=>w,p=new Map,v=new WeakMap;let g;function m(w,S){return g||(g=u()),g(w,S)}function h(){return g||(g=u()),g.getInitialState()}function b(w,S=!1){function E(O){let C=O[w];if(typeof C>"u"){if(S)C=Sa(v,E,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 P(O=d){const C=Sa(p,S,()=>new WeakMap);return Sa(C,O,()=>{const N={};for(const[$,I]of Object.entries(n.selectors??{}))N[$]=jz(I,O,()=>Sa(v,O,h),S);return N})}return{reducerPath:w,getSelectors:P,get selectors(){return P(E)},selectSlice:E}}const x={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:h,...b(i),injectInto(w,{reducerPath:S,...E}={}){const P=S??i;return w.inject({reducerPath:P,reducer:m},E),{...x,...b(P,!0)}}};return x}}function jz(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=Tz();function Nz(){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 Mz({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!kz(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 Iz(e){return e._reducerDefinitionType==="asyncThunk"}function kz(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Rz({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||Ea,pending:s||Ea,rejected:l||Ea,settled:c||Ea})}function Ea(){}var Dz="task",e1="listener",t1="completed",Ap="cancelled",$z=`task-${Ap}`,Lz=`task-${t1}`,Ud=`${e1}-${Ap}`,zz=`${e1}-${t1}`,_l=class{constructor(e){this.code=e,this.message=`${Dz} ${Ap} (reason: ${e})`}name="TaskAbortError";message},_p=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?me(32):`${t} is not a function`)},ms=()=>{},r1=(e,t=ms)=>(e.catch(t),e),n1=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),wn=e=>{if(e.aborted)throw new _l(e.reason)};function o1(e,t){let r=ms;return new Promise((n,o)=>{const i=()=>o(new _l(e.reason));if(e.aborted){i();return}r=n1(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=ms})}var Fz=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof _l?"cancelled":"rejected",error:r}}finally{t?.()}},hs=e=>t=>r1(o1(e,t).then(r=>(wn(e),r))),i1=e=>{const t=hs(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:ao}=Object,Wg={},Ti="listenerMiddleware",Bz=(e,t)=>{const r=n=>n1(e,()=>n.abort(e.reason));return(n,o)=>{_p(n,"taskExecutor");const i=new AbortController;r(i);const a=Fz(async()=>{wn(e),wn(i.signal);const s=await n({pause:hs(i.signal),delay:i1(i.signal),signal:i.signal});return wn(i.signal),s},()=>i.abort(Lz));return o?.autoJoin&&t.push(a.catch(ms)),{result:hs(e)(a),cancel(){i.abort($z)}}}},Vz=(e,t)=>{const r=async(n,o)=>{wn(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 o1(t,Promise.race(s));return wn(t),l}finally{i()}};return(n,o)=>r1(r(n,o))},a1=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 _p(i,"options.listener"),{predicate:o,type:t,effect:i}},s1=ao(e=>{const{type:t,predicate:r,effect:n}=a1(e);return{id:Cz(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?me(22):"Unsubscribe not initialized")}}},{withTypes:()=>s1}),Kg=(e,t)=>{const{type:r,effect:n,predicate:o}=a1(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},Hd=e=>{e.pending.forEach(t=>{t.abort(Ud)})},Wz=(e,t)=>()=>{for(const r of t.keys())Hd(r);e.clear()},Ug=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},l1=ao(Rt(`${Ti}/add`),{withTypes:()=>l1}),Kz=Rt(`${Ti}/removeAll`),c1=ao(Rt(`${Ti}/remove`),{withTypes:()=>c1}),Uz=(...e)=>{console.error(`${Ti}/error`,...e)},ji=(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=Uz}=e;_p(a,"onError");const s=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),g=>{v.unsubscribe(),g?.cancelActive&&Hd(v)}),l=v=>{const g=Kg(t,v)??s1(v);return s(g)};ao(l,{withTypes:()=>l});const c=v=>{const g=Kg(t,v);return g&&(g.unsubscribe(),v.cancelActive&&Hd(g)),!!g};ao(c,{withTypes:()=>c});const u=async(v,g,m,h)=>{const b=new AbortController,x=Vz(l,b.signal),w=[];try{v.pending.add(b),n(v),await Promise.resolve(v.effect(g,ao({},m,{getOriginalState:h,condition:(S,E)=>x(S,E).then(Boolean),take:x,delay:i1(b.signal),pause:hs(b.signal),extra:i,signal:b.signal,fork:Bz(b.signal,w),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((S,E,P)=>{S!==b&&(S.abort(Ud),P.delete(S))})},cancel:()=>{b.abort(Ud),v.pending.delete(b)},throwIfCancelled:()=>{wn(b.signal)}})))}catch(S){S instanceof _l||Ug(a,S,{raisedBy:"effect"})}finally{await Promise.all(w),b.abort(zz),o(v),v.pending.delete(b)}},d=Wz(t,r);return{middleware:v=>g=>m=>{if(!Pp(m))return g(m);if(l1.match(m))return l(m.payload);if(Kz.match(m)){d();return}if(c1.match(m))return c(m.payload);let h=v.getState();const b=()=>{if(h===Wg)throw new Error(process.env.NODE_ENV==="production"?me(23):`${Ti}: getOriginalState can only be called synchronously`);return h};let x;try{if(x=g(m),t.size>0){const w=v.getState(),S=Array.from(t.values());for(const E of S){let P=!1;try{P=E.predicate(m,w,h)}catch(O){P=!1,Ug(a,O,{raisedBy:"predicate"})}P&&u(E,m,v,b)}}}finally{h=Wg}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 Hz={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},u1=xt({name:"chartLayout",initialState:Hz,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:Gz,setLayout:qz,setChartSize:Yz,setScale:Xz}=u1.actions,Zz=u1.reducer;function d1(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 Hg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function to(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hg(Object(r),!0).forEach(function(n){Jz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jz(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=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)?An(e,t,r):typeof t=="function"?t(e):r}var tF=(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 to(to({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&q(e[a]))return to(to({},e),{},{[a]:e[a]+(o||0)})}return e},_r=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",f1=(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},p1=(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?qe(i[0]-i[1])*2*m:m,d||p){var h=(d||p||[]).map((b,x)=>{var w=n?n.indexOf(b):b,S=a.map(w);return ce(S)?{coordinate:S+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)},rF=(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},nF=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)}}}},oF=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)}}}},iF={sign:nF,expand:l$,none:Cn,silhouette:c$,wiggle:u$,positive:oF},aF=(e,t,r)=>{var n,o=(n=iF[r])!==null&&n!==void 0?n:Cn,i=s$().keys(t).value((s,l)=>Number(be(s,l,0))).order(kd).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 sF(e){return e==null?void 0:String(e)}function Gg(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=vP(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 qg=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},lF=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]},cF=e=>{var t=e.flat(2).filter(q);return[Math.min(...t),Math.max(...t)]},uF=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],dF=(e,t,r)=>{if(e!=null)return uF(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=d1(c,t,r),d=cF(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]))},Yg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uo=(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=xl(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 Zg(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:o,name:i}=e;return to(to({},t),{},{dataKey:r,payload:n,value:o,name:i})}function Eo(e,t){if(e)return String(e);if(typeof t=="string")return t}var fF=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},pF=(e,t)=>t==="centric"?e.angle:e.radius,Tr=e=>e.layout.width,jr=e=>e.layout.height,vF=e=>e.layout.scale,v1=e=>e.layout.margin,Tl=M(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),jl=M(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),m1="data-recharts-item-index",h1="data-recharts-item-id",Ni=60;function Jg(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 Oa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jg(Object(r),!0).forEach(function(n){mF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mF(e,t,r){return(t=hF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hF(e){var t=gF(e,"string");return typeof t=="symbol"?t:t+""}function gF(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 yF=e=>e.brush.height;function bF(e){var t=jl(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:Ni;return r+o}return r},0)}function xF(e){var t=jl(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:Ni;return r+o}return r},0)}function wF(e){var t=Tl(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function SF(e){var t=Tl(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Ve=M([Tr,jr,v1,yF,bF,xF,wF,SF,jP,RL],(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=Oa(Oa({},d),u),v=p.bottom;p.bottom+=n,p=tF(p,l,c);var g=e-p.left-p.right,m=t-p.top-p.bottom;return Oa(Oa({brushBottom:v},p),{},{width:Math.max(g,0),height:Math.max(m,0)})}),PF=M(Ve,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Tp=M(Tr,jr,(e,t)=>({x:0,y:0,width:e,height:t})),EF=A.createContext(null),ct=()=>A.useContext(EF)!=null,Nl=e=>e.brush,Ml=M([Nl,Ve,v1],(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})),Fu={},Bu={},Vu={},Qg;function OF(){return Qg||(Qg=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})(Vu)),Vu}var ey;function CF(){return ey||(ey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OF();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})(Bu)),Bu}var ty;function AF(){return ty||(ty=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CF();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})(Fu)),Fu}var Wu,ry;function _F(){return ry||(ry=1,Wu=AF().throttle),Wu}var TF=_F();const jF=Jr(TF);var gs=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}},g1=(e,t,r)=>{var{width:n=Qt.width,height:o=Qt.height,aspect:i,maxHeight:a}=r,s=_n(n)?e:Number(n),l=_n(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}},NF={width:0,height:0,overflow:"visible"},MF={width:0,overflowX:"visible"},IF={height:0,overflowY:"visible"},kF={},RF=e=>{var{width:t,height:r}=e,n=_n(t),o=_n(r);return n&&o?NF:n?MF:o?IF:kF};function DF(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 Gd(){return Gd=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},Gd.apply(null,arguments)}function ny(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 oy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ny(Object(r),!0).forEach(function(n){$F(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $F(e,t,r){return(t=LF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LF(e){var t=zF(e,"string");return typeof t=="symbol"?t:t+""}function zF(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 y1=A.createContext(Qt.initialDimension);function FF(e){return ar(e.width)&&ar(e.height)}function b1(e){var{children:t,width:r,height:n}=e,o=A.useMemo(()=>({width:r,height:n}),[r,n]);return FF(o)?f.createElement(y1.Provider,{value:o},t):null}var jp=()=>A.useContext(y1),BF=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($=>{var I=Math.round(C),_=Math.round(N);return $.containerWidth===I&&$.containerHeight===_?$:{containerWidth:I,containerHeight:_}})},[]);A.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Fn;var C=_=>{var j,R=_[0];if(R!=null){var{width:V,height:F}=R.contentRect;w(V,F),(j=h.current)===null||j===void 0||j.call(h,V,F)}};u>0&&(C=jF(C,u,{trailing:!0,leading:!1}));var N=new ResizeObserver(C),{width:$,height:I}=m.current.getBoundingClientRect();return w($,I),N.observe(m.current),()=>{N.disconnect()}},[w,u]);var{containerWidth:S,containerHeight:E}=b;gs(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:P,calculatedHeight:O}=g1(S,E,{width:o,height:i,aspect:r,maxHeight:l});return gs(P!=null&&P>0||O!=null&&O>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.`,P,O,o,i,a,s,r),f.createElement("div",{id:d?"".concat(d):void 0,className:de("recharts-responsive-container",p),style:ny(ny({},g),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},f.createElement("div",{style:kF({width:o,height:i})},f.createElement(y1,{width:P,height:O},c)))}),jp=A.forwardRef((e,t)=>{var r=Tp();if(ar(r.width)&&ar(r.height))return e.children;var{width:n,height:o}=RF({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=h1(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return q(i)&&q(a)?f.createElement(y1,{width:i,height:a},e.children):f.createElement(FF,Hd({},e,{width:n,height:o,ref:t}))});function Np(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 Ml=()=>{var e,t=ct(),r=J(SF),n=J(Nl),o=(e=J(jl))===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}},BF={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},b1=()=>{var e;return(e=J(Ve))!==null&&e!==void 0?e:BF},Mp=()=>J(Tr),Ip=()=>J(jr),VF=()=>J(e=>e.layout.margin),ve=e=>e.layout.layoutType,Fn=()=>J(ve),x1=()=>{var e=Fn();if(e==="horizontal"||e==="vertical")return e},w1=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},WF=()=>{var e=Fn();return e!==void 0},Ni=e=>{var t=Se(),r=ct(),{width:n,height:o}=e,i=Tp(),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(qz({width:a,height:s}))},[t,r,a,s]),null},S1=Symbol.for("immer-nothing"),oy=Symbol.for("immer-draftable"),_t=Symbol.for("immer-state"),KF=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=KF[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 oi=Object.getPrototypeOf;function uo(e){return!!e&&!!e[_t]}function Tn(e){return e?P1(e)||Array.isArray(e)||!!e[oy]||!!e.constructor?.[oy]||Mi(e)||kl(e):!1}var UF=Object.prototype.constructor.toString(),iy=new WeakMap;function P1(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=iy.get(r);return n===void 0&&(n=Function.toString.call(r),iy.set(r,n)),n===UF}function gs(e,t,r=!0){Il(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 Il(e){const t=e[_t];return t?t.type_:Array.isArray(e)?1:Mi(e)?2:kl(e)?3:0}function Gd(e,t){return Il(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function E1(e,t,r){const n=Il(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function HF(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Mi(e){return e instanceof Map}function kl(e){return e instanceof Set}function dn(e){return e.copy_||e.base_}function qd(e,t){if(Mi(e))return new Map(e);if(kl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=P1(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(oi(e),n)}else{const n=oi(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function kp(e,t=!1){return Rl(e)||uo(e)||!Tn(e)||(Il(e)>1&&Object.defineProperties(e,{set:Oa,add:Oa,clear:Oa,delete:Oa}),Object.freeze(e),t&&Object.values(e).forEach(r=>kp(r,!0))),e}function GF(){gt(2)}var Oa={value:GF};function Rl(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var qF={};function jn(e){const t=qF[e];return t||gt(0,e),t}var ii;function O1(){return ii}function YF(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ay(e,t){t&&(jn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Yd(e){Xd(e),e.drafts_.forEach(XF),e.drafts_=null}function Xd(e){e===ii&&(ii=e.parent_)}function sy(e){return ii=YF(ii,e)}function XF(e){const t=e[_t];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ly(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[_t].modified_&&(Yd(t),gt(4)),Tn(e)&&(e=ys(t,e),t.parent_||bs(t,e)),t.patches_&&jn("Patches").generateReplacementPatches_(r[_t].base_,e,t.patches_,t.inversePatches_)):e=ys(t,r,[]),Yd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==S1?e:void 0}function ys(e,t,r){if(Rl(t))return t;const n=e.immer_.shouldUseStrictIteration(),o=t[_t];if(!o)return gs(t,(i,a)=>cy(e,o,t,i,a,r),n),t;if(o.scope_!==e)return t;if(!o.modified_)return bs(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),gs(a,(l,c)=>cy(e,o,i,l,c,r,s),n),bs(e,i,!1),r&&e.patches_&&jn("Patches").generatePatches_(o,r,e.patches_,e.inversePatches_)}return o.copy_}function cy(e,t,r,n,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=Rl(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===r&&gt(5),uo(o)){const l=i&&t&&t.type_!==3&&!Gd(t.assigned_,n)?i.concat(n):void 0,c=ys(e,o,l);if(E1(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;ys(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Mi(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&bs(e,o)}}}function bs(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&kp(t,r)}function ZF(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:O1(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Rp;r&&(o=[n],i=ai);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var Rp={get(e,t){if(t===_t)return e;const r=dn(e);if(!Gd(r,t))return JF(e,r,t);const n=r[t];return e.finalized_||!Tn(n)?n:n===Wu(e.base_,t)?(Ku(e),e.copy_[t]=Jd(n,e)):n},has(e,t){return t in dn(e)},ownKeys(e){return Reflect.ownKeys(dn(e))},set(e,t,r){const n=C1(dn(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Wu(dn(e),t),i=o?.[_t];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(HF(r,o)&&(r!==void 0||Gd(e.base_,t)))return!0;Ku(e),Zd(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 Wu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ku(e),Zd(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 oi(e.base_)},setPrototypeOf(){gt(12)}},ai={};gs(Rp,(e,t)=>{ai[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ai.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&gt(13),ai.set.call(this,e,t,void 0)};ai.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&gt(14),Rp.set.call(this,e[0],t,r,e[0])};function Wu(e,t){const r=e[_t];return(r?dn(r):e)[t]}function JF(e,t,r){const n=C1(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function C1(e,t){if(!(t in e))return;let r=oi(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=oi(r)}}function Zd(e){e.modified_||(e.modified_=!0,e.parent_&&Zd(e.parent_))}function Ku(e){e.copy_||(e.copy_=qd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var QF=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=sy(this),a=Jd(t,void 0);let s=!0;try{o=r(a),s=!1}finally{s?Yd(i):Xd(i)}return ay(i,n),ly(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===S1&&(o=void 0),this.autoFreeze_&&kp(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=eB(e));const t=sy(this),r=Jd(e,void 0);return r[_t].isManual_=!0,Xd(t),r}finishDraft(e,t){const r=e&&e[_t];(!r||!r.isManual_)&&gt(9);const{scope_:n}=r;return ay(n,t),ly(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 Jd(e,t){const r=Mi(e)?jn("MapSet").proxyMap_(e,t):kl(e)?jn("MapSet").proxySet_(e,t):ZF(e,t);return(t?t.scope_:O1()).drafts_.push(r),r}function eB(e){return uo(e)||gt(10,e),A1(e)}function A1(e){if(!Tn(e)||Rl(e))return e;const t=e[_t];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=qd(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=qd(e,!0);return gs(r,(o,i)=>{E1(r,o,A1(i))},n),t&&(t.finalized_=!1),r}var tB=new QF;tB.produce;var rB={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},_1=xt({name:"legend",initialState:rB,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:uy,setLegendSettings:nB,addLegendPayload:T1,replaceLegendPayload:j1,removeLegendPayload:N1}=_1.actions,oB=_1.reducer,iB=["contextPayload"];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 dy(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?dy(Object(r),!0).forEach(function(n){aB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aB(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=lB(e,"string");return typeof t=="symbol"?t:t+""}function lB(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 cB(e,t){if(e==null)return{};var r,n,o=uB(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 uB(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 dB(e){return e.value}function fB(e){var{contextPayload:t}=e,r=cB(e,iB),n=EP(t,e.payloadUniqBy,dB),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(L$,o)}function pB(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 vB(e){var t=Se();return A.useEffect(()=>{t(nB(e))},[t,e]),null}function mB(e){var t=Se();return A.useEffect(()=>(t(uy(e)),()=>{t(uy({width:0,height:0}))}),[t,e]),null}function hB(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var gB={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function Dl(e){var t=Le(e,gB),r=$L(),n=j2(),o=VF(),{width:i,height:a,wrapperStyle:s,portal:l}=t,[c,u]=jP([r]),d=Mp(),p=Ip();if(d==null||p==null)return null;var v=d-(o?.left||0)-(o?.right||0),g=hB(t.layout,a,i,v),m=l?s:fo(fo({position:"absolute",width:g?.width||i||"auto",height:g?.height||a||"auto"},pB(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(vB,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&f.createElement(mB,{width:c.width,height:c.height}),f.createElement(fB,Qd({},t,g,{margin:o,chartWidth:d,chartHeight:p,contextPayload:r})));return xi.createPortal(b,h)}Dl.displayName="Legend";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 fy(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 Lo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(r),!0).forEach(function(n){yB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fy(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)}function wB(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},SB=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 E={padding:0,margin:0},P=(s?bl(i,s):i).map((O,C)=>{if(O.type==="none")return null;var N=O.formatter||a||wB,{value:$,name:I}=O,_=$,j=I;if(N){var R=N($,I,O,C,i);if(Array.isArray(R))[_,j]=R;else if(R!=null)_=R;else return null}var V=Lo(Lo({},Xn.itemStyle),{},{color:O.color||Xn.itemStyle.color},n);return f.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:V},ir(j)?f.createElement("span",{className:"recharts-tooltip-item-name"},j):null,ir(j)?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"},O.unit||""))});return f.createElement("ul",{className:"recharts-tooltip-item-list",style:E},P)}return null},g=Lo(Lo({},Xn.contentStyle),r),m=Lo({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 S=p?{role:"status","aria-live":"assertive"}:{};return f.createElement("div",ef({className:x,style:g},S),f.createElement("p",{className:w,style:m},f.isValidElement(b)?b:"".concat(b)),v())},zo="recharts-tooltip-wrapper",PB={visibility:"hidden"};function EB(e){var{coordinate:t,translateX:r,translateY:n}=e;return de(zo,{["".concat(zo,"-right")]:q(r)&&t&&q(t.x)&&r>=t.x,["".concat(zo,"-left")]:q(r)&&t&&q(t.x)&&r<t.x,["".concat(zo,"-bottom")]:q(n)&&t&&q(t.y)&&n>=t.y,["".concat(zo,"-top")]:q(n)&&t&&q(t.y)&&n<t.y})}function py(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 OB(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 CB(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=py({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),p=py({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=OB({translateX:d,translateY:p,useTranslate3d:l})):u=PB,{cssProperties:u,cssClasses:EB({translateX:d,translateY:p,coordinate:r})}}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 Ca(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){tf(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 tf(e,t,r){return(t=AB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AB(e){var t=_B(e,"string");return typeof t=="symbol"?t:t+""}function _B(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),tf(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),tf(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:S,cssProperties:E}=CB({allowEscapeViewBox:r,coordinate:a,offsetLeft:x,offsetTop:w,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:p,viewBox:v}),P=b?{}:Ca(Ca({transition:l&&t?"transform ".concat(n,"ms ").concat(o):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),O=Ca(Ca({},P),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},g);return f.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:S,style:O,ref:h},i)}}var M1=()=>{var e;return(e=J(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};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 my(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 hy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?my(Object(r),!0).forEach(function(n){jB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):my(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jB(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=MB(e,"string");return typeof t=="symbol"?t:t+""}function MB(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 gy={curveBasisClosed:Y2,curveBasisOpen:X2,curveBasis:q2,curveBumpX:k2,curveBumpY:R2,curveLinearClosed:Z2,curveLinear:gl,curveMonotoneX:J2,curveMonotoneY:Q2,curveNatural:e$,curveStep:t$,curveStepAfter:n$,curveStepBefore:r$},xs=e=>ce(e.x)&&ce(e.y),yy=e=>e.base!=null&&xs(e.base)&&xs(e),Fo=e=>e.x,Bo=e=>e.y,IB=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Ei(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=gy["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return gy[r]||gl},by={connectNulls:!1,type:"linear"},kB=e=>{var{type:t=by.type,points:r=[],baseLine:n,layout:o,connectNulls:i=by.connectNulls}=e,a=IB(t,o),s=i?r.filter(xs):r;if(Array.isArray(n)){var l,c=r.map((g,m)=>hy(hy({},g),{},{base:n[m]}));o==="vertical"?l=ma().y(Bo).x1(Fo).x0(g=>g.base.x):l=ma().x(Fo).y1(Bo).y0(g=>g.base.y);var u=l.defined(yy).curve(a),d=i?c.filter(yy):c;return u(d)}var p;o==="vertical"&&q(n)?p=ma().y(Bo).x1(Fo).x0(n):q(n)?p=ma().x(Fo).y1(Bo).y0(n):p=eP().x(Fo).y(Bo);var v=p.defined(xs).curve(a);return v(s)},Dp=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=Fn();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?kB(a):n;return f.createElement("path",rf({},At(e),yp(e),{className:de("recharts-curve",t),d:s===null?void 0:s,ref:o}))},RB=["x","y","top","left","width","height","className"];function nf(){return nf=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},nf.apply(null,arguments)}function xy(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 DB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xy(Object(r),!0).forEach(function(n){$B(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $B(e,t,r){return(t=LB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LB(e){var t=zB(e,"string");return typeof t=="symbol"?t:t+""}function zB(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=BB(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 BB(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),WB=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,RB),c=DB({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",nf({},mt(c),{className:de("recharts-cross",s),d:VB(t,r,i,a,n,o)}))};function KB(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 wy(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 Sy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wy(Object(r),!0).forEach(function(n){UB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UB(e,t,r){return(t=HB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HB(e){var t=GB(e,"string");return typeof t=="symbol"?t:t+""}function GB(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 qB=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),I1=(e,t,r)=>e.map(n=>"".concat(qB(n)," ").concat(t,"ms ").concat(r)).join(","),YB=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),si=(e,t)=>Object.keys(t).reduce((r,n)=>Sy(Sy({},r),{},{[n]:e(n,t[n])}),{});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 Fe(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){XB(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 XB(e,t,r){return(t=ZB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZB(e){var t=JB(e,"string");return typeof t=="symbol"?t:t+""}function JB(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=(e,t,r)=>e+(t-e)*r,of=e=>{var{from:t,to:r}=e;return t!==r},k1=(e,t,r)=>{var n=si((o,i)=>{if(of(i)){var[a,s]=e(i.from,i.to,i.velocity);return Fe(Fe({},i),{},{from:a,velocity:s})}return i},t);return r<1?si((o,i)=>of(i)&&n[o]!=null?Fe(Fe({},i),{},{velocity:ws(i.velocity,n[o].velocity,r),from:ws(i.from,n[o].from,r)}):i,t):k1(e,n,r-1)};function QB(e,t,r,n,o,i){var a,s=n.reduce((p,v)=>Fe(Fe({},p),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>si((p,v)=>v.from,s),c=()=>!Object.values(s).filter(of).length,u=null,d=p=>{a||(a=p);var v=p-a,g=v/r.dt;s=k1(r,s,g),o(Fe(Fe(Fe({},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 e3(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:Fe(Fe({},d),{},{[p]:[v,g]})},{}),c,u=d=>{c||(c=d);var p=(d-c)/n,v=si((m,h)=>ws(...h,r(p)),l);if(i(Fe(Fe(Fe({},e),t),v)),p<1)s=a.setTimeout(u);else{var g=si((m,h)=>ws(...h,r(1)),l);i(Fe(Fe(Fe({},e),t),g))}};return()=>(s=a.setTimeout(u),()=>{var d;(d=s)===null||d===void 0||d()})}const t3=(e,t,r,n,o,i)=>{var a=YB(e,t);return r==null?()=>(o(Fe(Fe({},e),t)),()=>{}):r.isStepper===!0?QB(e,t,r,a,o,i):e3(e,t,r,n,a,o,i)};var Ss=1e-4,R1=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],D1=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Ey=(e,t)=>r=>{var n=R1(e,t);return D1(n,r)},r3=(e,t)=>r=>{var n=R1(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return D1(o,r)},n3=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]]},o3=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=n3(r[0]);if(o)return o}}return r.length===4?r:[0,0,1,1]},i3=(e,t,r,n)=>{var o=Ey(e,r),i=Ey(t,n),a=r3(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)<Ss||g<Ss)return i(d);d=s(d-v/g)}return i(d)};return l.isStepper=!1,l},Oy=function(){return i3(...o3(...arguments))},a3=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)<Ss&&Math.abs(d)<Ss?[s,0]:[p,d]};return i.isStepper=!0,i.dt=o,i},s3=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Oy(e);case"spring":return a3();default:if(e.split("(")[0]==="cubic-bezier")return Oy(e)}return typeof e=="function"?e:null};function l3(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 c3{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 u3(){return l3(new c3)}var d3=A.createContext(u3);function f3(e,t){var r=A.useContext(d3);return A.useMemo(()=>t??r(e),[e,t,r])}var p3=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),$l={isSsr:p3()},v3={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Cy={t:0},Uu={t:1};function Ii(e){var t=Le(e,v3),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=r==="auto"?!$l.isSsr:r,d=f3(t.animationId,t.animationManager),[p,v]=A.useState(u?Cy:Uu),g=A.useRef(null);return A.useEffect(()=>{u||v(Uu)},[u]),A.useEffect(()=>{if(!u||!n)return zn;var m=t3(Cy,Uu,s3(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 ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=A.useRef(ei(t)),n=A.useRef(e);return n.current!==e&&(r.current=ei(t),n.current=e),r.current}var m3=["radius"],h3=["radius"],Ay,_y,Ty,jy,Ny,My,Iy,ky,Ry,Dy;function $y(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 Ly(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$y(Object(r),!0).forEach(function(n){g3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$y(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g3(e,t,r){return(t=y3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y3(e){var t=b3(e,"string");return typeof t=="symbol"?t:t+""}function b3(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 Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ps.apply(null,arguments)}function zy(e,t){if(e==null)return{};var r,n,o=x3(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 x3(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 Fy=(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(Ay||(Ay=qt(["M",",",""])),e,t+l*p[0]),p[0]>0&&(d+=Me(_y||(_y=qt(["A ",",",",0,0,",",",",",""])),p[0],p[0],u,e+c*p[0],t)),d+=Me(Ty||(Ty=qt(["L ",",",""])),e+r-c*p[1],t),p[1]>0&&(d+=Me(jy||(jy=qt(["A ",",",",0,0,",`,
72
- `,",",""])),p[1],p[1],u,e+r,t+l*p[1])),d+=Me(Ny||(Ny=qt(["L ",",",""])),e+r,t+n-l*p[2]),p[2]>0&&(d+=Me(My||(My=qt(["A ",",",",0,0,",`,
73
- `,",",""])),p[2],p[2],u,e+r-c*p[2],t+n)),d+=Me(Iy||(Iy=qt(["L ",",",""])),e+c*p[3],t+n),p[3]>0&&(d+=Me(ky||(ky=qt(["A ",",",",0,0,",`,
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(Ry||(Ry=qt(["M ",",",`
71
+ height and width.`,P,O,o,i,a,s,r),f.createElement("div",{id:d?"".concat(d):void 0,className:de("recharts-responsive-container",p),style:oy(oy({},g),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},f.createElement("div",{style:RF({width:o,height:i})},f.createElement(b1,{width:P,height:O},c)))}),Np=A.forwardRef((e,t)=>{var r=jp();if(ar(r.width)&&ar(r.height))return e.children;var{width:n,height:o}=DF({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=g1(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return q(i)&&q(a)?f.createElement(b1,{width:i,height:a},e.children):f.createElement(BF,Gd({},e,{width:n,height:o,ref:t}))});function Mp(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 Il=()=>{var e,t=ct(),r=J(PF),n=J(Ml),o=(e=J(Nl))===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}},VF={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},x1=()=>{var e;return(e=J(Ve))!==null&&e!==void 0?e:VF},Ip=()=>J(Tr),kp=()=>J(jr),WF=()=>J(e=>e.layout.margin),ve=e=>e.layout.layoutType,Bn=()=>J(ve),w1=()=>{var e=Bn();if(e==="horizontal"||e==="vertical")return e},S1=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},KF=()=>{var e=Bn();return e!==void 0},Mi=e=>{var t=Se(),r=ct(),{width:n,height:o}=e,i=jp(),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(Yz({width:a,height:s}))},[t,r,a,s]),null},P1=Symbol.for("immer-nothing"),iy=Symbol.for("immer-draftable"),_t=Symbol.for("immer-state"),UF=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=UF[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 ii=Object.getPrototypeOf;function fo(e){return!!e&&!!e[_t]}function jn(e){return e?E1(e)||Array.isArray(e)||!!e[iy]||!!e.constructor?.[iy]||Ii(e)||Rl(e):!1}var HF=Object.prototype.constructor.toString(),ay=new WeakMap;function E1(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=ay.get(r);return n===void 0&&(n=Function.toString.call(r),ay.set(r,n)),n===HF}function ys(e,t,r=!0){kl(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 kl(e){const t=e[_t];return t?t.type_:Array.isArray(e)?1:Ii(e)?2:Rl(e)?3:0}function qd(e,t){return kl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function O1(e,t,r){const n=kl(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function GF(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ii(e){return e instanceof Map}function Rl(e){return e instanceof Set}function fn(e){return e.copy_||e.base_}function Yd(e,t){if(Ii(e))return new Map(e);if(Rl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=E1(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(ii(e),n)}else{const n=ii(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function Rp(e,t=!1){return Dl(e)||fo(e)||!jn(e)||(kl(e)>1&&Object.defineProperties(e,{set:Ca,add:Ca,clear:Ca,delete:Ca}),Object.freeze(e),t&&Object.values(e).forEach(r=>Rp(r,!0))),e}function qF(){gt(2)}var Ca={value:qF};function Dl(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var YF={};function Nn(e){const t=YF[e];return t||gt(0,e),t}var ai;function C1(){return ai}function XF(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function sy(e,t){t&&(Nn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xd(e){Zd(e),e.drafts_.forEach(ZF),e.drafts_=null}function Zd(e){e===ai&&(ai=e.parent_)}function ly(e){return ai=XF(ai,e)}function ZF(e){const t=e[_t];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function cy(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[_t].modified_&&(Xd(t),gt(4)),jn(e)&&(e=bs(t,e),t.parent_||xs(t,e)),t.patches_&&Nn("Patches").generateReplacementPatches_(r[_t].base_,e,t.patches_,t.inversePatches_)):e=bs(t,r,[]),Xd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==P1?e:void 0}function bs(e,t,r){if(Dl(t))return t;const n=e.immer_.shouldUseStrictIteration(),o=t[_t];if(!o)return ys(t,(i,a)=>uy(e,o,t,i,a,r),n),t;if(o.scope_!==e)return t;if(!o.modified_)return xs(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),ys(a,(l,c)=>uy(e,o,i,l,c,r,s),n),xs(e,i,!1),r&&e.patches_&&Nn("Patches").generatePatches_(o,r,e.patches_,e.inversePatches_)}return o.copy_}function uy(e,t,r,n,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=Dl(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===r&&gt(5),fo(o)){const l=i&&t&&t.type_!==3&&!qd(t.assigned_,n)?i.concat(n):void 0,c=bs(e,o,l);if(O1(r,n,c),fo(c))e.canAutoFreeze_=!1;else return}else a&&r.add(o);if(jn(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===o&&s)return;bs(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Ii(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&xs(e,o)}}}function xs(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Rp(t,r)}function JF(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:C1(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Dp;r&&(o=[n],i=si);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var Dp={get(e,t){if(t===_t)return e;const r=fn(e);if(!qd(r,t))return QF(e,r,t);const n=r[t];return e.finalized_||!jn(n)?n:n===Ku(e.base_,t)?(Uu(e),e.copy_[t]=Qd(n,e)):n},has(e,t){return t in fn(e)},ownKeys(e){return Reflect.ownKeys(fn(e))},set(e,t,r){const n=A1(fn(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Ku(fn(e),t),i=o?.[_t];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(GF(r,o)&&(r!==void 0||qd(e.base_,t)))return!0;Uu(e),Jd(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 Ku(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Uu(e),Jd(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=fn(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 ii(e.base_)},setPrototypeOf(){gt(12)}},si={};ys(Dp,(e,t)=>{si[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});si.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&gt(13),si.set.call(this,e,t,void 0)};si.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&gt(14),Dp.set.call(this,e[0],t,r,e[0])};function Ku(e,t){const r=e[_t];return(r?fn(r):e)[t]}function QF(e,t,r){const n=A1(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function A1(e,t){if(!(t in e))return;let r=ii(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ii(r)}}function Jd(e){e.modified_||(e.modified_=!0,e.parent_&&Jd(e.parent_))}function Uu(e){e.copy_||(e.copy_=Yd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var eB=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(jn(t)){const i=ly(this),a=Qd(t,void 0);let s=!0;try{o=r(a),s=!1}finally{s?Xd(i):Zd(i)}return sy(i,n),cy(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===P1&&(o=void 0),this.autoFreeze_&&Rp(o,!0),n){const i=[],a=[];Nn("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){jn(e)||gt(8),fo(e)&&(e=tB(e));const t=ly(this),r=Qd(e,void 0);return r[_t].isManual_=!0,Zd(t),r}finishDraft(e,t){const r=e&&e[_t];(!r||!r.isManual_)&&gt(9);const{scope_:n}=r;return sy(n,t),cy(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=Nn("Patches").applyPatches_;return fo(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Qd(e,t){const r=Ii(e)?Nn("MapSet").proxyMap_(e,t):Rl(e)?Nn("MapSet").proxySet_(e,t):JF(e,t);return(t?t.scope_:C1()).drafts_.push(r),r}function tB(e){return fo(e)||gt(10,e),_1(e)}function _1(e){if(!jn(e)||Dl(e))return e;const t=e[_t];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Yd(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Yd(e,!0);return ys(r,(o,i)=>{O1(r,o,_1(i))},n),t&&(t.finalized_=!1),r}var rB=new eB;rB.produce;var nB={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},T1=xt({name:"legend",initialState:nB,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:dy,setLegendSettings:oB,addLegendPayload:j1,replaceLegendPayload:N1,removeLegendPayload:M1}=T1.actions,iB=T1.reducer,aB=["contextPayload"];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 fy(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 po(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(r),!0).forEach(function(n){sB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sB(e,t,r){return(t=lB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lB(e){var t=cB(e,"string");return typeof t=="symbol"?t:t+""}function cB(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 uB(e,t){if(e==null)return{};var r,n,o=dB(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 dB(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 fB(e){return e.value}function pB(e){var{contextPayload:t}=e,r=uB(e,aB),n=OP(t,e.payloadUniqBy,fB),o=po(po({},r),{},{payload:n});return f.isValidElement(e.content)?f.cloneElement(e.content,o):typeof e.content=="function"?f.createElement(e.content,o):f.createElement(z$,o)}function vB(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}),po(po({},c),u)}function mB(e){var t=Se();return A.useEffect(()=>{t(oB(e))},[t,e]),null}function hB(e){var t=Se();return A.useEffect(()=>(t(dy(e)),()=>{t(dy({width:0,height:0}))}),[t,e]),null}function gB(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var yB={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function $l(e){var t=Le(e,yB),r=LL(),n=N2(),o=WF(),{width:i,height:a,wrapperStyle:s,portal:l}=t,[c,u]=NP([r]),d=Ip(),p=kp();if(d==null||p==null)return null;var v=d-(o?.left||0)-(o?.right||0),g=gB(t.layout,a,i,v),m=l?s:po(po({position:"absolute",width:g?.width||i||"auto",height:g?.height||a||"auto"},vB(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(mB,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&f.createElement(hB,{width:c.width,height:c.height}),f.createElement(pB,ef({},t,g,{margin:o,chartWidth:d,chartHeight:p,contextPayload:r})));return wi.createPortal(b,h)}$l.displayName="Legend";function tf(){return tf=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},tf.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 zo(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){bB(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 bB(e,t,r){return(t=xB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xB(e){var t=wB(e,"string");return typeof t=="symbol"?t:t+""}function wB(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 SB(e){return Array.isArray(e)&&ir(e[0])&&ir(e[1])?e.join(" ~ "):e}var Zn={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},PB=e=>{var{separator:t=Zn.separator,contentStyle:r,itemStyle:n,labelStyle:o=Zn.labelStyle,payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:p=Zn.accessibilityLayer}=e,v=()=>{if(i&&i.length){var E={padding:0,margin:0},P=(s?xl(i,s):i).map((O,C)=>{if(O.type==="none")return null;var N=O.formatter||a||SB,{value:$,name:I}=O,_=$,j=I;if(N){var R=N($,I,O,C,i);if(Array.isArray(R))[_,j]=R;else if(R!=null)_=R;else return null}var V=zo(zo({},Zn.itemStyle),{},{color:O.color||Zn.itemStyle.color},n);return f.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:V},ir(j)?f.createElement("span",{className:"recharts-tooltip-item-name"},j):null,ir(j)?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"},O.unit||""))});return f.createElement("ul",{className:"recharts-tooltip-item-list",style:E},P)}return null},g=zo(zo({},Zn.contentStyle),r),m=zo({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 S=p?{role:"status","aria-live":"assertive"}:{};return f.createElement("div",tf({className:x,style:g},S),f.createElement("p",{className:w,style:m},f.isValidElement(b)?b:"".concat(b)),v())},Fo="recharts-tooltip-wrapper",EB={visibility:"hidden"};function OB(e){var{coordinate:t,translateX:r,translateY:n}=e;return de(Fo,{["".concat(Fo,"-right")]:q(r)&&t&&q(t.x)&&r>=t.x,["".concat(Fo,"-left")]:q(r)&&t&&q(t.x)&&r<t.x,["".concat(Fo,"-bottom")]:q(n)&&t&&q(t.y)&&n>=t.y,["".concat(Fo,"-top")]:q(n)&&t&&q(t.y)&&n<t.y})}function vy(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 CB(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 AB(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=vy({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),p=vy({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=CB({translateX:d,translateY:p,useTranslate3d:l})):u=EB,{cssProperties:u,cssClasses:OB({translateX:d,translateY:p,coordinate:r})}}function my(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 Aa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?my(Object(r),!0).forEach(function(n){rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):my(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rf(e,t,r){return(t=_B(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _B(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 jB extends A.PureComponent{constructor(){super(...arguments),rf(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),rf(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:S,cssProperties:E}=AB({allowEscapeViewBox:r,coordinate:a,offsetLeft:x,offsetTop:w,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:p,viewBox:v}),P=b?{}:Aa(Aa({transition:l&&t?"transform ".concat(n,"ms ").concat(o):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),O=Aa(Aa({},P),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},g);return f.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:S,style:O,ref:h},i)}}var I1=()=>{var e;return(e=J(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function nf(){return nf=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},nf.apply(null,arguments)}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 gy(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){NB(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 NB(e,t,r){return(t=MB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MB(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 yy={curveBasisClosed:X2,curveBasisOpen:Z2,curveBasis:Y2,curveBumpX:R2,curveBumpY:D2,curveLinearClosed:J2,curveLinear:yl,curveMonotoneX:Q2,curveMonotoneY:e$,curveNatural:t$,curveStep:r$,curveStepAfter:o$,curveStepBefore:n$},ws=e=>ce(e.x)&&ce(e.y),by=e=>e.base!=null&&ws(e.base)&&ws(e),Bo=e=>e.x,Vo=e=>e.y,kB=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Oi(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=yy["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return yy[r]||yl},xy={connectNulls:!1,type:"linear"},RB=e=>{var{type:t=xy.type,points:r=[],baseLine:n,layout:o,connectNulls:i=xy.connectNulls}=e,a=kB(t,o),s=i?r.filter(ws):r;if(Array.isArray(n)){var l,c=r.map((g,m)=>gy(gy({},g),{},{base:n[m]}));o==="vertical"?l=ha().y(Vo).x1(Bo).x0(g=>g.base.x):l=ha().x(Bo).y1(Vo).y0(g=>g.base.y);var u=l.defined(by).curve(a),d=i?c.filter(by):c;return u(d)}var p;o==="vertical"&&q(n)?p=ha().y(Vo).x1(Bo).x0(n):q(n)?p=ha().x(Bo).y1(Vo).y0(n):p=tP().x(Bo).y(Vo);var v=p.defined(ws).curve(a);return v(s)},$p=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=Bn();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?RB(a):n;return f.createElement("path",nf({},At(e),bp(e),{className:de("recharts-curve",t),d:s===null?void 0:s,ref:o}))},DB=["x","y","top","left","width","height","className"];function of(){return of=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},of.apply(null,arguments)}function wy(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 $B(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wy(Object(r),!0).forEach(function(n){LB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LB(e,t,r){return(t=zB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zB(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 BB(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 WB=(e,t,r,n,o,i)=>"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),KB=e=>{var{x:t=0,y:r=0,top:n=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=BB(e,DB),c=$B({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",of({},mt(c),{className:de("recharts-cross",s),d:WB(t,r,i,a,n,o)}))};function UB(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 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 Py(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){HB(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 HB(e,t,r){return(t=GB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GB(e){var t=qB(e,"string");return typeof t=="symbol"?t:t+""}function qB(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 YB=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),k1=(e,t,r)=>e.map(n=>"".concat(YB(n)," ").concat(t,"ms ").concat(r)).join(","),XB=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),li=(e,t)=>Object.keys(t).reduce((r,n)=>Py(Py({},r),{},{[n]:e(n,t[n])}),{});function Ey(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 Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ey(Object(r),!0).forEach(function(n){ZB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ey(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZB(e,t,r){return(t=JB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JB(e){var t=QB(e,"string");return typeof t=="symbol"?t:t+""}function QB(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 Ss=(e,t,r)=>e+(t-e)*r,af=e=>{var{from:t,to:r}=e;return t!==r},R1=(e,t,r)=>{var n=li((o,i)=>{if(af(i)){var[a,s]=e(i.from,i.to,i.velocity);return Fe(Fe({},i),{},{from:a,velocity:s})}return i},t);return r<1?li((o,i)=>af(i)&&n[o]!=null?Fe(Fe({},i),{},{velocity:Ss(i.velocity,n[o].velocity,r),from:Ss(i.from,n[o].from,r)}):i,t):R1(e,n,r-1)};function e3(e,t,r,n,o,i){var a,s=n.reduce((p,v)=>Fe(Fe({},p),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>li((p,v)=>v.from,s),c=()=>!Object.values(s).filter(af).length,u=null,d=p=>{a||(a=p);var v=p-a,g=v/r.dt;s=R1(r,s,g),o(Fe(Fe(Fe({},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 t3(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:Fe(Fe({},d),{},{[p]:[v,g]})},{}),c,u=d=>{c||(c=d);var p=(d-c)/n,v=li((m,h)=>Ss(...h,r(p)),l);if(i(Fe(Fe(Fe({},e),t),v)),p<1)s=a.setTimeout(u);else{var g=li((m,h)=>Ss(...h,r(1)),l);i(Fe(Fe(Fe({},e),t),g))}};return()=>(s=a.setTimeout(u),()=>{var d;(d=s)===null||d===void 0||d()})}const r3=(e,t,r,n,o,i)=>{var a=XB(e,t);return r==null?()=>(o(Fe(Fe({},e),t)),()=>{}):r.isStepper===!0?e3(e,t,r,a,o,i):t3(e,t,r,n,a,o,i)};var Ps=1e-4,D1=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],$1=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Oy=(e,t)=>r=>{var n=D1(e,t);return $1(n,r)},n3=(e,t)=>r=>{var n=D1(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return $1(o,r)},o3=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]]},i3=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=o3(r[0]);if(o)return o}}return r.length===4?r:[0,0,1,1]},a3=(e,t,r,n)=>{var o=Oy(e,r),i=Oy(t,n),a=n3(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)<Ps||g<Ps)return i(d);d=s(d-v/g)}return i(d)};return l.isStepper=!1,l},Cy=function(){return a3(...i3(...arguments))},s3=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)<Ps&&Math.abs(d)<Ps?[s,0]:[p,d]};return i.isStepper=!0,i.dt=o,i},l3=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Cy(e);case"spring":return s3();default:if(e.split("(")[0]==="cubic-bezier")return Cy(e)}return typeof e=="function"?e:null};function c3(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 u3{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 d3(){return c3(new u3)}var f3=A.createContext(d3);function p3(e,t){var r=A.useContext(f3);return A.useMemo(()=>t??r(e),[e,t,r])}var v3=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Ll={isSsr:v3()},m3={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Ay={t:0},Hu={t:1};function ki(e){var t=Le(e,m3),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=r==="auto"?!Ll.isSsr:r,d=p3(t.animationId,t.animationManager),[p,v]=A.useState(u?Ay:Hu),g=A.useRef(null);return A.useEffect(()=>{u||v(Hu)},[u]),A.useEffect(()=>{if(!u||!n)return Fn;var m=r3(Ay,Hu,l3(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 Ri(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=A.useRef(ti(t)),n=A.useRef(e);return n.current!==e&&(r.current=ti(t),n.current=e),r.current}var h3=["radius"],g3=["radius"],_y,Ty,jy,Ny,My,Iy,ky,Ry,Dy,$y;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 zy(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){y3(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 y3(e,t,r){return(t=b3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b3(e){var t=x3(e,"string");return typeof t=="symbol"?t:t+""}function x3(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 Es(){return Es=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},Es.apply(null,arguments)}function Fy(e,t){if(e==null)return{};var r,n,o=w3(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 w3(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 By=(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(_y||(_y=qt(["M",",",""])),e,t+l*p[0]),p[0]>0&&(d+=Me(Ty||(Ty=qt(["A ",",",",0,0,",",",",",""])),p[0],p[0],u,e+c*p[0],t)),d+=Me(jy||(jy=qt(["L ",",",""])),e+r-c*p[1],t),p[1]>0&&(d+=Me(Ny||(Ny=qt(["A ",",",",0,0,",`,
72
+ `,",",""])),p[1],p[1],u,e+r,t+l*p[1])),d+=Me(My||(My=qt(["L ",",",""])),e+r,t+n-l*p[2]),p[2]>0&&(d+=Me(Iy||(Iy=qt(["A ",",",",0,0,",`,
73
+ `,",",""])),p[2],p[2],u,e+r-c*p[2],t+n)),d+=Me(ky||(ky=qt(["L ",",",""])),e+c*p[3],t+n),p[3]>0&&(d+=Me(Ry||(Ry=qt(["A ",",",",0,0,",`,
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(Dy||(Dy=qt(["M ",",",`
75
75
  A `,",",",0,0,",",",",",`
76
76
  L `,",",`
77
77
  A `,",",",0,0,",",",",",`
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(Dy||(Dy=qt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return d},By={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$1=e=>{var t=Le(e,By),r=A.useRef(null),[n,o]=A.useState(-1);A.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var W=r.current.getTotalLength();W&&o(W)}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),S=A.useMemo(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),E=ki(S,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var P=de("recharts-rectangle",u);if(!m){var O=mt(t),{radius:C}=O,N=zy(O,m3);return f.createElement("path",Ps({},N,{x:Vr(i),y:Vr(a),width:Vr(s),height:Vr(l),radius:typeof c=="number"?c:void 0,className:P,d:Fy(i,a,s,l,c)}))}var $=h.current,I=b.current,_=x.current,j=w.current,R="0px ".concat(n===-1?1:n,"px"),V="".concat(n,"px 0px"),F=I1(["strokeDasharray"],p,typeof d=="string"?d:By.animationEasing);return f.createElement(Ii,{animationId:E,key:E,canBegin:n>0,duration:p,easing:d,isActive:m,begin:v},W=>{var T=Ae($,s,W),k=Ae(I,l,W),G=Ae(_,i,W),ee=Ae(j,a,W);r.current&&(h.current=T,b.current=k,x.current=G,w.current=ee);var ne;g?W>0?ne={transition:F,strokeDasharray:V}:ne={strokeDasharray:R}:ne={strokeDasharray:V};var ie=mt(t),{radius:oe}=ie,le=zy(ie,h3);return f.createElement("path",Ps({},le,{radius:typeof c=="number"?c:void 0,className:P,d:Fy(G,ee,T,k,c),ref:r,style:Ly(Ly({},ne),t.style)}))})};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 Wy(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){w3(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 w3(e,t,r){return(t=S3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S3(e){var t=P3(e,"string");return typeof t=="symbol"?t:t+""}function P3(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 Es=Math.PI/180,E3=e=>e*180/Math.PI,Re=(e,t,r,n)=>({x:e+Math.cos(-Es*n)*r,y:t+Math.sin(-Es*n)*r}),L1=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},O3=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},C3=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=O3({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:E3(l),angleInRadian:l}},A3=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}},_3=(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}=C3({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(o<a||o>s||o===0)return null;var{startAngle:l,endAngle:c}=A3(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?Wy(Wy({},t),{},{radius:o,angle:_3(u,t)}):null};function z1(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 Ky,Uy,Hy,Gy,qy,Yy,Xy;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 vn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var j3=(e,t)=>{var r=qe(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Aa=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)/Es,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*Es),g);return{center:p,circleTangency:v,lineTangency:m,theta:u}},F1=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:i,endAngle:a}=e,s=j3(i,a),l=i+s,c=Re(t,r,o,i),u=Re(t,r,o,l),d=Me(Ky||(Ky=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($y||($y=qt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return d},Vy={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},L1=e=>{var t=Le(e,Vy),r=A.useRef(null),[n,o]=A.useState(-1);A.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var W=r.current.getTotalLength();W&&o(W)}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),S=A.useMemo(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),E=Ri(S,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var P=de("recharts-rectangle",u);if(!m){var O=mt(t),{radius:C}=O,N=Fy(O,h3);return f.createElement("path",Es({},N,{x:Vr(i),y:Vr(a),width:Vr(s),height:Vr(l),radius:typeof c=="number"?c:void 0,className:P,d:By(i,a,s,l,c)}))}var $=h.current,I=b.current,_=x.current,j=w.current,R="0px ".concat(n===-1?1:n,"px"),V="".concat(n,"px 0px"),F=k1(["strokeDasharray"],p,typeof d=="string"?d:Vy.animationEasing);return f.createElement(ki,{animationId:E,key:E,canBegin:n>0,duration:p,easing:d,isActive:m,begin:v},W=>{var T=Ae($,s,W),k=Ae(I,l,W),G=Ae(_,i,W),ee=Ae(j,a,W);r.current&&(h.current=T,b.current=k,x.current=G,w.current=ee);var ne;g?W>0?ne={transition:F,strokeDasharray:V}:ne={strokeDasharray:R}:ne={strokeDasharray:V};var ie=mt(t),{radius:oe}=ie,le=Fy(ie,g3);return f.createElement("path",Es({},le,{radius:typeof c=="number"?c:void 0,className:P,d:By(G,ee,T,k,c),ref:r,style:zy(zy({},ne),t.style)}))})};function Wy(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 Ky(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wy(Object(r),!0).forEach(function(n){S3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S3(e,t,r){return(t=P3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P3(e){var t=E3(e,"string");return typeof t=="symbol"?t:t+""}function E3(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 Os=Math.PI/180,O3=e=>e*180/Math.PI,Re=(e,t,r,n)=>({x:e+Math.cos(-Os*n)*r,y:t+Math.sin(-Os*n)*r}),z1=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},C3=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},A3=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=C3({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:O3(l),angleInRadian:l}},_3=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},j3=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:o,angle:i}=A3({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(o<a||o>s||o===0)return null;var{startAngle:l,endAngle:c}=_3(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?Ky(Ky({},t),{},{radius:o,angle:T3(u,t)}):null};function F1(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 Uy,Hy,Gy,qy,Yy,Xy,Zy;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 mn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var N3=(e,t)=>{var r=qe(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},_a=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)/Os,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*Os),g);return{center:p,circleTangency:v,lineTangency:m,theta:u}},B1=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(Uy||(Uy=mn(["M ",",",`
82
82
  A `,",",`,0,
83
83
  `,",",`,
84
84
  `,",",`
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(Uy||(Uy=vn(["L ",",",`
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(Hy||(Hy=mn(["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(Hy||(Hy=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=qe(c-l),{circleTangency:d,lineTangency:p,theta:v}=Aa({cx:t,cy:r,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:g,lineTangency:m,theta:h}=Aa({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(Gy||(Gy=vn(["M ",",",`
88
+ `,","," Z"])),v.x,v.y,n,n,+(Math.abs(s)>180),+(i<=l),p.x,p.y)}else d+=Me(Gy||(Gy=mn(["L ",","," Z"])),t,r);return d},M3=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=qe(c-l),{circleTangency:d,lineTangency:p,theta:v}=_a({cx:t,cy:r,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:g,lineTangency:m,theta:h}=_a({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(qy||(qy=mn(["M ",",",`
89
89
  a`,",",",0,0,1,",`,0
90
90
  a`,",",",0,0,1,",`,0
91
- `])),p.x,p.y,i,i,i*2,i,i,-i*2):F1({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var x=Me(qy||(qy=vn(["M ",",",`
91
+ `])),p.x,p.y,i,i,i*2,i,i,-i*2):B1({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var x=Me(Yy||(Yy=mn(["M ",",",`
92
92
  A`,",",",0,0,",",",",",`
93
93
  A`,",",",0,",",",",",",",`
94
94
  A`,",",",0,0,",",",",",`
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:S,theta:E}=Aa({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:P,lineTangency:O,theta:C}=Aa({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)-E-C;if(N<0&&i===0)return"".concat(x,"L").concat(t,",").concat(r,"Z");x+=Me(Yy||(Yy=vn(["L",",",`
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:S,theta:E}=_a({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:P,lineTangency:O,theta:C}=_a({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)-E-C;if(N<0&&i===0)return"".concat(x,"L").concat(t,",").concat(r,"Z");x+=Me(Xy||(Xy=mn(["L",",",`
96
96
  A`,",",",0,0,",",",",",`
97
97
  A`,",",",0,",",",",",",",`
98
- A`,",",",0,0,",",",",","Z"])),O.x,O.y,i,i,+(u<0),P.x,P.y,n,n,+(N>180),+(u>0),w.x,w.y,i,i,+(u<0),S.x,S.y)}else x+=Me(Xy||(Xy=vn(["L",",","Z"])),t,r);return x},M3={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},B1=e=>{var t=Le(e,M3),{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=at(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=F1({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),f.createElement("path",af({},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(mP(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 z1(t)}}var Hu={},Gu={},qu={},Zy;function k3(){return Zy||(Zy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AP();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(qu)),qu}var Jy;function R3(){return Jy||(Jy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=k3();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})(Gu)),Gu}var Qy;function D3(){return Qy||(Qy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_P(),r=R3();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})(Hu)),Hu}var Yu,eb;function $3(){return eb||(eb=1,Yu=D3().range),Yu}var L3=$3();const V1=Jr(L3);function Wr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function z3(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $p(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===z3?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 W1(e){return e===null?NaN:+e}function*B3(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const V3=$p(Wr),Ri=V3.right;$p(W1).center;class tb extends Map{constructor(t,r=U3){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(rb(this,t))}has(t){return super.has(rb(this,t))}set(t,r){return super.set(W3(this,t),r)}delete(t){return super.delete(K3(this,t))}}function rb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function W3({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function K3({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function U3(e){return e!==null&&typeof e=="object"?e.valueOf():e}function H3(e=Wr){if(e===Wr)return K1;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 K1(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const G3=Math.sqrt(50),q3=Math.sqrt(10),Y3=Math.sqrt(2);function Os(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>=G3?10:i>=q3?5:i>=Y3?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?Os(e,t,r*2):[s,l,c]}function sf(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?Os(t,e,r):Os(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 lf(e,t,r){return t=+t,e=+e,r=+r,Os(e,t,r)[2]}function cf(e,t,r){t=+t,e=+e,r=+r;const n=t<e,o=n?lf(t,e,r):lf(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}function nb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ob(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function U1(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?K1:H3(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));U1(e,t,v,g,o)}const i=e[t];let a=r,s=n;for(Vo(e,r,t),o(e[n],i)>0&&Vo(e,r,n);a<s;){for(Vo(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[r],i)===0?Vo(e,r,s):(++s,Vo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Vo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function X3(e,t,r){if(e=Float64Array.from(B3(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ob(e);if(t>=1)return nb(e);var n,o=(n-1)*t,i=Math.floor(o),a=nb(U1(e,i).subarray(0,i+1)),s=ob(e.subarray(i+1));return a+(s-a)*(o-i)}}function Z3(e,t,r=W1){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 J3(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 uf=Symbol("implicit");function Lp(){var e=new tb,t=[],r=[],n=uf;function o(i){let a=e.get(i);if(a===void 0){if(n!==uf)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 tb;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 Lp(t,r).unknown(n)},$t.apply(o,arguments),o}function zp(){var e=Lp().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=J3(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 zp(t(),[n,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},$t.apply(d(),arguments)}function H1(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return H1(t())},e}function Q3(){return H1(zp.apply(null,arguments).paddingInner(1))}function Fp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function G1(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Di(){}var li=.7,Cs=1/li,ao="\\s*([+-]?\\d+)\\s*",ci="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eV=/^#([0-9a-f]{3,8})$/,tV=new RegExp(`^rgb\\(${ao},${ao},${ao}\\)$`),rV=new RegExp(`^rgb\\(${rr},${rr},${rr}\\)$`),nV=new RegExp(`^rgba\\(${ao},${ao},${ao},${ci}\\)$`),oV=new RegExp(`^rgba\\(${rr},${rr},${rr},${ci}\\)$`),iV=new RegExp(`^hsl\\(${ci},${rr},${rr}\\)$`),aV=new RegExp(`^hsla\\(${ci},${rr},${rr},${ci}\\)$`),ib={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};Fp(Di,ui,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ab,formatHex:ab,formatHex8:sV,formatHsl:lV,formatRgb:sb,toString:sb});function ab(){return this.rgb().formatHex()}function sV(){return this.rgb().formatHex8()}function lV(){return q1(this).formatHsl()}function sb(){return this.rgb().formatRgb()}function ui(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=eV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?lb(t):r===3?new bt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_a(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_a(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=tV.exec(e))?new bt(t[1],t[2],t[3],1):(t=rV.exec(e))?new bt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nV.exec(e))?_a(t[1],t[2],t[3],t[4]):(t=oV.exec(e))?_a(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=iV.exec(e))?db(t[1],t[2]/100,t[3]/100,1):(t=aV.exec(e))?db(t[1],t[2]/100,t[3]/100,t[4]):ib.hasOwnProperty(e)?lb(ib[e]):e==="transparent"?new bt(NaN,NaN,NaN,0):null}function lb(e){return new bt(e>>16&255,e>>8&255,e&255,1)}function _a(e,t,r,n){return n<=0&&(e=t=r=NaN),new bt(e,t,r,n)}function cV(e){return e instanceof Di||(e=ui(e)),e?(e=e.rgb(),new bt(e.r,e.g,e.b,e.opacity)):new bt}function df(e,t,r,n){return arguments.length===1?cV(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}Fp(bt,df,G1(Di,{brighter(e){return e=e==null?Cs:Math.pow(Cs,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,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),As(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:cb,formatHex:cb,formatHex8:uV,formatRgb:ub,toString:ub}));function cb(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}`}function uV(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}${mn((isNaN(this.opacity)?1:this.opacity)*255)}`}function ub(){const e=As(this.opacity);return`${e===1?"rgb(":"rgba("}${wn(this.r)}, ${wn(this.g)}, ${wn(this.b)}${e===1?")":`, ${e})`}`}function As(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 db(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ft(e,t,r,n)}function q1(e){if(e instanceof Ft)return new Ft(e.h,e.s,e.l,e.opacity);if(e instanceof Di||(e=ui(e)),!e)return new Ft;if(e instanceof Ft)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 Ft(a,s,l,e.opacity)}function dV(e,t,r,n){return arguments.length===1?q1(e):new Ft(e,t,r,n??1)}function Ft(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Fp(Ft,dV,G1(Di,{brighter(e){return e=e==null?Cs:Math.pow(Cs,e),new Ft(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new Ft(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(Xu(e>=240?e-240:e+120,o,n),Xu(e,o,n),Xu(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ft(fb(this.h),Ta(this.s),Ta(this.l),As(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=As(this.opacity);return`${e===1?"hsl(":"hsla("}${fb(this.h)}, ${Ta(this.s)*100}%, ${Ta(this.l)*100}%${e===1?")":`, ${e})`}`}}));function fb(e){return e=(e||0)%360,e<0?e+360:e}function Ta(e){return Math.max(0,Math.min(1,e||0))}function Xu(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 Bp=e=>()=>e;function fV(e,t){return function(r){return e+r*t}}function pV(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 vV(e){return(e=+e)==1?Y1:function(t,r){return r-t?pV(t,r,e):Bp(isNaN(t)?r:t)}}function Y1(e,t){var r=t-e;return r?fV(e,r):Bp(isNaN(e)?t:e)}const pb=(function e(t){var r=vV(t);function n(o,i){var a=r((o=df(o)).r,(i=df(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=Y1(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 mV(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 hV(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function gV(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]=Eo(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 yV(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function _s(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function bV(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]=Eo(e[o],t[o]):n[o]=t[o];return function(i){for(o in r)n[o]=r[o](i);return n}}var ff=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zu=new RegExp(ff.source,"g");function xV(e){return function(){return e}}function wV(e){return function(t){return e(t)+""}}function SV(e,t){var r=ff.lastIndex=Zu.lastIndex=0,n,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=ff.exec(e))&&(o=Zu.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:_s(n,o)})),r=Zu.lastIndex;return r<t.length&&(i=t.slice(r),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?wV(l[0].x):xV(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 Eo(e,t){var r=typeof t,n;return t==null||r==="boolean"?Bp(t):(r==="number"?_s:r==="string"?(n=ui(t))?(t=n,pb):SV:t instanceof ui?pb:t instanceof Date?yV:hV(t)?mV:Array.isArray(t)?gV:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?bV:_s)(e,t)}function Vp(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function PV(e,t){t===void 0&&(t=e,e=Eo);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 EV(e){return function(){return e}}function Ts(e){return+e}var vb=[0,1];function pt(e){return e}function pf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:EV(isNaN(t)?NaN:.5)}function OV(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function CV(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=pf(o,n),i=r(a,i)):(n=pf(n,o),i=r(i,a)),function(s){return i(n(s))}}function AV(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]=pf(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(s){var l=Ri(e,s,1,n)-1;return i[l](o[l](s))}}function $i(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ll(){var e=vb,t=vb,r=Eo,n,o,i,a=pt,s,l,c;function u(){var p=Math.min(e.length,t.length);return a!==pt&&(a=OV(e[0],e[p-1])),s=p>2?AV:CV,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),_s)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Ts),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=Vp,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 Wp(){return Ll()(pt,pt)}function _V(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function js(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=js(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 jV(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var NV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function di(e){if(!(t=NV.exec(e)))throw new Error("invalid format: "+e);var t;return new Kp({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]})}di.prototype=Kp.prototype;function Kp(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+""}Kp.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 MV(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 Ns;function IV(e,t){var r=js(e,t);if(!r)return Ns=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(Ns=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")+js(e,Math.max(0,t+i-1))[0]}function mb(e,t){var r=js(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 hb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:_V,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)=>mb(e*100,t),r:mb,s:IV,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function gb(e){return e}var yb=Array.prototype.map,bb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kV(e){var t=e.grouping===void 0||e.thousands===void 0?gb:TV(yb.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?gb:jV(yb.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=di(d);var v=d.fill,g=d.align,m=d.sign,h=d.symbol,b=d.zero,x=d.width,w=d.comma,S=d.precision,E=d.trim,P=d.type;P==="n"?(w=!0,P="g"):hb[P]||(S===void 0&&(S=12),E=!0,P="g"),(b||v==="0"&&g==="=")&&(b=!0,v="0",g="=");var O=(p&&p.prefix!==void 0?p.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():""),C=(h==="$"?n:/[%p]/.test(P)?a:"")+(p&&p.suffix!==void 0?p.suffix:""),N=hb[P],$=/[defgprs%]/.test(P);S=S===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function I(_){var j=O,R=C,V,F,W;if(P==="c")R=N(_)+R,_="";else{_=+_;var T=_<0||1/_<0;if(_=isNaN(_)?l:N(Math.abs(_),S),E&&(_=MV(_)),T&&+_==0&&m!=="+"&&(T=!1),j=(T?m==="("?m:s:m==="-"||m==="("?"":m)+j,R=(P==="s"&&!isNaN(_)&&Ns!==void 0?bb[8+Ns/3]:"")+R+(T&&m==="("?")":""),$){for(V=-1,F=_.length;++V<F;)if(W=_.charCodeAt(V),48>W||W>57){R=(W===46?o+_.slice(V+1):_.slice(V))+R,_=_.slice(0,V);break}}}w&&!b&&(_=t(_,1/0));var k=j.length+_.length+R.length,G=k<x?new Array(x-k+1).join(v):"";switch(w&&b&&(_=t(G+_,G.length?x-R.length:1/0),G=""),g){case"<":_=j+_+R+G;break;case"=":_=j+G+_+R;break;case"^":_=G.slice(0,k=G.length>>1)+j+_+R+G.slice(k);break;default:_=G+j+_+R;break}return i(_)}return I.toString=function(){return d+""},I}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=di(d),d.type="f",d),{suffix:bb[8+v/3]});return function(h){return m(g*h)}}return{format:c,formatPrefix:u}}var ja,Up,X1;RV({thousands:",",grouping:[3],currency:["$",""]});function RV(e){return ja=kV(e),Up=ja.format,X1=ja.formatPrefix,ja}function DV(e){return Math.max(0,-po(Math.abs(e)))}function $V(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(po(t)/3)))*3-po(Math.abs(e)))}function LV(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,po(t)-po(e))+1}function Z1(e,t,r,n){var o=cf(e,t,r),i;switch(n=di(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=$V(o,a))&&(n.precision=i),X1(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=LV(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=DV(o))&&(n.precision=i-(n.type==="%")*2);break}}return Up(n)}function Qr(e){var t=e.domain;return e.ticks=function(r){var n=t();return sf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return Z1(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=lf(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 J1(){var e=Wp();return e.copy=function(){return $i(e,J1())},$t.apply(e,arguments),Qr(e)}function Q1(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,Ts),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Q1(e).unknown(t)},e=arguments.length?Array.from(e,Ts):[0,1],Qr(r)}function eE(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 xb(e){return Math.log(e)}function wb(e){return Math.exp(e)}function zV(e){return-Math.log(-e)}function FV(e){return-Math.exp(-e)}function BV(e){return isFinite(e)?+("1e"+e):e<0?0:e}function VV(e){return e===10?BV:e===Math.E?Math.exp:t=>Math.pow(e,t)}function WV(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 Sb(e){return(t,r)=>-e(-t,r)}function Hp(e){const t=e(xb,wb),r=t.domain;let n=10,o,i;function a(){return o=WV(n),i=VV(n),r()[0]<0?(o=Sb(o),i=Sb(i),e(zV,FV)):e(xb,wb),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=sf(c,u,h))}else b=sf(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=di(l)).precision==null&&(l.trim=!0),l=Up(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(eE(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function tE(){const e=Hp(Ll()).domain([1,10]);return e.copy=()=>$i(e,tE()).base(e.base()),$t.apply(e,arguments),e}function Pb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Eb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Gp(e){var t=1,r=e(Pb(t),Eb(t));return r.constant=function(n){return arguments.length?e(Pb(t=+n),Eb(t)):t},Qr(r)}function rE(){var e=Gp(Ll());return e.copy=function(){return $i(e,rE()).constant(e.constant())},$t.apply(e,arguments)}function Ob(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function KV(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function UV(e){return e<0?-e*e:e*e}function qp(e){var t=e(pt,pt),r=1;function n(){return r===1?e(pt,pt):r===.5?e(KV,UV):e(Ob(r),Ob(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},Qr(t)}function Yp(){var e=qp(Ll());return e.copy=function(){return $i(e,Yp()).exponent(e.exponent())},$t.apply(e,arguments),e}function HV(){return Yp.apply(null,arguments).exponent(.5)}function Cb(e){return Math.sign(e)*e*e}function GV(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nE(){var e=Wp(),t=[0,1],r=!1,n;function o(i){var a=GV(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(Cb(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,Ts)).map(Cb)),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 nE(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},$t.apply(o,arguments),Qr(o)}function oE(){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]=Z3(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?n:t[Ri(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 oE().domain(e).range(t).unknown(n)},$t.apply(i,arguments)}function iE(){var e=0,t=1,r=1,n=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[Ri(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 iE().domain([e,t]).range(o).unknown(i)},$t.apply(Qr(a),arguments)}function aE(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[Ri(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 aE().domain(e).range(t).unknown(r)},$t.apply(o,arguments)}const Ju=new Date,Qu=new Date;function We(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=>We(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)=>(Ju.setTime(+i),Qu.setTime(+a),e(Ju),e(Qu),Math.floor(r(Ju,Qu))),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 Ms=We(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ms.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?We(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ms);Ms.range;const vr=1e3,It=vr*60,mr=It*60,br=mr*24,Xp=br*7,Ab=br*30,ed=br*365,hn=We(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getUTCSeconds());hn.range;const Zp=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getMinutes());Zp.range;const Jp=We(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getUTCMinutes());Jp.range;const Qp=We(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());Qp.range;const ev=We(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getUTCHours());ev.range;const Li=We(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);Li.range;const zl=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>e.getUTCDate()-1);zl.range;const sE=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>Math.floor(e/br));sE.range;function Bn(e){return We(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)/Xp)}const Fl=Bn(0),Is=Bn(1),qV=Bn(2),YV=Bn(3),vo=Bn(4),XV=Bn(5),ZV=Bn(6);Fl.range;Is.range;qV.range;YV.range;vo.range;XV.range;ZV.range;function Vn(e){return We(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)/Xp)}const Bl=Vn(0),ks=Vn(1),JV=Vn(2),QV=Vn(3),mo=Vn(4),e5=Vn(5),t5=Vn(6);Bl.range;ks.range;JV.range;QV.range;mo.range;e5.range;t5.range;const tv=We(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());tv.range;const rv=We(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());rv.range;const xr=We(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:We(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=We(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:We(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 lE(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,Xp],[t,1,Ab],[t,3,3*Ab],[e,1,ed]];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=$p(([,,h])=>h).right(a,p);if(v===a.length)return e.every(cf(c/ed,u/ed,d));if(v===0)return Ms.every(Math.max(cf(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[r5,n5]=lE(wr,rv,Bl,sE,ev,Jp),[o5,i5]=lE(xr,tv,Fl,Li,Qp,Zp);function td(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 rd(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 Wo(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function a5(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=Ko(o),u=Uo(o),d=Ko(i),p=Uo(i),v=Ko(a),g=Uo(a),m=Ko(s),h=Uo(s),b=Ko(l),x=Uo(l),w={a:W,A:T,b:k,B:G,c:null,d:Ib,e:Ib,f:T5,g:z5,G:B5,H:C5,I:A5,j:_5,L:cE,m:j5,M:N5,p:ee,q:ne,Q:Db,s:$b,S:M5,u:I5,U:k5,V:R5,w:D5,W:$5,x:null,X:null,y:L5,Y:F5,Z:V5,"%":Rb},S={a:ie,A:oe,b:le,B:Oe,c:null,d:kb,e:kb,f:H5,g:r4,G:o4,H:W5,I:K5,j:U5,L:dE,m:G5,M:q5,p:K,q:ue,Q:Db,s:$b,S:Y5,u:X5,U:Z5,V:J5,w:Q5,W:e4,x:null,X:null,y:t4,Y:n4,Z:i4,"%":Rb},E={a:$,A:I,b:_,B:j,c:R,d:Nb,e:Nb,f:S5,g:jb,G:Tb,H:Mb,I:Mb,j:y5,L:w5,m:g5,M:b5,p:N,q:h5,Q:E5,s:O5,S:x5,u:d5,U:f5,V:p5,w:u5,W:v5,x:V,X:F,y:jb,Y:Tb,Z:m5,"%":P5};w.x=P(r,w),w.X=P(n,w),w.c=P(t,w),S.x=P(r,S),S.X=P(n,S),S.c=P(t,S);function P(L,H){return function(B){var z=[],fe=-1,se=0,Qe=L.length,et,Lt,Xm;for(B instanceof Date||(B=new Date(+B));++fe<Qe;)L.charCodeAt(fe)===37&&(z.push(L.slice(se,fe)),(Lt=_b[et=L.charAt(++fe)])!=null?et=L.charAt(++fe):Lt=et==="e"?" ":"0",(Xm=H[et])&&(et=Xm(B,Lt)),z.push(et),se=fe+1);return z.push(L.slice(se,fe)),z.join("")}}function O(L,H){return function(B){var z=Wo(1900,void 0,1),fe=C(z,L,B+="",0),se,Qe;if(fe!=B.length)return null;if("Q"in z)return new Date(z.Q);if("s"in z)return new Date(z.s*1e3+("L"in z?z.L:0));if(H&&!("Z"in z)&&(z.Z=0),"p"in z&&(z.H=z.H%12+z.p*12),z.m===void 0&&(z.m="q"in z?z.q:0),"V"in z){if(z.V<1||z.V>53)return null;"w"in z||(z.w=1),"Z"in z?(se=rd(Wo(z.y,0,1)),Qe=se.getUTCDay(),se=Qe>4||Qe===0?ks.ceil(se):ks(se),se=zl.offset(se,(z.V-1)*7),z.y=se.getUTCFullYear(),z.m=se.getUTCMonth(),z.d=se.getUTCDate()+(z.w+6)%7):(se=td(Wo(z.y,0,1)),Qe=se.getDay(),se=Qe>4||Qe===0?Is.ceil(se):Is(se),se=Li.offset(se,(z.V-1)*7),z.y=se.getFullYear(),z.m=se.getMonth(),z.d=se.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),Qe="Z"in z?rd(Wo(z.y,0,1)).getUTCDay():td(Wo(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(Qe+5)%7:z.w+z.U*7-(Qe+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,rd(z)):td(z)}}function C(L,H,B,z){for(var fe=0,se=H.length,Qe=B.length,et,Lt;fe<se;){if(z>=Qe)return-1;if(et=H.charCodeAt(fe++),et===37){if(et=H.charAt(fe++),Lt=E[et in _b?H.charAt(fe++):et],!Lt||(z=Lt(L,B,z))<0)return-1}else if(et!=B.charCodeAt(z++))return-1}return z}function N(L,H,B){var z=c.exec(H.slice(B));return z?(L.p=u.get(z[0].toLowerCase()),B+z[0].length):-1}function $(L,H,B){var z=v.exec(H.slice(B));return z?(L.w=g.get(z[0].toLowerCase()),B+z[0].length):-1}function I(L,H,B){var z=d.exec(H.slice(B));return z?(L.w=p.get(z[0].toLowerCase()),B+z[0].length):-1}function _(L,H,B){var z=b.exec(H.slice(B));return z?(L.m=x.get(z[0].toLowerCase()),B+z[0].length):-1}function j(L,H,B){var z=m.exec(H.slice(B));return z?(L.m=h.get(z[0].toLowerCase()),B+z[0].length):-1}function R(L,H,B){return C(L,t,H,B)}function V(L,H,B){return C(L,r,H,B)}function F(L,H,B){return C(L,n,H,B)}function W(L){return a[L.getDay()]}function T(L){return i[L.getDay()]}function k(L){return l[L.getMonth()]}function G(L){return s[L.getMonth()]}function ee(L){return o[+(L.getHours()>=12)]}function ne(L){return 1+~~(L.getMonth()/3)}function ie(L){return a[L.getUTCDay()]}function oe(L){return i[L.getUTCDay()]}function le(L){return l[L.getUTCMonth()]}function Oe(L){return s[L.getUTCMonth()]}function K(L){return o[+(L.getUTCHours()>=12)]}function ue(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var H=P(L+="",w);return H.toString=function(){return L},H},parse:function(L){var H=O(L+="",!1);return H.toString=function(){return L},H},utcFormat:function(L){var H=P(L+="",S);return H.toString=function(){return L},H},utcParse:function(L){var H=O(L+="",!0);return H.toString=function(){return L},H}}}var _b={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,s5=/^%/,l5=/[\\^$*+?|[\]().{}]/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 c5(e){return e.replace(l5,"\\$&")}function Ko(e){return new RegExp("^(?:"+e.map(c5).join("|")+")","i")}function Uo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function u5(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function d5(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function f5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function p5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function v5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Tb(e,t,r){var n=Ze.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function jb(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 m5(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 h5(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 g5(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 Nb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function y5(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 Mb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function b5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function x5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function w5(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function S5(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 P5(e,t,r){var n=s5.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function E5(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function O5(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Ib(e,t){return pe(e.getDate(),t,2)}function C5(e,t){return pe(e.getHours(),t,2)}function A5(e,t){return pe(e.getHours()%12||12,t,2)}function _5(e,t){return pe(1+Li.count(xr(e),e),t,3)}function cE(e,t){return pe(e.getMilliseconds(),t,3)}function T5(e,t){return cE(e,t)+"000"}function j5(e,t){return pe(e.getMonth()+1,t,2)}function N5(e,t){return pe(e.getMinutes(),t,2)}function M5(e,t){return pe(e.getSeconds(),t,2)}function I5(e){var t=e.getDay();return t===0?7:t}function k5(e,t){return pe(Fl.count(xr(e)-1,e),t,2)}function uE(e){var t=e.getDay();return t>=4||t===0?vo(e):vo.ceil(e)}function R5(e,t){return e=uE(e),pe(vo.count(xr(e),e)+(xr(e).getDay()===4),t,2)}function D5(e){return e.getDay()}function $5(e,t){return pe(Is.count(xr(e)-1,e),t,2)}function L5(e,t){return pe(e.getFullYear()%100,t,2)}function z5(e,t){return e=uE(e),pe(e.getFullYear()%100,t,2)}function F5(e,t){return pe(e.getFullYear()%1e4,t,4)}function B5(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 kb(e,t){return pe(e.getUTCDate(),t,2)}function W5(e,t){return pe(e.getUTCHours(),t,2)}function K5(e,t){return pe(e.getUTCHours()%12||12,t,2)}function U5(e,t){return pe(1+zl.count(wr(e),e),t,3)}function dE(e,t){return pe(e.getUTCMilliseconds(),t,3)}function H5(e,t){return dE(e,t)+"000"}function G5(e,t){return pe(e.getUTCMonth()+1,t,2)}function q5(e,t){return pe(e.getUTCMinutes(),t,2)}function Y5(e,t){return pe(e.getUTCSeconds(),t,2)}function X5(e){var t=e.getUTCDay();return t===0?7:t}function Z5(e,t){return pe(Bl.count(wr(e)-1,e),t,2)}function fE(e){var t=e.getUTCDay();return t>=4||t===0?mo(e):mo.ceil(e)}function J5(e,t){return e=fE(e),pe(mo.count(wr(e),e)+(wr(e).getUTCDay()===4),t,2)}function Q5(e){return e.getUTCDay()}function e4(e,t){return pe(ks.count(wr(e)-1,e),t,2)}function t4(e,t){return pe(e.getUTCFullYear()%100,t,2)}function r4(e,t){return e=fE(e),pe(e.getUTCFullYear()%100,t,2)}function n4(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function o4(e,t){var r=e.getUTCDay();return e=r>=4||r===0?mo(e):mo.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function i4(){return"+0000"}function Rb(){return"%"}function Db(e){return+e}function $b(e){return Math.floor(+e/1e3)}var Zn,pE,vE;a4({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 a4(e){return Zn=a5(e),pE=Zn.format,Zn.parse,vE=Zn.utcFormat,Zn.utcParse,Zn}function s4(e){return new Date(e)}function l4(e){return e instanceof Date?+e:+new Date(+e)}function nv(e,t,r,n,o,i,a,s,l,c){var u=Wp(),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"),S=c("%Y");function E(P){return(l(P)<P?v:s(P)<P?g:a(P)<P?m:i(P)<P?h:n(P)<P?o(P)<P?b:x:r(P)<P?w:S)(P)}return u.invert=function(P){return new Date(d(P))},u.domain=function(P){return arguments.length?p(Array.from(P,l4)):p().map(s4)},u.ticks=function(P){var O=p();return e(O[0],O[O.length-1],P??10)},u.tickFormat=function(P,O){return O==null?E:c(O)},u.nice=function(P){var O=p();return(!P||typeof P.range!="function")&&(P=t(O[0],O[O.length-1],P??10)),P?p(eE(O,P)):u},u.copy=function(){return $i(u,nv(e,t,r,n,o,i,a,s,l,c))},u}function c4(){return $t.apply(nv(o5,i5,xr,tv,Fl,Li,Qp,Zp,hn,pE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function u4(){return $t.apply(nv(r5,n5,wr,rv,Bl,zl,ev,Jp,hn,vE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Vl(){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(Eo),c.rangeRound=u(Vp),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 mE(){var e=Qr(Vl()(pt));return e.copy=function(){return en(e,mE())},Nr.apply(e,arguments)}function hE(){var e=Hp(Vl()).domain([1,10]);return e.copy=function(){return en(e,hE()).base(e.base())},Nr.apply(e,arguments)}function gE(){var e=Gp(Vl());return e.copy=function(){return en(e,gE()).constant(e.constant())},Nr.apply(e,arguments)}function ov(){var e=qp(Vl());return e.copy=function(){return en(e,ov()).exponent(e.exponent())},Nr.apply(e,arguments)}function d4(){return ov.apply(null,arguments).exponent(.5)}function yE(){var e=[],t=pt;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ri(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)=>X3(e,i/n))},r.copy=function(){return yE(t).domain(e)},Nr.apply(r,arguments)}function Wl(){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=PV(m,[b,x,w]),v):[c(0),c(.5),c(1)]}}return v.range=g(Eo),v.rangeRound=g(Vp),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 bE(){var e=Qr(Wl()(pt));return e.copy=function(){return en(e,bE())},Nr.apply(e,arguments)}function xE(){var e=Hp(Wl()).domain([.1,1,10]);return e.copy=function(){return en(e,xE()).base(e.base())},Nr.apply(e,arguments)}function wE(){var e=Gp(Wl());return e.copy=function(){return en(e,wE()).constant(e.constant())},Nr.apply(e,arguments)}function iv(){var e=qp(Wl());return e.copy=function(){return en(e,iv()).exponent(e.exponent())},Nr.apply(e,arguments)}function f4(){return iv.apply(null,arguments).exponent(.5)}const Yo=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:zp,scaleDiverging:bE,scaleDivergingLog:xE,scaleDivergingPow:iv,scaleDivergingSqrt:f4,scaleDivergingSymlog:wE,scaleIdentity:Q1,scaleImplicit:uf,scaleLinear:J1,scaleLog:tE,scaleOrdinal:Lp,scalePoint:Q3,scalePow:Yp,scaleQuantile:oE,scaleQuantize:iE,scaleRadial:nE,scaleSequential:mE,scaleSequentialLog:hE,scaleSequentialPow:ov,scaleSequentialQuantile:yE,scaleSequentialSqrt:d4,scaleSequentialSymlog:gE,scaleSqrt:HV,scaleSymlog:rE,scaleThreshold:aE,scaleTime:c4,scaleUtc:u4,tickFormat:Z1},Symbol.toStringTag,{value:"Module"}));var Mr=e=>e.chartData,Kl=M([Mr],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),av=(e,t,r,n)=>n?Kl(e):Mr(e),p4=(e,t,r)=>r?Kl(e):Mr(e);function Sr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ce(t)&&ce(r))return!0}return!1}function Lb(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function SE(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(Sr(a))return a}}function v4(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Sr(n))return Lb(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"&&qg.test(o)){var l=qg.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"&&Yg.test(i)){var u=Yg.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(Sr(p))return t==null?p:Lb(p,t,r)}}}var Oo=1e9,m4={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},lv,_e=!0,Dt="[DecimalError] ",Sn=Dt+"Invalid argument: ",sv=Dt+"Exponent out of range: ",Co=Math.floor,fn=Math.pow,h4=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Et,Ge=1e7,Pe=7,PE=9007199254740991,Rs=Co(PE/Pe),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)*Pe;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(Et))throw Error(Dt+"NaN");if(r.s<1)throw Error(Dt+(r.s?"NaN":"-Infinity"));return r.eq(Et)?new n(0):(_e=!1,t=hr(fi(r,i),fi(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?CE(t,e):EE(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 OE(this)};Y.naturalLogarithm=Y.ln=function(){return fi(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?EE(t,e):CE(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(Sn+e);if(t=$e(o)+1,n=o.d.length-1,r=n*Pe+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=Co((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%Ge|0,t=s/Ge|0;i[o]=(i[o]+t)%Ge|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,Oo),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,Oo),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,Oo),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(Et);if(s=new l(s),!s.s){if(e.s<1)throw Error(Dt+"Infinity");return s}if(s.eq(Et))return s;if(n=l.precision,e.eq(Et))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)<=PE){for(o=new l(Et),t=Math.ceil(n/Pe+4),_e=!1;r%2&&(o=o.times(s),Fb(o.d,t)),r=Co(r/2),r!==0;)s=s.times(s),Fb(s.d,t);return _e=!0,e.s<0?new l(Et).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(fi(s,n+c)),_e=!0,o=OE(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,Oo),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,Oo),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 EE(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/Pe),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)/Ge|0,l[i]%=Ge;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(Sn+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=Pe-n.length,r&&(i+=zr(r)),i+=n;a=e[t],n=a+"",r=Pe-n.length,r&&(i+=zr(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%Ge|0,a=i/Ge|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*Ge+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,S,E,P,O,C,N=n.constructor,$=n.s==o.s?1:-1,I=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,O=_.length,E=I.length,v=new N($),g=v.d=[],c=0;_[c]==(I[c]||0);)++c;if(_[c]>(I[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/Pe+2|0,c=0,O==1)for(u=0,_=_[0],x++;(c<E||u)&&x--;c++)w=u*Ge+(I[c]||0),g[c]=w/_|0,u=w%_|0;else{for(u=Ge/(_[0]+1)|0,u>1&&(_=e(_,u),I=e(I,u),O=_.length,E=I.length),S=O,m=I.slice(0,O),h=m.length;h<O;)m[h++]=0;C=_.slice(),C.unshift(0),P=_[0],_[1]>=Ge/2&&++P;do u=0,s=t(_,m,O,h),s<0?(b=m[0],O!=h&&(b=b*Ge+(m[1]||0)),u=b/P|0,u>1?(u>=Ge&&(u=Ge-1),d=e(_,u),p=d.length,h=m.length,s=t(d,m,p,h),s==1&&(u--,r(d,O<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,O,h),s<1&&(u++,r(m,O<h?C:_,h))),h=m.length):s===0&&(u++,m=[0]),g[c++]=u,s&&m[0]?m[h++]=I[S]||0:(m=[I[S]],h=1);while((S++<E||m[0]!==void 0)&&x--)}return g[0]||g.shift(),v.e=l,xe(v,a?i+$e(v)+1:i)}})();function OE(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(sv+$e(e));if(!e.s)return new u(Et);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(Et),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*Pe,r=e.d[0];r>=10;r/=10)t++;return t}function nd(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 zr(e){for(var t="";e--;)t+="0";return t}function fi(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(Et))return new m(0);if(t==null?(_e=!1,c=h):c=t,v.eq(10))return t==null&&(_e=!0),nd(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=nd(m,c+2,h).times(i+""),v=fi(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(Et),v.plus(Et),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(nd(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 zb(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=Co(r/Pe),e.d=[],n=(r+1)%Pe,r<0&&(n+=Pe),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=Pe;n<o;)e.d.push(+t.slice(n,n+=Pe));t=t.slice(n),n=Pe-t.length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),_e&&(e.e>Rs||e.e<-Rs))throw Error(sv+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+=Pe,o=t,c=d[u=0];else{if(u=Math.ceil((n+1)/Pe),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;n%=Pe,o=n-Pe+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,(Pe-t%Pe)%Pe),e.e=Co(-t/Pe)||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,Pe-n),d[u]=o>0?(c/fn(10,a-o)%fn(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==Ge&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=Ge)break;d[u--]=0,i=1}for(n=d.length;d[--n]===0;)d.pop();if(_e&&(e.e>Rs||e.e<-Rs))throw Error(sv+$e(e));return e}function CE(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/Pe),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]=Ge-1;--l[i],l[o]+=Ge}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)+zr(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+zr(-o-1)+i,r&&(n=r-a)>0&&(i+=zr(n))):o>=a?(i+=zr(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+zr(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=zr(n))),e.s<0?"-"+i:i}function Fb(e,t){if(e.length>t)return e.length=t,!0}function AE(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(Sn+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 zb(a,i.toString())}else if(typeof i!="string")throw Error(Sn+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,h4.test(i))zb(a,i);else throw Error(Sn+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=AE,o.config=o.set=g4,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 g4(e){if(!e||typeof e!="object")throw Error(Dt+"Object expected");var t,r,n,o=["precision",1,Oo,"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(Co(n)===n&&n>=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Sn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Sn+r+": "+n);return this}var lv=AE(m4);Et=new lv(1);const he=lv;function _E(e){var t;return e===0?t=1:t=Math.floor(new he(e).abs().log(10).toNumber())+1,t}function TE(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 jE=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},NE=(e,t,r)=>{if(e.lte(0))return new he(0);var n=_E(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()))},y4=(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(_E(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},ME=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=NE(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?ME(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))})},b4=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]=jE([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 y4(s,o,i);var{step:u,tickMin:d,tickMax:p}=ME(s,l,a,i,0),v=TE(d,p.add(new he(.1).mul(u)),u);return r>n?v.reverse():v},x4=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=jE([n,o]);if(a===-1/0||s===1/0)return[n,o];if(a===s)return[a];var l=Math.max(r,2),c=NE(new he(s).sub(a).div(l-1),i,0),u=[...TE(new he(a),new he(s),c),s];return i===!1&&(u=u.map(d=>Math.round(d))),n>o?u.reverse():u},IE=e=>e.rootProps.maxBarSize,w4=e=>e.rootProps.barGap,kE=e=>e.rootProps.barCategoryGap,S4=e=>e.rootProps.barSize,zi=e=>e.rootProps.stackOffset,RE=e=>e.rootProps.reverseStackOrder,cv=e=>e.options.chartName,uv=e=>e.rootProps.syncId,DE=e=>e.rootProps.syncMethod,dv=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"},Ul=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Hl(e,t,r){if(r!=="auto")return r;if(e!=null)return _r(e,t)?"category":"number"}function Bb(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 Ds(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(n){P4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P4(e,t,r){return(t=E4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E4(e){var t=O4(e,"string");return typeof t=="symbol"?t:t+""}function O4(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 Vb={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},Wb={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},C4=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},fv=M([C4,w1],(e,t)=>{var r;if(e!=null)return e;var n=(r=Hl(t,"angleAxis",Vb.type))!==null&&r!==void 0?r:"category";return Ds(Ds({},Vb),{},{type:n})}),A4=(e,t)=>e.polarAxis.radiusAxis[t],pv=M([A4,w1],(e,t)=>{var r;if(e!=null)return e;var n=(r=Hl(t,"radiusAxis",Wb.type))!==null&&r!==void 0?r:"category";return Ds(Ds({},Wb),{},{type:n})}),Gl=e=>e.polarOptions,vv=M([Tr,jr,Ve],L1),$E=M([Gl,vv],(e,t)=>{if(e!=null)return at(e.innerRadius,t,0)}),LE=M([Gl,vv],(e,t)=>{if(e!=null)return at(e.outerRadius,t,t*.8)}),_4=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},zE=M([Gl],_4);M([fv,zE],Ul);var FE=M([vv,$E,LE],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});M([pv,FE],Ul);var BE=M([ve,Gl,$E,LE,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:at(a,o,o/2),cy:at(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),je=(e,t)=>t,Fi=(e,t,r)=>r;function mv(e){return e?.id}function VE(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=mv(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 ql(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Yl=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Xl(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"},Ao=e=>e.tooltip.settings.axisId;function j4(e){if(e in Yo)return Yo[e]();var t="scale".concat(Ei(e));if(t in Yo)return Yo[t]()}function Kb(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 Ub(e,t,r){if(typeof e=="function")return Kb(e.copy().domain(t).range(r));if(e!=null){var n=j4(e);if(n!=null)return n.domain(t).range(r),Kb(n)}}var WE=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Sr(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 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 $s(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){N4(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 N4(e,t,r){return(t=M4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M4(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 vf=[0,"auto"],Ue={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},KE=(e,t)=>e.cartesianAxis.xAxis[t],Ir=(e,t)=>{var r=KE(e,t);return r??Ue},He={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:vf,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:ji},UE=(e,t)=>e.cartesianAxis.yAxis[t],kr=(e,t)=>{var r=UE(e,t);return r??He},k4={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:""},hv=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??k4},ke=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"zAxis":return hv(e,r);case"angleAxis":return fv(e,r);case"radiusAxis":return pv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},R4=(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))}},_o=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"angleAxis":return fv(e,r);case"radiusAxis":return pv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},HE=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function gv(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 Zl=e=>e.graphicalItems.cartesianItems,D4=M([je,Fi],gv),yv=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Bi=M([Zl,ke,D4],yv,{memoizeOptions:{resultEqualityCheck:Xl}}),GE=M([Bi],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(ql)),qE=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),$4=M([Bi],qE),bv=e=>e.map(t=>t.data).filter(Boolean).flat(1),L4=M([Bi],bv,{memoizeOptions:{resultEqualityCheck:Xl}}),xv=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},wv=M([L4,av],xv),Sv=(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})),Jl=M([wv,ke,Bi],Sv);function YE(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Ga(e){if(ir(e)||e instanceof Date){var t=Number(e);if(ce(t))return t}}function Gb(e){if(Array.isArray(e)){var t=[Ga(e[0]),Ga(e[1])];return Sr(t)?t:void 0}var r=Ga(e);if(r!=null)return[r,r]}function Pr(e){return e.map(Ga).filter(yt)}function z4(e,t,r){return!r||typeof t!="number"||or(t)?[]:r.length?Pr(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 Ke=e=>{var t=Je(e),r=Ao(e);return _o(e,t,r)},Vi=M([Ke],e=>e?.dataKey),F4=M([GE,av,Ke],VE),XE=(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(mv);return[s,{stackedData:iF(e,u,r),graphicalItems:c}]}))},mf=M([F4,GE,zi,RE],XE),ZE=(e,t,r,n)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var a=uF(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},B4=M([ke],e=>e.allowDataOverflow),Pv=e=>{var t;if(e==null||!("domain"in e))return vf;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Pr(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:vf},Ev=M([ke],Pv),Ov=M([Ev,B4],SE),V4=M([mf,Mr,je,Ov],ZE,{memoizeOptions:{resultEqualityCheck:Yl}}),Ql=e=>e.errorBars,W4=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>YE(r,n)),Ls=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]}},Cv=(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=>YE(o,b)),p=be(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),v=z4(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=Gb(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=Gb(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]},K4=M([wv,ke,$4,Ql,je],Cv,{memoizeOptions:{resultEqualityCheck:Yl}});function U4(e){var{value:t}=e;if(ir(t)||t instanceof Date)return t}var H4=(e,t,r)=>{var n=e.map(U4).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&fP(n))?V1(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},JE=e=>e.referenceElements.dots,To=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),G4=M([JE,je,Fi],To),QE=e=>e.referenceElements.areas,q4=M([QE,je,Fi],To),eO=e=>e.referenceElements.lines,Y4=M([eO,je,Fi],To),tO=(e,t)=>{if(e!=null){var r=Pr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},X4=M(G4,je,tO),rO=(e,t)=>{if(e!=null){var r=Pr(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)]}},Z4=M([q4,je],rO);function J4(e){var t;if(e.x!=null)return Pr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Pr(r)}function Q4(e){var t;if(e.y!=null)return Pr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Pr(r)}var nO=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?J4(n):Q4(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},eW=M([Y4,je],nO),tW=M(X4,eW,Z4,(e,t,r)=>Ls(e,r,t)),Av=(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?Ls(n,i,o):Ls(i,o);return v4(t,c,e.allowDataOverflow)},rW=M([ke,Ev,Ov,V4,K4,tW,ve,je],Av,{memoizeOptions:{resultEqualityCheck:Yl}}),nW=[0,1],_v=(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 V1(0,(u=r?.length)!==null&&u!==void 0?u:0)}return l==="category"?H4(n,e,c):o==="expand"?nW:a}},Tv=M([ke,ve,wv,Jl,zi,je,rW],_v);function oW(e){return e in Yo}var oO=(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(Ei(n));return oW(i)?i:"point"}}},tn=M([ke,HE,cv],oO);function jv(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?Ub(e.scale,r,n):Ub(t,r,n)}var Nv=(e,t,r)=>{var n=Pv(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Sr(e))return b4(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Sr(e))return x4(e,t.tickCount,t.allowDecimals)}},Mv=M([Tv,_o,tn],Nv),Iv=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Sr(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},iW=M([ke,Tv,Mv,je],Iv),aW=M(Jl,ke,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Pr(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}}),iO=M(aW,ve,kE,Ve,(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=at(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),sW=(e,t,r)=>{var n=Ir(e,t);return n==null||typeof n.padding!="string"?0:iO(e,"xAxis",t,r,n.padding)},lW=(e,t,r)=>{var n=kr(e,t);return n==null||typeof n.padding!="string"?0:iO(e,"yAxis",t,r,n.padding)},cW=M(Ir,sW,(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}}),uW=M(kr,lW,(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}}),dW=M([Ve,cW,Nl,jl,(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]}),fW=M([Ve,ve,uW,Nl,jl,(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]}),Wi=(e,t,r,n)=>{var o;switch(t){case"xAxis":return dW(e,r,n);case"yAxis":return fW(e,r,n);case"zAxis":return(o=hv(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return zE(e);case"radiusAxis":return FE(e,r);default:return}},aO=M([ke,Wi],Ul),pW=M([tn,iW],WE),ec=M([ke,tn,pW,aO],jv);M([Bi,Ql,je],W4);function sO(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var tc=(e,t)=>t,rc=(e,t,r)=>r,vW=M(_l,tc,rc,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(sO)),mW=M(Tl,tc,rc,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(sO)),lO=(e,t)=>({width:e.width,height:t.height}),hW=(e,t)=>{var r=typeof t.width=="number"?t.width:ji;return{width:r,height:e.height}},cO=M(Ve,Ir,lO),gW=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},yW=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},bW=M(jr,Ve,vW,tc,rc,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=lO(t,s);a==null&&(a=gW(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}),xW=M(Tr,Ve,mW,tc,rc,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=hW(t,s);a==null&&(a=yW(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}),wW=(e,t)=>{var r=Ir(e,t);if(r!=null)return bW(e,r.orientation,r.mirror)},SW=M([Ve,Ir,wW,(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}}}),PW=(e,t)=>{var r=kr(e,t);if(r!=null)return xW(e,r.orientation,r.mirror)},EW=M([Ve,kr,PW,(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}}}),uO=M(Ve,kr,(e,t)=>{var r=typeof t.width=="number"?t.width:ji;return{width:r,height:e.height}}),qb=(e,t,r)=>{switch(t){case"xAxis":return cO(e,r).width;case"yAxis":return uO(e,r).height;default:return}},dO=(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&&fP(l))return l}},kv=M([ve,Jl,ke,je],dO),fO=(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)}},Rv=M([ve,Jl,_o,je],fO),Yb=M([ve,R4,tn,ec,kv,Rv,Wi,Mv,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}}}),OW=(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?qe(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)}},pO=M([ve,_o,tn,ec,Mv,Wi,kv,Rv,je],OW),CW=(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?qe(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=M([ve,_o,ec,Wi,kv,Rv,je],CW),Gr=M(ke,ec,(e,t)=>{if(!(e==null||t==null))return $s($s({},e),{},{scale:t})}),AW=M([ke,tn,Tv,aO],jv);M((e,t,r)=>hv(e,r),AW,(e,t)=>{if(!(e==null||t==null))return $s($s({},e),{},{scale:t})});var _W=M([ve,_l,Tl],(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}}),vO=e=>e.options.defaultTooltipEventType,mO=e=>e.options.validateTooltipEventTypes;function hO(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Dv(e,t){var r=vO(e),n=mO(e);return hO(t,r,n)}function TW(e){return J(t=>Dv(t,e))}var gO=(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},jW=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}},yO=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:MW,replaceTooltipEntrySettings:IW,removeTooltipEntrySettings:kW,setTooltipSettingsState:RW,setActiveMouseOverItemIndex:bO,mouseLeaveItem:DW,mouseLeaveChart:xO,setActiveClickItemIndex:$W,setMouseOverAxisIndex:wO,setMouseClickAxisIndex:LW,setSyncInteraction:hf,setKeyboardInteraction:gf}=yO.actions,zW=yO.reducer;function Xb(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?Xb(Object(r),!0).forEach(function(n){FW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FW(e,t,r){return(t=BW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BW(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 WW(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function KW(e){return e.index!=null}var SO=(e,t,r,n)=>{if(t==null)return Br;var o=WW(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(KW(o)){if(i)return Na(Na({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Na(Na({},Br),{},{coordinate:o.coordinate})};function UW(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 HW(e,t){var r=UW(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 GW(e,t,r){if(r==null||t==null)return!0;var n=be(e,t);return n==null||!Sr(r)?!0:HW(n,r)}var $v=(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||GW(c,r,n)?String(l):null},PO=(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}}},EO=(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})},OO=e=>e.options.tooltipPayloadSearcher,jo=e=>e.tooltip;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 Jb(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){qW(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 qW(e,t,r){return(t=YW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YW(e){var t=XW(e,"string");return typeof t=="symbol"?t:t+""}function XW(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 ZW(e,t){return e??t}var CO=(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=ZW(m,s),x=Array.isArray(b)?u1(b,c,u):b,w=(g=h?.dataKey)!==null&&g!==void 0?g:n,S=h?.nameKey,E;if(n&&Array.isArray(x)&&!Array.isArray(x[0])&&a==="axis"?E=pP(x,n,o):E=i(x,t,l,S),Array.isArray(E))E.forEach(O=>{var C=Jb(Jb({},h),{},{name:O.name,unit:O.unit,color:void 0,fill:void 0});p.push(Xg({tooltipEntrySettings:C,dataKey:O.dataKey,payload:O.payload,value:be(O.payload,O.dataKey),name:O.name}))});else{var P;p.push(Xg({tooltipEntrySettings:h,dataKey:w,payload:E,value:be(E,w),name:(P=be(E,S))!==null&&P!==void 0?P:h?.name}))}return p},d)}},Lv=M([Ke,HE,cv],oO),JW=M([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),QW=M([Je,Ao],gv),No=M([JW,Ke,QW],yv,{memoizeOptions:{resultEqualityCheck:Xl}}),e6=M([No],e=>e.filter(ql)),t6=M([No],bv,{memoizeOptions:{resultEqualityCheck:Xl}}),Mo=M([t6,Mr],xv),r6=M([e6,Mr,Ke],VE),zv=M([Mo,Ke,No],Sv),AO=M([Ke],Pv),n6=M([Ke],e=>e.allowDataOverflow),_O=M([AO,n6],SE),o6=M([No],e=>e.filter(ql)),i6=M([r6,o6,zi,RE],XE),a6=M([i6,Mr,Je,_O],ZE),s6=M([No],qE),l6=M([Mo,Ke,s6,Ql,Je],Cv,{memoizeOptions:{resultEqualityCheck:Yl}}),c6=M([JE,Je,Ao],To),u6=M([c6,Je],tO),d6=M([QE,Je,Ao],To),f6=M([d6,Je],rO),p6=M([eO,Je,Ao],To),v6=M([p6,Je],nO),m6=M([u6,v6,f6],Ls),h6=M([Ke,AO,_O,a6,l6,m6,ve,Je],Av),Ki=M([Ke,ve,Mo,zv,zi,Je,h6],_v),g6=M([Ki,Ke,Lv],Nv),y6=M([Ke,Ki,g6,Je],Iv),TO=e=>{var t=Je(e),r=Ao(e),n=!1;return Wi(e,t,r,n)},jO=M([Ke,TO],Ul),NO=M([Ke,Lv,y6,jO],jv),b6=M([ve,zv,Ke,Je],dO),x6=M([ve,zv,Ke,Je],fO),w6=(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?qe(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=M([ve,Ke,Lv,NO,TO,b6,x6,Je],w6),Fv=M([vO,mO,jW],(e,t,r)=>hO(r.shared,e,t)),MO=e=>e.tooltip.settings.trigger,Bv=e=>e.tooltip.settings.defaultIndex,Ui=M([jo,Fv,MO,Bv],SO),qr=M([Ui,Mo,Vi,Ki],$v),IO=M([Rr,qr],gO),Vv=M([Ui],e=>{if(e)return e.dataKey}),S6=M([Ui],e=>{if(e)return e.graphicalItemId}),kO=M([jo,Fv,MO,Bv],EO),P6=M([Tr,jr,ve,Ve,Rr,Bv,kO],PO),E6=M([Ui,P6],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),O6=M([Ui],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),C6=M([kO,qr,Mr,Vi,IO,OO,Fv],CO),A6=M([C6],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(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 ex(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){_6(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 _6(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=j6(e,"string");return typeof t=="symbol"?t:t+""}function j6(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(Ke),M6=()=>{var e=N6(),t=J(Rr),r=J(NO);return co(!e||!r?void 0:ex(ex({},e),{},{scale:r}),t)};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 Jn(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){I6(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 I6(e,t,r){return(t=k6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k6(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 D6=(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}},$6=(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 L6(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 RO=(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(qe(g-v)!==qe(m-g)){var b=[];if(qe(m-g)===qe(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 S=[Math.min(g,(h+g)/2),Math.max(g,(h+g)/2)];if(e>S[0]&&e<=S[1]||e>=b[0]&&e<=b[1]){var E;return(E=r[s])===null||E===void 0?void 0:E.index}}else{var P=Math.min(v,m),O=Math.max(v,m);if(e>(P+g)/2&&e<=(O+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 $=t[N];if($!=null){var I=t[N+1],_=t[N-1];if(N===0&&I!=null&&e<=($.coordinate+I.coordinate)/2||N===a-1&&_!=null&&e>($.coordinate+_.coordinate)/2||N>0&&N<a-1&&_!=null&&I!=null&&e>($.coordinate+_.coordinate)/2&&e<=($.coordinate+I.coordinate)/2)return $.index}}return-1},z6=()=>J(cv),Wv=(e,t)=>t,DO=(e,t,r)=>r,Kv=(e,t,r,n)=>n,F6=M(Rr,e=>bl(e,t=>t.coordinate)),Uv=M([jo,Wv,DO,Kv],SO),Hv=M([Uv,Mo,Vi,Ki],$v),B6=(e,t,r)=>{if(t!=null){var n=jo(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},$O=M([jo,Wv,DO,Kv],EO),zs=M([Tr,jr,ve,Ve,Rr,Kv,$O],PO),V6=M([Uv,zs],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),LO=M([Rr,Hv],gO),W6=M([$O,Hv,Mr,Vi,LO,OO,Wv],CO),K6=M([Uv,Hv],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),U6=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&L6(e,a)){var s=dF(e,t),l=RO(s,i,o,r,n),c=D6(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},H6=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=T3(e,r);if(s){var l=fF(s,t),c=RO(l,a,i,n,o),u=$6(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},G6=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?U6(e,t,n,o,i,a,s):H6(e,t,r,n,o,i,a)},q6=M(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}}),Y6=M(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 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){X6(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 X6(e,t,r){return(t=Z6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z6(e){var t=J6(e,"string");return typeof t=="symbol"?t:t+""}function J6(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 Q6={},eK={zIndexMap:Object.values(De).reduce((e,t)=>nx(nx({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Q6)},tK=new Set(Object.values(De));function rK(e){return tK.has(e)}var zO=xt({name:"zIndex",initialState:eK,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&&!rK(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:nK,unregisterZIndexPortal:oK,registerZIndexPortalElement:iK,unregisterZIndexPortalElement:aK}=zO.actions,sK=zO.reducer;function wt(e){var{zIndex:t,children:r}=e,n=WF(),o=n&&t!==void 0&&t!==0,i=ct(),a=Se();A.useLayoutEffect(()=>o?(a(nK({zIndex:t})),()=>{a(oK({zIndex:t}))}):zn,[a,t,o]);var s=J(l=>q6(l,t,i));return o?s?xi.createPortal(r,s):null:r}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)}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 Ma(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){lK(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 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){var{cursor:t,cursorComp:r,cursorProps:n}=e;return A.isValidElement(t)?A.cloneElement(t,n):A.createElement(r,n)}function fK(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=WB,h=De.cursorLine;else if(u==="BarChart")g=KB(s,d,i,a),m=$1,h=De.cursorRectangle;else if(s==="radial"&&mP(d)){var{cx:b,cy:x,radius:w,startAngle:S,endAngle:E}=z1(d);g={cx:b,cy:x,startAngle:S,endAngle:E,innerRadius:w,outerRadius:w},m=B1,h=De.cursorLine}else g={points:I3(s,d,i)},m=Dp,h=De.cursorLine;var P=typeof l=="object"&&"className"in l?l.className:void 0,O=Ma(Ma(Ma(Ma({stroke:"#ccc",pointerEvents:"none"},i),g),En(l)),{},{payload:p,payloadIndex:v,className:de("recharts-tooltip-cursor",P)});return f.createElement(wt,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:h},f.createElement(dK,{cursor:l,cursorComp:m,cursorProps:O}))}function pK(e){var t=M6(),r=b1(),n=Fn(),o=z6();return t==null||r==null||n==null||o==null?null:f.createElement(fK,yf({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:o}))}var FO=A.createContext(null),vK=()=>A.useContext(FO),od={exports:{}},ix;function mK(){return ix||(ix=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 S=h.length,E;for(w=0;w<S;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(E=1,x=new Array(b-1);E<b;E++)x[E-1]=arguments[E];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})(od)),od.exports}var hK=mK();const gK=Jr(hK);var pi=new gK,bf="recharts.syncEvent.tooltip",ax="recharts.syncEvent.brush",Gv=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!or(r))return e[r]}},yK={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},BO=xt({name:"options",initialState:yK,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),bK=BO.reducer,{createEventEmitter:xK}=BO.actions;function wK(e){return e.tooltip.syncInteraction}var SK={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},VO=xt({name:"chartData",initialState:SK,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:sx,setDataStartEndIndexes:PK,setComputedData:dre}=VO.actions,EK=VO.reducer,OK=["x","y"];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 Qn(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){CK(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 CK(e,t,r){return(t=AK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AK(e){var t=_K(e,"string");return typeof t=="symbol"?t:t+""}function _K(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=jK(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 jK(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(uv),t=J(dv),r=Se(),n=J(DE),o=J(Rr),i=Fn(),a=Ml(),s=J(l=>l.rootProps.className);A.useEffect(()=>{if(e==null)return zn;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,OK),{x:b,y:x,width:w,height:S}=u.payload.sourceViewBox,E=Qn(Qn({},h),{},{x:a.x+(w?(g-b)/w:0)*a.width,y:a.y+(S?(m-x)/S:0)*a.height});r(Qn(Qn({},u),{},{payload:Qn(Qn({},u.payload),{},{coordinate:E})}))}else r(u);return}if(o!=null){var P;if(typeof n=="function"){var O={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,O);P=o[C]}else n==="value"&&(P=o.find(F=>String(F.value)===u.payload.label));var{coordinate:N}=u.payload;if(P==null||u.payload.active===!1||N==null||a==null){r(hf({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:$,y:I}=N,_=Math.min($,a.x+a.width),j=Math.min(I,a.y+a.height),R={x:i==="horizontal"?P.coordinate:_,y:i==="horizontal"?j:P.coordinate},V=hf({active:u.payload.active,coordinate:R,dataKey:u.payload.dataKey,index:String(P.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(V)}}};return pi.on(bf,l),()=>{pi.off(bf,l)}},[s,r,t,e,n,o,i,a])}function MK(){var e=J(uv),t=J(dv),r=Se();A.useEffect(()=>{if(e==null)return zn;var n=(o,i,a)=>{t!==a&&e===o&&r(PK(i))};return pi.on(ax,n),()=>{pi.off(ax,n)}},[r,t,e])}function IK(){var e=Se();A.useEffect(()=>{e(xK())},[e]),NK(),MK()}function kK(e,t,r,n,o,i){var a=J(v=>B6(v,e,t)),s=J(dv),l=J(uv),c=J(DE),u=J(wK),d=u?.active,p=Ml();A.useEffect(()=>{if(!d&&l!=null&&s!=null){var v=hf({active:i,coordinate:r,dataKey:a,index:o,label:typeof n=="number"?String(n):n,sourceViewBox:p,graphicalItemId:void 0});pi.emit(bf,l,v,s)}},[d,r,a,o,n,s,l,c,i,p])}function cx(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 ux(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cx(Object(r),!0).forEach(function(n){RK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RK(e,t,r){return(t=DK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DK(e){var t=$K(e,"string");return typeof t=="symbol"?t:t+""}function $K(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 LK(e){return e.dataKey}function zK(e,t){return f.isValidElement(e)?f.cloneElement(e,t):typeof e=="function"?f.createElement(e,t):f.createElement(SB,t)}var dx=[],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 qv(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:S,portal:E,axisId:P}=n,O=Se(),C=typeof S=="number"?String(S):S;A.useEffect(()=>{O(RW({shared:x,trigger:w,axisId:P,active:o,defaultIndex:C}))},[O,x,w,P,o,C]);var N=Ml(),$=M1(),I=TW(x),{activeIndex:_,isActive:j}=(t=J(K=>K6(K,I,w,C)))!==null&&t!==void 0?t:{},R=J(K=>W6(K,I,w,C)),V=J(K=>LO(K,I,w,C)),F=J(K=>V6(K,I,w,C)),W=R,T=vK(),k=(r=o??j)!==null&&r!==void 0?r:!1,[G,ee]=jP([W,k]),ne=I==="axis"?V:void 0;kK(I,w,F,ne,_,k);var ie=E??T;if(ie==null||N==null||I==null)return null;var oe=W??dx;k||(oe=dx),c&&oe.length&&(oe=EP(oe.filter(K=>K.value!=null&&(K.hide!==!0||n.includeHidden)),p,LK));var le=oe.length>0,Oe=f.createElement(TB,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:k,coordinate:F,hasPayload:le,offset:d,position:v,reverseDirection:g,useTranslate3d:m,viewBox:N,wrapperStyle:h,lastBoundingBox:G,innerRef:ee,hasPortalFromProps:!!E},zK(l,ux(ux({},n),{},{payload:oe,label:ne,active:k,activeIndex:_,coordinate:F,accessibilityLayer:$})));return f.createElement(f.Fragment,null,xi.createPortal(Oe,ie),k&&f.createElement(pK,{cursor:b,tooltipEventType:I,coordinate:F,payload:oe,index:_}))}var Hi=e=>null;Hi.displayName="Cell";function BK(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=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)}class KK{constructor(t){BK(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 fx(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 UK(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fx(Object(r),!0).forEach(function(n){HK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HK(e,t,r){return(t=GK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GK(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)}var YK={cacheSize:2e3,enableCache:!0},WO=UK({},YK),px=new KK(WO.cacheSize),XK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},vx="recharts_measurement_span";function ZK(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 mx=(e,t)=>{try{var r=document.getElementById(vx);r||(r=document.createElement("span"),r.setAttribute("id",vx),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,XK,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Qo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||$l.isSsr)return{width:0,height:0};if(!WO.enableCache)return mx(t,r);var n=ZK(t,r),o=px.get(n);if(o)return o;var i=mx(t,r);return px.set(n,i),i},KO;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)}var hx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,tU=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,rU=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,nU={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},oU=["cm","mm","pt","pc","in","Q","px"];function iU(e){return oU.includes(e)}var to="NaN";function aU(e,t){return e*nU[t]}class rt{static parse(t){var r,[,n,o]=(r=rU.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!==""&&!tU.test(r)&&(this.num=NaN,this.unit=""),iU(r)&&(this.num=aU(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)}}KO=rt;JK(rt,"NaN",new KO(NaN,""));function UO(e){if(e==null||e.includes(to))return to;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=hx.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(hx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,p]=(c=gx.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(gx,m.toString())}return t}var yx=/\(([^()]*)\)/;function sU(e){for(var t=e,r;(r=yx.exec(t))!=null;){var[,n]=r;t=t.replace(yx,UO(n))}return t}function lU(e){var t=e.replace(/\s+/g,"");return t=sU(t),t=UO(t),t}function cU(e){try{return lU(e)}catch{return to}}function id(e){var t=cU(e.slice(5,-1));return t===to?"":t}var uU=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],dU=["dx","dy","angle","className","breakAll"];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 bx(e,t){if(e==null)return{};var r,n,o=fU(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 fU(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 HO=/[ \f\n\r\t\v\u2028\u2029]+/,GO=e=>{var{children:t,breakAll:r,style:n}=e;try{var o=[];Te(t)||(r?o=t.toString().split(""):o=t.toString().split(HO));var i=o.map(s=>({word:s,width:Qo(s,n).width})),a=r?0:Qo(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function pU(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var qO=(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},[]),YO=e=>e.reduce((t,r)=>t.width>r.width?t:r),vU="…",xx=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=GO({breakAll:r,style:n,children:l+vU});if(!c)return[!1,[]];var u=qO(c.wordsWithComputedWidth,i,a,s),d=u.length>o||YO(u).width>Number(i);return[d,u]},mU=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=q(i),u=String(a),d=qO(t,n,r,o);if(!c||o)return d;var p=d.length>i||YO(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,S]=xx(u,x,l,s,i,n,r,o),[E]=xx(u,b,l,s,i,n,r,o);if(!w&&!E&&(v=b+1),w&&E&&(g=b-1),!w&&E){h=S;break}m++}return h||d},wx=e=>{var t=Te(e)?[]:e.toString().split(HO);return[{words:t,width:void 0}]},hU=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!$l.isSsr){var s,l,c=GO({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;s=u,l=d}else return wx(n);return mU({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return wx(n)},XO="#808080",gU={angle:0,breakAll:!1,capHeight:"0.71em",fill:XO,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},nc=A.forwardRef((e,t)=>{var r=Le(e,gU),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,d=bx(r,uU),p=A.useMemo(()=>hU({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=bx(d,dU);if(!ir(n)||!ir(o)||p.length===0)return null;var w=Number(n)+(q(v)?v:0),S=Number(o)+(q(g)?g:0);if(!ce(w)||!ce(S))return null;var E;switch(u){case"start":E=id("calc(".concat(a,")"));break;case"middle":E=id("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:E=id("calc(".concat(p.length-1," * -").concat(i,")"));break}var P=[],O=p[0];if(l&&O!=null){var C=O.width,{width:N}=d;P.push("scale(".concat(q(N)&&q(C)?N/C:1,")"))}return m&&P.push("rotate(".concat(m,", ").concat(w,", ").concat(S,")")),P.length&&(x.transform=P.join(" ")),f.createElement("text",xf({},mt(x),{ref:t,x:w,y:S,className:de("recharts-text",h),textAnchor:c,fill:s.includes("url")?XO:s}),p.map(($,I)=>{var _=$.words.join(b?"":" ");return f.createElement("tspan",{x:w,dy:I===0?E:i,key:"".concat(_,"-").concat(I)},_)}))});nc.displayName="Text";function Sx(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?Sx(Object(r),!0).forEach(function(n){yU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yU(e,t,r){return(t=bU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bU(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)}var wU=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:o}=e,{x:i,y:a,height:s,upperWidth:l,lowerWidth:c}=Np(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,S=w*n,E=w>0?"end":"start",P=w>0?"start":"end",O=o;if(r==="top"){var C={x:u+l/2,y:a-h,horizontalAnchor:"middle",verticalAnchor:b};return O&&(C.height=Math.max(a-O.y,0),C.width=l),C}if(r==="bottom"){var N={x:d+c/2,y:a+s+h,horizontalAnchor:"middle",verticalAnchor:x};return O&&(N.height=Math.max(O.y+O.height-(a+s),0),N.width=c),N}if(r==="left"){var $={x:p-S,y:a+s/2,horizontalAnchor:E,verticalAnchor:"middle"};return O&&($.width=Math.max($.x-O.x,0),$.height=s),$}if(r==="right"){var I={x:p+v+S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"};return O&&(I.width=Math.max(O.x+O.width-I.x,0),I.height=s),I}var _=O?{width:v,height:s}:{};return r==="insideLeft"?Xt({x:p+S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"},_):r==="insideRight"?Xt({x:p+v-S,y:a+s/2,horizontalAnchor:E,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+S,y:a+h,horizontalAnchor:P,verticalAnchor:x},_):r==="insideTopRight"?Xt({x:u+l-S,y:a+h,horizontalAnchor:E,verticalAnchor:x},_):r==="insideBottomLeft"?Xt({x:d+S,y:a+s-h,horizontalAnchor:P,verticalAnchor:b},_):r==="insideBottomRight"?Xt({x:d+c-S,y:a+s-h,horizontalAnchor:E,verticalAnchor:b},_):r&&typeof r=="object"&&(q(r.x)||An(r.x))&&(q(r.y)||An(r.y))?Xt({x:i+at(r.x,v),y:a+at(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},_):Xt({x:g,y:a+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},_)},SU=["labelRef"],PU=["content"];function Px(e,t){if(e==null)return{};var r,n,o=EU(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 EU(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 Ex(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 Xo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ex(Object(r),!0).forEach(function(n){OU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ex(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OU(e,t,r){return(t=CU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CU(e){var t=AU(e,"string");return typeof t=="symbol"?t:t+""}function AU(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 ZO=A.createContext(null),_U=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(ZO.Provider,{value:l},s)},JO=()=>{var e=A.useContext(ZO),t=Ml();return e||(t?Np(t):void 0)},TU=A.createContext(null),jU=()=>{var e=A.useContext(TU),t=J(BE);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},Yv=e=>e!=null&&typeof e=="function",MU=(e,t)=>{var r=qe(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=MU(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),S=Re(s,l,g,b+(x?1:-1)*359),E="M".concat(w.x,",").concat(w.y,`
98
+ A`,",",",0,0,",",",",","Z"])),O.x,O.y,i,i,+(u<0),P.x,P.y,n,n,+(N>180),+(u>0),w.x,w.y,i,i,+(u<0),S.x,S.y)}else x+=Me(Zy||(Zy=mn(["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},V1=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=at(a,v,0,!0),m;return g>0&&Math.abs(c-u)<360?m=M3({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,v/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=B1({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),f.createElement("path",sf({},mt(t),{className:p,d:m}))};function k3(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(hP(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 F1(t)}}var Gu={},qu={},Yu={},Jy;function R3(){return Jy||(Jy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_P();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(Yu)),Yu}var Qy;function D3(){return Qy||(Qy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=R3();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})(qu)),qu}var eb;function $3(){return eb||(eb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TP(),r=D3();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})(Gu)),Gu}var Xu,tb;function L3(){return tb||(tb=1,Xu=$3().range),Xu}var z3=L3();const W1=Jr(z3);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 Lp(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:B3,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 B3(){return 0}function K1(e){return e===null?NaN:+e}function*V3(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const W3=Lp(Wr),Di=W3.right;Lp(K1).center;class rb extends Map{constructor(t,r=H3){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(nb(this,t))}has(t){return super.has(nb(this,t))}set(t,r){return super.set(K3(this,t),r)}delete(t){return super.delete(U3(this,t))}}function nb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function K3({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function U3({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function H3(e){return e!==null&&typeof e=="object"?e.valueOf():e}function G3(e=Wr){if(e===Wr)return U1;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 U1(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const q3=Math.sqrt(50),Y3=Math.sqrt(10),X3=Math.sqrt(2);function Cs(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>=q3?10:i>=Y3?5:i>=X3?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?Cs(e,t,r*2):[s,l,c]}function lf(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?Cs(t,e,r):Cs(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 cf(e,t,r){return t=+t,e=+e,r=+r,Cs(e,t,r)[2]}function uf(e,t,r){t=+t,e=+e,r=+r;const n=t<e,o=n?cf(t,e,r):cf(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}function ob(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ib(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function H1(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?U1:G3(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));H1(e,t,v,g,o)}const i=e[t];let a=r,s=n;for(Wo(e,r,t),o(e[n],i)>0&&Wo(e,r,n);a<s;){for(Wo(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[r],i)===0?Wo(e,r,s):(++s,Wo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Wo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Z3(e,t,r){if(e=Float64Array.from(V3(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ib(e);if(t>=1)return ob(e);var n,o=(n-1)*t,i=Math.floor(o),a=ob(H1(e,i).subarray(0,i+1)),s=ib(e.subarray(i+1));return a+(s-a)*(o-i)}}function J3(e,t,r=K1){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 Q3(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 df=Symbol("implicit");function zp(){var e=new rb,t=[],r=[],n=df;function o(i){let a=e.get(i);if(a===void 0){if(n!==df)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 rb;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 zp(t,r).unknown(n)},$t.apply(o,arguments),o}function Fp(){var e=zp().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=Q3(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 Fp(t(),[n,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},$t.apply(d(),arguments)}function G1(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return G1(t())},e}function eV(){return G1(Fp.apply(null,arguments).paddingInner(1))}function Bp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function q1(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function $i(){}var ci=.7,As=1/ci,so="\\s*([+-]?\\d+)\\s*",ui="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tV=/^#([0-9a-f]{3,8})$/,rV=new RegExp(`^rgb\\(${so},${so},${so}\\)$`),nV=new RegExp(`^rgb\\(${rr},${rr},${rr}\\)$`),oV=new RegExp(`^rgba\\(${so},${so},${so},${ui}\\)$`),iV=new RegExp(`^rgba\\(${rr},${rr},${rr},${ui}\\)$`),aV=new RegExp(`^hsl\\(${ui},${rr},${rr}\\)$`),sV=new RegExp(`^hsla\\(${ui},${rr},${rr},${ui}\\)$`),ab={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};Bp($i,di,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sb,formatHex:sb,formatHex8:lV,formatHsl:cV,formatRgb:lb,toString:lb});function sb(){return this.rgb().formatHex()}function lV(){return this.rgb().formatHex8()}function cV(){return Y1(this).formatHsl()}function lb(){return this.rgb().formatRgb()}function di(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=tV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?cb(t):r===3?new bt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ta(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ta(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=rV.exec(e))?new bt(t[1],t[2],t[3],1):(t=nV.exec(e))?new bt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=oV.exec(e))?Ta(t[1],t[2],t[3],t[4]):(t=iV.exec(e))?Ta(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aV.exec(e))?fb(t[1],t[2]/100,t[3]/100,1):(t=sV.exec(e))?fb(t[1],t[2]/100,t[3]/100,t[4]):ab.hasOwnProperty(e)?cb(ab[e]):e==="transparent"?new bt(NaN,NaN,NaN,0):null}function cb(e){return new bt(e>>16&255,e>>8&255,e&255,1)}function Ta(e,t,r,n){return n<=0&&(e=t=r=NaN),new bt(e,t,r,n)}function uV(e){return e instanceof $i||(e=di(e)),e?(e=e.rgb(),new bt(e.r,e.g,e.b,e.opacity)):new bt}function ff(e,t,r,n){return arguments.length===1?uV(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}Bp(bt,ff,q1($i,{brighter(e){return e=e==null?As:Math.pow(As,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ci:Math.pow(ci,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(Sn(this.r),Sn(this.g),Sn(this.b),_s(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:ub,formatHex:ub,formatHex8:dV,formatRgb:db,toString:db}));function ub(){return`#${hn(this.r)}${hn(this.g)}${hn(this.b)}`}function dV(){return`#${hn(this.r)}${hn(this.g)}${hn(this.b)}${hn((isNaN(this.opacity)?1:this.opacity)*255)}`}function db(){const e=_s(this.opacity);return`${e===1?"rgb(":"rgba("}${Sn(this.r)}, ${Sn(this.g)}, ${Sn(this.b)}${e===1?")":`, ${e})`}`}function _s(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hn(e){return e=Sn(e),(e<16?"0":"")+e.toString(16)}function fb(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ft(e,t,r,n)}function Y1(e){if(e instanceof Ft)return new Ft(e.h,e.s,e.l,e.opacity);if(e instanceof $i||(e=di(e)),!e)return new Ft;if(e instanceof Ft)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 Ft(a,s,l,e.opacity)}function fV(e,t,r,n){return arguments.length===1?Y1(e):new Ft(e,t,r,n??1)}function Ft(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Bp(Ft,fV,q1($i,{brighter(e){return e=e==null?As:Math.pow(As,e),new Ft(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ci:Math.pow(ci,e),new Ft(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(Zu(e>=240?e-240:e+120,o,n),Zu(e,o,n),Zu(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ft(pb(this.h),ja(this.s),ja(this.l),_s(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=_s(this.opacity);return`${e===1?"hsl(":"hsla("}${pb(this.h)}, ${ja(this.s)*100}%, ${ja(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pb(e){return e=(e||0)%360,e<0?e+360:e}function ja(e){return Math.max(0,Math.min(1,e||0))}function Zu(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 Vp=e=>()=>e;function pV(e,t){return function(r){return e+r*t}}function vV(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 mV(e){return(e=+e)==1?X1:function(t,r){return r-t?vV(t,r,e):Vp(isNaN(t)?r:t)}}function X1(e,t){var r=t-e;return r?pV(e,r):Vp(isNaN(e)?t:e)}const vb=(function e(t){var r=mV(t);function n(o,i){var a=r((o=ff(o)).r,(i=ff(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=X1(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 hV(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 gV(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function yV(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]=Oo(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 bV(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ts(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function xV(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]=Oo(e[o],t[o]):n[o]=t[o];return function(i){for(o in r)n[o]=r[o](i);return n}}var pf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ju=new RegExp(pf.source,"g");function wV(e){return function(){return e}}function SV(e){return function(t){return e(t)+""}}function PV(e,t){var r=pf.lastIndex=Ju.lastIndex=0,n,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=pf.exec(e))&&(o=Ju.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:Ts(n,o)})),r=Ju.lastIndex;return r<t.length&&(i=t.slice(r),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?SV(l[0].x):wV(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 Oo(e,t){var r=typeof t,n;return t==null||r==="boolean"?Vp(t):(r==="number"?Ts:r==="string"?(n=di(t))?(t=n,vb):PV:t instanceof di?vb:t instanceof Date?bV:gV(t)?hV:Array.isArray(t)?yV:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?xV:Ts)(e,t)}function Wp(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function EV(e,t){t===void 0&&(t=e,e=Oo);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 OV(e){return function(){return e}}function js(e){return+e}var mb=[0,1];function pt(e){return e}function vf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:OV(isNaN(t)?NaN:.5)}function CV(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function AV(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=vf(o,n),i=r(a,i)):(n=vf(n,o),i=r(i,a)),function(s){return i(n(s))}}function _V(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]=vf(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(s){var l=Di(e,s,1,n)-1;return i[l](o[l](s))}}function Li(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function zl(){var e=mb,t=mb,r=Oo,n,o,i,a=pt,s,l,c;function u(){var p=Math.min(e.length,t.length);return a!==pt&&(a=CV(e[0],e[p-1])),s=p>2?_V:AV,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),Ts)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,js),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=Wp,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 Kp(){return zl()(pt,pt)}function TV(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ns(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 vo(e){return e=Ns(Math.abs(e)),e?e[1]:NaN}function jV(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 MV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fi(e){if(!(t=MV.exec(e)))throw new Error("invalid format: "+e);var t;return new Up({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]})}fi.prototype=Up.prototype;function Up(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+""}Up.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 Ms;function kV(e,t){var r=Ns(e,t);if(!r)return Ms=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(Ms=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")+Ns(e,Math.max(0,t+i-1))[0]}function hb(e,t){var r=Ns(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 gb={"%":(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)=>hb(e*100,t),r:hb,s:kV,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yb(e){return e}var bb=Array.prototype.map,xb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function RV(e){var t=e.grouping===void 0||e.thousands===void 0?yb:jV(bb.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?yb:NV(bb.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=fi(d);var v=d.fill,g=d.align,m=d.sign,h=d.symbol,b=d.zero,x=d.width,w=d.comma,S=d.precision,E=d.trim,P=d.type;P==="n"?(w=!0,P="g"):gb[P]||(S===void 0&&(S=12),E=!0,P="g"),(b||v==="0"&&g==="=")&&(b=!0,v="0",g="=");var O=(p&&p.prefix!==void 0?p.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():""),C=(h==="$"?n:/[%p]/.test(P)?a:"")+(p&&p.suffix!==void 0?p.suffix:""),N=gb[P],$=/[defgprs%]/.test(P);S=S===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function I(_){var j=O,R=C,V,F,W;if(P==="c")R=N(_)+R,_="";else{_=+_;var T=_<0||1/_<0;if(_=isNaN(_)?l:N(Math.abs(_),S),E&&(_=IV(_)),T&&+_==0&&m!=="+"&&(T=!1),j=(T?m==="("?m:s:m==="-"||m==="("?"":m)+j,R=(P==="s"&&!isNaN(_)&&Ms!==void 0?xb[8+Ms/3]:"")+R+(T&&m==="("?")":""),$){for(V=-1,F=_.length;++V<F;)if(W=_.charCodeAt(V),48>W||W>57){R=(W===46?o+_.slice(V+1):_.slice(V))+R,_=_.slice(0,V);break}}}w&&!b&&(_=t(_,1/0));var k=j.length+_.length+R.length,G=k<x?new Array(x-k+1).join(v):"";switch(w&&b&&(_=t(G+_,G.length?x-R.length:1/0),G=""),g){case"<":_=j+_+R+G;break;case"=":_=j+G+_+R;break;case"^":_=G.slice(0,k=G.length>>1)+j+_+R+G.slice(k);break;default:_=G+j+_+R;break}return i(_)}return I.toString=function(){return d+""},I}function u(d,p){var v=Math.max(-8,Math.min(8,Math.floor(vo(p)/3)))*3,g=Math.pow(10,-v),m=c((d=fi(d),d.type="f",d),{suffix:xb[8+v/3]});return function(h){return m(g*h)}}return{format:c,formatPrefix:u}}var Na,Hp,Z1;DV({thousands:",",grouping:[3],currency:["$",""]});function DV(e){return Na=RV(e),Hp=Na.format,Z1=Na.formatPrefix,Na}function $V(e){return Math.max(0,-vo(Math.abs(e)))}function LV(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vo(t)/3)))*3-vo(Math.abs(e)))}function zV(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vo(t)-vo(e))+1}function J1(e,t,r,n){var o=uf(e,t,r),i;switch(n=fi(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=LV(o,a))&&(n.precision=i),Z1(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=zV(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=$V(o))&&(n.precision=i-(n.type==="%")*2);break}}return Hp(n)}function Qr(e){var t=e.domain;return e.ticks=function(r){var n=t();return lf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return J1(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=cf(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 Q1(){var e=Kp();return e.copy=function(){return Li(e,Q1())},$t.apply(e,arguments),Qr(e)}function eE(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,js),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return eE(e).unknown(t)},e=arguments.length?Array.from(e,js):[0,1],Qr(r)}function tE(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 wb(e){return Math.log(e)}function Sb(e){return Math.exp(e)}function FV(e){return-Math.log(-e)}function BV(e){return-Math.exp(-e)}function VV(e){return isFinite(e)?+("1e"+e):e<0?0:e}function WV(e){return e===10?VV:e===Math.E?Math.exp:t=>Math.pow(e,t)}function KV(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 Pb(e){return(t,r)=>-e(-t,r)}function Gp(e){const t=e(wb,Sb),r=t.domain;let n=10,o,i;function a(){return o=KV(n),i=WV(n),r()[0]<0?(o=Pb(o),i=Pb(i),e(FV,BV)):e(wb,Sb),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=lf(c,u,h))}else b=lf(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=fi(l)).precision==null&&(l.trim=!0),l=Hp(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(tE(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function rE(){const e=Gp(zl()).domain([1,10]);return e.copy=()=>Li(e,rE()).base(e.base()),$t.apply(e,arguments),e}function Eb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ob(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function qp(e){var t=1,r=e(Eb(t),Ob(t));return r.constant=function(n){return arguments.length?e(Eb(t=+n),Ob(t)):t},Qr(r)}function nE(){var e=qp(zl());return e.copy=function(){return Li(e,nE()).constant(e.constant())},$t.apply(e,arguments)}function Cb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function UV(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function HV(e){return e<0?-e*e:e*e}function Yp(e){var t=e(pt,pt),r=1;function n(){return r===1?e(pt,pt):r===.5?e(UV,HV):e(Cb(r),Cb(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},Qr(t)}function Xp(){var e=Yp(zl());return e.copy=function(){return Li(e,Xp()).exponent(e.exponent())},$t.apply(e,arguments),e}function GV(){return Xp.apply(null,arguments).exponent(.5)}function Ab(e){return Math.sign(e)*e*e}function qV(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function oE(){var e=Kp(),t=[0,1],r=!1,n;function o(i){var a=qV(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(Ab(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,js)).map(Ab)),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 oE(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},$t.apply(o,arguments),Qr(o)}function iE(){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]=J3(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?n:t[Di(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 iE().domain(e).range(t).unknown(n)},$t.apply(i,arguments)}function aE(){var e=0,t=1,r=1,n=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[Di(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 aE().domain([e,t]).range(o).unknown(i)},$t.apply(Qr(a),arguments)}function sE(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[Di(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 sE().domain(e).range(t).unknown(r)},$t.apply(o,arguments)}const Qu=new Date,ed=new Date;function We(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=>We(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)=>(Qu.setTime(+i),ed.setTime(+a),e(Qu),e(ed),Math.floor(r(Qu,ed))),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 Is=We(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Is.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?We(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Is);Is.range;const vr=1e3,It=vr*60,mr=It*60,br=mr*24,Zp=br*7,_b=br*30,td=br*365,gn=We(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getUTCSeconds());gn.range;const Jp=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getMinutes());Jp.range;const Qp=We(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getUTCMinutes());Qp.range;const ev=We(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());ev.range;const tv=We(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getUTCHours());tv.range;const zi=We(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);zi.range;const Fl=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>e.getUTCDate()-1);Fl.range;const lE=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>Math.floor(e/br));lE.range;function Vn(e){return We(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)/Zp)}const Bl=Vn(0),ks=Vn(1),YV=Vn(2),XV=Vn(3),mo=Vn(4),ZV=Vn(5),JV=Vn(6);Bl.range;ks.range;YV.range;XV.range;mo.range;ZV.range;JV.range;function Wn(e){return We(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)/Zp)}const Vl=Wn(0),Rs=Wn(1),QV=Wn(2),e5=Wn(3),ho=Wn(4),t5=Wn(5),r5=Wn(6);Vl.range;Rs.range;QV.range;e5.range;ho.range;t5.range;r5.range;const rv=We(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());rv.range;const nv=We(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());nv.range;const xr=We(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:We(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=We(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:We(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 cE(e,t,r,n,o,i){const a=[[gn,1,vr],[gn,5,5*vr],[gn,15,15*vr],[gn,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,Zp],[t,1,_b],[t,3,3*_b],[e,1,td]];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=Lp(([,,h])=>h).right(a,p);if(v===a.length)return e.every(uf(c/td,u/td,d));if(v===0)return Is.every(Math.max(uf(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[n5,o5]=cE(wr,nv,Vl,lE,tv,Qp),[i5,a5]=cE(xr,rv,Bl,zi,ev,Jp);function rd(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 nd(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 Ko(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function s5(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=Uo(o),u=Ho(o),d=Uo(i),p=Ho(i),v=Uo(a),g=Ho(a),m=Uo(s),h=Ho(s),b=Uo(l),x=Ho(l),w={a:W,A:T,b:k,B:G,c:null,d:kb,e:kb,f:j5,g:F5,G:V5,H:A5,I:_5,j:T5,L:uE,m:N5,M:M5,p:ee,q:ne,Q:$b,s:Lb,S:I5,u:k5,U:R5,V:D5,w:$5,W:L5,x:null,X:null,y:z5,Y:B5,Z:W5,"%":Db},S={a:ie,A:oe,b:le,B:Oe,c:null,d:Rb,e:Rb,f:G5,g:n4,G:i4,H:K5,I:U5,j:H5,L:fE,m:q5,M:Y5,p:K,q:ue,Q:$b,s:Lb,S:X5,u:Z5,U:J5,V:Q5,w:e4,W:t4,x:null,X:null,y:r4,Y:o4,Z:a4,"%":Db},E={a:$,A:I,b:_,B:j,c:R,d:Mb,e:Mb,f:P5,g:Nb,G:jb,H:Ib,I:Ib,j:b5,L:S5,m:y5,M:x5,p:N,q:g5,Q:O5,s:C5,S:w5,u:f5,U:p5,V:v5,w:d5,W:m5,x:V,X:F,y:Nb,Y:jb,Z:h5,"%":E5};w.x=P(r,w),w.X=P(n,w),w.c=P(t,w),S.x=P(r,S),S.X=P(n,S),S.c=P(t,S);function P(L,H){return function(B){var z=[],fe=-1,se=0,Qe=L.length,et,Lt,Zm;for(B instanceof Date||(B=new Date(+B));++fe<Qe;)L.charCodeAt(fe)===37&&(z.push(L.slice(se,fe)),(Lt=Tb[et=L.charAt(++fe)])!=null?et=L.charAt(++fe):Lt=et==="e"?" ":"0",(Zm=H[et])&&(et=Zm(B,Lt)),z.push(et),se=fe+1);return z.push(L.slice(se,fe)),z.join("")}}function O(L,H){return function(B){var z=Ko(1900,void 0,1),fe=C(z,L,B+="",0),se,Qe;if(fe!=B.length)return null;if("Q"in z)return new Date(z.Q);if("s"in z)return new Date(z.s*1e3+("L"in z?z.L:0));if(H&&!("Z"in z)&&(z.Z=0),"p"in z&&(z.H=z.H%12+z.p*12),z.m===void 0&&(z.m="q"in z?z.q:0),"V"in z){if(z.V<1||z.V>53)return null;"w"in z||(z.w=1),"Z"in z?(se=nd(Ko(z.y,0,1)),Qe=se.getUTCDay(),se=Qe>4||Qe===0?Rs.ceil(se):Rs(se),se=Fl.offset(se,(z.V-1)*7),z.y=se.getUTCFullYear(),z.m=se.getUTCMonth(),z.d=se.getUTCDate()+(z.w+6)%7):(se=rd(Ko(z.y,0,1)),Qe=se.getDay(),se=Qe>4||Qe===0?ks.ceil(se):ks(se),se=zi.offset(se,(z.V-1)*7),z.y=se.getFullYear(),z.m=se.getMonth(),z.d=se.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),Qe="Z"in z?nd(Ko(z.y,0,1)).getUTCDay():rd(Ko(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(Qe+5)%7:z.w+z.U*7-(Qe+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,nd(z)):rd(z)}}function C(L,H,B,z){for(var fe=0,se=H.length,Qe=B.length,et,Lt;fe<se;){if(z>=Qe)return-1;if(et=H.charCodeAt(fe++),et===37){if(et=H.charAt(fe++),Lt=E[et in Tb?H.charAt(fe++):et],!Lt||(z=Lt(L,B,z))<0)return-1}else if(et!=B.charCodeAt(z++))return-1}return z}function N(L,H,B){var z=c.exec(H.slice(B));return z?(L.p=u.get(z[0].toLowerCase()),B+z[0].length):-1}function $(L,H,B){var z=v.exec(H.slice(B));return z?(L.w=g.get(z[0].toLowerCase()),B+z[0].length):-1}function I(L,H,B){var z=d.exec(H.slice(B));return z?(L.w=p.get(z[0].toLowerCase()),B+z[0].length):-1}function _(L,H,B){var z=b.exec(H.slice(B));return z?(L.m=x.get(z[0].toLowerCase()),B+z[0].length):-1}function j(L,H,B){var z=m.exec(H.slice(B));return z?(L.m=h.get(z[0].toLowerCase()),B+z[0].length):-1}function R(L,H,B){return C(L,t,H,B)}function V(L,H,B){return C(L,r,H,B)}function F(L,H,B){return C(L,n,H,B)}function W(L){return a[L.getDay()]}function T(L){return i[L.getDay()]}function k(L){return l[L.getMonth()]}function G(L){return s[L.getMonth()]}function ee(L){return o[+(L.getHours()>=12)]}function ne(L){return 1+~~(L.getMonth()/3)}function ie(L){return a[L.getUTCDay()]}function oe(L){return i[L.getUTCDay()]}function le(L){return l[L.getUTCMonth()]}function Oe(L){return s[L.getUTCMonth()]}function K(L){return o[+(L.getUTCHours()>=12)]}function ue(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var H=P(L+="",w);return H.toString=function(){return L},H},parse:function(L){var H=O(L+="",!1);return H.toString=function(){return L},H},utcFormat:function(L){var H=P(L+="",S);return H.toString=function(){return L},H},utcParse:function(L){var H=O(L+="",!0);return H.toString=function(){return L},H}}}var Tb={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,l5=/^%/,c5=/[\\^$*+?|[\]().{}]/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 u5(e){return e.replace(c5,"\\$&")}function Uo(e){return new RegExp("^(?:"+e.map(u5).join("|")+")","i")}function Ho(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function d5(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function f5(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function p5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function v5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function m5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function jb(e,t,r){var n=Ze.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Nb(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 h5(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 g5(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 y5(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 Mb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function b5(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 Ib(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function x5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function w5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function S5(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function P5(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 E5(e,t,r){var n=l5.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function O5(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function C5(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function kb(e,t){return pe(e.getDate(),t,2)}function A5(e,t){return pe(e.getHours(),t,2)}function _5(e,t){return pe(e.getHours()%12||12,t,2)}function T5(e,t){return pe(1+zi.count(xr(e),e),t,3)}function uE(e,t){return pe(e.getMilliseconds(),t,3)}function j5(e,t){return uE(e,t)+"000"}function N5(e,t){return pe(e.getMonth()+1,t,2)}function M5(e,t){return pe(e.getMinutes(),t,2)}function I5(e,t){return pe(e.getSeconds(),t,2)}function k5(e){var t=e.getDay();return t===0?7:t}function R5(e,t){return pe(Bl.count(xr(e)-1,e),t,2)}function dE(e){var t=e.getDay();return t>=4||t===0?mo(e):mo.ceil(e)}function D5(e,t){return e=dE(e),pe(mo.count(xr(e),e)+(xr(e).getDay()===4),t,2)}function $5(e){return e.getDay()}function L5(e,t){return pe(ks.count(xr(e)-1,e),t,2)}function z5(e,t){return pe(e.getFullYear()%100,t,2)}function F5(e,t){return e=dE(e),pe(e.getFullYear()%100,t,2)}function B5(e,t){return pe(e.getFullYear()%1e4,t,4)}function V5(e,t){var r=e.getDay();return e=r>=4||r===0?mo(e):mo.ceil(e),pe(e.getFullYear()%1e4,t,4)}function W5(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pe(t/60|0,"0",2)+pe(t%60,"0",2)}function Rb(e,t){return pe(e.getUTCDate(),t,2)}function K5(e,t){return pe(e.getUTCHours(),t,2)}function U5(e,t){return pe(e.getUTCHours()%12||12,t,2)}function H5(e,t){return pe(1+Fl.count(wr(e),e),t,3)}function fE(e,t){return pe(e.getUTCMilliseconds(),t,3)}function G5(e,t){return fE(e,t)+"000"}function q5(e,t){return pe(e.getUTCMonth()+1,t,2)}function Y5(e,t){return pe(e.getUTCMinutes(),t,2)}function X5(e,t){return pe(e.getUTCSeconds(),t,2)}function Z5(e){var t=e.getUTCDay();return t===0?7:t}function J5(e,t){return pe(Vl.count(wr(e)-1,e),t,2)}function pE(e){var t=e.getUTCDay();return t>=4||t===0?ho(e):ho.ceil(e)}function Q5(e,t){return e=pE(e),pe(ho.count(wr(e),e)+(wr(e).getUTCDay()===4),t,2)}function e4(e){return e.getUTCDay()}function t4(e,t){return pe(Rs.count(wr(e)-1,e),t,2)}function r4(e,t){return pe(e.getUTCFullYear()%100,t,2)}function n4(e,t){return e=pE(e),pe(e.getUTCFullYear()%100,t,2)}function o4(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function i4(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ho(e):ho.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function a4(){return"+0000"}function Db(){return"%"}function $b(e){return+e}function Lb(e){return Math.floor(+e/1e3)}var Jn,vE,mE;s4({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 s4(e){return Jn=s5(e),vE=Jn.format,Jn.parse,mE=Jn.utcFormat,Jn.utcParse,Jn}function l4(e){return new Date(e)}function c4(e){return e instanceof Date?+e:+new Date(+e)}function ov(e,t,r,n,o,i,a,s,l,c){var u=Kp(),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"),S=c("%Y");function E(P){return(l(P)<P?v:s(P)<P?g:a(P)<P?m:i(P)<P?h:n(P)<P?o(P)<P?b:x:r(P)<P?w:S)(P)}return u.invert=function(P){return new Date(d(P))},u.domain=function(P){return arguments.length?p(Array.from(P,c4)):p().map(l4)},u.ticks=function(P){var O=p();return e(O[0],O[O.length-1],P??10)},u.tickFormat=function(P,O){return O==null?E:c(O)},u.nice=function(P){var O=p();return(!P||typeof P.range!="function")&&(P=t(O[0],O[O.length-1],P??10)),P?p(tE(O,P)):u},u.copy=function(){return Li(u,ov(e,t,r,n,o,i,a,s,l,c))},u}function u4(){return $t.apply(ov(i5,a5,xr,rv,Bl,zi,ev,Jp,gn,vE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function d4(){return $t.apply(ov(n5,o5,wr,nv,Vl,Fl,tv,Qp,gn,mE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Wl(){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(Oo),c.rangeRound=u(Wp),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 hE(){var e=Qr(Wl()(pt));return e.copy=function(){return en(e,hE())},Nr.apply(e,arguments)}function gE(){var e=Gp(Wl()).domain([1,10]);return e.copy=function(){return en(e,gE()).base(e.base())},Nr.apply(e,arguments)}function yE(){var e=qp(Wl());return e.copy=function(){return en(e,yE()).constant(e.constant())},Nr.apply(e,arguments)}function iv(){var e=Yp(Wl());return e.copy=function(){return en(e,iv()).exponent(e.exponent())},Nr.apply(e,arguments)}function f4(){return iv.apply(null,arguments).exponent(.5)}function bE(){var e=[],t=pt;function r(n){if(n!=null&&!isNaN(n=+n))return t((Di(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)=>Z3(e,i/n))},r.copy=function(){return bE(t).domain(e)},Nr.apply(r,arguments)}function Kl(){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=EV(m,[b,x,w]),v):[c(0),c(.5),c(1)]}}return v.range=g(Oo),v.rangeRound=g(Wp),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 xE(){var e=Qr(Kl()(pt));return e.copy=function(){return en(e,xE())},Nr.apply(e,arguments)}function wE(){var e=Gp(Kl()).domain([.1,1,10]);return e.copy=function(){return en(e,wE()).base(e.base())},Nr.apply(e,arguments)}function SE(){var e=qp(Kl());return e.copy=function(){return en(e,SE()).constant(e.constant())},Nr.apply(e,arguments)}function av(){var e=Yp(Kl());return e.copy=function(){return en(e,av()).exponent(e.exponent())},Nr.apply(e,arguments)}function p4(){return av.apply(null,arguments).exponent(.5)}const Xo=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Fp,scaleDiverging:xE,scaleDivergingLog:wE,scaleDivergingPow:av,scaleDivergingSqrt:p4,scaleDivergingSymlog:SE,scaleIdentity:eE,scaleImplicit:df,scaleLinear:Q1,scaleLog:rE,scaleOrdinal:zp,scalePoint:eV,scalePow:Xp,scaleQuantile:iE,scaleQuantize:aE,scaleRadial:oE,scaleSequential:hE,scaleSequentialLog:gE,scaleSequentialPow:iv,scaleSequentialQuantile:bE,scaleSequentialSqrt:f4,scaleSequentialSymlog:yE,scaleSqrt:GV,scaleSymlog:nE,scaleThreshold:sE,scaleTime:u4,scaleUtc:d4,tickFormat:J1},Symbol.toStringTag,{value:"Module"}));var Mr=e=>e.chartData,Ul=M([Mr],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),sv=(e,t,r,n)=>n?Ul(e):Mr(e),v4=(e,t,r)=>r?Ul(e):Mr(e);function Sr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ce(t)&&ce(r))return!0}return!1}function zb(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function PE(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(Sr(a))return a}}function m4(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Sr(n))return zb(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"&&Yg.test(o)){var l=Yg.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"&&Xg.test(i)){var u=Xg.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(Sr(p))return t==null?p:zb(p,t,r)}}}var Co=1e9,h4={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},cv,_e=!0,Dt="[DecimalError] ",Pn=Dt+"Invalid argument: ",lv=Dt+"Exponent out of range: ",Ao=Math.floor,pn=Math.pow,g4=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Et,Ge=1e7,Pe=7,EE=9007199254740991,Ds=Ao(EE/Pe),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)*Pe;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(Et))throw Error(Dt+"NaN");if(r.s<1)throw Error(Dt+(r.s?"NaN":"-Infinity"));return r.eq(Et)?new n(0):(_e=!1,t=hr(pi(r,i),pi(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?AE(t,e):OE(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 CE(this)};Y.naturalLogarithm=Y.ln=function(){return pi(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?OE(t,e):AE(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*Pe+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=Ao((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%Ge|0,t=s/Ge|0;i[o]=(i[o]+t)%Ge|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,Co),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=Mn(n,!0):(sr(e,0,Co),t===void 0?t=o.rounding:sr(t,0,8),n=xe(new o(n),e+1,t),r=Mn(n,!0,e+1)),r};Y.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?Mn(o):(sr(e,0,Co),t===void 0?t=i.rounding:sr(t,0,8),n=xe(new i(o),e+$e(o)+1,t),r=Mn(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(Et);if(s=new l(s),!s.s){if(e.s<1)throw Error(Dt+"Infinity");return s}if(s.eq(Et))return s;if(n=l.precision,e.eq(Et))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)<=EE){for(o=new l(Et),t=Math.ceil(n/Pe+4),_e=!1;r%2&&(o=o.times(s),Bb(o.d,t)),r=Ao(r/2),r!==0;)s=s.times(s),Bb(s.d,t);return _e=!0,e.s<0?new l(Et).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(pi(s,n+c)),_e=!0,o=CE(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=Mn(o,r<=i.toExpNeg||r>=i.toExpPos)):(sr(e,1,Co),t===void 0?t=i.rounding:sr(t,0,8),o=xe(new i(o),e,t),r=$e(o),n=Mn(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,Co),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 Mn(e,t<=r.toExpNeg||t>=r.toExpPos)};function OE(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/Pe),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)/Ge|0,l[i]%=Ge;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=Pe-n.length,r&&(i+=zr(r)),i+=n;a=e[t],n=a+"",r=Pe-n.length,r&&(i+=zr(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%Ge|0,a=i/Ge|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*Ge+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,S,E,P,O,C,N=n.constructor,$=n.s==o.s?1:-1,I=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,O=_.length,E=I.length,v=new N($),g=v.d=[],c=0;_[c]==(I[c]||0);)++c;if(_[c]>(I[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/Pe+2|0,c=0,O==1)for(u=0,_=_[0],x++;(c<E||u)&&x--;c++)w=u*Ge+(I[c]||0),g[c]=w/_|0,u=w%_|0;else{for(u=Ge/(_[0]+1)|0,u>1&&(_=e(_,u),I=e(I,u),O=_.length,E=I.length),S=O,m=I.slice(0,O),h=m.length;h<O;)m[h++]=0;C=_.slice(),C.unshift(0),P=_[0],_[1]>=Ge/2&&++P;do u=0,s=t(_,m,O,h),s<0?(b=m[0],O!=h&&(b=b*Ge+(m[1]||0)),u=b/P|0,u>1?(u>=Ge&&(u=Ge-1),d=e(_,u),p=d.length,h=m.length,s=t(d,m,p,h),s==1&&(u--,r(d,O<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,O,h),s<1&&(u++,r(m,O<h?C:_,h))),h=m.length):s===0&&(u++,m=[0]),g[c++]=u,s&&m[0]?m[h++]=I[S]||0:(m=[I[S]],h=1);while((S++<E||m[0]!==void 0)&&x--)}return g[0]||g.shift(),v.e=l,xe(v,a?i+$e(v)+1:i)}})();function CE(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(lv+$e(e));if(!e.s)return new u(Et);for(_e=!1,s=d,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(n=Math.log(pn(2,c))/Math.LN10*2+5|0,s+=n,r=o=i=new u(Et),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*Pe,r=e.d[0];r>=10;r/=10)t++;return t}function od(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 zr(e){for(var t="";e--;)t+="0";return t}function pi(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(Et))return new m(0);if(t==null?(_e=!1,c=h):c=t,v.eq(10))return t==null&&(_e=!0),od(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=od(m,c+2,h).times(i+""),v=pi(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(Et),v.plus(Et),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(od(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 Fb(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=Ao(r/Pe),e.d=[],n=(r+1)%Pe,r<0&&(n+=Pe),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=Pe;n<o;)e.d.push(+t.slice(n,n+=Pe));t=t.slice(n),n=Pe-t.length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),_e&&(e.e>Ds||e.e<-Ds))throw Error(lv+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+=Pe,o=t,c=d[u=0];else{if(u=Math.ceil((n+1)/Pe),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;n%=Pe,o=n-Pe+a}if(r!==void 0&&(i=pn(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/pn(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]=pn(10,(Pe-t%Pe)%Pe),e.e=Ao(-t/Pe)||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=pn(10,Pe-n),d[u]=o>0?(c/pn(10,a-o)%pn(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==Ge&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=Ge)break;d[u--]=0,i=1}for(n=d.length;d[--n]===0;)d.pop();if(_e&&(e.e>Ds||e.e<-Ds))throw Error(lv+$e(e));return e}function AE(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/Pe),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]=Ge-1;--l[i],l[o]+=Ge}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 Mn(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)+zr(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+zr(-o-1)+i,r&&(n=r-a)>0&&(i+=zr(n))):o>=a?(i+=zr(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+zr(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=zr(n))),e.s<0?"-"+i:i}function Bb(e,t){if(e.length>t)return e.length=t,!0}function _E(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 Fb(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,g4.test(i))Fb(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=_E,o.config=o.set=y4,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 y4(e){if(!e||typeof e!="object")throw Error(Dt+"Object expected");var t,r,n,o=["precision",1,Co,"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(Ao(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 cv=_E(h4);Et=new cv(1);const he=cv;function TE(e){var t;return e===0?t=1:t=Math.floor(new he(e).abs().log(10).toNumber())+1,t}function jE(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 NE=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},ME=(e,t,r)=>{if(e.lte(0))return new he(0);var n=TE(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()))},b4=(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(TE(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},IE=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=ME(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?IE(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))})},x4=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]=NE([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 b4(s,o,i);var{step:u,tickMin:d,tickMax:p}=IE(s,l,a,i,0),v=jE(d,p.add(new he(.1).mul(u)),u);return r>n?v.reverse():v},w4=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=NE([n,o]);if(a===-1/0||s===1/0)return[n,o];if(a===s)return[a];var l=Math.max(r,2),c=ME(new he(s).sub(a).div(l-1),i,0),u=[...jE(new he(a),new he(s),c),s];return i===!1&&(u=u.map(d=>Math.round(d))),n>o?u.reverse():u},kE=e=>e.rootProps.maxBarSize,S4=e=>e.rootProps.barGap,RE=e=>e.rootProps.barCategoryGap,P4=e=>e.rootProps.barSize,Fi=e=>e.rootProps.stackOffset,DE=e=>e.rootProps.reverseStackOrder,uv=e=>e.options.chartName,dv=e=>e.rootProps.syncId,$E=e=>e.rootProps.syncMethod,fv=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"},Hl=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Gl(e,t,r){if(r!=="auto")return r;if(e!=null)return _r(e,t)?"category":"number"}function Vb(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 $s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vb(Object(r),!0).forEach(function(n){E4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E4(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=C4(e,"string");return typeof t=="symbol"?t:t+""}function C4(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={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},Kb={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},A4=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},pv=M([A4,S1],(e,t)=>{var r;if(e!=null)return e;var n=(r=Gl(t,"angleAxis",Wb.type))!==null&&r!==void 0?r:"category";return $s($s({},Wb),{},{type:n})}),_4=(e,t)=>e.polarAxis.radiusAxis[t],vv=M([_4,S1],(e,t)=>{var r;if(e!=null)return e;var n=(r=Gl(t,"radiusAxis",Kb.type))!==null&&r!==void 0?r:"category";return $s($s({},Kb),{},{type:n})}),ql=e=>e.polarOptions,mv=M([Tr,jr,Ve],z1),LE=M([ql,mv],(e,t)=>{if(e!=null)return at(e.innerRadius,t,0)}),zE=M([ql,mv],(e,t)=>{if(e!=null)return at(e.outerRadius,t,t*.8)}),T4=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},FE=M([ql],T4);M([pv,FE],Hl);var BE=M([mv,LE,zE],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});M([vv,BE],Hl);var VE=M([ve,ql,LE,zE,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:at(a,o,o/2),cy:at(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),je=(e,t)=>t,Bi=(e,t,r)=>r;function hv(e){return e?.id}function WE(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=hv(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 Yl(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Xl=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Zl(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function j4(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"},_o=e=>e.tooltip.settings.axisId;function N4(e){if(e in Xo)return Xo[e]();var t="scale".concat(Oi(e));if(t in Xo)return Xo[t]()}function Ub(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 Hb(e,t,r){if(typeof e=="function")return Ub(e.copy().domain(t).range(r));if(e!=null){var n=N4(e);if(n!=null)return n.domain(t).range(r),Ub(n)}}var KE=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Sr(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 Gb(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 Ls(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(n){M4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M4(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=k4(e,"string");return typeof t=="symbol"?t:t+""}function k4(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 mf=[0,"auto"],Ue={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},UE=(e,t)=>e.cartesianAxis.xAxis[t],Ir=(e,t)=>{var r=UE(e,t);return r??Ue},He={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:mf,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:Ni},HE=(e,t)=>e.cartesianAxis.yAxis[t],kr=(e,t)=>{var r=HE(e,t);return r??He},R4={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:""},gv=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??R4},ke=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"zAxis":return gv(e,r);case"angleAxis":return pv(e,r);case"radiusAxis":return vv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},D4=(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))}},To=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"angleAxis":return pv(e,r);case"radiusAxis":return vv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},GE=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function yv(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 Jl=e=>e.graphicalItems.cartesianItems,$4=M([je,Bi],yv),bv=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Vi=M([Jl,ke,$4],bv,{memoizeOptions:{resultEqualityCheck:Zl}}),qE=M([Vi],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Yl)),YE=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),L4=M([Vi],YE),xv=e=>e.map(t=>t.data).filter(Boolean).flat(1),z4=M([Vi],xv,{memoizeOptions:{resultEqualityCheck:Zl}}),wv=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},Sv=M([z4,sv],wv),Pv=(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=M([Sv,ke,Vi],Pv);function XE(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function qa(e){if(ir(e)||e instanceof Date){var t=Number(e);if(ce(t))return t}}function qb(e){if(Array.isArray(e)){var t=[qa(e[0]),qa(e[1])];return Sr(t)?t:void 0}var r=qa(e);if(r!=null)return[r,r]}function Pr(e){return e.map(qa).filter(yt)}function F4(e,t,r){return!r||typeof t!="number"||or(t)?[]:r.length?Pr(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 Ke=e=>{var t=Je(e),r=_o(e);return To(e,t,r)},Wi=M([Ke],e=>e?.dataKey),B4=M([qE,sv,Ke],WE),ZE=(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(hv);return[s,{stackedData:aF(e,u,r),graphicalItems:c}]}))},hf=M([B4,qE,Fi,DE],ZE),JE=(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}},V4=M([ke],e=>e.allowDataOverflow),Ev=e=>{var t;if(e==null||!("domain"in e))return mf;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Pr(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:mf},Ov=M([ke],Ev),Cv=M([Ov,V4],PE),W4=M([hf,Mr,je,Cv],JE,{memoizeOptions:{resultEqualityCheck:Xl}}),ec=e=>e.errorBars,K4=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>XE(r,n)),zs=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]}},Av=(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=>XE(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=qb(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=qb(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]},U4=M([Sv,ke,L4,ec,je],Av,{memoizeOptions:{resultEqualityCheck:Xl}});function H4(e){var{value:t}=e;if(ir(t)||t instanceof Date)return t}var G4=(e,t,r)=>{var n=e.map(H4).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&pP(n))?W1(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},QE=e=>e.referenceElements.dots,jo=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),q4=M([QE,je,Bi],jo),eO=e=>e.referenceElements.areas,Y4=M([eO,je,Bi],jo),tO=e=>e.referenceElements.lines,X4=M([tO,je,Bi],jo),rO=(e,t)=>{if(e!=null){var r=Pr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Z4=M(q4,je,rO),nO=(e,t)=>{if(e!=null){var r=Pr(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)]}},J4=M([Y4,je],nO);function Q4(e){var t;if(e.x!=null)return Pr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Pr(r)}function eW(e){var t;if(e.y!=null)return Pr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Pr(r)}var oO=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?Q4(n):eW(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},tW=M([X4,je],oO),rW=M(Z4,tW,J4,(e,t,r)=>zs(e,r,t)),_v=(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?zs(n,i,o):zs(i,o);return m4(t,c,e.allowDataOverflow)},nW=M([ke,Ov,Cv,W4,U4,rW,ve,je],_v,{memoizeOptions:{resultEqualityCheck:Xl}}),oW=[0,1],Tv=(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 W1(0,(u=r?.length)!==null&&u!==void 0?u:0)}return l==="category"?G4(n,e,c):o==="expand"?oW:a}},jv=M([ke,ve,Sv,Ql,Fi,je,nW],Tv);function iW(e){return e in Xo}var iO=(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(Oi(n));return iW(i)?i:"point"}}},tn=M([ke,GE,uv],iO);function Nv(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?Hb(e.scale,r,n):Hb(t,r,n)}var Mv=(e,t,r)=>{var n=Ev(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Sr(e))return x4(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Sr(e))return w4(e,t.tickCount,t.allowDecimals)}},Iv=M([jv,To,tn],Mv),kv=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Sr(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},aW=M([ke,jv,Iv,je],kv),sW=M(Ql,ke,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Pr(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}}),aO=M(sW,ve,RE,Ve,(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=at(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),lW=(e,t,r)=>{var n=Ir(e,t);return n==null||typeof n.padding!="string"?0:aO(e,"xAxis",t,r,n.padding)},cW=(e,t,r)=>{var n=kr(e,t);return n==null||typeof n.padding!="string"?0:aO(e,"yAxis",t,r,n.padding)},uW=M(Ir,lW,(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}}),dW=M(kr,cW,(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}}),fW=M([Ve,uW,Ml,Nl,(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]}),pW=M([Ve,ve,dW,Ml,Nl,(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]}),Ki=(e,t,r,n)=>{var o;switch(t){case"xAxis":return fW(e,r,n);case"yAxis":return pW(e,r,n);case"zAxis":return(o=gv(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return FE(e);case"radiusAxis":return BE(e,r);default:return}},sO=M([ke,Ki],Hl),vW=M([tn,aW],KE),tc=M([ke,tn,vW,sO],Nv);M([Vi,ec,je],K4);function lO(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var rc=(e,t)=>t,nc=(e,t,r)=>r,mW=M(Tl,rc,nc,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(lO)),hW=M(jl,rc,nc,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(lO)),cO=(e,t)=>({width:e.width,height:t.height}),gW=(e,t)=>{var r=typeof t.width=="number"?t.width:Ni;return{width:r,height:e.height}},uO=M(Ve,Ir,cO),yW=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},bW=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},xW=M(jr,Ve,mW,rc,nc,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=cO(t,s);a==null&&(a=yW(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}),wW=M(Tr,Ve,hW,rc,nc,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=gW(t,s);a==null&&(a=bW(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}),SW=(e,t)=>{var r=Ir(e,t);if(r!=null)return xW(e,r.orientation,r.mirror)},PW=M([Ve,Ir,SW,(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}}}),EW=(e,t)=>{var r=kr(e,t);if(r!=null)return wW(e,r.orientation,r.mirror)},OW=M([Ve,kr,EW,(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}}}),dO=M(Ve,kr,(e,t)=>{var r=typeof t.width=="number"?t.width:Ni;return{width:r,height:e.height}}),Yb=(e,t,r)=>{switch(t){case"xAxis":return uO(e,r).width;case"yAxis":return dO(e,r).height;default:return}},fO=(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&&pP(l))return l}},Rv=M([ve,Ql,ke,je],fO),pO=(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)}},Dv=M([ve,Ql,To,je],pO),Xb=M([ve,D4,tn,tc,Rv,Dv,Ki,Iv,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}}}),CW=(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?qe(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)}},vO=M([ve,To,tn,tc,Iv,Ki,Rv,Dv,je],CW),AW=(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?qe(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=M([ve,To,tc,Ki,Rv,Dv,je],AW),Gr=M(ke,tc,(e,t)=>{if(!(e==null||t==null))return Ls(Ls({},e),{},{scale:t})}),_W=M([ke,tn,jv,sO],Nv);M((e,t,r)=>gv(e,r),_W,(e,t)=>{if(!(e==null||t==null))return Ls(Ls({},e),{},{scale:t})});var TW=M([ve,Tl,jl],(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}}),mO=e=>e.options.defaultTooltipEventType,hO=e=>e.options.validateTooltipEventTypes;function gO(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function $v(e,t){var r=mO(e),n=hO(e);return gO(t,r,n)}function jW(e){return J(t=>$v(t,e))}var yO=(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},MW={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}},bO=xt({name:"tooltip",initialState:MW,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:kW,removeTooltipEntrySettings:RW,setTooltipSettingsState:DW,setActiveMouseOverItemIndex:xO,mouseLeaveItem:$W,mouseLeaveChart:wO,setActiveClickItemIndex:LW,setMouseOverAxisIndex:SO,setMouseClickAxisIndex:zW,setSyncInteraction:gf,setKeyboardInteraction:yf}=bO.actions,FW=bO.reducer;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 Ma(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){BW(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 BW(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=WW(e,"string");return typeof t=="symbol"?t:t+""}function WW(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 KW(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function UW(e){return e.index!=null}var PO=(e,t,r,n)=>{if(t==null)return Br;var o=KW(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(UW(o)){if(i)return Ma(Ma({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Ma(Ma({},Br),{},{coordinate:o.coordinate})};function HW(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 GW(e,t){var r=HW(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 qW(e,t,r){if(r==null||t==null)return!0;var n=be(e,t);return n==null||!Sr(r)?!0:GW(n,r)}var Lv=(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||qW(c,r,n)?String(l):null},EO=(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}}},OO=(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})},CO=e=>e.options.tooltipPayloadSearcher,No=e=>e.tooltip;function Jb(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 Qb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jb(Object(r),!0).forEach(function(n){YW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YW(e,t,r){return(t=XW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XW(e){var t=ZW(e,"string");return typeof t=="symbol"?t:t+""}function ZW(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 JW(e,t){return e??t}var AO=(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=JW(m,s),x=Array.isArray(b)?d1(b,c,u):b,w=(g=h?.dataKey)!==null&&g!==void 0?g:n,S=h?.nameKey,E;if(n&&Array.isArray(x)&&!Array.isArray(x[0])&&a==="axis"?E=vP(x,n,o):E=i(x,t,l,S),Array.isArray(E))E.forEach(O=>{var C=Qb(Qb({},h),{},{name:O.name,unit:O.unit,color:void 0,fill:void 0});p.push(Zg({tooltipEntrySettings:C,dataKey:O.dataKey,payload:O.payload,value:be(O.payload,O.dataKey),name:O.name}))});else{var P;p.push(Zg({tooltipEntrySettings:h,dataKey:w,payload:E,value:be(E,w),name:(P=be(E,S))!==null&&P!==void 0?P:h?.name}))}return p},d)}},zv=M([Ke,GE,uv],iO),QW=M([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),e6=M([Je,_o],yv),Mo=M([QW,Ke,e6],bv,{memoizeOptions:{resultEqualityCheck:Zl}}),t6=M([Mo],e=>e.filter(Yl)),r6=M([Mo],xv,{memoizeOptions:{resultEqualityCheck:Zl}}),Io=M([r6,Mr],wv),n6=M([t6,Mr,Ke],WE),Fv=M([Io,Ke,Mo],Pv),_O=M([Ke],Ev),o6=M([Ke],e=>e.allowDataOverflow),TO=M([_O,o6],PE),i6=M([Mo],e=>e.filter(Yl)),a6=M([n6,i6,Fi,DE],ZE),s6=M([a6,Mr,Je,TO],JE),l6=M([Mo],YE),c6=M([Io,Ke,l6,ec,Je],Av,{memoizeOptions:{resultEqualityCheck:Xl}}),u6=M([QE,Je,_o],jo),d6=M([u6,Je],rO),f6=M([eO,Je,_o],jo),p6=M([f6,Je],nO),v6=M([tO,Je,_o],jo),m6=M([v6,Je],oO),h6=M([d6,m6,p6],zs),g6=M([Ke,_O,TO,s6,c6,h6,ve,Je],_v),Ui=M([Ke,ve,Io,Fv,Fi,Je,g6],Tv),y6=M([Ui,Ke,zv],Mv),b6=M([Ke,Ui,y6,Je],kv),jO=e=>{var t=Je(e),r=_o(e),n=!1;return Ki(e,t,r,n)},NO=M([Ke,jO],Hl),MO=M([Ke,zv,b6,NO],Nv),x6=M([ve,Fv,Ke,Je],fO),w6=M([ve,Fv,Ke,Je],pO),S6=(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?qe(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=M([ve,Ke,zv,MO,jO,x6,w6,Je],S6),Bv=M([mO,hO,NW],(e,t,r)=>gO(r.shared,e,t)),IO=e=>e.tooltip.settings.trigger,Vv=e=>e.tooltip.settings.defaultIndex,Hi=M([No,Bv,IO,Vv],PO),qr=M([Hi,Io,Wi,Ui],Lv),kO=M([Rr,qr],yO),Wv=M([Hi],e=>{if(e)return e.dataKey}),P6=M([Hi],e=>{if(e)return e.graphicalItemId}),RO=M([No,Bv,IO,Vv],OO),E6=M([Tr,jr,ve,Ve,Rr,Vv,RO],EO),O6=M([Hi,E6],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),C6=M([Hi],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),A6=M([RO,qr,Mr,Wi,kO,CO,Bv],AO),_6=M([A6],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function ex(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 tx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ex(Object(r),!0).forEach(function(n){T6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ex(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T6(e,t,r){return(t=j6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j6(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 M6=()=>J(Ke),I6=()=>{var e=M6(),t=J(Rr),r=J(MO);return uo(!e||!r?void 0:tx(tx({},e),{},{scale:r}),t)};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 Qn(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){k6(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 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)}var $6=(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}},L6=(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 Qn(Qn(Qn({},n),Re(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=n;return Qn(Qn(Qn({},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 z6(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 DO=(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(qe(g-v)!==qe(m-g)){var b=[];if(qe(m-g)===qe(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 S=[Math.min(g,(h+g)/2),Math.max(g,(h+g)/2)];if(e>S[0]&&e<=S[1]||e>=b[0]&&e<=b[1]){var E;return(E=r[s])===null||E===void 0?void 0:E.index}}else{var P=Math.min(v,m),O=Math.max(v,m);if(e>(P+g)/2&&e<=(O+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 $=t[N];if($!=null){var I=t[N+1],_=t[N-1];if(N===0&&I!=null&&e<=($.coordinate+I.coordinate)/2||N===a-1&&_!=null&&e>($.coordinate+_.coordinate)/2||N>0&&N<a-1&&_!=null&&I!=null&&e>($.coordinate+_.coordinate)/2&&e<=($.coordinate+I.coordinate)/2)return $.index}}return-1},F6=()=>J(uv),Kv=(e,t)=>t,$O=(e,t,r)=>r,Uv=(e,t,r,n)=>n,B6=M(Rr,e=>xl(e,t=>t.coordinate)),Hv=M([No,Kv,$O,Uv],PO),Gv=M([Hv,Io,Wi,Ui],Lv),V6=(e,t,r)=>{if(t!=null){var n=No(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},LO=M([No,Kv,$O,Uv],OO),Fs=M([Tr,jr,ve,Ve,Rr,Uv,LO],EO),W6=M([Hv,Fs],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),zO=M([Rr,Gv],yO),K6=M([LO,Gv,Mr,Wi,zO,CO,Kv],AO),U6=M([Hv,Gv],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),H6=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&z6(e,a)){var s=fF(e,t),l=DO(s,i,o,r,n),c=$6(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},G6=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=j3(e,r);if(s){var l=pF(s,t),c=DO(l,a,i,n,o),u=L6(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},q6=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?H6(e,t,n,o,i,a,s):G6(e,t,r,n,o,i,a)},Y6=M(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}}),X6=M(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:j4}});function nx(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 ox(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nx(Object(r),!0).forEach(function(n){Z6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z6(e,t,r){return(t=J6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J6(e){var t=Q6(e,"string");return typeof t=="symbol"?t:t+""}function Q6(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 eK={},tK={zIndexMap:Object.values(De).reduce((e,t)=>ox(ox({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),eK)},rK=new Set(Object.values(De));function nK(e){return rK.has(e)}var FO=xt({name:"zIndex",initialState:tK,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&&!nK(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:oK,unregisterZIndexPortal:iK,registerZIndexPortalElement:aK,unregisterZIndexPortalElement:sK}=FO.actions,lK=FO.reducer;function wt(e){var{zIndex:t,children:r}=e,n=KF(),o=n&&t!==void 0&&t!==0,i=ct(),a=Se();A.useLayoutEffect(()=>o?(a(oK({zIndex:t})),()=>{a(iK({zIndex:t}))}):Fn,[a,t,o]);var s=J(l=>Y6(l,t,i));return o?s?wi.createPortal(r,s):null:r}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 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 Ia(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){cK(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 cK(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=dK(e,"string");return typeof t=="symbol"?t:t+""}function dK(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 fK(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return A.isValidElement(t)?A.cloneElement(t,n):A.createElement(r,n)}function pK(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=KB,h=De.cursorLine;else if(u==="BarChart")g=UB(s,d,i,a),m=L1,h=De.cursorRectangle;else if(s==="radial"&&hP(d)){var{cx:b,cy:x,radius:w,startAngle:S,endAngle:E}=F1(d);g={cx:b,cy:x,startAngle:S,endAngle:E,innerRadius:w,outerRadius:w},m=V1,h=De.cursorLine}else g={points:k3(s,d,i)},m=$p,h=De.cursorLine;var P=typeof l=="object"&&"className"in l?l.className:void 0,O=Ia(Ia(Ia(Ia({stroke:"#ccc",pointerEvents:"none"},i),g),On(l)),{},{payload:p,payloadIndex:v,className:de("recharts-tooltip-cursor",P)});return f.createElement(wt,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:h},f.createElement(fK,{cursor:l,cursorComp:m,cursorProps:O}))}function vK(e){var t=I6(),r=x1(),n=Bn(),o=F6();return t==null||r==null||n==null||o==null?null:f.createElement(pK,bf({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:o}))}var BO=A.createContext(null),mK=()=>A.useContext(BO),id={exports:{}},ax;function hK(){return ax||(ax=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 S=h.length,E;for(w=0;w<S;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(E=1,x=new Array(b-1);E<b;E++)x[E-1]=arguments[E];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})(id)),id.exports}var gK=hK();const yK=Jr(gK);var vi=new yK,xf="recharts.syncEvent.tooltip",sx="recharts.syncEvent.brush",qv=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!or(r))return e[r]}},bK={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},VO=xt({name:"options",initialState:bK,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),xK=VO.reducer,{createEventEmitter:wK}=VO.actions;function SK(e){return e.tooltip.syncInteraction}var PK={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},WO=xt({name:"chartData",initialState:PK,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:lx,setDataStartEndIndexes:EK,setComputedData:fre}=WO.actions,OK=WO.reducer,CK=["x","y"];function cx(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?cx(Object(r),!0).forEach(function(n){AK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AK(e,t,r){return(t=_K(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _K(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 jK(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 MK(){var e=J(dv),t=J(fv),r=Se(),n=J($E),o=J(Rr),i=Bn(),a=Il(),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=jK(v,CK),{x:b,y:x,width:w,height:S}=u.payload.sourceViewBox,E=eo(eo({},h),{},{x:a.x+(w?(g-b)/w:0)*a.width,y:a.y+(S?(m-x)/S:0)*a.height});r(eo(eo({},u),{},{payload:eo(eo({},u.payload),{},{coordinate:E})}))}else r(u);return}if(o!=null){var P;if(typeof n=="function"){var O={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,O);P=o[C]}else n==="value"&&(P=o.find(F=>String(F.value)===u.payload.label));var{coordinate:N}=u.payload;if(P==null||u.payload.active===!1||N==null||a==null){r(gf({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:$,y:I}=N,_=Math.min($,a.x+a.width),j=Math.min(I,a.y+a.height),R={x:i==="horizontal"?P.coordinate:_,y:i==="horizontal"?j:P.coordinate},V=gf({active:u.payload.active,coordinate:R,dataKey:u.payload.dataKey,index:String(P.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(V)}}};return vi.on(xf,l),()=>{vi.off(xf,l)}},[s,r,t,e,n,o,i,a])}function IK(){var e=J(dv),t=J(fv),r=Se();A.useEffect(()=>{if(e==null)return Fn;var n=(o,i,a)=>{t!==a&&e===o&&r(EK(i))};return vi.on(sx,n),()=>{vi.off(sx,n)}},[r,t,e])}function kK(){var e=Se();A.useEffect(()=>{e(wK())},[e]),MK(),IK()}function RK(e,t,r,n,o,i){var a=J(v=>V6(v,e,t)),s=J(fv),l=J(dv),c=J($E),u=J(SK),d=u?.active,p=Il();A.useEffect(()=>{if(!d&&l!=null&&s!=null){var v=gf({active:i,coordinate:r,dataKey:a,index:o,label:typeof n=="number"?String(n):n,sourceViewBox:p,graphicalItemId:void 0});vi.emit(xf,l,v,s)}},[d,r,a,o,n,s,l,c,i,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 dx(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){DK(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 DK(e,t,r){return(t=$K(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $K(e){var t=LK(e,"string");return typeof t=="symbol"?t:t+""}function LK(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 zK(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(PB,t)}var fx=[],BK={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 Yv(e){var t,r,n=Le(e,BK),{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:S,portal:E,axisId:P}=n,O=Se(),C=typeof S=="number"?String(S):S;A.useEffect(()=>{O(DW({shared:x,trigger:w,axisId:P,active:o,defaultIndex:C}))},[O,x,w,P,o,C]);var N=Il(),$=I1(),I=jW(x),{activeIndex:_,isActive:j}=(t=J(K=>U6(K,I,w,C)))!==null&&t!==void 0?t:{},R=J(K=>K6(K,I,w,C)),V=J(K=>zO(K,I,w,C)),F=J(K=>W6(K,I,w,C)),W=R,T=mK(),k=(r=o??j)!==null&&r!==void 0?r:!1,[G,ee]=NP([W,k]),ne=I==="axis"?V:void 0;RK(I,w,F,ne,_,k);var ie=E??T;if(ie==null||N==null||I==null)return null;var oe=W??fx;k||(oe=fx),c&&oe.length&&(oe=OP(oe.filter(K=>K.value!=null&&(K.hide!==!0||n.includeHidden)),p,zK));var le=oe.length>0,Oe=f.createElement(jB,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:k,coordinate:F,hasPayload:le,offset:d,position:v,reverseDirection:g,useTranslate3d:m,viewBox:N,wrapperStyle:h,lastBoundingBox:G,innerRef:ee,hasPortalFromProps:!!E},FK(l,dx(dx({},n),{},{payload:oe,label:ne,active:k,activeIndex:_,coordinate:F,accessibilityLayer:$})));return f.createElement(f.Fragment,null,wi.createPortal(Oe,ie),k&&f.createElement(vK,{cursor:b,tooltipEventType:I,coordinate:F,payload:oe,index:_}))}var Gi=e=>null;Gi.displayName="Cell";function VK(e,t,r){return(t=WK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WK(e){var t=KK(e,"string");return typeof t=="symbol"?t:t+""}function KK(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 UK{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 px(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 HK(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?px(Object(r),!0).forEach(function(n){GK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GK(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=YK(e,"string");return typeof t=="symbol"?t:t+""}function YK(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 XK={cacheSize:2e3,enableCache:!0},KO=HK({},XK),vx=new UK(KO.cacheSize),ZK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},mx="recharts_measurement_span";function JK(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 hx=(e,t)=>{try{var r=document.getElementById(mx);r||(r=document.createElement("span"),r.setAttribute("id",mx),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,ZK,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},ei=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ll.isSsr)return{width:0,height:0};if(!KO.enableCache)return hx(t,r);var n=JK(t,r),o=vx.get(n);if(o)return o;var i=hx(t,r);return vx.set(n,i),i},UO;function QK(e,t,r){return(t=eU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eU(e){var t=tU(e,"string");return typeof t=="symbol"?t:t+""}function tU(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 gx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rU=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,nU=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,oU={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},iU=["cm","mm","pt","pc","in","Q","px"];function aU(e){return iU.includes(e)}var ro="NaN";function sU(e,t){return e*oU[t]}class rt{static parse(t){var r,[,n,o]=(r=nU.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!==""&&!rU.test(r)&&(this.num=NaN,this.unit=""),aU(r)&&(this.num=sU(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)}}UO=rt;QK(rt,"NaN",new UO(NaN,""));function HO(e){if(e==null||e.includes(ro))return ro;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=gx.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 ro;t=t.replace(gx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,p]=(c=yx.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 ro;t=t.replace(yx,m.toString())}return t}var bx=/\(([^()]*)\)/;function lU(e){for(var t=e,r;(r=bx.exec(t))!=null;){var[,n]=r;t=t.replace(bx,HO(n))}return t}function cU(e){var t=e.replace(/\s+/g,"");return t=lU(t),t=HO(t),t}function uU(e){try{return cU(e)}catch{return ro}}function ad(e){var t=uU(e.slice(5,-1));return t===ro?"":t}var dU=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],fU=["dx","dy","angle","className","breakAll"];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 xx(e,t){if(e==null)return{};var r,n,o=pU(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 pU(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 GO=/[ \f\n\r\t\v\u2028\u2029]+/,qO=e=>{var{children:t,breakAll:r,style:n}=e;try{var o=[];Te(t)||(r?o=t.toString().split(""):o=t.toString().split(GO));var i=o.map(s=>({word:s,width:ei(s,n).width})),a=r?0:ei(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function vU(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var YO=(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},[]),XO=e=>e.reduce((t,r)=>t.width>r.width?t:r),mU="…",wx=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=qO({breakAll:r,style:n,children:l+mU});if(!c)return[!1,[]];var u=YO(c.wordsWithComputedWidth,i,a,s),d=u.length>o||XO(u).width>Number(i);return[d,u]},hU=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=q(i),u=String(a),d=YO(t,n,r,o);if(!c||o)return d;var p=d.length>i||XO(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,S]=wx(u,x,l,s,i,n,r,o),[E]=wx(u,b,l,s,i,n,r,o);if(!w&&!E&&(v=b+1),w&&E&&(g=b-1),!w&&E){h=S;break}m++}return h||d},Sx=e=>{var t=Te(e)?[]:e.toString().split(GO);return[{words:t,width:void 0}]},gU=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!Ll.isSsr){var s,l,c=qO({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;s=u,l=d}else return Sx(n);return hU({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return Sx(n)},ZO="#808080",yU={angle:0,breakAll:!1,capHeight:"0.71em",fill:ZO,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},oc=A.forwardRef((e,t)=>{var r=Le(e,yU),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,d=xx(r,dU),p=A.useMemo(()=>gU({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=xx(d,fU);if(!ir(n)||!ir(o)||p.length===0)return null;var w=Number(n)+(q(v)?v:0),S=Number(o)+(q(g)?g:0);if(!ce(w)||!ce(S))return null;var E;switch(u){case"start":E=ad("calc(".concat(a,")"));break;case"middle":E=ad("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:E=ad("calc(".concat(p.length-1," * -").concat(i,")"));break}var P=[],O=p[0];if(l&&O!=null){var C=O.width,{width:N}=d;P.push("scale(".concat(q(N)&&q(C)?N/C:1,")"))}return m&&P.push("rotate(".concat(m,", ").concat(w,", ").concat(S,")")),P.length&&(x.transform=P.join(" ")),f.createElement("text",wf({},mt(x),{ref:t,x:w,y:S,className:de("recharts-text",h),textAnchor:c,fill:s.includes("url")?ZO:s}),p.map(($,I)=>{var _=$.words.join(b?"":" ");return f.createElement("tspan",{x:w,dy:I===0?E:i,key:"".concat(_,"-").concat(I)},_)}))});oc.displayName="Text";function Px(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?Px(Object(r),!0).forEach(function(n){bU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bU(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=wU(e,"string");return typeof t=="symbol"?t:t+""}function wU(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 SU=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:o}=e,{x:i,y:a,height:s,upperWidth:l,lowerWidth:c}=Mp(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,S=w*n,E=w>0?"end":"start",P=w>0?"start":"end",O=o;if(r==="top"){var C={x:u+l/2,y:a-h,horizontalAnchor:"middle",verticalAnchor:b};return O&&(C.height=Math.max(a-O.y,0),C.width=l),C}if(r==="bottom"){var N={x:d+c/2,y:a+s+h,horizontalAnchor:"middle",verticalAnchor:x};return O&&(N.height=Math.max(O.y+O.height-(a+s),0),N.width=c),N}if(r==="left"){var $={x:p-S,y:a+s/2,horizontalAnchor:E,verticalAnchor:"middle"};return O&&($.width=Math.max($.x-O.x,0),$.height=s),$}if(r==="right"){var I={x:p+v+S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"};return O&&(I.width=Math.max(O.x+O.width-I.x,0),I.height=s),I}var _=O?{width:v,height:s}:{};return r==="insideLeft"?Xt({x:p+S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"},_):r==="insideRight"?Xt({x:p+v-S,y:a+s/2,horizontalAnchor:E,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+S,y:a+h,horizontalAnchor:P,verticalAnchor:x},_):r==="insideTopRight"?Xt({x:u+l-S,y:a+h,horizontalAnchor:E,verticalAnchor:x},_):r==="insideBottomLeft"?Xt({x:d+S,y:a+s-h,horizontalAnchor:P,verticalAnchor:b},_):r==="insideBottomRight"?Xt({x:d+c-S,y:a+s-h,horizontalAnchor:E,verticalAnchor:b},_):r&&typeof r=="object"&&(q(r.x)||_n(r.x))&&(q(r.y)||_n(r.y))?Xt({x:i+at(r.x,v),y:a+at(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},_):Xt({x:g,y:a+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},_)},PU=["labelRef"],EU=["content"];function Ex(e,t){if(e==null)return{};var r,n,o=OU(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 OU(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 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 Zo(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){CU(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 CU(e,t,r){return(t=AU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AU(e){var t=_U(e,"string");return typeof t=="symbol"?t:t+""}function _U(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 JO=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(JO.Provider,{value:l},s)},QO=()=>{var e=A.useContext(JO),t=Il();return e||(t?Mp(t):void 0)},jU=A.createContext(null),NU=()=>{var e=A.useContext(jU),t=J(VE);return e||t},MU=e=>{var{value:t,formatter:r}=e,n=Te(e.children)?t:e.children;return typeof r=="function"?r(n):n},Xv=e=>e!=null&&typeof e=="function",IU=(e,t)=>{var r=qe(t-e),n=Math.min(Math.abs(t-e),360);return r*n},kU=(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),S=Re(s,l,g,b+(x?1:-1)*359),E="M".concat(w.x,",").concat(w.y,`
99
99
  A`).concat(g,",").concat(g,",0,1,").concat(x?0:1,`,
100
- `).concat(S.x,",").concat(S.y),P=Te(e.id)?ei("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:P,d:E})),f.createElement("textPath",{xlinkHref:"#".concat(P)},r))},kU=(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"}},qa=e=>e!=null&&"cx"in e&&q(e.cx),RU={angle:0,offset:5,zIndex:De.label,position:"middle",textBreakAll:!1};function DU(e){if(!qa(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 Fr(e){var t=Le(e,RU),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:u}=t,d=jU(),p=JO(),v=o==="center"?p:d??p,g,m,h;r==null?g=v:qa(r)?g=r:g=Np(r);var b=DU(g);if(!g||Te(i)&&Te(a)&&!A.isValidElement(s)&&typeof s!="function")return null;var x=Xo(Xo({},t),{},{viewBox:g});if(A.isValidElement(s)){var{labelRef:w}=x,S=Px(x,SU);return A.cloneElement(s,S)}if(typeof s=="function"){var{content:E}=x,P=Px(x,PU);if(m=A.createElement(s,P),A.isValidElement(m))return m}else m=NU(t);var O=mt(t);if(qa(g)){if(o==="insideStart"||o==="insideEnd"||o==="end")return IU(t,o,m,O,g);h=kU(g,t.offset,t.position)}else{if(!b)return null;var C=wU({viewBox:b,position:o,offset:t.offset,parentViewBox:qa(n)?void 0:n});h=Xo(Xo({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(nc,pr({ref:u,className:de("recharts-label",l)},O,h,{textAnchor:pU(O.textAnchor)?O.textAnchor:h.textAnchor,breakAll:c}),m))}Fr.displayName="Label";var $U=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?f.createElement(Fr,pr({key:"label-implicit"},n)):ir(e)?f.createElement(Fr,pr({key:"label-implicit",value:e},n)):A.isValidElement(e)?e.type===Fr?A.cloneElement(e,Xo({key:"label-implicit"},n)):f.createElement(Fr,pr({key:"label-implicit",content:e},n)):Yv(e)?f.createElement(Fr,pr({key:"label-implicit",content:e},n)):e&&typeof e=="object"?f.createElement(Fr,pr({},e,{key:"label-implicit"},n)):null};function LU(e){var{label:t,labelRef:r}=e,n=JO();return $U(t,n,r)||null}var ad={},sd={},Ox;function zU(){return Ox||(Ox=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(sd)),sd}var ld={},Cx;function FU(){return Cx||(Cx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(ld)),ld}var Ax;function BU(){return Ax||(Ax=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zU(),r=FU(),n=bp();function o(i){if(n.isArrayLike(i))return t.last(r.toArray(i))}e.last=o})(ad)),ad}var cd,_x;function VU(){return _x||(_x=1,cd=BU().last),cd}var WU=VU();const KU=Jr(WU);var UU=["valueAccessor"],HU=["dataKey","clockWise","id","textBreakAll","zIndex"];function Fs(){return Fs=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},Fs.apply(null,arguments)}function Tx(e,t){if(e==null)return{};var r,n,o=GU(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 GU(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 qU=e=>Array.isArray(e.value)?KU(e.value):e.value,QO=A.createContext(void 0),eC=QO.Provider,tC=A.createContext(void 0),YU=tC.Provider;function XU(){return A.useContext(QO)}function ZU(){return A.useContext(tC)}function Ya(e){var{valueAccessor:t=qU}=e,r=Tx(e,UU),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=Tx(r,HU),c=XU(),u=ZU(),d=c||u;return!d||!d.length?null:f.createElement(wt,{zIndex:s??De.label},f.createElement(Xe,{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(Fr,Fs({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}))})))}Ya.displayName="LabelList";function Xv(e){var{label:t}=e;return t?t===!0?f.createElement(Ya,{key:"labelList-implicit"}):f.isValidElement(t)||Yv(t)?f.createElement(Ya,{key:"labelList-implicit",content:t}):typeof t=="object"?f.createElement(Ya,Fs({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}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)}var rC=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",wf({},At(e),yp(e),{className:i,cx:t,cy:r,r:n})):null},nC=e=>e.graphicalItems.polarItems,JU=M([je,Fi],gv),oc=M([nC,ke,JU],yv),QU=M([oc],bv),ic=M([QU,Kl],xv),eH=M([ic,ke,oc],Sv);M([ic,ke,oc],(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 jx=()=>{},tH=M([ic,ke,oc,Ql,je],Cv),rH=M([ke,Ev,Ov,jx,tH,jx,ve,je],Av),oC=M([ke,ve,ic,eH,zi,je,rH],_v),nH=M([oC,_o,tn],Nv),oH=M([ke,oC,nH,je],Iv);M([tn,oH],WE);var iH={radiusAxis:{},angleAxis:{}},iC=xt({name:"polarAxis",initialState:iH,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:fre,removeRadiusAxis:pre,addAngleAxis:vre,removeAngleAxis:mre}=iC.actions,aH=iC.reducer;function aC(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function Nx(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 Mx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nx(Object(r),!0).forEach(function(n){sH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sH(e,t,r){return(t=lH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lH(e){var t=cH(e,"string");return typeof t=="symbol"?t:t+""}function cH(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 uH=(e,t)=>t,Zv=M([nC,uH],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),dH=[],Jv=(e,t,r)=>r?.length===0?dH:r,sC=M([Kl,Zv,Jv],(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=>Mx(Mx({},t.presentationProps),i.props))),o!=null)return o}}),fH=M([sC,Zv,Jv],(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:Po(a,t.dataKey),color:s,payload:n,type:t.legendType}})}),pH=M([sC,Zv,Jv,Ve],(e,t,r,n)=>{if(!(t==null||e==null))return m8({offset:n,pieSettings:t,displayedData:e,cells:r})}),Ia={exports:{}},ge={};var Ix;function vH(){if(Ix)return ge;Ix=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(j){if(typeof j=="object"&&j!==null){var R=j.$$typeof;switch(R){case e:switch(j=j.type,j){case r:case o:case n:case l:case c:return j;default:switch(j=j&&j.$$typeof,j){case a:case s:case d:case u:case i:return j;default:return R}}case t:return R}}}var w=i,S=e,E=s,P=r,O=d,C=u,N=t,$=o,I=n,_=l;return ge.ContextConsumer=a,ge.ContextProvider=w,ge.Element=S,ge.ForwardRef=E,ge.Fragment=P,ge.Lazy=O,ge.Memo=C,ge.Portal=N,ge.Profiler=$,ge.StrictMode=I,ge.Suspense=_,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(j){return x(j)===a},ge.isContextProvider=function(j){return x(j)===i},ge.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},ge.isForwardRef=function(j){return x(j)===s},ge.isFragment=function(j){return x(j)===r},ge.isLazy=function(j){return x(j)===d},ge.isMemo=function(j){return x(j)===u},ge.isPortal=function(j){return x(j)===t},ge.isProfiler=function(j){return x(j)===o},ge.isStrictMode=function(j){return x(j)===n},ge.isSuspense=function(j){return x(j)===l},ge.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===r||j===o||j===m||j===n||j===l||j===c||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===d||j.$$typeof===u||j.$$typeof===i||j.$$typeof===a||j.$$typeof===s||j.$$typeof===g||j.$$typeof===p||j[0]===v)},ge.typeOf=x,ge}var ye={};var kx;function mH(){return kx||(kx=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(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===o||B===m||B===n||B===l||B===c||B===h||x||typeof B=="object"&&B!==null&&(B.$$typeof===d||B.$$typeof===u||B.$$typeof===i||B.$$typeof===a||B.$$typeof===s||B.$$typeof===g||B.$$typeof===p||B[0]===v))}function S(B){if(typeof B=="object"&&B!==null){var z=B.$$typeof;switch(z){case e:var fe=B.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 z}}case t:return z}}}var E=a,P=i,O=e,C=s,N=r,$=d,I=u,_=t,j=o,R=n,V=l,F=!1,W=!1;function T(B){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(B){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(B){return S(B)===a}function ee(B){return S(B)===i}function ne(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function ie(B){return S(B)===s}function oe(B){return S(B)===r}function le(B){return S(B)===d}function Oe(B){return S(B)===u}function K(B){return S(B)===t}function ue(B){return S(B)===o}function L(B){return S(B)===n}function H(B){return S(B)===l}ye.ContextConsumer=E,ye.ContextProvider=P,ye.Element=O,ye.ForwardRef=C,ye.Fragment=N,ye.Lazy=$,ye.Memo=I,ye.Portal=_,ye.Profiler=j,ye.StrictMode=R,ye.Suspense=V,ye.isAsyncMode=T,ye.isConcurrentMode=k,ye.isContextConsumer=G,ye.isContextProvider=ee,ye.isElement=ne,ye.isForwardRef=ie,ye.isFragment=oe,ye.isLazy=le,ye.isMemo=Oe,ye.isPortal=K,ye.isProfiler=ue,ye.isStrictMode=L,ye.isSuspense=H,ye.isValidElementType=w,ye.typeOf=S})()),ye}var Rx;function hH(){return Rx||(Rx=1,process.env.NODE_ENV==="production"?Ia.exports=vH():Ia.exports=mH()),Ia.exports}var gH=hH(),Dx=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",$x=null,ud=null,lC=e=>{if(e===$x&&Array.isArray(ud))return ud;var t=[];return A.Children.forEach(e,r=>{Te(r)||(gH.isFragment(r)?t=t.concat(lC(r.props.children)):t.push(r))}),ud=t,$x=e,t};function Qv(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(o=>Dx(o)):n=[Dx(t)],lC(e).forEach(o=>{var i=Cn(o,"type.displayName")||Cn(o,"type.name");i&&n.indexOf(i)!==-1&&r.push(o)}),r}var cC=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,dd={},Lx;function yH(){return Lx||(Lx=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})(dd)),dd}var fd,zx;function bH(){return zx||(zx=1,fd=yH().isPlainObject),fd}var xH=bH();const wH=Jr(xH);var Fx,Bx,Vx,Wx,Kx;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){SH(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 SH(e,t,r){return(t=PH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PH(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 Bs(){return Bs=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},Bs.apply(null,arguments)}function Ho(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Gx=(e,t,r,n,o)=>{var i=r-n,a;return a=Me(Fx||(Fx=Ho(["M ",",",""])),e,t),a+=Me(Bx||(Bx=Ho(["L ",",",""])),e+r,t),a+=Me(Vx||(Vx=Ho(["L ",",",""])),e+r-i/2,t+o),a+=Me(Wx||(Wx=Ho(["L ",",",""])),e+r-i/2-n,t+o),a+=Me(Kx||(Kx=Ho(["L ",","," Z"])),e,t),a},OH={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},CH=e=>{var t=Le(e,OH),{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),S=ki(e,"trapezoid-");if(A.useEffect(()=>{if(p.current&&p.current.getTotalLength)try{var R=p.current.getTotalLength();R&&g(R)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var E=de("recharts-trapezoid",s);if(!d)return f.createElement("g",null,f.createElement("path",Bs({},mt(t),{className:E,d:Gx(r,n,o,i,a)})));var P=m.current,O=h.current,C=b.current,N=x.current,$=w.current,I="0px ".concat(v===-1?1:v,"px"),_="".concat(v,"px 0px"),j=I1(["strokeDasharray"],c,l);return f.createElement(Ii,{animationId:S,key:S,canBegin:v>0,duration:c,easing:l,isActive:d,begin:u},R=>{var V=Ae(P,o,R),F=Ae(O,i,R),W=Ae(C,a,R),T=Ae(N,r,R),k=Ae($,n,R);p.current&&(m.current=V,h.current=F,b.current=W,x.current=T,w.current=k);var G=R>0?{transition:j,strokeDasharray:_}:{strokeDasharray:I};return f.createElement("path",Bs({},mt(t),{className:E,d:Gx(T,k,V,F,W),ref:p,style:Hx(Hx({},G),t.style)}))})},AH=["option","shapeType","activeClassName"];function _H(e,t){if(e==null)return{};var r,n,o=TH(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 TH(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 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 Vs(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){jH(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 jH(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=MH(e,"string");return typeof t=="symbol"?t:t+""}function MH(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 IH(e,t){return Vs(Vs({},t),e)}function kH(e,t){return e==="symbols"}function Yx(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return f.createElement($1,r);case"trapezoid":return f.createElement(CH,r);case"sector":return f.createElement(B1,r);case"symbols":if(kH(t))return f.createElement(gp,r);break;case"curve":return f.createElement(Dp,r);default:return null}}function RH(e){return A.isValidElement(e)?e.props:e}function em(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,o=_H(e,AH),i;if(A.isValidElement(t))i=A.cloneElement(t,Vs(Vs({},o),RH(t)));else if(typeof t=="function")i=t(o,o.index);else if(wH(t)&&typeof t!="boolean"){var a=IH(t,o);i=f.createElement(Yx,{shapeType:r,elementProps:a})}else{var s=o;i=f.createElement(Yx,{shapeType:r,elementProps:s})}return o.isActive?f.createElement(Xe,{className:n},i):i}var tm=(e,t,r)=>{var n=Se();return(o,i)=>a=>{e?.(o,i,a),n(bO({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},rm=e=>{var t=Se();return(r,n)=>o=>{e?.(r,n,o),t(DW())}},nm=(e,t,r)=>{var n=Se();return(o,i)=>a=>{e?.(o,i,a),n($W({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};function om(e){var{tooltipEntrySettings:t}=e,r=Se(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(MW(t)):o.current!==t&&r(IW({prev:o.current,next:t})),o.current=t)},[t,r,n]),A.useLayoutEffect(()=>()=>{o.current&&(r(kW(o.current)),o.current=null)},[r]),null}function uC(e){var{legendPayload:t}=e,r=Se(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(T1(t)):o.current!==t&&r(j1({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(N1(o.current)),o.current=null)},[r]),null}function DH(e){var{legendPayload:t}=e,r=Se(),n=J(ve),o=A.useRef(null);return A.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(o.current===null?r(T1(t)):o.current!==t&&r(j1({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(N1(o.current)),o.current=null)},[r]),null}var pd,$H=()=>{var[e]=f.useState(()=>ei("uid-"));return e},LH=(pd=f.useId)!==null&&pd!==void 0?pd:$H;function zH(e,t){var r=LH();return t||(e?"".concat(e,"-").concat(r):r)}var FH=A.createContext(void 0),im=e=>{var{id:t,type:r,children:n}=e,o=zH("recharts-".concat(r),t);return f.createElement(FH.Provider,{value:o},n(o))},BH={cartesianItems:[],polarItems:[]},dC=xt({name:"graphicalItems",initialState:BH,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:VH,replaceCartesianGraphicalItem:WH,removeCartesianGraphicalItem:KH,addPolarGraphicalItem:UH,removePolarGraphicalItem:HH}=dC.actions,GH=dC.reducer,qH=e=>{var t=Se(),r=A.useRef(null);return A.useLayoutEffect(()=>{r.current===null?t(VH(e)):r.current!==e&&t(WH({prev:r.current,next:e})),r.current=e},[t,e]),A.useLayoutEffect(()=>()=>{r.current&&(t(KH(r.current)),r.current=null)},[t]),null},fC=A.memo(qH);function YH(e){var t=Se();return A.useLayoutEffect(()=>(t(UH(e)),()=>{t(HH(e))}),[t,e]),null}var XH=["key"],ZH=["onMouseEnter","onClick","onMouseLeave"],JH=["id"],QH=["id"];function Xx(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?Xx(Object(r),!0).forEach(function(n){e8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e8(e,t,r){return(t=t8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t8(e){var t=r8(e,"string");return typeof t=="symbol"?t:t+""}function r8(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 ac(e,t){if(e==null)return{};var r,n,o=n8(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 n8(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 o8(e){var t=A.useMemo(()=>Qv(e.children,Hi),[e.children]),r=J(n=>fH(n,e.id,t));return r==null?null:f.createElement(DH,{legendPayload:r})}var i8=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:Po(s,t),hide:l,type:c,color:a,unit:"",graphicalItemId:u}};return f.createElement(om,{tooltipEntrySettings:d})}),a8=(e,t)=>e>t?"start":e<t?"end":"middle",s8=(e,t,r)=>at(typeof t=="function"?t(e):t,r,r*.8),l8=(e,t,r)=>{var{top:n,left:o,width:i,height:a}=t,s=L1(i,a),l=o+at(e.cx,i,i/2),c=n+at(e.cy,a,a/2),u=at(e.innerRadius,s,0),d=s8(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}},c8=(e,t)=>{var r=qe(t-e),n=Math.min(Math.abs(t-e),360);return r*n},u8=(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=ac(t,XH);return f.createElement(Dp,Yr({},o,{type:"linear",className:r}))},d8=(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",aC(e));return f.createElement(nc,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=En(o),c=En(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:a8(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(Xe,null,i&&u8(i,b),d8(o,h,be(p,a))))});return f.createElement(Xe,{className:"recharts-pie-labels"},d)}function p8(e){var{sectors:t,props:r,showLabels:n}=e,{label:o}=r;return typeof o=="object"&&o!=null&&"position"in o?f.createElement(Xv,{label:o}):f.createElement(f8,{sectors:t,props:r,showLabels:n})}function v8(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:o,shape:i,id:a}=e,s=J(qr),l=J(Vv),c=J(S6),{onMouseEnter:u,onClick:d,onMouseLeave:p}=o,v=ac(o,ZH),g=tm(u,o.dataKey,a),m=rm(p),h=nm(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,S=String(x)===s&&(l==null||o.dataKey===l)&&w,E=s?n:null,P=r&&S?r:E,O=Ie(Ie({},b),{},{stroke:b.stroke,tabIndex:-1,[v1]:x,[m1]:a});return f.createElement(Xe,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(em,Yr({option:i??P,index:x,shapeType:"sector",isActive:S},O)))}))}function m8(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=c8(s,l),g=Math.abs(v),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,h=n.filter(P=>be(P,c,0)!==0).length,b=(g>=360?h:h-1)*m,x=g-h*p-b,w=n.reduce((P,O)=>{var C=be(O,c,0);return P+(q(C)?C:0)},0),S;if(w>0){var E;S=n.map((P,O)=>{var C=be(P,c,0),N=be(P,u,O),$=l8(r,i,P),I=(q(C)?C:0)/w,_,j=Ie(Ie({},P),o&&o[O]&&o[O].props);O?_=E.endAngle+qe(v)*m*(C!==0?1:0):_=s;var R=_+qe(v)*((C!==0?p:0)+I*x),V=(_+R)/2,F=($.innerRadius+$.outerRadius)/2,W=[{name:N,value:C,payload:j,dataKey:c,type:d,graphicalItemId:r.id}],T=Re($.cx,$.cy,F,V);return E=Ie(Ie(Ie(Ie({},r.presentationProps),{},{percent:I,cornerRadius:typeof a=="string"?parseFloat(a):a,name:N,tooltipPayload:W,midAngle:V,middleRadius:F,tooltipPosition:T},j),$),{},{value:C,dataKey:c,startAngle:_,endAngle:R,payload:j,paddingAngle:qe(v)*m}),E})}return S}function h8(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(YU,{value:t?o:void 0},n)}function g8(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=ki(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(h8,{showLabels:!m,sectors:o},f.createElement(Ii,{animationId:v,begin:a,duration:s,isActive:i,easing:l,onAnimationStart:x,onAnimationEnd:b,key:v},w=>{var S,E=[],P=o&&o[0],O=(S=P?.startAngle)!==null&&S!==void 0?S:0;return o?.forEach((C,N)=>{var $=g&&g[N],I=N>0?Cn(C,"paddingAngle",0):0;if($){var _=Ae($.endAngle-$.startAngle,C.endAngle-C.startAngle,w),j=Ie(Ie({},C),{},{startAngle:O+I,endAngle:O+_+I});E.push(j),O=j.endAngle}else{var{endAngle:R,startAngle:V}=C,F=Ae(0,R-V,w),W=Ie(Ie({},C),{},{startAngle:O+I,endAngle:O+F+I});E.push(W),O=W.endAngle}}),r.current=E,f.createElement(Xe,null,f.createElement(v8,{sectors:E,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),f.createElement(p8,{showLabels:!m,sectors:o,props:t}),t.children)}var y8={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 b8(e){var{id:t}=e,r=ac(e,JH),{hide:n,className:o,rootTabIndex:i}=e,a=A.useMemo(()=>Qv(e.children,Hi),[e.children]),s=J(u=>pH(u,t,a)),l=A.useRef(null),c=de("recharts-pie",o);return n||s==null?(l.current=null,f.createElement(Xe,{tabIndex:i,className:c})):f.createElement(wt,{zIndex:e.zIndex},f.createElement(i8,{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(Xe,{tabIndex:i,className:c},f.createElement(g8,{props:Ie(Ie({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function pC(e){var t=Le(e,y8),{id:r}=t,n=ac(t,QH),o=At(n);return f.createElement(im,{id:r,type:"pie"},i=>f.createElement(f.Fragment,null,f.createElement(YH,{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(o8,Yr({},n,{id:i})),f.createElement(b8,Yr({},n,{id:i}))))}pC.displayName="Pie";var x8=["points"];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 vd(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){w8(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 w8(e,t,r){return(t=S8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S8(e){var t=P8(e,"string");return typeof t=="symbol"?t:t+""}function P8(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(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ws.apply(null,arguments)}function E8(e,t){if(e==null)return{};var r,n,o=O8(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 O8(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 C8(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=E8(i,x8);return f.createElement(rC,Ws({},s,{className:o}))}function A8(e,t){return e==null?!1:t?!0:e.length===1}function _8(e){var{points:t,dot:r,className:n,dotClassName:o,dataKey:i,baseProps:a,needClip:s,clipPathId:l,zIndex:c=De.scatter}=e;if(!A8(t,r))return null;var u=cC(r),d=P2(r),p=t.map((g,m)=>{var h,b,x=vd(vd(vd({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(C8,{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(Xe,Ws({className:n},v),p))}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 Qx(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){T8(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 T8(e,t,r){return(t=j8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j8(e){var t=N8(e,"string");return typeof t=="symbol"?t:t+""}function N8(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 vC=0,M8={xAxis:{},yAxis:{},zAxis:{}},mC=xt({name:"cartesianAxis",initialState:M8,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]=Qx(Qx({},o),{},{width:n,widthHistory:s})}}}}),{addXAxis:I8,replaceXAxis:k8,removeXAxis:R8,addYAxis:D8,replaceYAxis:$8,removeYAxis:L8,addZAxis:hre,replaceZAxis:gre,removeZAxis:yre,updateYAxisWidth:z8}=mC.actions,F8=mC.reducer,B8=M([Ve],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),V8=M([B8,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)}}),am=()=>J(V8),W8=()=>J(A6);function ew(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 md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ew(Object(r),!0).forEach(function(n){K8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ew(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K8(e,t,r){return(t=U8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U8(e){var t=H8(e,"string");return typeof t=="symbol"?t:t+""}function H8(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 G8=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=md(md(md({},s),En(o)),yp(o)),c;return A.isValidElement(o)?c=A.cloneElement(o,l):typeof o=="function"?c=o(l):c=f.createElement(rC,l),f.createElement(Xe,{className:"recharts-active-dot",clipPath:a},c)};function q8(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:o,clipPath:i,zIndex:a=De.activeDot}=e,s=J(qr),l=W8();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(G8,{point:c,childIndex:Number(s),mainColor:r,dataKey:o,activeDot:n,clipPath:i}))}var tw=(e,t,r)=>{var n=r??e;if(!Te(n))return at(n,t,0)},Y8=(e,t,r)=>{var n={},o=e.filter(ql),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=tw(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=tw(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...s,...l]};function rw(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 ka(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(n){X8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X8(e,t,r){return(t=Z8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z8(e){var t=J8(e,"string");return typeof t=="symbol"?t:t+""}function J8(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 Q8(e,t,r,n,o){var i,a=n.length;if(!(a<1)){var s=at(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 S,E={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:g.offset+g.size+s,size:u?d:(S=w.barSize)!==null&&S!==void 0?S:0}},P=[...x,E];return g=E.position,P},c)}else{var m=at(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,S)=>[...x,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(h+s)*S+(h-b)/2,size:b}}],c)}return l}}var eG=(e,t,r,n,o,i,a)=>{var s=Te(a)?t:a,l=Q8(r,n,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>ka(ka({},c),{},{position:ka(ka({},c.position),{},{offset:c.position.offset-o/2})}))),l},tG=(e,t)=>{var r=mv(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)}}}},rG=(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 nG(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ce(e.zIndex)?e.zIndex:t}var hC=e=>{var{chartData:t}=e,r=Se(),n=ct();return A.useEffect(()=>n?()=>{}:(r(sx(t)),()=>{r(sx(void 0))}),[t,r,n]),null},nw={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},gC=xt({name:"brush",initialState:nw,reducers:{setBrushSettings(e,t){return t.payload==null?nw:t.payload}}}),{setBrushSettings:bre}=gC.actions,oG=gC.reducer;function iG(e){return(e%180+180)%180}var aG=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=iG(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)},sG={dots:[],areas:[],lines:[]},yC=xt({name:"referenceElements",initialState:sG,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:xre,removeDot:wre,addArea:Sre,removeArea:Pre,addLine:Ere,removeLine:Ore}=yC.actions,lG=yC.reducer,cG=A.createContext(void 0),uG=e=>{var{children:t}=e,[r]=A.useState("".concat(ei("recharts"),"-clip")),n=am();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return f.createElement(cG.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 bC(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 dG(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return aG(n,r)}function fG(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 vi(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 pG(e,t){return bC(e,t+1)}function vG(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:bC(n,c)};var m=l,h,b=()=>(h===void 0&&(h=r(g,m)),h),x=g.coordinate,w=l===0||vi(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 mG(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 S=n[m];if(S==null)return 0;var E=m,P,O=()=>(P===void 0&&(P=r(S,E)),P),C=S.coordinate,N=m===u||vi(e,C,O,d,l);if(!N)return p=!1,1;N&&(d=C+e*(O()/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 ow(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?ow(Object(r),!0).forEach(function(n){hG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hG(e,t,r){return(t=gG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gG(e){var t=yG(e,"string");return typeof t=="symbol"?t:t+""}function yG(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 bG(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=ot(ot({},g),{},{tickCoord:b>0?g.coordinate-b*e:g.coordinate})}else i[p]=g=ot(ot({},g),{},{tickCoord:g.coordinate});if(g.tickCoord!=null){var x=vi(e,g.tickCoord,h,s,l);x&&(l=g.tickCoord-e*(h()/2+o),i[p]=ot(ot({},g),{},{isShow:!0}))}},u=a-1;u>=0;u--)c(u);return i}function xG(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=ot(ot({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),u.tickCoord!=null){var v=vi(e,u.tickCoord,()=>d,l,c);v&&(c=u.tickCoord-e*(d/2+o),a[s-1]=ot(ot({},u),{},{isShow:!0}))}}}for(var g=i?s-1:s,m=function(x){var w=a[x];if(w==null)return 1;var S=w,E,P=()=>(E===void 0&&(E=r(w,x)),E);if(x===0){var O=e*(S.coordinate-e*P()/2-l);a[x]=S=ot(ot({},S),{},{tickCoord:O<0?S.coordinate-O*e:S.coordinate})}else a[x]=S=ot(ot({},S),{},{tickCoord:S.coordinate});if(S.tickCoord!=null){var C=vi(e,S.tickCoord,P,l,c);C&&(l=S.tickCoord+e*(P()/2+o),a[x]=ot(ot({},S),{},{isShow:!0}))}},h=0;h<g;h++)m(h);return a}function sm(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)||$l.isSsr){var p;return(p=pG(o,q(l)?l:0))!==null&&p!==void 0?p:[]}var v=[],g=s==="top"||s==="bottom"?"width":"height",m=u&&g==="width"?Qo(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=(E,P)=>{var O=typeof c=="function"?c(E.value,P):E.value;return g==="width"?dG(Qo(O,{fontSize:t,letterSpacing:r}),m,d):Qo(O,{fontSize:t,letterSpacing:r})[g]},b=o[0],x=o[1],w=o.length>=2&&b!=null&&x!=null?qe(x.coordinate-b.coordinate):1,S=fG(i,w,g);return l==="equidistantPreserveStart"?vG(w,S,h,o,a):l==="equidistantPreserveEnd"?mG(w,S,h,o,a):(l==="preserveStart"||l==="preserveStartEnd"?v=xG(w,S,h,o,a,l==="preserveStartEnd"):v=bG(w,S,h,o,a),v.filter(E=>E.isShow))}var wG=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},SG=["axisLine","width","height","className","hide","ticks","axisType"];function PG(e,t){if(e==null)return{};var r,n,o=EG(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 EG(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 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 Ne(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){OG(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 OG(e,t,r){return(t=CG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CG(e){var t=AG(e,"string");return typeof t=="symbol"?t:t+""}function AG(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 _G(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 jG(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 MG(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,aC(t))),o=f.createElement(nc,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:S,events:E,axisType:P}=e,O=sm(Ne(Ne({},S),{},{ticks:r}),x,w),C=jG(u,d),N=NG(u,d),$=At(S),I=En(n),_={};typeof o=="object"&&(_=o);var j=Ne(Ne({},$),{},{fill:"none"},_),R=O.map(W=>Ne({entry:W},TG(W,p,v,g,m,u,h,d,b))),V=R.map(W=>{var{entry:T,line:k}=W;return f.createElement(Xe,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},o&&f.createElement("line",Mn({},j,k,{className:de("recharts-cartesian-axis-tick-line",Cn(o,"className"))})))}),F=R.map((W,T)=>{var k,G,{entry:ee,tick:ne}=W,ie=Ne(Ne(Ne(Ne({verticalAnchor:N},$),{},{textAnchor:C,stroke:"none",fill:i},ne),{},{index:T,payload:ee,visibleTicksCount:O.length,tickFormatter:a,padding:l},c),{},{angle:(k=(G=c?.angle)!==null&&G!==void 0?G:$.angle)!==null&&k!==void 0?k:0}),oe=Ne(Ne({},ie),I);return f.createElement(Xe,Mn({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(ee.value,"-").concat(ee.coordinate,"-").concat(ee.tickCoord)},Oi(E,ee,T)),n&&f.createElement(MG,{option:n,tickProps:oe,value:"".concat(typeof a=="function"?a(ee.value,T):ee.value).concat(s||"")}))});return f.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(P,"-ticks")},F.length>0&&f.createElement(wt,{zIndex:De.label},f.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(P,"-tick-labels"),ref:t},F)),V.length>0&&f.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(P,"-tick-lines")},V))}),kG=A.forwardRef((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l}=e,c=PG(e,SG),[u,d]=A.useState(""),[p,v]=A.useState(""),g=A.useRef(null);A.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var h;return wG({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),S=w.fontSize,E=w.letterSpacing;(S!==u||E!==p)&&(d(S),v(E))}}},[u,p]);return a||n!=null&&n<=0||o!=null&&o<=0?null:f.createElement(wt,{zIndex:e.zIndex},f.createElement(Xe,{className:de("recharts-cartesian-axis",i)},f.createElement(_G,{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(_U,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},f.createElement(LU,{label:e.label,labelRef:e.labelRef}),e.children)))}),lm=f.forwardRef((e,t)=>{var r=Le(e,gr);return f.createElement(kG,Mn({},r,{ref:t}))});lm.displayName="CartesianAxis";var RG=["x1","y1","x2","y2","key"],DG=["offset"],$G=["xAxisId","yAxisId"],LG=["xAxisId","yAxisId"];function aw(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 it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(r),!0).forEach(function(n){zG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zG(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=BG(e,"string");return typeof t=="symbol"?t:t+""}function BG(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 Ks(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 WG=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 xC(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=Ks(r,RG),d=(o=At(u))!==null&&o!==void 0?o:{},{offset:p}=d,v=Ks(d,DG);n=f.createElement("line",gn({},v,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function KG(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=Ks(e,$G),l=o.map((c,u)=>{var d=it(it({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return f.createElement(xC,{key:"line-".concat(u),option:n,lineItemProps:d})});return f.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function UG(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=Ks(e,LG),l=o.map((c,u)=>{var d=it(it({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return f.createElement(xC,{option:n,lineItemProps:d,key:"line-".concat(u)})});return f.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function HG(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 GG(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 qG=(e,t)=>{var{xAxis:r,width:n,height:o,offset:i}=e;return d1(sm(it(it(it({},gr),r),{},{ticks:f1(r),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},YG=(e,t)=>{var{yAxis:r,width:n,height:o,offset:i}=e;return d1(sm(it(it(it({},gr),r),{},{ticks:f1(r),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},XG={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:De.grid};function cm(e){var t=Mp(),r=Ip(),n=b1(),o=it(it({},Le(e,XG)),{},{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=>Yb(N,"xAxis",i,g)),h=J(N=>Yb(N,"yAxis",a,g));if(!ar(c)||!ar(u)||!q(s)||!q(l))return null;var b=o.verticalCoordinatesGenerator||qG,x=o.horizontalCoordinatesGenerator||YG,{horizontalPoints:w,verticalPoints:S}=o;if((!w||!w.length)&&typeof x=="function"){var E=p&&p.length,P=x({yAxis:h?it(it({},h),{},{ticks:E?p:h.ticks}):void 0,width:t??c,height:r??u,offset:n},E?!0:d);hs(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(w=P)}if((!S||!S.length)&&typeof b=="function"){var O=v&&v.length,C=b({xAxis:m?it(it({},m),{},{ticks:O?v:m.ticks}):void 0,width:t??c,height:r??u,offset:n},O?!0:d);hs(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(S=C)}return f.createElement(wt,{zIndex:o.zIndex},f.createElement("g",{className:"recharts-cartesian-grid"},f.createElement(WG,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),f.createElement(HG,gn({},o,{horizontalPoints:w})),f.createElement(GG,gn({},o,{verticalPoints:S})),f.createElement(KG,gn({},o,{offset:n,horizontalPoints:w,xAxis:m,yAxis:h})),f.createElement(UG,gn({},o,{offset:n,verticalPoints:S,xAxis:m,yAxis:h}))))}cm.displayName="CartesianGrid";var ZG={},wC=xt({name:"errorBars",initialState:ZG,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:Cre,replaceErrorBar:Are,removeErrorBar:_re}=wC.actions,JG=wC.reducer,QG=["children"];function eq(e,t){if(e==null)return{};var r,n,o=tq(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 tq(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 rq={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},nq=A.createContext(rq);function SC(e){var{children:t}=e,r=eq(e,QG);return f.createElement(nq.Provider,{value:r},t)}function um(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:Ue.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:He.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function PC(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=am(),{needClipX:i,needClipY:a,needClip:s}=um(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 EC=(e,t,r,n)=>Gr(e,"xAxis",t,n),OC=(e,t,r,n)=>Hr(e,"xAxis",t,n),CC=(e,t,r,n)=>Gr(e,"yAxis",r,n),AC=(e,t,r,n)=>Hr(e,"yAxis",r,n),oq=M([ve,EC,CC,OC,AC],(e,t,r,n,o)=>_r(e,"xAxis")?co(t,n,!1):co(r,o,!1)),iq=(e,t,r,n,o)=>o;function aq(e){return e.type==="line"}var sq=M([Zl,iq],(e,t)=>e.filter(aq).find(r=>r.id===t)),lq=M([ve,EC,CC,OC,AC,sq,oq,av],(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 Xq({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:o,dataKey:d,bandSize:a,displayedData:v})}});function cq(e){var t=En(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 Ra={exports:{}},hd={};var sw;function uq(){if(sw)return hd;sw=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 hd.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(E){if(!b){if(b=!0,x=E,E=d(E),p!==void 0&&g.hasValue){var P=g.value;if(p(P,E))return w=P}return w=E}if(P=w,r(x,E))return P;var O=d(E);return p!==void 0&&p(P,O)?(x=E,P):(x=E,w=O)}var b=!1,x,w,S=u===void 0?null:u;return[function(){return h(c())},S===null?void 0:function(){return h(S())}]},[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},hd}var gd={};var lw;function dq(){return lw||(lw=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;gd.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(E){if(!b){if(b=!0,x=E,E=d(E),p!==void 0&&g.hasValue){var P=g.value;if(p(P,E))return w=P}return w=E}if(P=w,r(x,E))return P;var O=d(E);return p!==void 0&&p(P,O)?(x=E,P):(x=E,w=O)}var b=!1,x,w,S=u===void 0?null:u;return[function(){return h(c())},S===null?void 0:function(){return h(S())}]},[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())})()),gd}var cw;function fq(){return cw||(cw=1,process.env.NODE_ENV==="production"?Ra.exports=uq():Ra.exports=dq()),Ra.exports}fq();function pq(e){e()}function vq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){pq(()=>{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 uw={notify(){},get:()=>[]};function mq(e,t){let r,n=uw,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=vq())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=uw)}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 hq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gq=hq(),yq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bq=yq(),xq=()=>gq||bq?f.useLayoutEffect:f.useEffect,wq=xq();function dw(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Sq(e,t){if(dw(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])||!dw(e[r[o]],t[r[o]]))return!1;return!0}var Pq=Symbol.for("react-redux-context"),Eq=typeof globalThis<"u"?globalThis:{};function Oq(){if(!f.createContext)return{};const e=Eq[Pq]??=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 Cq=Oq();function Aq(e){const{children:t,context:r,serverState:n,store:o}=e,i=f.useMemo(()=>{const l=mq(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]);wq(()=>{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||Cq;return f.createElement(s.Provider,{value:i},t)}var _q=Aq,Tq=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function jq(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function sc(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(!Sq(e[n],t[n]))return!1}else if(!jq(e[n],t[n]))return!1;return!0}var Nq=["id"],Mq=["type","layout","connectNulls","needClip","shape"],Iq=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function mi(){return mi=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},mi.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 Zt(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){kq(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 kq(e,t,r){return(t=Rq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rq(e){var t=Dq(e,"string");return typeof t=="symbol"?t:t+""}function Dq(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 dm(e,t){if(e==null)return{};var r,n,o=$q(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 $q(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 Lq=e=>{var{dataKey:t,name:r,stroke:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:Po(r,t),payload:e}]},zq=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:zn,settings:{stroke:n,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:Po(a,t),hide:s,type:c,color:n,unit:l,graphicalItemId:u}};return f.createElement(om,{tooltipEntrySettings:d})}),_C=(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 Bq=(e,t,r)=>{var n=r.reduce((v,g)=>v+g);if(!n)return _C(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=dm(n,Nq),c=At(l);return f.createElement(_8,{points:r,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:c,needClip:a,clipPathId:t})}function Wq(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(eC,{value:t?o:void 0},r)}function pw(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=dm(i,Mq),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(em,mi({shapeType:"curve",option:u},p,{pathRef:r})),f.createElement(Vq,{points:n,clipPathId:t,props:i}))}function Kq(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function Uq(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=ki(a,"recharts-line-"),w=A.useRef(x),[S,E]=A.useState(!1),P=!S,O=A.useCallback(()=>{typeof m=="function"&&m(),E(!1)},[m]),C=A.useCallback(()=>{typeof h=="function"&&h(),E(!0)},[h]),N=Kq(n.current),$=A.useRef(0);w.current!==x&&($.current=i.current,w.current=x);var I=$.current;return f.createElement(Wq,{points:a,showLabels:P},r.children,f.createElement(Ii,{animationId:x,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:O,onAnimationStart:C,key:x},_=>{var j=Ae(I,N+I,_),R=Math.min(j,N),V;if(l)if(s){var F="".concat(s).split(/[,\s]+/gim).map(k=>parseFloat(k));V=Bq(R,N,F)}else V=_C(N,R);else V=s==null?void 0:String(s);if(_>0&&N>0&&(o.current=a,i.current=Math.max(i.current,R)),b){var W=b.length/a.length,T=_===1?a:a.map((k,G)=>{var ee=Math.floor(G*W);if(b[ee]){var ne=b[ee];return Zt(Zt({},k),{},{x:Ae(ne.x,k.x,_),y:Ae(ne.y,k.y,_)})}return p?Zt(Zt({},k),{},{x:Ae(v*2,k.x,_),y:Ae(g/2,k.y,_)}):Zt(Zt({},k),{},{x:k.x,y:k.y})});return o.current=T,f.createElement(pw,{props:r,points:T,clipPathId:t,pathRef:n,strokeDasharray:V})}return f.createElement(pw,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:V})}),f.createElement(Xv,{label:r.label}))}function Hq(e){var{clipPathId:t,props:r}=e,n=A.useRef(null),o=A.useRef(0),i=A.useRef(null);return f.createElement(Uq,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:o,pathRef:i})}var Gq=(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 qq 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}=cq(r),x=cC(r),w=h*2+b,S=p?"url(#clipPath-".concat(x?"":"dots-").concat(m,")"):void 0;return f.createElement(wt,{zIndex:v},f.createElement(Xe,{className:g},p&&f.createElement("defs",null,f.createElement(PC,{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(SC,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:Gq,errorBarOffset:0},f.createElement(Hq,{props:this.props,clipPathId:m}))),f.createElement(q8,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:S}))}}var TC={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 Yq(e){var t=Le(e,TC),{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=dm(t,Iq),{needClip:b}=um(v,g),x=am(),w=Fn(),S=ct(),E=J($=>lq($,v,g,S,m));if(w!=="horizontal"&&w!=="vertical"||E==null||x==null)return null;var{height:P,width:O,x:C,y:N}=x;return f.createElement(qq,mi({},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:E,layout:w,height:P,width:O,left:C,top:N,needClip:b}))}function Xq(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=Hg({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=Hg({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 Zq(e){var t=Le(e,TC),r=ct();return f.createElement(im,{id:t.id,type:"line"},n=>f.createElement(f.Fragment,null,f.createElement(uC,{legendPayload:Lq(t)}),f.createElement(zq,{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(fC,{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(Yq,mi({},t,{id:n}))))}var jC=f.memo(Zq,sc);jC.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:vC}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:vC}var Jq=process.env.NODE_ENV==="production",yd="Invariant failed";function Qq(e,t){if(Jq)throw new Error(yd);var r=typeof t=="function"?t():t,n=r?"".concat(yd,": ").concat(r):yd;throw new Error(n)}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 Us(e){return f.createElement(em,Sf({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var e9=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||Qq(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},t9=(e,t,r)=>r,r9=(e,t)=>t,Gi=M([Zl,r9],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),n9=M([Gi],e=>e?.maxBarSize),o9=(e,t,r,n)=>n,i9=M([ve,Zl,Wn,Kn,t9],(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")),a9=(e,t,r)=>{var n=ve(e),o=Wn(e,t),i=Kn(e,t);if(!(o==null||i==null))return n==="horizontal"?mf(e,"yAxis",i,r):mf(e,"xAxis",o,r)},s9=(e,t)=>{var r=ve(e),n=Wn(e,t),o=Kn(e,t);if(!(n==null||o==null))return r==="horizontal"?qb(e,"xAxis",n):qb(e,"yAxis",o)},l9=M([i9,S4,s9],Y8),c9=(e,t,r)=>{var n,o,i=Gi(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=IE(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},NC=(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)}},u9=M([l9,IE,w4,kE,c9,NC,n9],eG),d9=(e,t,r)=>{var n=Wn(e,t);if(n!=null)return Gr(e,"xAxis",n,r)},f9=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Gr(e,"yAxis",n,r)},p9=(e,t,r)=>{var n=Wn(e,t);if(n!=null)return Hr(e,"xAxis",n,r)},v9=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Hr(e,"yAxis",n,r)},m9=M([u9,Gi],rG),h9=M([a9,Gi],tG),g9=M([Ve,_p,d9,f9,p9,v9,m9,ve,p4,NC,h9,Gi,o9],(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 U9({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})}}),y9=["index"];function Pf(){return Pf=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},Pf.apply(null,arguments)}function b9(e,t){if(e==null)return{};var r,n,o=x9(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 x9(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 MC=A.createContext(void 0),w9=e=>{var t=A.useContext(MC);if(t!=null)return t.stackId;if(e!=null)return aF(e)},S9=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),P9=e=>{var t=A.useContext(MC);if(t!=null){var{stackId:r}=t;return"url(#".concat(S9(r,e),")")}},IC=e=>{var{index:t}=e,r=b9(e,y9),n=P9(t);return f.createElement(Xe,Pf({className:"recharts-bar-stack-layer",clipPath:n},r))},E9=["onMouseEnter","onMouseLeave","onClick"],O9=["value","background","tooltipPosition"],C9=["id"],A9=["onMouseEnter","onClick","onMouseLeave"];function Er(){return Er=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},Er.apply(null,arguments)}function vw(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?vw(Object(r),!0).forEach(function(n){_9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _9(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=j9(e,"string");return typeof t=="symbol"?t:t+""}function j9(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 Hs(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 M9=e=>{var{dataKey:t,name:r,fill:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:Po(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:zn,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:t,nameKey:void 0,name:Po(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:c}};return f.createElement(om,{tooltipEntrySettings:u})});function k9(e){var t=J(qr),{data:r,dataKey:n,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=Hs(i,E9),u=tm(a,n,i.id),d=rm(s),p=nm(l,n,i.id);if(!o||r==null)return null;var v=En(o);return f.createElement(wt,{zIndex:nG(o,De.barBackground)},r.map((g,m)=>{var{value:h,background:b,tooltipPosition:x}=g,w=Hs(g,O9);if(!b)return null;var S=u(g,m),E=d(g,m),P=p(g,m),O=ft(ft(ft(ft(ft({option:o,isActive:String(m)===t},w),{},{fill:"#eee"},b),v),Oi(c,g,m)),{},{onMouseEnter:S,onMouseLeave:E,onClick:P,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return f.createElement(Us,Er({key:"background-bar-".concat(m)},O))}))}function R9(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(eC,{value:t?o:void 0},r)}function D9(e){var{shape:t,activeBar:r,baseProps:n,entry:o,index:i,dataKey:a}=e,s=J(qr),l=J(Vv),c=r&&String(i)===s&&(l==null||a===l),u=c?r:t;return c?f.createElement(wt,{zIndex:De.activeBar},f.createElement(IC,{index:i},f.createElement(Us,Er({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a})))):f.createElement(Us,Er({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a}))}function $9(e){var{shape:t,baseProps:r,entry:n,index:o,dataKey:i}=e;return f.createElement(Us,Er({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:o,dataKey:i}))}function L9(e){var t,{data:r,props:n}=e,o=(t=At(n))!==null&&t!==void 0?t:{},{id:i}=o,a=Hs(o,C9),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:u,onClick:d,onMouseLeave:p}=n,v=Hs(n,A9),g=tm(u,l,i),m=rm(p),h=nm(d,l,i);return r?f.createElement(f.Fragment,null,r.map((b,x)=>f.createElement(IC,Er({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(D9,{shape:s,activeBar:c,baseProps:a,entry:b,index:x,dataKey:l}):f.createElement($9,{shape:s,baseProps:a,entry:b,index:x,dataKey:l})))):null}function z9(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=ki(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(R9,{showLabels:m,rects:n},f.createElement(Ii,{animationId:p,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:h,onAnimationStart:b,key:p},x=>{var w=x===1?n:n?.map((S,E)=>{var P=d&&d[E];if(P)return ft(ft({},S),{},{x:Ae(P.x,S.x,x),y:Ae(P.y,S.y,x),width:Ae(P.width,S.width,x),height:Ae(P.height,S.height,x)});if(o==="horizontal"){var O=Ae(0,S.height,x),C=Ae(S.stackedBarStart,S.y,x);return ft(ft({},S),{},{y:C,height:O})}var N=Ae(0,S.width,x),$=Ae(S.stackedBarStart,S.x,x);return ft(ft({},S),{},{width:N,x:$})});return x>0&&(r.current=w??null),w==null?null:f.createElement(Xe,null,f.createElement(L9,{props:t,data:w}))}),f.createElement(Xv,{label:t.label}),t.children)}function F9(e){var t=A.useRef(null);return f.createElement(z9,{previousRectanglesRef:t,props:e})}var kC=0,B9=(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(Xe,{className:u,id:c},s&&f.createElement("defs",null,f.createElement(PC,{clipPathId:d,xAxisId:i,yAxisId:a})),f.createElement(Xe,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},f.createElement(k9,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),f.createElement(F9,this.props)))}}var W9={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:kC,xAxisId:0,yAxisId:0,zIndex:De.bar};function K9(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}=um(t,r),p=Fn(),v=ct(),g=Qv(e.children,Hi),m=J(x=>g9(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(SC,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:B9,errorBarOffset:h},f.createElement(V9,Er({},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 U9(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=sF({numericAxis:h}),w=h.scale.map(x);return d.map((S,E)=>{var P,O,C,N,$,I;if(u){var _=u[E+m];if(_==null)return null;P=tF(_,b)}else P=be(S,r),Array.isArray(P)||(P=[x,P]);var j=e9(n,kC)(P[1],E);if(t==="horizontal"){var R,V=s.scale.map(P[0]),F=s.scale.map(P[1]);if(V==null||F==null)return null;O=Gg({axis:a,ticks:l,bandSize:i,offset:o.offset,entry:S,index:E}),C=(R=F??V)!==null&&R!==void 0?R:void 0,N=o.size;var W=V-F;if($=or(W)?0:W,I={x:O,y:p.top,width:N,height:p.height},Math.abs(j)>0&&Math.abs($)<Math.abs(j)){var T=qe($||j)*(Math.abs(j)-Math.abs($));C-=T,$+=T}}else{var k=a.scale.map(P[0]),G=a.scale.map(P[1]);if(k==null||G==null)return null;if(O=k,C=Gg({axis:s,ticks:c,bandSize:i,offset:o.offset,entry:S,index:E}),N=G-k,$=o.size,I={x:p.left,y:C,width:p.width,height:$},Math.abs(j)>0&&Math.abs(N)<Math.abs(j)){var ee=qe(N||j)*(Math.abs(j)-Math.abs(N));N+=ee}}if(O==null||C==null||N==null||$==null)return null;var ne=ft(ft({},S),{},{stackedBarStart:w,x:O,y:C,width:N,height:$,value:u?P:P[1],payload:S,background:I,tooltipPosition:{x:O+N/2,y:C+$/2},parentViewBox:g},v&&v[E]&&v[E].props);return ne}).filter(Boolean)}function H9(e){var t=Le(e,W9),r=w9(t.stackId),n=ct();return f.createElement(im,{id:t.id,type:"bar"},o=>f.createElement(f.Fragment,null,f.createElement(uC,{legendPayload:M9(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(fC,{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(K9,Er({},t,{id:o})))))}var RC=f.memo(H9,sc);RC.displayName="Bar";var G9=["domain","range"],q9=["domain","range"];function mw(e,t){if(e==null)return{};var r,n,o=Y9(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 Y9(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 hw(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 DC(e,t){if(e===t)return!0;var{domain:r,range:n}=e,o=mw(e,G9),{domain:i,range:a}=t,s=mw(t,q9);return!hw(r,i)||!hw(n,a)?!1:sc(o,s)}var X9=["type"],Z9=["dangerouslySetInnerHTML","ticks","scale"],J9=["id","scale"];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 gw(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 yw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gw(Object(r),!0).forEach(function(n){Q9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q9(e,t,r){return(t=e7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e7(e){var t=t7(e,"string");return typeof t=="symbol"?t:t+""}function t7(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=r7(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 r7(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 n7(e){var t=Se(),r=A.useRef(null),n=x1(),{type:o}=e,i=Of(e,X9),a=Hl(n,"xAxis",o),s=A.useMemo(()=>{if(a!=null)return yw(yw({},i),{},{type:a})},[i,a]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(I8(s)):r.current!==s&&t(k8({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(R8(r.current)),r.current=null)},[t]),null}var o7=e=>{var{xAxisId:t,className:r}=e,n=J(_p),o=ct(),i="xAxis",a=J(b=>pO(b,i,t,o)),s=J(b=>cO(b,t)),l=J(b=>SW(b,t)),c=J(b=>KE(b,t));if(s==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:p}=e,v=Of(e,Z9),{id:g,scale:m}=c,h=Of(c,J9);return f.createElement(lm,Ef({},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}))},i7={allowDataOverflow:Ue.allowDataOverflow,allowDecimals:Ue.allowDecimals,allowDuplicatedCategory:Ue.allowDuplicatedCategory,angle:Ue.angle,axisLine:gr.axisLine,height:Ue.height,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,xAxisId:0},a7=e=>{var t=Le(e,i7);return f.createElement(f.Fragment,null,f.createElement(n7,{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(o7,t))},Gs=f.memo(a7,DC);Gs.displayName="XAxis";var s7=["type"],l7=["dangerouslySetInnerHTML","ticks","scale"],c7=["id","scale"];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)}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){u7(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 u7(e,t,r){return(t=d7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d7(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)}function Af(e,t){if(e==null)return{};var r,n,o=p7(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 p7(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 v7(e){var t=Se(),r=A.useRef(null),n=x1(),{type:o}=e,i=Af(e,s7),a=Hl(n,"yAxis",o),s=A.useMemo(()=>{if(a!=null)return xw(xw({},i),{},{type:a})},[a,i]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(D8(s)):r.current!==s&&t($8({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(L8(r.current)),r.current=null)},[t]),null}function m7(e){var{yAxisId:t,className:r,width:n,label:o}=e,i=A.useRef(null),a=A.useRef(null),s=J(_p),l=ct(),c=Se(),u="yAxis",d=J(P=>uO(P,t)),p=J(P=>EW(P,t)),v=J(P=>pO(P,u,t,l)),g=J(P=>UE(P,t));if(A.useLayoutEffect(()=>{if(!(n!=="auto"||!d||Yv(o)||A.isValidElement(o)||g==null)){var P=i.current;if(P){var O=P.getCalculatedWidth();Math.round(d.width)!==Math.round(O)&&c(z8({id:t,width:O}))}}},[v,d,c,o,t,n,g]),d==null||p==null||g==null)return null;var{dangerouslySetInnerHTML:m,ticks:h,scale:b}=e,x=Af(e,l7),{id:w,scale:S}=g,E=Af(g,c7);return f.createElement(lm,Cf({},x,E,{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 h7={allowDataOverflow:He.allowDataOverflow,allowDecimals:He.allowDecimals,allowDuplicatedCategory:He.allowDuplicatedCategory,angle:He.angle,axisLine:gr.axisLine,hide:!1,includeHidden:He.includeHidden,interval:He.interval,label:!1,minTickGap:He.minTickGap,mirror:He.mirror,orientation:He.orientation,padding:He.padding,reversed:He.reversed,scale:He.scale,tick:He.tick,tickCount:He.tickCount,tickLine:gr.tickLine,tickSize:gr.tickSize,type:He.type,width:He.width,yAxisId:0},g7=e=>{var t=Le(e,h7);return f.createElement(f.Fragment,null,f.createElement(v7,{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(m7,t))},qs=f.memo(g7,DC);qs.displayName="YAxis";var y7=(e,t)=>t,fm=M([y7,ve,BE,Je,jO,Rr,F6,Ve],G6),pm=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)}},$C=Rt("mouseClick"),LC=Ti();LC.startListening({actionCreator:$C,effect:(e,t)=>{var r=e.payload,n=fm(t.getState(),pm(r));n?.activeIndex!=null&&t.dispatch(LW({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var _f=Rt("mouseMove"),zC=Ti(),Da=null;zC.startListening({actionCreator:_f,effect:(e,t)=>{var r=e.payload;Da!==null&&cancelAnimationFrame(Da);var n=pm(r);Da=requestAnimationFrame(()=>{var o=t.getState(),i=Dv(o,o.tooltip.settings.shared);if(i==="axis"){var a=fm(o,n);a?.activeIndex!=null?t.dispatch(wO({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(xO())}Da=null})}});function b7(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 ww={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},FC=xt({name:"rootProps",initialState:ww,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:ww.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}}}),x7=FC.reducer,{updateOptions:w7}=FC.actions,S7=null,P7={updatePolarOptions:(e,t)=>t.payload},BC=xt({name:"polarOptions",initialState:S7,reducers:P7}),{updatePolarOptions:E7}=BC.actions,O7=BC.reducer,VC=Rt("keyDown"),WC=Rt("focus"),vm=Ti();vm.startListening({actionCreator:VC,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=$v(o,Mo(r),Vi(r),Ki(r)),s=a==null?-1:Number(a);if(!(!Number.isFinite(s)||s<0)){var l=Rr(r);if(i==="Enter"){var c=zs(r,"axis","hover",String(o.index));t.dispatch(gf({active:!o.active,activeIndex:o.index,activeCoordinate:c}));return}var u=_W(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=zs(r,"axis","hover",String(v));t.dispatch(gf({active:!0,activeIndex:v.toString(),activeCoordinate:g}))}}}}}});vm.startListening({actionCreator:WC,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=zs(r,"axis","hover",String(i));t.dispatch(gf({active:!0,activeIndex:i,activeCoordinate:a}))}}}});var Nt=Rt("externalEvent"),KC=Ti(),bd=new Map;KC.startListening({actionCreator:Nt,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var o=n.type,i=bd.get(o);i!==void 0&&cancelAnimationFrame(i);var a=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:E6(s),activeDataKey:Vv(s),activeIndex:qr(s),activeLabel:IO(s),activeTooltipIndex:qr(s),isTooltipActive:O6(s)};r(l,n)}finally{bd.delete(o)}});bd.set(o,a)}}});var C7=M([jo],e=>e.tooltipItemPayloads),A7=M([C7,(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)}}}),UC=Rt("touchMove"),HC=Ti();HC.startListening({actionCreator:UC,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),o=Dv(n,n.tooltip.settings.shared);if(o==="axis"){var i=r.touches[0];if(i==null)return;var a=fm(n,pm({clientX:i.clientX,clientY:i.clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(wO({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(v1),d=(s=c.getAttribute(m1))!==null&&s!==void 0?s:void 0,p=No(n).find(m=>m.id===d);if(u==null||p==null||d==null)return;var{dataKey:v}=p,g=A7(n,u,d);t.dispatch(bO({activeDataKey:v,activeIndex:u,activeCoordinate:g,activeGraphicalItemId:d}))}}}});var _7=MP({brush:oG,cartesianAxis:F8,chartData:EK,errorBars:JG,graphicalItems:GH,layout:Xz,legend:oB,options:bK,polarAxis:aH,polarOptions:O7,referenceElements:lG,rootProps:x7,tooltip:zW,zIndex:sK}),T7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return wz({reducer:_7,preloadedState:t,middleware:n=>{var o;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([LC.middleware,zC.middleware,vm.middleware,KC.middleware,HC.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(ZP({type:"raf"}))},devTools:{serialize:{replacer:b7},name:"recharts-".concat(r)}})};function GC(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=wp;return f.createElement(_q,{context:a,store:i.current},r)}function j7(e){var{layout:t,margin:r}=e,n=Se(),o=ct();return A.useEffect(()=>{o||(n(Gz(t)),n(Hz(r)))},[n,o,t,r]),null}var qC=A.memo(j7,sc);function YC(e){var t=Se();return A.useEffect(()=>{t(w7(e))},[t,e]),null}function Sw(e){var{zIndex:t,isPanorama:r}=e,n=A.useRef(null),o=Se();return A.useLayoutEffect(()=>(n.current&&o(iK({zIndex:t,element:n.current,isPanorama:r})),()=>{o(aK({zIndex:t,isPanorama:r}))}),[o,t,r]),f.createElement("g",{tabIndex:-1,ref:n})}function Pw(e){var{children:t,isPanorama:r}=e,n=J(Y6);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(Sw,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>f.createElement(Sw,{key:a,zIndex:a,isPanorama:r})))}var N7=["children"];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}function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ys.apply(null,arguments)}var k7={width:"100%",height:"100%",display:"block"},R7=A.forwardRef((e,t)=>{var r=Mp(),n=Ip(),o=M1();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(up,Ys({},a,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:k7,ref:t}),i)}),D7=e=>{var{children:t}=e,r=J(Nl);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return f.createElement(up,{width:n,height:o,x:a,y:i},t)},Ew=A.forwardRef((e,t)=>{var{children:r}=e,n=M7(e,N7),o=ct();return o?f.createElement(D7,null,f.createElement(Pw,{isPanorama:!0},r)):f.createElement(R7,Ys({ref:t},n),f.createElement(Pw,{isPanorama:!1},r))});function $7(){var e=Se(),[t,r]=A.useState(null),n=J(pF);return A.useEffect(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;ce(i)&&i!==n&&e(Yz(i))}},[t,e,n]),r}function Ow(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 L7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ow(Object(r),!0).forEach(function(n){z7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z7(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=B7(e,"string");return typeof t=="symbol"?t:t+""}function B7(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 Xs(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var W7=A.forwardRef((e,t)=>{var r,n,o=A.useRef(null),[i,a]=A.useState({containerWidth:Xs((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Xs((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(Ni,{width:i.containerWidth,height:i.containerHeight}),f.createElement("div",Kr({ref:l},e)))}),K7=A.forwardRef((e,t)=>{var{width:r,height:n}=e,[o,i]=A.useState({containerWidth:Xs(r),containerHeight:Xs(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(Ni,{width:o.containerWidth,height:o.containerHeight}),f.createElement("div",Kr({ref:s},e)))}),U7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return f.createElement(f.Fragment,null,f.createElement(Ni,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))}),H7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?f.createElement(K7,Kr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?f.createElement(U7,Kr({},e,{width:r,height:n,ref:t})):f.createElement(f.Fragment,null,f.createElement(Ni,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))});function G7(e){return e?W7:H7}var q7=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,S=A.useRef(null),E=Se(),[P,O]=A.useState(null),[C,N]=A.useState(null),$=$7(),I=Tp(),_=I?.width>0?I.width:b,j=I?.height>0?I.height:o,R=A.useCallback(L=>{$(L),typeof t=="function"&&t(L),O(L),N(L),L!=null&&(S.current=L)},[$,t,O,N]),V=A.useCallback(L=>{E($C(L)),E(Nt({handler:i,reactEvent:L}))},[E,i]),F=A.useCallback(L=>{E(_f(L)),E(Nt({handler:c,reactEvent:L}))},[E,c]),W=A.useCallback(L=>{E(xO()),E(Nt({handler:u,reactEvent:L}))},[E,u]),T=A.useCallback(L=>{E(_f(L)),E(Nt({handler:d,reactEvent:L}))},[E,d]),k=A.useCallback(()=>{E(WC())},[E]),G=A.useCallback(L=>{E(VC(L.key))},[E]),ee=A.useCallback(L=>{E(Nt({handler:a,reactEvent:L}))},[E,a]),ne=A.useCallback(L=>{E(Nt({handler:s,reactEvent:L}))},[E,s]),ie=A.useCallback(L=>{E(Nt({handler:l,reactEvent:L}))},[E,l]),oe=A.useCallback(L=>{E(Nt({handler:p,reactEvent:L}))},[E,p]),le=A.useCallback(L=>{E(Nt({handler:m,reactEvent:L}))},[E,m]),Oe=A.useCallback(L=>{w&&E(UC(L)),E(Nt({handler:g,reactEvent:L}))},[E,w,g]),K=A.useCallback(L=>{E(Nt({handler:v,reactEvent:L}))},[E,v]),ue=G7(x);return f.createElement(FO.Provider,{value:P},f.createElement(qS.Provider,{value:C},f.createElement(ue,{width:_??h?.width,height:j??h?.height,className:de("recharts-wrapper",n),style:L7({position:"relative",cursor:"default",width:_,height:j},h),onClick:V,onContextMenu:ee,onDoubleClick:ne,onFocus:k,onKeyDown:G,onMouseDown:ie,onMouseEnter:F,onMouseLeave:W,onMouseMove:T,onMouseUp:oe,onTouchEnd:K,onTouchMove:Oe,onTouchStart:le,ref:R},f.createElement(V7,null),r)))}),Y7=["width","height","responsive","children","className","style","compact","title","desc"];function X7(e,t){if(e==null)return{};var r,n,o=Z7(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 Z7(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 XC=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=X7(e,Y7),p=At(d);return l?f.createElement(f.Fragment,null,f.createElement(Ni,{width:r,height:n}),f.createElement(Ew,{otherAttributes:p,title:c,desc:u},i)):f.createElement(q7,{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(Ew,{otherAttributes:p,title:c,desc:u,ref:t},f.createElement(uG,null,i)))});function Tf(){return Tf=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},Tf.apply(null,arguments)}var J7={top:5,right:5,bottom:5,left:5},Q7={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:J7,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},ZC=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,Q7),{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(GC,{preloadedState:{options:u},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:i},f.createElement(hC,{chartData:c.data}),f.createElement(qC,{layout:o.layout,margin:o.margin}),f.createElement(YC,{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(XC,Tf({},o,{ref:r})))}),eY=["axis"],tY=A.forwardRef((e,t)=>f.createElement(ZC,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:eY,tooltipPayloadSearcher:Gv,categoricalChartProps:e,ref:t})),rY=["axis","item"],nY=A.forwardRef((e,t)=>f.createElement(ZC,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:rY,tooltipPayloadSearcher:Gv,categoricalChartProps:e,ref:t}));function oY(e){var t=Se();return A.useEffect(()=>{t(E7(e))},[t,e]),null}var iY=["layout"];function jf(){return jf=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},jf.apply(null,arguments)}function aY(e,t){if(e==null)return{};var r,n,o=sY(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 sY(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 lY={top:5,right:5,bottom:5,left:5},JC={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:lY,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},cY=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,JC),{layout:i}=o,a=aY(o,iY),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=t,d={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return f.createElement(GC,{preloadedState:{options:d},reduxStoreName:(n=o.id)!==null&&n!==void 0?n:s},f.createElement(hC,{chartData:o.data}),f.createElement(qC,{layout:i,margin:o.margin}),f.createElement(YC,{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(oY,{cx:o.cx,cy:o.cy,startAngle:o.startAngle,endAngle:o.endAngle,innerRadius:o.innerRadius,outerRadius:o.outerRadius}),f.createElement(XC,jf({},a,{ref:r})))});function Cw(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 Aw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(r),!0).forEach(function(n){uY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uY(e,t,r){return(t=dY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dY(e){var t=fY(e,"string");return typeof t=="symbol"?t:t+""}function fY(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 pY=["item"],vY=Aw(Aw({},JC),{},{layout:"centric",startAngle:0,endAngle:360}),mY=A.forwardRef((e,t)=>{var r=Le(e,vY);return f.createElement(cY,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:pY,tooltipPayloadSearcher:Gv,categoricalChartProps:r,ref:t})});const QC=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)"],eA=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:$a[w%$a.length]})):[]},[r,n]),m=d==="vertical";return y.jsx("div",{ref:v,className:D(QC({size:t,className:e})),role:"img",...p,children:y.jsx(jp,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(nY,{data:r,layout:d,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(cm,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!m,horizontal:m}),m?y.jsxs(y.Fragment,{children:[y.jsx(Gs,{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(qs,{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(Gs,{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(qs,{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(qv,{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(Dl,{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(RC,{dataKey:h.key,name:h.name,fill:h.color||$a[b%$a.length],radius:c,stackId:u?"stack":void 0},h.key))]})})})});eA.displayName="BarChart";const tA=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"}}),Nf=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}}),rA=f.forwardRef(({className:e,size:t,separator:r=y.jsx(mm,{}),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:D(tA({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))})})});rA.displayName="Breadcrumbs";const nA=f.forwardRef(({className:e,asChild:t=!1,isCurrentPage:r=!1,...n},o)=>{if(r)return y.jsx("span",{className:D(Nf({isCurrentPage:!0,className:e})),"aria-current":"page",children:n.children});const i=t?Ee:"a";return y.jsx(i,{ref:o,className:D(Nf({isCurrentPage:!1,className:e})),...n})});nA.displayName="BreadcrumbItem";const mm=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx("span",{ref:n,role:"presentation","aria-hidden":"true",className:D("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"})})}));mm.displayName="BreadcrumbSeparator";const oA=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"}}),iA=f.forwardRef(({className:e,variant:t,padding:r,bg:n,asChild:o=!1,...i},a)=>{const s=o?Ee:"div";return y.jsx(s,{className:D(oA({variant:t,padding:r,bg:n,className:e})),ref:a,...i})});iA.displayName="Card";function qi(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 Yi(e){const[t,r]=f.useState(void 0);return Ye(()=>{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 lc="Checkbox",[hY]=Be(lc),[gY,hm]=hY(lc);function yY(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]=nt({prop:r,defaultProp:o??!1,onChange:l,caller:lc}),[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useRef(!1),w=g?!!a||!!g.closest("form"):!0,S={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(gY,{scope:t,...S,children:bY(d)?d(S):n})}var aA="CheckboxTrigger",sA=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}=hm(aA,e),m=re(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":pA(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())})})});sA.displayName=aA;var lA=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(yY,{__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(sA,{...d,ref:t,__scopeCheckbox:r}),p&&y.jsx(fA,{__scopeCheckbox:r})]})})});lA.displayName=lc;var cA="CheckboxIndicator",uA=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=hm(cA,r);return y.jsx(lt,{present:n||Ur(i.checked)||i.checked===!0,children:y.jsx(Q.span,{"data-state":pA(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});uA.displayName=cA;var dA="CheckboxBubbleInput",fA=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}=hm(dA,e),g=re(r,v),m=qi(i),h=Yi(n);f.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,P=!o.current;if(m!==i&&E){const O=new Event("click",{bubbles:P});x.indeterminate=Ur(i),E.call(x,Ur(i)?!1:i),x.dispatchEvent(O)}},[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%)"}})});fA.displayName=dA;function bY(e){return typeof e=="function"}function Ur(e){return e==="indeterminate"}function pA(e){return Ur(e)?"indeterminate":e?"checked":"unchecked"}const vA=f.forwardRef(({className:e,...t},r)=>y.jsx(lA,{ref:r,className:D("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(uA,{className:D("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"})})})}));vA.displayName="Checkbox";const xY=["top","right","bottom","left"],Xr=Math.min,St=Math.max,Zs=Math.round,La=Math.floor,nr=e=>({x:e,y:e}),wY={left:"right",right:"left",bottom:"top",top:"bottom"},SY={start:"end",end:"start"};function Mf(e,t,r){return St(e,Xr(t,r))}function Or(e,t){return typeof e=="function"?e(t):e}function Cr(e){return e.split("-")[0]}function Io(e){return e.split("-")[1]}function gm(e){return e==="x"?"y":"x"}function ym(e){return e==="y"?"height":"width"}const PY=new Set(["top","bottom"]);function tr(e){return PY.has(Cr(e))?"y":"x"}function bm(e){return gm(tr(e))}function EY(e,t,r){r===void 0&&(r=!1);const n=Io(e),o=bm(e),i=ym(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Js(a)),[a,Js(a)]}function OY(e){const t=Js(e);return[If(e),t,If(t)]}function If(e){return e.replace(/start|end/g,t=>SY[t])}const _w=["left","right"],Tw=["right","left"],CY=["top","bottom"],AY=["bottom","top"];function _Y(e,t,r){switch(e){case"top":case"bottom":return r?t?Tw:_w:t?_w:Tw;case"left":case"right":return t?CY:AY;default:return[]}}function TY(e,t,r,n){const o=Io(e);let i=_Y(Cr(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(If)))),i}function Js(e){return e.replace(/left|right|bottom|top/g,t=>wY[t])}function jY(e){return{top:0,right:0,bottom:0,left:0,...e}}function mA(e){return typeof e!="number"?jY(e):{top:e,right:e,bottom:e,left:e}}function Qs(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 jw(e,t,r){let{reference:n,floating:o}=e;const i=tr(t),a=bm(t),s=ym(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(Io(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}=Or(t,e),g=mA(v),h=s[p?d==="floating"?"reference":"floating":d],b=Qs(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)),S=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},E=Qs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:l}):x);return{top:(b.top-E.top+g.top)/S.y,bottom:(E.bottom-b.bottom+g.bottom)/S.y,left:(b.left-E.left+g.left)/S.x,right:(E.right-b.right+g.right)/S.x}}const MY=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}=jw(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:S,data:E,reset:P}=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=S??d,v={...v,[b]:{...v[b],...E}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(c=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:u,y:d}=jw(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}=Or(e,t)||{};if(c==null)return{};const d=mA(u),p={x:r,y:n},v=bm(o),g=ym(v),m=await a.getDimensions(c),h=v==="y",b=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[v]-p[v]-i.floating[g],E=p[v]-i.reference[v],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let O=P?P[w]:0;(!O||!await(a.isElement==null?void 0:a.isElement(P)))&&(O=s.floating[w]||i.floating[g]);const C=S/2-E/2,N=O/2-m[g]/2-1,$=Xr(d[b],N),I=Xr(d[x],N),_=$,j=O-m[g]-I,R=O/2-m[g]/2+C,V=Mf(_,R,j),F=!l.arrow&&Io(o)!=null&&R!==V&&i.reference[g]/2-(R<_?$:I)-m[g]/2<0,W=F?R<_?R-_:R-j:0;return{[v]:p[v]+W,data:{[v]:V,centerOffset:R-V-W,...F&&{alignmentOffset:W}},reset:F}}}),kY=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}=Or(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=Cr(o),x=tr(s),w=Cr(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=p||(w||!m?[Js(s)]:OY(s)),P=g!=="none";!p&&P&&E.push(...TY(s,m,g,S));const O=[s,...E],C=await l.detectOverflow(t,h),N=[];let $=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&N.push(C[b]),d){const R=EY(o,a,S);N.push(C[R[0]],C[R[1]])}if($=[...$,{placement:o,overflows:N}],!N.every(R=>R<=0)){var I,_;const R=(((I=i.flip)==null?void 0:I.index)||0)+1,V=O[R];if(V&&(!(d==="alignment"?x!==tr(V):!1)||$.every(T=>tr(T.placement)===x?T.overflows[0]>0:!0)))return{data:{index:R,overflows:$},reset:{placement:V}};let F=(_=$.filter(W=>W.overflows[0]<=0).sort((W,T)=>W.overflows[1]-T.overflows[1])[0])==null?void 0:_.placement;if(!F)switch(v){case"bestFit":{var j;const W=(j=$.filter(T=>{if(P){const k=tr(T.placement);return k===x||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,G)=>k+G,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:j[0];W&&(F=W);break}case"initialPlacement":F=s;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Nw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mw(e){return xY.some(t=>e[t]>=0)}const RY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Or(e,t);switch(o){case"referenceHidden":{const a=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=Nw(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Mw(s)}}}case"escaped":{const a=await n.detectOverflow(t,{...i,altBoundary:!0}),s=Nw(a,r.floating);return{data:{escapedOffsets:s,escaped:Mw(s)}}}default:return{}}}}},hA=new Set(["left","top"]);async function DY(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=Io(r),l=tr(r)==="y",c=hA.has(a)?-1:1,u=i&&l?-1:1,d=Or(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 $Y=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 DY(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}}}}},LY=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}=Or(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=tr(Cr(o)),v=gm(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],S=g-d[x];g=Mf(w,g,S)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=m+d[b],S=m-d[x];m=Mf(w,m,S)}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}}}}}},zY=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}=Or(e,t),u={x:r,y:n},d=tr(o),p=gm(d);let v=u[p],g=u[d];const m=Or(s,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=p==="y"?"height":"width",S=i.reference[p]-i.floating[w]+h.mainAxis,E=i.reference[p]+i.reference[w]-h.mainAxis;v<S?v=S:v>E&&(v=E)}if(c){var b,x;const w=p==="y"?"width":"height",S=hA.has(Cr(o)),E=i.reference[d]-i.floating[w]+(S&&((b=a.offset)==null?void 0:b[d])||0)+(S?0:h.crossAxis),P=i.reference[d]+i.reference[w]+(S?0:((x=a.offset)==null?void 0:x[d])||0)-(S?h.crossAxis:0);g<E?g=E:g>P&&(g=P)}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}=Or(e,t),u=await a.detectOverflow(t,c),d=Cr(o),p=Io(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,S=Xr(m-u[h],x),E=Xr(g-u[b],w),P=!t.middlewareData.shift;let O=S,C=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=x),P&&!p){const $=St(u.left,0),I=St(u.right,0),_=St(u.top,0),j=St(u.bottom,0);v?C=g-2*($!==0||I!==0?$+I:St(u.left,u.right)):O=m-2*(_!==0||j!==0?_+j:St(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:O});const N=await a.getDimensions(s.floating);return g!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function cc(){return typeof window<"u"}function ko(e){return gA(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=(gA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gA(e){return cc()?e instanceof Node||e instanceof Ct(e).Node:!1}function Wt(e){return cc()?e instanceof Element||e instanceof Ct(e).Element:!1}function lr(e){return cc()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function Iw(e){return!cc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}const BY=new Set(["inline","contents"]);function Xi(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!BY.has(o)}const VY=new Set(["table","td","th"]);function WY(e){return VY.has(ko(e))}const KY=[":popover-open",":modal"];function uc(e){return KY.some(t=>{try{return e.matches(t)}catch{return!1}})}const UY=["transform","translate","scale","rotate","perspective"],HY=["transform","translate","scale","rotate","perspective","filter"],GY=["paint","layout","strict","content"];function xm(e){const t=wm(),r=Wt(e)?Kt(e):e;return UY.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)||HY.some(n=>(r.willChange||"").includes(n))||GY.some(n=>(r.contain||"").includes(n))}function qY(e){let t=Zr(e);for(;lr(t)&&!ho(t);){if(xm(t))return t;if(uc(t))return null;t=Zr(t)}return null}function wm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const YY=new Set(["html","body","#document"]);function ho(e){return YY.has(ko(e))}function Kt(e){return Ct(e).getComputedStyle(e)}function dc(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zr(e){if(ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Iw(e)&&e.host||ur(e);return Iw(t)?t.host:t}function yA(e){const t=Zr(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:lr(t)&&Xi(t)?t:yA(t)}function hi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=yA(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Ct(o);if(i){const s=kf(a);return t.concat(a,a.visualViewport||[],Xi(o)?o:[],s&&r?hi(s):[])}return t.concat(o,hi(o,[],r))}function kf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bA(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=Zs(r)!==i||Zs(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Sm(e){return Wt(e)?e:e.contextElement}function so(e){const t=Sm(e);if(!lr(t))return nr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=bA(t);let a=(i?Zs(r.width):r.width)/n,s=(i?Zs(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const XY=nr(0);function xA(e){const t=Ct(e);return!wm()||!t.visualViewport?XY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZY(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=Sm(e);let a=nr(1);t&&(n?Wt(n)&&(a=so(n)):a=so(e));const s=ZY(i,r,n)?xA(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=kf(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,S=b.top+(m.clientTop+parseFloat(x.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=w,c+=S,g=Ct(m),m=kf(g)}}return Qs({width:u,height:d,x:l,y:c})}function fc(e,t){const r=dc(e).scrollLeft;return t?t.left+r:In(ur(e)).left+r}function wA(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-fc(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function JY(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=ur(n),s=t?uc(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)&&((ko(n)!=="body"||Xi(a))&&(l=dc(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?wA(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 QY(e){return Array.from(e.getClientRects())}function eX(e){const t=ur(e),r=dc(e),n=e.ownerDocument.body,o=St(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=St(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+fc(e);const s=-r.scrollTop;return Kt(n).direction==="rtl"&&(a+=St(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const kw=25;function tX(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=wm();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=fc(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<=kw&&(i-=g)}else c<=kw&&(i+=c);return{width:i,height:a,x:s,y:l}}const rX=new Set(["absolute","fixed"]);function nX(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 Rw(e,t,r){let n;if(t==="viewport")n=tX(e,r);else if(t==="document")n=eX(ur(e));else if(Wt(t))n=nX(t,r);else{const o=xA(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qs(n)}function SA(e,t){const r=Zr(e);return r===t||!Wt(r)||ho(r)?!1:Kt(r).position==="fixed"||SA(r,t)}function oX(e,t){const r=t.get(e);if(r)return r;let n=hi(e,[],!1).filter(s=>Wt(s)&&ko(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=xm(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&rX.has(o.position)||Xi(a)&&!l&&SA(e,a))?n=n.filter(u=>u!==a):o=s,a=Zr(a)}return t.set(e,n),n}function iX(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?uc(t)?[]:oX(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,u)=>{const d=Rw(t,u,o);return c.top=St(d.top,c.top),c.right=Xr(d.right,c.right),c.bottom=Xr(d.bottom,c.bottom),c.left=St(d.left,c.left),c},Rw(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function aX(e){const{width:t,height:r}=bA(e);return{width:t,height:r}}function sX(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=fc(o)}if(n||!n&&!i)if((ko(t)!=="body"||Xi(o))&&(s=dc(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?wA(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 xd(e){return Kt(e).position==="static"}function Dw(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 PA(e,t){const r=Ct(e);if(uc(e))return r;if(!lr(e)){let o=Zr(e);for(;o&&!ho(o);){if(Wt(o)&&!xd(o))return o;o=Zr(o)}return r}let n=Dw(e,t);for(;n&&WY(n)&&xd(n);)n=Dw(n,t);return n&&ho(n)&&xd(n)&&!xm(n)?r:n||qY(e)||r}const lX=async function(e){const t=this.getOffsetParent||PA,r=this.getDimensions,n=await r(e.floating);return{reference:sX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function cX(e){return Kt(e).direction==="rtl"}const uX={convertOffsetParentRelativeRectToViewportRelativeRect:JY,getDocumentElement:ur,getClippingRect:iX,getOffsetParent:PA,getElementRects:lX,getClientRects:QY,getDimensions:aX,getScale:so,isElement:Wt,isRTL:cX};function EA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dX(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=La(d),m=La(o.clientWidth-(u+p)),h=La(o.clientHeight-(d+v)),b=La(u),w={rootMargin:-g+"px "+-m+"px "+-h+"px "+-b+"px",threshold:St(0,Xr(1,l))||1};let S=!0;function E(P){const O=P[0].intersectionRatio;if(O!==l){if(!S)return a();O?a(!1,O):n=setTimeout(()=>{a(!1,1e-7)},1e3)}O===1&&!EA(c,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return a(!0),i}function fX(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=Sm(e),u=o||i?[...c?hi(c):[],...hi(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=c&&s?dX(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&&!EA(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 pX=$Y,vX=LY,mX=kY,hX=FY,gX=RY,$w=IY,yX=zY,bX=(e,t,r)=>{const n=new Map,o={platform:uX,...r},i={...o.platform,_c:n};return MY(e,t,{...o,platform:i})};var xX=typeof document<"u",wX=function(){},Xa=xX?A.useLayoutEffect:wX;function el(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(!el(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)&&!el(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function OA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lw(e,t){const r=OA(e);return Math.round(t*r)/r}function wd(e){const t=f.useRef(e);return Xa(()=>{t.current=e}),t}function SX(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);el(p,n)||v(n);const[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useCallback(T=>{T!==P.current&&(P.current=T,m(T))},[]),w=f.useCallback(T=>{T!==O.current&&(O.current=T,b(T))},[]),S=i||g,E=a||h,P=f.useRef(null),O=f.useRef(null),C=f.useRef(u),N=l!=null,$=wd(l),I=wd(o),_=wd(c),j=f.useCallback(()=>{if(!P.current||!O.current)return;const T={placement:t,strategy:r,middleware:p};I.current&&(T.platform=I.current),bX(P.current,O.current,T).then(k=>{const G={...k,isPositioned:_.current!==!1};R.current&&!el(C.current,G)&&(C.current=G,wi.flushSync(()=>{d(G)}))})},[p,t,r,I,_]);Xa(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[c]);const R=f.useRef(!1);Xa(()=>(R.current=!0,()=>{R.current=!1}),[]),Xa(()=>{if(S&&(P.current=S),E&&(O.current=E),S&&E){if($.current)return $.current(S,E,j);j()}},[S,E,j,$,N]);const V=f.useMemo(()=>({reference:P,floating:O,setReference:x,setFloating:w}),[x,w]),F=f.useMemo(()=>({reference:S,floating:E}),[S,E]),W=f.useMemo(()=>{const T={position:r,left:0,top:0};if(!F.floating)return T;const k=Lw(F.floating,u.x),G=Lw(F.floating,u.y);return s?{...T,transform:"translate("+k+"px, "+G+"px)",...OA(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:k,top:G}},[r,s,F.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:j,refs:V,elements:F,floatingStyles:W}),[u,j,V,F,W])}const PX=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?$w({element:n.current,padding:o}).fn(r):{}:n?$w({element:n,padding:o}).fn(r):{}}}},EX=(e,t)=>({...pX(e),options:[e,t]}),OX=(e,t)=>({...vX(e),options:[e,t]}),CX=(e,t)=>({...yX(e),options:[e,t]}),AX=(e,t)=>({...mX(e),options:[e,t]}),_X=(e,t)=>({...hX(e),options:[e,t]}),TX=(e,t)=>({...gX(e),options:[e,t]}),jX=(e,t)=>({...PX(e),options:[e,t]});var NX="Arrow",CA=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"})})});CA.displayName=NX;var MX=CA,Pm="Popper",[AA,rn]=Be(Pm),[IX,_A]=AA(Pm),TA=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return y.jsx(IX,{scope:t,anchor:n,onAnchorChange:o,children:r})};TA.displayName=Pm;var jA="PopperAnchor",NA=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=_A(jA,r),a=f.useRef(null),s=re(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})});NA.displayName=jA;var Em="PopperContent",[kX,RX]=AA(Em),MA=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=_A(Em,r),[b,x]=f.useState(null),w=re(t,K=>x(K)),[S,E]=f.useState(null),P=Yi(S),O=P?.width??0,C=P?.height??0,N=n+(i!=="center"?"-"+i:""),$=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(c)?c:[c],_=I.length>0,j={padding:$,boundary:I.filter($X),altBoundary:_},{refs:R,floatingStyles:V,placement:F,isPositioned:W,middlewareData:T}=SX({strategy:"fixed",placement:N,whileElementsMounted:(...K)=>fX(...K,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[EX({mainAxis:o+C,alignmentAxis:a}),l&&OX({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?CX():void 0,...j}),l&&AX({...j}),_X({...j,apply:({elements:K,rects:ue,availableWidth:L,availableHeight:H})=>{const{width:B,height:z}=ue.reference,fe=K.floating.style;fe.setProperty("--radix-popper-available-width",`${L}px`),fe.setProperty("--radix-popper-available-height",`${H}px`),fe.setProperty("--radix-popper-anchor-width",`${B}px`),fe.setProperty("--radix-popper-anchor-height",`${z}px`)}}),S&&jX({element:S,padding:s}),LX({arrowWidth:O,arrowHeight:C}),p&&TX({strategy:"referenceHidden",...j})]}),[k,G]=RA(F),ee=st(g);Ye(()=>{W&&ee?.()},[W,ee]);const ne=T.arrow?.x,ie=T.arrow?.y,oe=T.arrow?.centerOffset!==0,[le,Oe]=f.useState();return Ye(()=>{b&&Oe(window.getComputedStyle(b).zIndex)},[b]),y.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:W?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(kX,{scope:r,placedSide:k,onArrowChange:E,arrowX:ne,arrowY:ie,shouldHideArrow:oe,children:y.jsx(Q.div,{"data-side":k,"data-align":G,...m,ref:w,style:{...m.style,animation:W?void 0:"none"}})})})});MA.displayName=Em;var IA="PopperArrow",DX={top:"bottom",right:"left",bottom:"top",left:"right"},kA=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=RX(IA,n),a=DX[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(MX,{...o,ref:r,style:{...o.style,display:"block"}})})});kA.displayName=IA;function $X(e){return e!==null}var LX=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]=RA(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 RA(e){const[t,r="center"]=e.split("-");return[t,r]}var Zi=TA,Ji=NA,pc=MA,vc=kA,Sd="rovingFocusGroup.onEntryFocus",zX={bubbles:!1,cancelable:!0},Qi="RovingFocusGroup",[Rf,DA,FX]=bo(Qi),[BX,mc]=Be(Qi,[FX]),[VX,WX]=BX(Qi),$A=f.forwardRef((e,t)=>y.jsx(Rf.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Rf.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(KX,{...e,ref:t})})}));$A.displayName=Qi;var KX=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=re(t,p),g=xo(i),[m,h]=nt({prop:a,defaultProp:s??null,onChange:l,caller:Qi}),[b,x]=f.useState(!1),w=st(c),S=DA(r),E=f.useRef(!1),[P,O]=f.useState(0);return f.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(Sd,w),()=>C.removeEventListener(Sd,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(()=>O(C=>C+1),[]),onFocusableItemRemove:f.useCallback(()=>O(C=>C-1),[]),children:y.jsx(Q.div,{tabIndex:b||P===0?-1:0,"data-orientation":n,...d,ref:v,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{E.current=!0}),onFocus:U(e.onFocus,C=>{const N=!E.current;if(C.target===C.currentTarget&&N&&!b){const $=new CustomEvent(Sd,zX);if(C.currentTarget.dispatchEvent($),!$.defaultPrevented){const I=S().filter(F=>F.focusable),_=I.find(F=>F.active),j=I.find(F=>F.id===m),V=[_,j,...I].filter(Boolean).map(F=>F.ref.current);FA(V,u)}}E.current=!1}),onBlur:U(e.onBlur,()=>x(!1))})})}),LA="RovingFocusGroupItem",zA=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=WX(LA,r),d=u.currentTabStopId===c,p=DA(r),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:m}=u;return f.useEffect(()=>{if(n)return v(),()=>g()},[n,v,g]),y.jsx(Rf.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=GX(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(S=>S.focusable).map(S=>S.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const S=w.indexOf(h.currentTarget);w=u.loop?qX(w,S+1):w.slice(S+1)}setTimeout(()=>FA(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});zA.displayName=LA;var UX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function HX(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function GX(e,t,r){const n=HX(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return UX[n]}function FA(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function qX(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var BA=$A,VA=zA;function YX(e){const t=XX(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(JX);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 XX(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=eZ(o),s=QX(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 ZX=Symbol("radix.slottable");function JX(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ZX}function QX(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 eZ(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 Df=["Enter"," "],tZ=["ArrowDown","PageUp","Home"],WA=["ArrowUp","PageDown","End"],rZ=[...tZ,...WA],nZ={ltr:[...Df,"ArrowRight"],rtl:[...Df,"ArrowLeft"]},oZ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ea="Menu",[gi,iZ,aZ]=bo(ea),[Un,hc]=Be(ea,[aZ,rn,mc]),ta=rn(),KA=mc(),[UA,nn]=Un(ea),[sZ,ra]=Un(ea),HA=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:a=!0}=e,s=ta(t),[l,c]=f.useState(null),u=f.useRef(!1),d=st(i),p=xo(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(Zi,{...s,children:y.jsx(UA,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:y.jsx(sZ,{scope:t,onClose:f.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:p,modal:a,children:n})})})};HA.displayName=ea;var lZ="MenuAnchor",Om=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=ta(r);return y.jsx(Ji,{...o,...n,ref:t})});Om.displayName=lZ;var Cm="MenuPortal",[cZ,GA]=Un(Cm,{forceMount:void 0}),qA=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=nn(Cm,t);return y.jsx(cZ,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};qA.displayName=Cm;var kt="MenuContent",[uZ,Am]=Un(kt),YA=f.forwardRef((e,t)=>{const r=GA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=ra(kt,e.__scopeMenu);return y.jsx(gi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(gi.Slot,{scope:e.__scopeMenu,children:a.modal?y.jsx(dZ,{...o,ref:t}):y.jsx(fZ,{...o,ref:t})})})})}),dZ=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu),n=f.useRef(null),o=re(t,n);return f.useEffect(()=>{const i=n.current;if(i)return fl(i)},[]),y.jsx(_m,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),fZ=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu);return y.jsx(_m,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),pZ=YX("MenuContent.ScrollLock"),_m=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=ra(kt,r),x=ta(r),w=KA(r),S=iZ(r),[E,P]=f.useState(null),O=f.useRef(null),C=re(t,O,h.onContentChange),N=f.useRef(0),$=f.useRef(""),I=f.useRef(0),_=f.useRef(null),j=f.useRef("right"),R=f.useRef(0),V=g?Pi:f.Fragment,F=g?{as:pZ,allowPinchZoom:!0}:void 0,W=k=>{const G=$.current+k,ee=S().filter(K=>!K.disabled),ne=document.activeElement,ie=ee.find(K=>K.ref.current===ne)?.textValue,oe=ee.map(K=>K.textValue),le=OZ(oe,G,ie),Oe=ee.find(K=>K.textValue===le)?.ref.current;(function K(ue){$.current=ue,window.clearTimeout(N.current),ue!==""&&(N.current=window.setTimeout(()=>K(""),1e3))})(G),Oe&&setTimeout(()=>Oe.focus())};f.useEffect(()=>()=>window.clearTimeout(N.current),[]),ul();const T=f.useCallback(k=>j.current===_.current?.side&&AZ(k,_.current?.area),[]);return y.jsx(uZ,{scope:r,searchRef:$,onItemEnter:f.useCallback(k=>{T(k)&&k.preventDefault()},[T]),onItemLeave:f.useCallback(k=>{T(k)||(O.current?.focus(),P(null))},[T]),onTriggerLeave:f.useCallback(k=>{T(k)&&k.preventDefault()},[T]),pointerGraceTimerRef:I,onPointerGraceIntentChange:f.useCallback(k=>{_.current=k},[]),children:y.jsx(V,{...F,children:y.jsx(Si,{asChild:!0,trapped:o,onMountAutoFocus:U(i,k=>{k.preventDefault(),O.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(BA,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:P,onEntryFocus:U(l,k=>{b.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(pc,{role:"menu","aria-orientation":"vertical","data-state":f_(h.open),"data-radix-menu-content":"",dir:b.dir,...x,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:U(m.onKeyDown,k=>{const ee=k.target.closest("[data-radix-menu-content]")===k.currentTarget,ne=k.ctrlKey||k.altKey||k.metaKey,ie=k.key.length===1;ee&&(k.key==="Tab"&&k.preventDefault(),!ne&&ie&&W(k.key));const oe=O.current;if(k.target!==oe||!rZ.includes(k.key))return;k.preventDefault();const Oe=S().filter(K=>!K.disabled).map(K=>K.ref.current);WA.includes(k.key)&&Oe.reverse(),PZ(Oe)}),onBlur:U(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(N.current),$.current="")}),onPointerMove:U(e.onPointerMove,yi(k=>{const G=k.target,ee=R.current!==k.clientX;if(k.currentTarget.contains(G)&&ee){const ne=k.clientX>R.current?"right":"left";j.current=ne,R.current=k.clientX}}))})})})})})})});YA.displayName=kt;var vZ="MenuGroup",Tm=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"group",...n,ref:t})});Tm.displayName=vZ;var mZ="MenuLabel",XA=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});XA.displayName=mZ;var tl="MenuItem",zw="menu.itemSelect",gc=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=f.useRef(null),a=ra(tl,e.__scopeMenu),s=Am(tl,e.__scopeMenu),l=re(t,i),c=f.useRef(!1),u=()=>{const d=i.current;if(!r&&d){const p=new CustomEvent(zw,{bubbles:!0,cancelable:!0});d.addEventListener(zw,v=>n?.(v),{once:!0}),Zf(d,p),p.defaultPrevented?c.current=!1:a.onClose()}};return y.jsx(ZA,{...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===" "||Df.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});gc.displayName=tl;var ZA=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,a=Am(tl,r),s=KA(r),l=f.useRef(null),c=re(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(gi.ItemSlot,{scope:r,disabled:n,textValue:o??p,children:y.jsx(VA,{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,yi(g=>{n?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:U(e.onPointerLeave,yi(g=>a.onItemLeave(g))),onFocus:U(e.onFocus,()=>d(!0)),onBlur:U(e.onBlur,()=>d(!1))})})})}),hZ="MenuCheckboxItem",JA=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return y.jsx(n_,{scope:e.__scopeMenu,checked:r,children:y.jsx(gc,{role:"menuitemcheckbox","aria-checked":rl(r)?"mixed":r,...o,ref:t,"data-state":Mm(r),onSelect:U(o.onSelect,()=>n?.(rl(r)?!0:!r),{checkForDefaultPrevented:!1})})})});JA.displayName=hZ;var QA="MenuRadioGroup",[gZ,yZ]=Un(QA,{value:void 0,onValueChange:()=>{}}),e_=f.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=st(n);return y.jsx(gZ,{scope:e.__scopeMenu,value:r,onValueChange:i,children:y.jsx(Tm,{...o,ref:t})})});e_.displayName=QA;var t_="MenuRadioItem",r_=f.forwardRef((e,t)=>{const{value:r,...n}=e,o=yZ(t_,e.__scopeMenu),i=r===o.value;return y.jsx(n_,{scope:e.__scopeMenu,checked:i,children:y.jsx(gc,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":Mm(i),onSelect:U(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});r_.displayName=t_;var jm="MenuItemIndicator",[n_,bZ]=Un(jm,{checked:!1}),o_=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=bZ(jm,r);return y.jsx(lt,{present:n||rl(i.checked)||i.checked===!0,children:y.jsx(Q.span,{...o,ref:t,"data-state":Mm(i.checked)})})});o_.displayName=jm;var xZ="MenuSeparator",i_=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});i_.displayName=xZ;var wZ="MenuArrow",a_=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=ta(r);return y.jsx(vc,{...o,...n,ref:t})});a_.displayName=wZ;var Nm="MenuSub",[SZ,s_]=Un(Nm),l_=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=nn(Nm,t),a=ta(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(Zi,{...a,children:y.jsx(UA,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:y.jsx(SZ,{scope:t,contentId:vt(),triggerId:vt(),trigger:s,onTriggerChange:l,children:r})})})};l_.displayName=Nm;var Zo="MenuSubTrigger",c_=f.forwardRef((e,t)=>{const r=nn(Zo,e.__scopeMenu),n=ra(Zo,e.__scopeMenu),o=s_(Zo,e.__scopeMenu),i=Am(Zo,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(Om,{asChild:!0,...c,children:y.jsx(ZA,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":f_(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,yi(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,yi(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===" "||nZ[n.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});c_.displayName=Zo;var u_="MenuSubContent",d_=f.forwardRef((e,t)=>{const r=GA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=ra(kt,e.__scopeMenu),s=s_(u_,e.__scopeMenu),l=f.useRef(null),c=re(t,l);return y.jsx(gi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(gi.Slot,{scope:e.__scopeMenu,children:y.jsx(_m,{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=oZ[a.dir].includes(u.key);d&&p&&(i.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});d_.displayName=u_;function f_(e){return e?"open":"closed"}function rl(e){return e==="indeterminate"}function Mm(e){return rl(e)?"indeterminate":e?"checked":"unchecked"}function PZ(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function EZ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function OZ(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=EZ(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 CZ(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 AZ(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return CZ(r,t)}function yi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var p_=HA,v_=Om,m_=qA,h_=YA,g_=Tm,y_=XA,b_=gc,x_=JA,w_=e_,S_=r_,P_=o_,E_=i_,O_=a_,C_=l_,A_=c_,__=d_,Im="ContextMenu",[_Z]=Be(Im,[hc]),ut=hc(),[TZ,T_]=_Z(Im),j_=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(p_,{...l,dir:o,open:a,onOpenChange:u,modal:i,children:r})})};j_.displayName=Im;var N_="ContextMenuTrigger",M_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...o}=e,i=T_(N_,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(v_,{...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,za(p=>{u(),c.current=window.setTimeout(()=>d(p),700)})),onPointerMove:n?e.onPointerMove:U(e.onPointerMove,za(u)),onPointerCancel:n?e.onPointerCancel:U(e.onPointerCancel,za(u)),onPointerUp:n?e.onPointerUp:U(e.onPointerUp,za(u))})]})});M_.displayName=N_;var jZ="ContextMenuPortal",I_=e=>{const{__scopeContextMenu:t,...r}=e,n=ut(t);return y.jsx(m_,{...n,...r})};I_.displayName=jZ;var k_="ContextMenuContent",R_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=T_(k_,r),i=ut(r),a=f.useRef(!1);return y.jsx(h_,{...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)"}})});R_.displayName=k_;var NZ="ContextMenuGroup",D_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(g_,{...o,...n,ref:t})});D_.displayName=NZ;var MZ="ContextMenuLabel",$_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(y_,{...o,...n,ref:t})});$_.displayName=MZ;var IZ="ContextMenuItem",L_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(b_,{...o,...n,ref:t})});L_.displayName=IZ;var kZ="ContextMenuCheckboxItem",z_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(x_,{...o,...n,ref:t})});z_.displayName=kZ;var RZ="ContextMenuRadioGroup",F_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(w_,{...o,...n,ref:t})});F_.displayName=RZ;var DZ="ContextMenuRadioItem",B_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(S_,{...o,...n,ref:t})});B_.displayName=DZ;var $Z="ContextMenuItemIndicator",V_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(P_,{...o,...n,ref:t})});V_.displayName=$Z;var LZ="ContextMenuSeparator",W_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(E_,{...o,...n,ref:t})});W_.displayName=LZ;var zZ="ContextMenuArrow",FZ=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(O_,{...o,...n,ref:t})});FZ.displayName=zZ;var K_="ContextMenuSub",U_=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:o,defaultOpen:i}=e,a=ut(t),[s,l]=nt({prop:o,defaultProp:i??!1,onChange:n,caller:K_});return y.jsx(C_,{...a,open:s,onOpenChange:l,children:r})};U_.displayName=K_;var BZ="ContextMenuSubTrigger",H_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(A_,{...o,...n,ref:t})});H_.displayName=BZ;var VZ="ContextMenuSubContent",G_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(__,{...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)"}})});G_.displayName=VZ;function za(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var WZ=j_,KZ=M_,UZ=I_,HZ=R_,GZ=D_,qZ=$_,YZ=L_,XZ=z_,ZZ=F_,JZ=B_,q_=V_,QZ=W_,eJ=U_,tJ=H_,rJ=G_;const nJ=WZ,oJ=KZ,iJ=GZ,Y_=UZ,aJ=eJ,sJ=ZZ,X_=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(tJ,{ref:o,className:D("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"})})]}));X_.displayName="ContextMenuSubTrigger";const Z_=f.forwardRef(({className:e,...t},r)=>y.jsx(rJ,{ref:r,className:D("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}));Z_.displayName="ContextMenuSubContent";const J_=f.forwardRef(({className:e,...t},r)=>y.jsx(Y_,{children:y.jsx(HZ,{ref:r,className:D("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})}));J_.displayName="ContextMenuContent";const Q_=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(YZ,{ref:n,className:D("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}));Q_.displayName="ContextMenuItem";const eT=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(XZ,{ref:o,className:D("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(q_,{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]}));eT.displayName="ContextMenuCheckboxItem";const tT=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(JZ,{ref:n,className:D("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(q_,{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]}));tT.displayName="ContextMenuRadioItem";const rT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(qZ,{ref:n,className:D("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));rT.displayName="ContextMenuLabel";const nT=f.forwardRef(({className:e,...t},r)=>y.jsx(QZ,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));nT.displayName="ContextMenuSeparator";const oT=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:D("text-small text-tertiary ml-auto tracking-widest",e),...t}));oT.displayName="ContextMenuShortcut";function lJ(e){const t=cJ(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(dJ);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 cJ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=pJ(o),s=fJ(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 uJ=Symbol("radix.slottable");function dJ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uJ}function fJ(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 pJ(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 yc="Popover",[iT]=Be(yc,[rn]),na=rn(),[vJ,on]=iT(yc),aT=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=na(t),l=f.useRef(null),[c,u]=f.useState(!1),[d,p]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:yc});return y.jsx(Zi,{...s,children:y.jsx(vJ,{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})})};aT.displayName=yc;var sT="PopoverAnchor",mJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(sT,r),i=na(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(a(),()=>s()),[a,s]),y.jsx(Ji,{...i,...n,ref:t})});mJ.displayName=sT;var lT="PopoverTrigger",cT=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(lT,r),i=na(r),a=re(t,o.triggerRef),s=y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":vT(o.open),...n,ref:a,onClick:U(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:y.jsx(Ji,{asChild:!0,...i,children:s})});cT.displayName=lT;var km="PopoverPortal",[hJ,gJ]=iT(km,{forceMount:void 0}),uT=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=on(km,t);return y.jsx(hJ,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};uT.displayName=km;var go="PopoverContent",dT=f.forwardRef((e,t)=>{const r=gJ(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(bJ,{...o,ref:t}):y.jsx(xJ,{...o,ref:t})})});dT.displayName=go;var yJ=lJ("PopoverContent.RemoveScroll"),bJ=f.forwardRef((e,t)=>{const r=on(go,e.__scopePopover),n=f.useRef(null),o=re(t,n),i=f.useRef(!1);return f.useEffect(()=>{const a=n.current;if(a)return fl(a)},[]),y.jsx(Pi,{as:yJ,allowPinchZoom:!0,children:y.jsx(fT,{...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})})})}),xJ=f.forwardRef((e,t)=>{const r=on(go,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(fT,{...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()}})}),fT=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=na(r);return ul(),y.jsx(Si,{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(pc,{"data-state":vT(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)"}})})})}),pT="PopoverClose",wJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(pT,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});wJ.displayName=pT;var SJ="PopoverArrow",PJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=na(r);return y.jsx(vc,{...o,...n,ref:t})});PJ.displayName=SJ;function vT(e){return e?"open":"closed"}var mT=aT,hT=cT,gT=uT,yT=dT;const EJ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Fw=["January","February","March","April","May","June","July","August","September","October","November","December"];function Bw(e,t){return new Date(e,t+1,0).getDate()}function OJ(e,t){return new Date(e,t,1).getDay()}function bT(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function CJ(e){return bT(new Date,e)}function Vw(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 xT=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"}}),wT=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"}}),ST=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(),S=Bw(x,w),E=OJ(x,w),P=f.useMemo(()=>{const _=[],j=w===0?11:w-1,R=w===0?x-1:x,V=Bw(R,j);for(let k=E-1;k>=0;k--)_.push({date:new Date(R,j,V-k),isOutside:!0});for(let k=1;k<=S;k++)_.push({date:new Date(x,w,k),isOutside:!1});const F=42-_.length,W=w===11?0:w+1,T=w===11?x+1:x;for(let k=1;k<=F;k++)_.push({date:new Date(T,W,k),isOutside:!0});return _},[x,w,S,E]),O=()=>{b(new Date(x,w-1,1))},C=()=>{b(new Date(x,w+1,1))},N=_=>{t?.(_),m(!1)},$=_=>!!(o&&_<new Date(o.setHours(0,0,0,0))||i&&_>new Date(i.setHours(23,59,59,999))),I=(_,j)=>$(_)?"disabled":j?"outside":e&&bT(e,_)?"selected":CJ(_)?"today":"default";return f.useEffect(()=>{e&&b(e)},[e]),y.jsxs(mT,{open:g,onOpenChange:m,children:[y.jsx(hT,{asChild:!0,children:y.jsxs("button",{ref:v,id:c,type:"button",disabled:a,className:D(xT({variant:s}),l),"aria-label":d||"Choose date","aria-describedby":p,"aria-haspopup":"dialog","aria-expanded":g,children:[y.jsx("span",{className:D("truncate",!e&&"text-tertiary"),children:e?Vw(e,n):r}),y.jsx(p0,{className:"text-tertiary h-4 w-4 shrink-0"}),u&&y.jsx("input",{type:"hidden",name:u,value:e?Vw(e,"yyyy-MM-dd"):""})]})}),y.jsx(gT,{children:y.jsxs(yT,{className:D("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:O,className:D("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(ll,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Fw[w]," ",x]}),y.jsx("button",{type:"button",onClick:C,className:D("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(cl,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:EJ.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":`${Fw[w]} ${x}`,children:P.map(({date:_,isOutside:j},R)=>{const V=I(_,j),F=V==="disabled";return y.jsx("button",{type:"button",onClick:()=>!F&&N(_),disabled:F,className:wT({state:V}),"aria-label":_.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":V==="selected",tabIndex:j?-1:0,children:_.getDate()},R)})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsx("button",{type:"button",onClick:()=>N(new Date),className:D("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"})})]})})]})});ST.displayName="DatePicker";const AJ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ww=["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 _J(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 TJ(e){return PT(new Date,e)}function jJ(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 Uw(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 ET=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"}}),OT=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"}}),CT=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),[S,E]=f.useState(()=>e?`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`:"12:00"),P=x.getFullYear(),O=x.getMonth(),C=Kw(P,O),N=_J(P,O),$=f.useMemo(()=>{const T=[],k=O===0?11:O-1,G=O===0?P-1:P,ee=Kw(G,k);for(let le=N-1;le>=0;le--)T.push({date:new Date(G,k,ee-le),isOutside:!0});for(let le=1;le<=C;le++)T.push({date:new Date(P,O,le),isOutside:!1});const ne=42-T.length,ie=O===11?0:O+1,oe=O===11?P+1:P;for(let le=1;le<=ne;le++)T.push({date:new Date(oe,ie,le),isOutside:!0});return T},[P,O,C,N]),I=()=>{w(new Date(P,O-1,1))},_=()=>{w(new Date(P,O+1,1))},j=T=>{const{hours:k,minutes:G}=Uw(S),ee=new Date(T.getFullYear(),T.getMonth(),T.getDate(),k,G);t?.(ee)},R=T=>{const k=T.target.value;if(E(k),e){const{hours:G,minutes:ee}=Uw(k),ne=new Date(e);ne.setHours(G,ee),t?.(ne)}},V=()=>{const T=new Date;E(`${String(T.getHours()).padStart(2,"0")}:${String(T.getMinutes()).padStart(2,"0")}`),t?.(T),b(!1)},F=T=>!!(o&&T<new Date(o.setHours(0,0,0,0))||i&&T>new Date(i.setHours(23,59,59,999))),W=(T,k)=>F(T)?"disabled":k?"outside":e&&PT(e,T)?"selected":TJ(T)?"today":"default";return f.useEffect(()=>{e&&(w(e),E(`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`))},[e]),y.jsxs(mT,{open:h,onOpenChange:b,children:[y.jsx(hT,{asChild:!0,children:y.jsxs("button",{ref:m,id:c,type:"button",disabled:a,className:D(ET({variant:s}),l),"aria-label":v||"Choose date and time","aria-describedby":g,"aria-haspopup":"dialog","aria-expanded":h,children:[y.jsx("span",{className:D("truncate",!e&&"text-tertiary"),children:e?jJ(e,n,d):r}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx(Dk,{className:"text-tertiary h-4 w-4 shrink-0"}),y.jsx(p0,{className:"text-tertiary h-4 w-4 shrink-0"})]}),u&&y.jsx("input",{type:"hidden",name:u,value:e?e.toISOString():""})]})}),y.jsx(gT,{children:y.jsxs(yT,{className:D("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:I,className:D("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(ll,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Ww[O]," ",P]}),y.jsx("button",{type:"button",onClick:_,className:D("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(cl,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:AJ.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":`${Ww[O]} ${P}`,children:$.map(({date:T,isOutside:k},G)=>{const ee=W(T,k),ne=ee==="disabled";return y.jsx("button",{type:"button",onClick:()=>!ne&&j(T),disabled:ne,className:OT({state:ee}),"aria-label":T.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":ee==="selected",tabIndex:k?-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:S,onChange:R,step:p*60,className:D("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:D("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"})})]})})]})});CT.displayName="DateTimePicker";const AT=te("bg-border shrink-0",{variants:{orientation:{horizontal:"h-px w-full",vertical:"h-full w-px"}},defaultVariants:{orientation:"horizontal"}}),_T=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:D(AT({orientation:i,className:e})),...n})});_T.displayName="Divider";var bc="DropdownMenu",[NJ]=Be(bc,[hc]),dt=hc(),[MJ,TT]=NJ(bc),jT=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]=nt({prop:o,defaultProp:i??!1,onChange:a,caller:bc});return y.jsx(MJ,{scope:t,triggerId:vt(),triggerRef:c,contentId:vt(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(p=>!p),[d]),modal:s,children:y.jsx(p_,{...l,open:u,onOpenChange:d,dir:n,modal:s,children:r})})};jT.displayName=bc;var NT="DropdownMenuTrigger",MT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=TT(NT,r),a=dt(r);return y.jsx(v_,{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())})})})});MT.displayName=NT;var IJ="DropdownMenuPortal",IT=e=>{const{__scopeDropdownMenu:t,...r}=e,n=dt(t);return y.jsx(m_,{...n,...r})};IT.displayName=IJ;var kT="DropdownMenuContent",RT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=TT(kT,r),i=dt(r),a=f.useRef(!1);return y.jsx(h_,{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)"}})});RT.displayName=kT;var kJ="DropdownMenuGroup",DT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(g_,{...o,...n,ref:t})});DT.displayName=kJ;var RJ="DropdownMenuLabel",$T=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(y_,{...o,...n,ref:t})});$T.displayName=RJ;var DJ="DropdownMenuItem",LT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(b_,{...o,...n,ref:t})});LT.displayName=DJ;var $J="DropdownMenuCheckboxItem",zT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(x_,{...o,...n,ref:t})});zT.displayName=$J;var LJ="DropdownMenuRadioGroup",FT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(w_,{...o,...n,ref:t})});FT.displayName=LJ;var zJ="DropdownMenuRadioItem",BT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(S_,{...o,...n,ref:t})});BT.displayName=zJ;var FJ="DropdownMenuItemIndicator",VT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(P_,{...o,...n,ref:t})});VT.displayName=FJ;var BJ="DropdownMenuSeparator",WT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(E_,{...o,...n,ref:t})});WT.displayName=BJ;var VJ="DropdownMenuArrow",WJ=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(O_,{...o,...n,ref:t})});WJ.displayName=VJ;var KJ=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=dt(t),[s,l]=nt({prop:n,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return y.jsx(C_,{...a,open:s,onOpenChange:l,children:r})},UJ="DropdownMenuSubTrigger",KT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(A_,{...o,...n,ref:t})});KT.displayName=UJ;var HJ="DropdownMenuSubContent",UT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(__,{...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)"}})});UT.displayName=HJ;var GJ=jT,HT=MT,qJ=IT,YJ=RT,XJ=DT,ZJ=$T,JJ=LT,QJ=zT,eQ=FT,tQ=BT,GT=VT,rQ=WT,nQ=KJ,oQ=KT,iQ=UT;const aQ=GJ,sQ=HT,lQ=XJ,qT=qJ,cQ=nQ,uQ=eQ,YT=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(oQ,{ref:o,className:D("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"})})]}));YT.displayName="DropdownMenuSubTrigger";const XT=f.forwardRef(({className:e,...t},r)=>y.jsx(iQ,{ref:r,className:D("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}));XT.displayName="DropdownMenuSubContent";const ZT=f.forwardRef(({className:e,sideOffset:t=4,...r},n)=>y.jsx(qT,{children:y.jsx(YJ,{ref:n,sideOffset:t,className:D("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})}));ZT.displayName="DropdownMenuContent";const JT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(JJ,{ref:n,className:D("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}));JT.displayName="DropdownMenuItem";const QT=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(QJ,{ref:o,className:D("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(GT,{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]}));QT.displayName="DropdownMenuCheckboxItem";const ej=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(tQ,{ref:n,className:D("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(GT,{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]}));ej.displayName="DropdownMenuRadioItem";const tj=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(ZJ,{ref:n,className:D("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));tj.displayName="DropdownMenuLabel";const rj=f.forwardRef(({className:e,...t},r)=>y.jsx(rQ,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));rj.displayName="DropdownMenuSeparator";const nj=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:D("text-small text-tertiary ml-auto tracking-widest",e),...t}));nj.displayName="DropdownMenuShortcut";const oj=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(HT,{ref:n,className:D("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(v0,{className:o[t]}),y.jsx("span",{className:"sr-only",children:"Open menu"})]})});oj.displayName="ActionsMenuButton";const ij=te("inline-block",{variants:{size:{xs:"h-3",sm:"h-4",md:"h-5",lg:"h-6",xl:"h-8"}},defaultVariants:{size:"md"}});function dQ(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 aj=f.forwardRef(({className:e,size:t,compact:r,...n},o)=>{const i=dQ(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:D(ij({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"})]})]})})})});aj.displayName="EngrateLogo";const sj=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"}}),lj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"span";return y.jsx(a,{className:D(sj({variant:t,size:r,className:e})),ref:i,...o})});lj.displayName="Eyebrow";const cj=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"}}),uj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"footer";return y.jsx(a,{ref:i,className:D(cj({variant:t,size:r,className:e})),...o})});uj.displayName="Footer";const dj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-4",e),...r})});dj.displayName="FooterContent";const fj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex flex-col gap-3",e),...r})});fj.displayName="FooterSection";const pj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"h3";return y.jsx(o,{ref:n,className:D("text-small font-medium",e),...r})});pj.displayName="FooterHeading";const vj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"nav";return y.jsx(o,{ref:n,className:D("text-small text-secondary flex flex-col gap-2",e),...r})});vj.displayName="FooterLinks";const mj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("border-border mt-8 flex flex-col items-center justify-between gap-4 border-t pt-8 sm:flex-row",e),...r})});mj.displayName="FooterBottom";const hj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"p";return y.jsx(o,{ref:n,className:D("text-small text-secondary",e),...r})});hj.displayName="FooterCopyright";const Rm=f.forwardRef(({className:e,variant:t="default",children:r,...n},o)=>r?y.jsx("p",{ref:o,className:D("text-descriptive font-sans text-sm",t==="default"?"text-tertiary":"text-error",e),...n,children:r}):null);Rm.displayName="FormMessage";var fQ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pQ=fQ.reduce((e,t)=>{const r=NS(`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}},{}),vQ="Label",gj=f.forwardRef((e,t)=>y.jsx(pQ.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));gj.displayName=vQ;var mQ=gj;const yj=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"}}),Dm=f.forwardRef(({className:e,size:t,...r},n)=>y.jsx(mQ,{ref:n,className:D(yj({size:t}),e),...r}));Dm.displayName="Label";const bj=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:D("flex flex-col gap-1.5",e),...s,children:[t&&y.jsx(Dm,{htmlFor:i,size:r,children:t}),a,(n||o)&&y.jsx(Rm,{id:c,variant:o?"error":"default",role:o?"alert":void 0,children:o||n})]})});bj.displayName="FormField";const hQ=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"}}),gQ={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"},yQ={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},bQ={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},xQ={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 xj=f.forwardRef(({className:e,cols:t,gap:r,align:n,justify:o,as:i="div",asChild:a=!1,...s},l)=>{const c=a?Ee:i,u=yn(t,gQ,1),d=yn(r,yQ,"md"),p=yn(n,bQ,"stretch"),v=yn(o,xQ,"stretch");return y.jsx(c,{className:D("grid",u,d,p,v,e),ref:l,...s})});xj.displayName="Grid";const wQ=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:{}}),SQ={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"},PQ={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"},EQ={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"},wj=f.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:n,as:o="div",asChild:i=!1,...a},s)=>{const l=i?Ee:o,c=yn(t,SQ),u=yn(r,PQ),d=yn(n,EQ);return y.jsx(l,{className:D(c,u,d,e),ref:s,...a})});wj.displayName="GridItem";const Sj=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}}),Pj=f.forwardRef(({className:e,variant:t,size:r,sticky:n,asChild:o=!1,...i},a)=>{const s=o?Ee:"header";return y.jsx(s,{ref:a,className:D(Sj({variant:t,size:r,sticky:n,className:e})),...i})});Pj.displayName="Header";const Ej=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex shrink-0 items-center",e),...r})});Ej.displayName="HeaderLogo";const Oj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"nav";return y.jsx(o,{ref:n,className:D("flex items-center gap-6",e),...r})});Oj.displayName="HeaderNav";const Cj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex shrink-0 items-center gap-3",e),...r})});Cj.displayName="HeaderActions";const Aj=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"}}),OQ={hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4"},_j=f.forwardRef(({className:e,level:t="h1",as:r,asChild:n=!1,...o},i)=>{const a=r??OQ[t??"h1"],s=n?Ee:a;return y.jsx(s,{className:D(Aj({level:t,className:e})),ref:i,...o})});_j.displayName="Heading";const Tj=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"}}),jj=f.forwardRef(({className:e,variant:t,type:r="text",...n},o)=>y.jsx("input",{type:r,className:D(Tj({variant:t}),e),ref:o,...n}));jj.displayName="Input";const Nj=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Fa=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],Mj=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:Fa[x%Fa.length]})):[]},[r,n]);return y.jsx("div",{ref:v,className:D(Nj({size:t,className:e})),role:"img",...p,children:y.jsx(jp,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(tY,{data:r,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(cm,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),y.jsx(Gs,{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(qs,{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(qv,{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(Dl,{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(jC,{type:u?"monotone":"linear",dataKey:m.key,name:m.name,stroke:m.color||Fa[h%Fa.length],strokeWidth:c,dot:d,activeDot:d?{r:6}:!1},m.key))]})})})});Mj.displayName="LineChart";const Ij=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"}}),kj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"a";return y.jsx(a,{className:D(Ij({variant:t,size:r,className:e})),ref:i,...o})});kj.displayName="Link";const CQ=uS,AQ=dS,Rj=fS,_Q=vl,$m=f.forwardRef(({className:e,...t},r)=>y.jsx(pS,{ref:r,className:D("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}));$m.displayName="ModalOverlay";const Dj=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"}}),$j=f.forwardRef(({className:e,children:t,size:r,showCloseButton:n=!0,...o},i)=>y.jsxs(Rj,{children:[y.jsx($m,{}),y.jsxs(vS,{ref:i,className:D(Dj({size:r}),e),...o,children:[t,n&&y.jsxs(vl,{className:D("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(m0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$j.displayName="ModalContent";const Lj=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}));Lj.displayName="ModalHeader";const zj=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));zj.displayName="ModalFooter";const Fj=f.forwardRef(({className:e,...t},r)=>y.jsx(mS,{ref:r,className:D("text-primary text-lg leading-none tracking-tight",e),...t}));Fj.displayName="ModalTitle";const Bj=f.forwardRef(({className:e,...t},r)=>y.jsx(hS,{ref:r,className:D("text-secondary text-sm",e),...t}));Bj.displayName="ModalDescription";const Vj=te("flex items-center justify-center gap-1 font-sans",{variants:{size:{sm:"text-small",default:"text-body",lg:"text-lead"}},defaultVariants:{size:"default"}}),Wj=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"}}),Kj=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:D(Vj({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(ll,{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(v0,{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(cl,{className:"h-4 w-4"})})]})});Kj.displayName="Pagination";const ro=f.forwardRef(({className:e,variant:t,size:r,...n},o)=>y.jsx("button",{ref:o,type:"button",className:D(Wj({variant:t,size:r,className:e})),...n}));ro.displayName="PaginationItem";const Uj=f.createContext(null);function TQ(){const e=f.useContext(Uj);if(!e)throw new Error("PaginationDot must be used within a PaginationDots component");return e}const Hj=te("inline-flex items-center justify-center font-sans",{variants:{size:{sm:"gap-1.5",default:"gap-2",lg:"gap-2.5"}},defaultVariants:{size:"default"}}),Gj=f.forwardRef(({className:e,value:t,onValueChange:r,size:n="default",children:o,...i},a)=>y.jsx(Uj.Provider,{value:{value:t,onValueChange:r,size:n??"default"},children:y.jsx("div",{ref:a,role:"group","aria-label":"Content navigation",className:D(Hj({size:n}),e),...i,children:o})}));Gj.displayName="PaginationDots";const qj=te("focus-visible:ring-sunflower rounded-full transition-all duration-300 ease-out focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{size:{sm:"h-1.5",default:"h-2",lg:"h-2.5"},active:{true:"bg-sunflower",false:"bg-border hover:bg-quaternary"}},compoundVariants:[{size:"sm",active:!1,class:"w-1.5"},{size:"default",active:!1,class:"w-2"},{size:"lg",active:!1,class:"w-2.5"},{size:"sm",active:!0,class:"w-4"},{size:"default",active:!0,class:"w-6"},{size:"lg",active:!0,class:"w-8"}],defaultVariants:{size:"default",active:!1}}),Yj=f.forwardRef(({className:e,index:t,...r},n)=>{const{value:o,onValueChange:i,size:a}=TQ(),s=t===o;return y.jsx("button",{ref:n,type:"button","aria-label":`Go to slide ${t+1}`,"aria-current":s?"true":void 0,onClick:()=>i?.(t),className:D(qj({size:a,active:s}),e),...r})});Yj.displayName="PaginationDot";const Xj=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Hw=["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,S=m.innerRadius??0,E=m.outerRadius??0,P=Math.PI/180,O=S+(E-S)*.5,C=h+O*Math.cos(-x*P),N=b+O*Math.sin(-x*P);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:D(Xj({size:t,className:e})),role:"img",...d,children:y.jsx(jp,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(mY,{children:[o&&y.jsx(qv,{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(Dl,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),y.jsx(pC,{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(Hi,{fill:m.color||Hw[h%Hw.length]},`cell-${m.name}-${h}`))})]})})})});Zj.displayName="PieChart";const Jj=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"}}),Qj=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}}),eN=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:D(Jj({size:n,className:e})),...l,children:y.jsx("div",{className:D(Qj({variant:o,animated:i}),s&&"animate-progress-indeterminate"),style:{width:s?"50%":`${u}%`}})})});eN.displayName="ProgressIndicator";var Lm="Radio",[jQ,tN]=Be(Lm),[NQ,MQ]=jQ(Lm),rN=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=re(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":aN(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(iN,{control:d,bubbles:!g.current,name:n,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});rN.displayName=Lm;var nN="RadioIndicator",oN=f.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=MQ(nN,r);return y.jsx(lt,{present:n||i.checked,children:y.jsx(Q.span,{"data-state":aN(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});oN.displayName=nN;var IQ="RadioBubbleInput",iN=f.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=re(a,i),l=qi(r),c=Yi(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}})});iN.displayName=IQ;function aN(e){return e?"checked":"unchecked"}var kQ=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],xc="RadioGroup",[RQ]=Be(xc,[mc,tN]),sN=mc(),lN=tN(),[DQ,$Q]=RQ(xc),cN=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=sN(r),g=xo(c),[m,h]=nt({prop:i,defaultProp:o??null,onChange:d,caller:xc});return y.jsx(DQ,{scope:r,name:n,required:a,disabled:s,value:m,onValueChange:h,children:y.jsx(BA,{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})})})});cN.displayName=xc;var uN="RadioGroupItem",dN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=$Q(uN,r),a=i.disabled||n,s=sN(r),l=lN(r),c=f.useRef(null),u=re(t,c),d=i.value===o.value,p=f.useRef(!1);return f.useEffect(()=>{const v=m=>{kQ.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(VA,{asChild:!0,...s,focusable:!a,active:d,children:y.jsx(rN,{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()})})})});dN.displayName=uN;var LQ="RadioGroupIndicator",fN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=lN(r);return y.jsx(oN,{...o,...n,ref:t})});fN.displayName=LQ;var zQ=cN,FQ=dN,BQ=fN;const pN=f.forwardRef(({className:e,...t},r)=>y.jsx(zQ,{className:D("grid gap-2",e),...t,ref:r}));pN.displayName="RadioGroup";const vN=f.forwardRef(({className:e,...t},r)=>y.jsx(FQ,{ref:r,className:D("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(BQ,{className:"flex items-center justify-center",children:y.jsx("span",{className:"bg-sunflower h-2.5 w-2.5 rounded-full"})})}));vN.displayName="RadioGroupItem";function nl(e,[t,r]){return Math.min(r,Math.max(t,e))}function VQ(e){const t=WQ(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(UQ);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 WQ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=GQ(o),s=HQ(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 KQ=Symbol("radix.slottable");function UQ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KQ}function HQ(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 GQ(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 mN=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"}),qQ="VisuallyHidden",wc=f.forwardRef((e,t)=>y.jsx(Q.span,{...e,ref:t,style:{...mN,...e.style}}));wc.displayName=qQ;var YQ=wc,XQ=[" ","Enter","ArrowUp","ArrowDown"],ZQ=[" ","Enter"],kn="Select",[Sc,Pc,JQ]=bo(kn),[Ro]=Be(kn,[JQ,rn]),Ec=rn(),[QQ,an]=Ro(kn),[eee,tee]=Ro(kn),hN=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=Ec(t),[h,b]=f.useState(null),[x,w]=f.useState(null),[S,E]=f.useState(!1),P=xo(c),[O,C]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:kn}),[N,$]=nt({prop:a,defaultProp:s,onChange:l,caller:kn}),I=f.useRef(null),_=h?g||!!h.closest("form"):!0,[j,R]=f.useState(new Set),V=Array.from(j).map(F=>F.props.value).join(";");return y.jsx(Zi,{...m,children:y.jsxs(QQ,{required:v,scope:t,trigger:h,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:vt(),value:N,onValueChange:$,open:O,onOpenChange:C,dir:P,triggerPointerDownPosRef:I,disabled:p,children:[y.jsx(Sc.Provider,{scope:t,children:y.jsx(eee,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(F=>{R(W=>new Set(W).add(F))},[]),onNativeOptionRemove:f.useCallback(F=>{R(W=>{const T=new Set(W);return T.delete(F),T})},[]),children:r})}),_?y.jsxs(BN,{"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:d,value:N,onChange:F=>$(F.target.value),disabled:p,form:g,children:[N===void 0?y.jsx("option",{value:""}):null,Array.from(j)]},V):null]})})};hN.displayName=kn;var gN="SelectTrigger",yN=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Ec(r),a=an(gN,r),s=a.disabled||n,l=re(t,a.onTriggerChange),c=Pc(r),u=f.useRef("touch"),[d,p,v]=WN(m=>{const h=c().filter(w=>!w.disabled),b=h.find(w=>w.value===a.value),x=KN(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(Ji,{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":VN(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===" ")&&XQ.includes(m.key)&&(g(),m.preventDefault())})})})});yN.displayName=gN;var bN="SelectValue",xN=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a="",...s}=e,l=an(bN,r),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=re(t,l.onValueNodeChange);return Ye(()=>{c(u)},[c,u]),y.jsx(Q.span,{...s,ref:d,style:{pointerEvents:"none"},children:VN(l.value)?y.jsx(y.Fragment,{children:a}):i})});xN.displayName=bN;var ree="SelectIcon",wN=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return y.jsx(Q.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});wN.displayName=ree;var nee="SelectPortal",SN=e=>y.jsx(Ln,{asChild:!0,...e});SN.displayName=nee;var Rn="SelectContent",PN=f.forwardRef((e,t)=>{const r=an(Rn,e.__scopeSelect),[n,o]=f.useState();if(Ye(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?wi.createPortal(y.jsx(EN,{scope:e.__scopeSelect,children:y.jsx(Sc.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),i):null}return y.jsx(ON,{...e,ref:t})});PN.displayName=Rn;var zt=10,[EN,sn]=Ro(Rn),oee="SelectContentImpl",iee=VQ("SelectContent.RemoveScroll"),ON=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,S]=f.useState(null),[E,P]=f.useState(null),O=re(t,K=>S(K)),[C,N]=f.useState(null),[$,I]=f.useState(null),_=Pc(r),[j,R]=f.useState(!1),V=f.useRef(!1);f.useEffect(()=>{if(w)return fl(w)},[w]),ul();const F=f.useCallback(K=>{const[ue,...L]=_().map(z=>z.ref.current),[H]=L.slice(-1),B=document.activeElement;for(const z of K)if(z===B||(z?.scrollIntoView({block:"nearest"}),z===ue&&E&&(E.scrollTop=0),z===H&&E&&(E.scrollTop=E.scrollHeight),z?.focus(),document.activeElement!==B))return},[_,E]),W=f.useCallback(()=>F([C,w]),[F,C,w]);f.useEffect(()=>{j&&W()},[j,W]);const{onOpenChange:T,triggerPointerDownPosRef:k}=x;f.useEffect(()=>{if(w){let K={x:0,y:0};const ue=H=>{K={x:Math.abs(Math.round(H.pageX)-(k.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(k.current?.y??0))}},L=H=>{K.x<=10&&K.y<=10?H.preventDefault():w.contains(H.target)||T(!1),document.removeEventListener("pointermove",ue),k.current=null};return k.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,k]),f.useEffect(()=>{const K=()=>T(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[T]);const[G,ee]=WN(K=>{const ue=_().filter(B=>!B.disabled),L=ue.find(B=>B.ref.current===document.activeElement),H=KN(ue,K,L);H&&setTimeout(()=>H.ref.current.focus())}),ne=f.useCallback((K,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&(N(K),H&&(V.current=!0))},[x.value]),ie=f.useCallback(()=>w?.focus(),[w]),oe=f.useCallback((K,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&I(K)},[x.value]),le=n==="popper"?$f:CN,Oe=le===$f?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:h}:{};return y.jsx(EN,{scope:r,content:w,viewport:E,onViewportChange:P,itemRefCallback:ne,selectedItem:C,onItemLeave:ie,itemTextRefCallback:oe,focusSelectedItem:W,selectedItemText:$,position:n,isPositioned:j,searchRef:G,children:y.jsx(Pi,{as:iee,allowPinchZoom:!0,children:y.jsx(Si,{asChild:!0,trapped:x.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:U(o,K=>{x.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:y.jsx(le,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:K=>K.preventDefault(),...b,...Oe,onPlaced:()=>R(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:U(b.onKeyDown,K=>{const ue=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!ue&&K.key.length===1&&ee(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let H=_().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(K.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const B=K.target,z=H.indexOf(B);H=H.slice(z+1)}setTimeout(()=>F(H)),K.preventDefault()}})})})})})})});ON.displayName=oee;var aee="SelectItemAlignedPosition",CN=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=re(t,O=>u(O)),p=Pc(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 O=i.trigger.getBoundingClientRect(),C=c.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),$=b.getBoundingClientRect();if(i.dir!=="rtl"){const B=$.left-C.left,z=N.left-B,fe=O.left-z,se=O.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-zt,Lt=nl(z,[zt,Math.max(zt,et-Qe)]);s.style.minWidth=se+"px",s.style.left=Lt+"px"}else{const B=C.right-$.right,z=window.innerWidth-N.right-B,fe=window.innerWidth-O.right-z,se=O.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-zt,Lt=nl(z,[zt,Math.max(zt,et-Qe)]);s.style.minWidth=se+"px",s.style.right=Lt+"px"}const I=p(),_=window.innerHeight-zt*2,j=m.scrollHeight,R=window.getComputedStyle(c),V=parseInt(R.borderTopWidth,10),F=parseInt(R.paddingTop,10),W=parseInt(R.borderBottomWidth,10),T=parseInt(R.paddingBottom,10),k=V+F+j+T+W,G=Math.min(h.offsetHeight*5,k),ee=window.getComputedStyle(m),ne=parseInt(ee.paddingTop,10),ie=parseInt(ee.paddingBottom,10),oe=O.top+O.height/2-zt,le=_-oe,Oe=h.offsetHeight/2,K=h.offsetTop+Oe,ue=V+F+K,L=k-ue;if(ue<=oe){const B=I.length>0&&h===I[I.length-1].ref.current;s.style.bottom="0px";const z=c.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(le,Oe+(B?ie:0)+z+W),se=ue+fe;s.style.height=se+"px"}else{const B=I.length>0&&h===I[0].ref.current;s.style.top="0px";const fe=Math.max(oe,V+m.offsetTop+(B?ne:0)+Oe)+L;s.style.height=fe+"px",m.scrollTop=ue-oe+m.offsetTop}s.style.margin=`${zt}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]);Ye(()=>w(),[w]);const[S,E]=f.useState();Ye(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const P=f.useCallback(O=>{O&&g.current===!0&&(w(),x?.(),g.current=!1)},[w,x]);return y.jsx(lee,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:P,children:y.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:y.jsx(Q.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});CN.displayName=aee;var see="SelectPopperPosition",$f=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=zt,...i}=e,a=Ec(r);return y.jsx(pc,{...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)"}})});$f.displayName=see;var[lee,zm]=Ro(Rn,{}),Lf="SelectViewport",AN=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=sn(Lf,r),a=zm(Lf,r),s=re(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(Sc.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-zt*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),S=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});AN.displayName=Lf;var _N="SelectGroup",[cee,uee]=Ro(_N),TN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=vt();return y.jsx(cee,{scope:r,id:o,children:y.jsx(Q.div,{role:"group","aria-labelledby":o,...n,ref:t})})});TN.displayName=_N;var jN="SelectLabel",NN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=uee(jN,r);return y.jsx(Q.div,{id:o.id,...n,ref:t})});NN.displayName=jN;var ol="SelectItem",[dee,MN]=Ro(ol),IN=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=an(ol,r),l=sn(ol,r),c=s.value===n,[u,d]=f.useState(i??""),[p,v]=f.useState(!1),g=re(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(dee,{scope:r,value:n,disabled:o,textId:m,isSelected:c,onItemTextChange:f.useCallback(x=>{d(w=>w||(x?.textContent??"").trim())},[]),children:y.jsx(Sc.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===" "||(ZQ.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});IN.displayName=ol;var Jo="SelectItemText",kN=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=an(Jo,r),s=sn(Jo,r),l=MN(Jo,r),c=tee(Jo,r),[u,d]=f.useState(null),p=re(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 Ye(()=>(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?wi.createPortal(i.children,a.valueNode):null]})});kN.displayName=Jo;var RN="SelectItemIndicator",DN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return MN(RN,r).isSelected?y.jsx(Q.span,{"aria-hidden":!0,...n,ref:t}):null});DN.displayName=RN;var zf="SelectScrollUpButton",$N=f.forwardRef((e,t)=>{const r=sn(zf,e.__scopeSelect),n=zm(zf,e.__scopeSelect),[o,i]=f.useState(!1),a=re(t,n.onScrollButtonChange);return Ye(()=>{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(zN,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});$N.displayName=zf;var Ff="SelectScrollDownButton",LN=f.forwardRef((e,t)=>{const r=sn(Ff,e.__scopeSelect),n=zm(Ff,e.__scopeSelect),[o,i]=f.useState(!1),a=re(t,n.onScrollButtonChange);return Ye(()=>{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(zN,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});LN.displayName=Ff;var zN=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=sn("SelectScrollButton",r),a=f.useRef(null),s=Pc(r),l=f.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),Ye(()=>{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()})})}),fee="SelectSeparator",FN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return y.jsx(Q.div,{"aria-hidden":!0,...n,ref:t})});FN.displayName=fee;var Bf="SelectArrow",pee=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ec(r),i=an(Bf,r),a=sn(Bf,r);return i.open&&a.position==="popper"?y.jsx(vc,{...o,...n,ref:t}):null});pee.displayName=Bf;var vee="SelectBubbleInput",BN=f.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=f.useRef(null),i=re(n,o),a=qi(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:{...mN,...r.style},ref:i,defaultValue:t})});BN.displayName=vee;function VN(e){return e===""||e===void 0}function WN(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 KN(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=mee(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 mee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var hee=hN,gee=yN,yee=xN,bee=wN,xee=SN,wee=PN,See=AN,Pee=TN,Eee=NN,Oee=IN,Cee=kN,Aee=DN,_ee=$N,Tee=LN,jee=FN;const Nee=hee,Mee=Pee,Iee=yee,UN=f.forwardRef(({className:e,children:t,variant:r="default",...n},o)=>y.jsxs(gee,{ref:o,className:D("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(bee,{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"})})})]}));UN.displayName="SelectTrigger";const Fm=f.forwardRef(({className:e,...t},r)=>y.jsx(_ee,{ref:r,className:D("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"})})}));Fm.displayName="SelectScrollUpButton";const Bm=f.forwardRef(({className:e,...t},r)=>y.jsx(Tee,{ref:r,className:D("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"})})}));Bm.displayName="SelectScrollDownButton";const HN=f.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>y.jsx(xee,{children:y.jsxs(wee,{ref:o,className:D("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(Fm,{}),y.jsx(See,{className:D("p-1",r==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),y.jsx(Bm,{})]})}));HN.displayName="SelectContent";const GN=f.forwardRef(({className:e,...t},r)=>y.jsx(Eee,{ref:r,className:D("text-small text-tertiary py-1.5 pr-2 pl-8 font-normal",e),...t}));GN.displayName="SelectLabel";const qN=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(Oee,{ref:n,className:D("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(Aee,{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(Cee,{children:t})]}));qN.displayName="SelectItem";const YN=f.forwardRef(({className:e,...t},r)=>y.jsx(jee,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));YN.displayName="SelectSeparator";const XN=f.createContext(null);function Oc(){const e=f.useContext(XN);if(!e)throw new Error("Sidebar components must be used within a Sidebar");return e}const ZN=te(["border-border bg-alt 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"}}),kee={sm:{expanded:"w-52",collapsed:"w-14"},default:{expanded:"w-64",collapsed:"w-16"},lg:{expanded:"w-72",collapsed:"w-20"}},JN=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=S=>{m(S.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=kee[r||"default"];return y.jsx(XN.Provider,{value:h,children:y.jsx("aside",{ref:u,className:D(ZN({variant:t}),g?b.collapsed:b.expanded,e),"data-collapsed":g,...c,children:l})})});JN.displayName="Sidebar";const QN=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex items-center gap-2 px-4 pt-4 pb-2",e),...t}));QN.displayName="SidebarHeader";const eM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex-1 overflow-y-auto px-3 py-2",e),...t}));eM.displayName="SidebarContent";const tM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("border-border mt-auto border-t px-3 py-3",e),...t}));tM.displayName="SidebarFooter";const rM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("space-y-1 py-2",e),...t}));rM.displayName="SidebarGroup";const nM=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n}=Oc();return n?null:y.jsx("div",{ref:r,className:D("text-tertiary px-3 py-2 font-mono text-xs leading-5 font-normal tracking-[1.2px] uppercase",e),...t})});nM.displayName="SidebarGroupLabel";const Vf=te(["text-small relative flex w-full items-center gap-3 rounded-md px-3 py-2 font-sans font-normal","text-secondary hover:bg-vanilla hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"],{variants:{active:{true:"text-primary",false:""}},defaultVariants:{active:!1}}),oM=f.forwardRef(({className:e,active:t,icon:r,asChild:n=!1,children:o,...i},a)=>{const{collapsed:s}=Oc(),l=n?Ee:"button",c=t?y.jsx("span",{className:"bg-sunflower absolute top-1 bottom-1 left-0 w-[3px] rounded-full","aria-hidden":"true"}):null,u=y.jsxs(y.Fragment,{children:[c,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(Ee,{ref:a,className:D(Vf({active:t}),s&&"justify-center px-2",e),...i,children:f.isValidElement(o)?f.cloneElement(o,{children:y.jsxs(y.Fragment,{children:[c,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:D(Vf({active:t}),s&&"justify-center px-2",e),...i,children:u})});oM.displayName="SidebarItem";const iM=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n,setCollapsed:o,collapsible:i}=Oc();return i?y.jsx("button",{ref:r,type:"button",className:D("text-small flex w-full items-center rounded-md p-2 font-sans font-normal","text-secondary hover:bg-vanilla 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(cl,{className:"h-5 w-5"}):y.jsx(ll,{className:"h-5 w-5"})}):null});iM.displayName="SidebarTrigger";const aM=f.forwardRef(({className:e,...t},r)=>y.jsx("hr",{ref:r,className:D("border-border my-3 border-t",e),...t}));aM.displayName="SidebarSeparator";const sM=te("bg-contrast animate-pulse",{variants:{variant:{default:"rounded-md",circular:"rounded-full",text:"rounded"}},defaultVariants:{variant:"default"}}),lM=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:D(sM({variant:t,className:e})),style:s,...i})});lM.displayName="Skeleton";var cM=["PageUp","PageDown"],uM=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dM={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Do="Slider",[Wf,Ree,Dee]=bo(Do),[fM]=Be(Do,[Dee]),[$ee,Cc]=fM(Do),pM=f.forwardRef((e,t)=>{const{name:r,min:n=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[n],value:u,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:v=!1,form:g,...m}=e,h=f.useRef(new Set),b=f.useRef(0),w=a==="horizontal"?Lee:zee,[S=[],E]=nt({prop:u,defaultProp:c,onChange:I=>{[...h.current][b.current]?.focus(),d(I)}}),P=f.useRef(S);function O(I){const _=Kee(S,I);$(I,_)}function C(I){$(I,b.current)}function N(){const I=P.current[b.current];S[b.current]!==I&&p(S)}function $(I,_,{commit:j}={commit:!1}){const R=qee(i),V=Yee(Math.round((I-n)/i)*i+n,R),F=nl(V,[n,o]);E((W=[])=>{const T=Vee(W,F,_);if(Gee(T,l*i)){b.current=T.indexOf(F);const k=String(T)!==String(W);return k&&j&&p(T),k?T:W}else return W})}return y.jsx($ee,{scope:e.__scopeSlider,name:r,disabled:s,min:n,max:o,valueIndexToChangeRef:b,thumbs:h.current,values:S,orientation:a,form:g,children:y.jsx(Wf.Provider,{scope:e.__scopeSlider,children:y.jsx(Wf.Slot,{scope:e.__scopeSlider,children:y.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:t,onPointerDown:U(m.onPointerDown,()=>{s||(P.current=S)}),min:n,max:o,inverted:v,onSlideStart:s?void 0:O,onSlideMove:s?void 0:C,onSlideEnd:s?void 0:N,onHomeKeyDown:()=>!s&&$(n,0,{commit:!0}),onEndKeyDown:()=>!s&&$(o,S.length-1,{commit:!0}),onStepKeyDown:({event:I,direction:_})=>{if(!s){const V=cM.includes(I.key)||I.shiftKey&&uM.includes(I.key)?10:1,F=b.current,W=S[F],T=i*V*_;$(W+T,F,{commit:!0})}}})})})})});pM.displayName=Do;var[vM,mM]=fM(Do,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Lee=f.forwardRef((e,t)=>{const{min:r,max:n,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,[d,p]=f.useState(null),v=re(t,w=>p(w)),g=f.useRef(void 0),m=xo(o),h=m==="ltr",b=h&&!i||!h&&i;function x(w){const S=g.current||d.getBoundingClientRect(),E=[0,S.width],O=Vm(E,b?[r,n]:[n,r]);return g.current=S,O(w-S.left)}return y.jsx(vM,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:y.jsx(hM,{dir:m,"data-orientation":"horizontal",...u,ref:v,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=x(w.clientX);a?.(S)},onSlideMove:w=>{const S=x(w.clientX);s?.(S)},onSlideEnd:()=>{g.current=void 0,l?.()},onStepKeyDown:w=>{const E=dM[b?"from-left":"from-right"].includes(w.key);c?.({event:w,direction:E?-1:1})}})})}),zee=f.forwardRef((e,t)=>{const{min:r,max:n,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,u=f.useRef(null),d=re(t,u),p=f.useRef(void 0),v=!o;function g(m){const h=p.current||u.current.getBoundingClientRect(),b=[0,h.height],w=Vm(b,v?[n,r]:[r,n]);return p.current=h,w(m-h.top)}return y.jsx(vM,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:y.jsx(hM,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const h=g(m.clientY);i?.(h)},onSlideMove:m=>{const h=g(m.clientY);a?.(h)},onSlideEnd:()=>{p.current=void 0,s?.()},onStepKeyDown:m=>{const b=dM[v?"from-bottom":"from-top"].includes(m.key);l?.({event:m,direction:b?-1:1})}})})}),hM=f.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=Cc(Do,r);return y.jsx(Q.span,{...c,ref:t,onKeyDown:U(e.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):cM.concat(uM).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:U(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(p)?p.focus():n(d)}),onPointerMove:U(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:U(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),i(d))})})}),gM="SliderTrack",yM=f.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=Cc(gM,r);return y.jsx(Q.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});yM.displayName=gM;var Kf="SliderRange",bM=f.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=Cc(Kf,r),i=mM(Kf,r),a=f.useRef(null),s=re(t,a),l=o.values.length,c=o.values.map(p=>SM(p,o.min,o.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return y.jsx(Q.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:s,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:d+"%"}})});bM.displayName=Kf;var Uf="SliderThumb",xM=f.forwardRef((e,t)=>{const r=Ree(e.__scopeSlider),[n,o]=f.useState(null),i=re(t,s=>o(s)),a=f.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return y.jsx(Fee,{...e,ref:i,index:a})}),Fee=f.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:o,...i}=e,a=Cc(Uf,r),s=mM(Uf,r),[l,c]=f.useState(null),u=re(t,x=>c(x)),d=l?a.form||!!l.closest("form"):!0,p=Yi(l),v=a.values[n],g=v===void 0?0:SM(v,a.min,a.max),m=Wee(n,a.values.length),h=p?.[s.size],b=h?Uee(h,g,s.direction):0;return f.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),y.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${b}px)`},children:[y.jsx(Wf.ItemSlot,{scope:e.__scopeSlider,children:y.jsx(Q.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":v,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:u,style:v===void 0?{display:"none"}:e.style,onFocus:U(e.onFocus,()=>{a.valueIndexToChangeRef.current=n})})}),d&&y.jsx(wM,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:v},n)]})});xM.displayName=Uf;var Bee="RadioBubbleInput",wM=f.forwardRef(({__scopeSlider:e,value:t,...r},n)=>{const o=f.useRef(null),i=re(o,n),a=qi(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&u){const d=new Event("input",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[a,t]),y.jsx(Q.input,{style:{display:"none"},...r,ref:i,defaultValue:t})});wM.displayName=Bee;function Vee(e=[],t,r){const n=[...e];return n[r]=t,n.sort((o,i)=>o-i)}function SM(e,t,r){const i=100/(r-t)*(e-t);return nl(i,[0,100])}function Wee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Kee(e,t){if(e.length===1)return 0;const r=e.map(o=>Math.abs(o-t)),n=Math.min(...r);return r.indexOf(n)}function Uee(e,t,r){const n=e/2,i=Vm([0,50],[0,n]);return(n-i(t)*r)*r}function Hee(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function Gee(e,t){if(t>0){const r=Hee(e);return Math.min(...r)>=t}return!0}function Vm(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function qee(e){return(String(e).split(".")[1]||"").length}function Yee(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var Xee=pM,Zee=yM,Jee=bM,Qee=xM;const PM=te("relative flex w-full touch-none items-center select-none",{variants:{size:{sm:"[--slider-thumb-size:theme(spacing.3)] [--slider-track-height:theme(spacing.1)]",default:"[--slider-thumb-size:theme(spacing.4)] [--slider-track-height:theme(spacing.2)]",lg:"[--slider-thumb-size:theme(spacing.5)] [--slider-track-height:theme(spacing.3)]"}},defaultVariants:{size:"default"}}),EM=f.forwardRef(({className:e,size:t,defaultValue:r=[0],value:n,"aria-label":o,"aria-labelledby":i,...a},s)=>{const l=n?.length??r?.length??1;return y.jsxs(Xee,{ref:s,defaultValue:r,value:n,className:D(PM({size:t}),e),...a,children:[y.jsx(Zee,{className:D("bg-border relative h-[var(--slider-track-height)] w-full grow overflow-hidden rounded-full"),children:y.jsx(Jee,{className:"bg-sunflower absolute h-full"})}),Array.from({length:l}).map((c,u)=>y.jsx(Qee,{"aria-label":o,"aria-labelledby":i,className:D("border-sunflower block h-[var(--slider-thumb-size)] w-[var(--slider-thumb-size)] rounded-full border-2 bg-white shadow-md transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","hover:border-sunflower-hover")},u))]})});EM.displayName="Slider";const OM=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"}}),CM=f.forwardRef(({className:e,variant:t,size:r,label:n="Loading",...o},i)=>y.jsx("span",{ref:i,role:"status","aria-label":n,className:D(OM({variant:t,size:r,className:e})),...o,children:y.jsx("span",{className:"sr-only",children:n})}));CM.displayName="Spinner";const AM=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"}}),_M=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?Ee:a;return y.jsx(u,{className:D(AM({direction:t,gap:r,align:n,justify:o,wrap:i,className:e})),ref:c,...l})});_M.displayName="Stack";var Ac="Switch",[ete]=Be(Ac),[tte,rte]=ete(Ac),TM=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=re(t,w=>v(w)),m=f.useRef(!1),h=p?u||!!p.closest("form"):!0,[b,x]=nt({prop:o,defaultProp:i??!1,onChange:c,caller:Ac});return y.jsxs(tte,{scope:r,checked:b,disabled:s,children:[y.jsx(Q.button,{type:"button",role:"switch","aria-checked":b,"aria-required":a,"data-state":IM(b),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:g,onClick:U(e.onClick,w=>{x(S=>!S),h&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),h&&y.jsx(MM,{control:p,bubbles:!m.current,name:n,value:l,checked:b,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});TM.displayName=Ac;var jM="SwitchThumb",NM=f.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=rte(jM,r);return y.jsx(Q.span,{"data-state":IM(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});NM.displayName=jM;var nte="SwitchBubbleInput",MM=f.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=re(a,i),l=qi(r),c=Yi(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}})});MM.displayName=nte;function IM(e){return e?"checked":"unchecked"}var ote=TM,ite=NM;const kM=f.forwardRef(({className:e,...t},r)=>y.jsx(ote,{className:D("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(ite,{className:D("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")})}));kM.displayName="Switch";const RM=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"}}),ate=te("border-border bg-alt border-b",{variants:{},defaultVariants:{}}),ste=te("",{variants:{},defaultVariants:{}}),lte=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"}}),cte=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"}}),ute=te("text-secondary align-middle [&:has([role=checkbox])]:pr-0",{variants:{size:{default:"p-4",compact:"p-2"}},defaultVariants:{size:"default"}}),Wm=f.createContext({size:"default"}),DM=f.forwardRef(({className:e,variant:t,size:r="default",...n},o)=>y.jsx(Wm.Provider,{value:{size:r??"default"},children:y.jsx("div",{className:"relative w-full overflow-auto",children:y.jsx("table",{ref:o,className:D(RM({variant:t,size:r}),e),...n})})}));DM.displayName="Table";const $M=f.forwardRef(({className:e,...t},r)=>y.jsx("thead",{ref:r,className:D(ate(),e),...t}));$M.displayName="TableHeader";const LM=f.forwardRef(({className:e,...t},r)=>y.jsx("tbody",{ref:r,className:D(ste(),e),...t}));LM.displayName="TableBody";const zM=f.forwardRef(({className:e,...t},r)=>y.jsx("tfoot",{ref:r,className:D("border-border bg-alt text-primary border-t font-normal",e),...t}));zM.displayName="TableFooter";const FM=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx("tr",{ref:n,className:D(lte({variant:t}),e),...r}));FM.displayName="TableRow";const BM=f.forwardRef(({className:e,children:t,sortable:r=!1,sortDirection:n=null,onSort:o,...i},a)=>{const{size:s}=f.useContext(Wm),l=()=>{r&&o&&o()},c=u=>{r&&o&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())};return y.jsx("th",{ref:a,className:D(cte({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:D("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:D("-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"})})]})]})})});BM.displayName="TableHead";const VM=f.forwardRef(({className:e,...t},r)=>{const{size:n}=f.useContext(Wm);return y.jsx("td",{ref:r,className:D(ute({size:n}),e),...t})});VM.displayName="TableCell";const WM=f.forwardRef(({className:e,...t},r)=>y.jsx("caption",{ref:r,className:D("text-small text-tertiary mt-4",e),...t}));WM.displayName="TableCaption";function dte({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 fte({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 KM=f.createContext(null);function UM(){const e=f.useContext(KM);if(!e)throw new Error("Tab components must be used within a Tabs component");return e}const HM=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(KM.Provider,{value:{activeTab:u,setActiveTab:d,registerTrigger:p},children:y.jsx("div",{ref:a,className:D("w-full",e),...i,children:o})})});HM.displayName="Tabs";const GM=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"}}),qM=f.createContext(null),YM=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(qM.Provider,{value:p,children:y.jsxs("div",{ref:d,role:"tablist",className:D(GM({variant:t,className:e})),...r,children:[r.children,t!=="pills"&&i&&y.jsx("span",{className:D("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"})]})})});YM.displayName="TabList";const XM=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"}}),ZM=f.forwardRef(({className:e,variant:t,size:r,value:n,...o},i)=>{const{activeTab:a,setActiveTab:s}=UM(),l=f.useContext(qM),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:D(XM({variant:t,size:r,className:e})),...o})});ZM.displayName="TabTrigger";const JM=te("font-sans",{variants:{size:{sm:"text-small mt-3",default:"text-body mt-4",lg:"text-body mt-6"}},defaultVariants:{size:"default"}}),QM=f.forwardRef(({className:e,size:t,value:r,...n},o)=>{const{activeTab:i}=UM(),a=i===r;return a?y.jsx("div",{ref:o,role:"tabpanel","data-state":a?"active":"inactive",className:D(JM({size:t,className:e})),...n}):null});QM.displayName="TabContent";const eI=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"}}),tI=f.forwardRef(({className:e,variant:t="body",weight:r="regular",as:n="p",asChild:o=!1,...i},a)=>{const s=o?Ee:n;return y.jsx(s,{className:D(eI({variant:t,weight:r,className:e})),ref:a,...i})});tI.displayName="Text";const rI=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"}}),nI=f.forwardRef(({className:e,variant:t,resize:r,...n},o)=>y.jsx("textarea",{className:D(rI({variant:t,resize:r}),e),ref:o,...n}));nI.displayName="Textarea";var Km="ToastProvider",[Um,pte,vte]=bo("Toast"),[oI]=Be("Toast",[vte]),[mte,_c]=oI(Km),iI=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 \`${Km}\`. Expected non-empty \`string\`.`),y.jsx(Um.Provider,{scope:t,children:y.jsx(mte,{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})})};iI.displayName=Km;var aI="ToastViewport",hte=["F8"],Hf="toast.viewportPause",Gf="toast.viewportResume",sI=f.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=hte,label:o="Notifications ({hotkey})",...i}=e,a=_c(aI,r),s=pte(r),l=f.useRef(null),c=f.useRef(null),u=f.useRef(null),d=f.useRef(null),p=re(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 P=new CustomEvent(Hf);b.dispatchEvent(P),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const P=new CustomEvent(Gf);b.dispatchEvent(P),a.isClosePausedRef.current=!1}},S=P=>{!h.contains(P.relatedTarget)&&w()},E=()=>{h.contains(document.activeElement)||w()};return h.addEventListener("focusin",x),h.addEventListener("focusout",S),h.addEventListener("pointermove",x),h.addEventListener("pointerleave",E),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{h.removeEventListener("focusin",x),h.removeEventListener("focusout",S),h.removeEventListener("pointermove",x),h.removeEventListener("pointerleave",E),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[g,a.isClosePausedRef]);const m=f.useCallback(({tabbingDirection:h})=>{const x=s().map(w=>{const S=w.ref.current,E=[S,...Tte(S)];return h==="forwards"?E:E.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 E=document.activeElement,P=x.shiftKey;if(x.target===h&&P){c.current?.focus();return}const N=m({tabbingDirection:P?"backwards":"forwards"}),$=N.findIndex(I=>I===E);Pd(N.slice($+1))?x.preventDefault():P?c.current?.focus():u.current?.focus()}};return h.addEventListener("keydown",b),()=>h.removeEventListener("keydown",b)}},[s,m]),y.jsxs(RR,{ref:l,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&y.jsx(qf,{ref:c,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"forwards"});Pd(h)}}),y.jsx(Um.Slot,{scope:r,children:y.jsx(Q.ol,{tabIndex:-1,...i,ref:p})}),g&&y.jsx(qf,{ref:u,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"backwards"});Pd(h)}})]})});sI.displayName=aI;var lI="ToastFocusProxy",qf=f.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=_c(lI,r);return y.jsx(wc,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{const s=a.relatedTarget;!i.viewport?.contains(s)&&n()}})});qf.displayName=lI;var oa="Toast",gte="toast.swipeStart",yte="toast.swipeMove",bte="toast.swipeCancel",xte="toast.swipeEnd",cI=f.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s,l]=nt({prop:n,defaultProp:o??!0,onChange:i,caller:oa});return y.jsx(lt,{present:r||s,children:y.jsx(Pte,{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)})})})});cI.displayName=oa;var[wte,Ste]=oI(oa,{onClose(){}}),Pte=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=_c(oa,r),[h,b]=f.useState(null),x=re(t,R=>b(R)),w=f.useRef(null),S=f.useRef(null),E=o||m.duration,P=f.useRef(0),O=f.useRef(E),C=f.useRef(0),{onToastAdd:N,onToastRemove:$}=m,I=st(()=>{h?.contains(document.activeElement)&&m.viewport?.focus(),a()}),_=f.useCallback(R=>{!R||R===1/0||(window.clearTimeout(C.current),P.current=new Date().getTime(),C.current=window.setTimeout(I,R))},[I]);f.useEffect(()=>{const R=m.viewport;if(R){const V=()=>{_(O.current),c?.()},F=()=>{const W=new Date().getTime()-P.current;O.current=O.current-W,window.clearTimeout(C.current),l?.()};return R.addEventListener(Hf,F),R.addEventListener(Gf,V),()=>{R.removeEventListener(Hf,F),R.removeEventListener(Gf,V)}}},[m.viewport,E,l,c,_]),f.useEffect(()=>{i&&!m.isClosePausedRef.current&&_(E)},[i,E,m.isClosePausedRef,_]),f.useEffect(()=>(N(),()=>$()),[N,$]);const j=f.useMemo(()=>h?hI(h):null,[h]);return m.viewport?y.jsxs(y.Fragment,{children:[j&&y.jsx(Ete,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:j}),y.jsx(wte,{scope:r,onClose:I,children:wi.createPortal(y.jsx(Um.ItemSlot,{scope:r,children:y.jsx(kR,{asChild:!0,onEscapeKeyDown:U(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||I(),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,R=>{R.key==="Escape"&&(s?.(R.nativeEvent),R.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:U(e.onPointerDown,R=>{R.button===0&&(w.current={x:R.clientX,y:R.clientY})}),onPointerMove:U(e.onPointerMove,R=>{if(!w.current)return;const V=R.clientX-w.current.x,F=R.clientY-w.current.y,W=!!S.current,T=["left","right"].includes(m.swipeDirection),k=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,G=T?k(0,V):0,ee=T?0:k(0,F),ne=R.pointerType==="touch"?10:2,ie={x:G,y:ee},oe={originalEvent:R,delta:ie};W?(S.current=ie,Ba(yte,d,oe,{discrete:!1})):Gw(ie,m.swipeDirection,ne)?(S.current=ie,Ba(gte,u,oe,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(V)>ne||Math.abs(F)>ne)&&(w.current=null)}),onPointerUp:U(e.onPointerUp,R=>{const V=S.current,F=R.target;if(F.hasPointerCapture(R.pointerId)&&F.releasePointerCapture(R.pointerId),S.current=null,w.current=null,V){const W=R.currentTarget,T={originalEvent:R,delta:V};Gw(V,m.swipeDirection,m.swipeThreshold)?Ba(xte,v,T,{discrete:!0}):Ba(bte,p,T,{discrete:!0}),W.addEventListener("click",k=>k.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),Ete=e=>{const{__scopeToast:t,children:r,...n}=e,o=_c(oa,t),[i,a]=f.useState(!1),[s,l]=f.useState(!1);return Ate(()=>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(wc,{...n,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",r]})})})},Ote="ToastTitle",uI=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});uI.displayName=Ote;var Cte="ToastDescription",dI=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});dI.displayName=Cte;var fI="ToastAction",pI=f.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?y.jsx(mI,{altText:r,asChild:!0,children:y.jsx(Hm,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${fI}\`. Expected non-empty \`string\`.`),null)});pI.displayName=fI;var vI="ToastClose",Hm=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=Ste(vI,r);return y.jsx(mI,{asChild:!0,children:y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,o.onClose)})})});Hm.displayName=vI;var mI=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 hI(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),_te(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(...hI(n))}}),t}function Ba(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?Zf(o,i):o.dispatchEvent(i)}var Gw=(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 Ate(e=()=>{}){const t=st(e);Ye(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function _te(e){return e.nodeType===e.ELEMENT_NODE}function Tte(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 Pd(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var jte=iI,Nte=sI,Mte=cI,Ite=uI,kte=dI,Rte=pI,Dte=Hm;const $te=jte,gI=f.forwardRef(({className:e,...t},r)=>y.jsx(Nte,{ref:r,className:D("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}));gI.displayName="ToastViewport";const yI=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"}}),bI=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(Mte,{ref:n,className:D(yI({variant:t}),e),...r}));bI.displayName="Toast";const xI=f.forwardRef(({className:e,...t},r)=>y.jsx(Rte,{ref:r,className:D("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}));xI.displayName="ToastAction";const wI=f.forwardRef(({className:e,...t},r)=>y.jsxs(Dte,{ref:r,className:D("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(m0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]}));wI.displayName="ToastClose";const SI=f.forwardRef(({className:e,...t},r)=>y.jsx(Ite,{ref:r,className:D("text-sm",e),...t}));SI.displayName="ToastTitle";const PI=f.forwardRef(({className:e,...t},r)=>y.jsx(kte,{ref:r,className:D("text-secondary text-sm",e),...t}));PI.displayName="ToastDescription";var Lte=Symbol("radix.slottable");function zte(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Lte,t}var[Tc]=Be("Tooltip",[rn]),jc=rn(),EI="TooltipProvider",Fte=700,Yf="tooltip.open",[Bte,Gm]=Tc(EI),OI=e=>{const{__scopeTooltip:t,delayDuration:r=Fte,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(Bte,{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})};OI.displayName=EI;var bi="Tooltip",[Vte,ia]=Tc(bi),CI=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=Gm(bi,e.__scopeTooltip),c=jc(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]=nt({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(Yf))):l.onClose(),i?.(O)},caller:bi}),w=f.useMemo(()=>b?h.current?"delayed-open":"instant-open":"closed",[b]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,x(!0)},[x]),E=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x(!1)},[x]),P=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(Zi,{...c,children:y.jsx(Vte,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?P():S()},[l.isOpenDelayedRef,P,S]),onTriggerLeave:f.useCallback(()=>{g?E():(window.clearTimeout(v.current),v.current=0)},[E,g]),onOpen:S,onClose:E,disableHoverableContent:g,children:r})})};CI.displayName=bi;var Xf="TooltipTrigger",AI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ia(Xf,r),i=Gm(Xf,r),a=jc(r),s=f.useRef(null),l=re(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(Ji,{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)})})});AI.displayName=Xf;var qm="TooltipPortal",[Wte,Kte]=Tc(qm,{forceMount:void 0}),_I=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=ia(qm,t);return y.jsx(Wte,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};_I.displayName=qm;var yo="TooltipContent",TI=f.forwardRef((e,t)=>{const r=Kte(yo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=ia(yo,e.__scopeTooltip);return y.jsx(lt,{present:n||a.open,children:a.disableHoverableContent?y.jsx(jI,{side:o,...i,ref:t}):y.jsx(Ute,{side:o,...i,ref:t})})}),Ute=f.forwardRef((e,t)=>{const r=ia(yo,e.__scopeTooltip),n=Gm(yo,e.__scopeTooltip),o=f.useRef(null),i=re(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=Yte(b,h.getBoundingClientRect()),w=Xte(b,x),S=Zte(m.getBoundingClientRect()),E=Qte([...w,...S]);s(E),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=!Jte(b,a);x?p():w&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,a,c,p]),y.jsx(jI,{...e,ref:i})}),[Hte,Gte]=Tc(bi,{isInside:!1}),qte=zte("TooltipContent"),jI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=ia(yo,r),c=jc(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(Yf,u),()=>document.removeEventListener(Yf,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(pc,{"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(qte,{children:n}),y.jsx(Hte,{scope:r,isInside:!0,children:y.jsx(YQ,{id:l.contentId,role:"tooltip",children:o||n})})]})})});TI.displayName=yo;var NI="TooltipArrow",MI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=jc(r);return Gte(NI,r).isInside?null:y.jsx(vc,{...o,...n,ref:t})});MI.displayName=NI;function Yte(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 Xte(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 Zte(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 Jte(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 Qte(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),ere(t)}function ere(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 tre=OI,rre=CI,nre=AI,ore=_I,ire=TI,are=MI;const sre=tre,lre=rre,cre=nre,II=ore,Ym=f.forwardRef(({className:e,...t},r)=>y.jsx(are,{ref:r,className:D("fill-primary",e),...t}));Ym.displayName="TooltipArrow";const kI=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"}}),RI=f.forwardRef(({className:e,variant:t,sideOffset:r=4,showArrow:n=!1,children:o,...i},a)=>y.jsx(II,{children:y.jsxs(ire,{ref:a,sideOffset:r,className:D(kI({variant:t,className:e})),...i,children:[o,n&&y.jsx(Ym,{className:t==="light"?"fill-card":"fill-primary"})]})}));RI.displayName="TooltipContent";exports.Accordion=j0;exports.AccordionContent=k0;exports.AccordionItem=N0;exports.AccordionTrigger=I0;exports.ActionsMenuButton=oj;exports.AlertDialog=y2;exports.AlertDialogAction=FS;exports.AlertDialogCancel=BS;exports.AlertDialogContent=RS;exports.AlertDialogDescription=zS;exports.AlertDialogFooter=$S;exports.AlertDialogHeader=DS;exports.AlertDialogOverlay=lp;exports.AlertDialogPortal=IS;exports.AlertDialogTitle=LS;exports.AlertDialogTrigger=b2;exports.Badge=WS;exports.Banner=US;exports.BarChart=eA;exports.BreadcrumbItem=nA;exports.BreadcrumbSeparator=mm;exports.Breadcrumbs=rA;exports.Button=MS;exports.Card=iA;exports.Checkbox=vA;exports.ContextMenu=nJ;exports.ContextMenuCheckboxItem=eT;exports.ContextMenuContent=J_;exports.ContextMenuGroup=iJ;exports.ContextMenuItem=Q_;exports.ContextMenuLabel=rT;exports.ContextMenuPortal=Y_;exports.ContextMenuRadioGroup=sJ;exports.ContextMenuRadioItem=tT;exports.ContextMenuSeparator=nT;exports.ContextMenuShortcut=oT;exports.ContextMenuSub=aJ;exports.ContextMenuSubContent=Z_;exports.ContextMenuSubTrigger=X_;exports.ContextMenuTrigger=oJ;exports.DatePicker=ST;exports.DateTimePicker=CT;exports.Divider=_T;exports.DropdownMenu=aQ;exports.DropdownMenuCheckboxItem=QT;exports.DropdownMenuContent=ZT;exports.DropdownMenuGroup=lQ;exports.DropdownMenuItem=JT;exports.DropdownMenuLabel=tj;exports.DropdownMenuPortal=qT;exports.DropdownMenuRadioGroup=uQ;exports.DropdownMenuRadioItem=ej;exports.DropdownMenuSeparator=rj;exports.DropdownMenuShortcut=nj;exports.DropdownMenuSub=cQ;exports.DropdownMenuSubContent=XT;exports.DropdownMenuSubTrigger=YT;exports.DropdownMenuTrigger=sQ;exports.EngrateLogo=aj;exports.Eyebrow=lj;exports.Footer=uj;exports.FooterBottom=mj;exports.FooterContent=dj;exports.FooterCopyright=hj;exports.FooterHeading=pj;exports.FooterLinks=vj;exports.FooterSection=fj;exports.FormField=bj;exports.FormMessage=Rm;exports.Grid=xj;exports.GridItem=wj;exports.Header=Pj;exports.HeaderActions=Cj;exports.HeaderLogo=Ej;exports.HeaderNav=Oj;exports.Heading=_j;exports.Input=jj;exports.Label=Dm;exports.LineChart=Mj;exports.Link=kj;exports.Modal=CQ;exports.ModalClose=_Q;exports.ModalContent=$j;exports.ModalDescription=Bj;exports.ModalFooter=zj;exports.ModalHeader=Lj;exports.ModalOverlay=$m;exports.ModalPortal=Rj;exports.ModalTitle=Fj;exports.ModalTrigger=AQ;exports.Pagination=Kj;exports.PaginationDot=Yj;exports.PaginationDots=Gj;exports.PaginationItem=ro;exports.PieChart=Zj;exports.ProgressIndicator=eN;exports.RadioGroup=pN;exports.RadioGroupItem=vN;exports.Select=Nee;exports.SelectContent=HN;exports.SelectGroup=Mee;exports.SelectItem=qN;exports.SelectLabel=GN;exports.SelectScrollDownButton=Bm;exports.SelectScrollUpButton=Fm;exports.SelectSeparator=YN;exports.SelectTrigger=UN;exports.SelectValue=Iee;exports.Sidebar=JN;exports.SidebarContent=eM;exports.SidebarFooter=tM;exports.SidebarGroup=rM;exports.SidebarGroupLabel=nM;exports.SidebarHeader=QN;exports.SidebarItem=oM;exports.SidebarSeparator=aM;exports.SidebarTrigger=iM;exports.Skeleton=lM;exports.Slider=EM;exports.Spinner=CM;exports.Stack=_M;exports.Switch=kM;exports.TabContent=QM;exports.TabList=YM;exports.TabTrigger=ZM;exports.Table=DM;exports.TableBody=LM;exports.TableCaption=WM;exports.TableCell=VM;exports.TableFooter=zM;exports.TableHead=BM;exports.TableHeader=$M;exports.TableRow=FM;exports.Tabs=HM;exports.Text=tI;exports.Textarea=nI;exports.Toast=bI;exports.ToastAction=xI;exports.ToastClose=wI;exports.ToastDescription=PI;exports.ToastProvider=$te;exports.ToastTitle=SI;exports.ToastViewport=gI;exports.Tooltip=lre;exports.TooltipArrow=Ym;exports.TooltipContent=RI;exports.TooltipPortal=II;exports.TooltipProvider=sre;exports.TooltipTrigger=cre;exports.accordionTriggerVariants=M0;exports.accordionVariants=T0;exports.alertDialogContentVariants=kS;exports.badgeVariants=VS;exports.bannerVariants=KS;exports.barChartVariants=QC;exports.breadcrumbItemVariants=Nf;exports.breadcrumbsVariants=tA;exports.buttonVariants=ml;exports.calendarDayVariants=wT;exports.cardVariants=oA;exports.cn=D;exports.datePickerTriggerVariants=xT;exports.dateTimePickerCalendarDayVariants=OT;exports.dateTimePickerTriggerVariants=ET;exports.dividerVariants=AT;exports.engrateLogoVariants=ij;exports.eyebrowVariants=sj;exports.footerVariants=cj;exports.gridItemVariants=wQ;exports.gridVariants=hQ;exports.headerVariants=Sj;exports.headingVariants=Aj;exports.inputVariants=Tj;exports.labelVariants=yj;exports.lineChartVariants=Nj;exports.linkVariants=Ij;exports.modalContentVariants=Dj;exports.paginationDotVariants=qj;exports.paginationDotsVariants=Hj;exports.paginationItemVariants=Wj;exports.paginationVariants=Vj;exports.pieChartVariants=Xj;exports.progressBarVariants=Qj;exports.progressIndicatorVariants=Jj;exports.sidebarItemVariants=Vf;exports.sidebarVariants=ZN;exports.skeletonVariants=sM;exports.sliderVariants=PM;exports.spinnerVariants=OM;exports.stackVariants=AM;exports.tabContentVariants=JM;exports.tabListVariants=GM;exports.tabTriggerVariants=XM;exports.tableVariants=RM;exports.textVariants=eI;exports.textareaVariants=rI;exports.toastVariants=yI;exports.tooltipContentVariants=kI;exports.useFilterableTable=fte;exports.useSidebarContext=Oc;exports.useSortableTable=dte;
100
+ `).concat(S.x,",").concat(S.y),P=Te(e.id)?ti("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:P,d:E})),f.createElement("textPath",{xlinkHref:"#".concat(P)},r))},RU=(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"}},Ya=e=>e!=null&&"cx"in e&&q(e.cx),DU={angle:0,offset:5,zIndex:De.label,position:"middle",textBreakAll:!1};function $U(e){if(!Ya(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 Fr(e){var t=Le(e,DU),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:u}=t,d=NU(),p=QO(),v=o==="center"?p:d??p,g,m,h;r==null?g=v:Ya(r)?g=r:g=Mp(r);var b=$U(g);if(!g||Te(i)&&Te(a)&&!A.isValidElement(s)&&typeof s!="function")return null;var x=Zo(Zo({},t),{},{viewBox:g});if(A.isValidElement(s)){var{labelRef:w}=x,S=Ex(x,PU);return A.cloneElement(s,S)}if(typeof s=="function"){var{content:E}=x,P=Ex(x,EU);if(m=A.createElement(s,P),A.isValidElement(m))return m}else m=MU(t);var O=mt(t);if(Ya(g)){if(o==="insideStart"||o==="insideEnd"||o==="end")return kU(t,o,m,O,g);h=RU(g,t.offset,t.position)}else{if(!b)return null;var C=SU({viewBox:b,position:o,offset:t.offset,parentViewBox:Ya(n)?void 0:n});h=Zo(Zo({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(oc,pr({ref:u,className:de("recharts-label",l)},O,h,{textAnchor:vU(O.textAnchor)?O.textAnchor:h.textAnchor,breakAll:c}),m))}Fr.displayName="Label";var LU=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?f.createElement(Fr,pr({key:"label-implicit"},n)):ir(e)?f.createElement(Fr,pr({key:"label-implicit",value:e},n)):A.isValidElement(e)?e.type===Fr?A.cloneElement(e,Zo({key:"label-implicit"},n)):f.createElement(Fr,pr({key:"label-implicit",content:e},n)):Xv(e)?f.createElement(Fr,pr({key:"label-implicit",content:e},n)):e&&typeof e=="object"?f.createElement(Fr,pr({},e,{key:"label-implicit"},n)):null};function zU(e){var{label:t,labelRef:r}=e,n=QO();return LU(t,n,r)||null}var sd={},ld={},Cx;function FU(){return Cx||(Cx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(ld)),ld}var cd={},Ax;function BU(){return Ax||(Ax=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(cd)),cd}var _x;function VU(){return _x||(_x=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=FU(),r=BU(),n=xp();function o(i){if(n.isArrayLike(i))return t.last(r.toArray(i))}e.last=o})(sd)),sd}var ud,Tx;function WU(){return Tx||(Tx=1,ud=VU().last),ud}var KU=WU();const UU=Jr(KU);var HU=["valueAccessor"],GU=["dataKey","clockWise","id","textBreakAll","zIndex"];function Bs(){return Bs=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},Bs.apply(null,arguments)}function jx(e,t){if(e==null)return{};var r,n,o=qU(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 qU(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 YU=e=>Array.isArray(e.value)?UU(e.value):e.value,eC=A.createContext(void 0),tC=eC.Provider,rC=A.createContext(void 0),XU=rC.Provider;function ZU(){return A.useContext(eC)}function JU(){return A.useContext(rC)}function Xa(e){var{valueAccessor:t=YU}=e,r=jx(e,HU),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=jx(r,GU),c=ZU(),u=JU(),d=c||u;return!d||!d.length?null:f.createElement(wt,{zIndex:s??De.label},f.createElement(Xe,{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(Fr,Bs({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}))})))}Xa.displayName="LabelList";function Zv(e){var{label:t}=e;return t?t===!0?f.createElement(Xa,{key:"labelList-implicit"}):f.isValidElement(t)||Xv(t)?f.createElement(Xa,{key:"labelList-implicit",content:t}):typeof t=="object"?f.createElement(Xa,Bs({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}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)}var nC=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",Sf({},At(e),bp(e),{className:i,cx:t,cy:r,r:n})):null},oC=e=>e.graphicalItems.polarItems,QU=M([je,Bi],yv),ic=M([oC,ke,QU],bv),eH=M([ic],xv),ac=M([eH,Ul],wv),tH=M([ac,ke,ic],Pv);M([ac,ke,ic],(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 Nx=()=>{},rH=M([ac,ke,ic,ec,je],Av),nH=M([ke,Ov,Cv,Nx,rH,Nx,ve,je],_v),iC=M([ke,ve,ac,tH,Fi,je,nH],Tv),oH=M([iC,To,tn],Mv),iH=M([ke,iC,oH,je],kv);M([tn,iH],KE);var aH={radiusAxis:{},angleAxis:{}},aC=xt({name:"polarAxis",initialState:aH,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:pre,removeRadiusAxis:vre,addAngleAxis:mre,removeAngleAxis:hre}=aC.actions,sH=aC.reducer;function sC(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}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 Ix(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){lH(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 lH(e,t,r){return(t=cH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cH(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)}var dH=(e,t)=>t,Jv=M([oC,dH],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),fH=[],Qv=(e,t,r)=>r?.length===0?fH:r,lC=M([Ul,Jv,Qv],(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=>Ix(Ix({},t.presentationProps),i.props))),o!=null)return o}}),pH=M([lC,Jv,Qv],(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:Eo(a,t.dataKey),color:s,payload:n,type:t.legendType}})}),vH=M([lC,Jv,Qv,Ve],(e,t,r,n)=>{if(!(t==null||e==null))return h8({offset:n,pieSettings:t,displayedData:e,cells:r})}),ka={exports:{}},ge={};var kx;function mH(){if(kx)return ge;kx=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(j){if(typeof j=="object"&&j!==null){var R=j.$$typeof;switch(R){case e:switch(j=j.type,j){case r:case o:case n:case l:case c:return j;default:switch(j=j&&j.$$typeof,j){case a:case s:case d:case u:case i:return j;default:return R}}case t:return R}}}var w=i,S=e,E=s,P=r,O=d,C=u,N=t,$=o,I=n,_=l;return ge.ContextConsumer=a,ge.ContextProvider=w,ge.Element=S,ge.ForwardRef=E,ge.Fragment=P,ge.Lazy=O,ge.Memo=C,ge.Portal=N,ge.Profiler=$,ge.StrictMode=I,ge.Suspense=_,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(j){return x(j)===a},ge.isContextProvider=function(j){return x(j)===i},ge.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},ge.isForwardRef=function(j){return x(j)===s},ge.isFragment=function(j){return x(j)===r},ge.isLazy=function(j){return x(j)===d},ge.isMemo=function(j){return x(j)===u},ge.isPortal=function(j){return x(j)===t},ge.isProfiler=function(j){return x(j)===o},ge.isStrictMode=function(j){return x(j)===n},ge.isSuspense=function(j){return x(j)===l},ge.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===r||j===o||j===m||j===n||j===l||j===c||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===d||j.$$typeof===u||j.$$typeof===i||j.$$typeof===a||j.$$typeof===s||j.$$typeof===g||j.$$typeof===p||j[0]===v)},ge.typeOf=x,ge}var ye={};var Rx;function hH(){return Rx||(Rx=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(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===o||B===m||B===n||B===l||B===c||B===h||x||typeof B=="object"&&B!==null&&(B.$$typeof===d||B.$$typeof===u||B.$$typeof===i||B.$$typeof===a||B.$$typeof===s||B.$$typeof===g||B.$$typeof===p||B[0]===v))}function S(B){if(typeof B=="object"&&B!==null){var z=B.$$typeof;switch(z){case e:var fe=B.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 z}}case t:return z}}}var E=a,P=i,O=e,C=s,N=r,$=d,I=u,_=t,j=o,R=n,V=l,F=!1,W=!1;function T(B){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(B){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(B){return S(B)===a}function ee(B){return S(B)===i}function ne(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function ie(B){return S(B)===s}function oe(B){return S(B)===r}function le(B){return S(B)===d}function Oe(B){return S(B)===u}function K(B){return S(B)===t}function ue(B){return S(B)===o}function L(B){return S(B)===n}function H(B){return S(B)===l}ye.ContextConsumer=E,ye.ContextProvider=P,ye.Element=O,ye.ForwardRef=C,ye.Fragment=N,ye.Lazy=$,ye.Memo=I,ye.Portal=_,ye.Profiler=j,ye.StrictMode=R,ye.Suspense=V,ye.isAsyncMode=T,ye.isConcurrentMode=k,ye.isContextConsumer=G,ye.isContextProvider=ee,ye.isElement=ne,ye.isForwardRef=ie,ye.isFragment=oe,ye.isLazy=le,ye.isMemo=Oe,ye.isPortal=K,ye.isProfiler=ue,ye.isStrictMode=L,ye.isSuspense=H,ye.isValidElementType=w,ye.typeOf=S})()),ye}var Dx;function gH(){return Dx||(Dx=1,process.env.NODE_ENV==="production"?ka.exports=mH():ka.exports=hH()),ka.exports}var yH=gH(),$x=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",Lx=null,dd=null,cC=e=>{if(e===Lx&&Array.isArray(dd))return dd;var t=[];return A.Children.forEach(e,r=>{Te(r)||(yH.isFragment(r)?t=t.concat(cC(r.props.children)):t.push(r))}),dd=t,Lx=e,t};function em(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(o=>$x(o)):n=[$x(t)],cC(e).forEach(o=>{var i=An(o,"type.displayName")||An(o,"type.name");i&&n.indexOf(i)!==-1&&r.push(o)}),r}var uC=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,fd={},zx;function bH(){return zx||(zx=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})(fd)),fd}var pd,Fx;function xH(){return Fx||(Fx=1,pd=bH().isPlainObject),pd}var wH=xH();const SH=Jr(wH);var Bx,Vx,Wx,Kx,Ux;function Hx(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 Gx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hx(Object(r),!0).forEach(function(n){PH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PH(e,t,r){return(t=EH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EH(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 Vs(){return Vs=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},Vs.apply(null,arguments)}function Go(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var qx=(e,t,r,n,o)=>{var i=r-n,a;return a=Me(Bx||(Bx=Go(["M ",",",""])),e,t),a+=Me(Vx||(Vx=Go(["L ",",",""])),e+r,t),a+=Me(Wx||(Wx=Go(["L ",",",""])),e+r-i/2,t+o),a+=Me(Kx||(Kx=Go(["L ",",",""])),e+r-i/2-n,t+o),a+=Me(Ux||(Ux=Go(["L ",","," Z"])),e,t),a},CH={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},AH=e=>{var t=Le(e,CH),{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),S=Ri(e,"trapezoid-");if(A.useEffect(()=>{if(p.current&&p.current.getTotalLength)try{var R=p.current.getTotalLength();R&&g(R)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var E=de("recharts-trapezoid",s);if(!d)return f.createElement("g",null,f.createElement("path",Vs({},mt(t),{className:E,d:qx(r,n,o,i,a)})));var P=m.current,O=h.current,C=b.current,N=x.current,$=w.current,I="0px ".concat(v===-1?1:v,"px"),_="".concat(v,"px 0px"),j=k1(["strokeDasharray"],c,l);return f.createElement(ki,{animationId:S,key:S,canBegin:v>0,duration:c,easing:l,isActive:d,begin:u},R=>{var V=Ae(P,o,R),F=Ae(O,i,R),W=Ae(C,a,R),T=Ae(N,r,R),k=Ae($,n,R);p.current&&(m.current=V,h.current=F,b.current=W,x.current=T,w.current=k);var G=R>0?{transition:j,strokeDasharray:_}:{strokeDasharray:I};return f.createElement("path",Vs({},mt(t),{className:E,d:qx(T,k,V,F,W),ref:p,style:Gx(Gx({},G),t.style)}))})},_H=["option","shapeType","activeClassName"];function TH(e,t){if(e==null)return{};var r,n,o=jH(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 jH(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 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 Ws(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){NH(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 NH(e,t,r){return(t=MH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MH(e){var t=IH(e,"string");return typeof t=="symbol"?t:t+""}function IH(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 kH(e,t){return Ws(Ws({},t),e)}function RH(e,t){return e==="symbols"}function Xx(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return f.createElement(L1,r);case"trapezoid":return f.createElement(AH,r);case"sector":return f.createElement(V1,r);case"symbols":if(RH(t))return f.createElement(yp,r);break;case"curve":return f.createElement($p,r);default:return null}}function DH(e){return A.isValidElement(e)?e.props:e}function tm(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,o=TH(e,_H),i;if(A.isValidElement(t))i=A.cloneElement(t,Ws(Ws({},o),DH(t)));else if(typeof t=="function")i=t(o,o.index);else if(SH(t)&&typeof t!="boolean"){var a=kH(t,o);i=f.createElement(Xx,{shapeType:r,elementProps:a})}else{var s=o;i=f.createElement(Xx,{shapeType:r,elementProps:s})}return o.isActive?f.createElement(Xe,{className:n},i):i}var rm=(e,t,r)=>{var n=Se();return(o,i)=>a=>{e?.(o,i,a),n(xO({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},nm=e=>{var t=Se();return(r,n)=>o=>{e?.(r,n,o),t($W())}},om=(e,t,r)=>{var n=Se();return(o,i)=>a=>{e?.(o,i,a),n(LW({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};function im(e){var{tooltipEntrySettings:t}=e,r=Se(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(IW(t)):o.current!==t&&r(kW({prev:o.current,next:t})),o.current=t)},[t,r,n]),A.useLayoutEffect(()=>()=>{o.current&&(r(RW(o.current)),o.current=null)},[r]),null}function dC(e){var{legendPayload:t}=e,r=Se(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(j1(t)):o.current!==t&&r(N1({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(M1(o.current)),o.current=null)},[r]),null}function $H(e){var{legendPayload:t}=e,r=Se(),n=J(ve),o=A.useRef(null);return A.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(o.current===null?r(j1(t)):o.current!==t&&r(N1({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(M1(o.current)),o.current=null)},[r]),null}var vd,LH=()=>{var[e]=f.useState(()=>ti("uid-"));return e},zH=(vd=f.useId)!==null&&vd!==void 0?vd:LH;function FH(e,t){var r=zH();return t||(e?"".concat(e,"-").concat(r):r)}var BH=A.createContext(void 0),am=e=>{var{id:t,type:r,children:n}=e,o=FH("recharts-".concat(r),t);return f.createElement(BH.Provider,{value:o},n(o))},VH={cartesianItems:[],polarItems:[]},fC=xt({name:"graphicalItems",initialState:VH,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:WH,replaceCartesianGraphicalItem:KH,removeCartesianGraphicalItem:UH,addPolarGraphicalItem:HH,removePolarGraphicalItem:GH}=fC.actions,qH=fC.reducer,YH=e=>{var t=Se(),r=A.useRef(null);return A.useLayoutEffect(()=>{r.current===null?t(WH(e)):r.current!==e&&t(KH({prev:r.current,next:e})),r.current=e},[t,e]),A.useLayoutEffect(()=>()=>{r.current&&(t(UH(r.current)),r.current=null)},[t]),null},pC=A.memo(YH);function XH(e){var t=Se();return A.useLayoutEffect(()=>(t(HH(e)),()=>{t(GH(e))}),[t,e]),null}var ZH=["key"],JH=["onMouseEnter","onClick","onMouseLeave"],QH=["id"],e8=["id"];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 Ie(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){t8(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 t8(e,t,r){return(t=r8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r8(e){var t=n8(e,"string");return typeof t=="symbol"?t:t+""}function n8(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 sc(e,t){if(e==null)return{};var r,n,o=o8(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 o8(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 i8(e){var t=A.useMemo(()=>em(e.children,Gi),[e.children]),r=J(n=>pH(n,e.id,t));return r==null?null:f.createElement($H,{legendPayload:r})}var a8=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:Eo(s,t),hide:l,type:c,color:a,unit:"",graphicalItemId:u}};return f.createElement(im,{tooltipEntrySettings:d})}),s8=(e,t)=>e>t?"start":e<t?"end":"middle",l8=(e,t,r)=>at(typeof t=="function"?t(e):t,r,r*.8),c8=(e,t,r)=>{var{top:n,left:o,width:i,height:a}=t,s=z1(i,a),l=o+at(e.cx,i,i/2),c=n+at(e.cy,a,a/2),u=at(e.innerRadius,s,0),d=l8(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}},u8=(e,t)=>{var r=qe(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=sc(t,ZH);return f.createElement($p,Yr({},o,{type:"linear",className:r}))},f8=(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",sC(e));return f.createElement(oc,Yr({},t,{alignmentBaseline:"middle",className:o}),n)};function p8(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:s8(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(Xe,null,i&&d8(i,b),f8(o,h,be(p,a))))});return f.createElement(Xe,{className:"recharts-pie-labels"},d)}function v8(e){var{sectors:t,props:r,showLabels:n}=e,{label:o}=r;return typeof o=="object"&&o!=null&&"position"in o?f.createElement(Zv,{label:o}):f.createElement(p8,{sectors:t,props:r,showLabels:n})}function m8(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:o,shape:i,id:a}=e,s=J(qr),l=J(Wv),c=J(P6),{onMouseEnter:u,onClick:d,onMouseLeave:p}=o,v=sc(o,JH),g=rm(u,o.dataKey,a),m=nm(p),h=om(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,S=String(x)===s&&(l==null||o.dataKey===l)&&w,E=s?n:null,P=r&&S?r:E,O=Ie(Ie({},b),{},{stroke:b.stroke,tabIndex:-1,[m1]:x,[h1]:a});return f.createElement(Xe,Yr({key:"sector-".concat(b?.startAngle,"-").concat(b?.endAngle,"-").concat(b.midAngle,"-").concat(x),tabIndex:-1,className:"recharts-pie-sector"},Ci(v,b,x),{onMouseEnter:g(b,x),onMouseLeave:m(b,x),onClick:h(b,x)}),f.createElement(tm,Yr({option:i??P,index:x,shapeType:"sector",isActive:S},O)))}))}function h8(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=u8(s,l),g=Math.abs(v),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,h=n.filter(P=>be(P,c,0)!==0).length,b=(g>=360?h:h-1)*m,x=g-h*p-b,w=n.reduce((P,O)=>{var C=be(O,c,0);return P+(q(C)?C:0)},0),S;if(w>0){var E;S=n.map((P,O)=>{var C=be(P,c,0),N=be(P,u,O),$=c8(r,i,P),I=(q(C)?C:0)/w,_,j=Ie(Ie({},P),o&&o[O]&&o[O].props);O?_=E.endAngle+qe(v)*m*(C!==0?1:0):_=s;var R=_+qe(v)*((C!==0?p:0)+I*x),V=(_+R)/2,F=($.innerRadius+$.outerRadius)/2,W=[{name:N,value:C,payload:j,dataKey:c,type:d,graphicalItemId:r.id}],T=Re($.cx,$.cy,F,V);return E=Ie(Ie(Ie(Ie({},r.presentationProps),{},{percent:I,cornerRadius:typeof a=="string"?parseFloat(a):a,name:N,tooltipPayload:W,midAngle:V,middleRadius:F,tooltipPosition:T},j),$),{},{value:C,dataKey:c,startAngle:_,endAngle:R,payload:j,paddingAngle:qe(v)*m}),E})}return S}function g8(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(XU,{value:t?o:void 0},n)}function y8(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=Ri(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(g8,{showLabels:!m,sectors:o},f.createElement(ki,{animationId:v,begin:a,duration:s,isActive:i,easing:l,onAnimationStart:x,onAnimationEnd:b,key:v},w=>{var S,E=[],P=o&&o[0],O=(S=P?.startAngle)!==null&&S!==void 0?S:0;return o?.forEach((C,N)=>{var $=g&&g[N],I=N>0?An(C,"paddingAngle",0):0;if($){var _=Ae($.endAngle-$.startAngle,C.endAngle-C.startAngle,w),j=Ie(Ie({},C),{},{startAngle:O+I,endAngle:O+_+I});E.push(j),O=j.endAngle}else{var{endAngle:R,startAngle:V}=C,F=Ae(0,R-V,w),W=Ie(Ie({},C),{},{startAngle:O+I,endAngle:O+F+I});E.push(W),O=W.endAngle}}),r.current=E,f.createElement(Xe,null,f.createElement(m8,{sectors:E,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),f.createElement(v8,{showLabels:!m,sectors:o,props:t}),t.children)}var b8={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 x8(e){var{id:t}=e,r=sc(e,QH),{hide:n,className:o,rootTabIndex:i}=e,a=A.useMemo(()=>em(e.children,Gi),[e.children]),s=J(u=>vH(u,t,a)),l=A.useRef(null),c=de("recharts-pie",o);return n||s==null?(l.current=null,f.createElement(Xe,{tabIndex:i,className:c})):f.createElement(wt,{zIndex:e.zIndex},f.createElement(a8,{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(Xe,{tabIndex:i,className:c},f.createElement(y8,{props:Ie(Ie({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function vC(e){var t=Le(e,b8),{id:r}=t,n=sc(t,e8),o=At(n);return f.createElement(am,{id:r,type:"pie"},i=>f.createElement(f.Fragment,null,f.createElement(XH,{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(i8,Yr({},n,{id:i})),f.createElement(x8,Yr({},n,{id:i}))))}vC.displayName="Pie";var w8=["points"];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 md(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){S8(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 S8(e,t,r){return(t=P8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P8(e){var t=E8(e,"string");return typeof t=="symbol"?t:t+""}function E8(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 Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ks.apply(null,arguments)}function O8(e,t){if(e==null)return{};var r,n,o=C8(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 C8(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 A8(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=O8(i,w8);return f.createElement(nC,Ks({},s,{className:o}))}function _8(e,t){return e==null?!1:t?!0:e.length===1}function T8(e){var{points:t,dot:r,className:n,dotClassName:o,dataKey:i,baseProps:a,needClip:s,clipPathId:l,zIndex:c=De.scatter}=e;if(!_8(t,r))return null;var u=uC(r),d=E2(r),p=t.map((g,m)=>{var h,b,x=md(md(md({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(A8,{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(Xe,Ks({className:n},v),p))}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 ew(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){j8(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 j8(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=M8(e,"string");return typeof t=="symbol"?t:t+""}function M8(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 mC=0,I8={xAxis:{},yAxis:{},zAxis:{}},hC=xt({name:"cartesianAxis",initialState:I8,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]=ew(ew({},o),{},{width:n,widthHistory:s})}}}}),{addXAxis:k8,replaceXAxis:R8,removeXAxis:D8,addYAxis:$8,replaceYAxis:L8,removeYAxis:z8,addZAxis:gre,replaceZAxis:yre,removeZAxis:bre,updateYAxisWidth:F8}=hC.actions,B8=hC.reducer,V8=M([Ve],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),W8=M([V8,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)}}),sm=()=>J(W8),K8=()=>J(_6);function tw(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 hd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tw(Object(r),!0).forEach(function(n){U8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U8(e,t,r){return(t=H8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H8(e){var t=G8(e,"string");return typeof t=="symbol"?t:t+""}function G8(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 q8=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=hd(hd(hd({},s),On(o)),bp(o)),c;return A.isValidElement(o)?c=A.cloneElement(o,l):typeof o=="function"?c=o(l):c=f.createElement(nC,l),f.createElement(Xe,{className:"recharts-active-dot",clipPath:a},c)};function Y8(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:o,clipPath:i,zIndex:a=De.activeDot}=e,s=J(qr),l=K8();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(q8,{point:c,childIndex:Number(s),mainColor:r,dataKey:o,activeDot:n,clipPath:i}))}var rw=(e,t,r)=>{var n=r??e;if(!Te(n))return at(n,t,0)},X8=(e,t,r)=>{var n={},o=e.filter(Yl),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=rw(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=rw(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...s,...l]};function nw(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 Ra(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nw(Object(r),!0).forEach(function(n){Z8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z8(e,t,r){return(t=J8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J8(e){var t=Q8(e,"string");return typeof t=="symbol"?t:t+""}function Q8(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 eG(e,t,r,n,o){var i,a=n.length;if(!(a<1)){var s=at(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 S,E={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:g.offset+g.size+s,size:u?d:(S=w.barSize)!==null&&S!==void 0?S:0}},P=[...x,E];return g=E.position,P},c)}else{var m=at(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,S)=>[...x,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(h+s)*S+(h-b)/2,size:b}}],c)}return l}}var tG=(e,t,r,n,o,i,a)=>{var s=Te(a)?t:a,l=eG(r,n,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>Ra(Ra({},c),{},{position:Ra(Ra({},c.position),{},{offset:c.position.offset-o/2})}))),l},rG=(e,t)=>{var r=hv(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)}}}},nG=(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 oG(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ce(e.zIndex)?e.zIndex:t}var gC=e=>{var{chartData:t}=e,r=Se(),n=ct();return A.useEffect(()=>n?()=>{}:(r(lx(t)),()=>{r(lx(void 0))}),[t,r,n]),null},ow={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},yC=xt({name:"brush",initialState:ow,reducers:{setBrushSettings(e,t){return t.payload==null?ow:t.payload}}}),{setBrushSettings:xre}=yC.actions,iG=yC.reducer;function aG(e){return(e%180+180)%180}var sG=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=aG(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)},lG={dots:[],areas:[],lines:[]},bC=xt({name:"referenceElements",initialState:lG,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:wre,removeDot:Sre,addArea:Pre,removeArea:Ere,addLine:Ore,removeLine:Cre}=bC.actions,cG=bC.reducer,uG=A.createContext(void 0),dG=e=>{var{children:t}=e,[r]=A.useState("".concat(ti("recharts"),"-clip")),n=sm();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return f.createElement(uG.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 xC(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 fG(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return sG(n,r)}function pG(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 mi(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 vG(e,t){return xC(e,t+1)}function mG(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:xC(n,c)};var m=l,h,b=()=>(h===void 0&&(h=r(g,m)),h),x=g.coordinate,w=l===0||mi(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 hG(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 S=n[m];if(S==null)return 0;var E=m,P,O=()=>(P===void 0&&(P=r(S,E)),P),C=S.coordinate,N=m===u||mi(e,C,O,d,l);if(!N)return p=!1,1;N&&(d=C+e*(O()/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 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 ot(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){gG(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 gG(e,t,r){return(t=yG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yG(e){var t=bG(e,"string");return typeof t=="symbol"?t:t+""}function bG(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 xG(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=ot(ot({},g),{},{tickCoord:b>0?g.coordinate-b*e:g.coordinate})}else i[p]=g=ot(ot({},g),{},{tickCoord:g.coordinate});if(g.tickCoord!=null){var x=mi(e,g.tickCoord,h,s,l);x&&(l=g.tickCoord-e*(h()/2+o),i[p]=ot(ot({},g),{},{isShow:!0}))}},u=a-1;u>=0;u--)c(u);return i}function wG(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=ot(ot({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),u.tickCoord!=null){var v=mi(e,u.tickCoord,()=>d,l,c);v&&(c=u.tickCoord-e*(d/2+o),a[s-1]=ot(ot({},u),{},{isShow:!0}))}}}for(var g=i?s-1:s,m=function(x){var w=a[x];if(w==null)return 1;var S=w,E,P=()=>(E===void 0&&(E=r(w,x)),E);if(x===0){var O=e*(S.coordinate-e*P()/2-l);a[x]=S=ot(ot({},S),{},{tickCoord:O<0?S.coordinate-O*e:S.coordinate})}else a[x]=S=ot(ot({},S),{},{tickCoord:S.coordinate});if(S.tickCoord!=null){var C=mi(e,S.tickCoord,P,l,c);C&&(l=S.tickCoord+e*(P()/2+o),a[x]=ot(ot({},S),{},{isShow:!0}))}},h=0;h<g;h++)m(h);return a}function lm(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)||Ll.isSsr){var p;return(p=vG(o,q(l)?l:0))!==null&&p!==void 0?p:[]}var v=[],g=s==="top"||s==="bottom"?"width":"height",m=u&&g==="width"?ei(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=(E,P)=>{var O=typeof c=="function"?c(E.value,P):E.value;return g==="width"?fG(ei(O,{fontSize:t,letterSpacing:r}),m,d):ei(O,{fontSize:t,letterSpacing:r})[g]},b=o[0],x=o[1],w=o.length>=2&&b!=null&&x!=null?qe(x.coordinate-b.coordinate):1,S=pG(i,w,g);return l==="equidistantPreserveStart"?mG(w,S,h,o,a):l==="equidistantPreserveEnd"?hG(w,S,h,o,a):(l==="preserveStart"||l==="preserveStartEnd"?v=wG(w,S,h,o,a,l==="preserveStartEnd"):v=xG(w,S,h,o,a),v.filter(E=>E.isShow))}var SG=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},PG=["axisLine","width","height","className","hide","ticks","axisType"];function EG(e,t){if(e==null)return{};var r,n,o=OG(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 OG(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 In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},In.apply(null,arguments)}function aw(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?aw(Object(r),!0).forEach(function(n){CG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CG(e,t,r){return(t=AG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AG(e){var t=_G(e,"string");return typeof t=="symbol"?t:t+""}function _G(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",In({},c,{className:de("recharts-cartesian-axis-line",An(s,"className"))}))}function jG(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 MG(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,sC(t))),o=f.createElement(oc,In({},r,{className:a}),n)}return o}var kG=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:S,events:E,axisType:P}=e,O=lm(Ne(Ne({},S),{},{ticks:r}),x,w),C=NG(u,d),N=MG(u,d),$=At(S),I=On(n),_={};typeof o=="object"&&(_=o);var j=Ne(Ne({},$),{},{fill:"none"},_),R=O.map(W=>Ne({entry:W},jG(W,p,v,g,m,u,h,d,b))),V=R.map(W=>{var{entry:T,line:k}=W;return f.createElement(Xe,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},o&&f.createElement("line",In({},j,k,{className:de("recharts-cartesian-axis-tick-line",An(o,"className"))})))}),F=R.map((W,T)=>{var k,G,{entry:ee,tick:ne}=W,ie=Ne(Ne(Ne(Ne({verticalAnchor:N},$),{},{textAnchor:C,stroke:"none",fill:i},ne),{},{index:T,payload:ee,visibleTicksCount:O.length,tickFormatter:a,padding:l},c),{},{angle:(k=(G=c?.angle)!==null&&G!==void 0?G:$.angle)!==null&&k!==void 0?k:0}),oe=Ne(Ne({},ie),I);return f.createElement(Xe,In({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(ee.value,"-").concat(ee.coordinate,"-").concat(ee.tickCoord)},Ci(E,ee,T)),n&&f.createElement(IG,{option:n,tickProps:oe,value:"".concat(typeof a=="function"?a(ee.value,T):ee.value).concat(s||"")}))});return f.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(P,"-ticks")},F.length>0&&f.createElement(wt,{zIndex:De.label},f.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(P,"-tick-labels"),ref:t},F)),V.length>0&&f.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(P,"-tick-lines")},V))}),RG=A.forwardRef((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l}=e,c=EG(e,PG),[u,d]=A.useState(""),[p,v]=A.useState(""),g=A.useRef(null);A.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var h;return SG({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),S=w.fontSize,E=w.letterSpacing;(S!==u||E!==p)&&(d(S),v(E))}}},[u,p]);return a||n!=null&&n<=0||o!=null&&o<=0?null:f.createElement(wt,{zIndex:e.zIndex},f.createElement(Xe,{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(kG,{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(zU,{label:e.label,labelRef:e.labelRef}),e.children)))}),cm=f.forwardRef((e,t)=>{var r=Le(e,gr);return f.createElement(RG,In({},r,{ref:t}))});cm.displayName="CartesianAxis";var DG=["x1","y1","x2","y2","key"],$G=["offset"],LG=["xAxisId","yAxisId"],zG=["xAxisId","yAxisId"];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 it(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){FG(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 FG(e,t,r){return(t=BG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BG(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 yn(){return yn=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},yn.apply(null,arguments)}function Us(e,t){if(e==null)return{};var r,n,o=WG(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 WG(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 KG=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 wC(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=Us(r,DG),d=(o=At(u))!==null&&o!==void 0?o:{},{offset:p}=d,v=Us(d,$G);n=f.createElement("line",yn({},v,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function UG(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=Us(e,LG),l=o.map((c,u)=>{var d=it(it({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return f.createElement(wC,{key:"line-".concat(u),option:n,lineItemProps:d})});return f.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function HG(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=Us(e,zG),l=o.map((c,u)=>{var d=it(it({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return f.createElement(wC,{option:n,lineItemProps:d,key:"line-".concat(u)})});return f.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function GG(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 qG(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 YG=(e,t)=>{var{xAxis:r,width:n,height:o,offset:i}=e;return f1(lm(it(it(it({},gr),r),{},{ticks:p1(r),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},XG=(e,t)=>{var{yAxis:r,width:n,height:o,offset:i}=e;return f1(lm(it(it(it({},gr),r),{},{ticks:p1(r),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},ZG={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:De.grid};function um(e){var t=Ip(),r=kp(),n=x1(),o=it(it({},Le(e,ZG)),{},{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=>Xb(N,"xAxis",i,g)),h=J(N=>Xb(N,"yAxis",a,g));if(!ar(c)||!ar(u)||!q(s)||!q(l))return null;var b=o.verticalCoordinatesGenerator||YG,x=o.horizontalCoordinatesGenerator||XG,{horizontalPoints:w,verticalPoints:S}=o;if((!w||!w.length)&&typeof x=="function"){var E=p&&p.length,P=x({yAxis:h?it(it({},h),{},{ticks:E?p:h.ticks}):void 0,width:t??c,height:r??u,offset:n},E?!0:d);gs(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(w=P)}if((!S||!S.length)&&typeof b=="function"){var O=v&&v.length,C=b({xAxis:m?it(it({},m),{},{ticks:O?v:m.ticks}):void 0,width:t??c,height:r??u,offset:n},O?!0:d);gs(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(S=C)}return f.createElement(wt,{zIndex:o.zIndex},f.createElement("g",{className:"recharts-cartesian-grid"},f.createElement(KG,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),f.createElement(GG,yn({},o,{horizontalPoints:w})),f.createElement(qG,yn({},o,{verticalPoints:S})),f.createElement(UG,yn({},o,{offset:n,horizontalPoints:w,xAxis:m,yAxis:h})),f.createElement(HG,yn({},o,{offset:n,verticalPoints:S,xAxis:m,yAxis:h}))))}um.displayName="CartesianGrid";var JG={},SC=xt({name:"errorBars",initialState:JG,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:Are,replaceErrorBar:_re,removeErrorBar:Tre}=SC.actions,QG=SC.reducer,eq=["children"];function tq(e,t){if(e==null)return{};var r,n,o=rq(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 rq(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 nq={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},oq=A.createContext(nq);function PC(e){var{children:t}=e,r=tq(e,eq);return f.createElement(oq.Provider,{value:r},t)}function dm(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:Ue.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:He.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function EC(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=sm(),{needClipX:i,needClipY:a,needClip:s}=dm(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 OC=(e,t,r,n)=>Gr(e,"xAxis",t,n),CC=(e,t,r,n)=>Hr(e,"xAxis",t,n),AC=(e,t,r,n)=>Gr(e,"yAxis",r,n),_C=(e,t,r,n)=>Hr(e,"yAxis",r,n),iq=M([ve,OC,AC,CC,_C],(e,t,r,n,o)=>_r(e,"xAxis")?uo(t,n,!1):uo(r,o,!1)),aq=(e,t,r,n,o)=>o;function sq(e){return e.type==="line"}var lq=M([Jl,aq],(e,t)=>e.filter(sq).find(r=>r.id===t)),cq=M([ve,OC,AC,CC,_C,lq,iq,sv],(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 Zq({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:o,dataKey:d,bandSize:a,displayedData:v})}});function uq(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 Da={exports:{}},gd={};var lw;function dq(){if(lw)return gd;lw=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 gd.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(E){if(!b){if(b=!0,x=E,E=d(E),p!==void 0&&g.hasValue){var P=g.value;if(p(P,E))return w=P}return w=E}if(P=w,r(x,E))return P;var O=d(E);return p!==void 0&&p(P,O)?(x=E,P):(x=E,w=O)}var b=!1,x,w,S=u===void 0?null:u;return[function(){return h(c())},S===null?void 0:function(){return h(S())}]},[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},gd}var yd={};var cw;function fq(){return cw||(cw=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;yd.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(E){if(!b){if(b=!0,x=E,E=d(E),p!==void 0&&g.hasValue){var P=g.value;if(p(P,E))return w=P}return w=E}if(P=w,r(x,E))return P;var O=d(E);return p!==void 0&&p(P,O)?(x=E,P):(x=E,w=O)}var b=!1,x,w,S=u===void 0?null:u;return[function(){return h(c())},S===null?void 0:function(){return h(S())}]},[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())})()),yd}var uw;function pq(){return uw||(uw=1,process.env.NODE_ENV==="production"?Da.exports=dq():Da.exports=fq()),Da.exports}pq();function vq(e){e()}function mq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){vq(()=>{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 dw={notify(){},get:()=>[]};function hq(e,t){let r,n=dw,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=mq())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=dw)}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 gq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yq=gq(),bq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",xq=bq(),wq=()=>yq||xq?f.useLayoutEffect:f.useEffect,Sq=wq();function fw(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Pq(e,t){if(fw(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])||!fw(e[r[o]],t[r[o]]))return!1;return!0}var Eq=Symbol.for("react-redux-context"),Oq=typeof globalThis<"u"?globalThis:{};function Cq(){if(!f.createContext)return{};const e=Oq[Eq]??=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 Aq=Cq();function _q(e){const{children:t,context:r,serverState:n,store:o}=e,i=f.useMemo(()=>{const l=hq(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]);Sq(()=>{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||Aq;return f.createElement(s.Provider,{value:i},t)}var Tq=_q,jq=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 lc(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(jq.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Pq(e[n],t[n]))return!1}else if(!Nq(e[n],t[n]))return!1;return!0}var Mq=["id"],Iq=["type","layout","connectNulls","needClip","shape"],kq=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function hi(){return hi=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},hi.apply(null,arguments)}function pw(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?pw(Object(r),!0).forEach(function(n){Rq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rq(e,t,r){return(t=Dq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dq(e){var t=$q(e,"string");return typeof t=="symbol"?t:t+""}function $q(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 fm(e,t){if(e==null)return{};var r,n,o=Lq(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 Lq(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 zq=e=>{var{dataKey:t,name:r,stroke:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:Eo(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:Eo(a,t),hide:s,type:c,color:n,unit:l,graphicalItemId:u}};return f.createElement(im,{tooltipEntrySettings:d})}),TC=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function Bq(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 TC(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[...Bq(r,o),...s,...p].map(v=>"".concat(v,"px")).join(", ")};function Wq(e){var{clipPathId:t,points:r,props:n}=e,{dot:o,dataKey:i,needClip:a}=n,{id:s}=n,l=fm(n,Mq),c=At(l);return f.createElement(T8,{points:r,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:c,needClip:a,clipPathId:t})}function Kq(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(tC,{value:t?o:void 0},r)}function vw(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=fm(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(tm,hi({shapeType:"curve",option:u},p,{pathRef:r})),f.createElement(Wq,{points:n,clipPathId:t,props:i}))}function Uq(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function Hq(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=Ri(a,"recharts-line-"),w=A.useRef(x),[S,E]=A.useState(!1),P=!S,O=A.useCallback(()=>{typeof m=="function"&&m(),E(!1)},[m]),C=A.useCallback(()=>{typeof h=="function"&&h(),E(!0)},[h]),N=Uq(n.current),$=A.useRef(0);w.current!==x&&($.current=i.current,w.current=x);var I=$.current;return f.createElement(Kq,{points:a,showLabels:P},r.children,f.createElement(ki,{animationId:x,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:O,onAnimationStart:C,key:x},_=>{var j=Ae(I,N+I,_),R=Math.min(j,N),V;if(l)if(s){var F="".concat(s).split(/[,\s]+/gim).map(k=>parseFloat(k));V=Vq(R,N,F)}else V=TC(N,R);else V=s==null?void 0:String(s);if(_>0&&N>0&&(o.current=a,i.current=Math.max(i.current,R)),b){var W=b.length/a.length,T=_===1?a:a.map((k,G)=>{var ee=Math.floor(G*W);if(b[ee]){var ne=b[ee];return Zt(Zt({},k),{},{x:Ae(ne.x,k.x,_),y:Ae(ne.y,k.y,_)})}return p?Zt(Zt({},k),{},{x:Ae(v*2,k.x,_),y:Ae(g/2,k.y,_)}):Zt(Zt({},k),{},{x:k.x,y:k.y})});return o.current=T,f.createElement(vw,{props:r,points:T,clipPathId:t,pathRef:n,strokeDasharray:V})}return f.createElement(vw,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:V})}),f.createElement(Zv,{label:r.label}))}function Gq(e){var{clipPathId:t,props:r}=e,n=A.useRef(null),o=A.useRef(0),i=A.useRef(null);return f.createElement(Hq,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:o,pathRef:i})}var qq=(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 Yq 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}=uq(r),x=uC(r),w=h*2+b,S=p?"url(#clipPath-".concat(x?"":"dots-").concat(m,")"):void 0;return f.createElement(wt,{zIndex:v},f.createElement(Xe,{className:g},p&&f.createElement("defs",null,f.createElement(EC,{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(PC,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:qq,errorBarOffset:0},f.createElement(Gq,{props:this.props,clipPathId:m}))),f.createElement(Y8,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:S}))}}var jC={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 Xq(e){var t=Le(e,jC),{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=fm(t,kq),{needClip:b}=dm(v,g),x=sm(),w=Bn(),S=ct(),E=J($=>cq($,v,g,S,m));if(w!=="horizontal"&&w!=="vertical"||E==null||x==null)return null;var{height:P,width:O,x:C,y:N}=x;return f.createElement(Yq,hi({},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:E,layout:w,height:P,width:O,left:C,top:N,needClip:b}))}function Zq(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=Gg({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=Gg({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 Jq(e){var t=Le(e,jC),r=ct();return f.createElement(am,{id:t.id,type:"line"},n=>f.createElement(f.Fragment,null,f.createElement(dC,{legendPayload:zq(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(pC,{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(Xq,hi({},t,{id:n}))))}var NC=f.memo(Jq,lc);NC.displayName="Line";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.xAxisId)!==null&&r!==void 0?r:mC}function Un(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:mC}var Qq=process.env.NODE_ENV==="production",bd="Invariant failed";function e9(e,t){if(Qq)throw new Error(bd);var r=typeof t=="function"?t():t,n=r?"".concat(bd,": ").concat(r):bd;throw new Error(n)}function Pf(){return Pf=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},Pf.apply(null,arguments)}function Hs(e){return f.createElement(tm,Pf({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var t9=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||e9(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},r9=(e,t,r)=>r,n9=(e,t)=>t,qi=M([Jl,n9],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),o9=M([qi],e=>e?.maxBarSize),i9=(e,t,r,n)=>n,a9=M([ve,Jl,Kn,Un,r9],(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")),s9=(e,t,r)=>{var n=ve(e),o=Kn(e,t),i=Un(e,t);if(!(o==null||i==null))return n==="horizontal"?hf(e,"yAxis",i,r):hf(e,"xAxis",o,r)},l9=(e,t)=>{var r=ve(e),n=Kn(e,t),o=Un(e,t);if(!(n==null||o==null))return r==="horizontal"?Yb(e,"xAxis",n):Yb(e,"yAxis",o)},c9=M([a9,P4,l9],X8),u9=(e,t,r)=>{var n,o,i=qi(e,t);if(i==null)return 0;var a=Kn(e,t),s=Un(e,t);if(a==null||s==null)return 0;var l=ve(e),c=kE(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=uo(p,v,!0))!==null&&o!==void 0?o:d)!==null&&n!==void 0?n:0},MC=(e,t,r)=>{var n=ve(e),o=Kn(e,t),i=Un(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)),uo(a,s)}},d9=M([c9,kE,S4,RE,u9,MC,o9],tG),f9=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Gr(e,"xAxis",n,r)},p9=(e,t,r)=>{var n=Un(e,t);if(n!=null)return Gr(e,"yAxis",n,r)},v9=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Hr(e,"xAxis",n,r)},m9=(e,t,r)=>{var n=Un(e,t);if(n!=null)return Hr(e,"yAxis",n,r)},h9=M([d9,qi],nG),g9=M([s9,qi],rG),y9=M([Ve,Tp,f9,p9,v9,m9,h9,ve,v4,MC,g9,qi,i9],(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 H9({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})}}),b9=["index"];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 x9(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}var IC=A.createContext(void 0),S9=e=>{var t=A.useContext(IC);if(t!=null)return t.stackId;if(e!=null)return sF(e)},P9=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),E9=e=>{var t=A.useContext(IC);if(t!=null){var{stackId:r}=t;return"url(#".concat(P9(r,e),")")}},kC=e=>{var{index:t}=e,r=x9(e,b9),n=E9(t);return f.createElement(Xe,Ef({className:"recharts-bar-stack-layer",clipPath:n},r))},O9=["onMouseEnter","onMouseLeave","onClick"],C9=["value","background","tooltipPosition"],A9=["id"],_9=["onMouseEnter","onClick","onMouseLeave"];function Er(){return Er=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},Er.apply(null,arguments)}function mw(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?mw(Object(r),!0).forEach(function(n){T9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T9(e,t,r){return(t=j9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j9(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 Gs(e,t){if(e==null)return{};var r,n,o=M9(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 M9(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:Eo(r,t),payload:e}]},k9=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:Eo(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:c}};return f.createElement(im,{tooltipEntrySettings:u})});function R9(e){var t=J(qr),{data:r,dataKey:n,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=Gs(i,O9),u=rm(a,n,i.id),d=nm(s),p=om(l,n,i.id);if(!o||r==null)return null;var v=On(o);return f.createElement(wt,{zIndex:oG(o,De.barBackground)},r.map((g,m)=>{var{value:h,background:b,tooltipPosition:x}=g,w=Gs(g,C9);if(!b)return null;var S=u(g,m),E=d(g,m),P=p(g,m),O=ft(ft(ft(ft(ft({option:o,isActive:String(m)===t},w),{},{fill:"#eee"},b),v),Ci(c,g,m)),{},{onMouseEnter:S,onMouseLeave:E,onClick:P,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return f.createElement(Hs,Er({key:"background-bar-".concat(m)},O))}))}function D9(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(tC,{value:t?o:void 0},r)}function $9(e){var{shape:t,activeBar:r,baseProps:n,entry:o,index:i,dataKey:a}=e,s=J(qr),l=J(Wv),c=r&&String(i)===s&&(l==null||a===l),u=c?r:t;return c?f.createElement(wt,{zIndex:De.activeBar},f.createElement(kC,{index:i},f.createElement(Hs,Er({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a})))):f.createElement(Hs,Er({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a}))}function L9(e){var{shape:t,baseProps:r,entry:n,index:o,dataKey:i}=e;return f.createElement(Hs,Er({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:o,dataKey:i}))}function z9(e){var t,{data:r,props:n}=e,o=(t=At(n))!==null&&t!==void 0?t:{},{id:i}=o,a=Gs(o,A9),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:u,onClick:d,onMouseLeave:p}=n,v=Gs(n,_9),g=rm(u,l,i),m=nm(p),h=om(d,l,i);return r?f.createElement(f.Fragment,null,r.map((b,x)=>f.createElement(kC,Er({index:x,key:"rectangle-".concat(b?.x,"-").concat(b?.y,"-").concat(b?.value,"-").concat(x),className:"recharts-bar-rectangle"},Ci(v,b,x),{onMouseEnter:g(b,x),onMouseLeave:m(b,x),onClick:h(b,x)}),c?f.createElement($9,{shape:s,activeBar:c,baseProps:a,entry:b,index:x,dataKey:l}):f.createElement(L9,{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=Ri(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(D9,{showLabels:m,rects:n},f.createElement(ki,{animationId:p,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:h,onAnimationStart:b,key:p},x=>{var w=x===1?n:n?.map((S,E)=>{var P=d&&d[E];if(P)return ft(ft({},S),{},{x:Ae(P.x,S.x,x),y:Ae(P.y,S.y,x),width:Ae(P.width,S.width,x),height:Ae(P.height,S.height,x)});if(o==="horizontal"){var O=Ae(0,S.height,x),C=Ae(S.stackedBarStart,S.y,x);return ft(ft({},S),{},{y:C,height:O})}var N=Ae(0,S.width,x),$=Ae(S.stackedBarStart,S.x,x);return ft(ft({},S),{},{width:N,x:$})});return x>0&&(r.current=w??null),w==null?null:f.createElement(Xe,null,f.createElement(z9,{props:t,data:w}))}),f.createElement(Zv,{label:t.label}),t.children)}function B9(e){var t=A.useRef(null);return f.createElement(F9,{previousRectanglesRef:t,props:e})}var RC=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 W9 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(Xe,{className:u,id:c},s&&f.createElement("defs",null,f.createElement(EC,{clipPathId:d,xAxisId:i,yAxisId:a})),f.createElement(Xe,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},f.createElement(R9,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),f.createElement(B9,this.props)))}}var K9={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:RC,xAxisId:0,yAxisId:0,zIndex:De.bar};function U9(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}=dm(t,r),p=Bn(),v=ct(),g=em(e.children,Gi),m=J(x=>y9(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(PC,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:V9,errorBarOffset:h},f.createElement(W9,Er({},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 H9(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=lF({numericAxis:h}),w=h.scale.map(x);return d.map((S,E)=>{var P,O,C,N,$,I;if(u){var _=u[E+m];if(_==null)return null;P=rF(_,b)}else P=be(S,r),Array.isArray(P)||(P=[x,P]);var j=t9(n,RC)(P[1],E);if(t==="horizontal"){var R,V=s.scale.map(P[0]),F=s.scale.map(P[1]);if(V==null||F==null)return null;O=qg({axis:a,ticks:l,bandSize:i,offset:o.offset,entry:S,index:E}),C=(R=F??V)!==null&&R!==void 0?R:void 0,N=o.size;var W=V-F;if($=or(W)?0:W,I={x:O,y:p.top,width:N,height:p.height},Math.abs(j)>0&&Math.abs($)<Math.abs(j)){var T=qe($||j)*(Math.abs(j)-Math.abs($));C-=T,$+=T}}else{var k=a.scale.map(P[0]),G=a.scale.map(P[1]);if(k==null||G==null)return null;if(O=k,C=qg({axis:s,ticks:c,bandSize:i,offset:o.offset,entry:S,index:E}),N=G-k,$=o.size,I={x:p.left,y:C,width:p.width,height:$},Math.abs(j)>0&&Math.abs(N)<Math.abs(j)){var ee=qe(N||j)*(Math.abs(j)-Math.abs(N));N+=ee}}if(O==null||C==null||N==null||$==null)return null;var ne=ft(ft({},S),{},{stackedBarStart:w,x:O,y:C,width:N,height:$,value:u?P:P[1],payload:S,background:I,tooltipPosition:{x:O+N/2,y:C+$/2},parentViewBox:g},v&&v[E]&&v[E].props);return ne}).filter(Boolean)}function G9(e){var t=Le(e,K9),r=S9(t.stackId),n=ct();return f.createElement(am,{id:t.id,type:"bar"},o=>f.createElement(f.Fragment,null,f.createElement(dC,{legendPayload:I9(t)}),f.createElement(k9,{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(pC,{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(U9,Er({},t,{id:o})))))}var DC=f.memo(G9,lc);DC.displayName="Bar";var q9=["domain","range"],Y9=["domain","range"];function hw(e,t){if(e==null)return{};var r,n,o=X9(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 X9(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 gw(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 $C(e,t){if(e===t)return!0;var{domain:r,range:n}=e,o=hw(e,q9),{domain:i,range:a}=t,s=hw(t,Y9);return!gw(r,i)||!gw(n,a)?!1:lc(o,s)}var Z9=["type"],J9=["dangerouslySetInnerHTML","ticks","scale"],Q9=["id","scale"];function Of(){return Of=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},Of.apply(null,arguments)}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 bw(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){e7(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 e7(e,t,r){return(t=t7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t7(e){var t=r7(e,"string");return typeof t=="symbol"?t:t+""}function r7(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 Cf(e,t){if(e==null)return{};var r,n,o=n7(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 n7(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 o7(e){var t=Se(),r=A.useRef(null),n=w1(),{type:o}=e,i=Cf(e,Z9),a=Gl(n,"xAxis",o),s=A.useMemo(()=>{if(a!=null)return bw(bw({},i),{},{type:a})},[i,a]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(k8(s)):r.current!==s&&t(R8({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(D8(r.current)),r.current=null)},[t]),null}var i7=e=>{var{xAxisId:t,className:r}=e,n=J(Tp),o=ct(),i="xAxis",a=J(b=>vO(b,i,t,o)),s=J(b=>uO(b,t)),l=J(b=>PW(b,t)),c=J(b=>UE(b,t));if(s==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:p}=e,v=Cf(e,J9),{id:g,scale:m}=c,h=Cf(c,Q9);return f.createElement(cm,Of({},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}))},a7={allowDataOverflow:Ue.allowDataOverflow,allowDecimals:Ue.allowDecimals,allowDuplicatedCategory:Ue.allowDuplicatedCategory,angle:Ue.angle,axisLine:gr.axisLine,height:Ue.height,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,xAxisId:0},s7=e=>{var t=Le(e,a7);return f.createElement(f.Fragment,null,f.createElement(o7,{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(i7,t))},qs=f.memo(s7,$C);qs.displayName="XAxis";var l7=["type"],c7=["dangerouslySetInnerHTML","ticks","scale"],u7=["id","scale"];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 xw(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 ww(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xw(Object(r),!0).forEach(function(n){d7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function 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 _f(e,t){if(e==null)return{};var r,n,o=v7(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 v7(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 m7(e){var t=Se(),r=A.useRef(null),n=w1(),{type:o}=e,i=_f(e,l7),a=Gl(n,"yAxis",o),s=A.useMemo(()=>{if(a!=null)return ww(ww({},i),{},{type:a})},[a,i]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t($8(s)):r.current!==s&&t(L8({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(z8(r.current)),r.current=null)},[t]),null}function h7(e){var{yAxisId:t,className:r,width:n,label:o}=e,i=A.useRef(null),a=A.useRef(null),s=J(Tp),l=ct(),c=Se(),u="yAxis",d=J(P=>dO(P,t)),p=J(P=>OW(P,t)),v=J(P=>vO(P,u,t,l)),g=J(P=>HE(P,t));if(A.useLayoutEffect(()=>{if(!(n!=="auto"||!d||Xv(o)||A.isValidElement(o)||g==null)){var P=i.current;if(P){var O=P.getCalculatedWidth();Math.round(d.width)!==Math.round(O)&&c(F8({id:t,width:O}))}}},[v,d,c,o,t,n,g]),d==null||p==null||g==null)return null;var{dangerouslySetInnerHTML:m,ticks:h,scale:b}=e,x=_f(e,c7),{id:w,scale:S}=g,E=_f(g,u7);return f.createElement(cm,Af({},x,E,{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 g7={allowDataOverflow:He.allowDataOverflow,allowDecimals:He.allowDecimals,allowDuplicatedCategory:He.allowDuplicatedCategory,angle:He.angle,axisLine:gr.axisLine,hide:!1,includeHidden:He.includeHidden,interval:He.interval,label:!1,minTickGap:He.minTickGap,mirror:He.mirror,orientation:He.orientation,padding:He.padding,reversed:He.reversed,scale:He.scale,tick:He.tick,tickCount:He.tickCount,tickLine:gr.tickLine,tickSize:gr.tickSize,type:He.type,width:He.width,yAxisId:0},y7=e=>{var t=Le(e,g7);return f.createElement(f.Fragment,null,f.createElement(m7,{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(h7,t))},Ys=f.memo(y7,$C);Ys.displayName="YAxis";var b7=(e,t)=>t,pm=M([b7,ve,VE,Je,NO,Rr,B6,Ve],q6),vm=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)}},LC=Rt("mouseClick"),zC=ji();zC.startListening({actionCreator:LC,effect:(e,t)=>{var r=e.payload,n=pm(t.getState(),vm(r));n?.activeIndex!=null&&t.dispatch(zW({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Tf=Rt("mouseMove"),FC=ji(),$a=null;FC.startListening({actionCreator:Tf,effect:(e,t)=>{var r=e.payload;$a!==null&&cancelAnimationFrame($a);var n=vm(r);$a=requestAnimationFrame(()=>{var o=t.getState(),i=$v(o,o.tooltip.settings.shared);if(i==="axis"){var a=pm(o,n);a?.activeIndex!=null?t.dispatch(SO({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(wO())}$a=null})}});function x7(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 Sw={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},BC=xt({name:"rootProps",initialState:Sw,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:Sw.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}}}),w7=BC.reducer,{updateOptions:S7}=BC.actions,P7=null,E7={updatePolarOptions:(e,t)=>t.payload},VC=xt({name:"polarOptions",initialState:P7,reducers:E7}),{updatePolarOptions:O7}=VC.actions,C7=VC.reducer,WC=Rt("keyDown"),KC=Rt("focus"),mm=ji();mm.startListening({actionCreator:WC,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=Lv(o,Io(r),Wi(r),Ui(r)),s=a==null?-1:Number(a);if(!(!Number.isFinite(s)||s<0)){var l=Rr(r);if(i==="Enter"){var c=Fs(r,"axis","hover",String(o.index));t.dispatch(yf({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=Fs(r,"axis","hover",String(v));t.dispatch(yf({active:!0,activeIndex:v.toString(),activeCoordinate:g}))}}}}}});mm.startListening({actionCreator:KC,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=Fs(r,"axis","hover",String(i));t.dispatch(yf({active:!0,activeIndex:i,activeCoordinate:a}))}}}});var Nt=Rt("externalEvent"),UC=ji(),xd=new Map;UC.startListening({actionCreator:Nt,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var o=n.type,i=xd.get(o);i!==void 0&&cancelAnimationFrame(i);var a=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:O6(s),activeDataKey:Wv(s),activeIndex:qr(s),activeLabel:kO(s),activeTooltipIndex:qr(s),isTooltipActive:C6(s)};r(l,n)}finally{xd.delete(o)}});xd.set(o,a)}}});var A7=M([No],e=>e.tooltipItemPayloads),_7=M([A7,(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)}}}),HC=Rt("touchMove"),GC=ji();GC.startListening({actionCreator:HC,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),o=$v(n,n.tooltip.settings.shared);if(o==="axis"){var i=r.touches[0];if(i==null)return;var a=pm(n,vm({clientX:i.clientX,clientY:i.clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(SO({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(m1),d=(s=c.getAttribute(h1))!==null&&s!==void 0?s:void 0,p=Mo(n).find(m=>m.id===d);if(u==null||p==null||d==null)return;var{dataKey:v}=p,g=_7(n,u,d);t.dispatch(xO({activeDataKey:v,activeIndex:u,activeCoordinate:g,activeGraphicalItemId:d}))}}}});var T7=IP({brush:iG,cartesianAxis:B8,chartData:OK,errorBars:QG,graphicalItems:qH,layout:Zz,legend:iB,options:xK,polarAxis:sH,polarOptions:C7,referenceElements:cG,rootProps:w7,tooltip:FW,zIndex:lK}),j7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Sz({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([zC.middleware,FC.middleware,mm.middleware,UC.middleware,GC.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(JP({type:"raf"}))},devTools:{serialize:{replacer:x7},name:"recharts-".concat(r)}})};function qC(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,o=ct(),i=A.useRef(null);if(o)return r;i.current==null&&(i.current=j7(t,n));var a=Sp;return f.createElement(Tq,{context:a,store:i.current},r)}function N7(e){var{layout:t,margin:r}=e,n=Se(),o=ct();return A.useEffect(()=>{o||(n(qz(t)),n(Gz(r)))},[n,o,t,r]),null}var YC=A.memo(N7,lc);function XC(e){var t=Se();return A.useEffect(()=>{t(S7(e))},[t,e]),null}function Pw(e){var{zIndex:t,isPanorama:r}=e,n=A.useRef(null),o=Se();return A.useLayoutEffect(()=>(n.current&&o(aK({zIndex:t,element:n.current,isPanorama:r})),()=>{o(sK({zIndex:t,isPanorama:r}))}),[o,t,r]),f.createElement("g",{tabIndex:-1,ref:n})}function Ew(e){var{children:t,isPanorama:r}=e,n=J(X6);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(Pw,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>f.createElement(Pw,{key:a,zIndex:a,isPanorama:r})))}var M7=["children"];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}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)}var R7={width:"100%",height:"100%",display:"block"},D7=A.forwardRef((e,t)=>{var r=Ip(),n=kp(),o=I1();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(dp,Xs({},a,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:R7,ref:t}),i)}),$7=e=>{var{children:t}=e,r=J(Ml);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return f.createElement(dp,{width:n,height:o,x:a,y:i},t)},Ow=A.forwardRef((e,t)=>{var{children:r}=e,n=I7(e,M7),o=ct();return o?f.createElement($7,null,f.createElement(Ew,{isPanorama:!0},r)):f.createElement(D7,Xs({ref:t},n),f.createElement(Ew,{isPanorama:!1},r))});function L7(){var e=Se(),[t,r]=A.useState(null),n=J(vF);return A.useEffect(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;ce(i)&&i!==n&&e(Xz(i))}},[t,e,n]),r}function Cw(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 z7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(r),!0).forEach(function(n){F7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F7(e,t,r){return(t=B7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B7(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 W7=()=>(kK(),null);function Zs(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var K7=A.forwardRef((e,t)=>{var r,n,o=A.useRef(null),[i,a]=A.useState({containerWidth:Zs((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Zs((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(Mi,{width:i.containerWidth,height:i.containerHeight}),f.createElement("div",Kr({ref:l},e)))}),U7=A.forwardRef((e,t)=>{var{width:r,height:n}=e,[o,i]=A.useState({containerWidth:Zs(r),containerHeight:Zs(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(Mi,{width:o.containerWidth,height:o.containerHeight}),f.createElement("div",Kr({ref:s},e)))}),H7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return f.createElement(f.Fragment,null,f.createElement(Mi,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))}),G7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?f.createElement(U7,Kr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?f.createElement(H7,Kr({},e,{width:r,height:n,ref:t})):f.createElement(f.Fragment,null,f.createElement(Mi,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))});function q7(e){return e?K7:G7}var Y7=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,S=A.useRef(null),E=Se(),[P,O]=A.useState(null),[C,N]=A.useState(null),$=L7(),I=jp(),_=I?.width>0?I.width:b,j=I?.height>0?I.height:o,R=A.useCallback(L=>{$(L),typeof t=="function"&&t(L),O(L),N(L),L!=null&&(S.current=L)},[$,t,O,N]),V=A.useCallback(L=>{E(LC(L)),E(Nt({handler:i,reactEvent:L}))},[E,i]),F=A.useCallback(L=>{E(Tf(L)),E(Nt({handler:c,reactEvent:L}))},[E,c]),W=A.useCallback(L=>{E(wO()),E(Nt({handler:u,reactEvent:L}))},[E,u]),T=A.useCallback(L=>{E(Tf(L)),E(Nt({handler:d,reactEvent:L}))},[E,d]),k=A.useCallback(()=>{E(KC())},[E]),G=A.useCallback(L=>{E(WC(L.key))},[E]),ee=A.useCallback(L=>{E(Nt({handler:a,reactEvent:L}))},[E,a]),ne=A.useCallback(L=>{E(Nt({handler:s,reactEvent:L}))},[E,s]),ie=A.useCallback(L=>{E(Nt({handler:l,reactEvent:L}))},[E,l]),oe=A.useCallback(L=>{E(Nt({handler:p,reactEvent:L}))},[E,p]),le=A.useCallback(L=>{E(Nt({handler:m,reactEvent:L}))},[E,m]),Oe=A.useCallback(L=>{w&&E(HC(L)),E(Nt({handler:g,reactEvent:L}))},[E,w,g]),K=A.useCallback(L=>{E(Nt({handler:v,reactEvent:L}))},[E,v]),ue=q7(x);return f.createElement(BO.Provider,{value:P},f.createElement(YS.Provider,{value:C},f.createElement(ue,{width:_??h?.width,height:j??h?.height,className:de("recharts-wrapper",n),style:z7({position:"relative",cursor:"default",width:_,height:j},h),onClick:V,onContextMenu:ee,onDoubleClick:ne,onFocus:k,onKeyDown:G,onMouseDown:ie,onMouseEnter:F,onMouseLeave:W,onMouseMove:T,onMouseUp:oe,onTouchEnd:K,onTouchMove:Oe,onTouchStart:le,ref:R},f.createElement(W7,null),r)))}),X7=["width","height","responsive","children","className","style","compact","title","desc"];function Z7(e,t){if(e==null)return{};var r,n,o=J7(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 J7(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 ZC=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=Z7(e,X7),p=At(d);return l?f.createElement(f.Fragment,null,f.createElement(Mi,{width:r,height:n}),f.createElement(Ow,{otherAttributes:p,title:c,desc:u},i)):f.createElement(Y7,{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(Ow,{otherAttributes:p,title:c,desc:u,ref:t},f.createElement(dG,null,i)))});function jf(){return jf=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},jf.apply(null,arguments)}var Q7={top:5,right:5,bottom:5,left:5},eY={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:Q7,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},JC=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,eY),{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(qC,{preloadedState:{options:u},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:i},f.createElement(gC,{chartData:c.data}),f.createElement(YC,{layout:o.layout,margin:o.margin}),f.createElement(XC,{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(ZC,jf({},o,{ref:r})))}),tY=["axis"],rY=A.forwardRef((e,t)=>f.createElement(JC,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:tY,tooltipPayloadSearcher:qv,categoricalChartProps:e,ref:t})),nY=["axis","item"],oY=A.forwardRef((e,t)=>f.createElement(JC,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:nY,tooltipPayloadSearcher:qv,categoricalChartProps:e,ref:t}));function iY(e){var t=Se();return A.useEffect(()=>{t(O7(e))},[t,e]),null}var aY=["layout"];function Nf(){return Nf=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},Nf.apply(null,arguments)}function sY(e,t){if(e==null)return{};var r,n,o=lY(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 lY(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 cY={top:5,right:5,bottom:5,left:5},QC={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:cY,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},uY=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,QC),{layout:i}=o,a=sY(o,aY),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=t,d={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return f.createElement(qC,{preloadedState:{options:d},reduxStoreName:(n=o.id)!==null&&n!==void 0?n:s},f.createElement(gC,{chartData:o.data}),f.createElement(YC,{layout:i,margin:o.margin}),f.createElement(XC,{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(iY,{cx:o.cx,cy:o.cy,startAngle:o.startAngle,endAngle:o.endAngle,innerRadius:o.innerRadius,outerRadius:o.outerRadius}),f.createElement(ZC,Nf({},a,{ref:r})))});function Aw(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 _w(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Aw(Object(r),!0).forEach(function(n){dY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dY(e,t,r){return(t=fY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fY(e){var t=pY(e,"string");return typeof t=="symbol"?t:t+""}function pY(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 vY=["item"],mY=_w(_w({},QC),{},{layout:"centric",startAngle:0,endAngle:360}),hY=A.forwardRef((e,t)=>{var r=Le(e,mY);return f.createElement(uY,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:vY,tooltipPayloadSearcher:qv,categoricalChartProps:r,ref:t})});const eA=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),La=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],tA=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:La[w%La.length]})):[]},[r,n]),m=d==="vertical";return y.jsx("div",{ref:v,className:D(eA({size:t,className:e})),role:"img",...p,children:y.jsx(Np,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(oY,{data:r,layout:d,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(um,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!m,horizontal:m}),m?y.jsxs(y.Fragment,{children:[y.jsx(qs,{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(Ys,{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(qs,{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(Ys,{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(Yv,{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($l,{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(DC,{dataKey:h.key,name:h.name,fill:h.color||La[b%La.length],radius:c,stackId:u?"stack":void 0},h.key))]})})})});tA.displayName="BarChart";const rA=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"}}),Mf=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}}),nA=f.forwardRef(({className:e,size:t,separator:r=y.jsx(hm,{}),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:D(rA({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))})})});nA.displayName="Breadcrumbs";const oA=f.forwardRef(({className:e,asChild:t=!1,isCurrentPage:r=!1,...n},o)=>{if(r)return y.jsx("span",{className:D(Mf({isCurrentPage:!0,className:e})),"aria-current":"page",children:n.children});const i=t?Ee:"a";return y.jsx(i,{ref:o,className:D(Mf({isCurrentPage:!1,className:e})),...n})});oA.displayName="BreadcrumbItem";const hm=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx("span",{ref:n,role:"presentation","aria-hidden":"true",className:D("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"})})}));hm.displayName="BreadcrumbSeparator";const un=["relative","before:content-['']","before:absolute","before:inset-y-0","before:left-0","before:w-[3px]","before:z-20","before:rounded-l","before:bg-[linear-gradient(to_bottom,var(--card-accent-color)_0%,transparent_60%)]"].join(" "),iA=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"},accent:{none:"",border:`${un} [--card-accent-color:var(--color-border)]`,sunflower:`${un} [--card-accent-color:var(--color-sunflower)]`,"warm-purple":`${un} [--card-accent-color:var(--color-warm-purple)]`,"cool-purple":`${un} [--card-accent-color:var(--color-cool-purple)]`,"electric-blue":`${un} [--card-accent-color:var(--color-electric-blue)]`,"deep-blue":`${un} [--card-accent-color:var(--color-deep-blue)]`,error:`${un} [--card-accent-color:var(--color-error)]`}},defaultVariants:{variant:"default",padding:"default",bg:"alt",accent:"none"}}),aA=f.forwardRef(({className:e,variant:t,padding:r,bg:n,accent:o,asChild:i=!1,...a},s)=>{const l=i?Ee:"div";return y.jsx(l,{className:D(iA({variant:t,padding:r,bg:n,accent:o,className:e})),ref:s,...a})});aA.displayName="Card";function Yi(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 Xi(e){const[t,r]=f.useState(void 0);return Ye(()=>{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 cc="Checkbox",[gY]=Be(cc),[yY,gm]=gY(cc);function bY(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]=nt({prop:r,defaultProp:o??!1,onChange:l,caller:cc}),[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useRef(!1),w=g?!!a||!!g.closest("form"):!0,S={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(yY,{scope:t,...S,children:xY(d)?d(S):n})}var sA="CheckboxTrigger",lA=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}=gm(sA,e),m=re(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":vA(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())})})});lA.displayName=sA;var cA=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(bY,{__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(lA,{...d,ref:t,__scopeCheckbox:r}),p&&y.jsx(pA,{__scopeCheckbox:r})]})})});cA.displayName=cc;var uA="CheckboxIndicator",dA=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=gm(uA,r);return y.jsx(lt,{present:n||Ur(i.checked)||i.checked===!0,children:y.jsx(Q.span,{"data-state":vA(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});dA.displayName=uA;var fA="CheckboxBubbleInput",pA=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}=gm(fA,e),g=re(r,v),m=Yi(i),h=Xi(n);f.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,P=!o.current;if(m!==i&&E){const O=new Event("click",{bubbles:P});x.indeterminate=Ur(i),E.call(x,Ur(i)?!1:i),x.dispatchEvent(O)}},[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%)"}})});pA.displayName=fA;function xY(e){return typeof e=="function"}function Ur(e){return e==="indeterminate"}function vA(e){return Ur(e)?"indeterminate":e?"checked":"unchecked"}const mA=f.forwardRef(({className:e,...t},r)=>y.jsx(cA,{ref:r,className:D("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(dA,{className:D("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"})})})}));mA.displayName="Checkbox";const wY=["top","right","bottom","left"],Xr=Math.min,St=Math.max,Js=Math.round,za=Math.floor,nr=e=>({x:e,y:e}),SY={left:"right",right:"left",bottom:"top",top:"bottom"},PY={start:"end",end:"start"};function If(e,t,r){return St(e,Xr(t,r))}function Or(e,t){return typeof e=="function"?e(t):e}function Cr(e){return e.split("-")[0]}function ko(e){return e.split("-")[1]}function ym(e){return e==="x"?"y":"x"}function bm(e){return e==="y"?"height":"width"}const EY=new Set(["top","bottom"]);function tr(e){return EY.has(Cr(e))?"y":"x"}function xm(e){return ym(tr(e))}function OY(e,t,r){r===void 0&&(r=!1);const n=ko(e),o=xm(e),i=bm(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Qs(a)),[a,Qs(a)]}function CY(e){const t=Qs(e);return[kf(e),t,kf(t)]}function kf(e){return e.replace(/start|end/g,t=>PY[t])}const Tw=["left","right"],jw=["right","left"],AY=["top","bottom"],_Y=["bottom","top"];function TY(e,t,r){switch(e){case"top":case"bottom":return r?t?jw:Tw:t?Tw:jw;case"left":case"right":return t?AY:_Y;default:return[]}}function jY(e,t,r,n){const o=ko(e);let i=TY(Cr(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(kf)))),i}function Qs(e){return e.replace(/left|right|bottom|top/g,t=>SY[t])}function NY(e){return{top:0,right:0,bottom:0,left:0,...e}}function hA(e){return typeof e!="number"?NY(e):{top:e,right:e,bottom:e,left:e}}function el(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 Nw(e,t,r){let{reference:n,floating:o}=e;const i=tr(t),a=xm(t),s=bm(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(ko(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 MY(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}=Or(t,e),g=hA(v),h=s[p?d==="floating"?"reference":"floating":d],b=el(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)),S=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},E=el(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:l}):x);return{top:(b.top-E.top+g.top)/S.y,bottom:(E.bottom-b.bottom+g.bottom)/S.y,left:(b.left-E.left+g.left)/S.x,right:(E.right-b.right+g.right)/S.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}=Nw(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:S,data:E,reset:P}=await x({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:v,rects:c,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:MY},elements:{reference:e,floating:t}});u=w??u,d=S??d,v={...v,[b]:{...v[b],...E}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(c=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:u,y:d}=Nw(c,p,l)),h=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:v}},kY=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}=Or(e,t)||{};if(c==null)return{};const d=hA(u),p={x:r,y:n},v=xm(o),g=bm(v),m=await a.getDimensions(c),h=v==="y",b=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[v]-p[v]-i.floating[g],E=p[v]-i.reference[v],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let O=P?P[w]:0;(!O||!await(a.isElement==null?void 0:a.isElement(P)))&&(O=s.floating[w]||i.floating[g]);const C=S/2-E/2,N=O/2-m[g]/2-1,$=Xr(d[b],N),I=Xr(d[x],N),_=$,j=O-m[g]-I,R=O/2-m[g]/2+C,V=If(_,R,j),F=!l.arrow&&ko(o)!=null&&R!==V&&i.reference[g]/2-(R<_?$:I)-m[g]/2<0,W=F?R<_?R-_:R-j:0;return{[v]:p[v]+W,data:{[v]:V,centerOffset:R-V-W,...F&&{alignmentOffset:W}},reset:F}}}),RY=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}=Or(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=Cr(o),x=tr(s),w=Cr(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=p||(w||!m?[Qs(s)]:CY(s)),P=g!=="none";!p&&P&&E.push(...jY(s,m,g,S));const O=[s,...E],C=await l.detectOverflow(t,h),N=[];let $=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&N.push(C[b]),d){const R=OY(o,a,S);N.push(C[R[0]],C[R[1]])}if($=[...$,{placement:o,overflows:N}],!N.every(R=>R<=0)){var I,_;const R=(((I=i.flip)==null?void 0:I.index)||0)+1,V=O[R];if(V&&(!(d==="alignment"?x!==tr(V):!1)||$.every(T=>tr(T.placement)===x?T.overflows[0]>0:!0)))return{data:{index:R,overflows:$},reset:{placement:V}};let F=(_=$.filter(W=>W.overflows[0]<=0).sort((W,T)=>W.overflows[1]-T.overflows[1])[0])==null?void 0:_.placement;if(!F)switch(v){case"bestFit":{var j;const W=(j=$.filter(T=>{if(P){const k=tr(T.placement);return k===x||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,G)=>k+G,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:j[0];W&&(F=W);break}case"initialPlacement":F=s;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Mw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Iw(e){return wY.some(t=>e[t]>=0)}const DY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Or(e,t);switch(o){case"referenceHidden":{const a=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=Mw(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Iw(s)}}}case"escaped":{const a=await n.detectOverflow(t,{...i,altBoundary:!0}),s=Mw(a,r.floating);return{data:{escapedOffsets:s,escaped:Iw(s)}}}default:return{}}}}},gA=new Set(["left","top"]);async function $Y(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=ko(r),l=tr(r)==="y",c=gA.has(a)?-1:1,u=i&&l?-1:1,d=Or(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 LY=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 $Y(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}}}}},zY=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}=Or(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=tr(Cr(o)),v=ym(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],S=g-d[x];g=If(w,g,S)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=m+d[b],S=m-d[x];m=If(w,m,S)}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}=Or(e,t),u={x:r,y:n},d=tr(o),p=ym(d);let v=u[p],g=u[d];const m=Or(s,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=p==="y"?"height":"width",S=i.reference[p]-i.floating[w]+h.mainAxis,E=i.reference[p]+i.reference[w]-h.mainAxis;v<S?v=S:v>E&&(v=E)}if(c){var b,x;const w=p==="y"?"width":"height",S=gA.has(Cr(o)),E=i.reference[d]-i.floating[w]+(S&&((b=a.offset)==null?void 0:b[d])||0)+(S?0:h.crossAxis),P=i.reference[d]+i.reference[w]+(S?0:((x=a.offset)==null?void 0:x[d])||0)-(S?h.crossAxis:0);g<E?g=E:g>P&&(g=P)}return{[p]:v,[d]:g}}}},BY=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}=Or(e,t),u=await a.detectOverflow(t,c),d=Cr(o),p=ko(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,S=Xr(m-u[h],x),E=Xr(g-u[b],w),P=!t.middlewareData.shift;let O=S,C=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=x),P&&!p){const $=St(u.left,0),I=St(u.right,0),_=St(u.top,0),j=St(u.bottom,0);v?C=g-2*($!==0||I!==0?$+I:St(u.left,u.right)):O=m-2*(_!==0||j!==0?_+j:St(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:O});const N=await a.getDimensions(s.floating);return g!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function uc(){return typeof window<"u"}function Ro(e){return yA(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=(yA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yA(e){return uc()?e instanceof Node||e instanceof Ct(e).Node:!1}function Wt(e){return uc()?e instanceof Element||e instanceof Ct(e).Element:!1}function lr(e){return uc()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function kw(e){return!uc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}const VY=new Set(["inline","contents"]);function Zi(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 WY=new Set(["table","td","th"]);function KY(e){return WY.has(Ro(e))}const UY=[":popover-open",":modal"];function dc(e){return UY.some(t=>{try{return e.matches(t)}catch{return!1}})}const HY=["transform","translate","scale","rotate","perspective"],GY=["transform","translate","scale","rotate","perspective","filter"],qY=["paint","layout","strict","content"];function wm(e){const t=Sm(),r=Wt(e)?Kt(e):e;return HY.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)||GY.some(n=>(r.willChange||"").includes(n))||qY.some(n=>(r.contain||"").includes(n))}function YY(e){let t=Zr(e);for(;lr(t)&&!go(t);){if(wm(t))return t;if(dc(t))return null;t=Zr(t)}return null}function Sm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const XY=new Set(["html","body","#document"]);function go(e){return XY.has(Ro(e))}function Kt(e){return Ct(e).getComputedStyle(e)}function fc(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zr(e){if(Ro(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kw(e)&&e.host||ur(e);return kw(t)?t.host:t}function bA(e){const t=Zr(e);return go(t)?e.ownerDocument?e.ownerDocument.body:e.body:lr(t)&&Zi(t)?t:bA(t)}function gi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=bA(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Ct(o);if(i){const s=Rf(a);return t.concat(a,a.visualViewport||[],Zi(o)?o:[],s&&r?gi(s):[])}return t.concat(o,gi(o,[],r))}function Rf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xA(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=Js(r)!==i||Js(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Pm(e){return Wt(e)?e:e.contextElement}function lo(e){const t=Pm(e);if(!lr(t))return nr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=xA(t);let a=(i?Js(r.width):r.width)/n,s=(i?Js(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const ZY=nr(0);function wA(e){const t=Ct(e);return!Sm()||!t.visualViewport?ZY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function JY(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ct(e)?!1:t}function kn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Pm(e);let a=nr(1);t&&(n?Wt(n)&&(a=lo(n)):a=lo(e));const s=JY(i,r,n)?wA(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=Rf(g);for(;m&&n&&v!==g;){const h=lo(m),b=m.getBoundingClientRect(),x=Kt(m),w=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*h.x,S=b.top+(m.clientTop+parseFloat(x.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=w,c+=S,g=Ct(m),m=Rf(g)}}return el({width:u,height:d,x:l,y:c})}function pc(e,t){const r=fc(e).scrollLeft;return t?t.left+r:kn(ur(e)).left+r}function SA(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-pc(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function QY(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=ur(n),s=t?dc(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)&&((Ro(n)!=="body"||Zi(a))&&(l=fc(n)),lr(n))){const v=kn(n);c=lo(n),u.x=v.x+n.clientLeft,u.y=v.y+n.clientTop}const p=a&&!d&&!i?SA(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 eX(e){return Array.from(e.getClientRects())}function tX(e){const t=ur(e),r=fc(e),n=e.ownerDocument.body,o=St(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=St(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+pc(e);const s=-r.scrollTop;return Kt(n).direction==="rtl"&&(a+=St(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const Rw=25;function rX(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=Sm();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=pc(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<=Rw&&(i-=g)}else c<=Rw&&(i+=c);return{width:i,height:a,x:s,y:l}}const nX=new Set(["absolute","fixed"]);function oX(e,t){const r=kn(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=lr(e)?lo(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 Dw(e,t,r){let n;if(t==="viewport")n=rX(e,r);else if(t==="document")n=tX(ur(e));else if(Wt(t))n=oX(t,r);else{const o=wA(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return el(n)}function PA(e,t){const r=Zr(e);return r===t||!Wt(r)||go(r)?!1:Kt(r).position==="fixed"||PA(r,t)}function iX(e,t){const r=t.get(e);if(r)return r;let n=gi(e,[],!1).filter(s=>Wt(s)&&Ro(s)!=="body"),o=null;const i=Kt(e).position==="fixed";let a=i?Zr(e):e;for(;Wt(a)&&!go(a);){const s=Kt(a),l=wm(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&nX.has(o.position)||Zi(a)&&!l&&PA(e,a))?n=n.filter(u=>u!==a):o=s,a=Zr(a)}return t.set(e,n),n}function aX(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?dc(t)?[]:iX(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,u)=>{const d=Dw(t,u,o);return c.top=St(d.top,c.top),c.right=Xr(d.right,c.right),c.bottom=Xr(d.bottom,c.bottom),c.left=St(d.left,c.left),c},Dw(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function sX(e){const{width:t,height:r}=xA(e);return{width:t,height:r}}function lX(e,t,r){const n=lr(t),o=ur(t),i=r==="fixed",a=kn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=nr(0);function c(){l.x=pc(o)}if(n||!n&&!i)if((Ro(t)!=="body"||Zi(o))&&(s=fc(t)),n){const v=kn(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?SA(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 wd(e){return Kt(e).position==="static"}function $w(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 EA(e,t){const r=Ct(e);if(dc(e))return r;if(!lr(e)){let o=Zr(e);for(;o&&!go(o);){if(Wt(o)&&!wd(o))return o;o=Zr(o)}return r}let n=$w(e,t);for(;n&&KY(n)&&wd(n);)n=$w(n,t);return n&&go(n)&&wd(n)&&!wm(n)?r:n||YY(e)||r}const cX=async function(e){const t=this.getOffsetParent||EA,r=this.getDimensions,n=await r(e.floating);return{reference:lX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function uX(e){return Kt(e).direction==="rtl"}const dX={convertOffsetParentRelativeRectToViewportRelativeRect:QY,getDocumentElement:ur,getClippingRect:aX,getOffsetParent:EA,getElementRects:cX,getClientRects:eX,getDimensions:sX,getScale:lo,isElement:Wt,isRTL:uX};function OA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fX(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=za(d),m=za(o.clientWidth-(u+p)),h=za(o.clientHeight-(d+v)),b=za(u),w={rootMargin:-g+"px "+-m+"px "+-h+"px "+-b+"px",threshold:St(0,Xr(1,l))||1};let S=!0;function E(P){const O=P[0].intersectionRatio;if(O!==l){if(!S)return a();O?a(!1,O):n=setTimeout(()=>{a(!1,1e-7)},1e3)}O===1&&!OA(c,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return a(!0),i}function pX(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=Pm(e),u=o||i?[...c?gi(c):[],...gi(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=c&&s?fX(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?kn(e):null;l&&h();function h(){const b=kn(e);m&&!OA(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 vX=LY,mX=zY,hX=RY,gX=BY,yX=DY,Lw=kY,bX=FY,xX=(e,t,r)=>{const n=new Map,o={platform:dX,...r},i={...o.platform,_c:n};return IY(e,t,{...o,platform:i})};var wX=typeof document<"u",SX=function(){},Za=wX?A.useLayoutEffect:SX;function tl(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(!tl(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)&&!tl(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function CA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zw(e,t){const r=CA(e);return Math.round(t*r)/r}function Sd(e){const t=f.useRef(e);return Za(()=>{t.current=e}),t}function PX(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);tl(p,n)||v(n);const[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useCallback(T=>{T!==P.current&&(P.current=T,m(T))},[]),w=f.useCallback(T=>{T!==O.current&&(O.current=T,b(T))},[]),S=i||g,E=a||h,P=f.useRef(null),O=f.useRef(null),C=f.useRef(u),N=l!=null,$=Sd(l),I=Sd(o),_=Sd(c),j=f.useCallback(()=>{if(!P.current||!O.current)return;const T={placement:t,strategy:r,middleware:p};I.current&&(T.platform=I.current),xX(P.current,O.current,T).then(k=>{const G={...k,isPositioned:_.current!==!1};R.current&&!tl(C.current,G)&&(C.current=G,Si.flushSync(()=>{d(G)}))})},[p,t,r,I,_]);Za(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[c]);const R=f.useRef(!1);Za(()=>(R.current=!0,()=>{R.current=!1}),[]),Za(()=>{if(S&&(P.current=S),E&&(O.current=E),S&&E){if($.current)return $.current(S,E,j);j()}},[S,E,j,$,N]);const V=f.useMemo(()=>({reference:P,floating:O,setReference:x,setFloating:w}),[x,w]),F=f.useMemo(()=>({reference:S,floating:E}),[S,E]),W=f.useMemo(()=>{const T={position:r,left:0,top:0};if(!F.floating)return T;const k=zw(F.floating,u.x),G=zw(F.floating,u.y);return s?{...T,transform:"translate("+k+"px, "+G+"px)",...CA(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:k,top:G}},[r,s,F.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:j,refs:V,elements:F,floatingStyles:W}),[u,j,V,F,W])}const EX=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?Lw({element:n.current,padding:o}).fn(r):{}:n?Lw({element:n,padding:o}).fn(r):{}}}},OX=(e,t)=>({...vX(e),options:[e,t]}),CX=(e,t)=>({...mX(e),options:[e,t]}),AX=(e,t)=>({...bX(e),options:[e,t]}),_X=(e,t)=>({...hX(e),options:[e,t]}),TX=(e,t)=>({...gX(e),options:[e,t]}),jX=(e,t)=>({...yX(e),options:[e,t]}),NX=(e,t)=>({...EX(e),options:[e,t]});var MX="Arrow",AA=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"})})});AA.displayName=MX;var IX=AA,Em="Popper",[_A,rn]=Be(Em),[kX,TA]=_A(Em),jA=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return y.jsx(kX,{scope:t,anchor:n,onAnchorChange:o,children:r})};jA.displayName=Em;var NA="PopperAnchor",MA=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=TA(NA,r),a=f.useRef(null),s=re(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})});MA.displayName=NA;var Om="PopperContent",[RX,DX]=_A(Om),IA=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=TA(Om,r),[b,x]=f.useState(null),w=re(t,K=>x(K)),[S,E]=f.useState(null),P=Xi(S),O=P?.width??0,C=P?.height??0,N=n+(i!=="center"?"-"+i:""),$=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(c)?c:[c],_=I.length>0,j={padding:$,boundary:I.filter(LX),altBoundary:_},{refs:R,floatingStyles:V,placement:F,isPositioned:W,middlewareData:T}=PX({strategy:"fixed",placement:N,whileElementsMounted:(...K)=>pX(...K,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[OX({mainAxis:o+C,alignmentAxis:a}),l&&CX({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?AX():void 0,...j}),l&&_X({...j}),TX({...j,apply:({elements:K,rects:ue,availableWidth:L,availableHeight:H})=>{const{width:B,height:z}=ue.reference,fe=K.floating.style;fe.setProperty("--radix-popper-available-width",`${L}px`),fe.setProperty("--radix-popper-available-height",`${H}px`),fe.setProperty("--radix-popper-anchor-width",`${B}px`),fe.setProperty("--radix-popper-anchor-height",`${z}px`)}}),S&&NX({element:S,padding:s}),zX({arrowWidth:O,arrowHeight:C}),p&&jX({strategy:"referenceHidden",...j})]}),[k,G]=DA(F),ee=st(g);Ye(()=>{W&&ee?.()},[W,ee]);const ne=T.arrow?.x,ie=T.arrow?.y,oe=T.arrow?.centerOffset!==0,[le,Oe]=f.useState();return Ye(()=>{b&&Oe(window.getComputedStyle(b).zIndex)},[b]),y.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:W?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(RX,{scope:r,placedSide:k,onArrowChange:E,arrowX:ne,arrowY:ie,shouldHideArrow:oe,children:y.jsx(Q.div,{"data-side":k,"data-align":G,...m,ref:w,style:{...m.style,animation:W?void 0:"none"}})})})});IA.displayName=Om;var kA="PopperArrow",$X={top:"bottom",right:"left",bottom:"top",left:"right"},RA=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=DX(kA,n),a=$X[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"}})})});RA.displayName=kA;function LX(e){return e!==null}var zX=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]=DA(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 DA(e){const[t,r="center"]=e.split("-");return[t,r]}var Ji=jA,Qi=MA,vc=IA,mc=RA,Pd="rovingFocusGroup.onEntryFocus",FX={bubbles:!1,cancelable:!0},ea="RovingFocusGroup",[Df,$A,BX]=xo(ea),[VX,hc]=Be(ea,[BX]),[WX,KX]=VX(ea),LA=f.forwardRef((e,t)=>y.jsx(Df.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Df.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(UX,{...e,ref:t})})}));LA.displayName=ea;var UX=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=re(t,p),g=wo(i),[m,h]=nt({prop:a,defaultProp:s??null,onChange:l,caller:ea}),[b,x]=f.useState(!1),w=st(c),S=$A(r),E=f.useRef(!1),[P,O]=f.useState(0);return f.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(Pd,w),()=>C.removeEventListener(Pd,w)},[w]),y.jsx(WX,{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(()=>O(C=>C+1),[]),onFocusableItemRemove:f.useCallback(()=>O(C=>C-1),[]),children:y.jsx(Q.div,{tabIndex:b||P===0?-1:0,"data-orientation":n,...d,ref:v,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{E.current=!0}),onFocus:U(e.onFocus,C=>{const N=!E.current;if(C.target===C.currentTarget&&N&&!b){const $=new CustomEvent(Pd,FX);if(C.currentTarget.dispatchEvent($),!$.defaultPrevented){const I=S().filter(F=>F.focusable),_=I.find(F=>F.active),j=I.find(F=>F.id===m),V=[_,j,...I].filter(Boolean).map(F=>F.ref.current);BA(V,u)}}E.current=!1}),onBlur:U(e.onBlur,()=>x(!1))})})}),zA="RovingFocusGroupItem",FA=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=KX(zA,r),d=u.currentTabStopId===c,p=$A(r),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:m}=u;return f.useEffect(()=>{if(n)return v(),()=>g()},[n,v,g]),y.jsx(Df.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=qX(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(S=>S.focusable).map(S=>S.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const S=w.indexOf(h.currentTarget);w=u.loop?YX(w,S+1):w.slice(S+1)}setTimeout(()=>BA(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});FA.displayName=zA;var HX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function GX(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function qX(e,t,r){const n=GX(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return HX[n]}function BA(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function YX(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var VA=LA,WA=FA;function XX(e){const t=ZX(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(QX);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 ZX(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=tZ(o),s=eZ(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 JX=Symbol("radix.slottable");function QX(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===JX}function eZ(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 tZ(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 $f=["Enter"," "],rZ=["ArrowDown","PageUp","Home"],KA=["ArrowUp","PageDown","End"],nZ=[...rZ,...KA],oZ={ltr:[...$f,"ArrowRight"],rtl:[...$f,"ArrowLeft"]},iZ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ta="Menu",[yi,aZ,sZ]=xo(ta),[Hn,gc]=Be(ta,[sZ,rn,hc]),ra=rn(),UA=hc(),[HA,nn]=Hn(ta),[lZ,na]=Hn(ta),GA=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:a=!0}=e,s=ra(t),[l,c]=f.useState(null),u=f.useRef(!1),d=st(i),p=wo(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(Ji,{...s,children:y.jsx(HA,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:y.jsx(lZ,{scope:t,onClose:f.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:p,modal:a,children:n})})})};GA.displayName=ta;var cZ="MenuAnchor",Cm=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=ra(r);return y.jsx(Qi,{...o,...n,ref:t})});Cm.displayName=cZ;var Am="MenuPortal",[uZ,qA]=Hn(Am,{forceMount:void 0}),YA=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=nn(Am,t);return y.jsx(uZ,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(zn,{asChild:!0,container:o,children:n})})})};YA.displayName=Am;var kt="MenuContent",[dZ,_m]=Hn(kt),XA=f.forwardRef((e,t)=>{const r=qA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=na(kt,e.__scopeMenu);return y.jsx(yi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(yi.Slot,{scope:e.__scopeMenu,children:a.modal?y.jsx(fZ,{...o,ref:t}):y.jsx(pZ,{...o,ref:t})})})})}),fZ=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu),n=f.useRef(null),o=re(t,n);return f.useEffect(()=>{const i=n.current;if(i)return pl(i)},[]),y.jsx(Tm,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),pZ=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu);return y.jsx(Tm,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),vZ=XX("MenuContent.ScrollLock"),Tm=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=na(kt,r),x=ra(r),w=UA(r),S=aZ(r),[E,P]=f.useState(null),O=f.useRef(null),C=re(t,O,h.onContentChange),N=f.useRef(0),$=f.useRef(""),I=f.useRef(0),_=f.useRef(null),j=f.useRef("right"),R=f.useRef(0),V=g?Ei:f.Fragment,F=g?{as:vZ,allowPinchZoom:!0}:void 0,W=k=>{const G=$.current+k,ee=S().filter(K=>!K.disabled),ne=document.activeElement,ie=ee.find(K=>K.ref.current===ne)?.textValue,oe=ee.map(K=>K.textValue),le=CZ(oe,G,ie),Oe=ee.find(K=>K.textValue===le)?.ref.current;(function K(ue){$.current=ue,window.clearTimeout(N.current),ue!==""&&(N.current=window.setTimeout(()=>K(""),1e3))})(G),Oe&&setTimeout(()=>Oe.focus())};f.useEffect(()=>()=>window.clearTimeout(N.current),[]),dl();const T=f.useCallback(k=>j.current===_.current?.side&&_Z(k,_.current?.area),[]);return y.jsx(dZ,{scope:r,searchRef:$,onItemEnter:f.useCallback(k=>{T(k)&&k.preventDefault()},[T]),onItemLeave:f.useCallback(k=>{T(k)||(O.current?.focus(),P(null))},[T]),onTriggerLeave:f.useCallback(k=>{T(k)&&k.preventDefault()},[T]),pointerGraceTimerRef:I,onPointerGraceIntentChange:f.useCallback(k=>{_.current=k},[]),children:y.jsx(V,{...F,children:y.jsx(Pi,{asChild:!0,trapped:o,onMountAutoFocus:U(i,k=>{k.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:y.jsx(Ln,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,onDismiss:v,children:y.jsx(VA,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:P,onEntryFocus:U(l,k=>{b.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(vc,{role:"menu","aria-orientation":"vertical","data-state":p_(h.open),"data-radix-menu-content":"",dir:b.dir,...x,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:U(m.onKeyDown,k=>{const ee=k.target.closest("[data-radix-menu-content]")===k.currentTarget,ne=k.ctrlKey||k.altKey||k.metaKey,ie=k.key.length===1;ee&&(k.key==="Tab"&&k.preventDefault(),!ne&&ie&&W(k.key));const oe=O.current;if(k.target!==oe||!nZ.includes(k.key))return;k.preventDefault();const Oe=S().filter(K=>!K.disabled).map(K=>K.ref.current);KA.includes(k.key)&&Oe.reverse(),EZ(Oe)}),onBlur:U(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(N.current),$.current="")}),onPointerMove:U(e.onPointerMove,bi(k=>{const G=k.target,ee=R.current!==k.clientX;if(k.currentTarget.contains(G)&&ee){const ne=k.clientX>R.current?"right":"left";j.current=ne,R.current=k.clientX}}))})})})})})})});XA.displayName=kt;var mZ="MenuGroup",jm=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"group",...n,ref:t})});jm.displayName=mZ;var hZ="MenuLabel",ZA=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});ZA.displayName=hZ;var rl="MenuItem",Fw="menu.itemSelect",yc=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=f.useRef(null),a=na(rl,e.__scopeMenu),s=_m(rl,e.__scopeMenu),l=re(t,i),c=f.useRef(!1),u=()=>{const d=i.current;if(!r&&d){const p=new CustomEvent(Fw,{bubbles:!0,cancelable:!0});d.addEventListener(Fw,v=>n?.(v),{once:!0}),Jf(d,p),p.defaultPrevented?c.current=!1:a.onClose()}};return y.jsx(JA,{...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===" "||$f.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});yc.displayName=rl;var JA=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,a=_m(rl,r),s=UA(r),l=f.useRef(null),c=re(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(yi.ItemSlot,{scope:r,disabled:n,textValue:o??p,children:y.jsx(WA,{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,bi(g=>{n?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:U(e.onPointerLeave,bi(g=>a.onItemLeave(g))),onFocus:U(e.onFocus,()=>d(!0)),onBlur:U(e.onBlur,()=>d(!1))})})})}),gZ="MenuCheckboxItem",QA=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return y.jsx(o_,{scope:e.__scopeMenu,checked:r,children:y.jsx(yc,{role:"menuitemcheckbox","aria-checked":nl(r)?"mixed":r,...o,ref:t,"data-state":Im(r),onSelect:U(o.onSelect,()=>n?.(nl(r)?!0:!r),{checkForDefaultPrevented:!1})})})});QA.displayName=gZ;var e_="MenuRadioGroup",[yZ,bZ]=Hn(e_,{value:void 0,onValueChange:()=>{}}),t_=f.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=st(n);return y.jsx(yZ,{scope:e.__scopeMenu,value:r,onValueChange:i,children:y.jsx(jm,{...o,ref:t})})});t_.displayName=e_;var r_="MenuRadioItem",n_=f.forwardRef((e,t)=>{const{value:r,...n}=e,o=bZ(r_,e.__scopeMenu),i=r===o.value;return y.jsx(o_,{scope:e.__scopeMenu,checked:i,children:y.jsx(yc,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":Im(i),onSelect:U(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});n_.displayName=r_;var Nm="MenuItemIndicator",[o_,xZ]=Hn(Nm,{checked:!1}),i_=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=xZ(Nm,r);return y.jsx(lt,{present:n||nl(i.checked)||i.checked===!0,children:y.jsx(Q.span,{...o,ref:t,"data-state":Im(i.checked)})})});i_.displayName=Nm;var wZ="MenuSeparator",a_=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});a_.displayName=wZ;var SZ="MenuArrow",s_=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=ra(r);return y.jsx(mc,{...o,...n,ref:t})});s_.displayName=SZ;var Mm="MenuSub",[PZ,l_]=Hn(Mm),c_=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=nn(Mm,t),a=ra(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(Ji,{...a,children:y.jsx(HA,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:y.jsx(PZ,{scope:t,contentId:vt(),triggerId:vt(),trigger:s,onTriggerChange:l,children:r})})})};c_.displayName=Mm;var Jo="MenuSubTrigger",u_=f.forwardRef((e,t)=>{const r=nn(Jo,e.__scopeMenu),n=na(Jo,e.__scopeMenu),o=l_(Jo,e.__scopeMenu),i=_m(Jo,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(Cm,{asChild:!0,...c,children:y.jsx(JA,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":p_(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,bi(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,bi(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===" "||oZ[n.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});u_.displayName=Jo;var d_="MenuSubContent",f_=f.forwardRef((e,t)=>{const r=qA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=na(kt,e.__scopeMenu),s=l_(d_,e.__scopeMenu),l=f.useRef(null),c=re(t,l);return y.jsx(yi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(yi.Slot,{scope:e.__scopeMenu,children:y.jsx(Tm,{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=iZ[a.dir].includes(u.key);d&&p&&(i.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});f_.displayName=d_;function p_(e){return e?"open":"closed"}function nl(e){return e==="indeterminate"}function Im(e){return nl(e)?"indeterminate":e?"checked":"unchecked"}function EZ(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function OZ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function CZ(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=OZ(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 AZ(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 _Z(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return AZ(r,t)}function bi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var v_=GA,m_=Cm,h_=YA,g_=XA,y_=jm,b_=ZA,x_=yc,w_=QA,S_=t_,P_=n_,E_=i_,O_=a_,C_=s_,A_=c_,__=u_,T_=f_,km="ContextMenu",[TZ]=Be(km,[gc]),ut=gc(),[jZ,j_]=TZ(km),N_=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(jZ,{scope:t,open:a,onOpenChange:u,modal:i,children:y.jsx(v_,{...l,dir:o,open:a,onOpenChange:u,modal:i,children:r})})};N_.displayName=km;var M_="ContextMenuTrigger",I_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...o}=e,i=j_(M_,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(m_,{...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,Fa(p=>{u(),c.current=window.setTimeout(()=>d(p),700)})),onPointerMove:n?e.onPointerMove:U(e.onPointerMove,Fa(u)),onPointerCancel:n?e.onPointerCancel:U(e.onPointerCancel,Fa(u)),onPointerUp:n?e.onPointerUp:U(e.onPointerUp,Fa(u))})]})});I_.displayName=M_;var NZ="ContextMenuPortal",k_=e=>{const{__scopeContextMenu:t,...r}=e,n=ut(t);return y.jsx(h_,{...n,...r})};k_.displayName=NZ;var R_="ContextMenuContent",D_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=j_(R_,r),i=ut(r),a=f.useRef(!1);return y.jsx(g_,{...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)"}})});D_.displayName=R_;var MZ="ContextMenuGroup",$_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(y_,{...o,...n,ref:t})});$_.displayName=MZ;var IZ="ContextMenuLabel",L_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(b_,{...o,...n,ref:t})});L_.displayName=IZ;var kZ="ContextMenuItem",z_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(x_,{...o,...n,ref:t})});z_.displayName=kZ;var RZ="ContextMenuCheckboxItem",F_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(w_,{...o,...n,ref:t})});F_.displayName=RZ;var DZ="ContextMenuRadioGroup",B_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(S_,{...o,...n,ref:t})});B_.displayName=DZ;var $Z="ContextMenuRadioItem",V_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(P_,{...o,...n,ref:t})});V_.displayName=$Z;var LZ="ContextMenuItemIndicator",W_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(E_,{...o,...n,ref:t})});W_.displayName=LZ;var zZ="ContextMenuSeparator",K_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(O_,{...o,...n,ref:t})});K_.displayName=zZ;var FZ="ContextMenuArrow",BZ=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(C_,{...o,...n,ref:t})});BZ.displayName=FZ;var U_="ContextMenuSub",H_=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:o,defaultOpen:i}=e,a=ut(t),[s,l]=nt({prop:o,defaultProp:i??!1,onChange:n,caller:U_});return y.jsx(A_,{...a,open:s,onOpenChange:l,children:r})};H_.displayName=U_;var VZ="ContextMenuSubTrigger",G_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(__,{...o,...n,ref:t})});G_.displayName=VZ;var WZ="ContextMenuSubContent",q_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(T_,{...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)"}})});q_.displayName=WZ;function Fa(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var KZ=N_,UZ=I_,HZ=k_,GZ=D_,qZ=$_,YZ=L_,XZ=z_,ZZ=F_,JZ=B_,QZ=V_,Y_=W_,eJ=K_,tJ=H_,rJ=G_,nJ=q_;const oJ=KZ,iJ=UZ,aJ=qZ,X_=HZ,sJ=tJ,lJ=JZ,Z_=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(rJ,{ref:o,className:D("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"})})]}));Z_.displayName="ContextMenuSubTrigger";const J_=f.forwardRef(({className:e,...t},r)=>y.jsx(nJ,{ref:r,className:D("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}));J_.displayName="ContextMenuSubContent";const Q_=f.forwardRef(({className:e,...t},r)=>y.jsx(X_,{children:y.jsx(GZ,{ref:r,className:D("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})}));Q_.displayName="ContextMenuContent";const eT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(XZ,{ref:n,className:D("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}));eT.displayName="ContextMenuItem";const tT=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(ZZ,{ref:o,className:D("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(Y_,{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]}));tT.displayName="ContextMenuCheckboxItem";const rT=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(QZ,{ref:n,className:D("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(Y_,{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]}));rT.displayName="ContextMenuRadioItem";const nT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(YZ,{ref:n,className:D("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));nT.displayName="ContextMenuLabel";const oT=f.forwardRef(({className:e,...t},r)=>y.jsx(eJ,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));oT.displayName="ContextMenuSeparator";const iT=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:D("text-small text-tertiary ml-auto tracking-widest",e),...t}));iT.displayName="ContextMenuShortcut";function cJ(e){const t=uJ(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(fJ);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 uJ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=vJ(o),s=pJ(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 dJ=Symbol("radix.slottable");function fJ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dJ}function pJ(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 vJ(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 bc="Popover",[aT]=Be(bc,[rn]),oa=rn(),[mJ,on]=aT(bc),sT=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=oa(t),l=f.useRef(null),[c,u]=f.useState(!1),[d,p]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:bc});return y.jsx(Ji,{...s,children:y.jsx(mJ,{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})})};sT.displayName=bc;var lT="PopoverAnchor",hJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(lT,r),i=oa(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(a(),()=>s()),[a,s]),y.jsx(Qi,{...i,...n,ref:t})});hJ.displayName=lT;var cT="PopoverTrigger",uT=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(cT,r),i=oa(r),a=re(t,o.triggerRef),s=y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":mT(o.open),...n,ref:a,onClick:U(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:y.jsx(Qi,{asChild:!0,...i,children:s})});uT.displayName=cT;var Rm="PopoverPortal",[gJ,yJ]=aT(Rm,{forceMount:void 0}),dT=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=on(Rm,t);return y.jsx(gJ,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(zn,{asChild:!0,container:o,children:n})})})};dT.displayName=Rm;var yo="PopoverContent",fT=f.forwardRef((e,t)=>{const r=yJ(yo,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=on(yo,e.__scopePopover);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(xJ,{...o,ref:t}):y.jsx(wJ,{...o,ref:t})})});fT.displayName=yo;var bJ=cJ("PopoverContent.RemoveScroll"),xJ=f.forwardRef((e,t)=>{const r=on(yo,e.__scopePopover),n=f.useRef(null),o=re(t,n),i=f.useRef(!1);return f.useEffect(()=>{const a=n.current;if(a)return pl(a)},[]),y.jsx(Ei,{as:bJ,allowPinchZoom:!0,children:y.jsx(pT,{...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})})})}),wJ=f.forwardRef((e,t)=>{const r=on(yo,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(pT,{...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()}})}),pT=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(yo,r),v=oa(r);return dl(),y.jsx(Pi,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx(Ln,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:y.jsx(vc,{"data-state":mT(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)"}})})})}),vT="PopoverClose",SJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(vT,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});SJ.displayName=vT;var PJ="PopoverArrow",EJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=oa(r);return y.jsx(mc,{...o,...n,ref:t})});EJ.displayName=PJ;function mT(e){return e?"open":"closed"}var hT=sT,gT=uT,yT=dT,bT=fT;const OJ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Bw=["January","February","March","April","May","June","July","August","September","October","November","December"];function Vw(e,t){return new Date(e,t+1,0).getDate()}function CJ(e,t){return new Date(e,t,1).getDay()}function xT(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function AJ(e){return xT(new Date,e)}function Ww(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 wT=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"}}),ST=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"}}),PT=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(),S=Vw(x,w),E=CJ(x,w),P=f.useMemo(()=>{const _=[],j=w===0?11:w-1,R=w===0?x-1:x,V=Vw(R,j);for(let k=E-1;k>=0;k--)_.push({date:new Date(R,j,V-k),isOutside:!0});for(let k=1;k<=S;k++)_.push({date:new Date(x,w,k),isOutside:!1});const F=42-_.length,W=w===11?0:w+1,T=w===11?x+1:x;for(let k=1;k<=F;k++)_.push({date:new Date(T,W,k),isOutside:!0});return _},[x,w,S,E]),O=()=>{b(new Date(x,w-1,1))},C=()=>{b(new Date(x,w+1,1))},N=_=>{t?.(_),m(!1)},$=_=>!!(o&&_<new Date(o.setHours(0,0,0,0))||i&&_>new Date(i.setHours(23,59,59,999))),I=(_,j)=>$(_)?"disabled":j?"outside":e&&xT(e,_)?"selected":AJ(_)?"today":"default";return f.useEffect(()=>{e&&b(e)},[e]),y.jsxs(hT,{open:g,onOpenChange:m,children:[y.jsx(gT,{asChild:!0,children:y.jsxs("button",{ref:v,id:c,type:"button",disabled:a,className:D(wT({variant:s}),l),"aria-label":d||"Choose date","aria-describedby":p,"aria-haspopup":"dialog","aria-expanded":g,children:[y.jsx("span",{className:D("truncate",!e&&"text-tertiary"),children:e?Ww(e,n):r}),y.jsx(v0,{className:"text-tertiary h-4 w-4 shrink-0"}),u&&y.jsx("input",{type:"hidden",name:u,value:e?Ww(e,"yyyy-MM-dd"):""})]})}),y.jsx(yT,{children:y.jsxs(bT,{className:D("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:O,className:D("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(cl,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Bw[w]," ",x]}),y.jsx("button",{type:"button",onClick:C,className:D("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(ul,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:OJ.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":`${Bw[w]} ${x}`,children:P.map(({date:_,isOutside:j},R)=>{const V=I(_,j),F=V==="disabled";return y.jsx("button",{type:"button",onClick:()=>!F&&N(_),disabled:F,className:ST({state:V}),"aria-label":_.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":V==="selected",tabIndex:j?-1:0,children:_.getDate()},R)})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsx("button",{type:"button",onClick:()=>N(new Date),className:D("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"})})]})})]})});PT.displayName="DatePicker";const _J=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Kw=["January","February","March","April","May","June","July","August","September","October","November","December"];function Uw(e,t){return new Date(e,t+1,0).getDate()}function TJ(e,t){return new Date(e,t,1).getDay()}function ET(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function jJ(e){return ET(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 Hw(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 OT=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"}}),CT=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"}}),AT=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),[S,E]=f.useState(()=>e?`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`:"12:00"),P=x.getFullYear(),O=x.getMonth(),C=Uw(P,O),N=TJ(P,O),$=f.useMemo(()=>{const T=[],k=O===0?11:O-1,G=O===0?P-1:P,ee=Uw(G,k);for(let le=N-1;le>=0;le--)T.push({date:new Date(G,k,ee-le),isOutside:!0});for(let le=1;le<=C;le++)T.push({date:new Date(P,O,le),isOutside:!1});const ne=42-T.length,ie=O===11?0:O+1,oe=O===11?P+1:P;for(let le=1;le<=ne;le++)T.push({date:new Date(oe,ie,le),isOutside:!0});return T},[P,O,C,N]),I=()=>{w(new Date(P,O-1,1))},_=()=>{w(new Date(P,O+1,1))},j=T=>{const{hours:k,minutes:G}=Hw(S),ee=new Date(T.getFullYear(),T.getMonth(),T.getDate(),k,G);t?.(ee)},R=T=>{const k=T.target.value;if(E(k),e){const{hours:G,minutes:ee}=Hw(k),ne=new Date(e);ne.setHours(G,ee),t?.(ne)}},V=()=>{const T=new Date;E(`${String(T.getHours()).padStart(2,"0")}:${String(T.getMinutes()).padStart(2,"0")}`),t?.(T),b(!1)},F=T=>!!(o&&T<new Date(o.setHours(0,0,0,0))||i&&T>new Date(i.setHours(23,59,59,999))),W=(T,k)=>F(T)?"disabled":k?"outside":e&&ET(e,T)?"selected":jJ(T)?"today":"default";return f.useEffect(()=>{e&&(w(e),E(`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`))},[e]),y.jsxs(hT,{open:h,onOpenChange:b,children:[y.jsx(gT,{asChild:!0,children:y.jsxs("button",{ref:m,id:c,type:"button",disabled:a,className:D(OT({variant:s}),l),"aria-label":v||"Choose date and time","aria-describedby":g,"aria-haspopup":"dialog","aria-expanded":h,children:[y.jsx("span",{className:D("truncate",!e&&"text-tertiary"),children:e?NJ(e,n,d):r}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx($k,{className:"text-tertiary h-4 w-4 shrink-0"}),y.jsx(v0,{className:"text-tertiary h-4 w-4 shrink-0"})]}),u&&y.jsx("input",{type:"hidden",name:u,value:e?e.toISOString():""})]})}),y.jsx(yT,{children:y.jsxs(bT,{className:D("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:I,className:D("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(cl,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Kw[O]," ",P]}),y.jsx("button",{type:"button",onClick:_,className:D("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(ul,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:_J.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":`${Kw[O]} ${P}`,children:$.map(({date:T,isOutside:k},G)=>{const ee=W(T,k),ne=ee==="disabled";return y.jsx("button",{type:"button",onClick:()=>!ne&&j(T),disabled:ne,className:CT({state:ee}),"aria-label":T.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":ee==="selected",tabIndex:k?-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:S,onChange:R,step:p*60,className:D("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:D("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"})})]})})]})});AT.displayName="DateTimePicker";const _T=te("bg-border shrink-0",{variants:{orientation:{horizontal:"h-px w-full",vertical:"h-full w-px"}},defaultVariants:{orientation:"horizontal"}}),TT=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:D(_T({orientation:i,className:e})),...n})});TT.displayName="Divider";var xc="DropdownMenu",[MJ]=Be(xc,[gc]),dt=gc(),[IJ,jT]=MJ(xc),NT=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]=nt({prop:o,defaultProp:i??!1,onChange:a,caller:xc});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(v_,{...l,open:u,onOpenChange:d,dir:n,modal:s,children:r})})};NT.displayName=xc;var MT="DropdownMenuTrigger",IT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=jT(MT,r),a=dt(r);return y.jsx(m_,{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())})})})});IT.displayName=MT;var kJ="DropdownMenuPortal",kT=e=>{const{__scopeDropdownMenu:t,...r}=e,n=dt(t);return y.jsx(h_,{...n,...r})};kT.displayName=kJ;var RT="DropdownMenuContent",DT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=jT(RT,r),i=dt(r),a=f.useRef(!1);return y.jsx(g_,{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)"}})});DT.displayName=RT;var RJ="DropdownMenuGroup",$T=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(y_,{...o,...n,ref:t})});$T.displayName=RJ;var DJ="DropdownMenuLabel",LT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(b_,{...o,...n,ref:t})});LT.displayName=DJ;var $J="DropdownMenuItem",zT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(x_,{...o,...n,ref:t})});zT.displayName=$J;var LJ="DropdownMenuCheckboxItem",FT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(w_,{...o,...n,ref:t})});FT.displayName=LJ;var zJ="DropdownMenuRadioGroup",BT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(S_,{...o,...n,ref:t})});BT.displayName=zJ;var FJ="DropdownMenuRadioItem",VT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(P_,{...o,...n,ref:t})});VT.displayName=FJ;var BJ="DropdownMenuItemIndicator",WT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(E_,{...o,...n,ref:t})});WT.displayName=BJ;var VJ="DropdownMenuSeparator",KT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(O_,{...o,...n,ref:t})});KT.displayName=VJ;var WJ="DropdownMenuArrow",KJ=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(C_,{...o,...n,ref:t})});KJ.displayName=WJ;var UJ=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=dt(t),[s,l]=nt({prop:n,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return y.jsx(A_,{...a,open:s,onOpenChange:l,children:r})},HJ="DropdownMenuSubTrigger",UT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(__,{...o,...n,ref:t})});UT.displayName=HJ;var GJ="DropdownMenuSubContent",HT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(T_,{...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)"}})});HT.displayName=GJ;var qJ=NT,GT=IT,YJ=kT,XJ=DT,ZJ=$T,JJ=LT,QJ=zT,eQ=FT,tQ=BT,rQ=VT,qT=WT,nQ=KT,oQ=UJ,iQ=UT,aQ=HT;const sQ=qJ,lQ=GT,cQ=ZJ,YT=YJ,uQ=oQ,dQ=tQ,XT=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(iQ,{ref:o,className:D("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"})})]}));XT.displayName="DropdownMenuSubTrigger";const ZT=f.forwardRef(({className:e,...t},r)=>y.jsx(aQ,{ref:r,className:D("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}));ZT.displayName="DropdownMenuSubContent";const JT=f.forwardRef(({className:e,sideOffset:t=4,...r},n)=>y.jsx(YT,{children:y.jsx(XJ,{ref:n,sideOffset:t,className:D("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})}));JT.displayName="DropdownMenuContent";const QT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(QJ,{ref:n,className:D("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}));QT.displayName="DropdownMenuItem";const ej=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(eQ,{ref:o,className:D("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(qT,{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]}));ej.displayName="DropdownMenuCheckboxItem";const tj=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(rQ,{ref:n,className:D("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(qT,{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]}));tj.displayName="DropdownMenuRadioItem";const rj=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(JJ,{ref:n,className:D("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));rj.displayName="DropdownMenuLabel";const nj=f.forwardRef(({className:e,...t},r)=>y.jsx(nQ,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));nj.displayName="DropdownMenuSeparator";const oj=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:D("text-small text-tertiary ml-auto tracking-widest",e),...t}));oj.displayName="DropdownMenuShortcut";const ij=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(GT,{ref:n,className:D("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(m0,{className:o[t]}),y.jsx("span",{className:"sr-only",children:"Open menu"})]})});ij.displayName="ActionsMenuButton";const aj=te("inline-block",{variants:{size:{xs:"h-3",sm:"h-4",md:"h-5",lg:"h-6",xl:"h-8"}},defaultVariants:{size:"md"}});function fQ(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 sj=f.forwardRef(({className:e,size:t,compact:r,...n},o)=>{const i=fQ(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:D(aj({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"})]})]})})})});sj.displayName="EngrateLogo";const lj=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"}}),cj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"span";return y.jsx(a,{className:D(lj({variant:t,size:r,className:e})),ref:i,...o})});cj.displayName="Eyebrow";const uj=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"}}),dj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"footer";return y.jsx(a,{ref:i,className:D(uj({variant:t,size:r,className:e})),...o})});dj.displayName="Footer";const fj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-4",e),...r})});fj.displayName="FooterContent";const pj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex flex-col gap-3",e),...r})});pj.displayName="FooterSection";const vj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"h3";return y.jsx(o,{ref:n,className:D("text-small font-medium",e),...r})});vj.displayName="FooterHeading";const mj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"nav";return y.jsx(o,{ref:n,className:D("text-small text-secondary flex flex-col gap-2",e),...r})});mj.displayName="FooterLinks";const hj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("border-border mt-8 flex flex-col items-center justify-between gap-4 border-t pt-8 sm:flex-row",e),...r})});hj.displayName="FooterBottom";const gj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"p";return y.jsx(o,{ref:n,className:D("text-small text-secondary",e),...r})});gj.displayName="FooterCopyright";const Dm=f.forwardRef(({className:e,variant:t="default",children:r,...n},o)=>r?y.jsx("p",{ref:o,className:D("text-descriptive font-sans text-sm",t==="default"?"text-tertiary":"text-error",e),...n,children:r}):null);Dm.displayName="FormMessage";var pQ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vQ=pQ.reduce((e,t)=>{const r=MS(`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}},{}),mQ="Label",yj=f.forwardRef((e,t)=>y.jsx(vQ.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));yj.displayName=mQ;var hQ=yj;const bj=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"}}),$m=f.forwardRef(({className:e,size:t,...r},n)=>y.jsx(hQ,{ref:n,className:D(bj({size:t}),e),...r}));$m.displayName="Label";const xj=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:D("flex flex-col gap-1.5",e),...s,children:[t&&y.jsx($m,{htmlFor:i,size:r,children:t}),a,(n||o)&&y.jsx(Dm,{id:c,variant:o?"error":"default",role:o?"alert":void 0,children:o||n})]})});xj.displayName="FormField";const gQ=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"}}),yQ={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"},bQ={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},xQ={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},wQ={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"};function bn(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 wj=f.forwardRef(({className:e,cols:t,gap:r,align:n,justify:o,as:i="div",asChild:a=!1,...s},l)=>{const c=a?Ee:i,u=bn(t,yQ,1),d=bn(r,bQ,"md"),p=bn(n,xQ,"stretch"),v=bn(o,wQ,"stretch");return y.jsx(c,{className:D("grid",u,d,p,v,e),ref:l,...s})});wj.displayName="Grid";const SQ=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:{}}),PQ={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"},EQ={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"},OQ={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"},Sj=f.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:n,as:o="div",asChild:i=!1,...a},s)=>{const l=i?Ee:o,c=bn(t,PQ),u=bn(r,EQ),d=bn(n,OQ);return y.jsx(l,{className:D(c,u,d,e),ref:s,...a})});Sj.displayName="GridItem";const Pj=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}}),Ej=f.forwardRef(({className:e,variant:t,size:r,sticky:n,asChild:o=!1,...i},a)=>{const s=o?Ee:"header";return y.jsx(s,{ref:a,className:D(Pj({variant:t,size:r,sticky:n,className:e})),...i})});Ej.displayName="Header";const Oj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex shrink-0 items-center",e),...r})});Oj.displayName="HeaderLogo";const Cj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"nav";return y.jsx(o,{ref:n,className:D("flex items-center gap-6",e),...r})});Cj.displayName="HeaderNav";const Aj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex shrink-0 items-center gap-3",e),...r})});Aj.displayName="HeaderActions";const _j=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"}}),CQ={hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4"},Tj=f.forwardRef(({className:e,level:t="h1",as:r,asChild:n=!1,...o},i)=>{const a=r??CQ[t??"h1"],s=n?Ee:a;return y.jsx(s,{className:D(_j({level:t,className:e})),ref:i,...o})});Tj.displayName="Heading";const jj=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"}}),Nj=f.forwardRef(({className:e,variant:t,type:r="text",...n},o)=>y.jsx("input",{type:r,className:D(jj({variant:t}),e),ref:o,...n}));Nj.displayName="Input";const Mj=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Ba=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],Ij=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:Ba[x%Ba.length]})):[]},[r,n]);return y.jsx("div",{ref:v,className:D(Mj({size:t,className:e})),role:"img",...p,children:y.jsx(Np,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(rY,{data:r,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(um,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),y.jsx(qs,{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(Ys,{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(Yv,{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($l,{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(NC,{type:u?"monotone":"linear",dataKey:m.key,name:m.name,stroke:m.color||Ba[h%Ba.length],strokeWidth:c,dot:d,activeDot:d?{r:6}:!1},m.key))]})})})});Ij.displayName="LineChart";const kj=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"}}),Rj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"a";return y.jsx(a,{className:D(kj({variant:t,size:r,className:e})),ref:i,...o})});Rj.displayName="Link";const AQ=dS,_Q=fS,Dj=pS,TQ=ml,Lm=f.forwardRef(({className:e,...t},r)=>y.jsx(vS,{ref:r,className:D("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}));Lm.displayName="ModalOverlay";const $j=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"}}),Lj=f.forwardRef(({className:e,children:t,size:r,showCloseButton:n=!0,...o},i)=>y.jsxs(Dj,{children:[y.jsx(Lm,{}),y.jsxs(mS,{ref:i,className:D($j({size:r}),e),...o,children:[t,n&&y.jsxs(ml,{className:D("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(h0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Lj.displayName="ModalContent";const zj=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}));zj.displayName="ModalHeader";const Fj=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));Fj.displayName="ModalFooter";const Bj=f.forwardRef(({className:e,...t},r)=>y.jsx(hS,{ref:r,className:D("text-primary text-lg leading-none tracking-tight",e),...t}));Bj.displayName="ModalTitle";const Vj=f.forwardRef(({className:e,...t},r)=>y.jsx(gS,{ref:r,className:D("text-secondary text-sm",e),...t}));Vj.displayName="ModalDescription";const Wj=te("flex items-center justify-center gap-1 font-sans",{variants:{size:{sm:"text-small",default:"text-body",lg:"text-lead"}},defaultVariants:{size:"default"}}),Kj=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"}}),Uj=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:D(Wj({size:t,className:e})),...a,children:[y.jsx(no,{size:t,onClick:()=>c(r-1),disabled:r===1,"aria-label":"Go to previous page",children:y.jsx(cl,{className:"h-4 w-4"})}),l.map(u=>typeof u=="string"?y.jsx(no,{size:t,variant:"ellipsis",disabled:!0,"aria-hidden":!0,children:y.jsx(m0,{className:"h-4 w-4"})},u):y.jsx(no,{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(no,{size:t,onClick:()=>c(r+1),disabled:r===n,"aria-label":"Go to next page",children:y.jsx(ul,{className:"h-4 w-4"})})]})});Uj.displayName="Pagination";const no=f.forwardRef(({className:e,variant:t,size:r,...n},o)=>y.jsx("button",{ref:o,type:"button",className:D(Kj({variant:t,size:r,className:e})),...n}));no.displayName="PaginationItem";const Hj=f.createContext(null);function jQ(){const e=f.useContext(Hj);if(!e)throw new Error("PaginationDot must be used within a PaginationDots component");return e}const Gj=te("inline-flex items-center justify-center font-sans",{variants:{size:{sm:"gap-1.5",default:"gap-2",lg:"gap-2.5"}},defaultVariants:{size:"default"}}),qj=f.forwardRef(({className:e,value:t,onValueChange:r,size:n="default",children:o,...i},a)=>y.jsx(Hj.Provider,{value:{value:t,onValueChange:r,size:n??"default"},children:y.jsx("div",{ref:a,role:"group","aria-label":"Content navigation",className:D(Gj({size:n}),e),...i,children:o})}));qj.displayName="PaginationDots";const Yj=te("focus-visible:ring-sunflower rounded-full transition-all duration-300 ease-out focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{size:{sm:"h-1.5",default:"h-2",lg:"h-2.5"},active:{true:"bg-sunflower",false:"bg-border hover:bg-quaternary"}},compoundVariants:[{size:"sm",active:!1,class:"w-1.5"},{size:"default",active:!1,class:"w-2"},{size:"lg",active:!1,class:"w-2.5"},{size:"sm",active:!0,class:"w-4"},{size:"default",active:!0,class:"w-6"},{size:"lg",active:!0,class:"w-8"}],defaultVariants:{size:"default",active:!1}}),Xj=f.forwardRef(({className:e,index:t,...r},n)=>{const{value:o,onValueChange:i,size:a}=jQ(),s=t===o;return y.jsx("button",{ref:n,type:"button","aria-label":`Go to slide ${t+1}`,"aria-current":s?"true":void 0,onClick:()=>i?.(t),className:D(Yj({size:a,active:s}),e),...r})});Xj.displayName="PaginationDot";const Zj=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Gw=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],Jj=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,S=m.innerRadius??0,E=m.outerRadius??0,P=Math.PI/180,O=S+(E-S)*.5,C=h+O*Math.cos(-x*P),N=b+O*Math.sin(-x*P);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:D(Zj({size:t,className:e})),role:"img",...d,children:y.jsx(Np,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(hY,{children:[o&&y.jsx(Yv,{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($l,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),y.jsx(vC,{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(Gi,{fill:m.color||Gw[h%Gw.length]},`cell-${m.name}-${h}`))})]})})})});Jj.displayName="PieChart";const Qj=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"}}),eN=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}}),tN=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:D(Qj({size:n,className:e})),...l,children:y.jsx("div",{className:D(eN({variant:o,animated:i}),s&&"animate-progress-indeterminate"),style:{width:s?"50%":`${u}%`}})})});tN.displayName="ProgressIndicator";var zm="Radio",[NQ,rN]=Be(zm),[MQ,IQ]=NQ(zm),nN=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=re(t,h=>p(h)),g=f.useRef(!1),m=d?c||!!d.closest("form"):!0;return y.jsxs(MQ,{scope:r,checked:o,disabled:a,children:[y.jsx(Q.button,{type:"button",role:"radio","aria-checked":o,"data-state":sN(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(aN,{control:d,bubbles:!g.current,name:n,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});nN.displayName=zm;var oN="RadioIndicator",iN=f.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=IQ(oN,r);return y.jsx(lt,{present:n||i.checked,children:y.jsx(Q.span,{"data-state":sN(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});iN.displayName=oN;var kQ="RadioBubbleInput",aN=f.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=re(a,i),l=Yi(r),c=Xi(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}})});aN.displayName=kQ;function sN(e){return e?"checked":"unchecked"}var RQ=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],wc="RadioGroup",[DQ]=Be(wc,[hc,rN]),lN=hc(),cN=rN(),[$Q,LQ]=DQ(wc),uN=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=lN(r),g=wo(c),[m,h]=nt({prop:i,defaultProp:o??null,onChange:d,caller:wc});return y.jsx($Q,{scope:r,name:n,required:a,disabled:s,value:m,onValueChange:h,children:y.jsx(VA,{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})})})});uN.displayName=wc;var dN="RadioGroupItem",fN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=LQ(dN,r),a=i.disabled||n,s=lN(r),l=cN(r),c=f.useRef(null),u=re(t,c),d=i.value===o.value,p=f.useRef(!1);return f.useEffect(()=>{const v=m=>{RQ.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(WA,{asChild:!0,...s,focusable:!a,active:d,children:y.jsx(nN,{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()})})})});fN.displayName=dN;var zQ="RadioGroupIndicator",pN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=cN(r);return y.jsx(iN,{...o,...n,ref:t})});pN.displayName=zQ;var FQ=uN,BQ=fN,VQ=pN;const vN=f.forwardRef(({className:e,...t},r)=>y.jsx(FQ,{className:D("grid gap-2",e),...t,ref:r}));vN.displayName="RadioGroup";const mN=f.forwardRef(({className:e,...t},r)=>y.jsx(BQ,{ref:r,className:D("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(VQ,{className:"flex items-center justify-center",children:y.jsx("span",{className:"bg-sunflower h-2.5 w-2.5 rounded-full"})})}));mN.displayName="RadioGroupItem";function ol(e,[t,r]){return Math.min(r,Math.max(t,e))}function WQ(e){const t=KQ(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 KQ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=qQ(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 UQ=Symbol("radix.slottable");function HQ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===UQ}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 qQ(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 hN=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"}),YQ="VisuallyHidden",Sc=f.forwardRef((e,t)=>y.jsx(Q.span,{...e,ref:t,style:{...hN,...e.style}}));Sc.displayName=YQ;var XQ=Sc,ZQ=[" ","Enter","ArrowUp","ArrowDown"],JQ=[" ","Enter"],Rn="Select",[Pc,Ec,QQ]=xo(Rn),[Do]=Be(Rn,[QQ,rn]),Oc=rn(),[eee,an]=Do(Rn),[tee,ree]=Do(Rn),gN=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=Oc(t),[h,b]=f.useState(null),[x,w]=f.useState(null),[S,E]=f.useState(!1),P=wo(c),[O,C]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:Rn}),[N,$]=nt({prop:a,defaultProp:s,onChange:l,caller:Rn}),I=f.useRef(null),_=h?g||!!h.closest("form"):!0,[j,R]=f.useState(new Set),V=Array.from(j).map(F=>F.props.value).join(";");return y.jsx(Ji,{...m,children:y.jsxs(eee,{required:v,scope:t,trigger:h,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:vt(),value:N,onValueChange:$,open:O,onOpenChange:C,dir:P,triggerPointerDownPosRef:I,disabled:p,children:[y.jsx(Pc.Provider,{scope:t,children:y.jsx(tee,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(F=>{R(W=>new Set(W).add(F))},[]),onNativeOptionRemove:f.useCallback(F=>{R(W=>{const T=new Set(W);return T.delete(F),T})},[]),children:r})}),_?y.jsxs(VN,{"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:d,value:N,onChange:F=>$(F.target.value),disabled:p,form:g,children:[N===void 0?y.jsx("option",{value:""}):null,Array.from(j)]},V):null]})})};gN.displayName=Rn;var yN="SelectTrigger",bN=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Oc(r),a=an(yN,r),s=a.disabled||n,l=re(t,a.onTriggerChange),c=Ec(r),u=f.useRef("touch"),[d,p,v]=KN(m=>{const h=c().filter(w=>!w.disabled),b=h.find(w=>w.value===a.value),x=UN(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(Qi,{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":WN(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===" ")&&ZQ.includes(m.key)&&(g(),m.preventDefault())})})})});bN.displayName=yN;var xN="SelectValue",wN=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a="",...s}=e,l=an(xN,r),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=re(t,l.onValueNodeChange);return Ye(()=>{c(u)},[c,u]),y.jsx(Q.span,{...s,ref:d,style:{pointerEvents:"none"},children:WN(l.value)?y.jsx(y.Fragment,{children:a}):i})});wN.displayName=xN;var nee="SelectIcon",SN=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return y.jsx(Q.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});SN.displayName=nee;var oee="SelectPortal",PN=e=>y.jsx(zn,{asChild:!0,...e});PN.displayName=oee;var Dn="SelectContent",EN=f.forwardRef((e,t)=>{const r=an(Dn,e.__scopeSelect),[n,o]=f.useState();if(Ye(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?Si.createPortal(y.jsx(ON,{scope:e.__scopeSelect,children:y.jsx(Pc.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),i):null}return y.jsx(CN,{...e,ref:t})});EN.displayName=Dn;var zt=10,[ON,sn]=Do(Dn),iee="SelectContentImpl",aee=WQ("SelectContent.RemoveScroll"),CN=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(Dn,r),[w,S]=f.useState(null),[E,P]=f.useState(null),O=re(t,K=>S(K)),[C,N]=f.useState(null),[$,I]=f.useState(null),_=Ec(r),[j,R]=f.useState(!1),V=f.useRef(!1);f.useEffect(()=>{if(w)return pl(w)},[w]),dl();const F=f.useCallback(K=>{const[ue,...L]=_().map(z=>z.ref.current),[H]=L.slice(-1),B=document.activeElement;for(const z of K)if(z===B||(z?.scrollIntoView({block:"nearest"}),z===ue&&E&&(E.scrollTop=0),z===H&&E&&(E.scrollTop=E.scrollHeight),z?.focus(),document.activeElement!==B))return},[_,E]),W=f.useCallback(()=>F([C,w]),[F,C,w]);f.useEffect(()=>{j&&W()},[j,W]);const{onOpenChange:T,triggerPointerDownPosRef:k}=x;f.useEffect(()=>{if(w){let K={x:0,y:0};const ue=H=>{K={x:Math.abs(Math.round(H.pageX)-(k.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(k.current?.y??0))}},L=H=>{K.x<=10&&K.y<=10?H.preventDefault():w.contains(H.target)||T(!1),document.removeEventListener("pointermove",ue),k.current=null};return k.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,k]),f.useEffect(()=>{const K=()=>T(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[T]);const[G,ee]=KN(K=>{const ue=_().filter(B=>!B.disabled),L=ue.find(B=>B.ref.current===document.activeElement),H=UN(ue,K,L);H&&setTimeout(()=>H.ref.current.focus())}),ne=f.useCallback((K,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&(N(K),H&&(V.current=!0))},[x.value]),ie=f.useCallback(()=>w?.focus(),[w]),oe=f.useCallback((K,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&I(K)},[x.value]),le=n==="popper"?Lf:AN,Oe=le===Lf?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:h}:{};return y.jsx(ON,{scope:r,content:w,viewport:E,onViewportChange:P,itemRefCallback:ne,selectedItem:C,onItemLeave:ie,itemTextRefCallback:oe,focusSelectedItem:W,selectedItemText:$,position:n,isPositioned:j,searchRef:G,children:y.jsx(Ei,{as:aee,allowPinchZoom:!0,children:y.jsx(Pi,{asChild:!0,trapped:x.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:U(o,K=>{x.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:y.jsx(Ln,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:y.jsx(le,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:K=>K.preventDefault(),...b,...Oe,onPlaced:()=>R(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:U(b.onKeyDown,K=>{const ue=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!ue&&K.key.length===1&&ee(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let H=_().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(K.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const B=K.target,z=H.indexOf(B);H=H.slice(z+1)}setTimeout(()=>F(H)),K.preventDefault()}})})})})})})});CN.displayName=iee;var see="SelectItemAlignedPosition",AN=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=an(Dn,r),a=sn(Dn,r),[s,l]=f.useState(null),[c,u]=f.useState(null),d=re(t,O=>u(O)),p=Ec(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 O=i.trigger.getBoundingClientRect(),C=c.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),$=b.getBoundingClientRect();if(i.dir!=="rtl"){const B=$.left-C.left,z=N.left-B,fe=O.left-z,se=O.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-zt,Lt=ol(z,[zt,Math.max(zt,et-Qe)]);s.style.minWidth=se+"px",s.style.left=Lt+"px"}else{const B=C.right-$.right,z=window.innerWidth-N.right-B,fe=window.innerWidth-O.right-z,se=O.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-zt,Lt=ol(z,[zt,Math.max(zt,et-Qe)]);s.style.minWidth=se+"px",s.style.right=Lt+"px"}const I=p(),_=window.innerHeight-zt*2,j=m.scrollHeight,R=window.getComputedStyle(c),V=parseInt(R.borderTopWidth,10),F=parseInt(R.paddingTop,10),W=parseInt(R.borderBottomWidth,10),T=parseInt(R.paddingBottom,10),k=V+F+j+T+W,G=Math.min(h.offsetHeight*5,k),ee=window.getComputedStyle(m),ne=parseInt(ee.paddingTop,10),ie=parseInt(ee.paddingBottom,10),oe=O.top+O.height/2-zt,le=_-oe,Oe=h.offsetHeight/2,K=h.offsetTop+Oe,ue=V+F+K,L=k-ue;if(ue<=oe){const B=I.length>0&&h===I[I.length-1].ref.current;s.style.bottom="0px";const z=c.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(le,Oe+(B?ie:0)+z+W),se=ue+fe;s.style.height=se+"px"}else{const B=I.length>0&&h===I[0].ref.current;s.style.top="0px";const fe=Math.max(oe,V+m.offsetTop+(B?ne:0)+Oe)+L;s.style.height=fe+"px",m.scrollTop=ue-oe+m.offsetTop}s.style.margin=`${zt}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]);Ye(()=>w(),[w]);const[S,E]=f.useState();Ye(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const P=f.useCallback(O=>{O&&g.current===!0&&(w(),x?.(),g.current=!1)},[w,x]);return y.jsx(cee,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:P,children:y.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:y.jsx(Q.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});AN.displayName=see;var lee="SelectPopperPosition",Lf=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=zt,...i}=e,a=Oc(r);return y.jsx(vc,{...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)"}})});Lf.displayName=lee;var[cee,Fm]=Do(Dn,{}),zf="SelectViewport",_N=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=sn(zf,r),a=Fm(zf,r),s=re(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(Pc.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-zt*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),S=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});_N.displayName=zf;var TN="SelectGroup",[uee,dee]=Do(TN),jN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=vt();return y.jsx(uee,{scope:r,id:o,children:y.jsx(Q.div,{role:"group","aria-labelledby":o,...n,ref:t})})});jN.displayName=TN;var NN="SelectLabel",MN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=dee(NN,r);return y.jsx(Q.div,{id:o.id,...n,ref:t})});MN.displayName=NN;var il="SelectItem",[fee,IN]=Do(il),kN=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=an(il,r),l=sn(il,r),c=s.value===n,[u,d]=f.useState(i??""),[p,v]=f.useState(!1),g=re(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(fee,{scope:r,value:n,disabled:o,textId:m,isSelected:c,onItemTextChange:f.useCallback(x=>{d(w=>w||(x?.textContent??"").trim())},[]),children:y.jsx(Pc.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===" "||(JQ.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});kN.displayName=il;var Qo="SelectItemText",RN=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=an(Qo,r),s=sn(Qo,r),l=IN(Qo,r),c=ree(Qo,r),[u,d]=f.useState(null),p=re(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 Ye(()=>(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?Si.createPortal(i.children,a.valueNode):null]})});RN.displayName=Qo;var DN="SelectItemIndicator",$N=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return IN(DN,r).isSelected?y.jsx(Q.span,{"aria-hidden":!0,...n,ref:t}):null});$N.displayName=DN;var Ff="SelectScrollUpButton",LN=f.forwardRef((e,t)=>{const r=sn(Ff,e.__scopeSelect),n=Fm(Ff,e.__scopeSelect),[o,i]=f.useState(!1),a=re(t,n.onScrollButtonChange);return Ye(()=>{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(FN,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});LN.displayName=Ff;var Bf="SelectScrollDownButton",zN=f.forwardRef((e,t)=>{const r=sn(Bf,e.__scopeSelect),n=Fm(Bf,e.__scopeSelect),[o,i]=f.useState(!1),a=re(t,n.onScrollButtonChange);return Ye(()=>{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(FN,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});zN.displayName=Bf;var FN=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=sn("SelectScrollButton",r),a=f.useRef(null),s=Ec(r),l=f.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),Ye(()=>{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()})})}),pee="SelectSeparator",BN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return y.jsx(Q.div,{"aria-hidden":!0,...n,ref:t})});BN.displayName=pee;var Vf="SelectArrow",vee=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Oc(r),i=an(Vf,r),a=sn(Vf,r);return i.open&&a.position==="popper"?y.jsx(mc,{...o,...n,ref:t}):null});vee.displayName=Vf;var mee="SelectBubbleInput",VN=f.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=f.useRef(null),i=re(n,o),a=Yi(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:{...hN,...r.style},ref:i,defaultValue:t})});VN.displayName=mee;function WN(e){return e===""||e===void 0}function KN(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 UN(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=hee(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 hee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var gee=gN,yee=bN,bee=wN,xee=SN,wee=PN,See=EN,Pee=_N,Eee=jN,Oee=MN,Cee=kN,Aee=RN,_ee=$N,Tee=LN,jee=zN,Nee=BN;const Mee=gee,Iee=Eee,kee=bee,HN=f.forwardRef(({className:e,children:t,variant:r="default",...n},o)=>y.jsxs(yee,{ref:o,className:D("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(xee,{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"})})})]}));HN.displayName="SelectTrigger";const Bm=f.forwardRef(({className:e,...t},r)=>y.jsx(Tee,{ref:r,className:D("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"})})}));Bm.displayName="SelectScrollUpButton";const Vm=f.forwardRef(({className:e,...t},r)=>y.jsx(jee,{ref:r,className:D("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"})})}));Vm.displayName="SelectScrollDownButton";const GN=f.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>y.jsx(wee,{children:y.jsxs(See,{ref:o,className:D("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(Bm,{}),y.jsx(Pee,{className:D("p-1",r==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),y.jsx(Vm,{})]})}));GN.displayName="SelectContent";const qN=f.forwardRef(({className:e,...t},r)=>y.jsx(Oee,{ref:r,className:D("text-small text-tertiary py-1.5 pr-2 pl-8 font-normal",e),...t}));qN.displayName="SelectLabel";const YN=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(Cee,{ref:n,className:D("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(_ee,{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(Aee,{children:t})]}));YN.displayName="SelectItem";const XN=f.forwardRef(({className:e,...t},r)=>y.jsx(Nee,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));XN.displayName="SelectSeparator";const ZN=f.createContext(null);function Cc(){const e=f.useContext(ZN);if(!e)throw new Error("Sidebar components must be used within a Sidebar");return e}const JN=te(["border-border bg-alt 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"}}),Ree={sm:{expanded:"w-52",collapsed:"w-14"},default:{expanded:"w-64",collapsed:"w-16"},lg:{expanded:"w-72",collapsed:"w-20"}},QN=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=S=>{m(S.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=Ree[r||"default"];return y.jsx(ZN.Provider,{value:h,children:y.jsx("aside",{ref:u,className:D(JN({variant:t}),g?b.collapsed:b.expanded,e),"data-collapsed":g,...c,children:l})})});QN.displayName="Sidebar";const eM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex items-center gap-2 px-4 pt-4 pb-2",e),...t}));eM.displayName="SidebarHeader";const tM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex-1 overflow-y-auto px-3 py-2",e),...t}));tM.displayName="SidebarContent";const rM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("border-border mt-auto border-t px-3 py-3",e),...t}));rM.displayName="SidebarFooter";const nM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("space-y-1 py-2",e),...t}));nM.displayName="SidebarGroup";const oM=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n}=Cc();return n?null:y.jsx("div",{ref:r,className:D("text-tertiary px-3 py-2 font-mono text-xs leading-5 font-normal tracking-[1.2px] uppercase",e),...t})});oM.displayName="SidebarGroupLabel";const Wf=te(["text-small relative flex w-full items-center gap-3 rounded-md px-3 py-2 font-sans font-normal","text-secondary hover:bg-vanilla hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"],{variants:{active:{true:"text-primary",false:""}},defaultVariants:{active:!1}}),iM=f.forwardRef(({className:e,active:t,icon:r,asChild:n=!1,children:o,...i},a)=>{const{collapsed:s}=Cc(),l=n?Ee:"button",c=t?y.jsx("span",{className:"bg-sunflower absolute top-1 bottom-1 left-0 w-[3px] rounded-full","aria-hidden":"true"}):null,u=y.jsxs(y.Fragment,{children:[c,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(Ee,{ref:a,className:D(Wf({active:t}),s&&"justify-center px-2",e),...i,children:f.isValidElement(o)?f.cloneElement(o,{children:y.jsxs(y.Fragment,{children:[c,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:D(Wf({active:t}),s&&"justify-center px-2",e),...i,children:u})});iM.displayName="SidebarItem";const aM=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n,setCollapsed:o,collapsible:i}=Cc();return i?y.jsx("button",{ref:r,type:"button",className:D("text-small flex w-full items-center rounded-md p-2 font-sans font-normal","text-secondary hover:bg-vanilla 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(ul,{className:"h-5 w-5"}):y.jsx(cl,{className:"h-5 w-5"})}):null});aM.displayName="SidebarTrigger";const sM=f.forwardRef(({className:e,...t},r)=>y.jsx("hr",{ref:r,className:D("border-border my-3 border-t",e),...t}));sM.displayName="SidebarSeparator";const lM=te("bg-contrast animate-pulse",{variants:{variant:{default:"rounded-md",circular:"rounded-full",text:"rounded"}},defaultVariants:{variant:"default"}}),cM=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:D(lM({variant:t,className:e})),style:s,...i})});cM.displayName="Skeleton";var uM=["PageUp","PageDown"],dM=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fM={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},$o="Slider",[Kf,Dee,$ee]=xo($o),[pM]=Be($o,[$ee]),[Lee,Ac]=pM($o),vM=f.forwardRef((e,t)=>{const{name:r,min:n=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[n],value:u,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:v=!1,form:g,...m}=e,h=f.useRef(new Set),b=f.useRef(0),w=a==="horizontal"?zee:Fee,[S=[],E]=nt({prop:u,defaultProp:c,onChange:I=>{[...h.current][b.current]?.focus(),d(I)}}),P=f.useRef(S);function O(I){const _=Uee(S,I);$(I,_)}function C(I){$(I,b.current)}function N(){const I=P.current[b.current];S[b.current]!==I&&p(S)}function $(I,_,{commit:j}={commit:!1}){const R=Yee(i),V=Xee(Math.round((I-n)/i)*i+n,R),F=ol(V,[n,o]);E((W=[])=>{const T=Wee(W,F,_);if(qee(T,l*i)){b.current=T.indexOf(F);const k=String(T)!==String(W);return k&&j&&p(T),k?T:W}else return W})}return y.jsx(Lee,{scope:e.__scopeSlider,name:r,disabled:s,min:n,max:o,valueIndexToChangeRef:b,thumbs:h.current,values:S,orientation:a,form:g,children:y.jsx(Kf.Provider,{scope:e.__scopeSlider,children:y.jsx(Kf.Slot,{scope:e.__scopeSlider,children:y.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:t,onPointerDown:U(m.onPointerDown,()=>{s||(P.current=S)}),min:n,max:o,inverted:v,onSlideStart:s?void 0:O,onSlideMove:s?void 0:C,onSlideEnd:s?void 0:N,onHomeKeyDown:()=>!s&&$(n,0,{commit:!0}),onEndKeyDown:()=>!s&&$(o,S.length-1,{commit:!0}),onStepKeyDown:({event:I,direction:_})=>{if(!s){const V=uM.includes(I.key)||I.shiftKey&&dM.includes(I.key)?10:1,F=b.current,W=S[F],T=i*V*_;$(W+T,F,{commit:!0})}}})})})})});vM.displayName=$o;var[mM,hM]=pM($o,{startEdge:"left",endEdge:"right",size:"width",direction:1}),zee=f.forwardRef((e,t)=>{const{min:r,max:n,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,[d,p]=f.useState(null),v=re(t,w=>p(w)),g=f.useRef(void 0),m=wo(o),h=m==="ltr",b=h&&!i||!h&&i;function x(w){const S=g.current||d.getBoundingClientRect(),E=[0,S.width],O=Wm(E,b?[r,n]:[n,r]);return g.current=S,O(w-S.left)}return y.jsx(mM,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:y.jsx(gM,{dir:m,"data-orientation":"horizontal",...u,ref:v,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=x(w.clientX);a?.(S)},onSlideMove:w=>{const S=x(w.clientX);s?.(S)},onSlideEnd:()=>{g.current=void 0,l?.()},onStepKeyDown:w=>{const E=fM[b?"from-left":"from-right"].includes(w.key);c?.({event:w,direction:E?-1:1})}})})}),Fee=f.forwardRef((e,t)=>{const{min:r,max:n,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,u=f.useRef(null),d=re(t,u),p=f.useRef(void 0),v=!o;function g(m){const h=p.current||u.current.getBoundingClientRect(),b=[0,h.height],w=Wm(b,v?[n,r]:[r,n]);return p.current=h,w(m-h.top)}return y.jsx(mM,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:y.jsx(gM,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const h=g(m.clientY);i?.(h)},onSlideMove:m=>{const h=g(m.clientY);a?.(h)},onSlideEnd:()=>{p.current=void 0,s?.()},onStepKeyDown:m=>{const b=fM[v?"from-bottom":"from-top"].includes(m.key);l?.({event:m,direction:b?-1:1})}})})}),gM=f.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=Ac($o,r);return y.jsx(Q.span,{...c,ref:t,onKeyDown:U(e.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):uM.concat(dM).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:U(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(p)?p.focus():n(d)}),onPointerMove:U(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:U(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),i(d))})})}),yM="SliderTrack",bM=f.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=Ac(yM,r);return y.jsx(Q.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});bM.displayName=yM;var Uf="SliderRange",xM=f.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=Ac(Uf,r),i=hM(Uf,r),a=f.useRef(null),s=re(t,a),l=o.values.length,c=o.values.map(p=>PM(p,o.min,o.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return y.jsx(Q.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:s,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:d+"%"}})});xM.displayName=Uf;var Hf="SliderThumb",wM=f.forwardRef((e,t)=>{const r=Dee(e.__scopeSlider),[n,o]=f.useState(null),i=re(t,s=>o(s)),a=f.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return y.jsx(Bee,{...e,ref:i,index:a})}),Bee=f.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:o,...i}=e,a=Ac(Hf,r),s=hM(Hf,r),[l,c]=f.useState(null),u=re(t,x=>c(x)),d=l?a.form||!!l.closest("form"):!0,p=Xi(l),v=a.values[n],g=v===void 0?0:PM(v,a.min,a.max),m=Kee(n,a.values.length),h=p?.[s.size],b=h?Hee(h,g,s.direction):0;return f.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),y.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${b}px)`},children:[y.jsx(Kf.ItemSlot,{scope:e.__scopeSlider,children:y.jsx(Q.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":v,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:u,style:v===void 0?{display:"none"}:e.style,onFocus:U(e.onFocus,()=>{a.valueIndexToChangeRef.current=n})})}),d&&y.jsx(SM,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:v},n)]})});wM.displayName=Hf;var Vee="RadioBubbleInput",SM=f.forwardRef(({__scopeSlider:e,value:t,...r},n)=>{const o=f.useRef(null),i=re(o,n),a=Yi(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&u){const d=new Event("input",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[a,t]),y.jsx(Q.input,{style:{display:"none"},...r,ref:i,defaultValue:t})});SM.displayName=Vee;function Wee(e=[],t,r){const n=[...e];return n[r]=t,n.sort((o,i)=>o-i)}function PM(e,t,r){const i=100/(r-t)*(e-t);return ol(i,[0,100])}function Kee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Uee(e,t){if(e.length===1)return 0;const r=e.map(o=>Math.abs(o-t)),n=Math.min(...r);return r.indexOf(n)}function Hee(e,t,r){const n=e/2,i=Wm([0,50],[0,n]);return(n-i(t)*r)*r}function Gee(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function qee(e,t){if(t>0){const r=Gee(e);return Math.min(...r)>=t}return!0}function Wm(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Yee(e){return(String(e).split(".")[1]||"").length}function Xee(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var Zee=vM,Jee=bM,Qee=xM,ete=wM;const EM=te("relative flex w-full touch-none items-center select-none",{variants:{size:{sm:"[--slider-thumb-size:theme(spacing.3)] [--slider-track-height:theme(spacing.1)]",default:"[--slider-thumb-size:theme(spacing.4)] [--slider-track-height:theme(spacing.2)]",lg:"[--slider-thumb-size:theme(spacing.5)] [--slider-track-height:theme(spacing.3)]"}},defaultVariants:{size:"default"}}),OM=f.forwardRef(({className:e,size:t,defaultValue:r=[0],value:n,"aria-label":o,"aria-labelledby":i,...a},s)=>{const l=n?.length??r?.length??1;return y.jsxs(Zee,{ref:s,defaultValue:r,value:n,className:D(EM({size:t}),e),...a,children:[y.jsx(Jee,{className:D("bg-border relative h-[var(--slider-track-height)] w-full grow overflow-hidden rounded-full"),children:y.jsx(Qee,{className:"bg-sunflower absolute h-full"})}),Array.from({length:l}).map((c,u)=>y.jsx(ete,{"aria-label":o,"aria-labelledby":i,className:D("border-sunflower block h-[var(--slider-thumb-size)] w-[var(--slider-thumb-size)] rounded-full border-2 bg-white shadow-md transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","hover:border-sunflower-hover")},u))]})});OM.displayName="Slider";const CM=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"}}),AM=f.forwardRef(({className:e,variant:t,size:r,label:n="Loading",...o},i)=>y.jsx("span",{ref:i,role:"status","aria-label":n,className:D(CM({variant:t,size:r,className:e})),...o,children:y.jsx("span",{className:"sr-only",children:n})}));AM.displayName="Spinner";const _M=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?Ee:a;return y.jsx(u,{className:D(_M({direction:t,gap:r,align:n,justify:o,wrap:i,className:e})),ref:c,...l})});TM.displayName="Stack";var _c="Switch",[tte]=Be(_c),[rte,nte]=tte(_c),jM=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=re(t,w=>v(w)),m=f.useRef(!1),h=p?u||!!p.closest("form"):!0,[b,x]=nt({prop:o,defaultProp:i??!1,onChange:c,caller:_c});return y.jsxs(rte,{scope:r,checked:b,disabled:s,children:[y.jsx(Q.button,{type:"button",role:"switch","aria-checked":b,"aria-required":a,"data-state":kM(b),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:g,onClick:U(e.onClick,w=>{x(S=>!S),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%)"}})]})});jM.displayName=_c;var NM="SwitchThumb",MM=f.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=nte(NM,r);return y.jsx(Q.span,{"data-state":kM(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});MM.displayName=NM;var ote="SwitchBubbleInput",IM=f.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=re(a,i),l=Yi(r),c=Xi(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=ote;function kM(e){return e?"checked":"unchecked"}var ite=jM,ate=MM;const RM=f.forwardRef(({className:e,...t},r)=>y.jsx(ite,{className:D("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(ate,{className:D("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")})}));RM.displayName="Switch";const DM=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"}}),ste=te("border-border bg-alt border-b",{variants:{},defaultVariants:{}}),lte=te("",{variants:{},defaultVariants:{}}),cte=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"}}),ute=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"}}),dte=te("text-secondary align-middle [&:has([role=checkbox])]:pr-0",{variants:{size:{default:"p-4",compact:"p-2"}},defaultVariants:{size:"default"}}),Km=f.createContext({size:"default"}),$M=f.forwardRef(({className:e,variant:t,size:r="default",...n},o)=>y.jsx(Km.Provider,{value:{size:r??"default"},children:y.jsx("div",{className:"relative w-full overflow-auto",children:y.jsx("table",{ref:o,className:D(DM({variant:t,size:r}),e),...n})})}));$M.displayName="Table";const LM=f.forwardRef(({className:e,...t},r)=>y.jsx("thead",{ref:r,className:D(ste(),e),...t}));LM.displayName="TableHeader";const zM=f.forwardRef(({className:e,...t},r)=>y.jsx("tbody",{ref:r,className:D(lte(),e),...t}));zM.displayName="TableBody";const FM=f.forwardRef(({className:e,...t},r)=>y.jsx("tfoot",{ref:r,className:D("border-border bg-alt text-primary border-t font-normal",e),...t}));FM.displayName="TableFooter";const BM=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx("tr",{ref:n,className:D(cte({variant:t}),e),...r}));BM.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(Km),l=()=>{r&&o&&o()},c=u=>{r&&o&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())};return y.jsx("th",{ref:a,className:D(ute({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:D("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:D("-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 WM=f.forwardRef(({className:e,...t},r)=>{const{size:n}=f.useContext(Km);return y.jsx("td",{ref:r,className:D(dte({size:n}),e),...t})});WM.displayName="TableCell";const KM=f.forwardRef(({className:e,...t},r)=>y.jsx("caption",{ref:r,className:D("text-small text-tertiary mt-4",e),...t}));KM.displayName="TableCaption";function fte({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 pte({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 UM=f.createContext(null);function HM(){const e=f.useContext(UM);if(!e)throw new Error("Tab components must be used within a Tabs component");return e}const GM=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(UM.Provider,{value:{activeTab:u,setActiveTab:d,registerTrigger:p},children:y.jsx("div",{ref:a,className:D("w-full",e),...i,children:o})})});GM.displayName="Tabs";const qM=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"}}),YM=f.createContext(null),XM=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(YM.Provider,{value:p,children:y.jsxs("div",{ref:d,role:"tablist",className:D(qM({variant:t,className:e})),...r,children:[r.children,t!=="pills"&&i&&y.jsx("span",{className:D("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"})]})})});XM.displayName="TabList";const ZM=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"}}),JM=f.forwardRef(({className:e,variant:t,size:r,value:n,...o},i)=>{const{activeTab:a,setActiveTab:s}=HM(),l=f.useContext(YM),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:D(ZM({variant:t,size:r,className:e})),...o})});JM.displayName="TabTrigger";const QM=te("font-sans",{variants:{size:{sm:"text-small mt-3",default:"text-body mt-4",lg:"text-body mt-6"}},defaultVariants:{size:"default"}}),eI=f.forwardRef(({className:e,size:t,value:r,...n},o)=>{const{activeTab:i}=HM(),a=i===r;return a?y.jsx("div",{ref:o,role:"tabpanel","data-state":a?"active":"inactive",className:D(QM({size:t,className:e})),...n}):null});eI.displayName="TabContent";const tI=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"}}),rI=f.forwardRef(({className:e,variant:t="body",weight:r="regular",as:n="p",asChild:o=!1,...i},a)=>{const s=o?Ee:n;return y.jsx(s,{className:D(tI({variant:t,weight:r,className:e})),ref:a,...i})});rI.displayName="Text";const nI=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"}}),oI=f.forwardRef(({className:e,variant:t,resize:r,...n},o)=>y.jsx("textarea",{className:D(nI({variant:t,resize:r}),e),ref:o,...n}));oI.displayName="Textarea";var Um="ToastProvider",[Hm,vte,mte]=xo("Toast"),[iI]=Be("Toast",[mte]),[hte,Tc]=iI(Um),aI=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 \`${Um}\`. Expected non-empty \`string\`.`),y.jsx(Hm.Provider,{scope:t,children:y.jsx(hte,{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})})};aI.displayName=Um;var sI="ToastViewport",gte=["F8"],Gf="toast.viewportPause",qf="toast.viewportResume",lI=f.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=gte,label:o="Notifications ({hotkey})",...i}=e,a=Tc(sI,r),s=vte(r),l=f.useRef(null),c=f.useRef(null),u=f.useRef(null),d=f.useRef(null),p=re(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 P=new CustomEvent(Gf);b.dispatchEvent(P),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const P=new CustomEvent(qf);b.dispatchEvent(P),a.isClosePausedRef.current=!1}},S=P=>{!h.contains(P.relatedTarget)&&w()},E=()=>{h.contains(document.activeElement)||w()};return h.addEventListener("focusin",x),h.addEventListener("focusout",S),h.addEventListener("pointermove",x),h.addEventListener("pointerleave",E),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{h.removeEventListener("focusin",x),h.removeEventListener("focusout",S),h.removeEventListener("pointermove",x),h.removeEventListener("pointerleave",E),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[g,a.isClosePausedRef]);const m=f.useCallback(({tabbingDirection:h})=>{const x=s().map(w=>{const S=w.ref.current,E=[S,...jte(S)];return h==="forwards"?E:E.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 E=document.activeElement,P=x.shiftKey;if(x.target===h&&P){c.current?.focus();return}const N=m({tabbingDirection:P?"backwards":"forwards"}),$=N.findIndex(I=>I===E);Ed(N.slice($+1))?x.preventDefault():P?c.current?.focus():u.current?.focus()}};return h.addEventListener("keydown",b),()=>h.removeEventListener("keydown",b)}},[s,m]),y.jsxs(DR,{ref:l,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&y.jsx(Yf,{ref:c,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"forwards"});Ed(h)}}),y.jsx(Hm.Slot,{scope:r,children:y.jsx(Q.ol,{tabIndex:-1,...i,ref:p})}),g&&y.jsx(Yf,{ref:u,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"backwards"});Ed(h)}})]})});lI.displayName=sI;var cI="ToastFocusProxy",Yf=f.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=Tc(cI,r);return y.jsx(Sc,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{const s=a.relatedTarget;!i.viewport?.contains(s)&&n()}})});Yf.displayName=cI;var ia="Toast",yte="toast.swipeStart",bte="toast.swipeMove",xte="toast.swipeCancel",wte="toast.swipeEnd",uI=f.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s,l]=nt({prop:n,defaultProp:o??!0,onChange:i,caller:ia});return y.jsx(lt,{present:r||s,children:y.jsx(Ete,{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)})})})});uI.displayName=ia;var[Ste,Pte]=iI(ia,{onClose(){}}),Ete=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=Tc(ia,r),[h,b]=f.useState(null),x=re(t,R=>b(R)),w=f.useRef(null),S=f.useRef(null),E=o||m.duration,P=f.useRef(0),O=f.useRef(E),C=f.useRef(0),{onToastAdd:N,onToastRemove:$}=m,I=st(()=>{h?.contains(document.activeElement)&&m.viewport?.focus(),a()}),_=f.useCallback(R=>{!R||R===1/0||(window.clearTimeout(C.current),P.current=new Date().getTime(),C.current=window.setTimeout(I,R))},[I]);f.useEffect(()=>{const R=m.viewport;if(R){const V=()=>{_(O.current),c?.()},F=()=>{const W=new Date().getTime()-P.current;O.current=O.current-W,window.clearTimeout(C.current),l?.()};return R.addEventListener(Gf,F),R.addEventListener(qf,V),()=>{R.removeEventListener(Gf,F),R.removeEventListener(qf,V)}}},[m.viewport,E,l,c,_]),f.useEffect(()=>{i&&!m.isClosePausedRef.current&&_(E)},[i,E,m.isClosePausedRef,_]),f.useEffect(()=>(N(),()=>$()),[N,$]);const j=f.useMemo(()=>h?gI(h):null,[h]);return m.viewport?y.jsxs(y.Fragment,{children:[j&&y.jsx(Ote,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:j}),y.jsx(Ste,{scope:r,onClose:I,children:Si.createPortal(y.jsx(Hm.ItemSlot,{scope:r,children:y.jsx(RR,{asChild:!0,onEscapeKeyDown:U(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||I(),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,R=>{R.key==="Escape"&&(s?.(R.nativeEvent),R.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:U(e.onPointerDown,R=>{R.button===0&&(w.current={x:R.clientX,y:R.clientY})}),onPointerMove:U(e.onPointerMove,R=>{if(!w.current)return;const V=R.clientX-w.current.x,F=R.clientY-w.current.y,W=!!S.current,T=["left","right"].includes(m.swipeDirection),k=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,G=T?k(0,V):0,ee=T?0:k(0,F),ne=R.pointerType==="touch"?10:2,ie={x:G,y:ee},oe={originalEvent:R,delta:ie};W?(S.current=ie,Va(bte,d,oe,{discrete:!1})):qw(ie,m.swipeDirection,ne)?(S.current=ie,Va(yte,u,oe,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(V)>ne||Math.abs(F)>ne)&&(w.current=null)}),onPointerUp:U(e.onPointerUp,R=>{const V=S.current,F=R.target;if(F.hasPointerCapture(R.pointerId)&&F.releasePointerCapture(R.pointerId),S.current=null,w.current=null,V){const W=R.currentTarget,T={originalEvent:R,delta:V};qw(V,m.swipeDirection,m.swipeThreshold)?Va(wte,v,T,{discrete:!0}):Va(xte,p,T,{discrete:!0}),W.addEventListener("click",k=>k.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),Ote=e=>{const{__scopeToast:t,children:r,...n}=e,o=Tc(ia,t),[i,a]=f.useState(!1),[s,l]=f.useState(!1);return _te(()=>a(!0)),f.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:y.jsx(zn,{asChild:!0,children:y.jsx(Sc,{...n,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",r]})})})},Cte="ToastTitle",dI=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});dI.displayName=Cte;var Ate="ToastDescription",fI=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});fI.displayName=Ate;var pI="ToastAction",vI=f.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?y.jsx(hI,{altText:r,asChild:!0,children:y.jsx(Gm,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${pI}\`. Expected non-empty \`string\`.`),null)});vI.displayName=pI;var mI="ToastClose",Gm=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=Pte(mI,r);return y.jsx(hI,{asChild:!0,children:y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,o.onClose)})})});Gm.displayName=mI;var hI=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 gI(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),Tte(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(...gI(n))}}),t}function Va(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?Jf(o,i):o.dispatchEvent(i)}var qw=(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 _te(e=()=>{}){const t=st(e);Ye(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function Tte(e){return e.nodeType===e.ELEMENT_NODE}function jte(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 Ed(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var Nte=aI,Mte=lI,Ite=uI,kte=dI,Rte=fI,Dte=vI,$te=Gm;const Lte=Nte,yI=f.forwardRef(({className:e,...t},r)=>y.jsx(Mte,{ref:r,className:D("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}));yI.displayName="ToastViewport";const bI=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"}}),xI=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(Ite,{ref:n,className:D(bI({variant:t}),e),...r}));xI.displayName="Toast";const wI=f.forwardRef(({className:e,...t},r)=>y.jsx(Dte,{ref:r,className:D("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}));wI.displayName="ToastAction";const SI=f.forwardRef(({className:e,...t},r)=>y.jsxs($te,{ref:r,className:D("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(h0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]}));SI.displayName="ToastClose";const PI=f.forwardRef(({className:e,...t},r)=>y.jsx(kte,{ref:r,className:D("text-sm",e),...t}));PI.displayName="ToastTitle";const EI=f.forwardRef(({className:e,...t},r)=>y.jsx(Rte,{ref:r,className:D("text-secondary text-sm",e),...t}));EI.displayName="ToastDescription";var zte=Symbol("radix.slottable");function Fte(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=zte,t}var[jc]=Be("Tooltip",[rn]),Nc=rn(),OI="TooltipProvider",Bte=700,Xf="tooltip.open",[Vte,qm]=jc(OI),CI=e=>{const{__scopeTooltip:t,delayDuration:r=Bte,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(Vte,{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})};CI.displayName=OI;var xi="Tooltip",[Wte,aa]=jc(xi),AI=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=qm(xi,e.__scopeTooltip),c=Nc(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]=nt({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(Xf))):l.onClose(),i?.(O)},caller:xi}),w=f.useMemo(()=>b?h.current?"delayed-open":"instant-open":"closed",[b]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,x(!0)},[x]),E=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x(!1)},[x]),P=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(Ji,{...c,children:y.jsx(Wte,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?P():S()},[l.isOpenDelayedRef,P,S]),onTriggerLeave:f.useCallback(()=>{g?E():(window.clearTimeout(v.current),v.current=0)},[E,g]),onOpen:S,onClose:E,disableHoverableContent:g,children:r})})};AI.displayName=xi;var Zf="TooltipTrigger",_I=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=aa(Zf,r),i=qm(Zf,r),a=Nc(r),s=f.useRef(null),l=re(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(Qi,{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)})})});_I.displayName=Zf;var Ym="TooltipPortal",[Kte,Ute]=jc(Ym,{forceMount:void 0}),TI=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=aa(Ym,t);return y.jsx(Kte,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(zn,{asChild:!0,container:o,children:n})})})};TI.displayName=Ym;var bo="TooltipContent",jI=f.forwardRef((e,t)=>{const r=Ute(bo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=aa(bo,e.__scopeTooltip);return y.jsx(lt,{present:n||a.open,children:a.disableHoverableContent?y.jsx(NI,{side:o,...i,ref:t}):y.jsx(Hte,{side:o,...i,ref:t})})}),Hte=f.forwardRef((e,t)=>{const r=aa(bo,e.__scopeTooltip),n=qm(bo,e.__scopeTooltip),o=f.useRef(null),i=re(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=Xte(b,h.getBoundingClientRect()),w=Zte(b,x),S=Jte(m.getBoundingClientRect()),E=ere([...w,...S]);s(E),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=!Qte(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})}),[Gte,qte]=jc(xi,{isInside:!1}),Yte=Fte("TooltipContent"),NI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=aa(bo,r),c=Nc(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(Xf,u),()=>document.removeEventListener(Xf,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(Ln,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(vc,{"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(Yte,{children:n}),y.jsx(Gte,{scope:r,isInside:!0,children:y.jsx(XQ,{id:l.contentId,role:"tooltip",children:o||n})})]})})});jI.displayName=bo;var MI="TooltipArrow",II=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Nc(r);return qte(MI,r).isInside?null:y.jsx(mc,{...o,...n,ref:t})});II.displayName=MI;function Xte(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 Zte(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 Jte(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 Qte(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 ere(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),tre(t)}function tre(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 rre=CI,nre=AI,ore=_I,ire=TI,are=jI,sre=II;const lre=rre,cre=nre,ure=ore,kI=ire,Xm=f.forwardRef(({className:e,...t},r)=>y.jsx(sre,{ref:r,className:D("fill-primary",e),...t}));Xm.displayName="TooltipArrow";const RI=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"}}),DI=f.forwardRef(({className:e,variant:t,sideOffset:r=4,showArrow:n=!1,children:o,...i},a)=>y.jsx(kI,{children:y.jsxs(are,{ref:a,sideOffset:r,className:D(RI({variant:t,className:e})),...i,children:[o,n&&y.jsx(Xm,{className:t==="light"?"fill-card":"fill-primary"})]})}));DI.displayName="TooltipContent";exports.Accordion=N0;exports.AccordionContent=R0;exports.AccordionItem=M0;exports.AccordionTrigger=k0;exports.ActionsMenuButton=ij;exports.AlertDialog=b2;exports.AlertDialogAction=BS;exports.AlertDialogCancel=VS;exports.AlertDialogContent=DS;exports.AlertDialogDescription=FS;exports.AlertDialogFooter=LS;exports.AlertDialogHeader=$S;exports.AlertDialogOverlay=cp;exports.AlertDialogPortal=kS;exports.AlertDialogTitle=zS;exports.AlertDialogTrigger=x2;exports.Badge=KS;exports.Banner=HS;exports.BarChart=tA;exports.BreadcrumbItem=oA;exports.BreadcrumbSeparator=hm;exports.Breadcrumbs=nA;exports.Button=IS;exports.Card=aA;exports.Checkbox=mA;exports.ContextMenu=oJ;exports.ContextMenuCheckboxItem=tT;exports.ContextMenuContent=Q_;exports.ContextMenuGroup=aJ;exports.ContextMenuItem=eT;exports.ContextMenuLabel=nT;exports.ContextMenuPortal=X_;exports.ContextMenuRadioGroup=lJ;exports.ContextMenuRadioItem=rT;exports.ContextMenuSeparator=oT;exports.ContextMenuShortcut=iT;exports.ContextMenuSub=sJ;exports.ContextMenuSubContent=J_;exports.ContextMenuSubTrigger=Z_;exports.ContextMenuTrigger=iJ;exports.DatePicker=PT;exports.DateTimePicker=AT;exports.Divider=TT;exports.DropdownMenu=sQ;exports.DropdownMenuCheckboxItem=ej;exports.DropdownMenuContent=JT;exports.DropdownMenuGroup=cQ;exports.DropdownMenuItem=QT;exports.DropdownMenuLabel=rj;exports.DropdownMenuPortal=YT;exports.DropdownMenuRadioGroup=dQ;exports.DropdownMenuRadioItem=tj;exports.DropdownMenuSeparator=nj;exports.DropdownMenuShortcut=oj;exports.DropdownMenuSub=uQ;exports.DropdownMenuSubContent=ZT;exports.DropdownMenuSubTrigger=XT;exports.DropdownMenuTrigger=lQ;exports.EngrateLogo=sj;exports.Eyebrow=cj;exports.Footer=dj;exports.FooterBottom=hj;exports.FooterContent=fj;exports.FooterCopyright=gj;exports.FooterHeading=vj;exports.FooterLinks=mj;exports.FooterSection=pj;exports.FormField=xj;exports.FormMessage=Dm;exports.Grid=wj;exports.GridItem=Sj;exports.Header=Ej;exports.HeaderActions=Aj;exports.HeaderLogo=Oj;exports.HeaderNav=Cj;exports.Heading=Tj;exports.Input=Nj;exports.Label=$m;exports.LineChart=Ij;exports.Link=Rj;exports.Modal=AQ;exports.ModalClose=TQ;exports.ModalContent=Lj;exports.ModalDescription=Vj;exports.ModalFooter=Fj;exports.ModalHeader=zj;exports.ModalOverlay=Lm;exports.ModalPortal=Dj;exports.ModalTitle=Bj;exports.ModalTrigger=_Q;exports.Pagination=Uj;exports.PaginationDot=Xj;exports.PaginationDots=qj;exports.PaginationItem=no;exports.PieChart=Jj;exports.ProgressIndicator=tN;exports.RadioGroup=vN;exports.RadioGroupItem=mN;exports.Select=Mee;exports.SelectContent=GN;exports.SelectGroup=Iee;exports.SelectItem=YN;exports.SelectLabel=qN;exports.SelectScrollDownButton=Vm;exports.SelectScrollUpButton=Bm;exports.SelectSeparator=XN;exports.SelectTrigger=HN;exports.SelectValue=kee;exports.Sidebar=QN;exports.SidebarContent=tM;exports.SidebarFooter=rM;exports.SidebarGroup=nM;exports.SidebarGroupLabel=oM;exports.SidebarHeader=eM;exports.SidebarItem=iM;exports.SidebarSeparator=sM;exports.SidebarTrigger=aM;exports.Skeleton=cM;exports.Slider=OM;exports.Spinner=AM;exports.Stack=TM;exports.Switch=RM;exports.TabContent=eI;exports.TabList=XM;exports.TabTrigger=JM;exports.Table=$M;exports.TableBody=zM;exports.TableCaption=KM;exports.TableCell=WM;exports.TableFooter=FM;exports.TableHead=VM;exports.TableHeader=LM;exports.TableRow=BM;exports.Tabs=GM;exports.Text=rI;exports.Textarea=oI;exports.Toast=xI;exports.ToastAction=wI;exports.ToastClose=SI;exports.ToastDescription=EI;exports.ToastProvider=Lte;exports.ToastTitle=PI;exports.ToastViewport=yI;exports.Tooltip=cre;exports.TooltipArrow=Xm;exports.TooltipContent=DI;exports.TooltipPortal=kI;exports.TooltipProvider=lre;exports.TooltipTrigger=ure;exports.accordionTriggerVariants=I0;exports.accordionVariants=j0;exports.alertDialogContentVariants=RS;exports.badgeVariants=WS;exports.bannerVariants=US;exports.barChartVariants=eA;exports.breadcrumbItemVariants=Mf;exports.breadcrumbsVariants=rA;exports.buttonVariants=hl;exports.calendarDayVariants=ST;exports.cardVariants=iA;exports.cn=D;exports.datePickerTriggerVariants=wT;exports.dateTimePickerCalendarDayVariants=CT;exports.dateTimePickerTriggerVariants=OT;exports.dividerVariants=_T;exports.engrateLogoVariants=aj;exports.eyebrowVariants=lj;exports.footerVariants=uj;exports.gridItemVariants=SQ;exports.gridVariants=gQ;exports.headerVariants=Pj;exports.headingVariants=_j;exports.inputVariants=jj;exports.labelVariants=bj;exports.lineChartVariants=Mj;exports.linkVariants=kj;exports.modalContentVariants=$j;exports.paginationDotVariants=Yj;exports.paginationDotsVariants=Gj;exports.paginationItemVariants=Kj;exports.paginationVariants=Wj;exports.pieChartVariants=Zj;exports.progressBarVariants=eN;exports.progressIndicatorVariants=Qj;exports.sidebarItemVariants=Wf;exports.sidebarVariants=JN;exports.skeletonVariants=lM;exports.sliderVariants=EM;exports.spinnerVariants=CM;exports.stackVariants=_M;exports.tabContentVariants=QM;exports.tabListVariants=qM;exports.tabTriggerVariants=ZM;exports.tableVariants=DM;exports.textVariants=tI;exports.textareaVariants=nI;exports.toastVariants=bI;exports.tooltipContentVariants=RI;exports.useFilterableTable=pte;exports.useSidebarContext=Cc;exports.useSortableTable=fte;