@engrate/components 0.1.22 → 0.1.24

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 b=require("react/jsx-runtime"),O=require("react"),wa=require("react-dom");function sE(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 p=sE(O),Sa=sE(wa);function R$(e,t){const r=p.createContext(t),n=i=>{const{children:a,...s}=i,l=p.useMemo(()=>s,Object.values(s));return b.jsx(r.Provider,{value:l,children:a})};n.displayName=e+"Provider";function o(i){const a=p.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 Ge(e,t=[]){let r=[];function n(i,a){const s=p.createContext(a),l=r.length;r=[...r,a];const c=d=>{const{scope:f,children:h,...v}=d,m=f?.[e]?.[l]||s,g=p.useMemo(()=>v,Object.values(v));return b.jsx(m.Provider,{value:g,children:h})};c.displayName=i+"Provider";function u(d,f){const h=f?.[e]?.[l]||s,v=p.useContext(h);if(v)return v;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=>p.createContext(a));return function(s){const l=s?.[e]||i;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[n,k$(o,...t)]}function k$(...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 p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Hy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ar(...e){return t=>{let r=!1;const n=e.map(o=>{const i=Hy(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():Hy(e[o],null)}}}}function ne(...e){return p.useCallback(Ar(...e),e)}function Gy(e){const t=I$(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(L$);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function I$(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=V$(o),s=$$(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Ar(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var N$=Symbol("radix.slottable");function L$(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===N$}function $$(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 V$(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 ii(e){const t=e+"CollectionProvider",[r,n]=Ge(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:g,children:y}=m,x=O.useRef(null),w=O.useRef(new Map).current;return b.jsx(o,{scope:g,itemMap:w,collectionRef:x,children:y})};a.displayName=t;const s=e+"CollectionSlot",l=Gy(s),c=O.forwardRef((m,g)=>{const{scope:y,children:x}=m,w=i(s,y),S=ne(g,w.collectionRef);return b.jsx(l,{ref:S,children:x})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=Gy(u),h=O.forwardRef((m,g)=>{const{scope:y,children:x,...w}=m,S=O.useRef(null),P=ne(g,S),C=i(u,y);return O.useEffect(()=>(C.itemMap.set(S,{ref:S,...w}),()=>{C.itemMap.delete(S)})),b.jsx(f,{[d]:"",ref:P,children:x})});h.displayName=u;function v(m){const g=i(e+"CollectionConsumer",m);return O.useCallback(()=>{const x=g.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((C,E)=>w.indexOf(C.ref.current)-w.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:c,ItemSlot:h},v,n]}function U(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var tt=globalThis?.document?p.useLayoutEffect:()=>{},F$=p[" useInsertionEffect ".trim().toString()]||tt;function ut({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,a]=B$({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:o;{const u=p.useRef(e!==void 0);p.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=p.useCallback(u=>{if(s){const d=z$(u)?u(e):u;d!==e&&a.current?.(d)}else i(u)},[s,e,i,a]);return[l,c]}function B$({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),o=p.useRef(r),i=p.useRef(t);return F$(()=>{i.current=t},[t]),p.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function z$(e){return typeof e=="function"}function W$(e){const t=K$(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(H$);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function K$(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=q$(o),s=G$(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Ar(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var U$=Symbol("radix.slottable");function H$(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===U$}function G$(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 q$(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 Y$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=Y$.reduce((e,t)=>{const r=W$(`Primitive.${t}`),n=p.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function fm(e,t){e&&Sa.flushSync(()=>e.dispatchEvent(t))}function X$(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var vt=e=>{const{present:t,children:r}=e,n=Z$(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),i=ne(n.ref,J$(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:i}):null};vt.displayName="Presence";function Z$(e){const[t,r]=p.useState(),n=p.useRef(null),o=p.useRef(e),i=p.useRef("none"),a=e?"mounted":"unmounted",[s,l]=X$(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=ds(n.current);i.current=s==="mounted"?c:"none"},[s]),tt(()=>{const c=n.current,u=o.current;if(u!==e){const f=i.current,h=ds(c);e?l("MOUNT"):h==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),tt(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=h=>{const m=ds(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(l("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},f=h=>{h.target===t&&(i.current=ds(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function ds(e){return e?.animationName||"none"}function J$(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 Q$=p[" useId ".trim().toString()]||(()=>{}),eV=0;function Ct(e){const[t,r]=p.useState(Q$());return tt(()=>{r(n=>n??String(eV++))},[e]),e||(t?`radix-${t}`:"")}var _c="Collapsible",[tV,lE]=Ge(_c),[rV,pm]=tV(_c),cE=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,c]=ut({prop:n,defaultProp:o??!1,onChange:a,caller:_c});return b.jsx(rV,{scope:r,disabled:i,contentId:Ct(),open:l,onOpenToggle:p.useCallback(()=>c(u=>!u),[c]),children:b.jsx(ee.div,{"data-state":mm(l),"data-disabled":i?"":void 0,...s,ref:t})})});cE.displayName=_c;var uE="CollapsibleTrigger",dE=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=pm(uE,r);return b.jsx(ee.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":mm(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:U(e.onClick,o.onOpenToggle)})});dE.displayName=uE;var hm="CollapsibleContent",fE=p.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=pm(hm,e.__scopeCollapsible);return b.jsx(vt,{present:r||o.open,children:({present:i})=>b.jsx(nV,{...n,ref:t,present:i})})});fE.displayName=hm;var nV=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,a=pm(hm,r),[s,l]=p.useState(n),c=p.useRef(null),u=ne(t,c),d=p.useRef(0),f=d.current,h=p.useRef(0),v=h.current,m=a.open||s,g=p.useRef(m),y=p.useRef(void 0);return p.useEffect(()=>{const x=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(x)},[]),tt(()=>{const x=c.current;if(x){y.current=y.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,h.current=w.width,g.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),l(n)}},[a.open,n]),b.jsx(ee.div,{"data-state":mm(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...i,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:m&&o})});function mm(e){return e?"open":"closed"}var oV=cE,iV=dE,aV=fE,sV=p.createContext(void 0);function ai(e){const t=p.useContext(sV);return e||t||"ltr"}var ar="Accordion",lV=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[vm,cV,uV]=ii(ar),[Mc]=Ge(ar,[uV,lE]),gm=lE(),pE=O.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return b.jsx(vm.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?b.jsx(hV,{...i,ref:t}):b.jsx(pV,{...o,ref:t})})});pE.displayName=ar;var[hE,dV]=Mc(ar),[mE,fV]=Mc(ar,{collapsible:!1}),pV=O.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,l]=ut({prop:r,defaultProp:n??"",onChange:o,caller:ar});return b.jsx(hE,{scope:e.__scopeAccordion,value:O.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:O.useCallback(()=>i&&l(""),[i,l]),children:b.jsx(mE,{scope:e.__scopeAccordion,collapsible:i,children:b.jsx(vE,{...a,ref:t})})})}),hV=O.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[a,s]=ut({prop:r,defaultProp:n??[],onChange:o,caller:ar}),l=O.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=O.useCallback(u=>s((d=[])=>d.filter(f=>f!==u)),[s]);return b.jsx(hE,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:b.jsx(mE,{scope:e.__scopeAccordion,collapsible:!0,children:b.jsx(vE,{...i,ref:t})})})}),[mV,jc]=Mc(ar),vE=O.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...a}=e,s=O.useRef(null),l=ne(s,t),c=cV(r),d=ai(o)==="ltr",f=U(e.onKeyDown,h=>{if(!lV.includes(h.key))return;const v=h.target,m=c().filter(A=>!A.ref.current?.disabled),g=m.findIndex(A=>A.ref.current===v),y=m.length;if(g===-1)return;h.preventDefault();let x=g;const w=0,S=y-1,P=()=>{x=g+1,x>S&&(x=w)},C=()=>{x=g-1,x<w&&(x=S)};switch(h.key){case"Home":x=w;break;case"End":x=S;break;case"ArrowRight":i==="horizontal"&&(d?P():C());break;case"ArrowDown":i==="vertical"&&P();break;case"ArrowLeft":i==="horizontal"&&(d?C():P());break;case"ArrowUp":i==="vertical"&&C();break}const E=x%y;m[E].ref.current?.focus()});return b.jsx(mV,{scope:r,disabled:n,direction:o,orientation:i,children:b.jsx(vm.Slot,{scope:r,children:b.jsx(ee.div,{...a,"data-orientation":i,ref:l,onKeyDown:n?void 0:f})})})}),pl="AccordionItem",[vV,ym]=Mc(pl),gE=O.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=jc(pl,r),a=dV(pl,r),s=gm(r),l=Ct(),c=n&&a.value.includes(n)||!1,u=i.disabled||e.disabled;return b.jsx(vV,{scope:r,open:c,disabled:u,triggerId:l,children:b.jsx(oV,{"data-orientation":i.orientation,"data-state":PE(c),...s,...o,ref:t,disabled:u,open:c,onOpenChange:d=>{d?a.onItemOpen(n):a.onItemClose(n)}})})});gE.displayName=pl;var yE="AccordionHeader",bE=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=jc(ar,r),i=ym(yE,r);return b.jsx(ee.h3,{"data-orientation":o.orientation,"data-state":PE(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});bE.displayName=yE;var vp="AccordionTrigger",xE=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=jc(ar,r),i=ym(vp,r),a=fV(vp,r),s=gm(r);return b.jsx(vm.ItemSlot,{scope:r,children:b.jsx(iV,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...n,ref:t})})});xE.displayName=vp;var wE="AccordionContent",SE=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=jc(ar,r),i=ym(wE,r),a=gm(r);return b.jsx(aV,{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}})});SE.displayName=wE;function PE(e){return e?"open":"closed"}var gV=pE,yV=gE,bV=bE,xV=xE,wV=SE;function CE(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=CE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function fe(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=CE(e))&&(n&&(n+=" "),n+=t);return n}const qy=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Yy=fe,re=(e,t)=>r=>{var n;if(t?.variants==null)return Yy(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 f=qy(u)||qy(d);return o[c][f]}),s=r&&Object.entries(r).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(v=>{let[m,g]=v;return Array.isArray(g)?g.includes({...i,...s}[m]):{...i,...s}[m]===g})?[...c,d,f]:c},[]);return Yy(e,a,l,r?.class,r?.className)};const EE=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const SV=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const PV=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const Xy=e=>{const t=PV(e);return t.charAt(0).toUpperCase()+t.slice(1)};var CV={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 EV=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const OV=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},l)=>O.createElement("svg",{ref:l,...CV,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:EE("lucide",o),...!i&&!EV(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,u])=>O.createElement(c,u)),...Array.isArray(i)?i:[i]]));const ho=(e,t)=>{const r=O.forwardRef(({className:n,...o},i)=>O.createElement(OV,{ref:i,iconNode:t,className:EE(`lucide-${SV(Xy(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Xy(e),r};const AV=[["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"}]],OE=ho("calendar",AV);const TV=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_V=ho("chevron-down",TV);const MV=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Dc=ho("chevron-left",MV);const jV=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Rc=ho("chevron-right",jV);const DV=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],RV=ho("clock",DV);const kV=[["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"}]],AE=ho("ellipsis",kV);const IV=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],TE=ho("x",IV),NV=(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},LV=(e,t)=>({classGroupId:e,validator:t}),_E=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),hl="-",Zy=[],$V="arbitrary..",VV=e=>{const t=BV(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return FV(a);const s=a.split(hl),l=s[0]===""&&s.length>1?1:0;return ME(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=n[a],c=r[a];return l?c?NV(c,l):l:c||Zy}return r[a]||Zy}}},ME=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=ME(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const s=t===0?e.join(hl):e.slice(t).join(hl),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(s))return u.classGroupId}},FV=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?$V+n:void 0})(),BV=e=>{const{theme:t,classGroups:r}=e;return zV(r,t)},zV=(e,t)=>{const r=_E();for(const n in e){const o=e[n];bm(o,r,n,t)}return r},bm=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];WV(a,t,r,n)}},WV=(e,t,r,n)=>{if(typeof e=="string"){KV(e,t,r);return}if(typeof e=="function"){UV(e,t,r,n);return}HV(e,t,r,n)},KV=(e,t,r)=>{const n=e===""?t:jE(t,e);n.classGroupId=r},UV=(e,t,r,n)=>{if(GV(e)){bm(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(LV(r,e))},HV=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];bm(l,jE(t,s),r,n)}},jE=(e,t)=>{let r=e;const n=t.split(hl),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=_E(),r.nextPart.set(a,s)),r=s}return r},GV=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,qV=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)}}},gp="!",Jy=":",YV=[],Qy=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),XV=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 g=o[m];if(a===0&&s===0){if(g===Jy){i.push(o.slice(l,m)),l=m+1;continue}if(g==="/"){c=m;continue}}g==="["?a++:g==="]"?a--:g==="("?s++:g===")"&&s--}const d=i.length===0?o:o.slice(l);let f=d,h=!1;d.endsWith(gp)?(f=d.slice(0,-1),h=!0):d.startsWith(gp)&&(f=d.slice(1),h=!0);const v=c&&c>l?c-l:void 0;return Qy(i,h,f,v)};if(t){const o=t+Jy,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):Qy(YV,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},ZV=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}},JV=e=>({cache:qV(e.cacheSize),parseClassName:XV(e),sortModifiers:ZV(e),...VV(e)}),QV=/\s+/,eF=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(QV);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:f,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let g=!!m,y=n(g?v.substring(0,m):v);if(!y){if(!g){l=u+(l.length>0?" "+l:l);continue}if(y=n(v),!y){l=u+(l.length>0?" "+l:l);continue}g=!1}const x=f.length===0?"":f.length===1?f[0]:i(f).join(":"),w=h?x+gp:x,S=w+y;if(a.indexOf(S)>-1)continue;a.push(S);const P=o(y,g);for(let C=0;C<P.length;++C){const E=P[C];a.push(w+E)}l=u+(l.length>0?" "+l:l)}return l},tF=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=DE(r))&&(o&&(o+=" "),o+=n);return o},DE=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=DE(e[n]))&&(r&&(r+=" "),r+=t);return r},eb=(e,...t)=>{let r,n,o,i;const a=l=>{const c=t.reduce((u,d)=>d(u),e());return r=JV(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=eF(l,r);return o(l,u),u};return i=a,(...l)=>i(tF(...l))},rF=[],Ke=e=>{const t=r=>r[e]||rF;return t.isThemeGetter=!0,t},RE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nF=/^\d+\/\d+$/,oF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iF=/\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$/,aF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Co=e=>nF.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),rn=e=>!!e&&Number.isInteger(Number(e)),id=e=>e.endsWith("%")&&se(e.slice(0,-1)),_r=e=>oF.test(e),cF=()=>!0,uF=e=>iF.test(e)&&!aF.test(e),IE=()=>!1,dF=e=>sF.test(e),fF=e=>lF.test(e),pF=e=>!X(e)&&!Z(e),hF=e=>si(e,$E,IE),X=e=>RE.test(e),Rn=e=>si(e,VE,uF),ad=e=>si(e,bF,se),tb=e=>si(e,NE,IE),mF=e=>si(e,LE,fF),fs=e=>si(e,FE,dF),Z=e=>kE.test(e),Ti=e=>li(e,VE),vF=e=>li(e,xF),rb=e=>li(e,NE),gF=e=>li(e,$E),yF=e=>li(e,LE),ps=e=>li(e,FE,!0),si=(e,t,r)=>{const n=RE.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},li=(e,t,r=!1)=>{const n=kE.exec(e);return n?n[1]?t(n[1]):r:!1},NE=e=>e==="position"||e==="percentage",LE=e=>e==="image"||e==="url",$E=e=>e==="length"||e==="size"||e==="bg-size",VE=e=>e==="length",bF=e=>e==="number",xF=e=>e==="family-name",FE=e=>e==="shadow",nb=()=>{const e=Ke("color"),t=Ke("font"),r=Ke("text"),n=Ke("font-weight"),o=Ke("tracking"),i=Ke("leading"),a=Ke("breakpoint"),s=Ke("container"),l=Ke("spacing"),c=Ke("radius"),u=Ke("shadow"),d=Ke("inset-shadow"),f=Ke("text-shadow"),h=Ke("drop-shadow"),v=Ke("blur"),m=Ke("perspective"),g=Ke("aspect"),y=Ke("ease"),x=Ke("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"],P=()=>[...S(),Z,X],C=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],A=()=>[Z,X,l],_=()=>[Co,"full","auto",...A()],D=()=>[rn,"none","subgrid",Z,X],R=()=>["auto",{span:["full",rn,Z,X]},rn,Z,X],T=()=>[rn,"auto",Z,X],j=()=>["auto","min","max","fr",Z,X],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...A()],$=()=>[Co,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],M=()=>[e,Z,X],I=()=>[...S(),rb,tb,{position:[Z,X]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",gF,hF,{size:[Z,X]}],oe=()=>[id,Ti,Rn],ae=()=>["","none","full",c,Z,X],ie=()=>["",se,Ti,Rn],ce=()=>["solid","dashed","dotted","double"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[se,id,rb,tb],de=()=>["","none",v,Z,X],V=()=>["none",se,Z,X],G=()=>["none",se,Z,X],z=()=>[se,Z,X],F=()=>[Co,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_r],breakpoint:[_r],color:[cF],container:[_r],"drop-shadow":[_r],ease:["in","out","in-out"],font:[pF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_r],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_r],shadow:[_r],spacing:["px",se],text:[_r],"text-shadow":[_r],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Co,X,Z,g]}],container:["container"],columns:[{columns:[se,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:P()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[rn,"auto",Z,X]}],basis:[{basis:[Co,"full","auto",s,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,Co,"auto","initial","none",X]}],grow:[{grow:["",se,Z,X]}],shrink:[{shrink:["",se,Z,X]}],order:[{order:[rn,"first","last","none",Z,X]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[s,"screen",...$()]}],"min-w":[{"min-w":[s,"screen","none",...$()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,Ti,Rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Z,ad]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",id,X]}],"font-family":[{font:[vF,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":[se,"none",Z,ad]}],leading:[{leading:[i,...A()]}],"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:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",Z,Rn]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[se,"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},rn,Z,X],radial:["",Z,X],conic:[rn,Z,X]},yF,mF]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,Z,X]}],"outline-w":[{outline:["",se,Ti,Rn]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",u,ps,fs]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",d,ps,fs]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[se,Rn]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",f,ps,fs]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[se,Z,X]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ae()}],"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":[se]}],"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":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"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":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"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":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"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":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"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":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"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":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"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":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"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":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[se]}],"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":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,X]}],filter:[{filter:["","none",Z,X]}],blur:[{blur:de()}],brightness:[{brightness:[se,Z,X]}],contrast:[{contrast:[se,Z,X]}],"drop-shadow":[{"drop-shadow":["","none",h,ps,fs]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",se,Z,X]}],"hue-rotate":[{"hue-rotate":[se,Z,X]}],invert:[{invert:["",se,Z,X]}],saturate:[{saturate:[se,Z,X]}],sepia:[{sepia:["",se,Z,X]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,X]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[se,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[se,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,Z,X]}],"backdrop-invert":[{"backdrop-invert":["",se,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[se,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[se,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":["",se,Z,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"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:[se,"initial",Z,X]}],ease:[{ease:["linear","initial",y,Z,X]}],delay:[{delay:[se,Z,X]}],animate:[{animate:["none",x,Z,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Z,X]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[Z,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",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":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",...M()]}],"stroke-w":[{stroke:[se,Ti,Rn,ad]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},wF=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Vi(e,"cacheSize",t),Vi(e,"prefix",r),Vi(e,"experimentalParseClassName",n),hs(e.theme,i.theme),hs(e.classGroups,i.classGroups),hs(e.conflictingClassGroups,i.conflictingClassGroups),hs(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Vi(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),ms(e.theme,o.theme),ms(e.classGroups,o.classGroups),ms(e.conflictingClassGroups,o.conflictingClassGroups),ms(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),BE(e,o,"orderSensitiveModifiers"),e),Vi=(e,t,r)=>{r!==void 0&&(e[t]=r)},hs=(e,t)=>{if(t)for(const r in t)Vi(e,r,t[r])},ms=(e,t)=>{if(t)for(const r in t)BE(e,t,r)},BE=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},SF=(e,...t)=>typeof e=="function"?eb(nb,e,...t):eb(()=>wF(nb(),e),...t),PF=SF({extend:{classGroups:{"font-size":[{text:["hero","h1","h2","h3","h4","lead","semi-lead","body-lg","body","body-sm","descriptive","small","label","label-sm"]}]}}});function L(...e){return PF(fe(e))}const zE=re("w-full",{variants:{variant:{default:"",bordered:"border-border rounded-lg border"}},defaultVariants:{variant:"default"}}),WE=p.forwardRef(({className:e,variant:t,...r},n)=>b.jsx(gV,{ref:n,className:L(zE({variant:t}),e),...r}));WE.displayName="Accordion";const KE=p.forwardRef(({className:e,...t},r)=>b.jsx(yV,{ref:r,className:L("border-border border-b last:border-b-0",e),...t}));KE.displayName="AccordionItem";const UE=re(["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"}}),HE=p.forwardRef(({className:e,children:t,size:r,...n},o)=>b.jsx(bV,{className:"flex",children:b.jsxs(xV,{ref:o,className:L(UE({size:r}),e),...n,children:[t,b.jsx(_V,{className:"text-secondary h-4 w-4 shrink-0 transition-transform duration-200"})]})}));HE.displayName="AccordionTrigger";const GE=p.forwardRef(({className:e,children:t,...r},n)=>b.jsx(wV,{ref:n,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:b.jsx("div",{className:L("text-secondary pt-0 pb-4",e),children:t})}));GE.displayName="AccordionContent";function mt(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>t.current?.(...r),[])}function CF(e,t=globalThis?.document){const r=mt(e);p.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 EF="DismissableLayer",yp="dismissableLayer.update",OF="dismissableLayer.pointerDownOutside",AF="dismissableLayer.focusOutside",ob,qE=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mo=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=p.useContext(qE),[u,d]=p.useState(null),f=u?.ownerDocument??globalThis?.document,[,h]=p.useState({}),v=ne(t,E=>d(E)),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),x=u?m.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=x>=y,P=_F(E=>{const A=E.target,_=[...c.branches].some(D=>D.contains(A));!S||_||(o?.(E),a?.(E),E.defaultPrevented||s?.())},f),C=MF(E=>{const A=E.target;[...c.branches].some(D=>D.contains(A))||(i?.(E),a?.(E),E.defaultPrevented||s?.())},f);return CF(E=>{x===c.layers.size-1&&(n?.(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},f),p.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ob=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),ib(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ob)}},[u,f,r,c]),p.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),ib())},[u,c]),p.useEffect(()=>{const E=()=>h({});return document.addEventListener(yp,E),()=>document.removeEventListener(yp,E)},[]),b.jsx(ee.div,{...l,ref:v,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,C.onFocusCapture),onBlurCapture:U(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,P.onPointerDownCapture)})});mo.displayName=EF;var TF="DismissableLayerBranch",YE=p.forwardRef((e,t)=>{const r=p.useContext(qE),n=p.useRef(null),o=ne(t,n);return p.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),b.jsx(ee.div,{...e,ref:o})});YE.displayName=TF;function _F(e,t=globalThis?.document){const r=mt(e),n=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let l=function(){XE(OF,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 MF(e,t=globalThis?.document){const r=mt(e),n=p.useRef(!1);return p.useEffect(()=>{const o=i=>{i.target&&!n.current&&XE(AF,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 ib(){const e=new CustomEvent(yp);document.dispatchEvent(e)}function XE(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?fm(o,i):o.dispatchEvent(i)}var jF=mo,DF=YE,sd="focusScope.autoFocusOnMount",ld="focusScope.autoFocusOnUnmount",ab={bubbles:!1,cancelable:!0},RF="FocusScope",Pa=p.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=p.useState(null),c=mt(o),u=mt(i),d=p.useRef(null),f=ne(t,m=>l(m)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let m=function(w){if(h.paused||!s)return;const S=w.target;s.contains(S)?d.current=S:nn(d.current,{select:!0})},g=function(w){if(h.paused||!s)return;const S=w.relatedTarget;S!==null&&(s.contains(S)||nn(d.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const P of w)P.removedNodes.length>0&&nn(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),x.disconnect()}}},[n,s,h.paused]),p.useEffect(()=>{if(s){lb.add(h);const m=document.activeElement;if(!s.contains(m)){const y=new CustomEvent(sd,ab);s.addEventListener(sd,c),s.dispatchEvent(y),y.defaultPrevented||(kF(VF(ZE(s)),{select:!0}),document.activeElement===m&&nn(s))}return()=>{s.removeEventListener(sd,c),setTimeout(()=>{const y=new CustomEvent(ld,ab);s.addEventListener(ld,u),s.dispatchEvent(y),y.defaultPrevented||nn(m??document.body,{select:!0}),s.removeEventListener(ld,u),lb.remove(h)},0)}}},[s,c,u,h]);const v=p.useCallback(m=>{if(!r&&!n||h.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(g&&y){const x=m.currentTarget,[w,S]=IF(x);w&&S?!m.shiftKey&&y===S?(m.preventDefault(),r&&nn(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),r&&nn(S,{select:!0})):y===x&&m.preventDefault()}},[r,n,h.paused]);return b.jsx(ee.div,{tabIndex:-1,...a,ref:f,onKeyDown:v})});Pa.displayName=RF;function kF(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(nn(n,{select:t}),document.activeElement!==r)return}function IF(e){const t=ZE(e),r=sb(t,e),n=sb(t.reverse(),e);return[r,n]}function ZE(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 sb(e,t){for(const r of e)if(!NF(r,{upTo:t}))return r}function NF(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 LF(e){return e instanceof HTMLInputElement&&"select"in e}function nn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&LF(e)&&t&&e.select()}}var lb=$F();function $F(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=cb(e,t),e.unshift(t)},remove(t){e=cb(e,t),e[0]?.resume()}}}function cb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function VF(e){return e.filter(t=>t.tagName!=="A")}var FF="Portal",vo=p.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=p.useState(!1);tt(()=>i(!0),[]);const a=r||o&&globalThis?.document?.body;return a?wa.createPortal(b.jsx(ee.div,{...n,ref:t}),a):null});vo.displayName=FF;var cd=0;function kc(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ub()),document.body.insertAdjacentElement("beforeend",e[1]??ub()),cd++,()=>{cd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cd--}},[])}function ub(){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 hr=function(){return hr=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},hr.apply(this,arguments)};function JE(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 BF(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 Zs="right-scroll-bar-position",Js="width-before-scroll-bar",zF="with-scroll-bars-hidden",WF="--removed-body-scroll-bar-size";function ud(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function KF(e,t){var r=O.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 UF=typeof window<"u"?p.useLayoutEffect:p.useEffect,db=new WeakMap;function HF(e,t){var r=KF(null,function(n){return e.forEach(function(o){return ud(o,n)})});return UF(function(){var n=db.get(r);if(n){var o=new Set(n),i=new Set(e),a=r.current;o.forEach(function(s){i.has(s)||ud(s,null)}),i.forEach(function(s){o.has(s)||ud(s,a)})}db.set(r,e)},[e]),r}function GF(e){return e}function qF(e,t){t===void 0&&(t=GF);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 YF(e){e===void 0&&(e={});var t=qF(null);return t.options=hr({async:!0,ssr:!1},e),t}var QE=function(e){var t=e.sideCar,r=JE(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 p.createElement(n,hr({},r))};QE.isSideCarExport=!0;function XF(e,t){return e.useMedium(t),QE}var e1=YF(),dd=function(){},Ic=p.forwardRef(function(e,t){var r=p.useRef(null),n=p.useState({onScrollCapture:dd,onWheelCapture:dd,onTouchMoveCapture:dd}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,S=JE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=f,C=HF([r,t]),E=hr(hr({},S),o);return p.createElement(p.Fragment,null,u&&p.createElement(P,{sideCar:e1,removeScrollBar:c,shards:d,noRelative:h,noIsolation:v,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:r,gapMode:w}),a?p.cloneElement(p.Children.only(s),hr(hr({},E),{ref:C})):p.createElement(x,hr({},E,{className:l,ref:C}),s))});Ic.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ic.classNames={fullWidth:Js,zeroRight:Zs};var ZF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function JF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZF();return t&&e.setAttribute("nonce",t),e}function QF(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eB(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tB=function(){var e=0,t=null;return{add:function(r){e==0&&(t=JF())&&(QF(t,r),eB(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rB=function(){var e=tB();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},t1=function(){var e=rB(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},nB={left:0,top:0,right:0,gap:0},fd=function(e){return parseInt(e||"",10)||0},oB=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[fd(r),fd(n),fd(o)]},iB=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return nB;var t=oB(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])}},aB=t1(),zo="data-scroll-locked",sB=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(zF,` {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),O=require("react"),ns=require("react-dom");function kO(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 p=kO(O),os=kO(ns);function UV(e,t){const r=p.createContext(t),n=i=>{const{children:a,...s}=i,l=p.useMemo(()=>s,Object.values(s));return b.jsx(r.Provider,{value:l,children:a})};n.displayName=e+"Provider";function o(i){const a=p.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 it(e,t=[]){let r=[];function n(i,a){const s=p.createContext(a),l=r.length;r=[...r,a];const c=d=>{const{scope:f,children:h,...v}=d,m=f?.[e]?.[l]||s,g=p.useMemo(()=>v,Object.values(v));return b.jsx(m.Provider,{value:g,children:h})};c.displayName=i+"Provider";function u(d,f){const h=f?.[e]?.[l]||s,v=p.useContext(h);if(v)return v;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=>p.createContext(a));return function(s){const l=s?.[e]||i;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[n,HV(o,...t)]}function HV(...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 p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function aw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Hr(...e){return t=>{let r=!1;const n=e.map(o=>{const i=aw(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():aw(e[o],null)}}}}function ie(...e){return p.useCallback(Hr(...e),e)}function sw(e){const t=GV(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(qV);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function GV(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=ZV(o),s=XV(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Hr(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var YV=Symbol("radix.slottable");function qV(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===YV}function XV(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 ZV(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 ji(e){const t=e+"CollectionProvider",[r,n]=it(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:g,children:y}=m,w=O.useRef(null),x=O.useRef(new Map).current;return b.jsx(o,{scope:g,itemMap:x,collectionRef:w,children:y})};a.displayName=t;const s=e+"CollectionSlot",l=sw(s),c=O.forwardRef((m,g)=>{const{scope:y,children:w}=m,x=i(s,y),S=ie(g,x.collectionRef);return b.jsx(l,{ref:S,children:w})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=sw(u),h=O.forwardRef((m,g)=>{const{scope:y,children:w,...x}=m,S=O.useRef(null),P=ie(g,S),C=i(u,y);return O.useEffect(()=>(C.itemMap.set(S,{ref:S,...x}),()=>{C.itemMap.delete(S)})),b.jsx(f,{[d]:"",ref:P,children:w})});h.displayName=u;function v(m){const g=i(e+"CollectionConsumer",m);return O.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((C,E)=>x.indexOf(C.ref.current)-x.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:c,ItemSlot:h},v,n]}function U(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var pt=globalThis?.document?p.useLayoutEffect:()=>{},QV=p[" useInsertionEffect ".trim().toString()]||pt;function wt({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,a]=JV({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:o;{const u=p.useRef(e!==void 0);p.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=p.useCallback(u=>{if(s){const d=eB(u)?u(e):u;d!==e&&a.current?.(d)}else i(u)},[s,e,i,a]);return[l,c]}function JV({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),o=p.useRef(r),i=p.useRef(t);return QV(()=>{i.current=t},[t]),p.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function eB(e){return typeof e=="function"}function tB(e){const t=rB(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(oB);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function rB(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=aB(o),s=iB(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Hr(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var nB=Symbol("radix.slottable");function oB(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nB}function iB(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 aB(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 sB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=sB.reduce((e,t)=>{const r=tB(`Primitive.${t}`),n=p.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function uv(e,t){e&&os.flushSync(()=>e.dispatchEvent(t))}function lB(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var At=e=>{const{present:t,children:r}=e,n=cB(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),i=ie(n.ref,uB(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:i}):null};At.displayName="Presence";function cB(e){const[t,r]=p.useState(),n=p.useRef(null),o=p.useRef(e),i=p.useRef("none"),a=e?"mounted":"unmounted",[s,l]=lB(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Qs(n.current);i.current=s==="mounted"?c:"none"},[s]),pt(()=>{const c=n.current,u=o.current;if(u!==e){const f=i.current,h=Qs(c);e?l("MOUNT"):h==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&f!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),pt(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=h=>{const m=Qs(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(l("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},f=h=>{h.target===t&&(i.current=Qs(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Qs(e){return e?.animationName||"none"}function uB(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 dB=p[" useId ".trim().toString()]||(()=>{}),fB=0;function Rt(e){const[t,r]=p.useState(dB());return pt(()=>{r(n=>n??String(fB++))},[e]),e||(t?`radix-${t}`:"")}var gu="Collapsible",[pB,DO]=it(gu),[hB,dv]=pB(gu),_O=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,c]=wt({prop:n,defaultProp:o??!1,onChange:a,caller:gu});return b.jsx(hB,{scope:r,disabled:i,contentId:Rt(),open:l,onOpenToggle:p.useCallback(()=>c(u=>!u),[c]),children:b.jsx(ee.div,{"data-state":pv(l),"data-disabled":i?"":void 0,...s,ref:t})})});_O.displayName=gu;var NO="CollapsibleTrigger",jO=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=dv(NO,r);return b.jsx(ee.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":pv(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:U(e.onClick,o.onOpenToggle)})});jO.displayName=NO;var fv="CollapsibleContent",RO=p.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=dv(fv,e.__scopeCollapsible);return b.jsx(At,{present:r||o.open,children:({present:i})=>b.jsx(mB,{...n,ref:t,present:i})})});RO.displayName=fv;var mB=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,a=dv(fv,r),[s,l]=p.useState(n),c=p.useRef(null),u=ie(t,c),d=p.useRef(0),f=d.current,h=p.useRef(0),v=h.current,m=a.open||s,g=p.useRef(m),y=p.useRef(void 0);return p.useEffect(()=>{const w=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(w)},[]),pt(()=>{const w=c.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();d.current=x.height,h.current=x.width,g.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),l(n)}},[a.open,n]),b.jsx(ee.div,{"data-state":pv(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...i,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:m&&o})});function pv(e){return e?"open":"closed"}var vB=_O,gB=jO,yB=RO,bB=p.createContext(void 0);function Ri(e){const t=p.useContext(bB);return e||t||"ltr"}var Pr="Accordion",wB=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[hv,xB,SB]=ji(Pr),[yu]=it(Pr,[SB,DO]),mv=DO(),IO=O.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return b.jsx(hv.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?b.jsx(EB,{...i,ref:t}):b.jsx(OB,{...o,ref:t})})});IO.displayName=Pr;var[LO,PB]=yu(Pr),[$O,CB]=yu(Pr,{collapsible:!1}),OB=O.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,l]=wt({prop:r,defaultProp:n??"",onChange:o,caller:Pr});return b.jsx(LO,{scope:e.__scopeAccordion,value:O.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:O.useCallback(()=>i&&l(""),[i,l]),children:b.jsx($O,{scope:e.__scopeAccordion,collapsible:i,children:b.jsx(FO,{...a,ref:t})})})}),EB=O.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[a,s]=wt({prop:r,defaultProp:n??[],onChange:o,caller:Pr}),l=O.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=O.useCallback(u=>s((d=[])=>d.filter(f=>f!==u)),[s]);return b.jsx(LO,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:b.jsx($O,{scope:e.__scopeAccordion,collapsible:!0,children:b.jsx(FO,{...i,ref:t})})})}),[AB,bu]=yu(Pr),FO=O.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...a}=e,s=O.useRef(null),l=ie(s,t),c=xB(r),d=Ri(o)==="ltr",f=U(e.onKeyDown,h=>{if(!wB.includes(h.key))return;const v=h.target,m=c().filter(A=>!A.ref.current?.disabled),g=m.findIndex(A=>A.ref.current===v),y=m.length;if(g===-1)return;h.preventDefault();let w=g;const x=0,S=y-1,P=()=>{w=g+1,w>S&&(w=x)},C=()=>{w=g-1,w<x&&(w=S)};switch(h.key){case"Home":w=x;break;case"End":w=S;break;case"ArrowRight":i==="horizontal"&&(d?P():C());break;case"ArrowDown":i==="vertical"&&P();break;case"ArrowLeft":i==="horizontal"&&(d?C():P());break;case"ArrowUp":i==="vertical"&&C();break}const E=w%y;m[E].ref.current?.focus()});return b.jsx(AB,{scope:r,disabled:n,direction:o,orientation:i,children:b.jsx(hv.Slot,{scope:r,children:b.jsx(ee.div,{...a,"data-orientation":i,ref:l,onKeyDown:n?void 0:f})})})}),ec="AccordionItem",[TB,vv]=yu(ec),VO=O.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=bu(ec,r),a=PB(ec,r),s=mv(r),l=Rt(),c=n&&a.value.includes(n)||!1,u=i.disabled||e.disabled;return b.jsx(TB,{scope:r,open:c,disabled:u,triggerId:l,children:b.jsx(vB,{"data-orientation":i.orientation,"data-state":HO(c),...s,...o,ref:t,disabled:u,open:c,onOpenChange:d=>{d?a.onItemOpen(n):a.onItemClose(n)}})})});VO.displayName=ec;var BO="AccordionHeader",WO=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=bu(Pr,r),i=vv(BO,r);return b.jsx(ee.h3,{"data-orientation":o.orientation,"data-state":HO(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});WO.displayName=BO;var ph="AccordionTrigger",zO=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=bu(Pr,r),i=vv(ph,r),a=CB(ph,r),s=mv(r);return b.jsx(hv.ItemSlot,{scope:r,children:b.jsx(gB,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...n,ref:t})})});zO.displayName=ph;var KO="AccordionContent",UO=O.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=bu(Pr,r),i=vv(KO,r),a=mv(r);return b.jsx(yB,{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}})});UO.displayName=KO;function HO(e){return e?"open":"closed"}var MB=IO,kB=VO,DB=WO,_B=zO,NB=UO;function GO(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=GO(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ve(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=GO(e))&&(n&&(n+=" "),n+=t);return n}const lw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cw=ve,ne=(e,t)=>r=>{var n;if(t?.variants==null)return cw(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 f=lw(u)||lw(d);return o[c][f]}),s=r&&Object.entries(r).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:f,...h}=u;return Object.entries(h).every(v=>{let[m,g]=v;return Array.isArray(g)?g.includes({...i,...s}[m]):{...i,...s}[m]===g})?[...c,d,f]:c},[]);return cw(e,a,l,r?.class,r?.className)};const YO=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const jB=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const RB=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const uw=e=>{const t=RB(e);return t.charAt(0).toUpperCase()+t.slice(1)};var IB={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 LB=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const $B=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},l)=>O.createElement("svg",{ref:l,...IB,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:YO("lucide",o),...!i&&!LB(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,u])=>O.createElement(c,u)),...Array.isArray(i)?i:[i]]));const Fo=(e,t)=>{const r=O.forwardRef(({className:n,...o},i)=>O.createElement($B,{ref:i,iconNode:t,className:YO(`lucide-${jB(uw(e))}`,`lucide-${e}`,n),...o}));return r.displayName=uw(e),r};const FB=[["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"}]],gv=Fo("calendar",FB);const VB=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],BB=Fo("chevron-down",VB);const WB=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],yv=Fo("chevron-left",WB);const zB=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],bv=Fo("chevron-right",zB);const KB=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],UB=Fo("clock",KB);const HB=[["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"}]],qO=Fo("ellipsis",HB);const GB=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],XO=Fo("x",GB),YB=(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},qB=(e,t)=>({classGroupId:e,validator:t}),ZO=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),tc="-",dw=[],XB="arbitrary..",ZB=e=>{const t=JB(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return QB(a);const s=a.split(tc),l=s[0]===""&&s.length>1?1:0;return QO(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=n[a],c=r[a];return l?c?YB(c,l):l:c||dw}return r[a]||dw}}},QO=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=QO(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const s=t===0?e.join(tc):e.slice(t).join(tc),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(s))return u.classGroupId}},QB=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?XB+n:void 0})(),JB=e=>{const{theme:t,classGroups:r}=e;return eW(r,t)},eW=(e,t)=>{const r=ZO();for(const n in e){const o=e[n];wv(o,r,n,t)}return r},wv=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];tW(a,t,r,n)}},tW=(e,t,r,n)=>{if(typeof e=="string"){rW(e,t,r);return}if(typeof e=="function"){nW(e,t,r,n);return}oW(e,t,r,n)},rW=(e,t,r)=>{const n=e===""?t:JO(t,e);n.classGroupId=r},nW=(e,t,r,n)=>{if(iW(e)){wv(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(qB(r,e))},oW=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];wv(l,JO(t,s),r,n)}},JO=(e,t)=>{let r=e;const n=t.split(tc),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=ZO(),r.nextPart.set(a,s)),r=s}return r},iW=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,aW=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)}}},hh="!",fw=":",sW=[],pw=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),lW=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 g=o[m];if(a===0&&s===0){if(g===fw){i.push(o.slice(l,m)),l=m+1;continue}if(g==="/"){c=m;continue}}g==="["?a++:g==="]"?a--:g==="("?s++:g===")"&&s--}const d=i.length===0?o:o.slice(l);let f=d,h=!1;d.endsWith(hh)?(f=d.slice(0,-1),h=!0):d.startsWith(hh)&&(f=d.slice(1),h=!0);const v=c&&c>l?c-l:void 0;return pw(i,h,f,v)};if(t){const o=t+fw,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):pw(sW,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},cW=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}},uW=e=>({cache:aW(e.cacheSize),parseClassName:lW(e),sortModifiers:cW(e),...ZB(e)}),dW=/\s+/,fW=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(dW);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:f,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let g=!!m,y=n(g?v.substring(0,m):v);if(!y){if(!g){l=u+(l.length>0?" "+l:l);continue}if(y=n(v),!y){l=u+(l.length>0?" "+l:l);continue}g=!1}const w=f.length===0?"":f.length===1?f[0]:i(f).join(":"),x=h?w+hh:w,S=x+y;if(a.indexOf(S)>-1)continue;a.push(S);const P=o(y,g);for(let C=0;C<P.length;++C){const E=P[C];a.push(x+E)}l=u+(l.length>0?" "+l:l)}return l},pW=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=eE(r))&&(o&&(o+=" "),o+=n);return o},eE=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=eE(e[n]))&&(r&&(r+=" "),r+=t);return r},hw=(e,...t)=>{let r,n,o,i;const a=l=>{const c=t.reduce((u,d)=>d(u),e());return r=uW(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=fW(l,r);return o(l,u),u};return i=a,(...l)=>i(pW(...l))},hW=[],rt=e=>{const t=r=>r[e]||hW;return t.isThemeGetter=!0,t},tE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,rE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mW=/^\d+\/\d+$/,vW=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gW=/\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$/,yW=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bW=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qo=e=>mW.test(e),de=e=>!!e&&!Number.isNaN(Number(e)),On=e=>!!e&&Number.isInteger(Number(e)),Zd=e=>e.endsWith("%")&&de(e.slice(0,-1)),qr=e=>vW.test(e),xW=()=>!0,SW=e=>gW.test(e)&&!yW.test(e),nE=()=>!1,PW=e=>bW.test(e),CW=e=>wW.test(e),OW=e=>!X(e)&&!Z(e),EW=e=>Ii(e,aE,nE),X=e=>tE.test(e),ro=e=>Ii(e,sE,SW),Qd=e=>Ii(e,DW,de),mw=e=>Ii(e,oE,nE),AW=e=>Ii(e,iE,CW),Js=e=>Ii(e,lE,PW),Z=e=>rE.test(e),oa=e=>Li(e,sE),TW=e=>Li(e,_W),vw=e=>Li(e,oE),MW=e=>Li(e,aE),kW=e=>Li(e,iE),el=e=>Li(e,lE,!0),Ii=(e,t,r)=>{const n=tE.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Li=(e,t,r=!1)=>{const n=rE.exec(e);return n?n[1]?t(n[1]):r:!1},oE=e=>e==="position"||e==="percentage",iE=e=>e==="image"||e==="url",aE=e=>e==="length"||e==="size"||e==="bg-size",sE=e=>e==="length",DW=e=>e==="number",_W=e=>e==="family-name",lE=e=>e==="shadow",gw=()=>{const e=rt("color"),t=rt("font"),r=rt("text"),n=rt("font-weight"),o=rt("tracking"),i=rt("leading"),a=rt("breakpoint"),s=rt("container"),l=rt("spacing"),c=rt("radius"),u=rt("shadow"),d=rt("inset-shadow"),f=rt("text-shadow"),h=rt("drop-shadow"),v=rt("blur"),m=rt("perspective"),g=rt("aspect"),y=rt("ease"),w=rt("animate"),x=()=>["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"],P=()=>[...S(),Z,X],C=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],A=()=>[Z,X,l],T=()=>[qo,"full","auto",...A()],M=()=>[On,"none","subgrid",Z,X],D=()=>["auto",{span:["full",On,Z,X]},On,Z,X],k=()=>[On,"auto",Z,X],_=()=>["auto","min","max","fr",Z,X],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...A()],V=()=>[qo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],j=()=>[e,Z,X],L=()=>[...S(),vw,mw,{position:[Z,X]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",MW,EW,{size:[Z,X]}],le=()=>[Zd,oa,ro],ae=()=>["","none","full",c,Z,X],oe=()=>["",de,oa,ro],Se=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[de,Zd,vw,mw],fe=()=>["","none",v,Z,X],$=()=>["none",de,Z,X],G=()=>["none",de,Z,X],W=()=>[de,Z,X],F=()=>[qo,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qr],breakpoint:[qr],color:[xW],container:[qr],"drop-shadow":[qr],ease:["in","out","in-out"],font:[OW],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qr],shadow:[qr],spacing:["px",de],text:[qr],"text-shadow":[qr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",qo,X,Z,g]}],container:["container"],columns:[{columns:[de,X,Z,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[On,"auto",Z,X]}],basis:[{basis:[qo,"full","auto",s,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,qo,"auto","initial","none",X]}],grow:[{grow:["",de,Z,X]}],shrink:[{shrink:["",de,Z,X]}],order:[{order:[On,"first","last","none",Z,X]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[s,"screen",...V()]}],"min-w":[{"min-w":[s,"screen","none",...V()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,oa,ro]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Z,Qd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zd,X]}],"font-family":[{font:[TW,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":[de,"none",Z,Qd]}],leading:[{leading:[i,...A()]}],"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:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",Z,ro]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[de,"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:A()}],"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:L()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},On,Z,X],radial:["",Z,X],conic:[On,Z,X]},kW,AW]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"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:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,Z,X]}],"outline-w":[{outline:["",de,oa,ro]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",u,el,Js]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",d,el,Js]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[de,ro]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",f,el,Js]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[de,Z,X]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[de]}],"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":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"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":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"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":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"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":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"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":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"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":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"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":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"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":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":[de]}],"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":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,X]}],filter:[{filter:["","none",Z,X]}],blur:[{blur:fe()}],brightness:[{brightness:[de,Z,X]}],contrast:[{contrast:[de,Z,X]}],"drop-shadow":[{"drop-shadow":["","none",h,el,Js]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",de,Z,X]}],"hue-rotate":[{"hue-rotate":[de,Z,X]}],invert:[{invert:["",de,Z,X]}],saturate:[{saturate:[de,Z,X]}],sepia:[{sepia:["",de,Z,X]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,X]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[de,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[de,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,Z,X]}],"backdrop-invert":[{"backdrop-invert":["",de,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[de,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[de,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":["",de,Z,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"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:[de,"initial",Z,X]}],ease:[{ease:["linear","initial",y,Z,X]}],delay:[{delay:[de,Z,X]}],animate:[{animate:["none",w,Z,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Z,X]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:$()}],"rotate-x":[{"rotate-x":$()}],"rotate-y":[{"rotate-y":$()}],"rotate-z":[{"rotate-z":$()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:W()}],"skew-x":[{"skew-x":W()}],"skew-y":[{"skew-y":W()}],transform:[{transform:[Z,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",...j()]}],"stroke-w":[{stroke:[de,oa,ro,Qd]}],stroke:[{stroke:["none",...j()]}],"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"]}},NW=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(ga(e,"cacheSize",t),ga(e,"prefix",r),ga(e,"experimentalParseClassName",n),tl(e.theme,i.theme),tl(e.classGroups,i.classGroups),tl(e.conflictingClassGroups,i.conflictingClassGroups),tl(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),ga(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),rl(e.theme,o.theme),rl(e.classGroups,o.classGroups),rl(e.conflictingClassGroups,o.conflictingClassGroups),rl(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),cE(e,o,"orderSensitiveModifiers"),e),ga=(e,t,r)=>{r!==void 0&&(e[t]=r)},tl=(e,t)=>{if(t)for(const r in t)ga(e,r,t[r])},rl=(e,t)=>{if(t)for(const r in t)cE(e,t,r)},cE=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},jW=(e,...t)=>typeof e=="function"?hw(gw,e,...t):hw(()=>NW(gw(),e),...t),RW=jW({extend:{classGroups:{"font-size":[{text:["hero","h1","h2","h3","h4","lead","semi-lead","body-lg","body","body-sm","descriptive","small","label","label-sm"]}]}}});function N(...e){return RW(ve(e))}const uE=ne("w-full",{variants:{variant:{default:"",bordered:"border-border rounded-lg border"}},defaultVariants:{variant:"default"}}),dE=p.forwardRef(({className:e,variant:t,...r},n)=>b.jsx(MB,{ref:n,className:N(uE({variant:t}),e),...r}));dE.displayName="Accordion";const fE=p.forwardRef(({className:e,...t},r)=>b.jsx(kB,{ref:r,className:N("border-border border-b last:border-b-0",e),...t}));fE.displayName="AccordionItem";const pE=ne(["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"}}),hE=p.forwardRef(({className:e,children:t,size:r,...n},o)=>b.jsx(DB,{className:"flex",children:b.jsxs(_B,{ref:o,className:N(pE({size:r}),e),...n,children:[t,b.jsx(BB,{className:"text-secondary h-4 w-4 shrink-0 transition-transform duration-200"})]})}));hE.displayName="AccordionTrigger";const mE=p.forwardRef(({className:e,children:t,...r},n)=>b.jsx(NB,{ref:n,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:b.jsx("div",{className:N("text-secondary pt-0 pb-4",e),children:t})}));mE.displayName="AccordionContent";function Et(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>t.current?.(...r),[])}function IW(e,t=globalThis?.document){const r=Et(e);p.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 LW="DismissableLayer",mh="dismissableLayer.update",$W="dismissableLayer.pointerDownOutside",FW="dismissableLayer.focusOutside",yw,vE=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vo=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=p.useContext(vE),[u,d]=p.useState(null),f=u?.ownerDocument??globalThis?.document,[,h]=p.useState({}),v=ie(t,E=>d(E)),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(g),w=u?m.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,P=BW(E=>{const A=E.target,T=[...c.branches].some(M=>M.contains(A));!S||T||(o?.(E),a?.(E),E.defaultPrevented||s?.())},f),C=WW(E=>{const A=E.target;[...c.branches].some(M=>M.contains(A))||(i?.(E),a?.(E),E.defaultPrevented||s?.())},f);return IW(E=>{w===c.layers.size-1&&(n?.(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},f),p.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(yw=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),bw(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=yw)}},[u,f,r,c]),p.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),bw())},[u,c]),p.useEffect(()=>{const E=()=>h({});return document.addEventListener(mh,E),()=>document.removeEventListener(mh,E)},[]),b.jsx(ee.div,{...l,ref:v,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,C.onFocusCapture),onBlurCapture:U(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,P.onPointerDownCapture)})});Vo.displayName=LW;var VW="DismissableLayerBranch",gE=p.forwardRef((e,t)=>{const r=p.useContext(vE),n=p.useRef(null),o=ie(t,n);return p.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),b.jsx(ee.div,{...e,ref:o})});gE.displayName=VW;function BW(e,t=globalThis?.document){const r=Et(e),n=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let l=function(){yE($W,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 WW(e,t=globalThis?.document){const r=Et(e),n=p.useRef(!1);return p.useEffect(()=>{const o=i=>{i.target&&!n.current&&yE(FW,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 bw(){const e=new CustomEvent(mh);document.dispatchEvent(e)}function yE(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?uv(o,i):o.dispatchEvent(i)}var zW=Vo,KW=gE,Jd="focusScope.autoFocusOnMount",ef="focusScope.autoFocusOnUnmount",ww={bubbles:!1,cancelable:!0},UW="FocusScope",is=p.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=p.useState(null),c=Et(o),u=Et(i),d=p.useRef(null),f=ie(t,m=>l(m)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let m=function(x){if(h.paused||!s)return;const S=x.target;s.contains(S)?d.current=S:An(d.current,{select:!0})},g=function(x){if(h.paused||!s)return;const S=x.relatedTarget;S!==null&&(s.contains(S)||An(d.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const P of x)P.removedNodes.length>0&&An(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const w=new MutationObserver(y);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),w.disconnect()}}},[n,s,h.paused]),p.useEffect(()=>{if(s){Sw.add(h);const m=document.activeElement;if(!s.contains(m)){const y=new CustomEvent(Jd,ww);s.addEventListener(Jd,c),s.dispatchEvent(y),y.defaultPrevented||(HW(ZW(bE(s)),{select:!0}),document.activeElement===m&&An(s))}return()=>{s.removeEventListener(Jd,c),setTimeout(()=>{const y=new CustomEvent(ef,ww);s.addEventListener(ef,u),s.dispatchEvent(y),y.defaultPrevented||An(m??document.body,{select:!0}),s.removeEventListener(ef,u),Sw.remove(h)},0)}}},[s,c,u,h]);const v=p.useCallback(m=>{if(!r&&!n||h.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(g&&y){const w=m.currentTarget,[x,S]=GW(w);x&&S?!m.shiftKey&&y===S?(m.preventDefault(),r&&An(x,{select:!0})):m.shiftKey&&y===x&&(m.preventDefault(),r&&An(S,{select:!0})):y===w&&m.preventDefault()}},[r,n,h.paused]);return b.jsx(ee.div,{tabIndex:-1,...a,ref:f,onKeyDown:v})});is.displayName=UW;function HW(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(An(n,{select:t}),document.activeElement!==r)return}function GW(e){const t=bE(e),r=xw(t,e),n=xw(t.reverse(),e);return[r,n]}function bE(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 xw(e,t){for(const r of e)if(!YW(r,{upTo:t}))return r}function YW(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 qW(e){return e instanceof HTMLInputElement&&"select"in e}function An(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&qW(e)&&t&&e.select()}}var Sw=XW();function XW(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Pw(e,t),e.unshift(t)},remove(t){e=Pw(e,t),e[0]?.resume()}}}function Pw(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ZW(e){return e.filter(t=>t.tagName!=="A")}var QW="Portal",Bo=p.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=p.useState(!1);pt(()=>i(!0),[]);const a=r||o&&globalThis?.document?.body;return a?ns.createPortal(b.jsx(ee.div,{...n,ref:t}),a):null});Bo.displayName=QW;var tf=0;function wu(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Cw()),document.body.insertAdjacentElement("beforeend",e[1]??Cw()),tf++,()=>{tf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),tf--}},[])}function Cw(){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 _r=function(){return _r=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},_r.apply(this,arguments)};function wE(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 JW(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 $l="right-scroll-bar-position",Fl="width-before-scroll-bar",ez="with-scroll-bars-hidden",tz="--removed-body-scroll-bar-size";function rf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rz(e,t){var r=O.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 nz=typeof window<"u"?p.useLayoutEffect:p.useEffect,Ow=new WeakMap;function oz(e,t){var r=rz(null,function(n){return e.forEach(function(o){return rf(o,n)})});return nz(function(){var n=Ow.get(r);if(n){var o=new Set(n),i=new Set(e),a=r.current;o.forEach(function(s){i.has(s)||rf(s,null)}),i.forEach(function(s){o.has(s)||rf(s,a)})}Ow.set(r,e)},[e]),r}function iz(e){return e}function az(e,t){t===void 0&&(t=iz);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 sz(e){e===void 0&&(e={});var t=az(null);return t.options=_r({async:!0,ssr:!1},e),t}var xE=function(e){var t=e.sideCar,r=wE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return p.createElement(n,_r({},r))};xE.isSideCarExport=!0;function lz(e,t){return e.useMedium(t),xE}var SE=sz(),nf=function(){},xu=p.forwardRef(function(e,t){var r=p.useRef(null),n=p.useState({onScrollCapture:nf,onWheelCapture:nf,onTouchMoveCapture:nf}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,v=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,x=e.gapMode,S=wE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=f,C=oz([r,t]),E=_r(_r({},S),o);return p.createElement(p.Fragment,null,u&&p.createElement(P,{sideCar:SE,removeScrollBar:c,shards:d,noRelative:h,noIsolation:v,inert:m,setCallbacks:i,allowPinchZoom:!!g,lockRef:r,gapMode:x}),a?p.cloneElement(p.Children.only(s),_r(_r({},E),{ref:C})):p.createElement(w,_r({},E,{className:l,ref:C}),s))});xu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xu.classNames={fullWidth:Fl,zeroRight:$l};var cz=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uz(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cz();return t&&e.setAttribute("nonce",t),e}function dz(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function fz(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var pz=function(){var e=0,t=null;return{add:function(r){e==0&&(t=uz())&&(dz(t,r),fz(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hz=function(){var e=pz();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},PE=function(){var e=hz(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},mz={left:0,top:0,right:0,gap:0},of=function(e){return parseInt(e||"",10)||0},vz=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[of(r),of(n),of(o)]},gz=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return mz;var t=vz(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])}},yz=PE(),vi="data-scroll-locked",bz=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(ez,` {
3
3
  overflow: hidden `).concat(n,`;
4
4
  padding-right: `).concat(s,"px ").concat(n,`;
5
5
  }
6
- body[`).concat(zo,`] {
6
+ body[`).concat(vi,`] {
7
7
  overflow: hidden `).concat(n,`;
8
8
  overscroll-behavior: contain;
9
9
  `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
@@ -16,93 +16,93 @@
16
16
  `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
17
17
  }
18
18
 
19
- .`).concat(Zs,` {
19
+ .`).concat($l,` {
20
20
  right: `).concat(s,"px ").concat(n,`;
21
21
  }
22
22
 
23
- .`).concat(Js,` {
23
+ .`).concat(Fl,` {
24
24
  margin-right: `).concat(s,"px ").concat(n,`;
25
25
  }
26
26
 
27
- .`).concat(Zs," .").concat(Zs,` {
27
+ .`).concat($l," .").concat($l,` {
28
28
  right: 0 `).concat(n,`;
29
29
  }
30
30
 
31
- .`).concat(Js," .").concat(Js,` {
31
+ .`).concat(Fl," .").concat(Fl,` {
32
32
  margin-right: 0 `).concat(n,`;
33
33
  }
34
34
 
35
- body[`).concat(zo,`] {
36
- `).concat(WF,": ").concat(s,`px;
35
+ body[`).concat(vi,`] {
36
+ `).concat(tz,": ").concat(s,`px;
37
37
  }
38
- `)},fb=function(){var e=parseInt(document.body.getAttribute(zo)||"0",10);return isFinite(e)?e:0},lB=function(){p.useEffect(function(){return document.body.setAttribute(zo,(fb()+1).toString()),function(){var e=fb()-1;e<=0?document.body.removeAttribute(zo):document.body.setAttribute(zo,e.toString())}},[])},cB=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;lB();var i=p.useMemo(function(){return iB(o)},[o]);return p.createElement(aB,{styles:sB(i,!t,o,r?"":"!important")})},bp=!1;if(typeof window<"u")try{var vs=Object.defineProperty({},"passive",{get:function(){return bp=!0,!0}});window.addEventListener("test",vs,vs),window.removeEventListener("test",vs,vs)}catch{bp=!1}var Eo=bp?{passive:!1}:!1,uB=function(e){return e.tagName==="TEXTAREA"},r1=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!uB(e)&&r[t]==="visible")},dB=function(e){return r1(e,"overflowY")},fB=function(e){return r1(e,"overflowX")},pb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=n1(e,n);if(o){var i=o1(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},pB=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},hB=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},n1=function(e,t){return e==="v"?dB(t):fB(t)},o1=function(e,t){return e==="v"?pB(t):hB(t)},mB=function(e,t){return e==="h"&&t==="rtl"?-1:1},vB=function(e,t,r,n,o){var i=mB(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{if(!s)break;var h=o1(e,s),v=h[0],m=h[1],g=h[2],y=m-g-i*v;(v||y)&&n1(e,s)&&(d+=y,f+=v);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(f)<1)&&(c=!0),c},gs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hb=function(e){return[e.deltaX,e.deltaY]},mb=function(e){return e&&"current"in e?e.current:e},gB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yB=function(e){return`
38
+ `)},Ew=function(){var e=parseInt(document.body.getAttribute(vi)||"0",10);return isFinite(e)?e:0},wz=function(){p.useEffect(function(){return document.body.setAttribute(vi,(Ew()+1).toString()),function(){var e=Ew()-1;e<=0?document.body.removeAttribute(vi):document.body.setAttribute(vi,e.toString())}},[])},xz=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;wz();var i=p.useMemo(function(){return gz(o)},[o]);return p.createElement(yz,{styles:bz(i,!t,o,r?"":"!important")})},vh=!1;if(typeof window<"u")try{var nl=Object.defineProperty({},"passive",{get:function(){return vh=!0,!0}});window.addEventListener("test",nl,nl),window.removeEventListener("test",nl,nl)}catch{vh=!1}var Xo=vh?{passive:!1}:!1,Sz=function(e){return e.tagName==="TEXTAREA"},CE=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Sz(e)&&r[t]==="visible")},Pz=function(e){return CE(e,"overflowY")},Cz=function(e){return CE(e,"overflowX")},Aw=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=OE(e,n);if(o){var i=EE(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Oz=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Ez=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},OE=function(e,t){return e==="v"?Pz(t):Cz(t)},EE=function(e,t){return e==="v"?Oz(t):Ez(t)},Az=function(e,t){return e==="h"&&t==="rtl"?-1:1},Tz=function(e,t,r,n,o){var i=Az(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{if(!s)break;var h=EE(e,s),v=h[0],m=h[1],g=h[2],y=m-g-i*v;(v||y)&&OE(e,s)&&(d+=y,f+=v);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},ol=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tw=function(e){return[e.deltaX,e.deltaY]},Mw=function(e){return e&&"current"in e?e.current:e},Mz=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kz=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},bB=0,Oo=[];function xB(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),o=p.useState(bB++)[0],i=p.useState(t1)[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=BF([e.lockRef.current],(e.shards||[]).map(mb),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var y=gs(m),x=r.current,w="deltaX"in m?m.deltaX:x[0]-y[0],S="deltaY"in m?m.deltaY:x[1]-y[1],P,C=m.target,E=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in m&&E==="h"&&C.type==="range")return!1;var A=window.getSelection(),_=A&&A.anchorNode,D=_?_===C||_.contains(C):!1;if(D)return!1;var R=pb(E,C);if(!R)return!0;if(R?P=E:(P=E==="v"?"h":"v",R=pb(E,C)),!R)return!1;if(!n.current&&"changedTouches"in m&&(w||S)&&(n.current=P),!P)return!0;var T=n.current||P;return vB(T,g,m,T==="h"?w:S)},[]),l=p.useCallback(function(m){var g=m;if(!(!Oo.length||Oo[Oo.length-1]!==i)){var y="deltaY"in g?hb(g):gs(g),x=t.current.filter(function(P){return P.name===g.type&&(P.target===g.target||g.target===P.shadowParent)&&gB(P.delta,y)})[0];if(x&&x.should){g.cancelable&&g.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(mb).filter(Boolean).filter(function(P){return P.contains(g.target)}),S=w.length>0?s(g,w[0]):!a.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),c=p.useCallback(function(m,g,y,x){var w={name:m,delta:g,target:y,should:x,shadowParent:wB(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),u=p.useCallback(function(m){r.current=gs(m),n.current=void 0},[]),d=p.useCallback(function(m){c(m.type,hb(m),m.target,s(m,e.lockRef.current))},[]),f=p.useCallback(function(m){c(m.type,gs(m),m.target,s(m,e.lockRef.current))},[]);p.useEffect(function(){return Oo.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Eo),document.addEventListener("touchmove",l,Eo),document.addEventListener("touchstart",u,Eo),function(){Oo=Oo.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Eo),document.removeEventListener("touchmove",l,Eo),document.removeEventListener("touchstart",u,Eo)}},[]);var h=e.removeScrollBar,v=e.inert;return p.createElement(p.Fragment,null,v?p.createElement(i,{styles:yB(o)}):null,h?p.createElement(cB,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wB(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SB=XF(e1,xB);var Ca=p.forwardRef(function(e,t){return p.createElement(Ic,hr({},e,{ref:t,sideCar:SB}))});Ca.classNames=Ic.classNames;var PB=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ao=new WeakMap,ys=new WeakMap,bs={},pd=0,i1=function(e){return e&&(e.host||i1(e.parentNode))},CB=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=i1(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})},EB=function(e,t,r,n){var o=CB(t,Array.isArray(e)?e:[e]);bs[r]||(bs[r]=new WeakMap);var i=bs[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(f){if(s.has(f))u(f);else try{var h=f.getAttribute(n),v=h!==null&&h!=="false",m=(Ao.get(f)||0)+1,g=(i.get(f)||0)+1;Ao.set(f,m),i.set(f,g),a.push(f),m===1&&v&&ys.set(f,!0),g===1&&f.setAttribute(r,"true"),v||f.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return u(t),s.clear(),pd++,function(){a.forEach(function(d){var f=Ao.get(d)-1,h=i.get(d)-1;Ao.set(d,f),i.set(d,h),f||(ys.has(d)||d.removeAttribute(n),ys.delete(d)),h||d.removeAttribute(r)}),pd--,pd||(Ao=new WeakMap,Ao=new WeakMap,ys=new WeakMap,bs={})}},Nc=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=PB(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),EB(n,o,r,"aria-hidden")):function(){return null}};function OB(e){const t=AB(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(_B);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function AB(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=jB(o),s=MB(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Ar(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var TB=Symbol("radix.slottable");function _B(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===TB}function MB(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 jB(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 Lc="Dialog",[a1,s1]=Ge(Lc),[DB,sr]=a1(Lc),l1=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=p.useRef(null),l=p.useRef(null),[c,u]=ut({prop:n,defaultProp:o??!1,onChange:i,caller:Lc});return b.jsx(DB,{scope:t,triggerRef:s,contentRef:l,contentId:Ct(),titleId:Ct(),descriptionId:Ct(),open:c,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(d=>!d),[u]),modal:a,children:r})};l1.displayName=Lc;var c1="DialogTrigger",u1=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sr(c1,r),i=ne(t,o.triggerRef);return b.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Sm(o.open),...n,ref:i,onClick:U(e.onClick,o.onOpenToggle)})});u1.displayName=c1;var xm="DialogPortal",[RB,d1]=a1(xm,{forceMount:void 0}),f1=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=sr(xm,t);return b.jsx(RB,{scope:t,forceMount:r,children:p.Children.map(n,a=>b.jsx(vt,{present:r||i.open,children:b.jsx(vo,{asChild:!0,container:o,children:a})}))})};f1.displayName=xm;var ml="DialogOverlay",p1=p.forwardRef((e,t)=>{const r=d1(ml,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=sr(ml,e.__scopeDialog);return i.modal?b.jsx(vt,{present:n||i.open,children:b.jsx(IB,{...o,ref:t})}):null});p1.displayName=ml;var kB=OB("DialogOverlay.RemoveScroll"),IB=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sr(ml,r);return b.jsx(Ca,{as:kB,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(ee.div,{"data-state":Sm(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),eo="DialogContent",h1=p.forwardRef((e,t)=>{const r=d1(eo,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=sr(eo,e.__scopeDialog);return b.jsx(vt,{present:n||i.open,children:i.modal?b.jsx(NB,{...o,ref:t}):b.jsx(LB,{...o,ref:t})})});h1.displayName=eo;var NB=p.forwardRef((e,t)=>{const r=sr(eo,e.__scopeDialog),n=p.useRef(null),o=ne(t,r.contentRef,n);return p.useEffect(()=>{const i=n.current;if(i)return Nc(i)},[]),b.jsx(m1,{...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())})}),LB=p.forwardRef((e,t)=>{const r=sr(eo,e.__scopeDialog),n=p.useRef(!1),o=p.useRef(!1);return b.jsx(m1,{...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()}})}),m1=p.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=sr(eo,r),l=p.useRef(null),c=ne(t,l);return kc(),b.jsxs(b.Fragment,{children:[b.jsx(Pa,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(mo,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Sm(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(VB,{titleId:s.titleId}),b.jsx(BB,{contentRef:l,descriptionId:s.descriptionId})]})]})}),wm="DialogTitle",v1=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sr(wm,r);return b.jsx(ee.h2,{id:o.titleId,...n,ref:t})});v1.displayName=wm;var g1="DialogDescription",y1=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sr(g1,r);return b.jsx(ee.p,{id:o.descriptionId,...n,ref:t})});y1.displayName=g1;var b1="DialogClose",x1=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=sr(b1,r);return b.jsx(ee.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});x1.displayName=b1;function Sm(e){return e?"open":"closed"}var w1="DialogTitleWarning",[$B,S1]=R$(w1,{contentName:eo,titleName:wm,docsSlug:"dialog"}),VB=({titleId:e})=>{const t=S1(w1),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},Dz=0,Zo=[];function _z(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),o=p.useState(Dz++)[0],i=p.useState(PE)[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=JW([e.lockRef.current],(e.shards||[]).map(Mw),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var y=ol(m),w=r.current,x="deltaX"in m?m.deltaX:w[0]-y[0],S="deltaY"in m?m.deltaY:w[1]-y[1],P,C=m.target,E=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in m&&E==="h"&&C.type==="range")return!1;var A=window.getSelection(),T=A&&A.anchorNode,M=T?T===C||T.contains(C):!1;if(M)return!1;var D=Aw(E,C);if(!D)return!0;if(D?P=E:(P=E==="v"?"h":"v",D=Aw(E,C)),!D)return!1;if(!n.current&&"changedTouches"in m&&(x||S)&&(n.current=P),!P)return!0;var k=n.current||P;return Tz(k,g,m,k==="h"?x:S)},[]),l=p.useCallback(function(m){var g=m;if(!(!Zo.length||Zo[Zo.length-1]!==i)){var y="deltaY"in g?Tw(g):ol(g),w=t.current.filter(function(P){return P.name===g.type&&(P.target===g.target||g.target===P.shadowParent)&&Mz(P.delta,y)})[0];if(w&&w.should){g.cancelable&&g.preventDefault();return}if(!w){var x=(a.current.shards||[]).map(Mw).filter(Boolean).filter(function(P){return P.contains(g.target)}),S=x.length>0?s(g,x[0]):!a.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),c=p.useCallback(function(m,g,y,w){var x={name:m,delta:g,target:y,should:w,shadowParent:Nz(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),u=p.useCallback(function(m){r.current=ol(m),n.current=void 0},[]),d=p.useCallback(function(m){c(m.type,Tw(m),m.target,s(m,e.lockRef.current))},[]),f=p.useCallback(function(m){c(m.type,ol(m),m.target,s(m,e.lockRef.current))},[]);p.useEffect(function(){return Zo.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Xo),document.addEventListener("touchmove",l,Xo),document.addEventListener("touchstart",u,Xo),function(){Zo=Zo.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Xo),document.removeEventListener("touchmove",l,Xo),document.removeEventListener("touchstart",u,Xo)}},[]);var h=e.removeScrollBar,v=e.inert;return p.createElement(p.Fragment,null,v?p.createElement(i,{styles:kz(o)}):null,h?p.createElement(xz,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Nz(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const jz=lz(SE,_z);var as=p.forwardRef(function(e,t){return p.createElement(xu,_r({},e,{ref:t,sideCar:jz}))});as.classNames=xu.classNames;var Rz=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qo=new WeakMap,il=new WeakMap,al={},af=0,AE=function(e){return e&&(e.host||AE(e.parentNode))},Iz=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=AE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Lz=function(e,t,r,n){var o=Iz(t,Array.isArray(e)?e:[e]);al[r]||(al[r]=new WeakMap);var i=al[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(f){if(s.has(f))u(f);else try{var h=f.getAttribute(n),v=h!==null&&h!=="false",m=(Qo.get(f)||0)+1,g=(i.get(f)||0)+1;Qo.set(f,m),i.set(f,g),a.push(f),m===1&&v&&il.set(f,!0),g===1&&f.setAttribute(r,"true"),v||f.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return u(t),s.clear(),af++,function(){a.forEach(function(d){var f=Qo.get(d)-1,h=i.get(d)-1;Qo.set(d,f),i.set(d,h),f||(il.has(d)||d.removeAttribute(n),il.delete(d)),h||d.removeAttribute(r)}),af--,af||(Qo=new WeakMap,Qo=new WeakMap,il=new WeakMap,al={})}},Su=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Rz(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Lz(n,o,r,"aria-hidden")):function(){return null}};function $z(e){const t=Fz(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(Bz);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function Fz(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=zz(o),s=Wz(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Hr(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vz=Symbol("radix.slottable");function Bz(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vz}function Wz(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function zz(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Pu="Dialog",[TE,ME]=it(Pu),[Kz,Cr]=TE(Pu),kE=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=p.useRef(null),l=p.useRef(null),[c,u]=wt({prop:n,defaultProp:o??!1,onChange:i,caller:Pu});return b.jsx(Kz,{scope:t,triggerRef:s,contentRef:l,contentId:Rt(),titleId:Rt(),descriptionId:Rt(),open:c,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(d=>!d),[u]),modal:a,children:r})};kE.displayName=Pu;var DE="DialogTrigger",_E=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Cr(DE,r),i=ie(t,o.triggerRef);return b.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Pv(o.open),...n,ref:i,onClick:U(e.onClick,o.onOpenToggle)})});_E.displayName=DE;var xv="DialogPortal",[Uz,NE]=TE(xv,{forceMount:void 0}),jE=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Cr(xv,t);return b.jsx(Uz,{scope:t,forceMount:r,children:p.Children.map(n,a=>b.jsx(At,{present:r||i.open,children:b.jsx(Bo,{asChild:!0,container:o,children:a})}))})};jE.displayName=xv;var rc="DialogOverlay",RE=p.forwardRef((e,t)=>{const r=NE(rc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Cr(rc,e.__scopeDialog);return i.modal?b.jsx(At,{present:n||i.open,children:b.jsx(Gz,{...o,ref:t})}):null});RE.displayName=rc;var Hz=$z("DialogOverlay.RemoveScroll"),Gz=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Cr(rc,r);return b.jsx(as,{as:Hz,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(ee.div,{"data-state":Pv(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Eo="DialogContent",IE=p.forwardRef((e,t)=>{const r=NE(Eo,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Cr(Eo,e.__scopeDialog);return b.jsx(At,{present:n||i.open,children:i.modal?b.jsx(Yz,{...o,ref:t}):b.jsx(qz,{...o,ref:t})})});IE.displayName=Eo;var Yz=p.forwardRef((e,t)=>{const r=Cr(Eo,e.__scopeDialog),n=p.useRef(null),o=ie(t,r.contentRef,n);return p.useEffect(()=>{const i=n.current;if(i)return Su(i)},[]),b.jsx(LE,{...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())})}),qz=p.forwardRef((e,t)=>{const r=Cr(Eo,e.__scopeDialog),n=p.useRef(!1),o=p.useRef(!1);return b.jsx(LE,{...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()}})}),LE=p.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Cr(Eo,r),l=p.useRef(null),c=ie(t,l);return wu(),b.jsxs(b.Fragment,{children:[b.jsx(is,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Vo,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Pv(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(Zz,{titleId:s.titleId}),b.jsx(Jz,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Sv="DialogTitle",$E=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Cr(Sv,r);return b.jsx(ee.h2,{id:o.titleId,...n,ref:t})});$E.displayName=Sv;var FE="DialogDescription",VE=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Cr(FE,r);return b.jsx(ee.p,{id:o.descriptionId,...n,ref:t})});VE.displayName=FE;var BE="DialogClose",WE=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Cr(BE,r);return b.jsx(ee.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});WE.displayName=BE;function Pv(e){return e?"open":"closed"}var zE="DialogTitleWarning",[Xz,KE]=UV(zE,{contentName:Eo,titleName:Sv,docsSlug:"dialog"}),Zz=({titleId:e})=>{const t=KE(zE),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 p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},FB="DialogDescriptionWarning",BB=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${S1(FB).contentName}}.`;return p.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},P1=l1,C1=u1,E1=f1,O1=p1,A1=h1,T1=v1,_1=y1,$c=x1,zB=Symbol("radix.slottable");function WB(e){const t=({children:r})=>b.jsx(b.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=zB,t}var M1="AlertDialog",[KB]=Ge(M1,[s1]),Gr=s1(),j1=e=>{const{__scopeAlertDialog:t,...r}=e,n=Gr(t);return b.jsx(P1,{...n,...r,modal:!0})};j1.displayName=M1;var UB="AlertDialogTrigger",D1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Gr(r);return b.jsx(C1,{...o,...n,ref:t})});D1.displayName=UB;var HB="AlertDialogPortal",R1=e=>{const{__scopeAlertDialog:t,...r}=e,n=Gr(t);return b.jsx(E1,{...n,...r})};R1.displayName=HB;var GB="AlertDialogOverlay",k1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Gr(r);return b.jsx(O1,{...o,...n,ref:t})});k1.displayName=GB;var Wo="AlertDialogContent",[qB,YB]=KB(Wo),XB=WB("AlertDialogContent"),I1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=Gr(r),a=p.useRef(null),s=ne(t,a),l=p.useRef(null);return b.jsx($B,{contentName:Wo,titleName:N1,docsSlug:"alert-dialog",children:b.jsx(qB,{scope:r,cancelRef:l,children:b.jsxs(A1,{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:[b.jsx(XB,{children:n}),b.jsx(JB,{contentRef:a})]})})})});I1.displayName=Wo;var N1="AlertDialogTitle",L1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Gr(r);return b.jsx(T1,{...o,...n,ref:t})});L1.displayName=N1;var $1="AlertDialogDescription",V1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Gr(r);return b.jsx(_1,{...o,...n,ref:t})});V1.displayName=$1;var ZB="AlertDialogAction",F1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Gr(r);return b.jsx($c,{...o,...n,ref:t})});F1.displayName=ZB;var B1="AlertDialogCancel",z1=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=YB(B1,r),i=Gr(r),a=ne(t,o);return b.jsx($c,{...i,...n,ref:a})});z1.displayName=B1;var JB=({contentRef:e})=>{const t=`\`${Wo}\` 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 p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Qz="DialogDescriptionWarning",Jz=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${KE(Qz).contentName}}.`;return p.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},UE=kE,HE=_E,GE=jE,YE=RE,qE=IE,XE=$E,ZE=VE,Cu=WE,e3=Symbol("radix.slottable");function t3(e){const t=({children:r})=>b.jsx(b.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=e3,t}var QE="AlertDialog",[r3]=it(QE,[ME]),vn=ME(),JE=e=>{const{__scopeAlertDialog:t,...r}=e,n=vn(t);return b.jsx(UE,{...n,...r,modal:!0})};JE.displayName=QE;var n3="AlertDialogTrigger",eA=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=vn(r);return b.jsx(HE,{...o,...n,ref:t})});eA.displayName=n3;var o3="AlertDialogPortal",tA=e=>{const{__scopeAlertDialog:t,...r}=e,n=vn(t);return b.jsx(GE,{...n,...r})};tA.displayName=o3;var i3="AlertDialogOverlay",rA=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=vn(r);return b.jsx(YE,{...o,...n,ref:t})});rA.displayName=i3;var gi="AlertDialogContent",[a3,s3]=r3(gi),l3=t3("AlertDialogContent"),nA=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=vn(r),a=p.useRef(null),s=ie(t,a),l=p.useRef(null);return b.jsx(Xz,{contentName:gi,titleName:oA,docsSlug:"alert-dialog",children:b.jsx(a3,{scope:r,cancelRef:l,children:b.jsxs(qE,{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:[b.jsx(l3,{children:n}),b.jsx(u3,{contentRef:a})]})})})});nA.displayName=gi;var oA="AlertDialogTitle",iA=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=vn(r);return b.jsx(XE,{...o,...n,ref:t})});iA.displayName=oA;var aA="AlertDialogDescription",sA=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=vn(r);return b.jsx(ZE,{...o,...n,ref:t})});sA.displayName=aA;var c3="AlertDialogAction",lA=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=vn(r);return b.jsx(Cu,{...o,...n,ref:t})});lA.displayName=c3;var cA="AlertDialogCancel",uA=p.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=s3(cA,r),i=vn(r),a=ie(t,o);return b.jsx(Cu,{...i,...n,ref:a})});uA.displayName=cA;var u3=({contentRef:e})=>{const t=`\`${gi}\` requires a description for the component to be accessible for screen reader users.
46
46
 
47
- You can add a description to the \`${Wo}\` by passing a \`${$1}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
47
+ You can add a description to the \`${gi}\` by passing a \`${aA}\` 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 \`${Wo}\`. 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 \`${gi}\`. 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 p.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},QB=j1,ez=D1,tz=R1,rz=k1,nz=I1,oz=F1,iz=z1,az=L1,sz=V1,lz=Symbol.for("react.lazy"),vl=p[" use ".trim().toString()];function cz(e){return typeof e=="object"&&e!==null&&"then"in e}function W1(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===lz&&"_payload"in e&&cz(e._payload)}function K1(e){const t=uz(e),r=p.forwardRef((n,o)=>{let{children:i,...a}=n;W1(i)&&typeof vl=="function"&&(i=vl(i._payload));const s=p.Children.toArray(i),l=s.find(fz);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Oe=K1("Slot");function uz(e){const t=p.forwardRef((r,n)=>{let{children:o,...i}=r;if(W1(o)&&typeof vl=="function"&&(o=vl(o._payload)),p.isValidElement(o)){const a=hz(o),s=pz(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Ar(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dz=Symbol("radix.slottable");function fz(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dz}function pz(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 hz(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 Vc=re("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-alt text-primary active:bg-contrast hover:bg-main border",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"}}),Pm=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"button";return b.jsx(a,{className:L(Vc({variant:t,size:r,className:e})),ref:i,...o})});Pm.displayName="Button";const mz=QB,vz=ez,U1=tz,Cm=p.forwardRef(({className:e,...t},r)=>b.jsx(rz,{ref:r,className:L("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}));Cm.displayName="AlertDialogOverlay";const H1=re(["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"}}),G1=p.forwardRef(({className:e,size:t,...r},n)=>b.jsxs(U1,{children:[b.jsx(Cm,{}),b.jsx(nz,{ref:n,className:L(H1({size:t}),e),...r})]}));G1.displayName="AlertDialogContent";const q1=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:L("flex flex-col space-y-2 text-center sm:text-left",e),...t}));q1.displayName="AlertDialogHeader";const Y1=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:L("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));Y1.displayName="AlertDialogFooter";const X1=p.forwardRef(({className:e,...t},r)=>b.jsx(az,{ref:r,className:L("text-primary text-lg leading-none tracking-tight",e),...t}));X1.displayName="AlertDialogTitle";const Z1=p.forwardRef(({className:e,...t},r)=>b.jsx(sz,{ref:r,className:L("text-secondary text-sm",e),...t}));Z1.displayName="AlertDialogDescription";const J1=p.forwardRef(({className:e,variant:t="primary",size:r="default",...n},o)=>b.jsx(oz,{ref:o,className:L(Vc({variant:t,size:r}),e),...n}));J1.displayName="AlertDialogAction";const Q1=p.forwardRef(({className:e,variant:t="secondary",size:r="default",...n},o)=>b.jsx(iz,{ref:o,className:L(Vc({variant:t,size:r}),"mt-2 sm:mt-0",e),...n}));Q1.displayName="AlertDialogCancel";const eO=re("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"}}),tO=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"span";return b.jsx(a,{className:L(eO({variant:t,size:r,className:e})),ref:i,...o})});tO.displayName="Badge";const rO=re("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"}}),nO=p.forwardRef(({className:e,variant:t,align:r,asChild:n=!1,icon:o,action:i,onDismiss:a,children:s,...l},c)=>{const u=n?Oe:"div";return b.jsxs(u,{role:"alert",className:L(rO({variant:t,align:r,className:e})),ref:c,...l,children:[o&&b.jsx("span",{className:"shrink-0",children:o}),b.jsx("span",{className:"flex-1",children:s}),i&&b.jsx("span",{className:"shrink-0",children:i}),a&&b.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:b.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:[b.jsx("path",{d:"M18 6 6 18"}),b.jsx("path",{d:"m6 6 12 12"})]})})]})});nO.displayName="Banner";var gz=["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 Em(e){if(typeof e!="string")return!1;var t=gz;return t.includes(e)}var yz=["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"],bz=new Set(yz);function oO(e){return typeof e!="string"?!1:bz.has(e)}function iO(e){return typeof e=="string"&&e.startsWith("data-")}function Lt(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(oO(r)||iO(r))&&(t[r]=e[r]);return t}function to(e){if(e==null)return null;if(O.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Lt(t)}return typeof e=="object"&&!Array.isArray(e)?Lt(e):null}function Et(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(oO(r)||iO(r)||Em(r))&&(t[r]=e[r]);return t}function xz(e){return e==null?null:O.isValidElement(e)?Et(e.props):typeof e=="object"&&!Array.isArray(e)?Et(e):null}var wz=["children","width","height","viewBox","className","style","title","desc"];function xp(){return xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xp.apply(null,arguments)}function Sz(e,t){if(e==null)return{};var r,n,o=Pz(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 Pz(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 Om=O.forwardRef((e,t)=>{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=Sz(e,wz),d=i||{width:n,height:o,x:0,y:0},f=fe("recharts-surface",a);return p.createElement("svg",xp({},Et(u),{className:f,width:n,height:o,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),p.createElement("title",null,l),p.createElement("desc",null,c),r)}),Cz=["children","className"];function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wp.apply(null,arguments)}function Ez(e,t){if(e==null)return{};var r,n,o=Oz(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 Oz(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 rt=p.forwardRef((e,t)=>{var{children:r,className:n}=e,o=Ez(e,Cz),i=fe("recharts-layer",n);return p.createElement("g",wp({className:i},Et(o),{ref:t}),r)}),aO=O.createContext(null),Az=()=>O.useContext(aO);function Se(e){return function(){return e}}const sO=Math.cos,gl=Math.sin,lr=Math.sqrt,yl=Math.PI,Fc=2*yl,Sp=Math.PI,Pp=2*Sp,Ln=1e-6,Tz=Pp-Ln;function lO(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function _z(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lO;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 Mz{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?lO:_z(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,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>Ln)if(!(Math.abs(d*l-c*u)>Ln)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-a,v=o-s,m=l*l+c*c,g=h*h+v*v,y=Math.sqrt(m),x=Math.sqrt(f),w=i*Math.tan((Sp-Math.acos((m+f-g)/(2*y*x)))/2),S=w/x,P=w/y;Math.abs(S-1)>Ln&&this._append`L${t+S*u},${r+S*d}`,this._append`A${i},${i},0,0,${+(d*h>u*v)},${this._x1=t+P*l},${this._y1=r+P*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,f=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ln||Math.abs(this._y1-u)>Ln)&&this._append`L${c},${u}`,n&&(f<0&&(f=f%Pp+Pp),f>Tz?this._append`A${n},${n},0,1,${d},${t-s},${r-l}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:f>Ln&&this._append`A${n},${n},0,${+(f>=Sp)},${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 Am(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 Mz(t)}function Tm(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cO(e){this._context=e}cO.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 Bc(e){return new cO(e)}function uO(e){return e[0]}function dO(e){return e[1]}function fO(e,t){var r=Se(!0),n=null,o=Bc,i=null,a=Am(s);e=typeof e=="function"?e:e===void 0?uO:Se(e),t=typeof t=="function"?t:t===void 0?dO:Se(t);function s(l){var c,u=(l=Tm(l)).length,d,f=!1,h;for(n==null&&(i=o(h=a())),c=0;c<=u;++c)!(c<u&&r(d=l[c],c,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,c,l),+t(d,c,l));if(h)return i=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Se(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Se(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Se(!!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 xs(e,t,r){var n=null,o=Se(!0),i=null,a=Bc,s=null,l=Am(c);e=typeof e=="function"?e:e===void 0?uO:Se(+e),t=typeof t=="function"?t:Se(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?dO:Se(+r);function c(d){var f,h,v,m=(d=Tm(d)).length,g,y=!1,x,w=new Array(m),S=new Array(m);for(i==null&&(s=a(x=l())),f=0;f<=m;++f){if(!(f<m&&o(g=d[f],f,d))===y)if(y=!y)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),v=f-1;v>=h;--v)s.point(w[v],S[v]);s.lineEnd(),s.areaEnd()}y&&(w[f]=+e(g,f,d),S[f]=+t(g,f,d),s.point(n?+n(g,f,d):w[f],r?+r(g,f,d):S[f]))}if(x)return s=null,x+""||null}function u(){return fO().defined(o).curve(a).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Se(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Se(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Se(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:Se(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Se(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Se(+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:Se(!!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 pO{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 jz(e){return new pO(e,!0)}function Dz(e){return new pO(e,!1)}const _m={draw(e,t){const r=lr(t/yl);e.moveTo(r,0),e.arc(0,0,r,0,Fc)}},Rz={draw(e,t){const r=lr(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()}},hO=lr(1/3),kz=hO*2,Iz={draw(e,t){const r=lr(t/kz),n=r*hO;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Nz={draw(e,t){const r=lr(t),n=-r/2;e.rect(n,n,r,r)}},Lz=.8908130915292852,mO=gl(yl/10)/gl(7*yl/10),$z=gl(Fc/10)*mO,Vz=-sO(Fc/10)*mO,Fz={draw(e,t){const r=lr(t*Lz),n=$z*r,o=Vz*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){const a=Fc*i/5,s=sO(a),l=gl(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}},hd=lr(3),Bz={draw(e,t){const r=-lr(t/(hd*3));e.moveTo(0,r*2),e.lineTo(-hd*r,-r),e.lineTo(hd*r,-r),e.closePath()}},Vt=-.5,Ft=lr(3)/2,Cp=1/lr(12),zz=(Cp/2+1)*3,Wz={draw(e,t){const r=lr(t/zz),n=r/2,o=r*Cp,i=n,a=r*Cp+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Vt*n-Ft*o,Ft*n+Vt*o),e.lineTo(Vt*i-Ft*a,Ft*i+Vt*a),e.lineTo(Vt*s-Ft*l,Ft*s+Vt*l),e.lineTo(Vt*n+Ft*o,Vt*o-Ft*n),e.lineTo(Vt*i+Ft*a,Vt*a-Ft*i),e.lineTo(Vt*s+Ft*l,Vt*l-Ft*s),e.closePath()}};function Kz(e,t){let r=null,n=Am(o);e=typeof e=="function"?e:Se(e||_m),t=typeof t=="function"?t:Se(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:Se(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:Se(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function bl(){}function xl(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 vO(e){this._context=e}vO.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:xl(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:xl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uz(e){return new vO(e)}function gO(e){this._context=e}gO.prototype={areaStart:bl,areaEnd:bl,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:xl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hz(e){return new gO(e)}function yO(e){this._context=e}yO.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:xl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gz(e){return new yO(e)}function bO(e){this._context=e}bO.prototype={areaStart:bl,areaEnd:bl,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 qz(e){return new bO(e)}function vb(e){return e<0?-1:1}function gb(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(vb(i)+vb(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function yb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function md(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 wl(e){this._context=e}wl.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:md(this,this._t0,yb(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,md(this,yb(this,r=gb(this,e,t)),r);break;default:md(this,this._t0,r=gb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function xO(e){this._context=new wO(e)}(xO.prototype=Object.create(wl.prototype)).point=function(e,t){wl.prototype.point.call(this,t,e)};function wO(e){this._context=e}wO.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 Yz(e){return new wl(e)}function Xz(e){return new xO(e)}function SO(e){this._context=e}SO.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=bb(e),o=bb(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 bb(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 Zz(e){return new SO(e)}function zc(e,t){this._context=e,this._t=t}zc.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 Jz(e){return new zc(e,.5)}function Qz(e){return new zc(e,0)}function e3(e){return new zc(e,1)}function ro(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 Ep(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function t3(e,t){return e[t]}function r3(e){const t=[];return t.key=e,t}function n3(){var e=Se([]),t=Ep,r=ro,n=t3;function o(i){var a=Array.from(e.apply(this,arguments),r3),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=Tm(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:Se(Array.from(i)),o):e},o.value=function(i){return arguments.length?(n=typeof i=="function"?i:Se(+i),o):n},o.order=function(i){return arguments.length?(t=i==null?Ep:typeof i=="function"?i:Se(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(r=i??ro,o):r},o}function o3(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}ro(e,t)}}function i3(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}ro(e,t)}}function a3(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,f=u[n-1][1]||0,h=(d-f)/2,v=0;v<s;++v){var m=e[t[v]],g=m[n][1]||0,y=m[n-1][1]||0;h+=g-y}l+=d,c+=h*d}o[n-1][1]+=o[n-1][0]=r,l&&(r-=c/l)}o[n-1][1]+=o[n-1][0]=r,ro(e,t)}}function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vd={},gd={},xb;function s3(){return xb||(xb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(gd)),gd}var yd={},wb;function PO(){return wb||(wb=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})(yd)),yd}var bd={},Sb;function Mm(){return Sb||(Sb=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})(bd)),bd}var xd={},wd={},Pb;function l3(){return Pb||(Pb=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})(wd)),wd}var Cb;function jm(){return Cb||(Cb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=l3(),r=Mm();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})(xd)),xd}var Eb;function Dm(){return Eb||(Eb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=s3(),r=PO(),n=Mm(),o=jm();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})(vd)),vd}var Sd,Ob;function c3(){return Ob||(Ob=1,Sd=Dm().get),Sd}var u3=c3();const no=Pn(u3);var d3=4;function un(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d3,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Ne(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+un(s)+i:o+i},"")}var et=e=>e===0?0:e>0?1:-1,wr=e=>typeof e=="number"&&e!=+e,oo=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,q=e=>(typeof e=="number"||e instanceof Number)&&!wr(e),Sr=e=>q(e)||typeof e=="string",f3=0,Xi=e=>{var t=++f3;return"".concat(e||"").concat(t)},ht=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(oo(t)){if(r==null)return n;var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return wr(i)&&(i=n),o&&r!=null&&i>r&&(i=r),i},CO=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 _e(e,t,r){return q(e)&&q(t)?un(e+r*(t-e)):t}function EO(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):no(n,t))===r)}var Re=e=>e===null||typeof e>"u",Ea=e=>Re(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Tt(e){return e!=null}function go(){}var p3=["type","size","sizeType"];function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Op.apply(null,arguments)}function Ab(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 Tb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ab(Object(r),!0).forEach(function(n){h3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ab(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h3(e,t,r){return(t=m3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m3(e){var t=v3(e,"string");return typeof t=="symbol"?t:t+""}function v3(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 g3(e,t){if(e==null)return{};var r,n,o=y3(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 y3(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 OO={symbolCircle:_m,symbolCross:Rz,symbolDiamond:Iz,symbolSquare:Nz,symbolStar:Fz,symbolTriangle:Bz,symbolWye:Wz},b3=Math.PI/180,x3=e=>{var t="symbol".concat(Ea(e));return OO[t]||_m},w3=(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*b3;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}},S3=(e,t)=>{OO["symbol".concat(Ea(e))]=t},Rm=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=g3(e,p3),i=Tb(Tb({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var f=x3(a),h=Kz().type(f).size(w3(r,n,a)),v=h();if(v!==null)return v},{className:l,cx:c,cy:u}=i,d=Et(i);return q(c)&&q(u)&&q(r)?p.createElement("path",Op({},d,{className:fe("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};Rm.registerSymbol=S3;var AO=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,km=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(O.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(o=>{Em(o)&&(n[o]=(i=>r[o](r,i)))}),n},P3=(e,t,r)=>n=>(e(t,r,n),null),Oa=(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];Em(o)&&typeof i=="function"&&(n||(n={}),n[o]=P3(i,t,r))}),n};function _b(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 C3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_b(Object(r),!0).forEach(function(n){E3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E3(e,t,r){return(t=O3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O3(e){var t=A3(e,"string");return typeof t=="symbol"?t:t+""}function A3(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 We(e,t){var r=C3({},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 Sl(){return Sl=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},Sl.apply(null,arguments)}function Mb(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 T3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mb(Object(r),!0).forEach(function(n){_3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _3(e,t,r){return(t=M3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M3(e){var t=j3(e,"string");return typeof t=="symbol"?t:t+""}function j3(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 zt=32,D3={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function R3(e){var{data:t,iconType:r,inactiveColor:n}=e,o=zt/2,i=zt/6,a=zt/3,s=t.inactive?n:t.color,l=r??t.type;if(l==="none")return null;if(l==="plainline"){var c;return p.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:zt,y2:o,className:"recharts-legend-icon"})}if(l==="line")return p.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 p.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},d3=JE,f3=eA,p3=tA,h3=rA,m3=nA,v3=lA,g3=uA,y3=iA,b3=sA,w3=Symbol.for("react.lazy"),nc=p[" use ".trim().toString()];function x3(e){return typeof e=="object"&&e!==null&&"then"in e}function dA(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===w3&&"_payload"in e&&x3(e._payload)}function fA(e){const t=S3(e),r=p.forwardRef((n,o)=>{let{children:i,...a}=n;dA(i)&&typeof nc=="function"&&(i=nc(i._payload));const s=p.Children.toArray(i),l=s.find(C3);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Re=fA("Slot");function S3(e){const t=p.forwardRef((r,n)=>{let{children:o,...i}=r;if(dA(o)&&typeof nc=="function"&&(o=nc(o._payload)),p.isValidElement(o)){const a=E3(o),s=O3(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Hr(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P3=Symbol("radix.slottable");function C3(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P3}function O3(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 E3(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 Ou=ne("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-alt text-primary active:bg-contrast hover:bg-main border",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"}}),Cv=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Re:"button";return b.jsx(a,{className:N(Ou({variant:t,size:r,className:e})),ref:i,...o})});Cv.displayName="Button";const A3=d3,T3=f3,pA=p3,Ov=p.forwardRef(({className:e,...t},r)=>b.jsx(h3,{ref:r,className:N("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}));Ov.displayName="AlertDialogOverlay";const hA=ne(["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"}}),mA=p.forwardRef(({className:e,size:t,...r},n)=>b.jsxs(pA,{children:[b.jsx(Ov,{}),b.jsx(m3,{ref:n,className:N(hA({size:t}),e),...r})]}));mA.displayName="AlertDialogContent";const vA=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:N("flex flex-col space-y-2 text-center sm:text-left",e),...t}));vA.displayName="AlertDialogHeader";const gA=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));gA.displayName="AlertDialogFooter";const yA=p.forwardRef(({className:e,...t},r)=>b.jsx(y3,{ref:r,className:N("text-primary text-lg leading-none tracking-tight",e),...t}));yA.displayName="AlertDialogTitle";const bA=p.forwardRef(({className:e,...t},r)=>b.jsx(b3,{ref:r,className:N("text-secondary text-sm",e),...t}));bA.displayName="AlertDialogDescription";const wA=p.forwardRef(({className:e,variant:t="primary",size:r="default",...n},o)=>b.jsx(v3,{ref:o,className:N(Ou({variant:t,size:r}),e),...n}));wA.displayName="AlertDialogAction";const xA=p.forwardRef(({className:e,variant:t="secondary",size:r="default",...n},o)=>b.jsx(g3,{ref:o,className:N(Ou({variant:t,size:r}),"mt-2 sm:mt-0",e),...n}));xA.displayName="AlertDialogCancel";const SA=ne("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"}}),PA=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Re:"span";return b.jsx(a,{className:N(SA({variant:t,size:r,className:e})),ref:i,...o})});PA.displayName="Badge";const CA=ne("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"}}),OA=p.forwardRef(({className:e,variant:t,align:r,asChild:n=!1,icon:o,action:i,onDismiss:a,children:s,...l},c)=>{const u=n?Re:"div";return b.jsxs(u,{role:"alert",className:N(CA({variant:t,align:r,className:e})),ref:c,...l,children:[o&&b.jsx("span",{className:"shrink-0",children:o}),b.jsx("span",{className:"flex-1",children:s}),i&&b.jsx("span",{className:"shrink-0",children:i}),a&&b.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:b.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:[b.jsx("path",{d:"M18 6 6 18"}),b.jsx("path",{d:"m6 6 12 12"})]})})]})});OA.displayName="Banner";var M3=["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 Ev(e){if(typeof e!="string")return!1;var t=M3;return t.includes(e)}var k3=["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"],D3=new Set(k3);function EA(e){return typeof e!="string"?!1:D3.has(e)}function AA(e){return typeof e=="string"&&e.startsWith("data-")}function Zt(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(EA(r)||AA(r))&&(t[r]=e[r]);return t}function Ao(e){if(e==null)return null;if(O.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Zt(t)}return typeof e=="object"&&!Array.isArray(e)?Zt(e):null}function It(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(EA(r)||AA(r)||Ev(r))&&(t[r]=e[r]);return t}function _3(e){return e==null?null:O.isValidElement(e)?It(e.props):typeof e=="object"&&!Array.isArray(e)?It(e):null}var N3=["children","width","height","viewBox","className","style","title","desc"];function gh(){return gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gh.apply(null,arguments)}function j3(e,t){if(e==null)return{};var r,n,o=R3(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 R3(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 Av=O.forwardRef((e,t)=>{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=j3(e,N3),d=i||{width:n,height:o,x:0,y:0},f=ve("recharts-surface",a);return p.createElement("svg",gh({},It(u),{className:f,width:n,height:o,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),p.createElement("title",null,l),p.createElement("desc",null,c),r)}),I3=["children","className"];function yh(){return yh=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},yh.apply(null,arguments)}function L3(e,t){if(e==null)return{};var r,n,o=$3(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 $3(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 ht=p.forwardRef((e,t)=>{var{children:r,className:n}=e,o=L3(e,I3),i=ve("recharts-layer",n);return p.createElement("g",yh({className:i},It(o),{ref:t}),r)}),TA=O.createContext(null),F3=()=>O.useContext(TA);function De(e){return function(){return e}}const MA=Math.cos,oc=Math.sin,Or=Math.sqrt,ic=Math.PI,Eu=2*ic,bh=Math.PI,wh=2*bh,ao=1e-6,V3=wh-ao;function kA(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function B3(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return kA;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 W3{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?kA:B3(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,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>ao)if(!(Math.abs(d*l-c*u)>ao)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-a,v=o-s,m=l*l+c*c,g=h*h+v*v,y=Math.sqrt(m),w=Math.sqrt(f),x=i*Math.tan((bh-Math.acos((m+f-g)/(2*y*w)))/2),S=x/w,P=x/y;Math.abs(S-1)>ao&&this._append`L${t+S*u},${r+S*d}`,this._append`A${i},${i},0,0,${+(d*h>u*v)},${this._x1=t+P*l},${this._y1=r+P*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,f=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ao||Math.abs(this._y1-u)>ao)&&this._append`L${c},${u}`,n&&(f<0&&(f=f%wh+wh),f>V3?this._append`A${n},${n},0,1,${d},${t-s},${r-l}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:f>ao&&this._append`A${n},${n},0,${+(f>=bh)},${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 Tv(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 W3(t)}function Mv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function DA(e){this._context=e}DA.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 Au(e){return new DA(e)}function _A(e){return e[0]}function NA(e){return e[1]}function jA(e,t){var r=De(!0),n=null,o=Au,i=null,a=Tv(s);e=typeof e=="function"?e:e===void 0?_A:De(e),t=typeof t=="function"?t:t===void 0?NA:De(t);function s(l){var c,u=(l=Mv(l)).length,d,f=!1,h;for(n==null&&(i=o(h=a())),c=0;c<=u;++c)!(c<u&&r(d=l[c],c,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,c,l),+t(d,c,l));if(h)return i=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:De(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:De(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:De(!!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 sl(e,t,r){var n=null,o=De(!0),i=null,a=Au,s=null,l=Tv(c);e=typeof e=="function"?e:e===void 0?_A:De(+e),t=typeof t=="function"?t:De(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?NA:De(+r);function c(d){var f,h,v,m=(d=Mv(d)).length,g,y=!1,w,x=new Array(m),S=new Array(m);for(i==null&&(s=a(w=l())),f=0;f<=m;++f){if(!(f<m&&o(g=d[f],f,d))===y)if(y=!y)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),v=f-1;v>=h;--v)s.point(x[v],S[v]);s.lineEnd(),s.areaEnd()}y&&(x[f]=+e(g,f,d),S[f]=+t(g,f,d),s.point(n?+n(g,f,d):x[f],r?+r(g,f,d):S[f]))}if(w)return s=null,w+""||null}function u(){return jA().defined(o).curve(a).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:De(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:De(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:De(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:De(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:De(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:De(+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:De(!!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 RA{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 z3(e){return new RA(e,!0)}function K3(e){return new RA(e,!1)}const kv={draw(e,t){const r=Or(t/ic);e.moveTo(r,0),e.arc(0,0,r,0,Eu)}},U3={draw(e,t){const r=Or(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()}},IA=Or(1/3),H3=IA*2,G3={draw(e,t){const r=Or(t/H3),n=r*IA;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Y3={draw(e,t){const r=Or(t),n=-r/2;e.rect(n,n,r,r)}},q3=.8908130915292852,LA=oc(ic/10)/oc(7*ic/10),X3=oc(Eu/10)*LA,Z3=-MA(Eu/10)*LA,Q3={draw(e,t){const r=Or(t*q3),n=X3*r,o=Z3*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){const a=Eu*i/5,s=MA(a),l=oc(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}},sf=Or(3),J3={draw(e,t){const r=-Or(t/(sf*3));e.moveTo(0,r*2),e.lineTo(-sf*r,-r),e.lineTo(sf*r,-r),e.closePath()}},er=-.5,tr=Or(3)/2,xh=1/Or(12),e5=(xh/2+1)*3,t5={draw(e,t){const r=Or(t/e5),n=r/2,o=r*xh,i=n,a=r*xh+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(er*n-tr*o,tr*n+er*o),e.lineTo(er*i-tr*a,tr*i+er*a),e.lineTo(er*s-tr*l,tr*s+er*l),e.lineTo(er*n+tr*o,er*o-tr*n),e.lineTo(er*i+tr*a,er*a-tr*i),e.lineTo(er*s+tr*l,er*l-tr*s),e.closePath()}};function r5(e,t){let r=null,n=Tv(o);e=typeof e=="function"?e:De(e||kv),t=typeof t=="function"?t:De(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:De(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:De(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function ac(){}function sc(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 $A(e){this._context=e}$A.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:sc(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:sc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function n5(e){return new $A(e)}function FA(e){this._context=e}FA.prototype={areaStart:ac,areaEnd:ac,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:sc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function o5(e){return new FA(e)}function VA(e){this._context=e}VA.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:sc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function i5(e){return new VA(e)}function BA(e){this._context=e}BA.prototype={areaStart:ac,areaEnd:ac,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 a5(e){return new BA(e)}function kw(e){return e<0?-1:1}function Dw(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(kw(i)+kw(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function _w(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function lf(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 lc(e){this._context=e}lc.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:lf(this,this._t0,_w(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,lf(this,_w(this,r=Dw(this,e,t)),r);break;default:lf(this,this._t0,r=Dw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function WA(e){this._context=new zA(e)}(WA.prototype=Object.create(lc.prototype)).point=function(e,t){lc.prototype.point.call(this,t,e)};function zA(e){this._context=e}zA.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 s5(e){return new lc(e)}function l5(e){return new WA(e)}function KA(e){this._context=e}KA.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=Nw(e),o=Nw(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 Nw(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 c5(e){return new KA(e)}function Tu(e,t){this._context=e,this._t=t}Tu.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 u5(e){return new Tu(e,.5)}function d5(e){return new Tu(e,0)}function f5(e){return new Tu(e,1)}function To(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 Sh(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function p5(e,t){return e[t]}function h5(e){const t=[];return t.key=e,t}function m5(){var e=De([]),t=Sh,r=To,n=p5;function o(i){var a=Array.from(e.apply(this,arguments),h5),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=Mv(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:De(Array.from(i)),o):e},o.value=function(i){return arguments.length?(n=typeof i=="function"?i:De(+i),o):n},o.order=function(i){return arguments.length?(t=i==null?Sh:typeof i=="function"?i:De(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(r=i??To,o):r},o}function v5(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}To(e,t)}}function g5(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}To(e,t)}}function y5(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,f=u[n-1][1]||0,h=(d-f)/2,v=0;v<s;++v){var m=e[t[v]],g=m[n][1]||0,y=m[n-1][1]||0;h+=g-y}l+=d,c+=h*d}o[n-1][1]+=o[n-1][0]=r,l&&(r-=c/l)}o[n-1][1]+=o[n-1][0]=r,To(e,t)}}function Hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cf={},uf={},jw;function b5(){return jw||(jw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(uf)),uf}var df={},Rw;function UA(){return Rw||(Rw=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})(df)),df}var ff={},Iw;function Dv(){return Iw||(Iw=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})(ff)),ff}var pf={},hf={},Lw;function w5(){return Lw||(Lw=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})(hf)),hf}var $w;function _v(){return $w||($w=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=w5(),r=Dv();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})(pf)),pf}var Fw;function Nv(){return Fw||(Fw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=b5(),r=UA(),n=Dv(),o=_v();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})(cf)),cf}var mf,Vw;function x5(){return Vw||(Vw=1,mf=Nv().get),mf}var S5=x5();const Mo=Hn(S5);var P5=4;function Nn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P5,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Ue(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+Nn(s)+i:o+i},"")}var ft=e=>e===0?0:e>0?1:-1,Vr=e=>typeof e=="number"&&e!=+e,ko=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Y=e=>(typeof e=="number"||e instanceof Number)&&!Vr(e),Br=e=>Y(e)||typeof e=="string",C5=0,ka=e=>{var t=++C5;return"".concat(e||"").concat(t)},Ot=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(!Y(t)&&typeof t!="string")return n;var i;if(ko(t)){if(r==null)return n;var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return Vr(i)&&(i=n),o&&r!=null&&i>r&&(i=r),i},HA=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 Le(e,t,r){return Y(e)&&Y(t)?Nn(e+r*(t-e)):t}function GA(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Mo(n,t))===r)}var We=e=>e===null||typeof e>"u",ss=e=>We(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Ft(e){return e!=null}function Wo(){}var O5=["type","size","sizeType"];function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ph.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 Ww(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){E5(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 E5(e,t,r){return(t=A5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A5(e){var t=T5(e,"string");return typeof t=="symbol"?t:t+""}function T5(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 M5(e,t){if(e==null)return{};var r,n,o=k5(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 k5(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 YA={symbolCircle:kv,symbolCross:U3,symbolDiamond:G3,symbolSquare:Y3,symbolStar:Q3,symbolTriangle:J3,symbolWye:t5},D5=Math.PI/180,_5=e=>{var t="symbol".concat(ss(e));return YA[t]||kv},N5=(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*D5;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}},j5=(e,t)=>{YA["symbol".concat(ss(e))]=t},jv=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=M5(e,O5),i=Ww(Ww({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var f=_5(a),h=r5().type(f).size(N5(r,n,a)),v=h();if(v!==null)return v},{className:l,cx:c,cy:u}=i,d=It(i);return Y(c)&&Y(u)&&Y(r)?p.createElement("path",Ph({},d,{className:ve("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};jv.registerSymbol=j5;var qA=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Rv=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(O.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(o=>{Ev(o)&&(n[o]=(i=>r[o](r,i)))}),n},R5=(e,t,r)=>n=>(e(t,r,n),null),ls=(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];Ev(o)&&typeof i=="function"&&(n||(n={}),n[o]=R5(i,t,r))}),n};function zw(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 I5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){L5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L5(e,t,r){return(t=$5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $5(e){var t=F5(e,"string");return typeof t=="symbol"?t:t+""}function F5(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 et(e,t){var r=I5({},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 cc(){return cc=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},cc.apply(null,arguments)}function Kw(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 V5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(r),!0).forEach(function(n){B5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B5(e,t,r){return(t=W5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W5(e){var t=z5(e,"string");return typeof t=="symbol"?t:t+""}function z5(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nr=32,K5={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function U5(e){var{data:t,iconType:r,inactiveColor:n}=e,o=nr/2,i=nr/6,a=nr/3,s=t.inactive?n:t.color,l=r??t.type;if(l==="none")return null;if(l==="plainline"){var c;return p.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:nr,y2:o,className:"recharts-legend-icon"})}if(l==="line")return p.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
- H`).concat(zt,"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 p.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(zt/8,"h").concat(zt,"v").concat(zt*3/4,"h").concat(-zt,"z"),className:"recharts-legend-icon"});if(p.isValidElement(t.legendIcon)){var u=T3({},t);return delete u.legendIcon,p.cloneElement(t.legendIcon,u)}return p.createElement(Rm,{fill:s,cx:o,cy:o,size:zt,sizeType:"diameter",type:l})}function k3(e){var{payload:t,iconSize:r,layout:n,formatter:o,inactiveColor:i,iconType:a}=e,s={x:0,y:0,width:zt,height:zt},l={display:n==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((u,d)=>{var f=u.formatter||o,h=fe({"recharts-legend-item":!0,["legend-item-".concat(d)]:!0,inactive:u.inactive});if(u.type==="none")return null;var v=u.inactive?i:u.color,m=f?f(u.value,u,d):u.value;return p.createElement("li",Sl({className:h,style:l,key:"legend-item-".concat(d)},Oa(e,u,d)),p.createElement(Om,{width:r,height:r,viewBox:s,style:c,"aria-label":"".concat(m," legend icon")},p.createElement(R3,{data:u,iconType:a,inactiveColor:i})),p.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},m))})}var I3=e=>{var t=We(e,D3),{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 p.createElement("ul",{className:"recharts-default-legend",style:i},p.createElement(k3,Sl({},t,{payload:r})))},Pd={},Cd={},jb;function N3(){return jb||(jb=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})(Cd)),Cd}var Ed={},Db;function L3(){return Db||(Db=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})(Ed)),Ed}var Od={},Rb;function TO(){return Rb||(Rb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Od)),Od}var Ad={},Td={},_d={},kb;function $3(){return kb||(kb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(_d)),_d}var Ib;function Im(){return Ib||(Ib=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$3();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(Td)),Td}var Md={},Nb;function V3(){return Nb||(Nb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(Md)),Md}var Lb;function F3(){return Lb||(Lb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Im(),r=V3();function n(o){return r.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=n})(Ad)),Ad}var jd={},Dd={},$b;function B3(){return $b||($b=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Dm();function r(n){return function(o){return t.get(o,n)}}e.property=r})(Dd)),Dd}var Rd={},kd={},Id={},Nd={},Vb;function _O(){return Vb||(Vb=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})(Nd)),Nd}var Ld={},Fb;function MO(){return Fb||(Fb=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})(Ld)),Ld}var $d={},Bb;function jO(){return Bb||(Bb=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})($d)),$d}var zb;function z3(){return zb||(zb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_O(),r=MO(),n=jO();function o(u,d,f){return typeof f!="function"?o(u,d,()=>{}):i(u,d,function h(v,m,g,y,x,w){const S=f(v,m,g,y,x,w);return S!==void 0?!!S:i(v,m,h,w)},new Map)}function i(u,d,f,h){if(d===u)return!0;switch(typeof d){case"object":return a(u,d,f,h);case"function":return Object.keys(d).length>0?i(u,{...d},f,h):n.isEqualsSameValueZero(u,d);default:return t.isObject(u)?typeof d=="string"?d==="":!0:n.isEqualsSameValueZero(u,d)}}function a(u,d,f,h){if(d==null)return!0;if(Array.isArray(d))return l(u,d,f,h);if(d instanceof Map)return s(u,d,f,h);if(d instanceof Set)return c(u,d,f,h);const v=Object.keys(d);if(u==null||r.isPrimitive(u))return v.length===0;if(v.length===0)return!0;if(h?.has(d))return h.get(d)===u;h?.set(d,u);try{for(let m=0;m<v.length;m++){const g=v[m];if(!r.isPrimitive(u)&&!(g in u)||d[g]===void 0&&u[g]!==void 0||d[g]===null&&u[g]!==null||!f(u[g],d[g],g,u,d,h))return!1}return!0}finally{h?.delete(d)}}function s(u,d,f,h){if(d.size===0)return!0;if(!(u instanceof Map))return!1;for(const[v,m]of d.entries()){const g=u.get(v);if(f(g,m,v,u,d,h)===!1)return!1}return!0}function l(u,d,f,h){if(d.length===0)return!0;if(!Array.isArray(u))return!1;const v=new Set;for(let m=0;m<d.length;m++){const g=d[m];let y=!1;for(let x=0;x<u.length;x++){if(v.has(x))continue;const w=u[x];let S=!1;if(f(w,g,m,u,d,h)&&(S=!0),S){v.add(x),y=!0;break}}if(!y)return!1}return!0}function c(u,d,f,h){return d.size===0?!0:u instanceof Set?l([...u],[...d],f,h):!1}e.isMatchWith=o,e.isSetMatch=c})(Id)),Id}var Wb;function DO(){return Wb||(Wb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z3();function r(n,o){return t.isMatchWith(n,o,()=>{})}e.isMatch=r})(kd)),kd}var Vd={},Fd={},Bd={},Kb;function W3(){return Kb||(Kb=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})(Bd)),Bd}var zd={},Ub;function Nm(){return Ub||(Ub=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})(zd)),zd}var Wd={},Hb;function RO(){return Hb||(Hb=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]",f="[object ArrayBuffer]",h="[object Object]",v="[object Error]",m="[object DataView]",g="[object Uint8Array]",y="[object Uint8ClampedArray]",x="[object Uint16Array]",w="[object Uint32Array]",S="[object BigUint64Array]",P="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",A="[object BigInt64Array]",_="[object Float32Array]",D="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=f,e.arrayTag=u,e.bigInt64ArrayTag=A,e.bigUint64ArrayTag=S,e.booleanTag=o,e.dataViewTag=m,e.dateTag=s,e.errorTag=v,e.float32ArrayTag=_,e.float64ArrayTag=D,e.functionTag=d,e.int16ArrayTag=C,e.int32ArrayTag=E,e.int8ArrayTag=P,e.mapTag=l,e.numberTag=n,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=a,e.uint16ArrayTag=x,e.uint32ArrayTag=w,e.uint8ArrayTag=g,e.uint8ClampedArrayTag=y})(Wd)),Wd}var Kd={},Gb;function K3(){return Gb||(Gb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(Kd)),Kd}var qb;function kO(){return qb||(qb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=W3(),r=Nm(),n=RO(),o=MO(),i=K3();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,f,h=new Map,v=void 0){const m=v?.(u,d,f,h);if(m!==void 0)return m;if(o.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const g=new Array(u.length);h.set(u,g);for(let y=0;y<u.length;y++)g[y]=s(u[y],y,f,h,v);return Object.hasOwn(u,"index")&&(g.index=u.index),Object.hasOwn(u,"input")&&(g.input=u.input),g}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const g=new RegExp(u.source,u.flags);return g.lastIndex=u.lastIndex,g}if(u instanceof Map){const g=new Map;h.set(u,g);for(const[y,x]of u)g.set(y,s(x,y,f,h,v));return g}if(u instanceof Set){const g=new Set;h.set(u,g);for(const y of u)g.add(s(y,void 0,f,h,v));return g}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(i.isTypedArray(u)){const g=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,g);for(let y=0;y<u.length;y++)g[y]=s(u[y],y,f,h,v);return g}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const g=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,g),l(g,u,f,h,v),g}if(typeof File<"u"&&u instanceof File){const g=new File([u],u.name,{type:u.type});return h.set(u,g),l(g,u,f,h,v),g}if(typeof Blob<"u"&&u instanceof Blob){const g=new Blob([u],{type:u.type});return h.set(u,g),l(g,u,f,h,v),g}if(u instanceof Error){const g=new u.constructor;return h.set(u,g),g.message=u.message,g.name=u.name,g.stack=u.stack,g.cause=u.cause,l(g,u,f,h,v),g}if(u instanceof Boolean){const g=new Boolean(u.valueOf());return h.set(u,g),l(g,u,f,h,v),g}if(u instanceof Number){const g=new Number(u.valueOf());return h.set(u,g),l(g,u,f,h,v),g}if(u instanceof String){const g=new String(u.valueOf());return h.set(u,g),l(g,u,f,h,v),g}if(typeof u=="object"&&c(u)){const g=Object.create(Object.getPrototypeOf(u));return h.set(u,g),l(g,u,f,h,v),g}return u}function l(u,d,f=u,h,v){const m=[...Object.keys(d),...t.getSymbols(d)];for(let g=0;g<m.length;g++){const y=m[g],x=Object.getOwnPropertyDescriptor(u,y);(x==null||x.writable)&&(u[y]=s(d[y],y,f,h,v))}}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})(Fd)),Fd}var Yb;function U3(){return Yb||(Yb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kO();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(Vd)),Vd}var Xb;function H3(){return Xb||(Xb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DO(),r=U3();function n(o){return o=r.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=n})(Rd)),Rd}var Ud={},Hd={},Gd={},Zb;function G3(){return Zb||(Zb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kO(),r=Nm(),n=RO();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 f={};return u.set(i,f),t.copyProperties(f,i,c,u),f}switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const f=new i.constructor(i?.valueOf());return t.copyProperties(f,i),f}case n.argumentsTag:{const f={};return t.copyProperties(f,i),f.length=i.length,f[Symbol.iterator]=i[Symbol.iterator],f}default:return}}})}e.cloneDeepWith=o})(Gd)),Gd}var Jb;function q3(){return Jb||(Jb=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G3();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(Hd)),Hd}var qd={},Yd={},Qb;function IO(){return Qb||(Qb=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})(Yd)),Yd}var Xd={},ex;function Y3(){return ex||(ex=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nm();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(Xd)),Xd}var tx;function X3(){return tx||(tx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PO(),r=IO(),n=Y3(),o=jm();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})(qd)),qd}var rx;function Z3(){return rx||(rx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DO(),r=Mm(),n=q3(),o=Dm(),i=X3();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})(Ud)),Ud}var nx;function J3(){return nx||(nx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TO(),r=B3(),n=H3(),o=Z3();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})(jd)),jd}var ox;function Q3(){return ox||(ox=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N3(),r=L3(),n=TO(),o=F3(),i=J3();function a(s,l=n.identity){return o.isArrayLikeObject(s)?t.uniqBy(Array.from(s),r.ary(i.iteratee(l),1)):[]}e.uniqBy=a})(Pd)),Pd}var Zd,ix;function e5(){return ix||(ix=1,Zd=Q3().uniqBy),Zd}var t5=e5();const ax=Pn(t5);function NO(e,t,r){return t===!0?ax(e,r):typeof t=="function"?ax(e,t):e}var ws={exports:{}},Jd={},Ss={exports:{}},Qd={};var sx;function r5(){if(sx)return Qd;sx=1;var e=O;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(d,f){var h=f(),v=n({inst:{value:h,getSnapshot:f}}),m=v[0].inst,g=v[1];return i(function(){m.value=h,m.getSnapshot=f,l(m)&&g({inst:m})},[d,h,f]),o(function(){return l(m)&&g({inst:m}),d(function(){l(m)&&g({inst:m})})},[d]),a(h),h}function l(d){var f=d.getSnapshot;d=d.value;try{var h=f();return!r(d,h)}catch{return!0}}function c(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Qd.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Qd}var ef={};var lx;function n5(){return lx||(lx=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){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=v();if(!d){var g=v();i(m,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}g=a({inst:{value:m,getSnapshot:v}});var y=g[0].inst,x=g[1];return l(function(){y.value=m,y.getSnapshot=v,r(y)&&x({inst:y})},[h,m,v]),s(function(){return r(y)&&x({inst:y}),h(function(){r(y)&&x({inst:y})})},[h]),c(m),m}function r(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!i(h,m)}catch{return!0}}function n(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=O,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;ef.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ef}var cx;function LO(){return cx||(cx=1,process.env.NODE_ENV==="production"?Ss.exports=r5():Ss.exports=n5()),Ss.exports}var ux;function o5(){if(ux)return Jd;ux=1;var e=O,t=LO();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 Jd.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var v=i(null);if(v.current===null){var m={hasValue:!1,value:null};v.current=m}else m=v.current;v=s(function(){function y(C){if(!x){if(x=!0,w=C,C=f(C),h!==void 0&&m.hasValue){var E=m.value;if(h(E,C))return S=E}return S=C}if(E=S,n(w,C))return E;var A=f(C);return h!==void 0&&h(E,A)?(w=C,E):(w=C,S=A)}var x=!1,w,S,P=d===void 0?null:d;return[function(){return y(u())},P===null?void 0:function(){return y(P())}]},[u,d,f,h]);var g=o(c,v[0],v[1]);return a(function(){m.hasValue=!0,m.value=g},[g]),l(g),g},Jd}var tf={};var dx;function i5(){return dx||(dx=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=O,r=LO(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;tf.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var v=i(null);if(v.current===null){var m={hasValue:!1,value:null};v.current=m}else m=v.current;v=s(function(){function y(C){if(!x){if(x=!0,w=C,C=f(C),h!==void 0&&m.hasValue){var E=m.value;if(h(E,C))return S=E}return S=C}if(E=S,n(w,C))return E;var A=f(C);return h!==void 0&&h(E,A)?(w=C,E):(w=C,S=A)}var x=!1,w,S,P=d===void 0?null:d;return[function(){return y(u())},P===null?void 0:function(){return y(P())}]},[u,d,f,h]);var g=o(c,v[0],v[1]);return a(function(){m.hasValue=!0,m.value=g},[g]),l(g),g},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),tf}var fx;function a5(){return fx||(fx=1,process.env.NODE_ENV==="production"?ws.exports=o5():ws.exports=i5()),ws.exports}var s5=a5(),Lm=O.createContext(null),l5=e=>e,Ce=()=>{var e=O.useContext(Lm);return e?e.store.dispatch:l5},Qs=()=>{},c5=()=>Qs,u5=(e,t)=>e===t;function Q(e){var t=O.useContext(Lm),r=O.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Qs,[t,e]);return s5.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:c5,t?t.store.getState:Qs,t?t.store.getState:Qs,r,u5)}var d5=(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
53
+ H`).concat(nr,"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 p.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(nr/8,"h").concat(nr,"v").concat(nr*3/4,"h").concat(-nr,"z"),className:"recharts-legend-icon"});if(p.isValidElement(t.legendIcon)){var u=V5({},t);return delete u.legendIcon,p.cloneElement(t.legendIcon,u)}return p.createElement(jv,{fill:s,cx:o,cy:o,size:nr,sizeType:"diameter",type:l})}function H5(e){var{payload:t,iconSize:r,layout:n,formatter:o,inactiveColor:i,iconType:a}=e,s={x:0,y:0,width:nr,height:nr},l={display:n==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((u,d)=>{var f=u.formatter||o,h=ve({"recharts-legend-item":!0,["legend-item-".concat(d)]:!0,inactive:u.inactive});if(u.type==="none")return null;var v=u.inactive?i:u.color,m=f?f(u.value,u,d):u.value;return p.createElement("li",cc({className:h,style:l,key:"legend-item-".concat(d)},ls(e,u,d)),p.createElement(Av,{width:r,height:r,viewBox:s,style:c,"aria-label":"".concat(m," legend icon")},p.createElement(U5,{data:u,iconType:a,inactiveColor:i})),p.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},m))})}var G5=e=>{var t=et(e,K5),{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 p.createElement("ul",{className:"recharts-default-legend",style:i},p.createElement(H5,cc({},t,{payload:r})))},vf={},gf={},Uw;function Y5(){return Uw||(Uw=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})(gf)),gf}var yf={},Hw;function q5(){return Hw||(Hw=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})(yf)),yf}var bf={},Gw;function XA(){return Gw||(Gw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(bf)),bf}var wf={},xf={},Sf={},Yw;function X5(){return Yw||(Yw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Sf)),Sf}var qw;function Iv(){return qw||(qw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=X5();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(xf)),xf}var Pf={},Xw;function Z5(){return Xw||(Xw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(Pf)),Pf}var Zw;function Q5(){return Zw||(Zw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Iv(),r=Z5();function n(o){return r.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=n})(wf)),wf}var Cf={},Of={},Qw;function J5(){return Qw||(Qw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nv();function r(n){return function(o){return t.get(o,n)}}e.property=r})(Of)),Of}var Ef={},Af={},Tf={},Mf={},Jw;function ZA(){return Jw||(Jw=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})(Mf)),Mf}var kf={},ex;function QA(){return ex||(ex=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})(kf)),kf}var Df={},tx;function JA(){return tx||(tx=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})(Df)),Df}var rx;function e4(){return rx||(rx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZA(),r=QA(),n=JA();function o(u,d,f){return typeof f!="function"?o(u,d,()=>{}):i(u,d,function h(v,m,g,y,w,x){const S=f(v,m,g,y,w,x);return S!==void 0?!!S:i(v,m,h,x)},new Map)}function i(u,d,f,h){if(d===u)return!0;switch(typeof d){case"object":return a(u,d,f,h);case"function":return Object.keys(d).length>0?i(u,{...d},f,h):n.isEqualsSameValueZero(u,d);default:return t.isObject(u)?typeof d=="string"?d==="":!0:n.isEqualsSameValueZero(u,d)}}function a(u,d,f,h){if(d==null)return!0;if(Array.isArray(d))return l(u,d,f,h);if(d instanceof Map)return s(u,d,f,h);if(d instanceof Set)return c(u,d,f,h);const v=Object.keys(d);if(u==null||r.isPrimitive(u))return v.length===0;if(v.length===0)return!0;if(h?.has(d))return h.get(d)===u;h?.set(d,u);try{for(let m=0;m<v.length;m++){const g=v[m];if(!r.isPrimitive(u)&&!(g in u)||d[g]===void 0&&u[g]!==void 0||d[g]===null&&u[g]!==null||!f(u[g],d[g],g,u,d,h))return!1}return!0}finally{h?.delete(d)}}function s(u,d,f,h){if(d.size===0)return!0;if(!(u instanceof Map))return!1;for(const[v,m]of d.entries()){const g=u.get(v);if(f(g,m,v,u,d,h)===!1)return!1}return!0}function l(u,d,f,h){if(d.length===0)return!0;if(!Array.isArray(u))return!1;const v=new Set;for(let m=0;m<d.length;m++){const g=d[m];let y=!1;for(let w=0;w<u.length;w++){if(v.has(w))continue;const x=u[w];let S=!1;if(f(x,g,m,u,d,h)&&(S=!0),S){v.add(w),y=!0;break}}if(!y)return!1}return!0}function c(u,d,f,h){return d.size===0?!0:u instanceof Set?l([...u],[...d],f,h):!1}e.isMatchWith=o,e.isSetMatch=c})(Tf)),Tf}var nx;function eT(){return nx||(nx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=e4();function r(n,o){return t.isMatchWith(n,o,()=>{})}e.isMatch=r})(Af)),Af}var _f={},Nf={},jf={},ox;function t4(){return ox||(ox=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})(jf)),jf}var Rf={},ix;function Lv(){return ix||(ix=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})(Rf)),Rf}var If={},ax;function tT(){return ax||(ax=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]",f="[object ArrayBuffer]",h="[object Object]",v="[object Error]",m="[object DataView]",g="[object Uint8Array]",y="[object Uint8ClampedArray]",w="[object Uint16Array]",x="[object Uint32Array]",S="[object BigUint64Array]",P="[object Int8Array]",C="[object Int16Array]",E="[object Int32Array]",A="[object BigInt64Array]",T="[object Float32Array]",M="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=f,e.arrayTag=u,e.bigInt64ArrayTag=A,e.bigUint64ArrayTag=S,e.booleanTag=o,e.dataViewTag=m,e.dateTag=s,e.errorTag=v,e.float32ArrayTag=T,e.float64ArrayTag=M,e.functionTag=d,e.int16ArrayTag=C,e.int32ArrayTag=E,e.int8ArrayTag=P,e.mapTag=l,e.numberTag=n,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=a,e.uint16ArrayTag=w,e.uint32ArrayTag=x,e.uint8ArrayTag=g,e.uint8ClampedArrayTag=y})(If)),If}var Lf={},sx;function r4(){return sx||(sx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(Lf)),Lf}var lx;function rT(){return lx||(lx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=t4(),r=Lv(),n=tT(),o=QA(),i=r4();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,f,h=new Map,v=void 0){const m=v?.(u,d,f,h);if(m!==void 0)return m;if(o.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const g=new Array(u.length);h.set(u,g);for(let y=0;y<u.length;y++)g[y]=s(u[y],y,f,h,v);return Object.hasOwn(u,"index")&&(g.index=u.index),Object.hasOwn(u,"input")&&(g.input=u.input),g}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const g=new RegExp(u.source,u.flags);return g.lastIndex=u.lastIndex,g}if(u instanceof Map){const g=new Map;h.set(u,g);for(const[y,w]of u)g.set(y,s(w,y,f,h,v));return g}if(u instanceof Set){const g=new Set;h.set(u,g);for(const y of u)g.add(s(y,void 0,f,h,v));return g}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(i.isTypedArray(u)){const g=new(Object.getPrototypeOf(u)).constructor(u.length);h.set(u,g);for(let y=0;y<u.length;y++)g[y]=s(u[y],y,f,h,v);return g}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const g=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return h.set(u,g),l(g,u,f,h,v),g}if(typeof File<"u"&&u instanceof File){const g=new File([u],u.name,{type:u.type});return h.set(u,g),l(g,u,f,h,v),g}if(typeof Blob<"u"&&u instanceof Blob){const g=new Blob([u],{type:u.type});return h.set(u,g),l(g,u,f,h,v),g}if(u instanceof Error){const g=new u.constructor;return h.set(u,g),g.message=u.message,g.name=u.name,g.stack=u.stack,g.cause=u.cause,l(g,u,f,h,v),g}if(u instanceof Boolean){const g=new Boolean(u.valueOf());return h.set(u,g),l(g,u,f,h,v),g}if(u instanceof Number){const g=new Number(u.valueOf());return h.set(u,g),l(g,u,f,h,v),g}if(u instanceof String){const g=new String(u.valueOf());return h.set(u,g),l(g,u,f,h,v),g}if(typeof u=="object"&&c(u)){const g=Object.create(Object.getPrototypeOf(u));return h.set(u,g),l(g,u,f,h,v),g}return u}function l(u,d,f=u,h,v){const m=[...Object.keys(d),...t.getSymbols(d)];for(let g=0;g<m.length;g++){const y=m[g],w=Object.getOwnPropertyDescriptor(u,y);(w==null||w.writable)&&(u[y]=s(d[y],y,f,h,v))}}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})(Nf)),Nf}var cx;function n4(){return cx||(cx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rT();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(_f)),_f}var ux;function o4(){return ux||(ux=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eT(),r=n4();function n(o){return o=r.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=n})(Ef)),Ef}var $f={},Ff={},Vf={},dx;function i4(){return dx||(dx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rT(),r=Lv(),n=tT();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 f={};return u.set(i,f),t.copyProperties(f,i,c,u),f}switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const f=new i.constructor(i?.valueOf());return t.copyProperties(f,i),f}case n.argumentsTag:{const f={};return t.copyProperties(f,i),f.length=i.length,f[Symbol.iterator]=i[Symbol.iterator],f}default:return}}})}e.cloneDeepWith=o})(Vf)),Vf}var fx;function a4(){return fx||(fx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=i4();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(Ff)),Ff}var Bf={},Wf={},px;function nT(){return px||(px=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})(Wf)),Wf}var zf={},hx;function s4(){return hx||(hx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Lv();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(zf)),zf}var mx;function l4(){return mx||(mx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=UA(),r=nT(),n=s4(),o=_v();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})(Bf)),Bf}var vx;function c4(){return vx||(vx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eT(),r=Dv(),n=a4(),o=Nv(),i=l4();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})($f)),$f}var gx;function u4(){return gx||(gx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XA(),r=J5(),n=o4(),o=c4();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})(Cf)),Cf}var yx;function d4(){return yx||(yx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Y5(),r=q5(),n=XA(),o=Q5(),i=u4();function a(s,l=n.identity){return o.isArrayLikeObject(s)?t.uniqBy(Array.from(s),r.ary(i.iteratee(l),1)):[]}e.uniqBy=a})(vf)),vf}var Kf,bx;function f4(){return bx||(bx=1,Kf=d4().uniqBy),Kf}var p4=f4();const wx=Hn(p4);function oT(e,t,r){return t===!0?wx(e,r):typeof t=="function"?wx(e,t):e}var ll={exports:{}},Uf={},cl={exports:{}},Hf={};var xx;function h4(){if(xx)return Hf;xx=1;var e=O;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(d,f){var h=f(),v=n({inst:{value:h,getSnapshot:f}}),m=v[0].inst,g=v[1];return i(function(){m.value=h,m.getSnapshot=f,l(m)&&g({inst:m})},[d,h,f]),o(function(){return l(m)&&g({inst:m}),d(function(){l(m)&&g({inst:m})})},[d]),a(h),h}function l(d){var f=d.getSnapshot;d=d.value;try{var h=f();return!r(d,h)}catch{return!0}}function c(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Hf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Hf}var Gf={};var Sx;function m4(){return Sx||(Sx=1,process.env.NODE_ENV!=="production"&&(function(){function e(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}function t(h,v){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=v();if(!d){var g=v();i(m,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}g=a({inst:{value:m,getSnapshot:v}});var y=g[0].inst,w=g[1];return l(function(){y.value=m,y.getSnapshot=v,r(y)&&w({inst:y})},[h,m,v]),s(function(){return r(y)&&w({inst:y}),h(function(){r(y)&&w({inst:y})})},[h]),c(m),m}function r(h){var v=h.getSnapshot;h=h.value;try{var m=v();return!i(h,m)}catch{return!0}}function n(h,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=O,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Gf.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Gf}var Px;function iT(){return Px||(Px=1,process.env.NODE_ENV==="production"?cl.exports=h4():cl.exports=m4()),cl.exports}var Cx;function v4(){if(Cx)return Uf;Cx=1;var e=O,t=iT();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 Uf.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var v=i(null);if(v.current===null){var m={hasValue:!1,value:null};v.current=m}else m=v.current;v=s(function(){function y(C){if(!w){if(w=!0,x=C,C=f(C),h!==void 0&&m.hasValue){var E=m.value;if(h(E,C))return S=E}return S=C}if(E=S,n(x,C))return E;var A=f(C);return h!==void 0&&h(E,A)?(x=C,E):(x=C,S=A)}var w=!1,x,S,P=d===void 0?null:d;return[function(){return y(u())},P===null?void 0:function(){return y(P())}]},[u,d,f,h]);var g=o(c,v[0],v[1]);return a(function(){m.hasValue=!0,m.value=g},[g]),l(g),g},Uf}var Yf={};var Ox;function g4(){return Ox||(Ox=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=O,r=iT(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;Yf.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var v=i(null);if(v.current===null){var m={hasValue:!1,value:null};v.current=m}else m=v.current;v=s(function(){function y(C){if(!w){if(w=!0,x=C,C=f(C),h!==void 0&&m.hasValue){var E=m.value;if(h(E,C))return S=E}return S=C}if(E=S,n(x,C))return E;var A=f(C);return h!==void 0&&h(E,A)?(x=C,E):(x=C,S=A)}var w=!1,x,S,P=d===void 0?null:d;return[function(){return y(u())},P===null?void 0:function(){return y(P())}]},[u,d,f,h]);var g=o(c,v[0],v[1]);return a(function(){m.hasValue=!0,m.value=g},[g]),l(g),g},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Yf}var Ex;function y4(){return Ex||(Ex=1,process.env.NODE_ENV==="production"?ll.exports=v4():ll.exports=g4()),ll.exports}var b4=y4(),$v=O.createContext(null),w4=e=>e,Ne=()=>{var e=O.useContext($v);return e?e.store.dispatch:w4},Vl=()=>{},x4=()=>Vl,S4=(e,t)=>e===t;function J(e){var t=O.useContext($v),r=O.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Vl,[t,e]);return b4.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:x4,t?t.store.getState:Vl,t?t.store.getState:Vl,r,S4)}var P4=(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})}}},f5=(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})}}},C4=(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})}},p5={inputStabilityCheck:"once",identityFunctionCheck:"once"};function h5(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function m5(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function v5(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 px=e=>Array.isArray(e)?e:[e];function g5(e){const t=Array.isArray(e[0])?e[0]:e;return v5(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function hx(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var y5=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...p5,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:d5},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:f5}}},b5=class{constructor(e){this.value=e}deref(){return this.value}},x5=typeof WeakRef<"u"?WeakRef:b5,w5=0,mx=1;function Ps(){return{s:w5,v:void 0,o:null,p:null}}function $O(e,t={}){let r=Ps();const{resultEqualityCheck:n}=t;let o,i=0;function a(){let s=r;const{length:l}=arguments;for(let d=0,f=l;d<f;d++){const h=arguments[d];if(typeof h=="function"||typeof h=="object"&&h!==null){let v=s.o;v===null&&(s.o=v=new WeakMap);const m=v.get(h);m===void 0?(s=Ps(),v.set(h,s)):s=m}else{let v=s.p;v===null&&(s.p=v=new Map);const m=v.get(h);m===void 0?(s=Ps(),v.set(h,s)):s=m}}const c=s;let u;if(s.s===mx)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 x5(u):u}return c.s=mx,c.v=u,u}return a.clearCache=()=>{r=Ps(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function S5(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()),h5(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:h=$O,argsMemoizeOptions:v=[],devModeChecks:m={}}=u,g=px(f),y=px(v),x=g5(o),w=d(function(){return i++,c.apply(null,arguments)},...g);let S=!0;const P=h(function(){a++;const E=hx(x,arguments);if(s=w.apply(null,E),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:A,inputStabilityCheck:_}=y5(S,m);if(A.shouldRun&&A.run(c,E,s),_.shouldRun){const D=hx(x,arguments);_.run({inputSelectorResults:E,inputSelectorResultsCopy:D},{memoize:d,memoizeOptions:g},arguments)}S&&(S=!1)}return s},...y);return Object.assign(P,{resultFunc:c,memoizedResultFunc:w,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var k=S5($O),P5=Object.assign((e,t=k)=>{m5(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:()=>P5}),rf={},nf={},of={},vx;function C5(){return vx||(vx=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})(of)),of}var af={},sf={},gx;function VO(){return gx||(gx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(sf)),sf}var yx;function E5(){return yx||(yx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VO(),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})(af)),af}var bx;function O5(){return bx||(bx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=C5(),r=E5(),n=jm();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(h=>String(h));const c=(h,v)=>{let m=h;for(let g=0;g<v.length&&m!=null;++g)m=m[v[g]];return m},u=(h,v)=>v==null||h==null?v:typeof h=="object"&&"key"in h?Object.hasOwn(v,h.key)?v[h.key]:c(v,h.path):typeof h=="function"?h(v):Array.isArray(h)?c(v,h):typeof v=="object"?v[h]:v,d=a.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||r.isKey(h)?h:{key:h,path:n.toPath(h)}));return i.map(h=>({original:h,criteria:d.map(v=>u(v,h))})).slice().sort((h,v)=>{for(let m=0;m<d.length;m++){const g=t.compareValues(h.criteria[m],v.criteria[m],s[m]);if(g!==0)return g}return 0}).map(h=>h.original)}e.orderBy=o})(nf)),nf}var lf={},xx;function A5(){return xx||(xx=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})(lf)),lf}var cf={},wx;function FO(){return wx||(wx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=IO(),r=Im(),n=_O(),o=jO();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})(cf)),cf}var Sx;function T5(){return Sx||(Sx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=O5(),r=A5(),n=FO();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})(rf)),rf}var uf,Px;function _5(){return Px||(Px=1,uf=T5().sortBy),uf}var M5=_5();const Wc=Pn(M5);var BO=e=>e.legend.settings,j5=e=>e.legend.size,D5=e=>e.legend.payload,R5=k([D5,BO],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Wc(n,r):n});function k5(){return Q(R5)}var Cs=1;function zO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=O.useState({height:0,left:0,top:0,width:0}),n=O.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)>Cs||Math.abs(a.left-t.left)>Cs||Math.abs(a.top-t.top)>Cs||Math.abs(a.width-t.width)>Cs)&&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 st(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 I5=typeof Symbol=="function"&&Symbol.observable||"@@observable",Cx=I5,df=()=>Math.random().toString(36).substring(7).split("").join("."),N5={INIT:`@@redux/INIT${df()}`,REPLACE:`@@redux/REPLACE${df()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${df()}`},Yn=N5;function Aa(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 L5(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(F5(e))return"date";if(V5(e))return"error";const r=$5(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 $5(e){return typeof e.constructor=="function"?e.constructor.name:null}function V5(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function F5(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function on(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=L5(e)),t}function WO(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?st(2):`Expected the root reducer to be a function. Instead, received: '${on(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?st(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"?st(1):`Expected the enhancer to be a function. Instead, received: '${on(r)}'`);return r(WO)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((g,y)=>{a.set(y,g)}))}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?st(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(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?st(4):`Expected the listener to be a function. Instead, received: '${on(g)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?st(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 y=!0;c();const x=s++;return a.set(x,g),function(){if(y){if(l)throw new Error(process.env.NODE_ENV==="production"?st(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.");y=!1,c(),a.delete(x),i=null}}}function f(g){if(!Aa(g))throw new Error(process.env.NODE_ENV==="production"?st(7):`Actions must be plain objects. Instead, the actual type was: '${on(g)}'. 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 g.type>"u")throw new Error(process.env.NODE_ENV==="production"?st(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(process.env.NODE_ENV==="production"?st(17):`Action "type" property must be a string. Instead, the actual type was: '${on(g.type)}'. Value was: '${g.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?st(9):"Reducers may not dispatch actions.");try{l=!0,o=n(o,g)}finally{l=!1}return(i=a).forEach(x=>{x()}),g}function h(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?st(10):`Expected the nextReducer to be a function. Instead, received: '${on(g)}`);n=g,f({type:Yn.REPLACE})}function v(){const g=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?st(11):`Expected the observer to be an object. Instead, received: '${on(y)}'`);function x(){const S=y;S.next&&S.next(u())}return x(),{unsubscribe:g(x)}},[Cx](){return this}}}return f({type:Yn.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:h,[Cx]:v}}function Ex(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function B5(e,t,r,n){const o=Object.keys(t),i=r&&r.type===Yn.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(!Aa(e))return`The ${i} has unexpected type of "${on(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===Yn.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 z5(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Yn.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?st(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:Yn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?st(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Yn.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 KO(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"&&Ex(`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{z5(r)}catch(a){i=a}return function(s={},l){if(i)throw i;if(process.env.NODE_ENV!=="production"){const d=B5(s,r,l,o);d&&Ex(d)}let c=!1;const u={};for(let d=0;d<n.length;d++){const f=n[d],h=r[f],v=s[f],m=h(v,l);if(typeof m>"u"){const g=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?st(14):`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${f}" 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[f]=m,c=c||m!==v}return c=c||n.length!==Object.keys(s).length,c?u:s}}function Pl(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function W5(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?st(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=Pl(...s)(o.dispatch),{...o,dispatch:i}}}function $m(e){return Aa(e)&&"type"in e&&typeof e.type=="string"}var UO=Symbol.for("immer-nothing"),Ox=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state"),K5=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 Rt(e,...t){if(process.env.NODE_ENV!=="production"){const r=K5[e],n=Bn(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 It=Object,qo=It.getPrototypeOf,Cl="constructor",Kc="prototype",Ap="configurable",El="enumerable",el="writable",Zi="value",Nr=e=>!!e&&!!e[Ot];function nr(e){return e?HO(e)||Hc(e)||!!e[Ox]||!!e[Cl]?.[Ox]||Gc(e)||qc(e):!1}var U5=It[Kc][Cl].toString(),Ax=new WeakMap;function HO(e){if(!e||!Vm(e))return!1;const t=qo(e);if(t===null||t===It[Kc])return!0;const r=It.hasOwnProperty.call(t,Cl)&&t[Cl];if(r===Object)return!0;if(!Bn(r))return!1;let n=Ax.get(r);return n===void 0&&(n=Function.toString.call(r),Ax.set(r,n)),n===U5}function Uc(e,t,r=!0){Ta(e)===0?(r?Reflect.ownKeys(e):It.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Ta(e){const t=e[Ot];return t?t.type_:Hc(e)?1:Gc(e)?2:qc(e)?3:0}var Tx=(e,t,r=Ta(e))=>r===2?e.has(t):It[Kc].hasOwnProperty.call(e,t),Tp=(e,t,r=Ta(e))=>r===2?e.get(t):e[t],Ol=(e,t,r,n=Ta(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function H5(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Hc=Array.isArray,Gc=e=>e instanceof Map,qc=e=>e instanceof Set,Vm=e=>typeof e=="object",Bn=e=>typeof e=="function",ff=e=>typeof e=="boolean";function G5(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Mr=e=>e.copy_||e.base_,Fm=e=>e.modified_?e.copy_:e.base_;function _p(e,t){if(Gc(e))return new Map(e);if(qc(e))return new Set(e);if(Hc(e))return Array[Kc].slice.call(e);const r=HO(e);if(t===!0||t==="class_only"&&!r){const n=It.getOwnPropertyDescriptors(e);delete n[Ot];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s[el]===!1&&(s[el]=!0,s[Ap]=!0),(s.get||s.set)&&(n[a]={[Ap]:!0,[el]:!0,[El]:s[El],[Zi]:e[a]})}return It.create(qo(e),n)}else{const n=qo(e);if(n!==null&&r)return{...e};const o=It.create(n);return It.assign(o,e)}}function Bm(e,t=!1){return Yc(e)||Nr(e)||!nr(e)||(Ta(e)>1&&It.defineProperties(e,{set:Es,add:Es,clear:Es,delete:Es}),It.freeze(e),t&&Uc(e,(r,n)=>{Bm(n,!0)},!1)),e}function q5(){Rt(2)}var Es={[Zi]:q5};function Yc(e){return e===null||!Vm(e)?!0:It.isFrozen(e)}var Al="MapSet",Mp="Patches",_x="ArrayMethods",GO={};function io(e){const t=GO[e];return t||Rt(0,e),t}var Mx=e=>!!GO[e],Ji,qO=()=>Ji,Y5=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Mx(Al)?io(Al):void 0,arrayMethodsPlugin_:Mx(_x)?io(_x):void 0});function jx(e,t){t&&(e.patchPlugin_=io(Mp),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function jp(e){Dp(e),e.drafts_.forEach(X5),e.drafts_=null}function Dp(e){e===Ji&&(Ji=e.parent_)}var Dx=e=>Ji=Y5(Ji,e);function X5(e){const t=e[Ot];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Rx(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Ot].modified_&&(jp(t),Rt(4)),nr(e)&&(e=kx(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[Ot].base_,e,t)}else e=kx(t,r);return Z5(t,e,!0),jp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==UO?e:void 0}function kx(e,t){if(Yc(t))return t;const r=t[Ot];if(!r)return Tl(t,e.handledSet_,e);if(!Xc(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);ZO(r,e)}return r.copy_}function Z5(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Bm(t,r)}function YO(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Xc=(e,t)=>e.scope_===t,J5=[];function XO(e,t,r,n){const o=Mr(e),i=e.type_;if(n!==void 0&&Tp(o,n,i)===t){Ol(o,n,r,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;Uc(o,(l,c)=>{if(Nr(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const a=e.draftLocations_.get(t)??J5;for(const s of a)Ol(o,s,r,i)}function Q5(e,t,r){e.callbacks_.push(function(o){const i=t;if(!i||!Xc(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const a=Fm(i);XO(e,i.draft_??i,a,r),ZO(i,o)})}function ZO(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)}YO(e)}}function eW(e,t,r){const{scope_:n}=e;if(Nr(r)){const o=r[Ot];Xc(o,n)&&o.callbacks_.push(function(){tl(e);const a=Fm(o);XO(e,r,a,t)})}else nr(r)&&e.callbacks_.push(function(){const i=Mr(e);e.type_===3?i.has(r)&&Tl(r,n.handledSet_,n):Tp(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Tl(Tp(e.copy_,t,e.type_),n.handledSet_,n)})}function Tl(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Nr(e)||t.has(e)||!nr(e)||Yc(e)||(t.add(e),Uc(e,(n,o)=>{if(Nr(o)){const i=o[Ot];if(Xc(i,r)){const a=Fm(i);Ol(e,n,a,e.type_),YO(i)}}else nr(o)&&Tl(o,t,r)})),e}function tW(e,t){const r=Hc(e),n={type_:r?1:0,scope_:t?t.scope_:qO(),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=_l;r&&(o=[n],i=Qi);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var _l={get(e,t){if(t===Ot)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=Mr(e);if(!Tx(o,t,e.type_))return rW(e,o,t);const i=o[t];if(e.finalized_||!nr(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&G5(t))return i;if(i===pf(e.base_,t)){tl(e);const a=e.type_===1?+t:t,s=kp(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in Mr(e)},ownKeys(e){return Reflect.ownKeys(Mr(e))},set(e,t,r){const n=JO(Mr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=pf(Mr(e),t),i=o?.[Ot];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(H5(r,o)&&(r!==void 0||Tx(e.base_,t,e.type_)))return!0;tl(e),Rp(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),eW(e,t,r)),!0},deleteProperty(e,t){return tl(e),pf(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Rp(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Mr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[el]:!0,[Ap]:e.type_!==1||t!=="length",[El]:n[El],[Zi]:r[t]}},defineProperty(){Rt(11)},getPrototypeOf(e){return qo(e.base_)},setPrototypeOf(){Rt(12)}},Qi={};for(let e in _l){let t=_l[e];Qi[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Qi.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Rt(13),Qi.set.call(this,e,t,void 0)};Qi.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Rt(14),_l.set.call(this,e[0],t,r,e[0])};function pf(e,t){const r=e[Ot];return(r?Mr(r):e)[t]}function rW(e,t,r){const n=JO(t,r);return n?Zi in n?n[Zi]:n.get?.call(e.draft_):void 0}function JO(e,t){if(!(t in e))return;let r=qo(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=qo(r)}}function Rp(e){e.modified_||(e.modified_=!0,e.parent_&&Rp(e.parent_))}function tl(e){e.copy_||(e.assigned_=new Map,e.copy_=_p(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var nW=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,o)=>{if(Bn(r)&&!Bn(n)){const a=n;n=r;const s=this;return function(c=a,...u){return s.produce(c,d=>n.call(this,d,...u))}}Bn(n)||Rt(6),o!==void 0&&!Bn(o)&&Rt(7);let i;if(nr(r)){const a=Dx(this),s=kp(a,r,void 0);let l=!0;try{i=n(s),l=!1}finally{l?jp(a):Dp(a)}return jx(a,o),Rx(i,a)}else if(!r||!Vm(r)){if(i=n(r),i===void 0&&(i=r),i===UO&&(i=void 0),this.autoFreeze_&&Bm(i,!0),o){const a=[],s=[];io(Mp).generateReplacementPatches_(r,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Rt(1,r)},this.produceWithPatches=(r,n)=>{if(Bn(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]},ff(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ff(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ff(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){nr(t)||Rt(8),Nr(t)&&(t=rr(t));const r=Dx(this),n=kp(r,t,void 0);return n[Ot].isManual_=!0,Dp(r),n}finishDraft(t,r){const n=t&&t[Ot];(!n||!n.isManual_)&&Rt(9);const{scope_:o}=n;return jx(o,r),Rx(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=io(Mp).applyPatches_;return Nr(t)?o(t,r):this.produce(t,i=>o(i,r))}};function kp(e,t,r,n){const[o,i]=Gc(t)?io(Al).proxyMap_(t,r):qc(t)?io(Al).proxySet_(t,r):tW(t,r);return(r?.scope_??qO()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Q5(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 rr(e){return Nr(e)||Rt(10,e),QO(e)}function QO(e){if(!nr(e)||Yc(e))return e;const t=e[Ot];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=_p(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=_p(e,!0);return Uc(r,(o,i)=>{Ol(r,o,QO(i))},n),t&&(t.finalized_=!1),r}var oW=new nW,eA=oW.produce;function tA(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var iW=tA(),aW=tA,sW=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pl:Pl.apply(null,arguments)},lW=e=>e&&typeof e.match=="function";function qt(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?ve(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=>$m(n)&&n.type===e,r}function cW(e){return typeof e=="function"&&"type"in e&&lW(e)}function uW(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 dW(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=cW}=e;return()=>r=>n=>(t(n)&&console.warn(uW(n.type)),r(n))}function rA(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})}},O4={inputStabilityCheck:"once",identityFunctionCheck:"once"};function E4(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function A4(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function T4(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 Ax=e=>Array.isArray(e)?e:[e];function M4(e){const t=Array.isArray(e[0])?e[0]:e;return T4(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Tx(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var k4=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...O4,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:P4},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:C4}}},D4=class{constructor(e){this.value=e}deref(){return this.value}},_4=typeof WeakRef<"u"?WeakRef:D4,N4=0,Mx=1;function ul(){return{s:N4,v:void 0,o:null,p:null}}function aT(e,t={}){let r=ul();const{resultEqualityCheck:n}=t;let o,i=0;function a(){let s=r;const{length:l}=arguments;for(let d=0,f=l;d<f;d++){const h=arguments[d];if(typeof h=="function"||typeof h=="object"&&h!==null){let v=s.o;v===null&&(s.o=v=new WeakMap);const m=v.get(h);m===void 0?(s=ul(),v.set(h,s)):s=m}else{let v=s.p;v===null&&(s.p=v=new Map);const m=v.get(h);m===void 0?(s=ul(),v.set(h,s)):s=m}}const c=s;let u;if(s.s===Mx)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 _4(u):u}return c.s=Mx,c.v=u,u}return a.clearCache=()=>{r=ul(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function j4(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()),E4(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:h=aT,argsMemoizeOptions:v=[],devModeChecks:m={}}=u,g=Ax(f),y=Ax(v),w=M4(o),x=d(function(){return i++,c.apply(null,arguments)},...g);let S=!0;const P=h(function(){a++;const E=Tx(w,arguments);if(s=x.apply(null,E),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:A,inputStabilityCheck:T}=k4(S,m);if(A.shouldRun&&A.run(c,E,s),T.shouldRun){const M=Tx(w,arguments);T.run({inputSelectorResults:E,inputSelectorResultsCopy:M},{memoize:d,memoizeOptions:g},arguments)}S&&(S=!1)}return s},...y);return Object.assign(P,{resultFunc:c,memoizedResultFunc:x,dependencies:w,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var R=j4(aT),R4=Object.assign((e,t=R)=>{A4(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:()=>R4}),qf={},Xf={},Zf={},kx;function I4(){return kx||(kx=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})(Zf)),Zf}var Qf={},Jf={},Dx;function sT(){return Dx||(Dx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Jf)),Jf}var _x;function L4(){return _x||(_x=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sT(),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})(Qf)),Qf}var Nx;function $4(){return Nx||(Nx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=I4(),r=L4(),n=_v();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(h=>String(h));const c=(h,v)=>{let m=h;for(let g=0;g<v.length&&m!=null;++g)m=m[v[g]];return m},u=(h,v)=>v==null||h==null?v:typeof h=="object"&&"key"in h?Object.hasOwn(v,h.key)?v[h.key]:c(v,h.path):typeof h=="function"?h(v):Array.isArray(h)?c(v,h):typeof v=="object"?v[h]:v,d=a.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||r.isKey(h)?h:{key:h,path:n.toPath(h)}));return i.map(h=>({original:h,criteria:d.map(v=>u(v,h))})).slice().sort((h,v)=>{for(let m=0;m<d.length;m++){const g=t.compareValues(h.criteria[m],v.criteria[m],s[m]);if(g!==0)return g}return 0}).map(h=>h.original)}e.orderBy=o})(Xf)),Xf}var ep={},jx;function F4(){return jx||(jx=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})(ep)),ep}var tp={},Rx;function lT(){return Rx||(Rx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nT(),r=Iv(),n=ZA(),o=JA();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})(tp)),tp}var Ix;function V4(){return Ix||(Ix=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$4(),r=F4(),n=lT();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})(qf)),qf}var rp,Lx;function B4(){return Lx||(Lx=1,rp=V4().sortBy),rp}var W4=B4();const Mu=Hn(W4);var cT=e=>e.legend.settings,z4=e=>e.legend.size,K4=e=>e.legend.payload,U4=R([K4,cT],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Mu(n,r):n});function H4(){return J(U4)}var dl=1;function uT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=O.useState({height:0,left:0,top:0,width:0}),n=O.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)>dl||Math.abs(a.left-t.left)>dl||Math.abs(a.top-t.top)>dl||Math.abs(a.width-t.width)>dl)&&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 gt(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 G4=typeof Symbol=="function"&&Symbol.observable||"@@observable",$x=G4,np=()=>Math.random().toString(36).substring(7).split("").join("."),Y4={INIT:`@@redux/INIT${np()}`,REPLACE:`@@redux/REPLACE${np()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${np()}`},xo=Y4;function cs(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 q4(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(Q4(e))return"date";if(Z4(e))return"error";const r=X4(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 X4(e){return typeof e.constructor=="function"?e.constructor.name:null}function Z4(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Q4(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Tn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=q4(e)),t}function dT(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?gt(2):`Expected the root reducer to be a function. Instead, received: '${Tn(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?gt(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"?gt(1):`Expected the enhancer to be a function. Instead, received: '${Tn(r)}'`);return r(dT)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((g,y)=>{a.set(y,g)}))}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?gt(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(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?gt(4):`Expected the listener to be a function. Instead, received: '${Tn(g)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?gt(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 y=!0;c();const w=s++;return a.set(w,g),function(){if(y){if(l)throw new Error(process.env.NODE_ENV==="production"?gt(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.");y=!1,c(),a.delete(w),i=null}}}function f(g){if(!cs(g))throw new Error(process.env.NODE_ENV==="production"?gt(7):`Actions must be plain objects. Instead, the actual type was: '${Tn(g)}'. 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 g.type>"u")throw new Error(process.env.NODE_ENV==="production"?gt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof g.type!="string")throw new Error(process.env.NODE_ENV==="production"?gt(17):`Action "type" property must be a string. Instead, the actual type was: '${Tn(g.type)}'. Value was: '${g.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?gt(9):"Reducers may not dispatch actions.");try{l=!0,o=n(o,g)}finally{l=!1}return(i=a).forEach(w=>{w()}),g}function h(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?gt(10):`Expected the nextReducer to be a function. Instead, received: '${Tn(g)}`);n=g,f({type:xo.REPLACE})}function v(){const g=d;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?gt(11):`Expected the observer to be an object. Instead, received: '${Tn(y)}'`);function w(){const S=y;S.next&&S.next(u())}return w(),{unsubscribe:g(w)}},[$x](){return this}}}return f({type:xo.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:h,[$x]:v}}function Fx(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function J4(e,t,r,n){const o=Object.keys(t),i=r&&r.type===xo.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(!cs(e))return`The ${i} has unexpected type of "${Tn(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===xo.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 eK(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:xo.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?gt(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:xo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?gt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${xo.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 fT(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"&&Fx(`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{eK(r)}catch(a){i=a}return function(s={},l){if(i)throw i;if(process.env.NODE_ENV!=="production"){const d=J4(s,r,l,o);d&&Fx(d)}let c=!1;const u={};for(let d=0;d<n.length;d++){const f=n[d],h=r[f],v=s[f],m=h(v,l);if(typeof m>"u"){const g=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?gt(14):`When called with an action of type ${g?`"${String(g)}"`:"(unknown type)"}, the slice reducer for key "${f}" 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[f]=m,c=c||m!==v}return c=c||n.length!==Object.keys(s).length,c?u:s}}function uc(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function tK(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?gt(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=uc(...s)(o.dispatch),{...o,dispatch:i}}}function Fv(e){return cs(e)&&"type"in e&&typeof e.type=="string"}var pT=Symbol.for("immer-nothing"),Vx=Symbol.for("immer-draftable"),Lt=Symbol.for("immer-state"),rK=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=rK[e],n=fo(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 qt=Object,Si=qt.getPrototypeOf,dc="constructor",ku="prototype",Ch="configurable",fc="enumerable",Bl="writable",Da="value",on=e=>!!e&&!!e[Lt];function wr(e){return e?hT(e)||_u(e)||!!e[Vx]||!!e[dc]?.[Vx]||Nu(e)||ju(e):!1}var nK=qt[ku][dc].toString(),Bx=new WeakMap;function hT(e){if(!e||!Vv(e))return!1;const t=Si(e);if(t===null||t===qt[ku])return!0;const r=qt.hasOwnProperty.call(t,dc)&&t[dc];if(r===Object)return!0;if(!fo(r))return!1;let n=Bx.get(r);return n===void 0&&(n=Function.toString.call(r),Bx.set(r,n)),n===nK}function Du(e,t,r=!0){us(e)===0?(r?Reflect.ownKeys(e):qt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function us(e){const t=e[Lt];return t?t.type_:_u(e)?1:Nu(e)?2:ju(e)?3:0}var Wx=(e,t,r=us(e))=>r===2?e.has(t):qt[ku].hasOwnProperty.call(e,t),Oh=(e,t,r=us(e))=>r===2?e.get(t):e[t],pc=(e,t,r,n=us(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function oK(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _u=Array.isArray,Nu=e=>e instanceof Map,ju=e=>e instanceof Set,Vv=e=>typeof e=="object",fo=e=>typeof e=="function",op=e=>typeof e=="boolean";function iK(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Xr=e=>e.copy_||e.base_,Bv=e=>e.modified_?e.copy_:e.base_;function Eh(e,t){if(Nu(e))return new Map(e);if(ju(e))return new Set(e);if(_u(e))return Array[ku].slice.call(e);const r=hT(e);if(t===!0||t==="class_only"&&!r){const n=qt.getOwnPropertyDescriptors(e);delete n[Lt];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s[Bl]===!1&&(s[Bl]=!0,s[Ch]=!0),(s.get||s.set)&&(n[a]={[Ch]:!0,[Bl]:!0,[fc]:s[fc],[Da]:e[a]})}return qt.create(Si(e),n)}else{const n=Si(e);if(n!==null&&r)return{...e};const o=qt.create(n);return qt.assign(o,e)}}function Wv(e,t=!1){return Ru(e)||on(e)||!wr(e)||(us(e)>1&&qt.defineProperties(e,{set:fl,add:fl,clear:fl,delete:fl}),qt.freeze(e),t&&Du(e,(r,n)=>{Wv(n,!0)},!1)),e}function aK(){Gt(2)}var fl={[Da]:aK};function Ru(e){return e===null||!Vv(e)?!0:qt.isFrozen(e)}var hc="MapSet",Ah="Patches",zx="ArrayMethods",mT={};function Do(e){const t=mT[e];return t||Gt(0,e),t}var Kx=e=>!!mT[e],_a,vT=()=>_a,sK=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Kx(hc)?Do(hc):void 0,arrayMethodsPlugin_:Kx(zx)?Do(zx):void 0});function Ux(e,t){t&&(e.patchPlugin_=Do(Ah),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Th(e){Mh(e),e.drafts_.forEach(lK),e.drafts_=null}function Mh(e){e===_a&&(_a=e.parent_)}var Hx=e=>_a=sK(_a,e);function lK(e){const t=e[Lt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Gx(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Lt].modified_&&(Th(t),Gt(4)),wr(e)&&(e=Yx(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[Lt].base_,e,t)}else e=Yx(t,r);return cK(t,e,!0),Th(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pT?e:void 0}function Yx(e,t){if(Ru(t))return t;const r=t[Lt];if(!r)return mc(t,e.handledSet_,e);if(!Iu(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);bT(r,e)}return r.copy_}function cK(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Wv(t,r)}function gT(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Iu=(e,t)=>e.scope_===t,uK=[];function yT(e,t,r,n){const o=Xr(e),i=e.type_;if(n!==void 0&&Oh(o,n,i)===t){pc(o,n,r,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;Du(o,(l,c)=>{if(on(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const a=e.draftLocations_.get(t)??uK;for(const s of a)pc(o,s,r,i)}function dK(e,t,r){e.callbacks_.push(function(o){const i=t;if(!i||!Iu(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const a=Bv(i);yT(e,i.draft_??i,a,r),bT(i,o)})}function bT(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)}gT(e)}}function fK(e,t,r){const{scope_:n}=e;if(on(r)){const o=r[Lt];Iu(o,n)&&o.callbacks_.push(function(){Wl(e);const a=Bv(o);yT(e,r,a,t)})}else wr(r)&&e.callbacks_.push(function(){const i=Xr(e);e.type_===3?i.has(r)&&mc(r,n.handledSet_,n):Oh(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&mc(Oh(e.copy_,t,e.type_),n.handledSet_,n)})}function mc(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||on(e)||t.has(e)||!wr(e)||Ru(e)||(t.add(e),Du(e,(n,o)=>{if(on(o)){const i=o[Lt];if(Iu(i,r)){const a=Bv(i);pc(e,n,a,e.type_),gT(i)}}else wr(o)&&mc(o,t,r)})),e}function pK(e,t){const r=_u(e),n={type_:r?1:0,scope_:t?t.scope_:vT(),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=vc;r&&(o=[n],i=Na);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var vc={get(e,t){if(t===Lt)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=Xr(e);if(!Wx(o,t,e.type_))return hK(e,o,t);const i=o[t];if(e.finalized_||!wr(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&iK(t))return i;if(i===ip(e.base_,t)){Wl(e);const a=e.type_===1?+t:t,s=Dh(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in Xr(e)},ownKeys(e){return Reflect.ownKeys(Xr(e))},set(e,t,r){const n=wT(Xr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=ip(Xr(e),t),i=o?.[Lt];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(oK(r,o)&&(r!==void 0||Wx(e.base_,t,e.type_)))return!0;Wl(e),kh(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),fK(e,t,r)),!0},deleteProperty(e,t){return Wl(e),ip(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),kh(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Xr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Bl]:!0,[Ch]:e.type_!==1||t!=="length",[fc]:n[fc],[Da]:r[t]}},defineProperty(){Gt(11)},getPrototypeOf(e){return Si(e.base_)},setPrototypeOf(){Gt(12)}},Na={};for(let e in vc){let t=vc[e];Na[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}Na.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Gt(13),Na.set.call(this,e,t,void 0)};Na.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Gt(14),vc.set.call(this,e[0],t,r,e[0])};function ip(e,t){const r=e[Lt];return(r?Xr(r):e)[t]}function hK(e,t,r){const n=wT(t,r);return n?Da in n?n[Da]:n.get?.call(e.draft_):void 0}function wT(e,t){if(!(t in e))return;let r=Si(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Si(r)}}function kh(e){e.modified_||(e.modified_=!0,e.parent_&&kh(e.parent_))}function Wl(e){e.copy_||(e.assigned_=new Map,e.copy_=Eh(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var mK=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,o)=>{if(fo(r)&&!fo(n)){const a=n;n=r;const s=this;return function(c=a,...u){return s.produce(c,d=>n.call(this,d,...u))}}fo(n)||Gt(6),o!==void 0&&!fo(o)&&Gt(7);let i;if(wr(r)){const a=Hx(this),s=Dh(a,r,void 0);let l=!0;try{i=n(s),l=!1}finally{l?Th(a):Mh(a)}return Ux(a,o),Gx(i,a)}else if(!r||!Vv(r)){if(i=n(r),i===void 0&&(i=r),i===pT&&(i=void 0),this.autoFreeze_&&Wv(i,!0),o){const a=[],s=[];Do(Ah).generateReplacementPatches_(r,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Gt(1,r)},this.produceWithPatches=(r,n)=>{if(fo(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]},op(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),op(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),op(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){wr(t)||Gt(8),on(t)&&(t=br(t));const r=Hx(this),n=Dh(r,t,void 0);return n[Lt].isManual_=!0,Mh(r),n}finishDraft(t,r){const n=t&&t[Lt];(!n||!n.isManual_)&&Gt(9);const{scope_:o}=n;return Ux(o,r),Gx(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=Do(Ah).applyPatches_;return on(t)?o(t,r):this.produce(t,i=>o(i,r))}};function Dh(e,t,r,n){const[o,i]=Nu(t)?Do(hc).proxyMap_(t,r):ju(t)?Do(hc).proxySet_(t,r):pK(t,r);return(r?.scope_??vT()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?dK(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 br(e){return on(e)||Gt(10,e),xT(e)}function xT(e){if(!wr(e)||Ru(e))return e;const t=e[Lt];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Eh(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Eh(e,!0);return Du(r,(o,i)=>{pc(r,o,xT(i))},n),t&&(t.finalized_=!1),r}var vK=new mK,ST=vK.produce;function PT(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var gK=PT(),yK=PT,bK=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?uc:uc.apply(null,arguments)},wK=e=>e&&typeof e.match=="function";function ur(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?we(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=>Fv(n)&&n.type===e,r}function xK(e){return typeof e=="function"&&"type"in e&&wK(e)}function SK(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 PK(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=xK}=e;return()=>r=>n=>(t(n)&&console.warn(SK(n.type)),r(n))}function CT(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 nA=class Fi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Fi.prototype)}static get[Symbol.species](){return Fi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Fi(...t[0].concat(this)):new Fi(...t.concat(this))}};function Ix(e){return nr(e)?eA(e,()=>{}):e}function Os(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function fW(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function pW(e,t,r){const n=oA(e,t,r);return{detectMutations(){return iA(e,t,n,r)}}}function oA(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]=oA(e,t,r[s],l))}}return i}function iA(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(v=>v instanceof RegExp?v.test(d):d===v))continue;const f=iA(e,t,r.children[u],n[u],s,d);if(f.wasMutated)return f}return{wasMutated:!1}}function hW(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,f){return c[0]===f?"[Circular ~]":"[Circular ~."+u.slice(0,c.indexOf(f)).join(".")+"]"}),function(d,f){if(c.length>0){var h=c.indexOf(this);~h?c.splice(h+1):c.push(this),~h?u.splice(h,1/0,d):u.push(d),~c.indexOf(f)&&(f=l.call(this,d,f))}else c.push(f);return s==null?f:s.call(this,d,f)}},{isImmutable:n=fW,ignoredPaths:o,warnAfter:i=32}=e;const a=pW.bind(null,n,o);return({getState:s})=>{let l=s(),c=a(l),u;return d=>f=>{const h=rA(i,"ImmutableStateInvariantMiddleware");h.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?ve(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 v=d(f);return h.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?ve(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(f)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),h.warnIfExceeded(),v}}}}function aA(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Aa(e)}function Ip(e,t="",r=aA,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(h=>h instanceof RegExp?h.test(d):d===h))){if(!r(u))return{keyPath:d,value:u};if(typeof u=="object"&&(a=Ip(u,d,r,n,o,i),a))return a}}return i&&sA(e)&&i.add(e),!1}function sA(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!sA(t))return!1;return!0}function mW(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=aA,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=>f=>h=>{if(!$m(h))return f(h);const v=f(h),m=rA(a,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(h.type)!==-1)&&m.measureTime(()=>{const g=Ip(h,"",t,r,o,u);if(g){const{keyPath:y,value:x}=g;console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,x,`
63
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var OT=class ya extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ya.prototype)}static get[Symbol.species](){return ya}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ya(...t[0].concat(this)):new ya(...t.concat(this))}};function qx(e){return wr(e)?ST(e,()=>{}):e}function pl(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function CK(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function OK(e,t,r){const n=ET(e,t,r);return{detectMutations(){return AT(e,t,n,r)}}}function ET(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]=ET(e,t,r[s],l))}}return i}function AT(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(v=>v instanceof RegExp?v.test(d):d===v))continue;const f=AT(e,t,r.children[u],n[u],s,d);if(f.wasMutated)return f}return{wasMutated:!1}}function EK(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,f){return c[0]===f?"[Circular ~]":"[Circular ~."+u.slice(0,c.indexOf(f)).join(".")+"]"}),function(d,f){if(c.length>0){var h=c.indexOf(this);~h?c.splice(h+1):c.push(this),~h?u.splice(h,1/0,d):u.push(d),~c.indexOf(f)&&(f=l.call(this,d,f))}else c.push(f);return s==null?f:s.call(this,d,f)}},{isImmutable:n=CK,ignoredPaths:o,warnAfter:i=32}=e;const a=OK.bind(null,n,o);return({getState:s})=>{let l=s(),c=a(l),u;return d=>f=>{const h=CT(i,"ImmutableStateInvariantMiddleware");h.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?we(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 v=d(f);return h.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?we(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(f)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),h.warnIfExceeded(),v}}}}function TT(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||cs(e)}function _h(e,t="",r=TT,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(h=>h instanceof RegExp?h.test(d):d===h))){if(!r(u))return{keyPath:d,value:u};if(typeof u=="object"&&(a=_h(u,d,r,n,o,i),a))return a}}return i&&MT(e)&&i.add(e),!1}function MT(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!MT(t))return!1;return!0}function AK(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=TT,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=>f=>h=>{if(!Fv(h))return f(h);const v=f(h),m=CT(a,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(h.type)!==-1)&&m.measureTime(()=>{const g=_h(h,"",t,r,o,u);if(g){const{keyPath:y,value:w}=g;console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,w,`
64
64
  Take a look at the logic that dispatched this action: `,h,`
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 g=d.getState(),y=Ip(g,"",t,r,i,u);if(y){const{keyPath:x,value:w}=y;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 g=d.getState(),y=_h(g,"",t,r,i,u);if(y){const{keyPath:w,value:x}=y;console.error(`A non-serializable value was detected in the state, in the path: \`${w}\`. Value:`,x,`
67
67
  Take a look at the reducer(s) handling this action type: ${h.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()),v}}}function As(e){return typeof e=="boolean"}var vW=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new nA;if(r&&(As(r)?a.push(iW):a.push(aW(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};As(n)||(s=n),a.unshift(hW(s))}if(o){let s={};As(o)||(s=o),a.push(mW(s))}if(i){let s={};As(i)||(s=i),a.unshift(dW(s))}}return a},lA="RTK_autoBatch",Te=()=>e=>({payload:e,meta:{[lA]:!0}}),Nx=e=>t=>{setTimeout(t,e)},cA=(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:Nx(10):e.type==="callback"?e.queueNotification:Nx(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const d=()=>o&&u(),f=n.subscribe(d);return s.add(u),()=>{f(),s.delete(u)}},dispatch(u){try{return o=!u?.meta?.[lA],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},gW=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new nA(e);return n&&o.push(cA(typeof n=="object"?n:void 0)),o};function yW(e){const t=vW(),{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(Aa(r))l=KO(r);else throw new Error(process.env.NODE_ENV==="production"?ve(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"?ve(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"?ve(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"?ve(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&i){let m=new Set;c.forEach(g=>{if(m.has(g))throw new Error(process.env.NODE_ENV==="production"?ve(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(g)})}let u=Pl;o&&(u=sW({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const d=W5(...c),f=gW(d);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?ve(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(f):f();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?ve(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?ve(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!h.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const v=u(...h);return WO(l,a,v)}function uA(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"?ve(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?ve(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"?ve(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?ve(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"?ve(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"?ve(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"?ve(31):"`builder.addDefaultCase` can only be called once");return n=i,o}};return e(o),[t,r,n]}function bW(e){return typeof e=="function"}function xW(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?ve(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]=uA(t),i;if(bW(e))i=()=>Ix(e());else{const s=Ix(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(Nr(u)){const h=d(u,l);return h===void 0?u:h}else{if(nr(u))return eA(u,f=>d(f,l));{const f=d(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},s)}return a.getInitialState=i,a}var wW="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",SW=(e=21)=>{let t="",r=e;for(;r--;)t+=wW[Math.random()*64|0];return t},PW=Symbol.for("rtk-slice-createasyncthunk");function CW(e,t){return`${e}/${t}`}function EW({creators:e}={}){const t=e?.asyncThunk?.[PW];return function(n){const{name:o,reducerPath:i=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?ve(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(AW()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(w,S){const P=typeof w=="string"?w:w.type;if(!P)throw new Error(process.env.NODE_ENV==="production"?ve(12):"`context.addCase` cannot be called with an empty action type");if(P in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?ve(13):"`context.addCase` cannot be called with two reducers for the same action type: "+P);return l.sliceCaseReducersByType[P]=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],P={reducerName:w,type:CW(o,w),createNotation:typeof n.reducers=="function"};_W(S)?jW(P,S,c,t):TW(P,S,c)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?ve(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=[],P=void 0]=typeof n.extraReducers=="function"?uA(n.extraReducers):[n.extraReducers],C={...w,...l.sliceCaseReducersByType};return xW(n.initialState,E=>{for(let A in C)E.addCase(A,C[A]);for(let A of l.sliceMatchers)E.addMatcher(A.matcher,A.reducer);for(let A of S)E.addMatcher(A.matcher,A.reducer);P&&E.addDefaultCase(P)})}const d=w=>w,f=new Map,h=new WeakMap;let v;function m(w,S){return v||(v=u()),v(w,S)}function g(){return v||(v=u()),v.getInitialState()}function y(w,S=!1){function P(E){let A=E[w];if(typeof A>"u"){if(S)A=Os(h,P,g);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?ve(15):"selectSlice returned undefined for an uninjected slice reducer")}return A}function C(E=d){const A=Os(f,S,()=>new WeakMap);return Os(A,E,()=>{const _={};for(const[D,R]of Object.entries(n.selectors??{}))_[D]=OW(R,E,()=>Os(h,E,g),S);return _})}return{reducerPath:w,getSelectors:C,get selectors(){return C(P)},selectSlice:P}}const x={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:g,...y(i),injectInto(w,{reducerPath:S,...P}={}){const C=S??i;return w.inject({reducerPath:C,reducer:m},P),{...x,...y(C,!0)}}};return x}}function OW(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"?ve(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return o.unwrapped=e,o}var Mt=EW();function AW(){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 TW({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!MW(n))throw new Error(process.env.NODE_ENV==="production"?ve(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?qt(e,a):qt(e))}function _W(e){return e._reducerDefinitionType==="asyncThunk"}function MW(e){return e._reducerDefinitionType==="reducerWithPrepare"}function jW({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?ve(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||Ts,pending:s||Ts,rejected:l||Ts,settled:c||Ts})}function Ts(){}var DW="task",dA="listener",fA="completed",zm="cancelled",RW=`task-${zm}`,kW=`task-${fA}`,Np=`${dA}-${zm}`,IW=`${dA}-${fA}`,Zc=class{constructor(e){this.code=e,this.message=`${DW} ${zm} (reason: ${e})`}name="TaskAbortError";message},Wm=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?ve(32):`${t} is not a function`)},Ml=()=>{},pA=(e,t=Ml)=>(e.catch(t),e),hA=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Xn=e=>{if(e.aborted)throw new Zc(e.reason)};function mA(e,t){let r=Ml;return new Promise((n,o)=>{const i=()=>o(new Zc(e.reason));if(e.aborted){i();return}r=hA(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=Ml})}var NW=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Zc?"cancelled":"rejected",error:r}}finally{t?.()}},jl=e=>t=>pA(mA(e,t).then(r=>(Xn(e),r))),vA=e=>{const t=jl(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:Ko}=Object,Lx={},_a="listenerMiddleware",LW=(e,t)=>{const r=n=>hA(e,()=>n.abort(e.reason));return(n,o)=>{Wm(n,"taskExecutor");const i=new AbortController;r(i);const a=NW(async()=>{Xn(e),Xn(i.signal);const s=await n({pause:jl(i.signal),delay:vA(i.signal),signal:i.signal});return Xn(i.signal),s},()=>i.abort(kW));return o?.autoJoin&&t.push(a.catch(Ml)),{result:jl(e)(a),cancel(){i.abort(RW)}}}},$W=(e,t)=>{const r=async(n,o)=>{Xn(t);let i=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(d,f)=>{f.unsubscribe(),l([d,f.getState(),f.getOriginalState()])}});i=()=>{u(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{const l=await mA(t,Promise.race(s));return Xn(t),l}finally{i()}};return(n,o)=>pA(r(n,o))},gA=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=qt(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"?ve(21):"Creating or removing a listener requires one of the known fields for matching an action");return Wm(i,"options.listener"),{predicate:o,type:t,effect:i}},yA=Ko(e=>{const{type:t,predicate:r,effect:n}=gA(e);return{id:SW(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?ve(22):"Unsubscribe not initialized")}}},{withTypes:()=>yA}),$x=(e,t)=>{const{type:r,effect:n,predicate:o}=gA(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},Lp=e=>{e.pending.forEach(t=>{t.abort(Np)})},VW=(e,t)=>()=>{for(const r of t.keys())Lp(r);e.clear()},Vx=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},bA=Ko(qt(`${_a}/add`),{withTypes:()=>bA}),FW=qt(`${_a}/removeAll`),xA=Ko(qt(`${_a}/remove`),{withTypes:()=>xA}),BW=(...e)=>{console.error(`${_a}/error`,...e)},Ma=(e={})=>{const t=new Map,r=new Map,n=h=>{const v=r.get(h)??0;r.set(h,v+1)},o=h=>{const v=r.get(h)??1;v===1?r.delete(h):r.set(h,v-1)},{extra:i,onError:a=BW}=e;Wm(a,"onError");const s=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),v=>{h.unsubscribe(),v?.cancelActive&&Lp(h)}),l=h=>{const v=$x(t,h)??yA(h);return s(v)};Ko(l,{withTypes:()=>l});const c=h=>{const v=$x(t,h);return v&&(v.unsubscribe(),h.cancelActive&&Lp(v)),!!v};Ko(c,{withTypes:()=>c});const u=async(h,v,m,g)=>{const y=new AbortController,x=$W(l,y.signal),w=[];try{h.pending.add(y),n(h),await Promise.resolve(h.effect(v,Ko({},m,{getOriginalState:g,condition:(S,P)=>x(S,P).then(Boolean),take:x,delay:vA(y.signal),pause:jl(y.signal),extra:i,signal:y.signal,fork:LW(y.signal,w),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((S,P,C)=>{S!==y&&(S.abort(Np),C.delete(S))})},cancel:()=>{y.abort(Np),h.pending.delete(y)},throwIfCancelled:()=>{Xn(y.signal)}})))}catch(S){S instanceof Zc||Vx(a,S,{raisedBy:"effect"})}finally{await Promise.all(w),y.abort(IW),o(h),h.pending.delete(y)}},d=VW(t,r);return{middleware:h=>v=>m=>{if(!$m(m))return v(m);if(bA.match(m))return l(m.payload);if(FW.match(m)){d();return}if(xA.match(m))return c(m.payload);let g=h.getState();const y=()=>{if(g===Lx)throw new Error(process.env.NODE_ENV==="production"?ve(23):`${_a}: getOriginalState can only be called synchronously`);return g};let x;try{if(x=v(m),t.size>0){const w=h.getState(),S=Array.from(t.values());for(const P of S){let C=!1;try{C=P.predicate(m,w,g)}catch(E){C=!1,Vx(a,E,{raisedBy:"predicate"})}C&&u(P,m,h,y)}}}finally{g=Lx}return x},startListening:l,stopListening:c,clearListeners:d}};function ve(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 zW={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},wA=Mt({name:"chartLayout",initialState:zW,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:WW,setLayout:KW,setChartSize:UW,setScale:HW}=wA.actions,GW=wA.reducer;function SA(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ue(e){return Number.isFinite(e)}function Pr(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}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 Ro(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){qW(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 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 xe(e,t,r){return Re(e)||Re(t)?r:Sr(t)?no(e,t,r):typeof t=="function"?t(e):r}var ZW=(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 Ro(Ro({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&q(e[a]))return Ro(Ro({},e),{},{[a]:e[a]+(o||0)})}return e},qr=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",PA=(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},CA=(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:f,axisType:h}=e;if(!a)return null;var v=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,m=o==="category"&&a.bandwidth?a.bandwidth()/v:0;if(m=h==="angleAxis"&&i&&i.length>=2?et(i[0]-i[1])*2*m:m,d||f){var g=(d||f||[]).map((y,x)=>{var w=n?n.indexOf(y):y,S=a.map(w);return ue(S)?{coordinate:S+m,value:y,offset:m,index:x}:null}).filter(Tt);return g}return l&&c?c.map((y,x)=>{var w=a.map(y);return ue(w)?{coordinate:w+m,value:y,index:x,offset:m}:null}).filter(Tt):a.ticks&&u!=null?a.ticks(u).map((y,x)=>{var w=a.map(y);return ue(w)?{coordinate:w+m,value:y,index:x,offset:m}:null}).filter(Tt):a.domain().map((y,x)=>{var w=a.map(y);return ue(w)?{coordinate:w+m,value:n?n[y]:y,index:x,offset:m}:null}).filter(Tt)},JW=(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},QW=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],f=wr(u)?d:u;f>=0?(c[0]=i,i+=f,c[1]=i):(c[0]=a,a+=f,c[1]=a)}}}},e4=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=wr(l[1])?l[0]:l[1];c>=0?(l[0]=i,i+=c,l[1]=i):(l[0]=0,l[1]=0)}}}},t4={sign:QW,expand:o3,none:ro,silhouette:i3,wiggle:a3,positive:e4},r4=(e,t,r)=>{var n,o=(n=t4[r])!==null&&n!==void 0?n:ro,i=n3().keys(t).value((s,l)=>Number(xe(s,l,0))).order(Ep).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,u)=>{var d=xe(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 n4(e){return e==null?void 0:String(e)}function Bx(e){var{axis:t,ticks:r,bandSize:n,entry:o,index:i,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Re(o[t.dataKey])){var s=EO(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=xe(o,Re(a)?t.dataKey:a),c=t.scale.map(l);return q(c)?c:null}var zx=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=xe(i,t.dataKey,t.scale.domain()[a]);if(Re(s))return null;var l=t.scale.map(s);return q(l)?l-o/2+n:null},o4=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]},i4=e=>{var t=e.flat(2).filter(q);return[Math.min(...t),Math.max(...t)]},a4=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],s4=(e,t,r)=>{if(e!=null)return a4(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=SA(c,t,r),d=i4(u);return!ue(d[0])||!ue(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]))},Wx=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Kx=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yo=(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=Wc(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 Ux(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:o,name:i}=e;return Ro(Ro({},t),{},{dataKey:r,payload:n,value:o,name:i})}function ci(e,t){if(e)return String(e);if(typeof t=="string")return t}var l4=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},c4=(e,t)=>t==="centric"?e.angle:e.radius,Yr=e=>e.layout.width,Xr=e=>e.layout.height,u4=e=>e.layout.scale,EA=e=>e.layout.margin,Jc=k(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Qc=k(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),OA="data-recharts-item-index",AA="data-recharts-item-id",ja=60;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 _s(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){d4(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 d4(e,t,r){return(t=f4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f4(e){var t=p4(e,"string");return typeof t=="symbol"?t:t+""}function p4(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 h4=e=>e.brush.height;function m4(e){var t=Qc(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:ja;return r+o}return r},0)}function v4(e){var t=Qc(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:ja;return r+o}return r},0)}function g4(e){var t=Jc(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function y4(e){var t=Jc(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var qe=k([Yr,Xr,EA,h4,m4,v4,g4,y4,BO,j5],(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},f=_s(_s({},d),u),h=f.bottom;f.bottom+=n,f=ZW(f,l,c);var v=e-f.left-f.right,m=t-f.top-f.bottom;return _s(_s({brushBottom:h},f),{},{width:Math.max(v,0),height:Math.max(m,0)})}),b4=k(qe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Km=k(Yr,Xr,(e,t)=>({x:0,y:0,width:e,height:t})),x4=O.createContext(null),gt=()=>O.useContext(x4)!=null,eu=e=>e.brush,tu=k([eu,qe,EA],(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})),hf={},mf={},vf={},Gx;function w4(){return Gx||(Gx=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 f=null;const h=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,d()},n)},v=()=>{f!==null&&(clearTimeout(f),f=null)},m=()=>{v(),a=void 0,s=null},g=()=>{u()},y=function(...x){if(o?.aborted)return;a=this,s=x;const w=f==null;h(),l&&w&&u()};return y.schedule=h,y.cancel=m,y.flush=g,o?.addEventListener("abort",m,{once:!0}),y}e.debounce=t})(vf)),vf}var qx;function S4(){return qx||(qx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=w4();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 f=t.debounce(function(...m){u=n.apply(this,m),d=null},o,{edges:c}),h=function(...m){return l!=null&&(d===null&&(d=Date.now()),Date.now()-d>=l)?(u=n.apply(this,m),d=Date.now(),f.cancel(),f.schedule(),u):(f.apply(this,m),u)},v=()=>(f.flush(),u);return h.cancel=f.cancel,h.flush=v,h}e.debounce=r})(mf)),mf}var Yx;function P4(){return Yx||(Yx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=S4();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})(hf)),hf}var gf,Xx;function C4(){return Xx||(Xx=1,gf=P4().throttle),gf}var E4=C4();const O4=Pn(E4);var Dl=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++]))}},mr={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},TA=(e,t,r)=>{var{width:n=mr.width,height:o=mr.height,aspect:i,maxHeight:a}=r,s=oo(n)?e:Number(n),l=oo(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}},A4={width:0,height:0,overflow:"visible"},T4={width:0,overflowX:"visible"},_4={height:0,overflowY:"visible"},M4={},j4=e=>{var{width:t,height:r}=e,n=oo(t),o=oo(r);return n&&o?A4:n?T4:o?_4:M4};function D4(e){var{width:t,height:r,aspect:n}=e,o=t,i=r;return o===void 0&&i===void 0?(o=mr.width,i=mr.height):o===void 0?o=n&&n>0?void 0:mr.width:i===void 0&&(i=n&&n>0?void 0:mr.height),{width:o,height:i}}function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$p.apply(null,arguments)}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 Jx(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){R4(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 R4(e,t,r){return(t=k4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k4(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 _A=O.createContext(mr.initialDimension);function N4(e){return Pr(e.width)&&Pr(e.height)}function MA(e){var{children:t,width:r,height:n}=e,o=O.useMemo(()=>({width:r,height:n}),[r,n]);return N4(o)?p.createElement(_A.Provider,{value:o},t):null}var Um=()=>O.useContext(_A),L4=O.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=mr.initialDimension,width:o,height:i,minWidth:a=mr.minWidth,minHeight:s,maxHeight:l,children:c,debounce:u=mr.debounce,id:d,className:f,onResize:h,style:v={}}=e,m=O.useRef(null),g=O.useRef();g.current=h,O.useImperativeHandle(t,()=>m.current);var[y,x]=O.useState({containerWidth:n.width,containerHeight:n.height}),w=O.useCallback((A,_)=>{x(D=>{var R=Math.round(A),T=Math.round(_);return D.containerWidth===R&&D.containerHeight===T?D:{containerWidth:R,containerHeight:T}})},[]);O.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return go;var A=T=>{var j,N=T[0];if(N!=null){var{width:W,height:B}=N.contentRect;w(W,B),(j=g.current)===null||j===void 0||j.call(g,W,B)}};u>0&&(A=O4(A,u,{trailing:!0,leading:!1}));var _=new ResizeObserver(A),{width:D,height:R}=m.current.getBoundingClientRect();return w(D,R),_.observe(m.current),()=>{_.disconnect()}},[w,u]);var{containerWidth:S,containerHeight:P}=y;Dl(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:C,calculatedHeight:E}=TA(S,P,{width:o,height:i,aspect:r,maxHeight:l});return Dl(C!=null&&C>0||E!=null&&E>0,`The width(%s) and height(%s) of chart should be greater than 0,
68
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),v}}}function hl(e){return typeof e=="boolean"}var TK=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new OT;if(r&&(hl(r)?a.push(gK):a.push(yK(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};hl(n)||(s=n),a.unshift(EK(s))}if(o){let s={};hl(o)||(s=o),a.push(AK(s))}if(i){let s={};hl(i)||(s=i),a.unshift(PK(s))}}return a},kT="RTK_autoBatch",Ie=()=>e=>({payload:e,meta:{[kT]:!0}}),Xx=e=>t=>{setTimeout(t,e)},DT=(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:Xx(10):e.type==="callback"?e.queueNotification:Xx(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const d=()=>o&&u(),f=n.subscribe(d);return s.add(u),()=>{f(),s.delete(u)}},dispatch(u){try{return o=!u?.meta?.[kT],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},MK=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new OT(e);return n&&o.push(DT(typeof n=="object"?n:void 0)),o};function kK(e){const t=TK(),{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(cs(r))l=fT(r);else throw new Error(process.env.NODE_ENV==="production"?we(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"?we(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"?we(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"?we(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&i){let m=new Set;c.forEach(g=>{if(m.has(g))throw new Error(process.env.NODE_ENV==="production"?we(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(g)})}let u=uc;o&&(u=bK({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const d=tK(...c),f=MK(d);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?we(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(f):f();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?we(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?we(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!h.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const v=u(...h);return dT(l,a,v)}function _T(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"?we(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?we(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"?we(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?we(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"?we(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"?we(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"?we(31):"`builder.addDefaultCase` can only be called once");return n=i,o}};return e(o),[t,r,n]}function DK(e){return typeof e=="function"}function _K(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?we(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]=_T(t),i;if(DK(e))i=()=>qx(e());else{const s=qx(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(on(u)){const h=d(u,l);return h===void 0?u:h}else{if(wr(u))return ST(u,f=>d(f,l));{const f=d(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},s)}return a.getInitialState=i,a}var NK="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",jK=(e=21)=>{let t="",r=e;for(;r--;)t+=NK[Math.random()*64|0];return t},RK=Symbol.for("rtk-slice-createasyncthunk");function IK(e,t){return`${e}/${t}`}function LK({creators:e}={}){const t=e?.asyncThunk?.[RK];return function(n){const{name:o,reducerPath:i=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?we(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(FK()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(x,S){const P=typeof x=="string"?x:x.type;if(!P)throw new Error(process.env.NODE_ENV==="production"?we(12):"`context.addCase` cannot be called with an empty action type");if(P in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?we(13):"`context.addCase` cannot be called with two reducers for the same action type: "+P);return l.sliceCaseReducersByType[P]=S,c},addMatcher(x,S){return l.sliceMatchers.push({matcher:x,reducer:S}),c},exposeAction(x,S){return l.actionCreators[x]=S,c},exposeCaseReducer(x,S){return l.sliceCaseReducersByName[x]=S,c}};s.forEach(x=>{const S=a[x],P={reducerName:x,type:IK(o,x),createNotation:typeof n.reducers=="function"};BK(S)?zK(P,S,c,t):VK(P,S,c)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?we(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[x={},S=[],P=void 0]=typeof n.extraReducers=="function"?_T(n.extraReducers):[n.extraReducers],C={...x,...l.sliceCaseReducersByType};return _K(n.initialState,E=>{for(let A in C)E.addCase(A,C[A]);for(let A of l.sliceMatchers)E.addMatcher(A.matcher,A.reducer);for(let A of S)E.addMatcher(A.matcher,A.reducer);P&&E.addDefaultCase(P)})}const d=x=>x,f=new Map,h=new WeakMap;let v;function m(x,S){return v||(v=u()),v(x,S)}function g(){return v||(v=u()),v.getInitialState()}function y(x,S=!1){function P(E){let A=E[x];if(typeof A>"u"){if(S)A=pl(h,P,g);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?we(15):"selectSlice returned undefined for an uninjected slice reducer")}return A}function C(E=d){const A=pl(f,S,()=>new WeakMap);return pl(A,E,()=>{const T={};for(const[M,D]of Object.entries(n.selectors??{}))T[M]=$K(D,E,()=>pl(h,E,g),S);return T})}return{reducerPath:x,getSelectors:C,get selectors(){return C(P)},selectSlice:P}}const w={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:g,...y(i),injectInto(x,{reducerPath:S,...P}={}){const C=S??i;return x.inject({reducerPath:C,reducer:m},P),{...w,...y(C,!0)}}};return w}}function $K(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"?we(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return o.unwrapped=e,o}var Bt=LK();function FK(){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 VK({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!WK(n))throw new Error(process.env.NODE_ENV==="production"?we(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?ur(e,a):ur(e))}function BK(e){return e._reducerDefinitionType==="asyncThunk"}function WK(e){return e._reducerDefinitionType==="reducerWithPrepare"}function zK({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?we(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||ml,pending:s||ml,rejected:l||ml,settled:c||ml})}function ml(){}var KK="task",NT="listener",jT="completed",zv="cancelled",UK=`task-${zv}`,HK=`task-${jT}`,Nh=`${NT}-${zv}`,GK=`${NT}-${jT}`,Lu=class{constructor(e){this.code=e,this.message=`${KK} ${zv} (reason: ${e})`}name="TaskAbortError";message},Kv=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?we(32):`${t} is not a function`)},gc=()=>{},RT=(e,t=gc)=>(e.catch(t),e),IT=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),So=e=>{if(e.aborted)throw new Lu(e.reason)};function LT(e,t){let r=gc;return new Promise((n,o)=>{const i=()=>o(new Lu(e.reason));if(e.aborted){i();return}r=IT(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=gc})}var YK=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Lu?"cancelled":"rejected",error:r}}finally{t?.()}},yc=e=>t=>RT(LT(e,t).then(r=>(So(e),r))),$T=e=>{const t=yc(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:yi}=Object,Zx={},ds="listenerMiddleware",qK=(e,t)=>{const r=n=>IT(e,()=>n.abort(e.reason));return(n,o)=>{Kv(n,"taskExecutor");const i=new AbortController;r(i);const a=YK(async()=>{So(e),So(i.signal);const s=await n({pause:yc(i.signal),delay:$T(i.signal),signal:i.signal});return So(i.signal),s},()=>i.abort(HK));return o?.autoJoin&&t.push(a.catch(gc)),{result:yc(e)(a),cancel(){i.abort(UK)}}}},XK=(e,t)=>{const r=async(n,o)=>{So(t);let i=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(d,f)=>{f.unsubscribe(),l([d,f.getState(),f.getOriginalState()])}});i=()=>{u(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{const l=await LT(t,Promise.race(s));return So(t),l}finally{i()}};return(n,o)=>RT(r(n,o))},FT=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=ur(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"?we(21):"Creating or removing a listener requires one of the known fields for matching an action");return Kv(i,"options.listener"),{predicate:o,type:t,effect:i}},VT=yi(e=>{const{type:t,predicate:r,effect:n}=FT(e);return{id:jK(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?we(22):"Unsubscribe not initialized")}}},{withTypes:()=>VT}),Qx=(e,t)=>{const{type:r,effect:n,predicate:o}=FT(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},jh=e=>{e.pending.forEach(t=>{t.abort(Nh)})},ZK=(e,t)=>()=>{for(const r of t.keys())jh(r);e.clear()},Jx=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},BT=yi(ur(`${ds}/add`),{withTypes:()=>BT}),QK=ur(`${ds}/removeAll`),WT=yi(ur(`${ds}/remove`),{withTypes:()=>WT}),JK=(...e)=>{console.error(`${ds}/error`,...e)},fs=(e={})=>{const t=new Map,r=new Map,n=h=>{const v=r.get(h)??0;r.set(h,v+1)},o=h=>{const v=r.get(h)??1;v===1?r.delete(h):r.set(h,v-1)},{extra:i,onError:a=JK}=e;Kv(a,"onError");const s=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),v=>{h.unsubscribe(),v?.cancelActive&&jh(h)}),l=h=>{const v=Qx(t,h)??VT(h);return s(v)};yi(l,{withTypes:()=>l});const c=h=>{const v=Qx(t,h);return v&&(v.unsubscribe(),h.cancelActive&&jh(v)),!!v};yi(c,{withTypes:()=>c});const u=async(h,v,m,g)=>{const y=new AbortController,w=XK(l,y.signal),x=[];try{h.pending.add(y),n(h),await Promise.resolve(h.effect(v,yi({},m,{getOriginalState:g,condition:(S,P)=>w(S,P).then(Boolean),take:w,delay:$T(y.signal),pause:yc(y.signal),extra:i,signal:y.signal,fork:qK(y.signal,x),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((S,P,C)=>{S!==y&&(S.abort(Nh),C.delete(S))})},cancel:()=>{y.abort(Nh),h.pending.delete(y)},throwIfCancelled:()=>{So(y.signal)}})))}catch(S){S instanceof Lu||Jx(a,S,{raisedBy:"effect"})}finally{await Promise.all(x),y.abort(GK),o(h),h.pending.delete(y)}},d=ZK(t,r);return{middleware:h=>v=>m=>{if(!Fv(m))return v(m);if(BT.match(m))return l(m.payload);if(QK.match(m)){d();return}if(WT.match(m))return c(m.payload);let g=h.getState();const y=()=>{if(g===Zx)throw new Error(process.env.NODE_ENV==="production"?we(23):`${ds}: getOriginalState can only be called synchronously`);return g};let w;try{if(w=v(m),t.size>0){const x=h.getState(),S=Array.from(t.values());for(const P of S){let C=!1;try{C=P.predicate(m,x,g)}catch(E){C=!1,Jx(a,E,{raisedBy:"predicate"})}C&&u(P,m,h,y)}}}finally{g=Zx}return w},startListening:l,stopListening:c,clearListeners:d}};function we(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 eU={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},zT=Bt({name:"chartLayout",initialState:eU,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:tU,setLayout:rU,setChartSize:nU,setScale:oU}=zT.actions,iU=zT.reducer;function KT(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function pe(e){return Number.isFinite(e)}function Wr(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function e0(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 si(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e0(Object(r),!0).forEach(function(n){aU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aU(e,t,r){return(t=sU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sU(e){var t=lU(e,"string");return typeof t=="symbol"?t:t+""}function lU(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 Ae(e,t,r){return We(e)||We(t)?r:Br(t)?Mo(e,t,r):typeof t=="function"?t(e):r}var cU=(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"&&Y(e[i]))return si(si({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&Y(e[a]))return si(si({},e),{},{[a]:e[a]+(o||0)})}return e},gn=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",UT=(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},HT=(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:f,axisType:h}=e;if(!a)return null;var v=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,m=o==="category"&&a.bandwidth?a.bandwidth()/v:0;if(m=h==="angleAxis"&&i&&i.length>=2?ft(i[0]-i[1])*2*m:m,d||f){var g=(d||f||[]).map((y,w)=>{var x=n?n.indexOf(y):y,S=a.map(x);return pe(S)?{coordinate:S+m,value:y,offset:m,index:w}:null}).filter(Ft);return g}return l&&c?c.map((y,w)=>{var x=a.map(y);return pe(x)?{coordinate:x+m,value:y,index:w,offset:m}:null}).filter(Ft):a.ticks&&u!=null?a.ticks(u).map((y,w)=>{var x=a.map(y);return pe(x)?{coordinate:x+m,value:y,index:w,offset:m}:null}).filter(Ft):a.domain().map((y,w)=>{var x=a.map(y);return pe(x)?{coordinate:x+m,value:n?n[y]:y,index:w,offset:m}:null}).filter(Ft)},uU=(e,t)=>{if(!t||t.length!==2||!Y(t[0])||!Y(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(!Y(e[0])||e[0]<r)&&(o[0]=r),(!Y(e[1])||e[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o},dU=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],f=Vr(u)?d:u;f>=0?(c[0]=i,i+=f,c[1]=i):(c[0]=a,a+=f,c[1]=a)}}}},fU=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=Vr(l[1])?l[0]:l[1];c>=0?(l[0]=i,i+=c,l[1]=i):(l[0]=0,l[1]=0)}}}},pU={sign:dU,expand:v5,none:To,silhouette:g5,wiggle:y5,positive:fU},hU=(e,t,r)=>{var n,o=(n=pU[r])!==null&&n!==void 0?n:To,i=m5().keys(t).value((s,l)=>Number(Ae(s,l,0))).order(Sh).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,u)=>{var d=Ae(e[u],t[l],0);Array.isArray(d)&&d.length===2&&Y(d[0])&&Y(d[1])&&(c[0]=d[0],c[1]=d[1])})}),a};function mU(e){return e==null?void 0:String(e)}function t0(e){var{axis:t,ticks:r,bandSize:n,entry:o,index:i,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!We(o[t.dataKey])){var s=GA(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=Ae(o,We(a)?t.dataKey:a),c=t.scale.map(l);return Y(c)?c:null}var r0=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=Ae(i,t.dataKey,t.scale.domain()[a]);if(We(s))return null;var l=t.scale.map(s);return Y(l)?l-o/2+n:null},vU=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]},gU=e=>{var t=e.flat(2).filter(Y);return[Math.min(...t),Math.max(...t)]},yU=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],bU=(e,t,r)=>{if(e!=null)return yU(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=KT(c,t,r),d=gU(u);return!pe(d[0])||!pe(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]))},n0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,o0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Pi=(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=Mu(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 i0(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:o,name:i}=e;return si(si({},t),{},{dataKey:r,payload:n,value:o,name:i})}function $i(e,t){if(e)return String(e);if(typeof t=="string")return t}var wU=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},xU=(e,t)=>t==="centric"?e.angle:e.radius,yn=e=>e.layout.width,bn=e=>e.layout.height,SU=e=>e.layout.scale,GT=e=>e.layout.margin,$u=R(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Fu=R(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),YT="data-recharts-item-index",qT="data-recharts-item-id",ps=60;function a0(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 vl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a0(Object(r),!0).forEach(function(n){PU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PU(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=OU(e,"string");return typeof t=="symbol"?t:t+""}function OU(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 EU=e=>e.brush.height;function AU(e){var t=Fu(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:ps;return r+o}return r},0)}function TU(e){var t=Fu(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:ps;return r+o}return r},0)}function MU(e){var t=$u(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function kU(e){var t=$u(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var at=R([yn,bn,GT,EU,AU,TU,MU,kU,cT,z4],(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},f=vl(vl({},d),u),h=f.bottom;f.bottom+=n,f=cU(f,l,c);var v=e-f.left-f.right,m=t-f.top-f.bottom;return vl(vl({brushBottom:h},f),{},{width:Math.max(v,0),height:Math.max(m,0)})}),DU=R(at,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Uv=R(yn,bn,(e,t)=>({x:0,y:0,width:e,height:t})),_U=O.createContext(null),Tt=()=>O.useContext(_U)!=null,Vu=e=>e.brush,Bu=R([Vu,at,GT],(e,t,r)=>({height:e.height,x:Y(e.x)?e.x:t.left,y:Y(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:Y(e.width)?e.width:t.width})),ap={},sp={},lp={},s0;function NU(){return s0||(s0=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 f=null;const h=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,d()},n)},v=()=>{f!==null&&(clearTimeout(f),f=null)},m=()=>{v(),a=void 0,s=null},g=()=>{u()},y=function(...w){if(o?.aborted)return;a=this,s=w;const x=f==null;h(),l&&x&&u()};return y.schedule=h,y.cancel=m,y.flush=g,o?.addEventListener("abort",m,{once:!0}),y}e.debounce=t})(lp)),lp}var l0;function jU(){return l0||(l0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=NU();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 f=t.debounce(function(...m){u=n.apply(this,m),d=null},o,{edges:c}),h=function(...m){return l!=null&&(d===null&&(d=Date.now()),Date.now()-d>=l)?(u=n.apply(this,m),d=Date.now(),f.cancel(),f.schedule(),u):(f.apply(this,m),u)},v=()=>(f.flush(),u);return h.cancel=f.cancel,h.flush=v,h}e.debounce=r})(sp)),sp}var c0;function RU(){return c0||(c0=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jU();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})(ap)),ap}var cp,u0;function IU(){return u0||(u0=1,cp=RU().throttle),cp}var LU=IU();const $U=Hn(LU);var bc=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++]))}},Nr={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},XT=(e,t,r)=>{var{width:n=Nr.width,height:o=Nr.height,aspect:i,maxHeight:a}=r,s=ko(n)?e:Number(n),l=ko(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}},FU={width:0,height:0,overflow:"visible"},VU={width:0,overflowX:"visible"},BU={height:0,overflowY:"visible"},WU={},zU=e=>{var{width:t,height:r}=e,n=ko(t),o=ko(r);return n&&o?FU:n?VU:o?BU:WU};function KU(e){var{width:t,height:r,aspect:n}=e,o=t,i=r;return o===void 0&&i===void 0?(o=Nr.width,i=Nr.height):o===void 0?o=n&&n>0?void 0:Nr.width:i===void 0&&(i=n&&n>0?void 0:Nr.height),{width:o,height:i}}function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rh.apply(null,arguments)}function d0(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 f0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d0(Object(r),!0).forEach(function(n){UU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UU(e,t,r){return(t=HU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HU(e){var t=GU(e,"string");return typeof t=="symbol"?t:t+""}function GU(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 ZT=O.createContext(Nr.initialDimension);function YU(e){return Wr(e.width)&&Wr(e.height)}function QT(e){var{children:t,width:r,height:n}=e,o=O.useMemo(()=>({width:r,height:n}),[r,n]);return YU(o)?p.createElement(ZT.Provider,{value:o},t):null}var Hv=()=>O.useContext(ZT),qU=O.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Nr.initialDimension,width:o,height:i,minWidth:a=Nr.minWidth,minHeight:s,maxHeight:l,children:c,debounce:u=Nr.debounce,id:d,className:f,onResize:h,style:v={}}=e,m=O.useRef(null),g=O.useRef();g.current=h,O.useImperativeHandle(t,()=>m.current);var[y,w]=O.useState({containerWidth:n.width,containerHeight:n.height}),x=O.useCallback((A,T)=>{w(M=>{var D=Math.round(A),k=Math.round(T);return M.containerWidth===D&&M.containerHeight===k?M:{containerWidth:D,containerHeight:k}})},[]);O.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Wo;var A=k=>{var _,I=k[0];if(I!=null){var{width:z,height:B}=I.contentRect;x(z,B),(_=g.current)===null||_===void 0||_.call(g,z,B)}};u>0&&(A=$U(A,u,{trailing:!0,leading:!1}));var T=new ResizeObserver(A),{width:M,height:D}=m.current.getBoundingClientRect();return x(M,D),T.observe(m.current),()=>{T.disconnect()}},[x,u]);var{containerWidth:S,containerHeight:P}=y;bc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:C,calculatedHeight:E}=XT(S,P,{width:o,height:i,aspect:r,maxHeight:l});return bc(C!=null&&C>0||E!=null&&E>0,`The width(%s) and height(%s) of chart should be greater than 0,
69
69
  please check the style of container, or the props width(%s) and height(%s),
70
70
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
71
- height and width.`,C,E,o,i,a,s,r),p.createElement("div",{id:d?"".concat(d):void 0,className:fe("recharts-responsive-container",f),style:Jx(Jx({},v),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},p.createElement("div",{style:j4({width:o,height:i})},p.createElement(MA,{width:C,height:E},c)))}),Hm=O.forwardRef((e,t)=>{var r=Um();if(Pr(r.width)&&Pr(r.height))return e.children;var{width:n,height:o}=D4({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=TA(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return q(i)&&q(a)?p.createElement(MA,{width:i,height:a},e.children):p.createElement(L4,$p({},e,{width:n,height:o,ref:t}))});function Gm(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 ru=()=>{var e,t=gt(),r=Q(b4),n=Q(tu),o=(e=Q(eu))===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}},$4={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},jA=()=>{var e;return(e=Q(qe))!==null&&e!==void 0?e:$4},qm=()=>Q(Yr),Ym=()=>Q(Xr),V4=()=>Q(e=>e.layout.margin),me=e=>e.layout.layoutType,yo=()=>Q(me),DA=()=>{var e=yo();if(e==="horizontal"||e==="vertical")return e},RA=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},F4=()=>{var e=yo();return e!==void 0},Da=e=>{var t=Ce(),r=gt(),{width:n,height:o}=e,i=Um(),a=n,s=o;return i&&(a=i.width>0?i.width:n,s=i.height>0?i.height:o),O.useEffect(()=>{!r&&Pr(a)&&Pr(s)&&t(UW({width:a,height:s}))},[t,r,a,s]),null},kA=Symbol.for("immer-nothing"),Qx=Symbol.for("immer-draftable"),$t=Symbol.for("immer-state"),B4=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 At(e,...t){if(process.env.NODE_ENV!=="production"){const r=B4[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 ea=Object.getPrototypeOf;function Xo(e){return!!e&&!!e[$t]}function ao(e){return e?IA(e)||Array.isArray(e)||!!e[Qx]||!!e.constructor?.[Qx]||Ra(e)||ou(e):!1}var z4=Object.prototype.constructor.toString(),ew=new WeakMap;function IA(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=ew.get(r);return n===void 0&&(n=Function.toString.call(r),ew.set(r,n)),n===z4}function Rl(e,t,r=!0){nu(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 nu(e){const t=e[$t];return t?t.type_:Array.isArray(e)?1:Ra(e)?2:ou(e)?3:0}function Vp(e,t){return nu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function NA(e,t,r){const n=nu(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function W4(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ra(e){return e instanceof Map}function ou(e){return e instanceof Set}function $n(e){return e.copy_||e.base_}function Fp(e,t){if(Ra(e))return new Map(e);if(ou(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=IA(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(ea(e),n)}else{const n=ea(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function Xm(e,t=!1){return iu(e)||Xo(e)||!ao(e)||(nu(e)>1&&Object.defineProperties(e,{set:Ms,add:Ms,clear:Ms,delete:Ms}),Object.freeze(e),t&&Object.values(e).forEach(r=>Xm(r,!0))),e}function K4(){At(2)}var Ms={value:K4};function iu(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var U4={};function so(e){const t=U4[e];return t||At(0,e),t}var ta;function LA(){return ta}function H4(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function tw(e,t){t&&(so("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Bp(e){zp(e),e.drafts_.forEach(G4),e.drafts_=null}function zp(e){e===ta&&(ta=e.parent_)}function rw(e){return ta=H4(ta,e)}function G4(e){const t=e[$t];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function nw(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[$t].modified_&&(Bp(t),At(4)),ao(e)&&(e=kl(t,e),t.parent_||Il(t,e)),t.patches_&&so("Patches").generateReplacementPatches_(r[$t].base_,e,t.patches_,t.inversePatches_)):e=kl(t,r,[]),Bp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==kA?e:void 0}function kl(e,t,r){if(iu(t))return t;const n=e.immer_.shouldUseStrictIteration(),o=t[$t];if(!o)return Rl(t,(i,a)=>ow(e,o,t,i,a,r),n),t;if(o.scope_!==e)return t;if(!o.modified_)return Il(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),Rl(a,(l,c)=>ow(e,o,i,l,c,r,s),n),Il(e,i,!1),r&&e.patches_&&so("Patches").generatePatches_(o,r,e.patches_,e.inversePatches_)}return o.copy_}function ow(e,t,r,n,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=iu(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===r&&At(5),Xo(o)){const l=i&&t&&t.type_!==3&&!Vp(t.assigned_,n)?i.concat(n):void 0,c=kl(e,o,l);if(NA(r,n,c),Xo(c))e.canAutoFreeze_=!1;else return}else a&&r.add(o);if(ao(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===o&&s)return;kl(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Ra(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Il(e,o)}}}function Il(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Xm(t,r)}function q4(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:LA(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Zm;r&&(o=[n],i=ra);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var Zm={get(e,t){if(t===$t)return e;const r=$n(e);if(!Vp(r,t))return Y4(e,r,t);const n=r[t];return e.finalized_||!ao(n)?n:n===yf(e.base_,t)?(bf(e),e.copy_[t]=Kp(n,e)):n},has(e,t){return t in $n(e)},ownKeys(e){return Reflect.ownKeys($n(e))},set(e,t,r){const n=$A($n(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=yf($n(e),t),i=o?.[$t];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(W4(r,o)&&(r!==void 0||Vp(e.base_,t)))return!0;bf(e),Wp(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 yf(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,bf(e),Wp(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=$n(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){At(11)},getPrototypeOf(e){return ea(e.base_)},setPrototypeOf(){At(12)}},ra={};Rl(Zm,(e,t)=>{ra[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ra.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&At(13),ra.set.call(this,e,t,void 0)};ra.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&At(14),Zm.set.call(this,e[0],t,r,e[0])};function yf(e,t){const r=e[$t];return(r?$n(r):e)[t]}function Y4(e,t,r){const n=$A(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function $A(e,t){if(!(t in e))return;let r=ea(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ea(r)}}function Wp(e){e.modified_||(e.modified_=!0,e.parent_&&Wp(e.parent_))}function bf(e){e.copy_||(e.copy_=Fp(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var X4=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"&&At(6),n!==void 0&&typeof n!="function"&&At(7);let o;if(ao(t)){const i=rw(this),a=Kp(t,void 0);let s=!0;try{o=r(a),s=!1}finally{s?Bp(i):zp(i)}return tw(i,n),nw(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===kA&&(o=void 0),this.autoFreeze_&&Xm(o,!0),n){const i=[],a=[];so("Patches").generateReplacementPatches_(t,o,i,a),n(i,a)}return o}else At(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){ao(e)||At(8),Xo(e)&&(e=Z4(e));const t=rw(this),r=Kp(e,void 0);return r[$t].isManual_=!0,zp(t),r}finishDraft(e,t){const r=e&&e[$t];(!r||!r.isManual_)&&At(9);const{scope_:n}=r;return tw(n,t),nw(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=so("Patches").applyPatches_;return Xo(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Kp(e,t){const r=Ra(e)?so("MapSet").proxyMap_(e,t):ou(e)?so("MapSet").proxySet_(e,t):q4(e,t);return(t?t.scope_:LA()).drafts_.push(r),r}function Z4(e){return Xo(e)||At(10,e),VA(e)}function VA(e){if(!ao(e)||iu(e))return e;const t=e[$t];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Fp(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Fp(e,!0);return Rl(r,(o,i)=>{NA(r,o,VA(i))},n),t&&(t.finalized_=!1),r}var J4=new X4;J4.produce;var Q4={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},FA=Mt({name:"legend",initialState:Q4,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:Te()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,o=rr(e).payload.indexOf(r);o>-1&&(e.payload[o]=n)},prepare:Te()},removeLegendPayload:{reducer(e,t){var r=rr(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Te()}}}),{setLegendSize:iw,setLegendSettings:eK,addLegendPayload:BA,replaceLegendPayload:zA,removeLegendPayload:WA}=FA.actions,tK=FA.reducer,rK=["contextPayload"];function Up(){return Up=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},Up.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 Zo(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){nK(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 nK(e,t,r){return(t=oK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oK(e){var t=iK(e,"string");return typeof t=="symbol"?t:t+""}function iK(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 aK(e,t){if(e==null)return{};var r,n,o=sK(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 sK(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 lK(e){return e.value}function cK(e){var{contextPayload:t}=e,r=aK(e,rK),n=NO(t,e.payloadUniqBy,lK),o=Zo(Zo({},r),{},{payload:n});return p.isValidElement(e.content)?p.cloneElement(e.content,o):typeof e.content=="function"?p.createElement(e.content,o):p.createElement(I3,o)}function uK(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}),Zo(Zo({},c),u)}function dK(e){var t=Ce();return O.useEffect(()=>{t(eK(e))},[t,e]),null}function fK(e){var t=Ce();return O.useEffect(()=>(t(iw(e)),()=>{t(iw({width:0,height:0}))}),[t,e]),null}function pK(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var hK={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function au(e){var t=We(e,hK),r=k5(),n=Az(),o=V4(),{width:i,height:a,wrapperStyle:s,portal:l}=t,[c,u]=zO([r]),d=qm(),f=Ym();if(d==null||f==null)return null;var h=d-(o?.left||0)-(o?.right||0),v=pK(t.layout,a,i,h),m=l?s:Zo(Zo({position:"absolute",width:v?.width||i||"auto",height:v?.height||a||"auto"},uK(s,t,o,d,f,c)),s),g=l??n;if(g==null||r==null)return null;var y=p.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:u},p.createElement(dK,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&p.createElement(fK,{width:c.width,height:c.height}),p.createElement(cK,Up({},t,v,{margin:o,chartWidth:d,chartHeight:f,contextPayload:r})));return wa.createPortal(y,g)}au.displayName="Legend";function Hp(){return Hp=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},Hp.apply(null,arguments)}function sw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _i(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){mK(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 mK(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=gK(e,"string");return typeof t=="symbol"?t:t+""}function gK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yK(e){return Array.isArray(e)&&Sr(e[0])&&Sr(e[1])?e.join(" ~ "):e}var To={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},bK=e=>{var{separator:t=To.separator,contentStyle:r,itemStyle:n,labelStyle:o=To.labelStyle,payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:f=To.accessibilityLayer}=e,h=()=>{if(i&&i.length){var P={padding:0,margin:0},C=(s?Wc(i,s):i).map((E,A)=>{if(E.type==="none")return null;var _=E.formatter||a||yK,{value:D,name:R}=E,T=D,j=R;if(_){var N=_(D,R,E,A,i);if(Array.isArray(N))[T,j]=N;else if(N!=null)T=N;else return null}var W=_i(_i({},To.itemStyle),{},{color:E.color||To.itemStyle.color},n);return p.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(A),style:W},Sr(j)?p.createElement("span",{className:"recharts-tooltip-item-name"},j):null,Sr(j)?p.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,p.createElement("span",{className:"recharts-tooltip-item-value"},T),p.createElement("span",{className:"recharts-tooltip-item-unit"},E.unit||""))});return p.createElement("ul",{className:"recharts-tooltip-item-list",style:P},C)}return null},v=_i(_i({},To.contentStyle),r),m=_i({margin:0},o),g=!Re(u),y=g?u:"",x=fe("recharts-default-tooltip",l),w=fe("recharts-tooltip-label",c);g&&d&&i!==void 0&&i!==null&&(y=d(u,i));var S=f?{role:"status","aria-live":"assertive"}:{};return p.createElement("div",Hp({className:x,style:v},S),p.createElement("p",{className:w,style:m},p.isValidElement(y)?y:"".concat(y)),h())},Mi="recharts-tooltip-wrapper",xK={visibility:"hidden"};function wK(e){var{coordinate:t,translateX:r,translateY:n}=e;return fe(Mi,{["".concat(Mi,"-right")]:q(r)&&t&&q(t.x)&&r>=t.x,["".concat(Mi,"-left")]:q(r)&&t&&q(t.x)&&r<t.x,["".concat(Mi,"-bottom")]:q(n)&&t&&q(t.y)&&n>=t.y,["".concat(Mi,"-top")]:q(n)&&t&&q(t.y)&&n<t.y})}function lw(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 f=l[n];if(f==null)return 0;if(a[n]){var h=u,v=f;return h<v?Math.max(d,f):Math.max(u,f)}if(c==null)return 0;var m=d+s,g=f+c;return m>g?Math.max(u,f):Math.max(d,f)}function SK(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 PK(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:o,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:c}=e,u,d,f;return s.height>0&&s.width>0&&r?(d=lw({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),f=lw({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=SK({translateX:d,translateY:f,useTranslate3d:l})):u=xK,{cssProperties:u,cssClasses:wK({translateX:d,translateY:f,coordinate: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 js(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){Gp(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 Gp(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=EK(e,"string");return typeof t=="symbol"?t:t+""}function EK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class OK extends O.PureComponent{constructor(){super(...arguments),Gp(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Gp(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:f,viewBox:h,wrapperStyle:v,lastBoundingBox:m,innerRef:g,hasPortalFromProps:y}=this.props,x=typeof c=="number"?c:c.x,w=typeof c=="number"?c:c.y,{cssClasses:S,cssProperties:P}=PK({allowEscapeViewBox:r,coordinate:a,offsetLeft:x,offsetTop:w,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:f,viewBox:h}),C=y?{}:js(js({transition:l&&t?"transform ".concat(n,"ms ").concat(o):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),E=js(js({},C),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},v);return p.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:S,style:E,ref:g},i)}}var KA=()=>{var e;return(e=Q(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function qp(){return qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qp.apply(null,arguments)}function uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uw(Object(r),!0).forEach(function(n){AK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AK(e,t,r){return(t=TK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TK(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 fw={curveBasisClosed:Hz,curveBasisOpen:Gz,curveBasis:Uz,curveBumpX:jz,curveBumpY:Dz,curveLinearClosed:qz,curveLinear:Bc,curveMonotoneX:Yz,curveMonotoneY:Xz,curveNatural:Zz,curveStep:Jz,curveStepAfter:e3,curveStepBefore:Qz},Nl=e=>ue(e.x)&&ue(e.y),pw=e=>e.base!=null&&Nl(e.base)&&Nl(e),ji=e=>e.x,Di=e=>e.y,MK=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Ea(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=fw["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return fw[r]||Bc},hw={connectNulls:!1,type:"linear"},jK=e=>{var{type:t=hw.type,points:r=[],baseLine:n,layout:o,connectNulls:i=hw.connectNulls}=e,a=MK(t,o),s=i?r.filter(Nl):r;if(Array.isArray(n)){var l,c=r.map((v,m)=>dw(dw({},v),{},{base:n[m]}));o==="vertical"?l=xs().y(Di).x1(ji).x0(v=>v.base.x):l=xs().x(ji).y1(Di).y0(v=>v.base.y);var u=l.defined(pw).curve(a),d=i?c.filter(pw):c;return u(d)}var f;o==="vertical"&&q(n)?f=xs().y(Di).x1(ji).x0(n):q(n)?f=xs().x(ji).y1(Di).y0(n):f=fO().x(ji).y(Di);var h=f.defined(Nl).curve(a);return h(s)},Jm=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=yo();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?jK(a):n;return p.createElement("path",qp({},Lt(e),km(e),{className:fe("recharts-curve",t),d:s===null?void 0:s,ref:o}))},DK=["x","y","top","left","width","height","className"];function Yp(){return Yp=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},Yp.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 RK(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){kK(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 kK(e,t,r){return(t=IK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IK(e){var t=NK(e,"string");return typeof t=="symbol"?t:t+""}function NK(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,t){if(e==null)return{};var r,n,o=$K(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 $K(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 VK=(e,t,r,n,o,i)=>"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),FK=e=>{var{x:t=0,y:r=0,top:n=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=LK(e,DK),c=RK({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:p.createElement("path",Yp({},Et(c),{className:fe("recharts-cross",s),d:VK(t,r,i,a,n,o)}))};function BK(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 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 gw(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){zK(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 zK(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)}var UK=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),UA=(e,t,r)=>e.map(n=>"".concat(UK(n)," ").concat(t,"ms ").concat(r)).join(","),HK=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),na=(e,t)=>Object.keys(t).reduce((r,n)=>gw(gw({},r),{},{[n]:e(n,t[n])}),{});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 He(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){GK(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 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 Ll=(e,t,r)=>e+(t-e)*r,Xp=e=>{var{from:t,to:r}=e;return t!==r},HA=(e,t,r)=>{var n=na((o,i)=>{if(Xp(i)){var[a,s]=e(i.from,i.to,i.velocity);return He(He({},i),{},{from:a,velocity:s})}return i},t);return r<1?na((o,i)=>Xp(i)&&n[o]!=null?He(He({},i),{},{velocity:Ll(i.velocity,n[o].velocity,r),from:Ll(i.from,n[o].from,r)}):i,t):HA(e,n,r-1)};function XK(e,t,r,n,o,i){var a,s=n.reduce((f,h)=>He(He({},f),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>na((f,h)=>h.from,s),c=()=>!Object.values(s).filter(Xp).length,u=null,d=f=>{a||(a=f);var h=f-a,v=h/r.dt;s=HA(r,s,v),o(He(He(He({},e),t),l())),a=f,c()||(u=i.setTimeout(d))};return()=>(u=i.setTimeout(d),()=>{var f;(f=u)===null||f===void 0||f()})}function ZK(e,t,r,n,o,i,a){var s=null,l=o.reduce((d,f)=>{var h=e[f],v=t[f];return h==null||v==null?d:He(He({},d),{},{[f]:[h,v]})},{}),c,u=d=>{c||(c=d);var f=(d-c)/n,h=na((m,g)=>Ll(...g,r(f)),l);if(i(He(He(He({},e),t),h)),f<1)s=a.setTimeout(u);else{var v=na((m,g)=>Ll(...g,r(1)),l);i(He(He(He({},e),t),v))}};return()=>(s=a.setTimeout(u),()=>{var d;(d=s)===null||d===void 0||d()})}const JK=(e,t,r,n,o,i)=>{var a=HK(e,t);return r==null?()=>(o(He(He({},e),t)),()=>{}):r.isStepper===!0?XK(e,t,r,a,o,i):ZK(e,t,r,n,a,o,i)};var $l=1e-4,GA=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],qA=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),bw=(e,t)=>r=>{var n=GA(e,t);return qA(n,r)},QK=(e,t)=>r=>{var n=GA(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return qA(o,r)},eU=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]]},tU=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=eU(r[0]);if(o)return o}}return r.length===4?r:[0,0,1,1]},rU=(e,t,r,n)=>{var o=bw(e,r),i=bw(t,n),a=QK(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,d=u,f=0;f<8;++f){var h=o(d)-u,v=a(d);if(Math.abs(h-u)<$l||v<$l)return i(d);d=s(d-h/v)}return i(d)};return l.isStepper=!1,l},xw=function(){return rU(...tU(...arguments))},nU=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,f=l*o/1e3+a;return Math.abs(f-s)<$l&&Math.abs(d)<$l?[s,0]:[f,d]};return i.isStepper=!0,i.dt=o,i},oU=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return xw(e);case"spring":return nU();default:if(e.split("(")[0]==="cubic-bezier")return xw(e)}return typeof e=="function"?e:null};function iU(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 aU{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 sU(){return iU(new aU)}var lU=O.createContext(sU);function cU(e,t){var r=O.useContext(lU);return O.useMemo(()=>t??r(e),[e,t,r])}var uU=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),su={isSsr:uU()},dU={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},ww={t:0},xf={t:1};function ka(e){var t=We(e,dU),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=r==="auto"?!su.isSsr:r,d=cU(t.animationId,t.animationManager),[f,h]=O.useState(u?ww:xf),v=O.useRef(null);return O.useEffect(()=>{u||h(xf)},[u]),O.useEffect(()=>{if(!u||!n)return go;var m=JK(ww,xf,oU(i),o,h,d.getTimeoutController()),g=()=>{v.current=m()};return d.start([l,a,g,o,s]),()=>{d.stop(),v.current&&v.current(),s()}},[u,n,o,i,a,l,s,d]),c(f.t)}function Ia(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=O.useRef(Xi(t)),n=O.useRef(e);return n.current!==e&&(r.current=Xi(t),n.current=e),r.current}var fU=["radius"],pU=["radius"],Sw,Pw,Cw,Ew,Ow,Aw,Tw,_w,Mw,jw;function Dw(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 Rw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(r),!0).forEach(function(n){hU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hU(e,t,r){return(t=mU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mU(e){var t=vU(e,"string");return typeof t=="symbol"?t:t+""}function vU(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 Vl(){return Vl=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},Vl.apply(null,arguments)}function kw(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}function cr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Iw=(e,t,r,n,o)=>{var i=un(r),a=un(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 f=[0,0,0,0],h=0,v=4;h<v;h++){var m,g=(m=o[h])!==null&&m!==void 0?m:0;f[h]=g>s?s:g}d=Ne(Sw||(Sw=cr(["M",",",""])),e,t+l*f[0]),f[0]>0&&(d+=Ne(Pw||(Pw=cr(["A ",",",",0,0,",",",",",""])),f[0],f[0],u,e+c*f[0],t)),d+=Ne(Cw||(Cw=cr(["L ",",",""])),e+r-c*f[1],t),f[1]>0&&(d+=Ne(Ew||(Ew=cr(["A ",",",",0,0,",`,
72
- `,",",""])),f[1],f[1],u,e+r,t+l*f[1])),d+=Ne(Ow||(Ow=cr(["L ",",",""])),e+r,t+n-l*f[2]),f[2]>0&&(d+=Ne(Aw||(Aw=cr(["A ",",",",0,0,",`,
73
- `,",",""])),f[2],f[2],u,e+r-c*f[2],t+n)),d+=Ne(Tw||(Tw=cr(["L ",",",""])),e+c*f[3],t+n),f[3]>0&&(d+=Ne(_w||(_w=cr(["A ",",",",0,0,",`,
74
- `,",",""])),f[3],f[3],u,e,t+n-l*f[3])),d+="Z"}else if(s>0&&o===+o&&o>0){var y=Math.min(s,o);d=Ne(Mw||(Mw=cr(["M ",",",`
71
+ height and width.`,C,E,o,i,a,s,r),p.createElement("div",{id:d?"".concat(d):void 0,className:ve("recharts-responsive-container",f),style:f0(f0({},v),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},p.createElement("div",{style:zU({width:o,height:i})},p.createElement(QT,{width:C,height:E},c)))}),Gv=O.forwardRef((e,t)=>{var r=Hv();if(Wr(r.width)&&Wr(r.height))return e.children;var{width:n,height:o}=KU({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=XT(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return Y(i)&&Y(a)?p.createElement(QT,{width:i,height:a},e.children):p.createElement(qU,Rh({},e,{width:n,height:o,ref:t}))});function Yv(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 Wu=()=>{var e,t=Tt(),r=J(DU),n=J(Bu),o=(e=J(Vu))===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}},XU={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},JT=()=>{var e;return(e=J(at))!==null&&e!==void 0?e:XU},qv=()=>J(yn),Xv=()=>J(bn),ZU=()=>J(e=>e.layout.margin),ye=e=>e.layout.layoutType,zo=()=>J(ye),eM=()=>{var e=zo();if(e==="horizontal"||e==="vertical")return e},tM=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},QU=()=>{var e=zo();return e!==void 0},hs=e=>{var t=Ne(),r=Tt(),{width:n,height:o}=e,i=Hv(),a=n,s=o;return i&&(a=i.width>0?i.width:n,s=i.height>0?i.height:o),O.useEffect(()=>{!r&&Wr(a)&&Wr(s)&&t(nU({width:a,height:s}))},[t,r,a,s]),null},rM=Symbol.for("immer-nothing"),p0=Symbol.for("immer-draftable"),Qt=Symbol.for("immer-state"),JU=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 $t(e,...t){if(process.env.NODE_ENV!=="production"){const r=JU[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 ja=Object.getPrototypeOf;function Ci(e){return!!e&&!!e[Qt]}function _o(e){return e?nM(e)||Array.isArray(e)||!!e[p0]||!!e.constructor?.[p0]||ms(e)||Ku(e):!1}var eH=Object.prototype.constructor.toString(),h0=new WeakMap;function nM(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=h0.get(r);return n===void 0&&(n=Function.toString.call(r),h0.set(r,n)),n===eH}function wc(e,t,r=!0){zu(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 zu(e){const t=e[Qt];return t?t.type_:Array.isArray(e)?1:ms(e)?2:Ku(e)?3:0}function Ih(e,t){return zu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function oM(e,t,r){const n=zu(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function tH(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ms(e){return e instanceof Map}function Ku(e){return e instanceof Set}function so(e){return e.copy_||e.base_}function Lh(e,t){if(ms(e))return new Map(e);if(Ku(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=nM(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Qt];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(ja(e),n)}else{const n=ja(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function Zv(e,t=!1){return Uu(e)||Ci(e)||!_o(e)||(zu(e)>1&&Object.defineProperties(e,{set:gl,add:gl,clear:gl,delete:gl}),Object.freeze(e),t&&Object.values(e).forEach(r=>Zv(r,!0))),e}function rH(){$t(2)}var gl={value:rH};function Uu(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var nH={};function No(e){const t=nH[e];return t||$t(0,e),t}var Ra;function iM(){return Ra}function oH(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function m0(e,t){t&&(No("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function $h(e){Fh(e),e.drafts_.forEach(iH),e.drafts_=null}function Fh(e){e===Ra&&(Ra=e.parent_)}function v0(e){return Ra=oH(Ra,e)}function iH(e){const t=e[Qt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function g0(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Qt].modified_&&($h(t),$t(4)),_o(e)&&(e=xc(t,e),t.parent_||Sc(t,e)),t.patches_&&No("Patches").generateReplacementPatches_(r[Qt].base_,e,t.patches_,t.inversePatches_)):e=xc(t,r,[]),$h(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rM?e:void 0}function xc(e,t,r){if(Uu(t))return t;const n=e.immer_.shouldUseStrictIteration(),o=t[Qt];if(!o)return wc(t,(i,a)=>y0(e,o,t,i,a,r),n),t;if(o.scope_!==e)return t;if(!o.modified_)return Sc(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),wc(a,(l,c)=>y0(e,o,i,l,c,r,s),n),Sc(e,i,!1),r&&e.patches_&&No("Patches").generatePatches_(o,r,e.patches_,e.inversePatches_)}return o.copy_}function y0(e,t,r,n,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=Uu(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===r&&$t(5),Ci(o)){const l=i&&t&&t.type_!==3&&!Ih(t.assigned_,n)?i.concat(n):void 0,c=xc(e,o,l);if(oM(r,n,c),Ci(c))e.canAutoFreeze_=!1;else return}else a&&r.add(o);if(_o(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===o&&s)return;xc(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(ms(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Sc(e,o)}}}function Sc(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Zv(t,r)}function aH(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:iM(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Qv;r&&(o=[n],i=Ia);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var Qv={get(e,t){if(t===Qt)return e;const r=so(e);if(!Ih(r,t))return sH(e,r,t);const n=r[t];return e.finalized_||!_o(n)?n:n===up(e.base_,t)?(dp(e),e.copy_[t]=Bh(n,e)):n},has(e,t){return t in so(e)},ownKeys(e){return Reflect.ownKeys(so(e))},set(e,t,r){const n=aM(so(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=up(so(e),t),i=o?.[Qt];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(tH(r,o)&&(r!==void 0||Ih(e.base_,t)))return!0;dp(e),Vh(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 up(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,dp(e),Vh(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=so(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){$t(11)},getPrototypeOf(e){return ja(e.base_)},setPrototypeOf(){$t(12)}},Ia={};wc(Qv,(e,t)=>{Ia[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ia.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&$t(13),Ia.set.call(this,e,t,void 0)};Ia.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&$t(14),Qv.set.call(this,e[0],t,r,e[0])};function up(e,t){const r=e[Qt];return(r?so(r):e)[t]}function sH(e,t,r){const n=aM(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function aM(e,t){if(!(t in e))return;let r=ja(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ja(r)}}function Vh(e){e.modified_||(e.modified_=!0,e.parent_&&Vh(e.parent_))}function dp(e){e.copy_||(e.copy_=Lh(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var lH=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"&&$t(6),n!==void 0&&typeof n!="function"&&$t(7);let o;if(_o(t)){const i=v0(this),a=Bh(t,void 0);let s=!0;try{o=r(a),s=!1}finally{s?$h(i):Fh(i)}return m0(i,n),g0(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===rM&&(o=void 0),this.autoFreeze_&&Zv(o,!0),n){const i=[],a=[];No("Patches").generateReplacementPatches_(t,o,i,a),n(i,a)}return o}else $t(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){_o(e)||$t(8),Ci(e)&&(e=cH(e));const t=v0(this),r=Bh(e,void 0);return r[Qt].isManual_=!0,Fh(t),r}finishDraft(e,t){const r=e&&e[Qt];(!r||!r.isManual_)&&$t(9);const{scope_:n}=r;return m0(n,t),g0(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=No("Patches").applyPatches_;return Ci(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Bh(e,t){const r=ms(e)?No("MapSet").proxyMap_(e,t):Ku(e)?No("MapSet").proxySet_(e,t):aH(e,t);return(t?t.scope_:iM()).drafts_.push(r),r}function cH(e){return Ci(e)||$t(10,e),sM(e)}function sM(e){if(!_o(e)||Uu(e))return e;const t=e[Qt];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Lh(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Lh(e,!0);return wc(r,(o,i)=>{oM(r,o,sM(i))},n),t&&(t.finalized_=!1),r}var uH=new lH;uH.produce;var dH={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},lM=Bt({name:"legend",initialState:dH,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:Ie()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,o=br(e).payload.indexOf(r);o>-1&&(e.payload[o]=n)},prepare:Ie()},removeLegendPayload:{reducer(e,t){var r=br(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Ie()}}}),{setLegendSize:b0,setLegendSettings:fH,addLegendPayload:cM,replaceLegendPayload:uM,removeLegendPayload:dM}=lM.actions,pH=lM.reducer,hH=["contextPayload"];function Wh(){return Wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wh.apply(null,arguments)}function w0(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 Oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w0(Object(r),!0).forEach(function(n){mH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mH(e,t,r){return(t=vH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vH(e){var t=gH(e,"string");return typeof t=="symbol"?t:t+""}function gH(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 yH(e,t){if(e==null)return{};var r,n,o=bH(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 bH(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 wH(e){return e.value}function xH(e){var{contextPayload:t}=e,r=yH(e,hH),n=oT(t,e.payloadUniqBy,wH),o=Oi(Oi({},r),{},{payload:n});return p.isValidElement(e.content)?p.cloneElement(e.content,o):typeof e.content=="function"?p.createElement(e.content,o):p.createElement(G5,o)}function SH(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}),Oi(Oi({},c),u)}function PH(e){var t=Ne();return O.useEffect(()=>{t(fH(e))},[t,e]),null}function CH(e){var t=Ne();return O.useEffect(()=>(t(b0(e)),()=>{t(b0({width:0,height:0}))}),[t,e]),null}function OH(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var EH={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function Hu(e){var t=et(e,EH),r=H4(),n=F3(),o=ZU(),{width:i,height:a,wrapperStyle:s,portal:l}=t,[c,u]=uT([r]),d=qv(),f=Xv();if(d==null||f==null)return null;var h=d-(o?.left||0)-(o?.right||0),v=OH(t.layout,a,i,h),m=l?s:Oi(Oi({position:"absolute",width:v?.width||i||"auto",height:v?.height||a||"auto"},SH(s,t,o,d,f,c)),s),g=l??n;if(g==null||r==null)return null;var y=p.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:u},p.createElement(PH,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&p.createElement(CH,{width:c.width,height:c.height}),p.createElement(xH,Wh({},t,v,{margin:o,chartWidth:d,chartHeight:f,contextPayload:r})));return ns.createPortal(y,g)}Hu.displayName="Legend";function zh(){return zh=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},zh.apply(null,arguments)}function x0(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?x0(Object(r),!0).forEach(function(n){AH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AH(e,t,r){return(t=TH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TH(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 kH(e){return Array.isArray(e)&&Br(e[0])&&Br(e[1])?e.join(" ~ "):e}var Jo={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},DH=e=>{var{separator:t=Jo.separator,contentStyle:r,itemStyle:n,labelStyle:o=Jo.labelStyle,payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:f=Jo.accessibilityLayer}=e,h=()=>{if(i&&i.length){var P={padding:0,margin:0},C=(s?Mu(i,s):i).map((E,A)=>{if(E.type==="none")return null;var T=E.formatter||a||kH,{value:M,name:D}=E,k=M,_=D;if(T){var I=T(M,D,E,A,i);if(Array.isArray(I))[k,_]=I;else if(I!=null)k=I;else return null}var z=ia(ia({},Jo.itemStyle),{},{color:E.color||Jo.itemStyle.color},n);return p.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(A),style:z},Br(_)?p.createElement("span",{className:"recharts-tooltip-item-name"},_):null,Br(_)?p.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,p.createElement("span",{className:"recharts-tooltip-item-value"},k),p.createElement("span",{className:"recharts-tooltip-item-unit"},E.unit||""))});return p.createElement("ul",{className:"recharts-tooltip-item-list",style:P},C)}return null},v=ia(ia({},Jo.contentStyle),r),m=ia({margin:0},o),g=!We(u),y=g?u:"",w=ve("recharts-default-tooltip",l),x=ve("recharts-tooltip-label",c);g&&d&&i!==void 0&&i!==null&&(y=d(u,i));var S=f?{role:"status","aria-live":"assertive"}:{};return p.createElement("div",zh({className:w,style:v},S),p.createElement("p",{className:x,style:m},p.isValidElement(y)?y:"".concat(y)),h())},aa="recharts-tooltip-wrapper",_H={visibility:"hidden"};function NH(e){var{coordinate:t,translateX:r,translateY:n}=e;return ve(aa,{["".concat(aa,"-right")]:Y(r)&&t&&Y(t.x)&&r>=t.x,["".concat(aa,"-left")]:Y(r)&&t&&Y(t.x)&&r<t.x,["".concat(aa,"-bottom")]:Y(n)&&t&&Y(t.y)&&n>=t.y,["".concat(aa,"-top")]:Y(n)&&t&&Y(t.y)&&n<t.y})}function S0(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:o,position:i,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(i&&Y(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 f=l[n];if(f==null)return 0;if(a[n]){var h=u,v=f;return h<v?Math.max(d,f):Math.max(u,f)}if(c==null)return 0;var m=d+s,g=f+c;return m>g?Math.max(u,f):Math.max(d,f)}function jH(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 RH(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:o,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:c}=e,u,d,f;return s.height>0&&s.width>0&&r?(d=S0({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),f=S0({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=jH({translateX:d,translateY:f,useTranslate3d:l})):u=_H,{cssProperties:u,cssClasses:NH({translateX:d,translateY:f,coordinate:r})}}function P0(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 yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P0(Object(r),!0).forEach(function(n){Kh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kh(e,t,r){return(t=IH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IH(e){var t=LH(e,"string");return typeof t=="symbol"?t:t+""}function LH(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 $H extends O.PureComponent{constructor(){super(...arguments),Kh(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Kh(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:f,viewBox:h,wrapperStyle:v,lastBoundingBox:m,innerRef:g,hasPortalFromProps:y}=this.props,w=typeof c=="number"?c:c.x,x=typeof c=="number"?c:c.y,{cssClasses:S,cssProperties:P}=RH({allowEscapeViewBox:r,coordinate:a,offsetLeft:w,offsetTop:x,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:f,viewBox:h}),C=y?{}:yl(yl({transition:l&&t?"transform ".concat(n,"ms ").concat(o):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),E=yl(yl({},C),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},v);return p.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:S,style:E,ref:g},i)}}var fM=()=>{var e;return(e=J(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Uh(){return Uh=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},Uh.apply(null,arguments)}function C0(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 O0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C0(Object(r),!0).forEach(function(n){FH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FH(e,t,r){return(t=VH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VH(e){var t=BH(e,"string");return typeof t=="symbol"?t:t+""}function BH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E0={curveBasisClosed:o5,curveBasisOpen:i5,curveBasis:n5,curveBumpX:z3,curveBumpY:K3,curveLinearClosed:a5,curveLinear:Au,curveMonotoneX:s5,curveMonotoneY:l5,curveNatural:c5,curveStep:u5,curveStepAfter:f5,curveStepBefore:d5},Pc=e=>pe(e.x)&&pe(e.y),A0=e=>e.base!=null&&Pc(e.base)&&Pc(e),sa=e=>e.x,la=e=>e.y,WH=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(ss(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=E0["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return E0[r]||Au},T0={connectNulls:!1,type:"linear"},zH=e=>{var{type:t=T0.type,points:r=[],baseLine:n,layout:o,connectNulls:i=T0.connectNulls}=e,a=WH(t,o),s=i?r.filter(Pc):r;if(Array.isArray(n)){var l,c=r.map((v,m)=>O0(O0({},v),{},{base:n[m]}));o==="vertical"?l=sl().y(la).x1(sa).x0(v=>v.base.x):l=sl().x(sa).y1(la).y0(v=>v.base.y);var u=l.defined(A0).curve(a),d=i?c.filter(A0):c;return u(d)}var f;o==="vertical"&&Y(n)?f=sl().y(la).x1(sa).x0(n):Y(n)?f=sl().x(sa).y1(la).y0(n):f=jA().x(sa).y(la);var h=f.defined(Pc).curve(a);return h(s)},Jv=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=zo();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?zH(a):n;return p.createElement("path",Uh({},Zt(e),Rv(e),{className:ve("recharts-curve",t),d:s===null?void 0:s,ref:o}))},KH=["x","y","top","left","width","height","className"];function Hh(){return Hh=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},Hh.apply(null,arguments)}function M0(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 UH(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M0(Object(r),!0).forEach(function(n){HH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HH(e,t,r){return(t=GH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GH(e){var t=YH(e,"string");return typeof t=="symbol"?t:t+""}function YH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qH(e,t){if(e==null)return{};var r,n,o=XH(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function XH(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ZH=(e,t,r,n,o,i)=>"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),QH=e=>{var{x:t=0,y:r=0,top:n=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=qH(e,KH),c=UH({x:t,y:r,top:n,left:o,width:i,height:a},l);return!Y(t)||!Y(r)||!Y(i)||!Y(a)||!Y(n)||!Y(o)?null:p.createElement("path",Hh({},It(c),{className:ve("recharts-cross",s),d:ZH(t,r,i,a,n,o)}))};function JH(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 k0(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 D0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k0(Object(r),!0).forEach(function(n){e6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e6(e,t,r){return(t=t6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t6(e){var t=r6(e,"string");return typeof t=="symbol"?t:t+""}function r6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n6=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),pM=(e,t,r)=>e.map(n=>"".concat(n6(n)," ").concat(t,"ms ").concat(r)).join(","),o6=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),La=(e,t)=>Object.keys(t).reduce((r,n)=>D0(D0({},r),{},{[n]:e(n,t[n])}),{});function _0(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?_0(Object(r),!0).forEach(function(n){i6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i6(e,t,r){return(t=a6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a6(e){var t=s6(e,"string");return typeof t=="symbol"?t:t+""}function s6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cc=(e,t,r)=>e+(t-e)*r,Gh=e=>{var{from:t,to:r}=e;return t!==r},hM=(e,t,r)=>{var n=La((o,i)=>{if(Gh(i)){var[a,s]=e(i.from,i.to,i.velocity);return ot(ot({},i),{},{from:a,velocity:s})}return i},t);return r<1?La((o,i)=>Gh(i)&&n[o]!=null?ot(ot({},i),{},{velocity:Cc(i.velocity,n[o].velocity,r),from:Cc(i.from,n[o].from,r)}):i,t):hM(e,n,r-1)};function l6(e,t,r,n,o,i){var a,s=n.reduce((f,h)=>ot(ot({},f),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>La((f,h)=>h.from,s),c=()=>!Object.values(s).filter(Gh).length,u=null,d=f=>{a||(a=f);var h=f-a,v=h/r.dt;s=hM(r,s,v),o(ot(ot(ot({},e),t),l())),a=f,c()||(u=i.setTimeout(d))};return()=>(u=i.setTimeout(d),()=>{var f;(f=u)===null||f===void 0||f()})}function c6(e,t,r,n,o,i,a){var s=null,l=o.reduce((d,f)=>{var h=e[f],v=t[f];return h==null||v==null?d:ot(ot({},d),{},{[f]:[h,v]})},{}),c,u=d=>{c||(c=d);var f=(d-c)/n,h=La((m,g)=>Cc(...g,r(f)),l);if(i(ot(ot(ot({},e),t),h)),f<1)s=a.setTimeout(u);else{var v=La((m,g)=>Cc(...g,r(1)),l);i(ot(ot(ot({},e),t),v))}};return()=>(s=a.setTimeout(u),()=>{var d;(d=s)===null||d===void 0||d()})}const u6=(e,t,r,n,o,i)=>{var a=o6(e,t);return r==null?()=>(o(ot(ot({},e),t)),()=>{}):r.isStepper===!0?l6(e,t,r,a,o,i):c6(e,t,r,n,a,o,i)};var Oc=1e-4,mM=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],vM=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),N0=(e,t)=>r=>{var n=mM(e,t);return vM(n,r)},d6=(e,t)=>r=>{var n=mM(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return vM(o,r)},f6=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]]},p6=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=f6(r[0]);if(o)return o}}return r.length===4?r:[0,0,1,1]},h6=(e,t,r,n)=>{var o=N0(e,r),i=N0(t,n),a=d6(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,d=u,f=0;f<8;++f){var h=o(d)-u,v=a(d);if(Math.abs(h-u)<Oc||v<Oc)return i(d);d=s(d-h/v)}return i(d)};return l.isStepper=!1,l},j0=function(){return h6(...p6(...arguments))},m6=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,f=l*o/1e3+a;return Math.abs(f-s)<Oc&&Math.abs(d)<Oc?[s,0]:[f,d]};return i.isStepper=!0,i.dt=o,i},v6=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return j0(e);case"spring":return m6();default:if(e.split("(")[0]==="cubic-bezier")return j0(e)}return typeof e=="function"?e:null};function g6(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 y6{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 b6(){return g6(new y6)}var w6=O.createContext(b6);function x6(e,t){var r=O.useContext(w6);return O.useMemo(()=>t??r(e),[e,t,r])}var S6=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Gu={isSsr:S6()},P6={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},R0={t:0},fp={t:1};function vs(e){var t=et(e,P6),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=r==="auto"?!Gu.isSsr:r,d=x6(t.animationId,t.animationManager),[f,h]=O.useState(u?R0:fp),v=O.useRef(null);return O.useEffect(()=>{u||h(fp)},[u]),O.useEffect(()=>{if(!u||!n)return Wo;var m=u6(R0,fp,v6(i),o,h,d.getTimeoutController()),g=()=>{v.current=m()};return d.start([l,a,g,o,s]),()=>{d.stop(),v.current&&v.current(),s()}},[u,n,o,i,a,l,s,d]),c(f.t)}function gs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=O.useRef(ka(t)),n=O.useRef(e);return n.current!==e&&(r.current=ka(t),n.current=e),r.current}var C6=["radius"],O6=["radius"],I0,L0,$0,F0,V0,B0,W0,z0,K0,U0;function H0(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 G0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H0(Object(r),!0).forEach(function(n){E6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E6(e,t,r){return(t=A6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A6(e){var t=T6(e,"string");return typeof t=="symbol"?t:t+""}function T6(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 Ec(){return Ec=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},Ec.apply(null,arguments)}function Y0(e,t){if(e==null)return{};var r,n,o=M6(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 M6(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 Er(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var q0=(e,t,r,n,o)=>{var i=Nn(r),a=Nn(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 f=[0,0,0,0],h=0,v=4;h<v;h++){var m,g=(m=o[h])!==null&&m!==void 0?m:0;f[h]=g>s?s:g}d=Ue(I0||(I0=Er(["M",",",""])),e,t+l*f[0]),f[0]>0&&(d+=Ue(L0||(L0=Er(["A ",",",",0,0,",",",",",""])),f[0],f[0],u,e+c*f[0],t)),d+=Ue($0||($0=Er(["L ",",",""])),e+r-c*f[1],t),f[1]>0&&(d+=Ue(F0||(F0=Er(["A ",",",",0,0,",`,
72
+ `,",",""])),f[1],f[1],u,e+r,t+l*f[1])),d+=Ue(V0||(V0=Er(["L ",",",""])),e+r,t+n-l*f[2]),f[2]>0&&(d+=Ue(B0||(B0=Er(["A ",",",",0,0,",`,
73
+ `,",",""])),f[2],f[2],u,e+r-c*f[2],t+n)),d+=Ue(W0||(W0=Er(["L ",",",""])),e+c*f[3],t+n),f[3]>0&&(d+=Ue(z0||(z0=Er(["A ",",",",0,0,",`,
74
+ `,",",""])),f[3],f[3],u,e,t+n-l*f[3])),d+="Z"}else if(s>0&&o===+o&&o>0){var y=Math.min(s,o);d=Ue(K0||(K0=Er(["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*y,y,y,u,e+c*y,t,e+r-c*y,t,y,y,u,e+r,t+l*y,e+r,t+n-l*y,y,y,u,e+r-c*y,t+n,e+c*y,t+n,y,y,u,e,t+n-l*y)}else d=Ne(jw||(jw=cr(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return d},Nw={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YA=e=>{var t=We(e,Nw),r=O.useRef(null),[n,o]=O.useState(-1);O.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var $=r.current.getTotalLength();$&&o($)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:d,animationDuration:f,animationBegin:h,isAnimationActive:v,isUpdateAnimationActive:m}=t,g=O.useRef(s),y=O.useRef(l),x=O.useRef(i),w=O.useRef(a),S=O.useMemo(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),P=Ia(S,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var C=fe("recharts-rectangle",u);if(!m){var E=Et(t),{radius:A}=E,_=kw(E,fU);return p.createElement("path",Vl({},_,{x:un(i),y:un(a),width:un(s),height:un(l),radius:typeof c=="number"?c:void 0,className:C,d:Iw(i,a,s,l,c)}))}var D=g.current,R=y.current,T=x.current,j=w.current,N="0px ".concat(n===-1?1:n,"px"),W="".concat(n,"px 0px"),B=UA(["strokeDasharray"],f,typeof d=="string"?d:Nw.animationEasing);return p.createElement(ka,{animationId:P,key:P,canBegin:n>0,duration:f,easing:d,isActive:m,begin:h},$=>{var M=_e(D,s,$),I=_e(R,l,$),H=_e(T,i,$),te=_e(j,a,$);r.current&&(g.current=M,y.current=I,x.current=H,w.current=te);var oe;v?$>0?oe={transition:B,strokeDasharray:W}:oe={strokeDasharray:N}:oe={strokeDasharray:W};var ae=Et(t),{radius:ie}=ae,ce=kw(ae,pU);return p.createElement("path",Vl({},ce,{radius:typeof c=="number"?c:void 0,className:C,d:Iw(H,te,M,I,c),ref:r,style:Rw(Rw({},oe),t.style)}))})};function Lw(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?Lw(Object(r),!0).forEach(function(n){yU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function 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 Fl=Math.PI/180,wU=e=>e*180/Math.PI,Fe=(e,t,r,n)=>({x:e+Math.cos(-Fl*n)*r,y:t+Math.sin(-Fl*n)*r}),XA=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},SU=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},PU=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=SU({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:wU(l),angleInRadian:l}},CU=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}},EU=(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},OU=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:o,angle:i}=PU({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(o<a||o>s||o===0)return null;var{startAngle:l,endAngle:c}=CU(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?$w($w({},t),{},{radius:o,angle:EU(u,t)}):null};function ZA(e){var{cx:t,cy:r,radius:n,startAngle:o,endAngle:i}=e,a=Fe(t,r,n,o),s=Fe(t,r,n,i);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}var Vw,Fw,Bw,zw,Ww,Kw,Uw;function Zp(){return Zp=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},Zp.apply(null,arguments)}function zn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var AU=(e,t)=>{var r=et(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Ds=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)/Fl,d=l?o:o+i*u,f=Fe(t,r,c,d),h=Fe(t,r,n,d),v=l?o-i*u:o,m=Fe(t,r,c*Math.cos(u*Fl),v);return{center:f,circleTangency:h,lineTangency:m,theta:u}},JA=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:i,endAngle:a}=e,s=AU(i,a),l=i+s,c=Fe(t,r,o,i),u=Fe(t,r,o,l),d=Ne(Vw||(Vw=zn(["M ",",",`
81
+ A `,",",",0,0,",",",","," Z"])),e,t+l*y,y,y,u,e+c*y,t,e+r-c*y,t,y,y,u,e+r,t+l*y,e+r,t+n-l*y,y,y,u,e+r-c*y,t+n,e+c*y,t+n,y,y,u,e,t+n-l*y)}else d=Ue(U0||(U0=Er(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return d},X0={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gM=e=>{var t=et(e,X0),r=O.useRef(null),[n,o]=O.useState(-1);O.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var V=r.current.getTotalLength();V&&o(V)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:d,animationDuration:f,animationBegin:h,isAnimationActive:v,isUpdateAnimationActive:m}=t,g=O.useRef(s),y=O.useRef(l),w=O.useRef(i),x=O.useRef(a),S=O.useMemo(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),P=gs(S,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var C=ve("recharts-rectangle",u);if(!m){var E=It(t),{radius:A}=E,T=Y0(E,C6);return p.createElement("path",Ec({},T,{x:Nn(i),y:Nn(a),width:Nn(s),height:Nn(l),radius:typeof c=="number"?c:void 0,className:C,d:q0(i,a,s,l,c)}))}var M=g.current,D=y.current,k=w.current,_=x.current,I="0px ".concat(n===-1?1:n,"px"),z="".concat(n,"px 0px"),B=pM(["strokeDasharray"],f,typeof d=="string"?d:X0.animationEasing);return p.createElement(vs,{animationId:P,key:P,canBegin:n>0,duration:f,easing:d,isActive:m,begin:h},V=>{var j=Le(M,s,V),L=Le(D,l,V),H=Le(k,i,V),te=Le(_,a,V);r.current&&(g.current=j,y.current=L,w.current=H,x.current=te);var le;v?V>0?le={transition:B,strokeDasharray:z}:le={strokeDasharray:I}:le={strokeDasharray:z};var ae=It(t),{radius:oe}=ae,Se=Y0(ae,O6);return p.createElement("path",Ec({},Se,{radius:typeof c=="number"?c:void 0,className:C,d:q0(H,te,j,L,c),ref:r,style:G0(G0({},le),t.style)}))})};function Z0(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 Q0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z0(Object(r),!0).forEach(function(n){k6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k6(e,t,r){return(t=D6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D6(e){var t=_6(e,"string");return typeof t=="symbol"?t:t+""}function _6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ac=Math.PI/180,N6=e=>e*180/Math.PI,Xe=(e,t,r,n)=>({x:e+Math.cos(-Ac*n)*r,y:t+Math.sin(-Ac*n)*r}),yM=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},j6=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},R6=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=j6({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:N6(l),angleInRadian:l}},I6=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}},L6=(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},$6=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:o,angle:i}=R6({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(o<a||o>s||o===0)return null;var{startAngle:l,endAngle:c}=I6(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?Q0(Q0({},t),{},{radius:o,angle:L6(u,t)}):null};function bM(e){var{cx:t,cy:r,radius:n,startAngle:o,endAngle:i}=e,a=Xe(t,r,n,o),s=Xe(t,r,n,i);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}var J0,eS,tS,rS,nS,oS,iS;function Yh(){return Yh=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},Yh.apply(null,arguments)}function po(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var F6=(e,t)=>{var r=ft(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},bl=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)/Ac,d=l?o:o+i*u,f=Xe(t,r,c,d),h=Xe(t,r,n,d),v=l?o-i*u:o,m=Xe(t,r,c*Math.cos(u*Ac),v);return{center:f,circleTangency:h,lineTangency:m,theta:u}},wM=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:i,endAngle:a}=e,s=F6(i,a),l=i+s,c=Xe(t,r,o,i),u=Xe(t,r,o,l),d=Ue(J0||(J0=po(["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 f=Fe(t,r,n,i),h=Fe(t,r,n,l);d+=Ne(Fw||(Fw=zn(["L ",",",`
85
+ `])),c.x,c.y,o,o,+(Math.abs(s)>180),+(i>l),u.x,u.y);if(n>0){var f=Xe(t,r,n,i),h=Xe(t,r,n,l);d+=Ue(eS||(eS=po(["L ",",",`
86
86
  A `,",",`,0,
87
87
  `,",",`,
88
- `,","," Z"])),h.x,h.y,n,n,+(Math.abs(s)>180),+(i<=l),f.x,f.y)}else d+=Ne(Bw||(Bw=zn(["L ",","," Z"])),t,r);return d},TU=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=et(c-l),{circleTangency:d,lineTangency:f,theta:h}=Ds({cx:t,cy:r,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:v,lineTangency:m,theta:g}=Ds({cx:t,cy:r,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),y=s?Math.abs(l-c):Math.abs(l-c)-h-g;if(y<0)return a?Ne(zw||(zw=zn(["M ",",",`
88
+ `,","," Z"])),h.x,h.y,n,n,+(Math.abs(s)>180),+(i<=l),f.x,f.y)}else d+=Ue(tS||(tS=po(["L ",","," Z"])),t,r);return d},V6=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=ft(c-l),{circleTangency:d,lineTangency:f,theta:h}=bl({cx:t,cy:r,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:v,lineTangency:m,theta:g}=bl({cx:t,cy:r,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),y=s?Math.abs(l-c):Math.abs(l-c)-h-g;if(y<0)return a?Ue(rS||(rS=po(["M ",",",`
89
89
  a`,",",",0,0,1,",`,0
90
90
  a`,",",",0,0,1,",`,0
91
- `])),f.x,f.y,i,i,i*2,i,i,-i*2):JA({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var x=Ne(Ww||(Ww=zn(["M ",",",`
91
+ `])),f.x,f.y,i,i,i*2,i,i,-i*2):wM({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var w=Ue(nS||(nS=po(["M ",",",`
92
92
  A`,",",",0,0,",",",",",`
93
93
  A`,",",",0,",",",",",",",`
94
94
  A`,",",",0,0,",",",",",`
95
- `])),f.x,f.y,i,i,+(u<0),d.x,d.y,o,o,+(y>180),+(u<0),v.x,v.y,i,i,+(u<0),m.x,m.y);if(n>0){var{circleTangency:w,lineTangency:S,theta:P}=Ds({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:C,lineTangency:E,theta:A}=Ds({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=s?Math.abs(l-c):Math.abs(l-c)-P-A;if(_<0&&i===0)return"".concat(x,"L").concat(t,",").concat(r,"Z");x+=Ne(Kw||(Kw=zn(["L",",",`
95
+ `])),f.x,f.y,i,i,+(u<0),d.x,d.y,o,o,+(y>180),+(u<0),v.x,v.y,i,i,+(u<0),m.x,m.y);if(n>0){var{circleTangency:x,lineTangency:S,theta:P}=bl({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:C,lineTangency:E,theta:A}=bl({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),T=s?Math.abs(l-c):Math.abs(l-c)-P-A;if(T<0&&i===0)return"".concat(w,"L").concat(t,",").concat(r,"Z");w+=Ue(oS||(oS=po(["L",",",`
96
96
  A`,",",",0,0,",",",",",`
97
97
  A`,",",",0,",",",",",",",`
98
- A`,",",",0,0,",",",",","Z"])),E.x,E.y,i,i,+(u<0),C.x,C.y,n,n,+(_>180),+(u>0),w.x,w.y,i,i,+(u<0),S.x,S.y)}else x+=Ne(Uw||(Uw=zn(["L",",","Z"])),t,r);return x},_U={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},QA=e=>{var t=We(e,_U),{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 f=fe("recharts-sector",d),h=i-o,v=ht(a,h,0,!0),m;return v>0&&Math.abs(c-u)<360?m=TU({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(v,h/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=JA({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),p.createElement("path",Zp({},Et(t),{className:f,d:m}))};function MU(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(AO(t)){if(e==="centric"){var{cx:n,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=Fe(n,o,i,s),c=Fe(n,o,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return ZA(t)}}var wf={},Sf={},Pf={},Hw;function jU(){return Hw||(Hw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VO();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(Pf)),Pf}var Gw;function DU(){return Gw||(Gw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jU();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})(Sf)),Sf}var qw;function RU(){return qw||(qw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=FO(),r=DU();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})(wf)),wf}var Cf,Yw;function kU(){return Yw||(Yw=1,Cf=RU().range),Cf}var IU=kU();const eT=Pn(IU);function fn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function NU(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Qm(e){let t,r,n;e.length!==2?(t=fn,r=(s,l)=>fn(e(s),l),n=(s,l)=>e(s)-l):(t=e===fn||e===NU?e:LU,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 LU(){return 0}function tT(e){return e===null?NaN:+e}function*$U(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const VU=Qm(fn),Na=VU.right;Qm(tT).center;class Xw extends Map{constructor(t,r=zU){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(Zw(this,t))}has(t){return super.has(Zw(this,t))}set(t,r){return super.set(FU(this,t),r)}delete(t){return super.delete(BU(this,t))}}function Zw({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function FU({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function BU({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function zU(e){return e!==null&&typeof e=="object"?e.valueOf():e}function WU(e=fn){if(e===fn)return rT;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 rT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const KU=Math.sqrt(50),UU=Math.sqrt(10),HU=Math.sqrt(2);function Bl(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>=KU?10:i>=UU?5:i>=HU?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?Bl(e,t,r*2):[s,l,c]}function Jp(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?Bl(t,e,r):Bl(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 Qp(e,t,r){return t=+t,e=+e,r=+r,Bl(e,t,r)[2]}function eh(e,t,r){t=+t,e=+e,r=+r;const n=t<e,o=n?Qp(t,e,r):Qp(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}function Jw(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Qw(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function nT(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?rT:WU(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),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*d/l+f)),v=Math.min(n,Math.floor(t+(l-c)*d/l+f));nT(e,t,h,v,o)}const i=e[t];let a=r,s=n;for(Ri(e,r,t),o(e[n],i)>0&&Ri(e,r,n);a<s;){for(Ri(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[r],i)===0?Ri(e,r,s):(++s,Ri(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Ri(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function GU(e,t,r){if(e=Float64Array.from($U(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Qw(e);if(t>=1)return Jw(e);var n,o=(n-1)*t,i=Math.floor(o),a=Jw(nT(e,i).subarray(0,i+1)),s=Qw(e.subarray(i+1));return a+(s-a)*(o-i)}}function qU(e,t,r=tT){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 YU(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 Xt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Zr(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 th=Symbol("implicit");function ev(){var e=new Xw,t=[],r=[],n=th;function o(i){let a=e.get(i);if(a===void 0){if(n!==th)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 Xw;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 ev(t,r).unknown(n)},Xt.apply(o,arguments),o}function tv(){var e=ev().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 f=t().length,h=o<n,v=h?o:n,m=h?n:o;i=(m-v)/Math.max(1,f-l+c*2),s&&(i=Math.floor(i)),v+=(m-v-i*(f-l))*u,a=i*(1-l),s&&(v=Math.round(v),a=Math.round(a));var g=YU(f).map(function(y){return v+i*y});return r(h?g.reverse():g)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([n,o]=f,n=+n,o=+o,d()):[n,o]},e.rangeRound=function(f){return[n,o]=f,n=+n,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return tv(t(),[n,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},Xt.apply(d(),arguments)}function oT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return oT(t())},e}function XU(){return oT(tv.apply(null,arguments).paddingInner(1))}function rv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function iT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function La(){}var oa=.7,zl=1/oa,Uo="\\s*([+-]?\\d+)\\s*",ia="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ZU=/^#([0-9a-f]{3,8})$/,JU=new RegExp(`^rgb\\(${Uo},${Uo},${Uo}\\)$`),QU=new RegExp(`^rgb\\(${yr},${yr},${yr}\\)$`),e6=new RegExp(`^rgba\\(${Uo},${Uo},${Uo},${ia}\\)$`),t6=new RegExp(`^rgba\\(${yr},${yr},${yr},${ia}\\)$`),r6=new RegExp(`^hsl\\(${ia},${yr},${yr}\\)$`),n6=new RegExp(`^hsla\\(${ia},${yr},${yr},${ia}\\)$`),e0={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};rv(La,aa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:t0,formatHex:t0,formatHex8:o6,formatHsl:i6,formatRgb:r0,toString:r0});function t0(){return this.rgb().formatHex()}function o6(){return this.rgb().formatHex8()}function i6(){return aT(this).formatHsl()}function r0(){return this.rgb().formatRgb()}function aa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ZU.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?n0(t):r===3?new _t(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Rs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Rs(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=JU.exec(e))?new _t(t[1],t[2],t[3],1):(t=QU.exec(e))?new _t(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=e6.exec(e))?Rs(t[1],t[2],t[3],t[4]):(t=t6.exec(e))?Rs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=r6.exec(e))?a0(t[1],t[2]/100,t[3]/100,1):(t=n6.exec(e))?a0(t[1],t[2]/100,t[3]/100,t[4]):e0.hasOwnProperty(e)?n0(e0[e]):e==="transparent"?new _t(NaN,NaN,NaN,0):null}function n0(e){return new _t(e>>16&255,e>>8&255,e&255,1)}function Rs(e,t,r,n){return n<=0&&(e=t=r=NaN),new _t(e,t,r,n)}function a6(e){return e instanceof La||(e=aa(e)),e?(e=e.rgb(),new _t(e.r,e.g,e.b,e.opacity)):new _t}function rh(e,t,r,n){return arguments.length===1?a6(e):new _t(e,t,r,n??1)}function _t(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}rv(_t,rh,iT(La,{brighter(e){return e=e==null?zl:Math.pow(zl,e),new _t(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new _t(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _t(Zn(this.r),Zn(this.g),Zn(this.b),Wl(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:o0,formatHex:o0,formatHex8:s6,formatRgb:i0,toString:i0}));function o0(){return`#${Wn(this.r)}${Wn(this.g)}${Wn(this.b)}`}function s6(){return`#${Wn(this.r)}${Wn(this.g)}${Wn(this.b)}${Wn((isNaN(this.opacity)?1:this.opacity)*255)}`}function i0(){const e=Wl(this.opacity);return`${e===1?"rgb(":"rgba("}${Zn(this.r)}, ${Zn(this.g)}, ${Zn(this.b)}${e===1?")":`, ${e})`}`}function Wl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wn(e){return e=Zn(e),(e<16?"0":"")+e.toString(16)}function a0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tr(e,t,r,n)}function aT(e){if(e instanceof tr)return new tr(e.h,e.s,e.l,e.opacity);if(e instanceof La||(e=aa(e)),!e)return new tr;if(e instanceof tr)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 tr(a,s,l,e.opacity)}function l6(e,t,r,n){return arguments.length===1?aT(e):new tr(e,t,r,n??1)}function tr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}rv(tr,l6,iT(La,{brighter(e){return e=e==null?zl:Math.pow(zl,e),new tr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oa:Math.pow(oa,e),new tr(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 _t(Ef(e>=240?e-240:e+120,o,n),Ef(e,o,n),Ef(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new tr(s0(this.h),ks(this.s),ks(this.l),Wl(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=Wl(this.opacity);return`${e===1?"hsl(":"hsla("}${s0(this.h)}, ${ks(this.s)*100}%, ${ks(this.l)*100}%${e===1?")":`, ${e})`}`}}));function s0(e){return e=(e||0)%360,e<0?e+360:e}function ks(e){return Math.max(0,Math.min(1,e||0))}function Ef(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 nv=e=>()=>e;function c6(e,t){return function(r){return e+r*t}}function u6(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 d6(e){return(e=+e)==1?sT:function(t,r){return r-t?u6(t,r,e):nv(isNaN(t)?r:t)}}function sT(e,t){var r=t-e;return r?c6(e,r):nv(isNaN(e)?t:e)}const l0=(function e(t){var r=d6(t);function n(o,i){var a=r((o=rh(o)).r,(i=rh(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=sT(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 f6(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 p6(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function h6(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]=ui(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 m6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Kl(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function v6(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]=ui(e[o],t[o]):n[o]=t[o];return function(i){for(o in r)n[o]=r[o](i);return n}}var nh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Of=new RegExp(nh.source,"g");function g6(e){return function(){return e}}function y6(e){return function(t){return e(t)+""}}function b6(e,t){var r=nh.lastIndex=Of.lastIndex=0,n,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=nh.exec(e))&&(o=Of.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:Kl(n,o)})),r=Of.lastIndex;return r<t.length&&(i=t.slice(r),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?y6(l[0].x):g6(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 ui(e,t){var r=typeof t,n;return t==null||r==="boolean"?nv(t):(r==="number"?Kl:r==="string"?(n=aa(t))?(t=n,l0):b6:t instanceof aa?l0:t instanceof Date?m6:p6(t)?f6:Array.isArray(t)?h6:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?v6:Kl)(e,t)}function ov(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function x6(e,t){t===void 0&&(t=e,e=ui);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 w6(e){return function(){return e}}function Ul(e){return+e}var c0=[0,1];function wt(e){return e}function oh(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:w6(isNaN(t)?NaN:.5)}function S6(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function P6(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=oh(o,n),i=r(a,i)):(n=oh(n,o),i=r(i,a)),function(s){return i(n(s))}}function C6(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]=oh(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(s){var l=Na(e,s,1,n)-1;return i[l](o[l](s))}}function $a(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lu(){var e=c0,t=c0,r=ui,n,o,i,a=wt,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==wt&&(a=S6(e[0],e[f-1])),s=f>2?C6:P6,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(n),t,r)))(n(a(f)))}return d.invert=function(f){return a(o((c||(c=s(t,e.map(n),Kl)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,Ul),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),r=ov,u()},d.clamp=function(f){return arguments.length?(a=f?!0:wt,u()):a!==wt},d.interpolate=function(f){return arguments.length?(r=f,u()):r},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,h){return n=f,o=h,u()}}function iv(){return lu()(wt,wt)}function E6(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Hl(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 Jo(e){return e=Hl(Math.abs(e)),e?e[1]:NaN}function O6(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 A6(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var T6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function sa(e){if(!(t=T6.exec(e)))throw new Error("invalid format: "+e);var t;return new av({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]})}sa.prototype=av.prototype;function av(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+""}av.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 _6(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 Gl;function M6(e,t){var r=Hl(e,t);if(!r)return Gl=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(Gl=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")+Hl(e,Math.max(0,t+i-1))[0]}function u0(e,t){var r=Hl(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 d0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:E6,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)=>u0(e*100,t),r:u0,s:M6,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f0(e){return e}var p0=Array.prototype.map,h0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function j6(e){var t=e.grouping===void 0||e.thousands===void 0?f0:O6(p0.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?f0:A6(p0.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,f){d=sa(d);var h=d.fill,v=d.align,m=d.sign,g=d.symbol,y=d.zero,x=d.width,w=d.comma,S=d.precision,P=d.trim,C=d.type;C==="n"?(w=!0,C="g"):d0[C]||(S===void 0&&(S=12),P=!0,C="g"),(y||h==="0"&&v==="=")&&(y=!0,h="0",v="=");var E=(f&&f.prefix!==void 0?f.prefix:"")+(g==="$"?r:g==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),A=(g==="$"?n:/[%p]/.test(C)?a:"")+(f&&f.suffix!==void 0?f.suffix:""),_=d0[C],D=/[defgprs%]/.test(C);S=S===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function R(T){var j=E,N=A,W,B,$;if(C==="c")N=_(T)+N,T="";else{T=+T;var M=T<0||1/T<0;if(T=isNaN(T)?l:_(Math.abs(T),S),P&&(T=_6(T)),M&&+T==0&&m!=="+"&&(M=!1),j=(M?m==="("?m:s:m==="-"||m==="("?"":m)+j,N=(C==="s"&&!isNaN(T)&&Gl!==void 0?h0[8+Gl/3]:"")+N+(M&&m==="("?")":""),D){for(W=-1,B=T.length;++W<B;)if($=T.charCodeAt(W),48>$||$>57){N=($===46?o+T.slice(W+1):T.slice(W))+N,T=T.slice(0,W);break}}}w&&!y&&(T=t(T,1/0));var I=j.length+T.length+N.length,H=I<x?new Array(x-I+1).join(h):"";switch(w&&y&&(T=t(H+T,H.length?x-N.length:1/0),H=""),v){case"<":T=j+T+N+H;break;case"=":T=j+H+T+N;break;case"^":T=H.slice(0,I=H.length>>1)+j+T+N+H.slice(I);break;default:T=H+j+T+N;break}return i(T)}return R.toString=function(){return d+""},R}function u(d,f){var h=Math.max(-8,Math.min(8,Math.floor(Jo(f)/3)))*3,v=Math.pow(10,-h),m=c((d=sa(d),d.type="f",d),{suffix:h0[8+h/3]});return function(g){return m(v*g)}}return{format:c,formatPrefix:u}}var Is,sv,lT;D6({thousands:",",grouping:[3],currency:["$",""]});function D6(e){return Is=j6(e),sv=Is.format,lT=Is.formatPrefix,Is}function R6(e){return Math.max(0,-Jo(Math.abs(e)))}function k6(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Jo(t)/3)))*3-Jo(Math.abs(e)))}function I6(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Jo(t)-Jo(e))+1}function cT(e,t,r,n){var o=eh(e,t,r),i;switch(n=sa(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=k6(o,a))&&(n.precision=i),lT(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=I6(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=R6(o))&&(n.precision=i-(n.type==="%")*2);break}}return sv(n)}function Cn(e){var t=e.domain;return e.ticks=function(r){var n=t();return Jp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return cT(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=Qp(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 uT(){var e=iv();return e.copy=function(){return $a(e,uT())},Xt.apply(e,arguments),Cn(e)}function dT(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,Ul),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return dT(e).unknown(t)},e=arguments.length?Array.from(e,Ul):[0,1],Cn(r)}function fT(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 m0(e){return Math.log(e)}function v0(e){return Math.exp(e)}function N6(e){return-Math.log(-e)}function L6(e){return-Math.exp(-e)}function $6(e){return isFinite(e)?+("1e"+e):e<0?0:e}function V6(e){return e===10?$6:e===Math.E?Math.exp:t=>Math.pow(e,t)}function F6(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 g0(e){return(t,r)=>-e(-t,r)}function lv(e){const t=e(m0,v0),r=t.domain;let n=10,o,i;function a(){return o=F6(n),i=V6(n),r()[0]<0?(o=g0(o),i=g0(i),e(N6,L6)):e(m0,v0),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 f=o(c),h=o(u),v,m;const g=s==null?10:+s;let y=[];if(!(n%1)&&h-f<g){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(v=1;v<n;++v)if(m=f<0?v/i(-f):v*i(f),!(m<c)){if(m>u)break;y.push(m)}}else for(;f<=h;++f)for(v=n-1;v>=1;--v)if(m=f>0?v/i(-f):v*i(f),!(m<c)){if(m>u)break;y.push(m)}y.length*2<g&&(y=Jp(c,u,g))}else y=Jp(f,h,Math.min(h-f,g)).map(i);return d?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=sa(l)).precision==null&&(l.trim=!0),l=sv(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(fT(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function pT(){const e=lv(lu()).domain([1,10]);return e.copy=()=>$a(e,pT()).base(e.base()),Xt.apply(e,arguments),e}function y0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function b0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cv(e){var t=1,r=e(y0(t),b0(t));return r.constant=function(n){return arguments.length?e(y0(t=+n),b0(t)):t},Cn(r)}function hT(){var e=cv(lu());return e.copy=function(){return $a(e,hT()).constant(e.constant())},Xt.apply(e,arguments)}function x0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function B6(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function z6(e){return e<0?-e*e:e*e}function uv(e){var t=e(wt,wt),r=1;function n(){return r===1?e(wt,wt):r===.5?e(B6,z6):e(x0(r),x0(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},Cn(t)}function dv(){var e=uv(lu());return e.copy=function(){return $a(e,dv()).exponent(e.exponent())},Xt.apply(e,arguments),e}function W6(){return dv.apply(null,arguments).exponent(.5)}function w0(e){return Math.sign(e)*e*e}function K6(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function mT(){var e=iv(),t=[0,1],r=!1,n;function o(i){var a=K6(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(w0(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,Ul)).map(w0)),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 mT(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Xt.apply(o,arguments),Cn(o)}function vT(){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]=qU(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?n:t[Na(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(fn),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 vT().domain(e).range(t).unknown(n)},Xt.apply(i,arguments)}function gT(){var e=0,t=1,r=1,n=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[Na(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 gT().domain([e,t]).range(o).unknown(i)},Xt.apply(Cn(a),arguments)}function yT(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[Na(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 yT().domain(e).range(t).unknown(r)},Xt.apply(o,arguments)}const Af=new Date,Tf=new Date;function Ye(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=>Ye(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)=>(Af.setTime(+i),Tf.setTime(+a),e(Af),e(Tf),Math.floor(r(Af,Tf))),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 ql=Ye(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ql.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ye(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ql);ql.range;const Dr=1e3,Wt=Dr*60,Rr=Wt*60,Lr=Rr*24,fv=Lr*7,S0=Lr*30,_f=Lr*365,Kn=Ye(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Dr)},(e,t)=>(t-e)/Dr,e=>e.getUTCSeconds());Kn.range;const pv=Ye(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Dr)},(e,t)=>{e.setTime(+e+t*Wt)},(e,t)=>(t-e)/Wt,e=>e.getMinutes());pv.range;const hv=Ye(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Wt)},(e,t)=>(t-e)/Wt,e=>e.getUTCMinutes());hv.range;const mv=Ye(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Dr-e.getMinutes()*Wt)},(e,t)=>{e.setTime(+e+t*Rr)},(e,t)=>(t-e)/Rr,e=>e.getHours());mv.range;const vv=Ye(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Rr)},(e,t)=>(t-e)/Rr,e=>e.getUTCHours());vv.range;const Va=Ye(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wt)/Lr,e=>e.getDate()-1);Va.range;const cu=Ye(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Lr,e=>e.getUTCDate()-1);cu.range;const bT=Ye(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Lr,e=>Math.floor(e/Lr));bT.range;function bo(e){return Ye(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())*Wt)/fv)}const uu=bo(0),Yl=bo(1),U6=bo(2),H6=bo(3),Qo=bo(4),G6=bo(5),q6=bo(6);uu.range;Yl.range;U6.range;H6.range;Qo.range;G6.range;q6.range;function xo(e){return Ye(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)/fv)}const du=xo(0),Xl=xo(1),Y6=xo(2),X6=xo(3),ei=xo(4),Z6=xo(5),J6=xo(6);du.range;Xl.range;Y6.range;X6.range;ei.range;Z6.range;J6.range;const gv=Ye(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());gv.range;const yv=Ye(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());yv.range;const $r=Ye(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());$r.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ye(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)});$r.range;const Vr=Ye(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());Vr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ye(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)});Vr.range;function xT(e,t,r,n,o,i){const a=[[Kn,1,Dr],[Kn,5,5*Dr],[Kn,15,15*Dr],[Kn,30,30*Dr],[i,1,Wt],[i,5,5*Wt],[i,15,15*Wt],[i,30,30*Wt],[o,1,Rr],[o,3,3*Rr],[o,6,6*Rr],[o,12,12*Rr],[n,1,Lr],[n,2,2*Lr],[r,1,fv],[t,1,S0],[t,3,3*S0],[e,1,_f]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),v=h?h.range(c,+u+1):[];return f?v.reverse():v}function l(c,u,d){const f=Math.abs(u-c)/d,h=Qm(([,,g])=>g).right(a,f);if(h===a.length)return e.every(eh(c/_f,u/_f,d));if(h===0)return ql.every(Math.max(eh(c,u,d),1));const[v,m]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return v.every(m)}return[s,l]}const[Q6,eH]=xT(Vr,yv,du,bT,vv,hv),[tH,rH]=xT($r,gv,uu,Va,mv,pv);function Mf(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 jf(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 ki(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function nH(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=Ii(o),u=Ni(o),d=Ii(i),f=Ni(i),h=Ii(a),v=Ni(a),m=Ii(s),g=Ni(s),y=Ii(l),x=Ni(l),w={a:$,A:M,b:I,B:H,c:null,d:T0,e:T0,f:OH,g:NH,G:$H,H:PH,I:CH,j:EH,L:wT,m:AH,M:TH,p:te,q:oe,Q:j0,s:D0,S:_H,u:MH,U:jH,V:DH,w:RH,W:kH,x:null,X:null,y:IH,Y:LH,Z:VH,"%":M0},S={a:ae,A:ie,b:ce,B:Ae,c:null,d:_0,e:_0,f:WH,g:QH,G:tG,H:FH,I:BH,j:zH,L:PT,m:KH,M:UH,p:K,q:de,Q:j0,s:D0,S:HH,u:GH,U:qH,V:YH,w:XH,W:ZH,x:null,X:null,y:JH,Y:eG,Z:rG,"%":M0},P={a:D,A:R,b:T,B:j,c:N,d:O0,e:O0,f:bH,g:E0,G:C0,H:A0,I:A0,j:mH,L:yH,m:hH,M:vH,p:_,q:pH,Q:wH,s:SH,S:gH,u:lH,U:cH,V:uH,w:sH,W:dH,x:W,X:B,y:E0,Y:C0,Z:fH,"%":xH};w.x=C(r,w),w.X=C(n,w),w.c=C(t,w),S.x=C(r,S),S.X=C(n,S),S.c=C(t,S);function C(V,G){return function(z){var F=[],pe=-1,le=0,it=V.length,at,Zt,Uy;for(z instanceof Date||(z=new Date(+z));++pe<it;)V.charCodeAt(pe)===37&&(F.push(V.slice(le,pe)),(Zt=P0[at=V.charAt(++pe)])!=null?at=V.charAt(++pe):Zt=at==="e"?" ":"0",(Uy=G[at])&&(at=Uy(z,Zt)),F.push(at),le=pe+1);return F.push(V.slice(le,pe)),F.join("")}}function E(V,G){return function(z){var F=ki(1900,void 0,1),pe=A(F,V,z+="",0),le,it;if(pe!=z.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(G&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(le=jf(ki(F.y,0,1)),it=le.getUTCDay(),le=it>4||it===0?Xl.ceil(le):Xl(le),le=cu.offset(le,(F.V-1)*7),F.y=le.getUTCFullYear(),F.m=le.getUTCMonth(),F.d=le.getUTCDate()+(F.w+6)%7):(le=Mf(ki(F.y,0,1)),it=le.getDay(),le=it>4||it===0?Yl.ceil(le):Yl(le),le=Va.offset(le,(F.V-1)*7),F.y=le.getFullYear(),F.m=le.getMonth(),F.d=le.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),it="Z"in F?jf(ki(F.y,0,1)).getUTCDay():Mf(ki(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(it+5)%7:F.w+F.U*7-(it+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,jf(F)):Mf(F)}}function A(V,G,z,F){for(var pe=0,le=G.length,it=z.length,at,Zt;pe<le;){if(F>=it)return-1;if(at=G.charCodeAt(pe++),at===37){if(at=G.charAt(pe++),Zt=P[at in P0?G.charAt(pe++):at],!Zt||(F=Zt(V,z,F))<0)return-1}else if(at!=z.charCodeAt(F++))return-1}return F}function _(V,G,z){var F=c.exec(G.slice(z));return F?(V.p=u.get(F[0].toLowerCase()),z+F[0].length):-1}function D(V,G,z){var F=h.exec(G.slice(z));return F?(V.w=v.get(F[0].toLowerCase()),z+F[0].length):-1}function R(V,G,z){var F=d.exec(G.slice(z));return F?(V.w=f.get(F[0].toLowerCase()),z+F[0].length):-1}function T(V,G,z){var F=y.exec(G.slice(z));return F?(V.m=x.get(F[0].toLowerCase()),z+F[0].length):-1}function j(V,G,z){var F=m.exec(G.slice(z));return F?(V.m=g.get(F[0].toLowerCase()),z+F[0].length):-1}function N(V,G,z){return A(V,t,G,z)}function W(V,G,z){return A(V,r,G,z)}function B(V,G,z){return A(V,n,G,z)}function $(V){return a[V.getDay()]}function M(V){return i[V.getDay()]}function I(V){return l[V.getMonth()]}function H(V){return s[V.getMonth()]}function te(V){return o[+(V.getHours()>=12)]}function oe(V){return 1+~~(V.getMonth()/3)}function ae(V){return a[V.getUTCDay()]}function ie(V){return i[V.getUTCDay()]}function ce(V){return l[V.getUTCMonth()]}function Ae(V){return s[V.getUTCMonth()]}function K(V){return o[+(V.getUTCHours()>=12)]}function de(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var G=C(V+="",w);return G.toString=function(){return V},G},parse:function(V){var G=E(V+="",!1);return G.toString=function(){return V},G},utcFormat:function(V){var G=C(V+="",S);return G.toString=function(){return V},G},utcParse:function(V){var G=E(V+="",!0);return G.toString=function(){return V},G}}}var P0={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,oH=/^%/,iH=/[\\^$*+?|[\]().{}]/g;function he(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 aH(e){return e.replace(iH,"\\$&")}function Ii(e){return new RegExp("^(?:"+e.map(aH).join("|")+")","i")}function Ni(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function sH(e,t,r){var n=nt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function lH(e,t,r){var n=nt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function cH(e,t,r){var n=nt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function uH(e,t,r){var n=nt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function dH(e,t,r){var n=nt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function C0(e,t,r){var n=nt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function E0(e,t,r){var n=nt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function fH(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 pH(e,t,r){var n=nt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function hH(e,t,r){var n=nt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function O0(e,t,r){var n=nt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function mH(e,t,r){var n=nt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function A0(e,t,r){var n=nt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function vH(e,t,r){var n=nt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function gH(e,t,r){var n=nt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function yH(e,t,r){var n=nt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function bH(e,t,r){var n=nt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function xH(e,t,r){var n=oH.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function wH(e,t,r){var n=nt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function SH(e,t,r){var n=nt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function T0(e,t){return he(e.getDate(),t,2)}function PH(e,t){return he(e.getHours(),t,2)}function CH(e,t){return he(e.getHours()%12||12,t,2)}function EH(e,t){return he(1+Va.count($r(e),e),t,3)}function wT(e,t){return he(e.getMilliseconds(),t,3)}function OH(e,t){return wT(e,t)+"000"}function AH(e,t){return he(e.getMonth()+1,t,2)}function TH(e,t){return he(e.getMinutes(),t,2)}function _H(e,t){return he(e.getSeconds(),t,2)}function MH(e){var t=e.getDay();return t===0?7:t}function jH(e,t){return he(uu.count($r(e)-1,e),t,2)}function ST(e){var t=e.getDay();return t>=4||t===0?Qo(e):Qo.ceil(e)}function DH(e,t){return e=ST(e),he(Qo.count($r(e),e)+($r(e).getDay()===4),t,2)}function RH(e){return e.getDay()}function kH(e,t){return he(Yl.count($r(e)-1,e),t,2)}function IH(e,t){return he(e.getFullYear()%100,t,2)}function NH(e,t){return e=ST(e),he(e.getFullYear()%100,t,2)}function LH(e,t){return he(e.getFullYear()%1e4,t,4)}function $H(e,t){var r=e.getDay();return e=r>=4||r===0?Qo(e):Qo.ceil(e),he(e.getFullYear()%1e4,t,4)}function VH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+he(t/60|0,"0",2)+he(t%60,"0",2)}function _0(e,t){return he(e.getUTCDate(),t,2)}function FH(e,t){return he(e.getUTCHours(),t,2)}function BH(e,t){return he(e.getUTCHours()%12||12,t,2)}function zH(e,t){return he(1+cu.count(Vr(e),e),t,3)}function PT(e,t){return he(e.getUTCMilliseconds(),t,3)}function WH(e,t){return PT(e,t)+"000"}function KH(e,t){return he(e.getUTCMonth()+1,t,2)}function UH(e,t){return he(e.getUTCMinutes(),t,2)}function HH(e,t){return he(e.getUTCSeconds(),t,2)}function GH(e){var t=e.getUTCDay();return t===0?7:t}function qH(e,t){return he(du.count(Vr(e)-1,e),t,2)}function CT(e){var t=e.getUTCDay();return t>=4||t===0?ei(e):ei.ceil(e)}function YH(e,t){return e=CT(e),he(ei.count(Vr(e),e)+(Vr(e).getUTCDay()===4),t,2)}function XH(e){return e.getUTCDay()}function ZH(e,t){return he(Xl.count(Vr(e)-1,e),t,2)}function JH(e,t){return he(e.getUTCFullYear()%100,t,2)}function QH(e,t){return e=CT(e),he(e.getUTCFullYear()%100,t,2)}function eG(e,t){return he(e.getUTCFullYear()%1e4,t,4)}function tG(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ei(e):ei.ceil(e),he(e.getUTCFullYear()%1e4,t,4)}function rG(){return"+0000"}function M0(){return"%"}function j0(e){return+e}function D0(e){return Math.floor(+e/1e3)}var _o,ET,OT;nG({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 nG(e){return _o=nH(e),ET=_o.format,_o.parse,OT=_o.utcFormat,_o.utcParse,_o}function oG(e){return new Date(e)}function iG(e){return e instanceof Date?+e:+new Date(+e)}function bv(e,t,r,n,o,i,a,s,l,c){var u=iv(),d=u.invert,f=u.domain,h=c(".%L"),v=c(":%S"),m=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),x=c("%b %d"),w=c("%B"),S=c("%Y");function P(C){return(l(C)<C?h:s(C)<C?v:a(C)<C?m:i(C)<C?g:n(C)<C?o(C)<C?y:x:r(C)<C?w:S)(C)}return u.invert=function(C){return new Date(d(C))},u.domain=function(C){return arguments.length?f(Array.from(C,iG)):f().map(oG)},u.ticks=function(C){var E=f();return e(E[0],E[E.length-1],C??10)},u.tickFormat=function(C,E){return E==null?P:c(E)},u.nice=function(C){var E=f();return(!C||typeof C.range!="function")&&(C=t(E[0],E[E.length-1],C??10)),C?f(fT(E,C)):u},u.copy=function(){return $a(u,bv(e,t,r,n,o,i,a,s,l,c))},u}function aG(){return Xt.apply(bv(tH,rH,$r,gv,uu,Va,mv,pv,Kn,ET).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function sG(){return Xt.apply(bv(Q6,eH,Vr,yv,du,cu,vv,hv,Kn,OT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function fu(){var e=0,t=1,r,n,o,i,a=wt,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(f){var h,v;return arguments.length?([h,v]=f,a=d(h,v),c):[a(0),a(1)]}}return c.range=u(ui),c.rangeRound=u(ov),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 AT(){var e=Cn(fu()(wt));return e.copy=function(){return En(e,AT())},Zr.apply(e,arguments)}function TT(){var e=lv(fu()).domain([1,10]);return e.copy=function(){return En(e,TT()).base(e.base())},Zr.apply(e,arguments)}function _T(){var e=cv(fu());return e.copy=function(){return En(e,_T()).constant(e.constant())},Zr.apply(e,arguments)}function xv(){var e=uv(fu());return e.copy=function(){return En(e,xv()).exponent(e.exponent())},Zr.apply(e,arguments)}function lG(){return xv.apply(null,arguments).exponent(.5)}function MT(){var e=[],t=wt;function r(n){if(n!=null&&!isNaN(n=+n))return t((Na(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(fn),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)=>GU(e,i/n))},r.copy=function(){return MT(t).domain(e)},Zr.apply(r,arguments)}function pu(){var e=0,t=.5,r=1,n=1,o,i,a,s,l,c=wt,u,d=!1,f;function h(m){return isNaN(m=+m)?f:(m=.5+((m=+u(m))-i)*(n*m<n*i?s:l),c(d?Math.max(0,Math.min(1,m)):m))}h.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,h):[e,t,r]},h.clamp=function(m){return arguments.length?(d=!!m,h):d},h.interpolator=function(m){return arguments.length?(c=m,h):c};function v(m){return function(g){var y,x,w;return arguments.length?([y,x,w]=g,c=x6(m,[y,x,w]),h):[c(0),c(.5),c(1)]}}return h.range=v(ui),h.rangeRound=v(ov),h.unknown=function(m){return arguments.length?(f=m,h):f},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,h}}function jT(){var e=Cn(pu()(wt));return e.copy=function(){return En(e,jT())},Zr.apply(e,arguments)}function DT(){var e=lv(pu()).domain([.1,1,10]);return e.copy=function(){return En(e,DT()).base(e.base())},Zr.apply(e,arguments)}function RT(){var e=cv(pu());return e.copy=function(){return En(e,RT()).constant(e.constant())},Zr.apply(e,arguments)}function wv(){var e=uv(pu());return e.copy=function(){return En(e,wv()).exponent(e.exponent())},Zr.apply(e,arguments)}function cG(){return wv.apply(null,arguments).exponent(.5)}const Bi=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:tv,scaleDiverging:jT,scaleDivergingLog:DT,scaleDivergingPow:wv,scaleDivergingSqrt:cG,scaleDivergingSymlog:RT,scaleIdentity:dT,scaleImplicit:th,scaleLinear:uT,scaleLog:pT,scaleOrdinal:ev,scalePoint:XU,scalePow:dv,scaleQuantile:vT,scaleQuantize:gT,scaleRadial:mT,scaleSequential:AT,scaleSequentialLog:TT,scaleSequentialPow:xv,scaleSequentialQuantile:MT,scaleSequentialSqrt:lG,scaleSequentialSymlog:_T,scaleSqrt:W6,scaleSymlog:hT,scaleThreshold:yT,scaleTime:aG,scaleUtc:sG,tickFormat:cT},Symbol.toStringTag,{value:"Module"}));var Jr=e=>e.chartData,hu=k([Jr],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?hu(e):Jr(e),uG=(e,t,r)=>r?hu(e):Jr(e);function Fr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ue(t)&&ue(r))return!0}return!1}function R0(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function kT(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,o,i;if(ue(r))o=r;else if(typeof r=="function")return;if(ue(n))i=n;else if(typeof n=="function")return;var a=[o,i];if(Fr(a))return a}}function dG(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Fr(n))return R0(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"&&Wx.test(o)){var l=Wx.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"&&Kx.test(i)){var u=Kx.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 f=[a,s];if(Fr(f))return t==null?f:R0(f,t,r)}}}var di=1e9,fG={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Cv,Me=!0,Yt="[DecimalError] ",Jn=Yt+"Invalid argument: ",Pv=Yt+"Exponent out of range: ",fi=Math.floor,Vn=Math.pow,pG=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,kt,Qe=1e7,Ee=7,IT=9007199254740991,Zl=fi(IT/Ee),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)*Ee;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 kr(this,new this.constructor(e))};Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,r=t.constructor;return we(kr(t,new r(e),0,1),r.precision)};Y.equals=Y.eq=function(e){return!this.cmp(e)};Y.exponent=function(){return ze(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(kt))throw Error(Yt+"NaN");if(r.s<1)throw Error(Yt+(r.s?"NaN":"-Infinity"));return r.eq(kt)?new n(0):(Me=!1,t=kr(la(r,i),la(e,i),i),Me=!0,we(t,o))};Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$T(t,e):NT(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(Yt+"NaN");return r.s?(Me=!1,t=kr(r,e,0,1).times(e),Me=!0,r.minus(t)):we(new n(r),o)};Y.naturalExponential=Y.exp=function(){return LT(this)};Y.naturalLogarithm=Y.ln=function(){return la(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?NT(t,e):$T(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(Jn+e);if(t=ze(o)+1,n=o.d.length-1,r=n*Ee+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(Yt+"NaN")}for(e=ze(s),Me=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=vr(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=fi((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(kr(s,i,a+2)).times(.5),vr(i.d).slice(0,a)===(t=vr(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(we(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;a+=4}return Me=!0,we(n,r)};Y.times=Y.mul=function(e){var t,r,n,o,i,a,s,l,c,u=this,d=u.constructor,f=u.d,h=(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=f.length,c=h.length,l<c&&(i=f,f=h,h=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]+h[n]*f[o-n-1]+t,i[o--]=s%Qe|0,t=s/Qe|0;i[o]=(i[o]+t)%Qe|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,Me?we(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:(Cr(e,0,di),t===void 0?t=n.rounding:Cr(t,0,8),we(r,e+ze(r)+1,t))};Y.toExponential=function(e,t){var r,n=this,o=n.constructor;return e===void 0?r=lo(n,!0):(Cr(e,0,di),t===void 0?t=o.rounding:Cr(t,0,8),n=we(new o(n),e+1,t),r=lo(n,!0,e+1)),r};Y.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?lo(o):(Cr(e,0,di),t===void 0?t=i.rounding:Cr(t,0,8),n=we(new i(o),e+ze(o)+1,t),r=lo(n.abs(),!1,e+ze(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)};Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return we(new t(e),ze(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(kt);if(s=new l(s),!s.s){if(e.s<1)throw Error(Yt+"Infinity");return s}if(s.eq(kt))return s;if(n=l.precision,e.eq(kt))return we(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,i=s.s,a){if((r=u<0?-u:u)<=IT){for(o=new l(kt),t=Math.ceil(n/Ee+4),Me=!1;r%2&&(o=o.times(s),I0(o.d,t)),r=fi(r/2),r!==0;)s=s.times(s),I0(s.d,t);return Me=!0,e.s<0?new l(kt).div(o):we(o,n)}}else if(i<0)throw Error(Yt+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Me=!1,o=e.times(la(s,n+c)),Me=!0,o=LT(o),o.s=i,o};Y.toPrecision=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?(r=ze(o),n=lo(o,r<=i.toExpNeg||r>=i.toExpPos)):(Cr(e,1,di),t===void 0?t=i.rounding:Cr(t,0,8),o=we(new i(o),e,t),r=ze(o),n=lo(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):(Cr(e,1,di),t===void 0?t=n.rounding:Cr(t,0,8)),we(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=ze(e),r=e.constructor;return lo(e,t<=r.toExpNeg||t>=r.toExpPos)};function NT(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)),Me?we(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/Ee),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)/Qe|0,l[i]%=Qe;for(r&&(l.unshift(r),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,Me?we(t,d):t}function Cr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Jn+e)}function vr(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=Ee-n.length,r&&(i+=sn(r)),i+=n;a=e[t],n=a+"",r=Ee-n.length,r&&(i+=sn(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var kr=(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%Qe|0,a=i/Qe|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*Qe+n[i]-o[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,o,i,a){var s,l,c,u,d,f,h,v,m,g,y,x,w,S,P,C,E,A,_=n.constructor,D=n.s==o.s?1:-1,R=n.d,T=o.d;if(!n.s)return new _(n);if(!o.s)throw Error(Yt+"Division by zero");for(l=n.e-o.e,E=T.length,P=R.length,h=new _(D),v=h.d=[],c=0;T[c]==(R[c]||0);)++c;if(T[c]>(R[c]||0)&&--l,i==null?x=i=_.precision:a?x=i+(ze(n)-ze(o))+1:x=i,x<0)return new _(0);if(x=x/Ee+2|0,c=0,E==1)for(u=0,T=T[0],x++;(c<P||u)&&x--;c++)w=u*Qe+(R[c]||0),v[c]=w/T|0,u=w%T|0;else{for(u=Qe/(T[0]+1)|0,u>1&&(T=e(T,u),R=e(R,u),E=T.length,P=R.length),S=E,m=R.slice(0,E),g=m.length;g<E;)m[g++]=0;A=T.slice(),A.unshift(0),C=T[0],T[1]>=Qe/2&&++C;do u=0,s=t(T,m,E,g),s<0?(y=m[0],E!=g&&(y=y*Qe+(m[1]||0)),u=y/C|0,u>1?(u>=Qe&&(u=Qe-1),d=e(T,u),f=d.length,g=m.length,s=t(d,m,f,g),s==1&&(u--,r(d,E<f?A:T,f))):(u==0&&(s=u=1),d=T.slice()),f=d.length,f<g&&d.unshift(0),r(m,d,g),s==-1&&(g=m.length,s=t(T,m,E,g),s<1&&(u++,r(m,E<g?A:T,g))),g=m.length):s===0&&(u++,m=[0]),v[c++]=u,s&&m[0]?m[g++]=R[S]||0:(m=[R[S]],g=1);while((S++<P||m[0]!==void 0)&&x--)}return v[0]||v.shift(),h.e=l,we(h,a?i+ze(h)+1:i)}})();function LT(e,t){var r,n,o,i,a,s,l=0,c=0,u=e.constructor,d=u.precision;if(ze(e)>16)throw Error(Pv+ze(e));if(!e.s)return new u(kt);for(Me=!1,s=d,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(n=Math.log(Vn(2,c))/Math.LN10*2+5|0,s+=n,r=o=i=new u(kt),u.precision=s;;){if(o=we(o.times(e),s),r=r.times(++l),a=i.plus(kr(o,r,s)),vr(a.d).slice(0,s)===vr(i.d).slice(0,s)){for(;c--;)i=we(i.times(i),s);return u.precision=d,t==null?(Me=!0,we(i,d)):i}i=a}}function ze(e){for(var t=e.e*Ee,r=e.d[0];r>=10;r/=10)t++;return t}function Df(e,t,r){if(t>e.LN10.sd())throw Me=!0,r&&(e.precision=r),Error(Yt+"LN10 precision limit exceeded");return we(new e(e.LN10),t)}function sn(e){for(var t="";e--;)t+="0";return t}function la(e,t){var r,n,o,i,a,s,l,c,u,d=1,f=10,h=e,v=h.d,m=h.constructor,g=m.precision;if(h.s<1)throw Error(Yt+(h.s?"NaN":"-Infinity"));if(h.eq(kt))return new m(0);if(t==null?(Me=!1,c=g):c=t,h.eq(10))return t==null&&(Me=!0),Df(m,c);if(c+=f,m.precision=c,r=vr(v),n=r.charAt(0),i=ze(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=vr(h.d),n=r.charAt(0),d++;i=ze(h),n>1?(h=new m("0."+r),i++):h=new m(n+"."+r.slice(1))}else return l=Df(m,c+2,g).times(i+""),h=la(new m(n+"."+r.slice(1)),c-f).plus(l),m.precision=g,t==null?(Me=!0,we(h,g)):h;for(s=a=h=kr(h.minus(kt),h.plus(kt),c),u=we(h.times(h),c),o=3;;){if(a=we(a.times(u),c),l=s.plus(kr(a,new m(o),c)),vr(l.d).slice(0,c)===vr(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(Df(m,c+2,g).times(i+""))),s=kr(s,new m(d),c),m.precision=g,t==null?(Me=!0,we(s,g)):s;s=l,o+=2}}function k0(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=fi(r/Ee),e.d=[],n=(r+1)%Ee,r<0&&(n+=Ee),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=Ee;n<o;)e.d.push(+t.slice(n,n+=Ee));t=t.slice(n),n=Ee-t.length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),Me&&(e.e>Zl||e.e<-Zl))throw Error(Pv+r)}else e.s=0,e.e=0,e.d=[0];return e}function we(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+=Ee,o=t,c=d[u=0];else{if(u=Math.ceil((n+1)/Ee),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;n%=Ee,o=n-Ee+a}if(r!==void 0&&(i=Vn(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/Vn(10,a-o):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return l?(i=ze(e),d.length=1,t=t-i-1,d[0]=Vn(10,(Ee-t%Ee)%Ee),e.e=fi(-t/Ee)||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=Vn(10,Ee-n),d[u]=o>0?(c/Vn(10,a-o)%Vn(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==Qe&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=Qe)break;d[u--]=0,i=1}for(n=d.length;d[--n]===0;)d.pop();if(Me&&(e.e>Zl||e.e<-Zl))throw Error(Pv+ze(e));return e}function $T(e,t){var r,n,o,i,a,s,l,c,u,d,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),Me?we(t,h):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(h/Ee),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]=Qe-1;--l[i],l[o]+=Qe}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,Me?we(t,h):t):new f(0)}function lo(e,t,r){var n,o=ze(e),i=vr(e.d),a=i.length;return t?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+sn(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+sn(-o-1)+i,r&&(n=r-a)>0&&(i+=sn(n))):o>=a?(i+=sn(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+sn(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=sn(n))),e.s<0?"-"+i:i}function I0(e,t){if(e.length>t)return e.length=t,!0}function VT(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(Jn+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 k0(a,i.toString())}else if(typeof i!="string")throw Error(Jn+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,pG.test(i))k0(a,i);else throw Error(Jn+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=VT,o.config=o.set=hG,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 hG(e){if(!e||typeof e!="object")throw Error(Yt+"Object expected");var t,r,n,o=["precision",1,di,"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(fi(n)===n&&n>=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Jn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Jn+r+": "+n);return this}var Cv=VT(fG);kt=new Cv(1);const ge=Cv;function FT(e){var t;return e===0?t=1:t=Math.floor(new ge(e).abs().log(10).toNumber())+1,t}function BT(e,t,r){for(var n=new ge(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}var zT=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},WT=(e,t,r)=>{if(e.lte(0))return new ge(0);var n=FT(e.toNumber()),o=new ge(10).pow(n),i=e.div(o),a=n!==1?.05:.1,s=new ge(Math.ceil(i.div(a).toNumber())).add(r).mul(a),l=s.mul(o);return t?new ge(l.toNumber()):new ge(Math.ceil(l.toNumber()))},mG=(e,t,r)=>{var n=new ge(1),o=new ge(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new ge(10).pow(FT(e)-1),o=new ge(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new ge(Math.floor(e)))}else e===0?o=new ge(Math.floor((t-1)/2)):r||(o=new ge(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l<t;l++)s.push(o.add(new ge(l-a).mul(n)).toNumber());return s},KT=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 ge(0),tickMin:new ge(0),tickMax:new ge(0)};var a=WT(new ge(r).sub(t).div(n-1),o,i),s;t<=0&&r>=0?s=new ge(0):(s=new ge(t).add(r).div(2),s=s.sub(new ge(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),c=Math.ceil(new ge(r).sub(s).div(a).toNumber()),u=l+c+1;return u>n?KT(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 ge(l).mul(a)),tickMax:s.add(new ge(c).mul(a))})},vG=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]=zT([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 mG(s,o,i);var{step:u,tickMin:d,tickMax:f}=KT(s,l,a,i,0),h=BT(d,f.add(new ge(.1).mul(u)),u);return r>n?h.reverse():h},gG=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=zT([n,o]);if(a===-1/0||s===1/0)return[n,o];if(a===s)return[a];var l=Math.max(r,2),c=WT(new ge(s).sub(a).div(l-1),i,0),u=[...BT(new ge(a),new ge(s),c),s];return i===!1&&(u=u.map(d=>Math.round(d))),n>o?u.reverse():u},UT=e=>e.rootProps.maxBarSize,yG=e=>e.rootProps.barGap,HT=e=>e.rootProps.barCategoryGap,bG=e=>e.rootProps.barSize,Fa=e=>e.rootProps.stackOffset,GT=e=>e.rootProps.reverseStackOrder,Ev=e=>e.options.chartName,Ov=e=>e.rootProps.syncId,qT=e=>e.rootProps.syncMethod,Av=e=>e.options.eventEmitter,Be={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},kn={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},ur={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},mu=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function vu(e,t,r){if(r!=="auto")return r;if(e!=null)return qr(e,t)?"category":"number"}function N0(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 Jl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N0(Object(r),!0).forEach(function(n){xG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xG(e,t,r){return(t=wG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wG(e){var t=SG(e,"string");return typeof t=="symbol"?t:t+""}function SG(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 L0={allowDataOverflow:kn.allowDataOverflow,allowDecimals:kn.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:kn.angleAxisId,includeHidden:!1,name:void 0,reversed:kn.reversed,scale:kn.scale,tick:kn.tick,tickCount:void 0,ticks:void 0,type:kn.type,unit:void 0},$0={allowDataOverflow:ur.allowDataOverflow,allowDecimals:ur.allowDecimals,allowDuplicatedCategory:ur.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ur.radiusAxisId,includeHidden:ur.includeHidden,name:void 0,reversed:ur.reversed,scale:ur.scale,tick:ur.tick,tickCount:ur.tickCount,ticks:void 0,type:ur.type,unit:void 0},PG=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},Tv=k([PG,RA],(e,t)=>{var r;if(e!=null)return e;var n=(r=vu(t,"angleAxis",L0.type))!==null&&r!==void 0?r:"category";return Jl(Jl({},L0),{},{type:n})}),CG=(e,t)=>e.polarAxis.radiusAxis[t],_v=k([CG,RA],(e,t)=>{var r;if(e!=null)return e;var n=(r=vu(t,"radiusAxis",$0.type))!==null&&r!==void 0?r:"category";return Jl(Jl({},$0),{},{type:n})}),gu=e=>e.polarOptions,Mv=k([Yr,Xr,qe],XA),YT=k([gu,Mv],(e,t)=>{if(e!=null)return ht(e.innerRadius,t,0)}),XT=k([gu,Mv],(e,t)=>{if(e!=null)return ht(e.outerRadius,t,t*.8)}),EG=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},ZT=k([gu],EG);k([Tv,ZT],mu);var JT=k([Mv,YT,XT],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});k([_v,JT],mu);var QT=k([me,gu,YT,XT,Yr,Xr],(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:ht(a,o,o/2),cy:ht(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),ke=(e,t)=>t,Ba=(e,t,r)=>r;function jv(e){return e?.id}function e_(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=jv(s);c.forEach((d,f)=>{var h=i==null||o?f:String(xe(d,i,null)),v=xe(d,s.dataKey,0),m;a.has(h)?m=a.get(h):m={},Object.assign(m,{[u]:v}),a.set(h,m)})}}),Array.from(a.values())}function yu(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var bu=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function xu(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function OG(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 ot=e=>{var t=me(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},pi=e=>e.tooltip.settings.axisId;function AG(e){if(e in Bi)return Bi[e]();var t="scale".concat(Ea(e));if(t in Bi)return Bi[t]()}function V0(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 F0(e,t,r){if(typeof e=="function")return V0(e.copy().domain(t).range(r));if(e!=null){var n=AG(e);if(n!=null)return n.domain(t).range(r),V0(n)}}var t_=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Fr(t)){for(var r,n,o=0;o<t.length;o++){var i=t[o];ue(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 B0(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 Ql(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B0(Object(r),!0).forEach(function(n){TG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TG(e,t,r){return(t=_G(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _G(e){var t=MG(e,"string");return typeof t=="symbol"?t:t+""}function MG(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 ih=[0,"auto"],Ze={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},r_=(e,t)=>e.cartesianAxis.xAxis[t],Qr=(e,t)=>{var r=r_(e,t);return r??Ze},Je={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:ih,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:ja},n_=(e,t)=>e.cartesianAxis.yAxis[t],en=(e,t)=>{var r=n_(e,t);return r??Je},jG={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:""},Dv=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??jG},$e=(e,t,r)=>{switch(t){case"xAxis":return Qr(e,r);case"yAxis":return en(e,r);case"zAxis":return Dv(e,r);case"angleAxis":return Tv(e,r);case"radiusAxis":return _v(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},DG=(e,t,r)=>{switch(t){case"xAxis":return Qr(e,r);case"yAxis":return en(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},hi=(e,t,r)=>{switch(t){case"xAxis":return Qr(e,r);case"yAxis":return en(e,r);case"angleAxis":return Tv(e,r);case"radiusAxis":return _v(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},o_=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function Rv(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 wu=e=>e.graphicalItems.cartesianItems,RG=k([ke,Ba],Rv),kv=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),za=k([wu,$e,RG],kv,{memoizeOptions:{resultEqualityCheck:xu}}),i_=k([za],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(yu)),a_=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),kG=k([za],a_),Iv=e=>e.map(t=>t.data).filter(Boolean).flat(1),IG=k([za],Iv,{memoizeOptions:{resultEqualityCheck:xu}}),Nv=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},Lv=k([IG,Sv],Nv),$v=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:xe(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(o=>({value:xe(o,n)}))):e.map(n=>({value:n})),Su=k([Lv,$e,za],$v);function s_(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function rl(e){if(Sr(e)||e instanceof Date){var t=Number(e);if(ue(t))return t}}function z0(e){if(Array.isArray(e)){var t=[rl(e[0]),rl(e[1])];return Fr(t)?t:void 0}var r=rl(e);if(r!=null)return[r,r]}function Br(e){return e.map(rl).filter(Tt)}function NG(e,t,r){return!r||typeof t!="number"||wr(t)?[]:r.length?Br(r.flatMap(n=>{var o=xe(e,n.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!ue(i)||!ue(a)))return[t-i,t+a]})):[]}var Xe=e=>{var t=ot(e),r=pi(e);return hi(e,t,r)},Wa=k([Xe],e=>e?.dataKey),LG=k([i_,Sv,Xe],e_),l_=(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(jv);return[s,{stackedData:r4(e,u,r),graphicalItems:c}]}))},ah=k([LG,i_,Fa,GT],l_),c_=(e,t,r,n)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var a=s4(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},$G=k([$e],e=>e.allowDataOverflow),Vv=e=>{var t;if(e==null||!("domain"in e))return ih;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Br(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:ih},Fv=k([$e],Vv),Bv=k([Fv,$G],kT),VG=k([ah,Jr,ke,Bv],c_,{memoizeOptions:{resultEqualityCheck:bu}}),Pu=e=>e.errorBars,FG=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>s_(r,n)),ec=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]}},zv=(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(y=>s_(o,y)),f=xe(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),h=NG(s,f,d);if(h.length>=2){var v=Math.min(...h),m=Math.max(...h);(i==null||v<i)&&(i=v),(a==null||m>a)&&(a=m)}var g=z0(f);g!=null&&(i=i==null?g[0]:Math.min(i,g[0]),a=a==null?g[1]:Math.max(a,g[1]))})}),t?.dataKey!=null&&e.forEach(s=>{var l=z0(xe(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]))}),ue(i)&&ue(a))return[i,a]},BG=k([Lv,$e,kG,Pu,ke],zv,{memoizeOptions:{resultEqualityCheck:bu}});function zG(e){var{value:t}=e;if(Sr(t)||t instanceof Date)return t}var WG=(e,t,r)=>{var n=e.map(zG).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&CO(n))?eT(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},u_=e=>e.referenceElements.dots,mi=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),KG=k([u_,ke,Ba],mi),d_=e=>e.referenceElements.areas,UG=k([d_,ke,Ba],mi),f_=e=>e.referenceElements.lines,HG=k([f_,ke,Ba],mi),p_=(e,t)=>{if(e!=null){var r=Br(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},GG=k(KG,ke,p_),h_=(e,t)=>{if(e!=null){var r=Br(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)]}},qG=k([UG,ke],h_);function YG(e){var t;if(e.x!=null)return Br([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Br(r)}function XG(e){var t;if(e.y!=null)return Br([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Br(r)}var m_=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?YG(n):XG(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},ZG=k([HG,ke],m_),JG=k(GG,ZG,qG,(e,t,r)=>ec(e,r,t)),Wv=(e,t,r,n,o,i,a,s)=>{if(r!=null)return r;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",c=l?ec(n,i,o):ec(i,o);return dG(t,c,e.allowDataOverflow)},QG=k([$e,Fv,Bv,VG,BG,JG,me,ke],Wv,{memoizeOptions:{resultEqualityCheck:bu}}),e8=[0,1],Kv=(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=qr(t,i);if(c&&s==null){var u;return eT(0,(u=r?.length)!==null&&u!==void 0?u:0)}return l==="category"?WG(n,e,c):o==="expand"?e8:a}},Uv=k([$e,me,Lv,Su,Fa,ke,QG],Kv);function t8(e){return e in Bi}var v_=(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(Ea(n));return t8(i)?i:"point"}}},On=k([$e,o_,Ev],v_);function Hv(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?F0(e.scale,r,n):F0(t,r,n)}var Gv=(e,t,r)=>{var n=Vv(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Fr(e))return vG(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Fr(e))return gG(e,t.tickCount,t.allowDecimals)}},qv=k([Uv,hi,On],Gv),Yv=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Fr(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},r8=k([$e,Uv,qv,ke],Yv),n8=k(Su,$e,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Br(e.map(d=>d.value))).sort((d,f)=>d-f),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}}),g_=k(n8,me,HT,qe,(e,t,r,n,o)=>o,(e,t,r,n,o)=>{if(!ue(e))return 0;var i=t==="vertical"?n.height:n.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=ht(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),o8=(e,t,r)=>{var n=Qr(e,t);return n==null||typeof n.padding!="string"?0:g_(e,"xAxis",t,r,n.padding)},i8=(e,t,r)=>{var n=en(e,t);return n==null||typeof n.padding!="string"?0:g_(e,"yAxis",t,r,n.padding)},a8=k(Qr,o8,(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}}),s8=k(en,i8,(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}}),l8=k([qe,a8,tu,eu,(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]}),c8=k([qe,me,s8,tu,eu,(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]}),Ka=(e,t,r,n)=>{var o;switch(t){case"xAxis":return l8(e,r,n);case"yAxis":return c8(e,r,n);case"zAxis":return(o=Dv(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return ZT(e);case"radiusAxis":return JT(e,r);default:return}},y_=k([$e,Ka],mu),u8=k([On,r8],t_),Cu=k([$e,On,u8,y_],Hv);k([za,Pu,ke],FG);function b_(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Eu=(e,t)=>t,Ou=(e,t,r)=>r,d8=k(Jc,Eu,Ou,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(b_)),f8=k(Qc,Eu,Ou,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(b_)),x_=(e,t)=>({width:e.width,height:t.height}),p8=(e,t)=>{var r=typeof t.width=="number"?t.width:ja;return{width:r,height:e.height}},w_=k(qe,Qr,x_),h8=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},m8=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},v8=k(Xr,qe,d8,Eu,Ou,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=x_(t,s);a==null&&(a=h8(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}),g8=k(Yr,qe,f8,Eu,Ou,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=p8(t,s);a==null&&(a=m8(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}),y8=(e,t)=>{var r=Qr(e,t);if(r!=null)return v8(e,r.orientation,r.mirror)},b8=k([qe,Qr,y8,(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}}}),x8=(e,t)=>{var r=en(e,t);if(r!=null)return g8(e,r.orientation,r.mirror)},w8=k([qe,en,x8,(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}}}),S_=k(qe,en,(e,t)=>{var r=typeof t.width=="number"?t.width:ja;return{width:r,height:e.height}}),W0=(e,t,r)=>{switch(t){case"xAxis":return w_(e,r).width;case"yAxis":return S_(e,r).height;default:return}},P_=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=r,s=qr(e,n),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&CO(l))return l}},Xv=k([me,Su,$e,ke],P_),C_=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:i}=r,a=qr(e,n);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},Zv=k([me,Su,hi,ke],C_),K0=k([me,DG,On,Cu,Xv,Zv,Ka,qv,ke],(e,t,r,n,o,i,a,s,l)=>{if(t!=null){var c=qr(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}}}),S8=(e,t,r,n,o,i,a,s,l)=>{if(!(t==null||n==null)){var c=qr(e,l),{type:u,ticks:d,tickCount:f}=t,h=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,v=u==="category"&&n.bandwidth?n.bandwidth()/h:0;v=l==="angleAxis"&&i!=null&&i.length>=2?et(i[0]-i[1])*2*v:v;var m=d||o;return m?m.map((g,y)=>{var x=a?a.indexOf(g):g,w=n.map(x);return ue(w)?{index:y,coordinate:w+v,value:g,offset:v}:null}).filter(Tt):c&&s?s.map((g,y)=>{var x=n.map(g);return ue(x)?{coordinate:x+v,value:g,index:y,offset:v}:null}).filter(Tt):n.ticks?n.ticks(f).map((g,y)=>{var x=n.map(g);return ue(x)?{coordinate:x+v,value:g,index:y,offset:v}:null}).filter(Tt):n.domain().map((g,y)=>{var x=n.map(g);return ue(x)?{coordinate:x+v,value:a?a[g]:g,index:y,offset:v}:null}).filter(Tt)}},E_=k([me,hi,On,Cu,qv,Ka,Xv,Zv,ke],S8),P8=(e,t,r,n,o,i,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=qr(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&n?.length>=2?et(n[0]-n[1])*2*c:c,s&&i?i.map((u,d)=>{var f=r.map(u);return ue(f)?{coordinate:f+c,value:u,index:d,offset:c}:null}).filter(Tt):r.ticks?r.ticks(l).map((u,d)=>{var f=r.map(u);return ue(f)?{coordinate:f+c,value:u,index:d,offset:c}:null}).filter(Tt):r.domain().map((u,d)=>{var f=r.map(u);return ue(f)?{coordinate:f+c,value:o?o[u]:u,index:d,offset:c}:null}).filter(Tt)}},mn=k([me,hi,Cu,Ka,Xv,Zv,ke],P8),vn=k($e,Cu,(e,t)=>{if(!(e==null||t==null))return Ql(Ql({},e),{},{scale:t})}),C8=k([$e,On,Uv,y_],Hv);k((e,t,r)=>Dv(e,r),C8,(e,t)=>{if(!(e==null||t==null))return Ql(Ql({},e),{},{scale:t})});var E8=k([me,Jc,Qc],(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}}),O_=e=>e.options.defaultTooltipEventType,A_=e=>e.options.validateTooltipEventTypes;function T_(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Jv(e,t){var r=O_(e),n=A_(e);return T_(t,r,n)}function O8(e){return Q(t=>Jv(t,e))}var __=(e,t)=>{var r,n=Number(t);if(!(wr(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},A8=e=>e.tooltip.settings,cn={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},T8={itemInteraction:{click:cn,hover:cn},axisInteraction:{click:cn,hover:cn},keyboardInteraction:cn,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}},M_=Mt({name:"tooltip",initialState:T8,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Te()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,o=rr(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=n)},prepare:Te()},removeTooltipEntrySettings:{reducer(e,t){var r=rr(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Te()},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:_8,replaceTooltipEntrySettings:M8,removeTooltipEntrySettings:j8,setTooltipSettingsState:D8,setActiveMouseOverItemIndex:j_,mouseLeaveItem:R8,mouseLeaveChart:D_,setActiveClickItemIndex:k8,setMouseOverAxisIndex:R_,setMouseClickAxisIndex:I8,setSyncInteraction:sh,setKeyboardInteraction:lh}=M_.actions,N8=M_.reducer;function U0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ns(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U0(Object(r),!0).forEach(function(n){L8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L8(e,t,r){return(t=$8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $8(e){var t=V8(e,"string");return typeof t=="symbol"?t:t+""}function V8(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 F8(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function B8(e){return e.index!=null}var k_=(e,t,r,n)=>{if(t==null)return cn;var o=F8(e,t,r);if(o==null)return cn;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(B8(o)){if(i)return Ns(Ns({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Ns(Ns({},cn),{},{coordinate:o.coordinate})};function z8(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 W8(e,t){var r=z8(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 K8(e,t,r){if(r==null||t==null)return!0;var n=xe(e,t);return n==null||!Fr(r)?!0:W8(n,r)}var Qv=(e,t,r,n)=>{var o=e?.index;if(o==null)return null;var i=Number(o);if(!ue(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||K8(c,r,n)?String(l):null},I_=(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}}},N_=(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})},L_=e=>e.options.tooltipPayloadSearcher,vi=e=>e.tooltip;function H0(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 G0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H0(Object(r),!0).forEach(function(n){U8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function 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)}function q8(e,t){return e??t}var $_=(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((f,h)=>{var v,{dataDefinedOnItem:m,settings:g}=h,y=q8(m,s),x=Array.isArray(y)?SA(y,c,u):y,w=(v=g?.dataKey)!==null&&v!==void 0?v:n,S=g?.nameKey,P;if(n&&Array.isArray(x)&&!Array.isArray(x[0])&&a==="axis"?P=EO(x,n,o):P=i(x,t,l,S),Array.isArray(P))P.forEach(E=>{var A=G0(G0({},g),{},{name:E.name,unit:E.unit,color:void 0,fill:void 0});f.push(Ux({tooltipEntrySettings:A,dataKey:E.dataKey,payload:E.payload,value:xe(E.payload,E.dataKey),name:E.name}))});else{var C;f.push(Ux({tooltipEntrySettings:g,dataKey:w,payload:P,value:xe(P,w),name:(C=xe(P,S))!==null&&C!==void 0?C:g?.name}))}return f},d)}},eg=k([Xe,o_,Ev],v_),Y8=k([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),X8=k([ot,pi],Rv),gi=k([Y8,Xe,X8],kv,{memoizeOptions:{resultEqualityCheck:xu}}),Z8=k([gi],e=>e.filter(yu)),J8=k([gi],Iv,{memoizeOptions:{resultEqualityCheck:xu}}),yi=k([J8,Jr],Nv),Q8=k([Z8,Jr,Xe],e_),tg=k([yi,Xe,gi],$v),V_=k([Xe],Vv),eq=k([Xe],e=>e.allowDataOverflow),F_=k([V_,eq],kT),tq=k([gi],e=>e.filter(yu)),rq=k([Q8,tq,Fa,GT],l_),nq=k([rq,Jr,ot,F_],c_),oq=k([gi],a_),iq=k([yi,Xe,oq,Pu,ot],zv,{memoizeOptions:{resultEqualityCheck:bu}}),aq=k([u_,ot,pi],mi),sq=k([aq,ot],p_),lq=k([d_,ot,pi],mi),cq=k([lq,ot],h_),uq=k([f_,ot,pi],mi),dq=k([uq,ot],m_),fq=k([sq,dq,cq],ec),pq=k([Xe,V_,F_,nq,iq,fq,me,ot],Wv),Ua=k([Xe,me,yi,tg,Fa,ot,pq],Kv),hq=k([Ua,Xe,eg],Gv),mq=k([Xe,Ua,hq,ot],Yv),B_=e=>{var t=ot(e),r=pi(e),n=!1;return Ka(e,t,r,n)},z_=k([Xe,B_],mu),W_=k([Xe,eg,mq,z_],Hv),vq=k([me,tg,Xe,ot],P_),gq=k([me,tg,Xe,ot],C_),yq=(e,t,r,n,o,i,a,s)=>{if(t){var{type:l}=t,c=qr(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?et(o[0]-o[1])*2*d:d,c&&a?a.map((f,h)=>{var v=n.map(f);return ue(v)?{coordinate:v+d,value:f,index:h,offset:d}:null}).filter(Tt):n.domain().map((f,h)=>{var v=n.map(f);return ue(v)?{coordinate:v+d,value:i?i[f]:f,index:h,offset:d}:null}).filter(Tt)}}},tn=k([me,Xe,eg,W_,B_,vq,gq,ot],yq),rg=k([O_,A_,A8],(e,t,r)=>T_(r.shared,e,t)),K_=e=>e.tooltip.settings.trigger,ng=e=>e.tooltip.settings.defaultIndex,Ha=k([vi,rg,K_,ng],k_),gn=k([Ha,yi,Wa,Ua],Qv),U_=k([tn,gn],__),og=k([Ha],e=>{if(e)return e.dataKey}),bq=k([Ha],e=>{if(e)return e.graphicalItemId}),H_=k([vi,rg,K_,ng],N_),xq=k([Yr,Xr,me,qe,tn,ng,H_],I_),wq=k([Ha,xq],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Sq=k([Ha],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),Pq=k([H_,gn,Jr,Wa,U_,L_,rg],$_),Cq=k([Pq],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function q0(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 Y0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q0(Object(r),!0).forEach(function(n){Eq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Eq(e,t,r){return(t=Oq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oq(e){var t=Aq(e,"string");return typeof t=="symbol"?t:t+""}function Aq(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 Tq=()=>Q(Xe),_q=()=>{var e=Tq(),t=Q(tn),r=Q(W_);return Yo(!e||!r?void 0:Y0(Y0({},e),{},{scale:r}),t)};function X0(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 Mo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X0(Object(r),!0).forEach(function(n){Mq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mq(e,t,r){return(t=jq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jq(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)}var Rq=(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}},kq=(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 Mo(Mo(Mo({},n),Fe(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=n;return Mo(Mo(Mo({},n),Fe(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 Iq(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 G_=(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,f,h=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,v=(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:(f=r[s+1])===null||f===void 0?void 0:f.coordinate,g=void 0;if(!(h==null||v==null||m==null))if(et(v-h)!==et(m-v)){var y=[];if(et(m-v)===et(o[1]-o[0])){g=m;var x=v+o[1]-o[0];y[0]=Math.min(x,(x+h)/2),y[1]=Math.max(x,(x+h)/2)}else{g=h;var w=m+o[1]-o[0];y[0]=Math.min(v,(w+v)/2),y[1]=Math.max(v,(w+v)/2)}var S=[Math.min(v,(g+v)/2),Math.max(v,(g+v)/2)];if(e>S[0]&&e<=S[1]||e>=y[0]&&e<=y[1]){var P;return(P=r[s])===null||P===void 0?void 0:P.index}}else{var C=Math.min(h,m),E=Math.max(h,m);if(e>(C+v)/2&&e<=(E+v)/2){var A;return(A=r[s])===null||A===void 0?void 0:A.index}}}else if(t)for(var _=0;_<a;_++){var D=t[_];if(D!=null){var R=t[_+1],T=t[_-1];if(_===0&&R!=null&&e<=(D.coordinate+R.coordinate)/2||_===a-1&&T!=null&&e>(D.coordinate+T.coordinate)/2||_>0&&_<a-1&&T!=null&&R!=null&&e>(D.coordinate+T.coordinate)/2&&e<=(D.coordinate+R.coordinate)/2)return D.index}}return-1},Nq=()=>Q(Ev),ig=(e,t)=>t,q_=(e,t,r)=>r,ag=(e,t,r,n)=>n,Lq=k(tn,e=>Wc(e,t=>t.coordinate)),sg=k([vi,ig,q_,ag],k_),lg=k([sg,yi,Wa,Ua],Qv),$q=(e,t,r)=>{if(t!=null){var n=vi(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},Y_=k([vi,ig,q_,ag],N_),tc=k([Yr,Xr,me,qe,tn,ag,Y_],I_),Vq=k([sg,tc],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),X_=k([tn,lg],__),Fq=k([Y_,lg,Jr,Wa,X_,L_,ig],$_),Bq=k([sg,lg],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),zq=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&Iq(e,a)){var s=l4(e,t),l=G_(s,i,o,r,n),c=Rq(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},Wq=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=OU(e,r);if(s){var l=c4(s,t),c=G_(l,a,i,n,o),u=kq(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},Kq=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?zq(e,t,n,o,i,a,s):Wq(e,t,r,n,o,i,a)},Uq=k(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}}),Hq=k(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(Be)),r=Array.from(new Set(t));return r.sort((n,o)=>n-o)},{memoizeOptions:{resultEqualityCheck:OG}});function Z0(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 J0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z0(Object(r),!0).forEach(function(n){Gq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gq(e,t,r){return(t=qq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qq(e){var t=Yq(e,"string");return typeof t=="symbol"?t:t+""}function Yq(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 Xq={},Zq={zIndexMap:Object.values(Be).reduce((e,t)=>J0(J0({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Xq)},Jq=new Set(Object.values(Be));function Qq(e){return Jq.has(e)}var Z_=Mt({name:"zIndex",initialState:Zq,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:Te()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!Qq(r)&&delete e.zIndexMap[r])},prepare:Te()},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:Te()},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:Te()}}}),{registerZIndexPortal:e9,unregisterZIndexPortal:t9,registerZIndexPortalElement:r9,unregisterZIndexPortalElement:n9}=Z_.actions,o9=Z_.reducer;function jt(e){var{zIndex:t,children:r}=e,n=F4(),o=n&&t!==void 0&&t!==0,i=gt(),a=Ce();O.useLayoutEffect(()=>o?(a(e9({zIndex:t})),()=>{a(t9({zIndex:t}))}):go,[a,t,o]);var s=Q(l=>Uq(l,t,i));return o?s?wa.createPortal(r,s):null:r}function ch(){return ch=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},ch.apply(null,arguments)}function Q0(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?Q0(Object(r),!0).forEach(function(n){i9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i9(e,t,r){return(t=a9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a9(e){var t=s9(e,"string");return typeof t=="symbol"?t:t+""}function s9(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 l9(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return O.isValidElement(t)?O.cloneElement(t,n):O.createElement(r,n)}function c9(e){var t,{coordinate:r,payload:n,index:o,offset:i,tooltipAxisBandSize:a,layout:s,cursor:l,tooltipEventType:c,chartName:u}=e,d=r,f=n,h=o;if(!l||!d||u!=="ScatterChart"&&c!=="axis")return null;var v,m,g;if(u==="ScatterChart")v=d,m=FK,g=Be.cursorLine;else if(u==="BarChart")v=BK(s,d,i,a),m=YA,g=Be.cursorRectangle;else if(s==="radial"&&AO(d)){var{cx:y,cy:x,radius:w,startAngle:S,endAngle:P}=ZA(d);v={cx:y,cy:x,startAngle:S,endAngle:P,innerRadius:w,outerRadius:w},m=QA,g=Be.cursorLine}else v={points:MU(s,d,i)},m=Jm,g=Be.cursorLine;var C=typeof l=="object"&&"className"in l?l.className:void 0,E=Ls(Ls(Ls(Ls({stroke:"#ccc",pointerEvents:"none"},i),v),to(l)),{},{payload:f,payloadIndex:h,className:fe("recharts-tooltip-cursor",C)});return p.createElement(jt,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:g},p.createElement(l9,{cursor:l,cursorComp:m,cursorProps:E}))}function u9(e){var t=_q(),r=jA(),n=yo(),o=Nq();return t==null||r==null||n==null||o==null?null:p.createElement(c9,ch({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:o}))}var J_=O.createContext(null),d9=()=>O.useContext(J_),Rf={exports:{}},eS;function f9(){return eS||(eS=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,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new o(u,d||l,f),v=r?r+c:c;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],h]:l._events[v].push(h):(l._events[v]=h,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 f=0,h=d.length,v=new Array(h);f<h;f++)v[f]=d[f].fn;return v},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,f,h,v){var m=r?r+c:c;if(!this._events[m])return!1;var g=this._events[m],y=arguments.length,x,w;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,d),!0;case 4:return g.fn.call(g.context,u,d,f),!0;case 5:return g.fn.call(g.context,u,d,f,h),!0;case 6:return g.fn.call(g.context,u,d,f,h,v),!0}for(w=1,x=new Array(y-1);w<y;w++)x[w-1]=arguments[w];g.fn.apply(g.context,x)}else{var S=g.length,P;for(w=0;w<S;w++)switch(g[w].once&&this.removeListener(c,g[w].fn,void 0,!0),y){case 1:g[w].fn.call(g[w].context);break;case 2:g[w].fn.call(g[w].context,u);break;case 3:g[w].fn.call(g[w].context,u,d);break;case 4:g[w].fn.call(g[w].context,u,d,f);break;default:if(!x)for(P=1,x=new Array(y-1);P<y;P++)x[P-1]=arguments[P];g[w].fn.apply(g[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,f){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return a(this,h),this;var v=this._events[h];if(v.fn)v.fn===u&&(!f||v.once)&&(!d||v.context===d)&&a(this,h);else{for(var m=0,g=[],y=v.length;m<y;m++)(v[m].fn!==u||f&&!v[m].once||d&&v[m].context!==d)&&g.push(v[m]);g.length?this._events[h]=g.length===1?g[0]:g:a(this,h)}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})(Rf)),Rf.exports}var p9=f9();const h9=Pn(p9);var ca=new h9,uh="recharts.syncEvent.tooltip",tS="recharts.syncEvent.brush",cg=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!wr(r))return e[r]}},m9={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},Q_=Mt({name:"options",initialState:m9,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),v9=Q_.reducer,{createEventEmitter:g9}=Q_.actions;function y9(e){return e.tooltip.syncInteraction}var b9={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},eM=Mt({name:"chartData",initialState:b9,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:rS,setDataStartEndIndexes:x9,setComputedData:tpe}=eM.actions,w9=eM.reducer,S9=["x","y"];function nS(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 jo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nS(Object(r),!0).forEach(function(n){P9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P9(e,t,r){return(t=C9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C9(e){var t=E9(e,"string");return typeof t=="symbol"?t:t+""}function E9(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 O9(e,t){if(e==null)return{};var r,n,o=A9(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 A9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function T9(){var e=Q(Ov),t=Q(Av),r=Ce(),n=Q(qT),o=Q(tn),i=yo(),a=ru(),s=Q(l=>l.rootProps.className);O.useEffect(()=>{if(e==null)return go;var l=(c,u,d)=>{if(t!==d&&e===c){if(n==="index"){var f;if(a&&u!==null&&u!==void 0&&(f=u.payload)!==null&&f!==void 0&&f.coordinate&&u.payload.sourceViewBox){var h=u.payload.coordinate,{x:v,y:m}=h,g=O9(h,S9),{x:y,y:x,width:w,height:S}=u.payload.sourceViewBox,P=jo(jo({},g),{},{x:a.x+(w?(v-y)/w:0)*a.width,y:a.y+(S?(m-x)/S:0)*a.height});r(jo(jo({},u),{},{payload:jo(jo({},u.payload),{},{coordinate:P})}))}else r(u);return}if(o!=null){var C;if(typeof n=="function"){var E={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},A=n(o,E);C=o[A]}else n==="value"&&(C=o.find(B=>String(B.value)===u.payload.label));var{coordinate:_}=u.payload;if(C==null||u.payload.active===!1||_==null||a==null){r(sh({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:D,y:R}=_,T=Math.min(D,a.x+a.width),j=Math.min(R,a.y+a.height),N={x:i==="horizontal"?C.coordinate:T,y:i==="horizontal"?j:C.coordinate},W=sh({active:u.payload.active,coordinate:N,dataKey:u.payload.dataKey,index:String(C.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(W)}}};return ca.on(uh,l),()=>{ca.off(uh,l)}},[s,r,t,e,n,o,i,a])}function _9(){var e=Q(Ov),t=Q(Av),r=Ce();O.useEffect(()=>{if(e==null)return go;var n=(o,i,a)=>{t!==a&&e===o&&r(x9(i))};return ca.on(tS,n),()=>{ca.off(tS,n)}},[r,t,e])}function M9(){var e=Ce();O.useEffect(()=>{e(g9())},[e]),T9(),_9()}function j9(e,t,r,n,o,i){var a=Q(h=>$q(h,e,t)),s=Q(Av),l=Q(Ov),c=Q(qT),u=Q(y9),d=u?.active,f=ru();O.useEffect(()=>{if(!d&&l!=null&&s!=null){var h=sh({active:i,coordinate:r,dataKey:a,index:o,label:typeof n=="number"?String(n):n,sourceViewBox:f,graphicalItemId:void 0});ca.emit(uh,l,h,s)}},[d,r,a,o,n,s,l,c,i,f])}function oS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function iS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oS(Object(r),!0).forEach(function(n){D9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D9(e,t,r){return(t=R9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R9(e){var t=k9(e,"string");return typeof t=="symbol"?t:t+""}function k9(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 I9(e){return e.dataKey}function N9(e,t){return p.isValidElement(e)?p.cloneElement(e,t):typeof e=="function"?p.createElement(e,t):p.createElement(bK,t)}var aS=[],L9={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 ug(e){var t,r,n=We(e,L9),{active:o,allowEscapeViewBox:i,animationDuration:a,animationEasing:s,content:l,filterNull:c,isAnimationActive:u,offset:d,payloadUniqBy:f,position:h,reverseDirection:v,useTranslate3d:m,wrapperStyle:g,cursor:y,shared:x,trigger:w,defaultIndex:S,portal:P,axisId:C}=n,E=Ce(),A=typeof S=="number"?String(S):S;O.useEffect(()=>{E(D8({shared:x,trigger:w,axisId:C,active:o,defaultIndex:A}))},[E,x,w,C,o,A]);var _=ru(),D=KA(),R=O8(x),{activeIndex:T,isActive:j}=(t=Q(K=>Bq(K,R,w,A)))!==null&&t!==void 0?t:{},N=Q(K=>Fq(K,R,w,A)),W=Q(K=>X_(K,R,w,A)),B=Q(K=>Vq(K,R,w,A)),$=N,M=d9(),I=(r=o??j)!==null&&r!==void 0?r:!1,[H,te]=zO([$,I]),oe=R==="axis"?W:void 0;j9(R,w,B,oe,T,I);var ae=P??M;if(ae==null||_==null||R==null)return null;var ie=$??aS;I||(ie=aS),c&&ie.length&&(ie=NO(ie.filter(K=>K.value!=null&&(K.hide!==!0||n.includeHidden)),f,I9));var ce=ie.length>0,Ae=p.createElement(OK,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:I,coordinate:B,hasPayload:ce,offset:d,position:h,reverseDirection:v,useTranslate3d:m,viewBox:_,wrapperStyle:g,lastBoundingBox:H,innerRef:te,hasPortalFromProps:!!P},N9(l,iS(iS({},n),{},{payload:ie,label:oe,active:I,activeIndex:T,coordinate:B,accessibilityLayer:D})));return p.createElement(p.Fragment,null,wa.createPortal(Ae,ae),I&&p.createElement(u9,{cursor:y,tooltipEventType:R,coordinate:B,payload:ie,index:T}))}var Ga=e=>null;Ga.displayName="Cell";function $9(e,t,r){return(t=V9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V9(e){var t=F9(e,"string");return typeof t=="symbol"?t:t+""}function F9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class B9{constructor(t){$9(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 sS(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 z9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sS(Object(r),!0).forEach(function(n){W9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W9(e,t,r){return(t=K9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K9(e){var t=U9(e,"string");return typeof t=="symbol"?t:t+""}function U9(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 H9={cacheSize:2e3,enableCache:!0},tM=z9({},H9),lS=new B9(tM.cacheSize),G9={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},cS="recharts_measurement_span";function q9(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 uS=(e,t)=>{try{var r=document.getElementById(cS);r||(r=document.createElement("span"),r.setAttribute("id",cS),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,G9,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Hi=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||su.isSsr)return{width:0,height:0};if(!tM.enableCache)return uS(t,r);var n=q9(t,r),o=lS.get(n);if(o)return o;var i=uS(t,r);return lS.set(n,i),i},rM;function Y9(e,t,r){return(t=X9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X9(e){var t=Z9(e,"string");return typeof t=="symbol"?t:t+""}function Z9(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 dS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,J9=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Q9=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,e7={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},t7=["cm","mm","pt","pc","in","Q","px"];function r7(e){return t7.includes(e)}var ko="NaN";function n7(e,t){return e*e7[t]}class ct{static parse(t){var r,[,n,o]=(r=Q9.exec(t))!==null&&r!==void 0?r:[];return n==null?ct.NaN:new ct(parseFloat(n),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,wr(t)&&(this.unit=""),r!==""&&!J9.test(r)&&(this.num=NaN,this.unit=""),r7(r)&&(this.num=n7(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new ct(NaN,""):new ct(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new ct(NaN,""):new ct(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ct(NaN,""):new ct(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ct(NaN,""):new ct(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return wr(this.num)}}rM=ct;Y9(ct,"NaN",new rM(NaN,""));function nM(e){if(e==null||e.includes(ko))return ko;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=dS.exec(t))!==null&&r!==void 0?r:[],a=ct.parse(n??""),s=ct.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return ko;t=t.replace(dS,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,f]=(c=fS.exec(t))!==null&&c!==void 0?c:[],h=ct.parse(u??""),v=ct.parse(f??""),m=d==="+"?h.add(v):h.subtract(v);if(m.isNaN())return ko;t=t.replace(fS,m.toString())}return t}var pS=/\(([^()]*)\)/;function o7(e){for(var t=e,r;(r=pS.exec(t))!=null;){var[,n]=r;t=t.replace(pS,nM(n))}return t}function i7(e){var t=e.replace(/\s+/g,"");return t=o7(t),t=nM(t),t}function a7(e){try{return i7(e)}catch{return ko}}function kf(e){var t=a7(e.slice(5,-1));return t===ko?"":t}var s7=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],l7=["dx","dy","angle","className","breakAll"];function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dh.apply(null,arguments)}function hS(e,t){if(e==null)return{};var r,n,o=c7(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 c7(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 oM=/[ \f\n\r\t\v\u2028\u2029]+/,iM=e=>{var{children:t,breakAll:r,style:n}=e;try{var o=[];Re(t)||(r?o=t.toString().split(""):o=t.toString().split(oM));var i=o.map(s=>({word:s,width:Hi(s,n).width})),a=r?0:Hi(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function u7(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var aM=(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},[]),sM=e=>e.reduce((t,r)=>t.width>r.width?t:r),d7="…",mS=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=iM({breakAll:r,style:n,children:l+d7});if(!c)return[!1,[]];var u=aM(c.wordsWithComputedWidth,i,a,s),d=u.length>o||sM(u).width>Number(i);return[d,u]},f7=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=q(i),u=String(a),d=aM(t,n,r,o);if(!c||o)return d;var f=d.length>i||sM(d).width>Number(n);if(!f)return d;for(var h=0,v=u.length-1,m=0,g;h<=v&&m<=u.length-1;){var y=Math.floor((h+v)/2),x=y-1,[w,S]=mS(u,x,l,s,i,n,r,o),[P]=mS(u,y,l,s,i,n,r,o);if(!w&&!P&&(h=y+1),w&&P&&(v=y-1),!w&&P){g=S;break}m++}return g||d},vS=e=>{var t=Re(e)?[]:e.toString().split(oM);return[{words:t,width:void 0}]},p7=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!su.isSsr){var s,l,c=iM({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;s=u,l=d}else return vS(n);return f7({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return vS(n)},lM="#808080",h7={angle:0,breakAll:!1,capHeight:"0.71em",fill:lM,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Au=O.forwardRef((e,t)=>{var r=We(e,h7),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,d=hS(r,s7),f=O.useMemo(()=>p7({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:h,dy:v,angle:m,className:g,breakAll:y}=d,x=hS(d,l7);if(!Sr(n)||!Sr(o)||f.length===0)return null;var w=Number(n)+(q(h)?h:0),S=Number(o)+(q(v)?v:0);if(!ue(w)||!ue(S))return null;var P;switch(u){case"start":P=kf("calc(".concat(a,")"));break;case"middle":P=kf("calc(".concat((f.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:P=kf("calc(".concat(f.length-1," * -").concat(i,")"));break}var C=[],E=f[0];if(l&&E!=null){var A=E.width,{width:_}=d;C.push("scale(".concat(q(_)&&q(A)?_/A:1,")"))}return m&&C.push("rotate(".concat(m,", ").concat(w,", ").concat(S,")")),C.length&&(x.transform=C.join(" ")),p.createElement("text",dh({},Et(x),{ref:t,x:w,y:S,className:fe("recharts-text",g),textAnchor:c,fill:s.includes("url")?lM:s}),f.map((D,R)=>{var T=D.words.join(y?"":" ");return p.createElement("tspan",{x:w,dy:R===0?P:i,key:"".concat(T,"-").concat(R)},T)}))});Au.displayName="Text";function gS(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 dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gS(Object(r),!0).forEach(function(n){m7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m7(e,t,r){return(t=v7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v7(e){var t=g7(e,"string");return typeof t=="symbol"?t:t+""}function g7(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 y7=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:o}=e,{x:i,y:a,height:s,upperWidth:l,lowerWidth:c}=Gm(t),u=i,d=i+(l-c)/2,f=(u+d)/2,h=(l+c)/2,v=u+l/2,m=s>=0?1:-1,g=m*n,y=m>0?"end":"start",x=m>0?"start":"end",w=l>=0?1:-1,S=w*n,P=w>0?"end":"start",C=w>0?"start":"end",E=o;if(r==="top"){var A={x:u+l/2,y:a-g,horizontalAnchor:"middle",verticalAnchor:y};return E&&(A.height=Math.max(a-E.y,0),A.width=l),A}if(r==="bottom"){var _={x:d+c/2,y:a+s+g,horizontalAnchor:"middle",verticalAnchor:x};return E&&(_.height=Math.max(E.y+E.height-(a+s),0),_.width=c),_}if(r==="left"){var D={x:f-S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"};return E&&(D.width=Math.max(D.x-E.x,0),D.height=s),D}if(r==="right"){var R={x:f+h+S,y:a+s/2,horizontalAnchor:C,verticalAnchor:"middle"};return E&&(R.width=Math.max(E.x+E.width-R.x,0),R.height=s),R}var T=E?{width:h,height:s}:{};return r==="insideLeft"?dr({x:f+S,y:a+s/2,horizontalAnchor:C,verticalAnchor:"middle"},T):r==="insideRight"?dr({x:f+h-S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"},T):r==="insideTop"?dr({x:u+l/2,y:a+g,horizontalAnchor:"middle",verticalAnchor:x},T):r==="insideBottom"?dr({x:d+c/2,y:a+s-g,horizontalAnchor:"middle",verticalAnchor:y},T):r==="insideTopLeft"?dr({x:u+S,y:a+g,horizontalAnchor:C,verticalAnchor:x},T):r==="insideTopRight"?dr({x:u+l-S,y:a+g,horizontalAnchor:P,verticalAnchor:x},T):r==="insideBottomLeft"?dr({x:d+S,y:a+s-g,horizontalAnchor:C,verticalAnchor:y},T):r==="insideBottomRight"?dr({x:d+c-S,y:a+s-g,horizontalAnchor:P,verticalAnchor:y},T):r&&typeof r=="object"&&(q(r.x)||oo(r.x))&&(q(r.y)||oo(r.y))?dr({x:i+ht(r.x,h),y:a+ht(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},T):dr({x:v,y:a+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},T)},b7=["labelRef"],x7=["content"];function yS(e,t){if(e==null)return{};var r,n,o=w7(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 w7(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 bS(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 zi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bS(Object(r),!0).forEach(function(n){S7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S7(e,t,r){return(t=P7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P7(e){var t=C7(e,"string");return typeof t=="symbol"?t:t+""}function C7(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 jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jr.apply(null,arguments)}var cM=O.createContext(null),E7=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a,children:s}=e,l=O.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a}),[t,r,n,o,i,a]);return p.createElement(cM.Provider,{value:l},s)},uM=()=>{var e=O.useContext(cM),t=ru();return e||(t?Gm(t):void 0)},O7=O.createContext(null),A7=()=>{var e=O.useContext(O7),t=Q(QT);return e||t},T7=e=>{var{value:t,formatter:r}=e,n=Re(e.children)?t:e.children;return typeof r=="function"?r(n):n},dg=e=>e!=null&&typeof e=="function",_7=(e,t)=>{var r=et(t-e),n=Math.min(Math.abs(t-e),360);return r*n},M7=(e,t,r,n,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:d,endAngle:f,clockWise:h}=o,v=(c+u)/2,m=_7(d,f),g=m>=0?1:-1,y,x;switch(t){case"insideStart":y=d+g*i,x=h;break;case"insideEnd":y=f-g*i,x=!h;break;case"end":y=f+g*i,x=h;break;default:throw new Error("Unsupported position ".concat(t))}x=m<=0?x:!x;var w=Fe(s,l,v,y),S=Fe(s,l,v,y+(x?1:-1)*359),P="M".concat(w.x,",").concat(w.y,`
99
- A`).concat(v,",").concat(v,",0,1,").concat(x?0:1,`,
100
- `).concat(S.x,",").concat(S.y),C=Re(e.id)?Xi("recharts-radial-line-"):e.id;return p.createElement("text",jr({},n,{dominantBaseline:"central",className:fe("recharts-radial-bar-label",a)}),p.createElement("defs",null,p.createElement("path",{id:C,d:P})),p.createElement("textPath",{xlinkHref:"#".concat(C)},r))},j7=(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}=Fe(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 f=(i+a)/2,{x:h,y:v}=Fe(n,o,f,c);return{x:h,y:v,textAnchor:"middle",verticalAnchor:"middle"}},nl=e=>e!=null&&"cx"in e&&q(e.cx),D7={angle:0,offset:5,zIndex:Be.label,position:"middle",textBreakAll:!1};function R7(e){if(!nl(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 ln(e){var t=We(e,D7),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:u}=t,d=A7(),f=uM(),h=o==="center"?f:d??f,v,m,g;r==null?v=h:nl(r)?v=r:v=Gm(r);var y=R7(v);if(!v||Re(i)&&Re(a)&&!O.isValidElement(s)&&typeof s!="function")return null;var x=zi(zi({},t),{},{viewBox:v});if(O.isValidElement(s)){var{labelRef:w}=x,S=yS(x,b7);return O.cloneElement(s,S)}if(typeof s=="function"){var{content:P}=x,C=yS(x,x7);if(m=O.createElement(s,C),O.isValidElement(m))return m}else m=T7(t);var E=Et(t);if(nl(v)){if(o==="insideStart"||o==="insideEnd"||o==="end")return M7(t,o,m,E,v);g=j7(v,t.offset,t.position)}else{if(!y)return null;var A=y7({viewBox:y,position:o,offset:t.offset,parentViewBox:nl(n)?void 0:n});g=zi(zi({x:A.x,y:A.y,textAnchor:A.horizontalAnchor,verticalAnchor:A.verticalAnchor},A.width!==void 0?{width:A.width}:{}),A.height!==void 0?{height:A.height}:{})}return p.createElement(jt,{zIndex:t.zIndex},p.createElement(Au,jr({ref:u,className:fe("recharts-label",l)},E,g,{textAnchor:u7(E.textAnchor)?E.textAnchor:g.textAnchor,breakAll:c}),m))}ln.displayName="Label";var k7=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?p.createElement(ln,jr({key:"label-implicit"},n)):Sr(e)?p.createElement(ln,jr({key:"label-implicit",value:e},n)):O.isValidElement(e)?e.type===ln?O.cloneElement(e,zi({key:"label-implicit"},n)):p.createElement(ln,jr({key:"label-implicit",content:e},n)):dg(e)?p.createElement(ln,jr({key:"label-implicit",content:e},n)):e&&typeof e=="object"?p.createElement(ln,jr({},e,{key:"label-implicit"},n)):null};function I7(e){var{label:t,labelRef:r}=e,n=uM();return k7(t,n,r)||null}var If={},Nf={},xS;function N7(){return xS||(xS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(Nf)),Nf}var Lf={},wS;function L7(){return wS||(wS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(Lf)),Lf}var SS;function $7(){return SS||(SS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N7(),r=L7(),n=Im();function o(i){if(n.isArrayLike(i))return t.last(r.toArray(i))}e.last=o})(If)),If}var $f,PS;function V7(){return PS||(PS=1,$f=$7().last),$f}var F7=V7();const B7=Pn(F7);var z7=["valueAccessor"],W7=["dataKey","clockWise","id","textBreakAll","zIndex"];function rc(){return rc=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},rc.apply(null,arguments)}function CS(e,t){if(e==null)return{};var r,n,o=K7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function K7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var U7=e=>Array.isArray(e.value)?B7(e.value):e.value,dM=O.createContext(void 0),fM=dM.Provider,pM=O.createContext(void 0),H7=pM.Provider;function G7(){return O.useContext(dM)}function q7(){return O.useContext(pM)}function ol(e){var{valueAccessor:t=U7}=e,r=CS(e,z7),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=CS(r,W7),c=G7(),u=q7(),d=c||u;return!d||!d.length?null:p.createElement(jt,{zIndex:s??Be.label},p.createElement(rt,{className:"recharts-label-list"},d.map((f,h)=>{var v,m=Re(n)?t(f,h):xe(f.payload,n),g=Re(i)?{}:{id:"".concat(i,"-").concat(h)};return p.createElement(ln,rc({key:"label-".concat(h)},Et(f),l,g,{fill:(v=r.fill)!==null&&v!==void 0?v:f.fill,parentViewBox:f.parentViewBox,value:m,textBreakAll:a,viewBox:f.viewBox,index:h,zIndex:0}))})))}ol.displayName="LabelList";function fg(e){var{label:t}=e;return t?t===!0?p.createElement(ol,{key:"labelList-implicit"}):p.isValidElement(t)||dg(t)?p.createElement(ol,{key:"labelList-implicit",content:t}):typeof t=="object"?p.createElement(ol,rc({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function fh(){return fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fh.apply(null,arguments)}var hM=e=>{var{cx:t,cy:r,r:n,className:o}=e,i=fe("recharts-dot",o);return q(t)&&q(r)&&q(n)?p.createElement("circle",fh({},Lt(e),km(e),{className:i,cx:t,cy:r,r:n})):null},mM=e=>e.graphicalItems.polarItems,Y7=k([ke,Ba],Rv),Tu=k([mM,$e,Y7],kv),X7=k([Tu],Iv),_u=k([X7,hu],Nv),Z7=k([_u,$e,Tu],$v);k([_u,$e,Tu],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(o=>{var i,a=xe(n,(i=t.dataKey)!==null&&i!==void 0?i:o.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:xe(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var ES=()=>{},J7=k([_u,$e,Tu,Pu,ke],zv),Q7=k([$e,Fv,Bv,ES,J7,ES,me,ke],Wv),vM=k([$e,me,_u,Z7,Fa,ke,Q7],Kv),eY=k([vM,hi,On],Gv),tY=k([$e,vM,eY,ke],Yv);k([On,tY],t_);var rY={radiusAxis:{},angleAxis:{}},gM=Mt({name:"polarAxis",initialState:rY,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:rpe,removeRadiusAxis:npe,addAngleAxis:ope,removeAngleAxis:ipe}=gM.actions,nY=gM.reducer;function yM(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function OS(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 AS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OS(Object(r),!0).forEach(function(n){oY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oY(e,t,r){return(t=iY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iY(e){var t=aY(e,"string");return typeof t=="symbol"?t:t+""}function aY(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 sY=(e,t)=>t,pg=k([mM,sY],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),lY=[],hg=(e,t,r)=>r?.length===0?lY:r,bM=k([hu,pg,hg],(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=>AS(AS({},t.presentationProps),i.props))),o!=null)return o}}),cY=k([bM,pg,hg],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,o)=>{var i,a=xe(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:ci(a,t.dataKey),color:s,payload:n,type:t.legendType}})}),uY=k([bM,pg,hg,qe],(e,t,r,n)=>{if(!(t==null||e==null))return fX({offset:n,pieSettings:t,displayedData:e,cells:r})}),$s={exports:{}},ye={};var TS;function dY(){if(TS)return ye;TS=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,f=60121,h=60122,v=60117,m=60129,g=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),o=y("react.profiler"),i=y("react.provider"),a=y("react.context"),s=y("react.forward_ref"),l=y("react.suspense"),c=y("react.suspense_list"),u=y("react.memo"),d=y("react.lazy"),f=y("react.block"),h=y("react.server.block"),v=y("react.fundamental"),m=y("react.debug_trace_mode"),g=y("react.legacy_hidden")}function x(j){if(typeof j=="object"&&j!==null){var N=j.$$typeof;switch(N){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 N}}case t:return N}}}var w=i,S=e,P=s,C=r,E=d,A=u,_=t,D=o,R=n,T=l;return ye.ContextConsumer=a,ye.ContextProvider=w,ye.Element=S,ye.ForwardRef=P,ye.Fragment=C,ye.Lazy=E,ye.Memo=A,ye.Portal=_,ye.Profiler=D,ye.StrictMode=R,ye.Suspense=T,ye.isAsyncMode=function(){return!1},ye.isConcurrentMode=function(){return!1},ye.isContextConsumer=function(j){return x(j)===a},ye.isContextProvider=function(j){return x(j)===i},ye.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},ye.isForwardRef=function(j){return x(j)===s},ye.isFragment=function(j){return x(j)===r},ye.isLazy=function(j){return x(j)===d},ye.isMemo=function(j){return x(j)===u},ye.isPortal=function(j){return x(j)===t},ye.isProfiler=function(j){return x(j)===o},ye.isStrictMode=function(j){return x(j)===n},ye.isSuspense=function(j){return x(j)===l},ye.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===r||j===o||j===m||j===n||j===l||j===c||j===g||typeof j=="object"&&j!==null&&(j.$$typeof===d||j.$$typeof===u||j.$$typeof===i||j.$$typeof===a||j.$$typeof===s||j.$$typeof===v||j.$$typeof===f||j[0]===h)},ye.typeOf=x,ye}var be={};var _S;function fY(){return _S||(_S=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,f=60121,h=60122,v=60117,m=60129,g=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),o=y("react.profiler"),i=y("react.provider"),a=y("react.context"),s=y("react.forward_ref"),l=y("react.suspense"),c=y("react.suspense_list"),u=y("react.memo"),d=y("react.lazy"),f=y("react.block"),h=y("react.server.block"),v=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),m=y("react.debug_trace_mode"),y("react.offscreen"),g=y("react.legacy_hidden")}var x=!1;function w(z){return!!(typeof z=="string"||typeof z=="function"||z===r||z===o||z===m||z===n||z===l||z===c||z===g||x||typeof z=="object"&&z!==null&&(z.$$typeof===d||z.$$typeof===u||z.$$typeof===i||z.$$typeof===a||z.$$typeof===s||z.$$typeof===v||z.$$typeof===f||z[0]===h))}function S(z){if(typeof z=="object"&&z!==null){var F=z.$$typeof;switch(F){case e:var pe=z.type;switch(pe){case r:case o:case n:case l:case c:return pe;default:var le=pe&&pe.$$typeof;switch(le){case a:case s:case d:case u:case i:return le;default:return F}}case t:return F}}}var P=a,C=i,E=e,A=s,_=r,D=d,R=u,T=t,j=o,N=n,W=l,B=!1,$=!1;function M(z){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function I(z){return $||($=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(z){return S(z)===a}function te(z){return S(z)===i}function oe(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ae(z){return S(z)===s}function ie(z){return S(z)===r}function ce(z){return S(z)===d}function Ae(z){return S(z)===u}function K(z){return S(z)===t}function de(z){return S(z)===o}function V(z){return S(z)===n}function G(z){return S(z)===l}be.ContextConsumer=P,be.ContextProvider=C,be.Element=E,be.ForwardRef=A,be.Fragment=_,be.Lazy=D,be.Memo=R,be.Portal=T,be.Profiler=j,be.StrictMode=N,be.Suspense=W,be.isAsyncMode=M,be.isConcurrentMode=I,be.isContextConsumer=H,be.isContextProvider=te,be.isElement=oe,be.isForwardRef=ae,be.isFragment=ie,be.isLazy=ce,be.isMemo=Ae,be.isPortal=K,be.isProfiler=de,be.isStrictMode=V,be.isSuspense=G,be.isValidElementType=w,be.typeOf=S})()),be}var MS;function pY(){return MS||(MS=1,process.env.NODE_ENV==="production"?$s.exports=dY():$s.exports=fY()),$s.exports}var hY=pY(),jS=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",DS=null,Vf=null,xM=e=>{if(e===DS&&Array.isArray(Vf))return Vf;var t=[];return O.Children.forEach(e,r=>{Re(r)||(hY.isFragment(r)?t=t.concat(xM(r.props.children)):t.push(r))}),Vf=t,DS=e,t};function mg(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(o=>jS(o)):n=[jS(t)],xM(e).forEach(o=>{var i=no(o,"type.displayName")||no(o,"type.name");i&&n.indexOf(i)!==-1&&r.push(o)}),r}var wM=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,Ff={},RS;function mY(){return RS||(RS=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})(Ff)),Ff}var Bf,kS;function vY(){return kS||(kS=1,Bf=mY().isPlainObject),Bf}var gY=vY();const yY=Pn(gY);var IS,NS,LS,$S,VS;function FS(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 BS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(n){bY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bY(e,t,r){return(t=xY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xY(e){var t=wY(e,"string");return typeof t=="symbol"?t:t+""}function wY(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 nc(){return nc=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},nc.apply(null,arguments)}function Li(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var zS=(e,t,r,n,o)=>{var i=r-n,a;return a=Ne(IS||(IS=Li(["M ",",",""])),e,t),a+=Ne(NS||(NS=Li(["L ",",",""])),e+r,t),a+=Ne(LS||(LS=Li(["L ",",",""])),e+r-i/2,t+o),a+=Ne($S||($S=Li(["L ",",",""])),e+r-i/2-n,t+o),a+=Ne(VS||(VS=Li(["L ",","," Z"])),e,t),a},SY={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},PY=e=>{var t=We(e,SY),{x:r,y:n,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:d}=t,f=O.useRef(null),[h,v]=O.useState(-1),m=O.useRef(o),g=O.useRef(i),y=O.useRef(a),x=O.useRef(r),w=O.useRef(n),S=Ia(e,"trapezoid-");if(O.useEffect(()=>{if(f.current&&f.current.getTotalLength)try{var N=f.current.getTotalLength();N&&v(N)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var P=fe("recharts-trapezoid",s);if(!d)return p.createElement("g",null,p.createElement("path",nc({},Et(t),{className:P,d:zS(r,n,o,i,a)})));var C=m.current,E=g.current,A=y.current,_=x.current,D=w.current,R="0px ".concat(h===-1?1:h,"px"),T="".concat(h,"px 0px"),j=UA(["strokeDasharray"],c,l);return p.createElement(ka,{animationId:S,key:S,canBegin:h>0,duration:c,easing:l,isActive:d,begin:u},N=>{var W=_e(C,o,N),B=_e(E,i,N),$=_e(A,a,N),M=_e(_,r,N),I=_e(D,n,N);f.current&&(m.current=W,g.current=B,y.current=$,x.current=M,w.current=I);var H=N>0?{transition:j,strokeDasharray:T}:{strokeDasharray:R};return p.createElement("path",nc({},Et(t),{className:P,d:zS(M,I,W,B,$),ref:f,style:BS(BS({},H),t.style)}))})},CY=["option","shapeType","activeClassName"];function EY(e,t){if(e==null)return{};var r,n,o=OY(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 OY(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 WS(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 oc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WS(Object(r),!0).forEach(function(n){AY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AY(e,t,r){return(t=TY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TY(e){var t=_Y(e,"string");return typeof t=="symbol"?t:t+""}function _Y(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 MY(e,t){return oc(oc({},t),e)}function jY(e,t){return e==="symbols"}function KS(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return p.createElement(YA,r);case"trapezoid":return p.createElement(PY,r);case"sector":return p.createElement(QA,r);case"symbols":if(jY(t))return p.createElement(Rm,r);break;case"curve":return p.createElement(Jm,r);default:return null}}function DY(e){return O.isValidElement(e)?e.props:e}function vg(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,o=EY(e,CY),i;if(O.isValidElement(t))i=O.cloneElement(t,oc(oc({},o),DY(t)));else if(typeof t=="function")i=t(o,o.index);else if(yY(t)&&typeof t!="boolean"){var a=MY(t,o);i=p.createElement(KS,{shapeType:r,elementProps:a})}else{var s=o;i=p.createElement(KS,{shapeType:r,elementProps:s})}return o.isActive?p.createElement(rt,{className:n},i):i}var gg=(e,t,r)=>{var n=Ce();return(o,i)=>a=>{e?.(o,i,a),n(j_({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},yg=e=>{var t=Ce();return(r,n)=>o=>{e?.(r,n,o),t(R8())}},bg=(e,t,r)=>{var n=Ce();return(o,i)=>a=>{e?.(o,i,a),n(k8({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};function xg(e){var{tooltipEntrySettings:t}=e,r=Ce(),n=gt(),o=O.useRef(null);return O.useLayoutEffect(()=>{n||(o.current===null?r(_8(t)):o.current!==t&&r(M8({prev:o.current,next:t})),o.current=t)},[t,r,n]),O.useLayoutEffect(()=>()=>{o.current&&(r(j8(o.current)),o.current=null)},[r]),null}function SM(e){var{legendPayload:t}=e,r=Ce(),n=gt(),o=O.useRef(null);return O.useLayoutEffect(()=>{n||(o.current===null?r(BA(t)):o.current!==t&&r(zA({prev:o.current,next:t})),o.current=t)},[r,n,t]),O.useLayoutEffect(()=>()=>{o.current&&(r(WA(o.current)),o.current=null)},[r]),null}function RY(e){var{legendPayload:t}=e,r=Ce(),n=Q(me),o=O.useRef(null);return O.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(o.current===null?r(BA(t)):o.current!==t&&r(zA({prev:o.current,next:t})),o.current=t)},[r,n,t]),O.useLayoutEffect(()=>()=>{o.current&&(r(WA(o.current)),o.current=null)},[r]),null}var zf,kY=()=>{var[e]=p.useState(()=>Xi("uid-"));return e},IY=(zf=p.useId)!==null&&zf!==void 0?zf:kY;function NY(e,t){var r=IY();return t||(e?"".concat(e,"-").concat(r):r)}var LY=O.createContext(void 0),wg=e=>{var{id:t,type:r,children:n}=e,o=NY("recharts-".concat(r),t);return p.createElement(LY.Provider,{value:o},n(o))},$Y={cartesianItems:[],polarItems:[]},PM=Mt({name:"graphicalItems",initialState:$Y,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Te()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=rr(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=n)},prepare:Te()},removeCartesianGraphicalItem:{reducer(e,t){var r=rr(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Te()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Te()},removePolarGraphicalItem:{reducer(e,t){var r=rr(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Te()}}}),{addCartesianGraphicalItem:VY,replaceCartesianGraphicalItem:FY,removeCartesianGraphicalItem:BY,addPolarGraphicalItem:zY,removePolarGraphicalItem:WY}=PM.actions,KY=PM.reducer,UY=e=>{var t=Ce(),r=O.useRef(null);return O.useLayoutEffect(()=>{r.current===null?t(VY(e)):r.current!==e&&t(FY({prev:r.current,next:e})),r.current=e},[t,e]),O.useLayoutEffect(()=>()=>{r.current&&(t(BY(r.current)),r.current=null)},[t]),null},CM=O.memo(UY);function HY(e){var t=Ce();return O.useLayoutEffect(()=>(t(zY(e)),()=>{t(WY(e))}),[t,e]),null}var GY=["key"],qY=["onMouseEnter","onClick","onMouseLeave"],YY=["id"],XY=["id"];function US(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 Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?US(Object(r),!0).forEach(function(n){ZY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):US(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZY(e,t,r){return(t=JY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JY(e){var t=QY(e,"string");return typeof t=="symbol"?t:t+""}function QY(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 Mu(e,t){if(e==null)return{};var r,n,o=eX(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 eX(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 tX(e){var t=O.useMemo(()=>mg(e.children,Ga),[e.children]),r=Q(n=>cY(n,e.id,t));return r==null?null:p.createElement(RY,{legendPayload:r})}var rX=p.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(f=>f.tooltipPayload),getPosition:f=>{var h;return(h=n[Number(f)])===null||h===void 0?void 0:h.tooltipPosition},settings:{stroke:o,strokeWidth:i,fill:a,dataKey:t,nameKey:r,name:ci(s,t),hide:l,type:c,color:a,unit:"",graphicalItemId:u}};return p.createElement(xg,{tooltipEntrySettings:d})}),nX=(e,t)=>e>t?"start":e<t?"end":"middle",oX=(e,t,r)=>ht(typeof t=="function"?t(e):t,r,r*.8),iX=(e,t,r)=>{var{top:n,left:o,width:i,height:a}=t,s=XA(i,a),l=o+ht(e.cx,i,i/2),c=n+ht(e.cy,a,a/2),u=ht(e.innerRadius,s,0),d=oX(r,e.outerRadius,s),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:f}},aX=(e,t)=>{var r=et(t-e),n=Math.min(Math.abs(t-e),360);return r*n},sX=(e,t)=>{if(p.isValidElement(e))return p.cloneElement(e,t);if(typeof e=="function")return e(t);var r=fe("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,o=Mu(t,GY);return p.createElement(Jm,yn({},o,{type:"linear",className:r}))},lX=(e,t,r)=>{if(p.isValidElement(e))return p.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),p.isValidElement(n)))return n;var o=fe("recharts-pie-label-text",yM(e));return p.createElement(Au,yn({},t,{alignmentBaseline:"middle",className:o}),n)};function cX(e){var{sectors:t,props:r,showLabels:n}=e,{label:o,labelLine:i,dataKey:a}=r;if(!n||!o||!t)return null;var s=Lt(r),l=to(o),c=to(i),u=typeof o=="object"&&"offsetRadius"in o&&typeof o.offsetRadius=="number"&&o.offsetRadius||20,d=t.map((f,h)=>{var v=(f.startAngle+f.endAngle)/2,m=Fe(f.cx,f.cy,f.outerRadius+u,v),g=Le(Le(Le(Le({},s),f),{},{stroke:"none"},l),{},{index:h,textAnchor:nX(m.x,f.cx)},m),y=Le(Le(Le(Le({},s),f),{},{fill:"none",stroke:f.fill},c),{},{index:h,points:[Fe(f.cx,f.cy,f.outerRadius,v),m],key:"line"});return p.createElement(jt,{zIndex:Be.label,key:"label-".concat(f.startAngle,"-").concat(f.endAngle,"-").concat(f.midAngle,"-").concat(h)},p.createElement(rt,null,i&&sX(i,y),lX(o,g,xe(f,a))))});return p.createElement(rt,{className:"recharts-pie-labels"},d)}function uX(e){var{sectors:t,props:r,showLabels:n}=e,{label:o}=r;return typeof o=="object"&&o!=null&&"position"in o?p.createElement(fg,{label:o}):p.createElement(cX,{sectors:t,props:r,showLabels:n})}function dX(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:o,shape:i,id:a}=e,s=Q(gn),l=Q(og),c=Q(bq),{onMouseEnter:u,onClick:d,onMouseLeave:f}=o,h=Mu(o,qY),v=gg(u,o.dataKey,a),m=yg(f),g=bg(d,o.dataKey,a);return t==null||t.length===0?null:p.createElement(p.Fragment,null,t.map((y,x)=>{if(y?.startAngle===0&&y?.endAngle===0&&t.length!==1)return null;var w=c==null||c===a,S=String(x)===s&&(l==null||o.dataKey===l)&&w,P=s?n:null,C=r&&S?r:P,E=Le(Le({},y),{},{stroke:y.stroke,tabIndex:-1,[OA]:x,[AA]:a});return p.createElement(rt,yn({key:"sector-".concat(y?.startAngle,"-").concat(y?.endAngle,"-").concat(y.midAngle,"-").concat(x),tabIndex:-1,className:"recharts-pie-sector"},Oa(h,y,x),{onMouseEnter:v(y,x),onMouseLeave:m(y,x),onClick:g(y,x)}),p.createElement(vg,yn({option:i??C,index:x,shapeType:"sector",isActive:S},E)))}))}function fX(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,f=Math.abs(r.minAngle),h=aX(s,l),v=Math.abs(h),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,g=n.filter(C=>xe(C,c,0)!==0).length,y=(v>=360?g:g-1)*m,x=v-g*f-y,w=n.reduce((C,E)=>{var A=xe(E,c,0);return C+(q(A)?A:0)},0),S;if(w>0){var P;S=n.map((C,E)=>{var A=xe(C,c,0),_=xe(C,u,E),D=iX(r,i,C),R=(q(A)?A:0)/w,T,j=Le(Le({},C),o&&o[E]&&o[E].props);E?T=P.endAngle+et(h)*m*(A!==0?1:0):T=s;var N=T+et(h)*((A!==0?f:0)+R*x),W=(T+N)/2,B=(D.innerRadius+D.outerRadius)/2,$=[{name:_,value:A,payload:j,dataKey:c,type:d,graphicalItemId:r.id}],M=Fe(D.cx,D.cy,B,W);return P=Le(Le(Le(Le({},r.presentationProps),{},{percent:R,cornerRadius:typeof a=="string"?parseFloat(a):a,name:_,tooltipPayload:$,midAngle:W,middleRadius:B,tooltipPosition:M},j),D),{},{value:A,dataKey:c,startAngle:T,endAngle:N,payload:j,paddingAngle:et(h)*m}),P})}return S}function pX(e){var{showLabels:t,sectors:r,children:n}=e,o=O.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 p.createElement(H7,{value:t?o:void 0},n)}function hX(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:f}=t,h=Ia(t,"recharts-pie-"),v=r.current,[m,g]=O.useState(!1),y=O.useCallback(()=>{typeof f=="function"&&f(),g(!1)},[f]),x=O.useCallback(()=>{typeof d=="function"&&d(),g(!0)},[d]);return p.createElement(pX,{showLabels:!m,sectors:o},p.createElement(ka,{animationId:h,begin:a,duration:s,isActive:i,easing:l,onAnimationStart:x,onAnimationEnd:y,key:h},w=>{var S,P=[],C=o&&o[0],E=(S=C?.startAngle)!==null&&S!==void 0?S:0;return o?.forEach((A,_)=>{var D=v&&v[_],R=_>0?no(A,"paddingAngle",0):0;if(D){var T=_e(D.endAngle-D.startAngle,A.endAngle-A.startAngle,w),j=Le(Le({},A),{},{startAngle:E+R,endAngle:E+T+R});P.push(j),E=j.endAngle}else{var{endAngle:N,startAngle:W}=A,B=_e(0,N-W,w),$=Le(Le({},A),{},{startAngle:E+R,endAngle:E+B+R});P.push($),E=$.endAngle}}),r.current=P,p.createElement(rt,null,p.createElement(dX,{sectors:P,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),p.createElement(uX,{showLabels:!m,sectors:o,props:t}),t.children)}var mX={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:Be.area};function vX(e){var{id:t}=e,r=Mu(e,YY),{hide:n,className:o,rootTabIndex:i}=e,a=O.useMemo(()=>mg(e.children,Ga),[e.children]),s=Q(u=>uY(u,t,a)),l=O.useRef(null),c=fe("recharts-pie",o);return n||s==null?(l.current=null,p.createElement(rt,{tabIndex:i,className:c})):p.createElement(jt,{zIndex:e.zIndex},p.createElement(rX,{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}),p.createElement(rt,{tabIndex:i,className:c},p.createElement(hX,{props:Le(Le({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function EM(e){var t=We(e,mX),{id:r}=t,n=Mu(t,XY),o=Lt(n);return p.createElement(wg,{id:r,type:"pie"},i=>p.createElement(p.Fragment,null,p.createElement(HY,{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}),p.createElement(tX,yn({},n,{id:i})),p.createElement(vX,yn({},n,{id:i}))))}EM.displayName="Pie";var gX=["points"];function HS(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 Wf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HS(Object(r),!0).forEach(function(n){yX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yX(e,t,r){return(t=bX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bX(e){var t=xX(e,"string");return typeof t=="symbol"?t:t+""}function xX(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 ic(){return ic=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},ic.apply(null,arguments)}function wX(e,t){if(e==null)return{};var r,n,o=SX(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 SX(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 PX(e){var{option:t,dotProps:r,className:n}=e;if(O.isValidElement(t))return O.cloneElement(t,r);if(typeof t=="function")return t(r);var o=fe(n,typeof t!="boolean"?t.className:""),i=r??{},{points:a}=i,s=wX(i,gX);return p.createElement(hM,ic({},s,{className:o}))}function CX(e,t){return e==null?!1:t?!0:e.length===1}function EX(e){var{points:t,dot:r,className:n,dotClassName:o,dataKey:i,baseProps:a,needClip:s,clipPathId:l,zIndex:c=Be.scatter}=e;if(!CX(t,r))return null;var u=wM(r),d=xz(r),f=t.map((v,m)=>{var g,y,x=Wf(Wf(Wf({r:3},a),d),{},{index:m,cx:(g=v.x)!==null&&g!==void 0?g:void 0,cy:(y=v.y)!==null&&y!==void 0?y:void 0,dataKey:i,value:v.value,payload:v.payload,points:t});return p.createElement(PX,{key:"dot-".concat(m),option:r,dotProps:x,className:o})}),h={};return s&&l!=null&&(h.clipPath="url(#clipPath-".concat(u?"":"dots-").concat(l,")")),p.createElement(jt,{zIndex:c},p.createElement(rt,ic({className:n},h),f))}function GS(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 qS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GS(Object(r),!0).forEach(function(n){OX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OX(e,t,r){return(t=AX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AX(e){var t=TX(e,"string");return typeof t=="symbol"?t:t+""}function TX(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 OM=0,_X={xAxis:{},yAxis:{},zAxis:{}},AM=Mt({name:"cartesianAxis",initialState:_X,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Te()},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:Te()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Te()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Te()},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:Te()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Te()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Te()},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:Te()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Te()},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]=qS(qS({},o),{},{width:n,widthHistory:s})}}}}),{addXAxis:MX,replaceXAxis:jX,removeXAxis:DX,addYAxis:RX,replaceYAxis:kX,removeYAxis:IX,addZAxis:ape,replaceZAxis:spe,removeZAxis:lpe,updateYAxisWidth:NX}=AM.actions,LX=AM.reducer,$X=k([qe],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),VX=k([$X,Yr,Xr],(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)}}),Sg=()=>Q(VX),FX=()=>Q(Cq);function YS(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 Kf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(r),!0).forEach(function(n){BX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BX(e,t,r){return(t=zX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zX(e){var t=WX(e,"string");return typeof t=="symbol"?t:t+""}function WX(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 KX=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=Kf(Kf(Kf({},s),to(o)),km(o)),c;return O.isValidElement(o)?c=O.cloneElement(o,l):typeof o=="function"?c=o(l):c=p.createElement(hM,l),p.createElement(rt,{className:"recharts-active-dot",clipPath:a},c)};function UX(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:o,clipPath:i,zIndex:a=Be.activeDot}=e,s=Q(gn),l=FX();if(t==null||l==null)return null;var c=t.find(u=>l.includes(u.payload));return Re(c)?null:p.createElement(jt,{zIndex:a},p.createElement(KX,{point:c,childIndex:Number(s),mainColor:r,dataKey:o,activeDot:n,clipPath:i}))}var XS=(e,t,r)=>{var n=r??e;if(!Re(n))return ht(n,t,0)},HX=(e,t,r)=>{var n={},o=e.filter(yu),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,f]=c,h=f.map(m=>m.dataKey),v=XS(t,r,(u=f[0])===null||u===void 0?void 0:u.barSize);return{stackId:d,dataKeys:h,barSize:v}}),l=i.map(c=>{var u=[c.dataKey].filter(f=>f!=null),d=XS(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...s,...l]};function ZS(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?ZS(Object(r),!0).forEach(function(n){GX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GX(e,t,r){return(t=qX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qX(e){var t=YX(e,"string");return typeof t=="symbol"?t:t+""}function YX(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 XX(e,t,r,n,o){var i,a=n.length;if(!(a<1)){var s=ht(e,r,0,!0),l,c=[];if(ue((i=n[0])===null||i===void 0?void 0:i.barSize)){var u=!1,d=r/a,f=n.reduce((x,w)=>x+(w.barSize||0),0);f+=(a-1)*s,f>=r&&(f-=(a-1)*s,s=0),f>=r&&d>0&&(u=!0,d*=.9,f=a*d);var h=(r-f)/2>>0,v={offset:h-s,size:0};l=n.reduce((x,w)=>{var S,P={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:v.offset+v.size+s,size:u?d:(S=w.barSize)!==null&&S!==void 0?S:0}},C=[...x,P];return v=P.position,C},c)}else{var m=ht(t,r,0,!0);r-2*m-(a-1)*s<=0&&(s=0);var g=(r-2*m-(a-1)*s)/a;g>1&&(g>>=0);var y=ue(o)?Math.min(g,o):g;l=n.reduce((x,w,S)=>[...x,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(g+s)*S+(g-y)/2,size:y}}],c)}return l}}var ZX=(e,t,r,n,o,i,a)=>{var s=Re(a)?t:a,l=XX(r,n,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>Vs(Vs({},c),{},{position:Vs(Vs({},c.position),{},{offset:c.position.offset-o/2})}))),l},JX=(e,t)=>{var r=jv(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)}}}},QX=(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 eZ(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ue(e.zIndex)?e.zIndex:t}var TM=e=>{var{chartData:t}=e,r=Ce(),n=gt();return O.useEffect(()=>n?()=>{}:(r(rS(t)),()=>{r(rS(void 0))}),[t,r,n]),null},JS={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},_M=Mt({name:"brush",initialState:JS,reducers:{setBrushSettings(e,t){return t.payload==null?JS:t.payload}}}),{setBrushSettings:cpe}=_M.actions,tZ=_M.reducer;function rZ(e){return(e%180+180)%180}var nZ=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=rZ(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)},oZ={dots:[],areas:[],lines:[]},MM=Mt({name:"referenceElements",initialState:oZ,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=rr(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=rr(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=rr(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:upe,removeDot:dpe,addArea:fpe,removeArea:ppe,addLine:hpe,removeLine:mpe}=MM.actions,iZ=MM.reducer,aZ=O.createContext(void 0),sZ=e=>{var{children:t}=e,[r]=O.useState("".concat(Xi("recharts"),"-clip")),n=Sg();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return p.createElement(aZ.Provider,{value:r},p.createElement("defs",null,p.createElement("clipPath",{id:r},p.createElement("rect",{x:o,y:i,height:s,width:a}))),t)};function jM(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 lZ(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return nZ(n,r)}function cZ(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 ua(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 uZ(e,t){return jM(e,t+1)}function dZ(e,t,r,n,o){for(var i=(n||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,d=function(){var v=n?.[l];if(v===void 0)return{v:jM(n,c)};var m=l,g,y=()=>(g===void 0&&(g=r(v,m)),g),x=v.coordinate,w=l===0||ua(e,x,y,u,s);w||(l=0,u=a,c+=1),w&&(u=x+e*(y()/2+o),l+=c)},f;c<=i.length;)if(f=d(),f)return f.v;return[]}function fZ(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,f=!0,h=function(){var S=n[m];if(S==null)return 0;var P=m,C,E=()=>(C===void 0&&(C=r(S,P)),C),A=S.coordinate,_=m===u||ua(e,A,E,d,l);if(!_)return f=!1,1;_&&(d=A+e*(E()/2+o))},v,m=u;m<a&&(v=h(),!(v!==0&&v===1));m+=c);if(f){for(var g=[],y=u;y<a;y+=c){var x=n[y];x!=null&&g.push(x)}return g}}return[]}function QS(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 dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QS(Object(r),!0).forEach(function(n){pZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pZ(e,t,r){return(t=hZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hZ(e){var t=mZ(e,"string");return typeof t=="symbol"?t:t+""}function mZ(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 vZ(e,t,r,n,o){for(var i=(n||[]).slice(),a=i.length,{start:s}=t,{end:l}=t,c=function(f){var h=i[f];if(h==null)return 1;var v=h,m,g=()=>(m===void 0&&(m=r(h,f)),m);if(f===a-1){var y=e*(v.coordinate+e*g()/2-l);i[f]=v=dt(dt({},v),{},{tickCoord:y>0?v.coordinate-y*e:v.coordinate})}else i[f]=v=dt(dt({},v),{},{tickCoord:v.coordinate});if(v.tickCoord!=null){var x=ua(e,v.tickCoord,g,s,l);x&&(l=v.tickCoord-e*(g()/2+o),i[f]=dt(dt({},v),{},{isShow:!0}))}},u=a-1;u>=0;u--)c(u);return i}function gZ(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),f=e*(u.coordinate+e*d/2-c);if(a[s-1]=u=dt(dt({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null){var h=ua(e,u.tickCoord,()=>d,l,c);h&&(c=u.tickCoord-e*(d/2+o),a[s-1]=dt(dt({},u),{},{isShow:!0}))}}}for(var v=i?s-1:s,m=function(x){var w=a[x];if(w==null)return 1;var S=w,P,C=()=>(P===void 0&&(P=r(w,x)),P);if(x===0){var E=e*(S.coordinate-e*C()/2-l);a[x]=S=dt(dt({},S),{},{tickCoord:E<0?S.coordinate-E*e:S.coordinate})}else a[x]=S=dt(dt({},S),{},{tickCoord:S.coordinate});if(S.tickCoord!=null){var A=ua(e,S.tickCoord,C,l,c);A&&(l=S.tickCoord+e*(C()/2+o),a[x]=dt(dt({},S),{},{isShow:!0}))}},g=0;g<v;g++)m(g);return a}function Pg(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)||su.isSsr){var f;return(f=uZ(o,q(l)?l:0))!==null&&f!==void 0?f:[]}var h=[],v=s==="top"||s==="bottom"?"width":"height",m=u&&v==="width"?Hi(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},g=(P,C)=>{var E=typeof c=="function"?c(P.value,C):P.value;return v==="width"?lZ(Hi(E,{fontSize:t,letterSpacing:r}),m,d):Hi(E,{fontSize:t,letterSpacing:r})[v]},y=o[0],x=o[1],w=o.length>=2&&y!=null&&x!=null?et(x.coordinate-y.coordinate):1,S=cZ(i,w,v);return l==="equidistantPreserveStart"?dZ(w,S,g,o,a):l==="equidistantPreserveEnd"?fZ(w,S,g,o,a):(l==="preserveStart"||l==="preserveStartEnd"?h=gZ(w,S,g,o,a,l==="preserveStartEnd"):h=vZ(w,S,g,o,a),h.filter(P=>P.isShow))}var yZ=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},bZ=["axisLine","width","height","className","hide","ticks","axisType"];function xZ(e,t){if(e==null)return{};var r,n,o=wZ(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 wZ(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 co(){return co=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},co.apply(null,arguments)}function eP(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?eP(Object(r),!0).forEach(function(n){SZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SZ(e,t,r){return(t=PZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PZ(e){var t=CZ(e,"string");return typeof t=="symbol"?t:t+""}function CZ(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 Ir={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:Be.axis};function EZ(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=Ie(Ie(Ie({},l),Lt(s)),{},{fill:"none"});if(i==="top"||i==="bottom"){var u=+(i==="top"&&!a||i==="bottom"&&a);c=Ie(Ie({},c),{},{x1:t,y1:r+u*o,x2:t+n,y2:r+u*o})}else{var d=+(i==="left"&&!a||i==="right"&&a);c=Ie(Ie({},c),{},{x1:t+d*n,y1:r,x2:t+d*n,y2:r+o})}return p.createElement("line",co({},c,{className:fe("recharts-cartesian-axis-line",no(s,"className"))}))}function OZ(e,t,r,n,o,i,a,s,l){var c,u,d,f,h,v,m=s?-1:1,g=e.tickSize||a,y=q(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":c=u=e.coordinate,f=r+ +!s*o,d=f-m*g,v=d-m*l,h=y;break;case"left":d=f=e.coordinate,u=t+ +!s*n,c=u-m*g,h=c-m*l,v=y;break;case"right":d=f=e.coordinate,u=t+ +s*n,c=u+m*g,h=c+m*l,v=y;break;default:c=u=e.coordinate,f=r+ +s*o,d=f+m*g,v=d+m*l,h=y;break}return{line:{x1:c,y1:d,x2:u,y2:f},tick:{x:h,y:v}}}function AZ(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function TZ(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function _Z(e){var{option:t,tickProps:r,value:n}=e,o,i=fe(r.className,"recharts-cartesian-axis-tick-value");if(p.isValidElement(t))o=p.cloneElement(t,Ie(Ie({},r),{},{className:i}));else if(typeof t=="function")o=t(Ie(Ie({},r),{},{className:i}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=fe(a,yM(t))),o=p.createElement(Au,co({},r,{className:a}),n)}return o}var MZ=O.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:f,y:h,width:v,height:m,tickSize:g,tickMargin:y,fontSize:x,letterSpacing:w,getTicksConfig:S,events:P,axisType:C}=e,E=Pg(Ie(Ie({},S),{},{ticks:r}),x,w),A=AZ(u,d),_=TZ(u,d),D=Lt(S),R=to(n),T={};typeof o=="object"&&(T=o);var j=Ie(Ie({},D),{},{fill:"none"},T),N=E.map($=>Ie({entry:$},OZ($,f,h,v,m,u,g,d,y))),W=N.map($=>{var{entry:M,line:I}=$;return p.createElement(rt,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},o&&p.createElement("line",co({},j,I,{className:fe("recharts-cartesian-axis-tick-line",no(o,"className"))})))}),B=N.map(($,M)=>{var I,H,{entry:te,tick:oe}=$,ae=Ie(Ie(Ie(Ie({verticalAnchor:_},D),{},{textAnchor:A,stroke:"none",fill:i},oe),{},{index:M,payload:te,visibleTicksCount:E.length,tickFormatter:a,padding:l},c),{},{angle:(I=(H=c?.angle)!==null&&H!==void 0?H:D.angle)!==null&&I!==void 0?I:0}),ie=Ie(Ie({},ae),R);return p.createElement(rt,co({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(te.value,"-").concat(te.coordinate,"-").concat(te.tickCoord)},Oa(P,te,M)),n&&p.createElement(_Z,{option:n,tickProps:ie,value:"".concat(typeof a=="function"?a(te.value,M):te.value).concat(s||"")}))});return p.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(C,"-ticks")},B.length>0&&p.createElement(jt,{zIndex:Be.label},p.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(C,"-tick-labels"),ref:t},B)),W.length>0&&p.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(C,"-tick-lines")},W))}),jZ=O.forwardRef((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l}=e,c=xZ(e,bZ),[u,d]=O.useState(""),[f,h]=O.useState(""),v=O.useRef(null);O.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var g;return yZ({ticks:v.current,label:(g=e.labelRef)===null||g===void 0?void 0:g.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=O.useCallback(g=>{if(g){var y=g.getElementsByClassName("recharts-cartesian-axis-tick-value");v.current=y;var x=y[0];if(x){var w=window.getComputedStyle(x),S=w.fontSize,P=w.letterSpacing;(S!==u||P!==f)&&(d(S),h(P))}}},[u,f]);return a||n!=null&&n<=0||o!=null&&o<=0?null:p.createElement(jt,{zIndex:e.zIndex},p.createElement(rt,{className:fe("recharts-cartesian-axis",i)},p.createElement(EZ,{x:e.x,y:e.y,width:n,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Lt(e)}),p.createElement(MZ,{ref:m,axisType:l,events:c,fontSize:u,getTicksConfig:e,height:e.height,letterSpacing:f,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}),p.createElement(E7,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},p.createElement(I7,{label:e.label,labelRef:e.labelRef}),e.children)))}),Cg=p.forwardRef((e,t)=>{var r=We(e,Ir);return p.createElement(jZ,co({},r,{ref:t}))});Cg.displayName="CartesianAxis";var DZ=["x1","y1","x2","y2","key"],RZ=["offset"],kZ=["xAxisId","yAxisId"],IZ=["xAxisId","yAxisId"];function tP(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?tP(Object(r),!0).forEach(function(n){NZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NZ(e,t,r){return(t=LZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LZ(e){var t=$Z(e,"string");return typeof t=="symbol"?t:t+""}function $Z(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 Un(){return Un=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},Un.apply(null,arguments)}function ac(e,t){if(e==null)return{};var r,n,o=VZ(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 VZ(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 FZ=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 p.createElement("rect",{x:n,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function DM(e){var{option:t,lineItemProps:r}=e,n;if(p.isValidElement(t))n=p.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=ac(r,DZ),d=(o=Lt(u))!==null&&o!==void 0?o:{},{offset:f}=d,h=ac(d,RZ);n=p.createElement("line",Un({},h,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function BZ(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=ac(e,kZ),l=o.map((c,u)=>{var d=ft(ft({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return p.createElement(DM,{key:"line-".concat(u),option:n,lineItemProps:d})});return p.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function zZ(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=ac(e,IZ),l=o.map((c,u)=>{var d=ft(ft({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return p.createElement(DM,{option:n,lineItemProps:d,key:"line-".concat(u)})});return p.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function WZ(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,f)=>d-f);o!==c[0]&&c.unshift(0);var u=c.map((d,f)=>{var h=c[f+1],v=h==null,m=v?o+a-d:h-d;if(m<=0)return null;var g=f%t.length;return p.createElement("rect",{key:"react-".concat(f),y:d,x:n,height:m,width:i,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return p.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function KZ(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,f)=>d-f);o!==c[0]&&c.unshift(0);var u=c.map((d,f)=>{var h=c[f+1],v=h==null,m=v?o+a-d:h-d;if(m<=0)return null;var g=f%r.length;return p.createElement("rect",{key:"react-".concat(f),x:d,y:i,width:m,height:s,stroke:"none",fill:r[g],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return p.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var UZ=(e,t)=>{var{xAxis:r,width:n,height:o,offset:i}=e;return PA(Pg(ft(ft(ft({},Ir),r),{},{ticks:CA(r),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},HZ=(e,t)=>{var{yAxis:r,width:n,height:o,offset:i}=e;return PA(Pg(ft(ft(ft({},Ir),r),{},{ticks:CA(r),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},GZ={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Be.grid};function Eg(e){var t=qm(),r=Ym(),n=jA(),o=ft(ft({},We(e,GZ)),{},{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:f,verticalValues:h}=o,v=gt(),m=Q(_=>K0(_,"xAxis",i,v)),g=Q(_=>K0(_,"yAxis",a,v));if(!Pr(c)||!Pr(u)||!q(s)||!q(l))return null;var y=o.verticalCoordinatesGenerator||UZ,x=o.horizontalCoordinatesGenerator||HZ,{horizontalPoints:w,verticalPoints:S}=o;if((!w||!w.length)&&typeof x=="function"){var P=f&&f.length,C=x({yAxis:g?ft(ft({},g),{},{ticks:P?f:g.ticks}):void 0,width:t??c,height:r??u,offset:n},P?!0:d);Dl(Array.isArray(C),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(w=C)}if((!S||!S.length)&&typeof y=="function"){var E=h&&h.length,A=y({xAxis:m?ft(ft({},m),{},{ticks:E?h:m.ticks}):void 0,width:t??c,height:r??u,offset:n},E?!0:d);Dl(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof A,"]")),Array.isArray(A)&&(S=A)}return p.createElement(jt,{zIndex:o.zIndex},p.createElement("g",{className:"recharts-cartesian-grid"},p.createElement(FZ,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),p.createElement(WZ,Un({},o,{horizontalPoints:w})),p.createElement(KZ,Un({},o,{verticalPoints:S})),p.createElement(BZ,Un({},o,{offset:n,horizontalPoints:w,xAxis:m,yAxis:g})),p.createElement(zZ,Un({},o,{offset:n,verticalPoints:S,xAxis:m,yAxis:g}))))}Eg.displayName="CartesianGrid";var qZ={},RM=Mt({name:"errorBars",initialState:qZ,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:vpe,replaceErrorBar:gpe,removeErrorBar:ype}=RM.actions,YZ=RM.reducer,XZ=["children"];function ZZ(e,t){if(e==null)return{};var r,n,o=JZ(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 JZ(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 QZ={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},eJ=O.createContext(QZ);function kM(e){var{children:t}=e,r=ZZ(e,XZ);return p.createElement(eJ.Provider,{value:r},t)}function Og(e,t){var r,n,o=Q(c=>Qr(c,e)),i=Q(c=>en(c,t)),a=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:Ze.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:Je.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function IM(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=Sg(),{needClipX:i,needClipY:a,needClip:s}=Og(t,r);if(!s||!o)return null;var{x:l,y:c,width:u,height:d}=o;return p.createElement("clipPath",{id:"clipPath-".concat(n)},p.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 NM=(e,t,r,n)=>vn(e,"xAxis",t,n),LM=(e,t,r,n)=>mn(e,"xAxis",t,n),$M=(e,t,r,n)=>vn(e,"yAxis",r,n),VM=(e,t,r,n)=>mn(e,"yAxis",r,n),tJ=k([me,NM,$M,LM,VM],(e,t,r,n,o)=>qr(e,"xAxis")?Yo(t,n,!1):Yo(r,o,!1)),rJ=(e,t,r,n,o)=>o;function nJ(e){return e.type==="line"}var oJ=k([wu,rJ],(e,t)=>e.filter(nJ).find(r=>r.id===t)),iJ=k([me,NM,$M,LM,VM,oJ,tJ,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:f}=i,h;if(f!=null&&f.length>0?h=f:h=l?.slice(c,u+1),h!=null)return GJ({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:o,dataKey:d,bandSize:a,displayedData:h})}});function aJ(e){var t=to(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 Fs={exports:{}},Uf={};var rP;function sJ(){if(rP)return Uf;rP=1;var e=O;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 Uf.useSyncExternalStoreWithSelector=function(l,c,u,d,f){var h=o(null);if(h.current===null){var v={hasValue:!1,value:null};h.current=v}else v=h.current;h=a(function(){function g(P){if(!y){if(y=!0,x=P,P=d(P),f!==void 0&&v.hasValue){var C=v.value;if(f(C,P))return w=C}return w=P}if(C=w,r(x,P))return C;var E=d(P);return f!==void 0&&f(C,E)?(x=P,C):(x=P,w=E)}var y=!1,x,w,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,d,f]);var m=n(l,h[0],h[1]);return i(function(){v.hasValue=!0,v.value=m},[m]),s(m),m},Uf}var Hf={};var nP;function lJ(){return nP||(nP=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=O,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,a=t.useMemo,s=t.useDebugValue;Hf.useSyncExternalStoreWithSelector=function(l,c,u,d,f){var h=o(null);if(h.current===null){var v={hasValue:!1,value:null};h.current=v}else v=h.current;h=a(function(){function g(P){if(!y){if(y=!0,x=P,P=d(P),f!==void 0&&v.hasValue){var C=v.value;if(f(C,P))return w=C}return w=P}if(C=w,r(x,P))return C;var E=d(P);return f!==void 0&&f(C,E)?(x=P,C):(x=P,w=E)}var y=!1,x,w,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,d,f]);var m=n(l,h[0],h[1]);return i(function(){v.hasValue=!0,v.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())})()),Hf}var oP;function cJ(){return oP||(oP=1,process.env.NODE_ENV==="production"?Fs.exports=sJ():Fs.exports=lJ()),Fs.exports}cJ();function uJ(e){e()}function dJ(){let e=null,t=null;return{clear(){e=null,t=null},notify(){uJ(()=>{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 iP={notify(){},get:()=>[]};function fJ(e,t){let r,n=iP,o=0,i=!1;function a(m){u();const g=n.subscribe(m);let y=!1;return()=>{y||(y=!0,g(),d())}}function s(){n.notify()}function l(){v.onStateChange&&v.onStateChange()}function c(){return i}function u(){o++,r||(r=e.subscribe(l),n=dJ())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=iP)}function f(){i||(i=!0,u())}function h(){i&&(i=!1,d())}const v={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:f,tryUnsubscribe:h,getListeners:()=>n};return v}var pJ=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hJ=pJ(),mJ=()=>typeof navigator<"u"&&navigator.product==="ReactNative",vJ=mJ(),gJ=()=>hJ||vJ?p.useLayoutEffect:p.useEffect,yJ=gJ();function aP(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function bJ(e,t){if(aP(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])||!aP(e[r[o]],t[r[o]]))return!1;return!0}var xJ=Symbol.for("react-redux-context"),wJ=typeof globalThis<"u"?globalThis:{};function SJ(){if(!p.createContext)return{};const e=wJ[xJ]??=new Map;let t=e.get(p.createContext);return t||(t=p.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(p.createContext,t)),t}var PJ=SJ();function CJ(e){const{children:t,context:r,serverState:n,store:o}=e,i=p.useMemo(()=>{const l=fJ(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=p.useMemo(()=>o.getState(),[o]);yJ(()=>{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||PJ;return p.createElement(s.Provider,{value:i},t)}var EJ=CJ,OJ=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function AJ(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function ju(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(OJ.has(n)){if(e[n]==null&&t[n]==null)continue;if(!bJ(e[n],t[n]))return!1}else if(!AJ(e[n],t[n]))return!1;return!0}var TJ=["id"],_J=["type","layout","connectNulls","needClip","shape"],MJ=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function da(){return da=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},da.apply(null,arguments)}function sP(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 pr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sP(Object(r),!0).forEach(function(n){jJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jJ(e,t,r){return(t=DJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DJ(e){var t=RJ(e,"string");return typeof t=="symbol"?t:t+""}function RJ(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 Ag(e,t){if(e==null)return{};var r,n,o=kJ(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 kJ(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 IJ=e=>{var{dataKey:t,name:r,stroke:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:ci(r,t),payload:e}]},NJ=p.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:go,settings:{stroke:n,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:ci(a,t),hide:s,type:c,color:n,unit:l,graphicalItemId:u}};return p.createElement(xg,{tooltipEntrySettings:d})}),FM=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function LJ(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],o=0;o<t;++o)n=[...n,...r];return n}var $J=(e,t,r)=>{var n=r.reduce((h,v)=>h+v);if(!n)return FM(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 f=s.length%2===0?[0,a]:[a];return[...LJ(r,o),...s,...f].map(h=>"".concat(h,"px")).join(", ")};function VJ(e){var{clipPathId:t,points:r,props:n}=e,{dot:o,dataKey:i,needClip:a}=n,{id:s}=n,l=Ag(n,TJ),c=Lt(l);return p.createElement(EX,{points:r,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:c,needClip:a,clipPathId:t})}function FJ(e){var{showLabels:t,children:r,points:n}=e,o=O.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 pr(pr({},l),{},{value:i.value,payload:i.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[n]);return p.createElement(fM,{value:t?o:void 0},r)}function lP(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=Ag(i,_J),f=pr(pr({},Et(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 p.createElement(p.Fragment,null,n?.length>1&&p.createElement(vg,da({shapeType:"curve",option:u},f,{pathRef:r})),p.createElement(VJ,{points:n,clipPathId:t,props:i}))}function BJ(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function zJ(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:f,width:h,height:v,onAnimationEnd:m,onAnimationStart:g}=r,y=o.current,x=Ia(a,"recharts-line-"),w=O.useRef(x),[S,P]=O.useState(!1),C=!S,E=O.useCallback(()=>{typeof m=="function"&&m(),P(!1)},[m]),A=O.useCallback(()=>{typeof g=="function"&&g(),P(!0)},[g]),_=BJ(n.current),D=O.useRef(0);w.current!==x&&(D.current=i.current,w.current=x);var R=D.current;return p.createElement(FJ,{points:a,showLabels:C},r.children,p.createElement(ka,{animationId:x,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:E,onAnimationStart:A,key:x},T=>{var j=_e(R,_+R,T),N=Math.min(j,_),W;if(l)if(s){var B="".concat(s).split(/[,\s]+/gim).map(I=>parseFloat(I));W=$J(N,_,B)}else W=FM(_,N);else W=s==null?void 0:String(s);if(T>0&&_>0&&(o.current=a,i.current=Math.max(i.current,N)),y){var $=y.length/a.length,M=T===1?a:a.map((I,H)=>{var te=Math.floor(H*$);if(y[te]){var oe=y[te];return pr(pr({},I),{},{x:_e(oe.x,I.x,T),y:_e(oe.y,I.y,T)})}return f?pr(pr({},I),{},{x:_e(h*2,I.x,T),y:_e(v/2,I.y,T)}):pr(pr({},I),{},{x:I.x,y:I.y})});return o.current=M,p.createElement(lP,{props:r,points:M,clipPathId:t,pathRef:n,strokeDasharray:W})}return p.createElement(lP,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:W})}),p.createElement(fg,{label:r.label}))}function WJ(e){var{clipPathId:t,props:r}=e,n=O.useRef(null),o=O.useRef(0),i=O.useRef(null);return p.createElement(zJ,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:o,pathRef:i})}var KJ=(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:xe(e.payload,t)}};class UJ extends O.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:f,zIndex:h}=this.props;if(t)return null;var v=fe("recharts-line",o),m=d,{r:g,strokeWidth:y}=aJ(r),x=wM(r),w=g*2+y,S=f?"url(#clipPath-".concat(x?"":"dots-").concat(m,")"):void 0;return p.createElement(jt,{zIndex:h},p.createElement(rt,{className:v},f&&p.createElement("defs",null,p.createElement(IM,{clipPathId:m,xAxisId:i,yAxisId:a}),!x&&p.createElement("clipPath",{id:"clipPath-dots-".concat(m)},p.createElement("rect",{x:l-w/2,y:s-w/2,width:c+w,height:u+w}))),p.createElement(kM,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:KJ,errorBarOffset:0},p.createElement(WJ,{props:this.props,clipPathId:m}))),p.createElement(UX,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:S}))}}var BM={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:Be.line,type:"linear"};function HJ(e){var t=We(e,BM),{activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:d,legendType:f,xAxisId:h,yAxisId:v,id:m}=t,g=Ag(t,MJ),{needClip:y}=Og(h,v),x=Sg(),w=yo(),S=gt(),P=Q(D=>iJ(D,h,v,S,m));if(w!=="horizontal"&&w!=="vertical"||P==null||x==null)return null;var{height:C,width:E,x:A,y:_}=x;return p.createElement(UJ,da({},g,{id:m,connectNulls:s,dot:l,activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,isAnimationActive:u,hide:c,label:d,legendType:f,xAxisId:h,yAxisId:v,points:P,layout:w,height:C,width:E,left:A,top:_,needClip:y}))}function GJ(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=xe(c,a);if(t==="horizontal"){var f=Bx({axis:r,ticks:o,bandSize:s,entry:c,index:u}),h=Re(d)?null:n.scale.map(d);return{x:f,y:h??null,value:d,payload:c}}var v=Re(d)?null:r.scale.map(d),m=Bx({axis:n,ticks:i,bandSize:s,entry:c,index:u});return v==null||m==null?null:{x:v,y:m,value:d,payload:c}}).filter(Boolean)}function qJ(e){var t=We(e,BM),r=gt();return p.createElement(wg,{id:t.id,type:"line"},n=>p.createElement(p.Fragment,null,p.createElement(SM,{legendPayload:IJ(t)}),p.createElement(NJ,{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}),p.createElement(CM,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),p.createElement(HJ,da({},t,{id:n}))))}var zM=p.memo(qJ,ju);zM.displayName="Line";function wo(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:OM}function So(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:OM}var YJ=process.env.NODE_ENV==="production",Gf="Invariant failed";function XJ(e,t){if(YJ)throw new Error(Gf);var r=typeof t=="function"?t():t,n=r?"".concat(Gf,": ").concat(r):Gf;throw new Error(n)}function ph(){return ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ph.apply(null,arguments)}function sc(e){return p.createElement(vg,ph({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var ZJ=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)||Re(n);return i?t(n,o):(i||XJ(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},JJ=(e,t,r)=>r,QJ=(e,t)=>t,qa=k([wu,QJ],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),eQ=k([qa],e=>e?.maxBarSize),tQ=(e,t,r,n)=>n,rQ=k([me,wu,wo,So,JJ],(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")),nQ=(e,t,r)=>{var n=me(e),o=wo(e,t),i=So(e,t);if(!(o==null||i==null))return n==="horizontal"?ah(e,"yAxis",i,r):ah(e,"xAxis",o,r)},oQ=(e,t)=>{var r=me(e),n=wo(e,t),o=So(e,t);if(!(n==null||o==null))return r==="horizontal"?W0(e,"xAxis",n):W0(e,"yAxis",o)},iQ=k([rQ,bG,oQ],HX),aQ=(e,t,r)=>{var n,o,i=qa(e,t);if(i==null)return 0;var a=wo(e,t),s=So(e,t);if(a==null||s==null)return 0;var l=me(e),c=UT(e),{maxBarSize:u}=i,d=Re(u)?c:u,f,h;return l==="horizontal"?(f=vn(e,"xAxis",a,r),h=mn(e,"xAxis",a,r)):(f=vn(e,"yAxis",s,r),h=mn(e,"yAxis",s,r)),(n=(o=Yo(f,h,!0))!==null&&o!==void 0?o:d)!==null&&n!==void 0?n:0},WM=(e,t,r)=>{var n=me(e),o=wo(e,t),i=So(e,t);if(!(o==null||i==null)){var a,s;return n==="horizontal"?(a=vn(e,"xAxis",o,r),s=mn(e,"xAxis",o,r)):(a=vn(e,"yAxis",i,r),s=mn(e,"yAxis",i,r)),Yo(a,s)}},sQ=k([iQ,UT,yG,HT,aQ,WM,eQ],ZX),lQ=(e,t,r)=>{var n=wo(e,t);if(n!=null)return vn(e,"xAxis",n,r)},cQ=(e,t,r)=>{var n=So(e,t);if(n!=null)return vn(e,"yAxis",n,r)},uQ=(e,t,r)=>{var n=wo(e,t);if(n!=null)return mn(e,"xAxis",n,r)},dQ=(e,t,r)=>{var n=So(e,t);if(n!=null)return mn(e,"yAxis",n,r)},fQ=k([sQ,qa],QX),pQ=k([nQ,qa],JX),hQ=k([qe,Km,lQ,cQ,uQ,dQ,fQ,me,uG,WM,pQ,qa,tQ],(e,t,r,n,o,i,a,s,l,c,u,d,f)=>{var{chartData:h,dataStartIndex:v,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:g}=d,y;if(g!=null&&g.length>0?y=g:y=h?.slice(v,m+1),y!=null)return zQ({layout:s,barSettings:d,pos:a,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,stackedData:u,displayedData:y,offset:e,cells:f,dataStartIndex:v})}}),mQ=["index"];function hh(){return hh=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},hh.apply(null,arguments)}function vQ(e,t){if(e==null)return{};var r,n,o=gQ(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function gQ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var KM=O.createContext(void 0),yQ=e=>{var t=O.useContext(KM);if(t!=null)return t.stackId;if(e!=null)return n4(e)},bQ=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),xQ=e=>{var t=O.useContext(KM);if(t!=null){var{stackId:r}=t;return"url(#".concat(bQ(r,e),")")}},UM=e=>{var{index:t}=e,r=vQ(e,mQ),n=xQ(t);return p.createElement(rt,hh({className:"recharts-bar-stack-layer",clipPath:n},r))},wQ=["onMouseEnter","onMouseLeave","onClick"],SQ=["value","background","tooltipPosition"],PQ=["id"],CQ=["onMouseEnter","onClick","onMouseLeave"];function zr(){return zr=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},zr.apply(null,arguments)}function cP(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?cP(Object(r),!0).forEach(function(n){EQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EQ(e,t,r){return(t=OQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OQ(e){var t=AQ(e,"string");return typeof t=="symbol"?t:t+""}function AQ(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 lc(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 _Q=e=>{var{dataKey:t,name:r,fill:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:ci(r,t),payload:e}]},MQ=p.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:go,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:t,nameKey:void 0,name:ci(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:c}};return p.createElement(xg,{tooltipEntrySettings:u})});function jQ(e){var t=Q(gn),{data:r,dataKey:n,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=lc(i,wQ),u=gg(a,n,i.id),d=yg(s),f=bg(l,n,i.id);if(!o||r==null)return null;var h=to(o);return p.createElement(jt,{zIndex:eZ(o,Be.barBackground)},r.map((v,m)=>{var{value:g,background:y,tooltipPosition:x}=v,w=lc(v,SQ);if(!y)return null;var S=u(v,m),P=d(v,m),C=f(v,m),E=xt(xt(xt(xt(xt({option:o,isActive:String(m)===t},w),{},{fill:"#eee"},y),h),Oa(c,v,m)),{},{onMouseEnter:S,onMouseLeave:P,onClick:C,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return p.createElement(sc,zr({key:"background-bar-".concat(m)},E))}))}function DQ(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 xt(xt({},a),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:a,fill:i.fill})});return p.createElement(fM,{value:t?o:void 0},r)}function RQ(e){var{shape:t,activeBar:r,baseProps:n,entry:o,index:i,dataKey:a}=e,s=Q(gn),l=Q(og),c=r&&String(i)===s&&(l==null||a===l),u=c?r:t;return c?p.createElement(jt,{zIndex:Be.activeBar},p.createElement(UM,{index:i},p.createElement(sc,zr({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a})))):p.createElement(sc,zr({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a}))}function kQ(e){var{shape:t,baseProps:r,entry:n,index:o,dataKey:i}=e;return p.createElement(sc,zr({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:o,dataKey:i}))}function IQ(e){var t,{data:r,props:n}=e,o=(t=Lt(n))!==null&&t!==void 0?t:{},{id:i}=o,a=lc(o,PQ),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:u,onClick:d,onMouseLeave:f}=n,h=lc(n,CQ),v=gg(u,l,i),m=yg(f),g=bg(d,l,i);return r?p.createElement(p.Fragment,null,r.map((y,x)=>p.createElement(UM,zr({index:x,key:"rectangle-".concat(y?.x,"-").concat(y?.y,"-").concat(y?.value,"-").concat(x),className:"recharts-bar-rectangle"},Oa(h,y,x),{onMouseEnter:v(y,x),onMouseLeave:m(y,x),onClick:g(y,x)}),c?p.createElement(RQ,{shape:s,activeBar:c,baseProps:a,entry:y,index:x,dataKey:l}):p.createElement(kQ,{shape:s,baseProps:a,entry:y,index:x,dataKey:l})))):null}function NQ(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,f=Ia(t,"recharts-bar-"),[h,v]=O.useState(!1),m=!h,g=O.useCallback(()=>{typeof c=="function"&&c(),v(!1)},[c]),y=O.useCallback(()=>{typeof u=="function"&&u(),v(!0)},[u]);return p.createElement(DQ,{showLabels:m,rects:n},p.createElement(ka,{animationId:f,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:g,onAnimationStart:y,key:f},x=>{var w=x===1?n:n?.map((S,P)=>{var C=d&&d[P];if(C)return xt(xt({},S),{},{x:_e(C.x,S.x,x),y:_e(C.y,S.y,x),width:_e(C.width,S.width,x),height:_e(C.height,S.height,x)});if(o==="horizontal"){var E=_e(0,S.height,x),A=_e(S.stackedBarStart,S.y,x);return xt(xt({},S),{},{y:A,height:E})}var _=_e(0,S.width,x),D=_e(S.stackedBarStart,S.x,x);return xt(xt({},S),{},{width:_,x:D})});return x>0&&(r.current=w??null),w==null?null:p.createElement(rt,null,p.createElement(IQ,{props:t,data:w}))}),p.createElement(fg,{label:t.label}),t.children)}function LQ(e){var t=O.useRef(null);return p.createElement(NQ,{previousRectanglesRef:t,props:e})}var HM=0,$Q=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:xe(e,t)}};class VQ extends O.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=fe("recharts-bar",o),d=c;return p.createElement(rt,{className:u,id:c},s&&p.createElement("defs",null,p.createElement(IM,{clipPathId:d,xAxisId:i,yAxisId:a})),p.createElement(rt,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},p.createElement(jQ,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),p.createElement(LQ,this.props)))}}var FQ={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:HM,xAxisId:0,yAxisId:0,zIndex:Be.bar};function BQ(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}=Og(t,r),f=yo(),h=gt(),v=mg(e.children,Ga),m=Q(x=>hQ(x,e.id,h,v));if(f!=="vertical"&&f!=="horizontal")return null;var g,y=m?.[0];return y==null||y.height==null||y.width==null?g=0:g=f==="vertical"?y.height/2:y.width/2,p.createElement(kM,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:$Q,errorBarOffset:g},p.createElement(VQ,zr({},e,{layout:f,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 zQ(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:f,cells:h,parentViewBox:v,dataStartIndex:m}=e,g=t==="horizontal"?s:a,y=u?g.scale.domain():null,x=o4({numericAxis:g}),w=g.scale.map(x);return d.map((S,P)=>{var C,E,A,_,D,R;if(u){var T=u[P+m];if(T==null)return null;C=JW(T,y)}else C=xe(S,r),Array.isArray(C)||(C=[x,C]);var j=ZJ(n,HM)(C[1],P);if(t==="horizontal"){var N,W=s.scale.map(C[0]),B=s.scale.map(C[1]);if(W==null||B==null)return null;E=zx({axis:a,ticks:l,bandSize:i,offset:o.offset,entry:S,index:P}),A=(N=B??W)!==null&&N!==void 0?N:void 0,_=o.size;var $=W-B;if(D=wr($)?0:$,R={x:E,y:f.top,width:_,height:f.height},Math.abs(j)>0&&Math.abs(D)<Math.abs(j)){var M=et(D||j)*(Math.abs(j)-Math.abs(D));A-=M,D+=M}}else{var I=a.scale.map(C[0]),H=a.scale.map(C[1]);if(I==null||H==null)return null;if(E=I,A=zx({axis:s,ticks:c,bandSize:i,offset:o.offset,entry:S,index:P}),_=H-I,D=o.size,R={x:f.left,y:A,width:f.width,height:D},Math.abs(j)>0&&Math.abs(_)<Math.abs(j)){var te=et(_||j)*(Math.abs(j)-Math.abs(_));_+=te}}if(E==null||A==null||_==null||D==null)return null;var oe=xt(xt({},S),{},{stackedBarStart:w,x:E,y:A,width:_,height:D,value:u?C:C[1],payload:S,background:R,tooltipPosition:{x:E+_/2,y:A+D/2},parentViewBox:v},h&&h[P]&&h[P].props);return oe}).filter(Boolean)}function WQ(e){var t=We(e,FQ),r=yQ(t.stackId),n=gt();return p.createElement(wg,{id:t.id,type:"bar"},o=>p.createElement(p.Fragment,null,p.createElement(SM,{legendPayload:_Q(t)}),p.createElement(MQ,{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}),p.createElement(CM,{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}),p.createElement(jt,{zIndex:t.zIndex},p.createElement(BQ,zr({},t,{id:o})))))}var GM=p.memo(WQ,ju);GM.displayName="Bar";var KQ=["domain","range"],UQ=["domain","range"];function uP(e,t){if(e==null)return{};var r,n,o=HQ(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function HQ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function dP(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 qM(e,t){if(e===t)return!0;var{domain:r,range:n}=e,o=uP(e,KQ),{domain:i,range:a}=t,s=uP(t,UQ);return!dP(r,i)||!dP(n,a)?!1:ju(o,s)}var GQ=["type"],qQ=["dangerouslySetInnerHTML","ticks","scale"],YQ=["id","scale"];function mh(){return mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mh.apply(null,arguments)}function fP(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 pP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fP(Object(r),!0).forEach(function(n){XQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XQ(e,t,r){return(t=ZQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZQ(e){var t=JQ(e,"string");return typeof t=="symbol"?t:t+""}function JQ(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 vh(e,t){if(e==null)return{};var r,n,o=QQ(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 QQ(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 eee(e){var t=Ce(),r=O.useRef(null),n=DA(),{type:o}=e,i=vh(e,GQ),a=vu(n,"xAxis",o),s=O.useMemo(()=>{if(a!=null)return pP(pP({},i),{},{type:a})},[i,a]);return O.useLayoutEffect(()=>{s!=null&&(r.current===null?t(MX(s)):r.current!==s&&t(jX({prev:r.current,next:s})),r.current=s)},[s,t]),O.useLayoutEffect(()=>()=>{r.current&&(t(DX(r.current)),r.current=null)},[t]),null}var tee=e=>{var{xAxisId:t,className:r}=e,n=Q(Km),o=gt(),i="xAxis",a=Q(y=>E_(y,i,t,o)),s=Q(y=>w_(y,t)),l=Q(y=>b8(y,t)),c=Q(y=>r_(y,t));if(s==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:f}=e,h=vh(e,qQ),{id:v,scale:m}=c,g=vh(c,YQ);return p.createElement(Cg,mh({},h,g,{x:l.x,y:l.y,width:s.width,height:s.height,className:fe("recharts-".concat(i," ").concat(i),r),viewBox:n,ticks:a,axisType:i}))},ree={allowDataOverflow:Ze.allowDataOverflow,allowDecimals:Ze.allowDecimals,allowDuplicatedCategory:Ze.allowDuplicatedCategory,angle:Ze.angle,axisLine:Ir.axisLine,height:Ze.height,hide:!1,includeHidden:Ze.includeHidden,interval:Ze.interval,label:!1,minTickGap:Ze.minTickGap,mirror:Ze.mirror,orientation:Ze.orientation,padding:Ze.padding,reversed:Ze.reversed,scale:Ze.scale,tick:Ze.tick,tickCount:Ze.tickCount,tickLine:Ir.tickLine,tickSize:Ir.tickSize,type:Ze.type,xAxisId:0},nee=e=>{var t=We(e,ree);return p.createElement(p.Fragment,null,p.createElement(eee,{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}),p.createElement(tee,t))},cc=p.memo(nee,qM);cc.displayName="XAxis";var oee=["type"],iee=["dangerouslySetInnerHTML","ticks","scale"],aee=["id","scale"];function gh(){return gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gh.apply(null,arguments)}function hP(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 mP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(r),!0).forEach(function(n){see(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function see(e,t,r){return(t=lee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lee(e){var t=cee(e,"string");return typeof t=="symbol"?t:t+""}function cee(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 yh(e,t){if(e==null)return{};var r,n,o=uee(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 uee(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 dee(e){var t=Ce(),r=O.useRef(null),n=DA(),{type:o}=e,i=yh(e,oee),a=vu(n,"yAxis",o),s=O.useMemo(()=>{if(a!=null)return mP(mP({},i),{},{type:a})},[a,i]);return O.useLayoutEffect(()=>{s!=null&&(r.current===null?t(RX(s)):r.current!==s&&t(kX({prev:r.current,next:s})),r.current=s)},[s,t]),O.useLayoutEffect(()=>()=>{r.current&&(t(IX(r.current)),r.current=null)},[t]),null}function fee(e){var{yAxisId:t,className:r,width:n,label:o}=e,i=O.useRef(null),a=O.useRef(null),s=Q(Km),l=gt(),c=Ce(),u="yAxis",d=Q(C=>S_(C,t)),f=Q(C=>w8(C,t)),h=Q(C=>E_(C,u,t,l)),v=Q(C=>n_(C,t));if(O.useLayoutEffect(()=>{if(!(n!=="auto"||!d||dg(o)||O.isValidElement(o)||v==null)){var C=i.current;if(C){var E=C.getCalculatedWidth();Math.round(d.width)!==Math.round(E)&&c(NX({id:t,width:E}))}}},[h,d,c,o,t,n,v]),d==null||f==null||v==null)return null;var{dangerouslySetInnerHTML:m,ticks:g,scale:y}=e,x=yh(e,iee),{id:w,scale:S}=v,P=yh(v,aee);return p.createElement(Cg,gh({},x,P,{ref:i,labelRef:a,x:f.x,y:f.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:d.width,height:d.height,className:fe("recharts-".concat(u," ").concat(u),r),viewBox:s,ticks:h,axisType:u}))}var pee={allowDataOverflow:Je.allowDataOverflow,allowDecimals:Je.allowDecimals,allowDuplicatedCategory:Je.allowDuplicatedCategory,angle:Je.angle,axisLine:Ir.axisLine,hide:!1,includeHidden:Je.includeHidden,interval:Je.interval,label:!1,minTickGap:Je.minTickGap,mirror:Je.mirror,orientation:Je.orientation,padding:Je.padding,reversed:Je.reversed,scale:Je.scale,tick:Je.tick,tickCount:Je.tickCount,tickLine:Ir.tickLine,tickSize:Ir.tickSize,type:Je.type,width:Je.width,yAxisId:0},hee=e=>{var t=We(e,pee);return p.createElement(p.Fragment,null,p.createElement(dee,{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}),p.createElement(fee,t))},uc=p.memo(hee,qM);uc.displayName="YAxis";var mee=(e,t)=>t,Tg=k([mee,me,QT,ot,z_,tn,Lq,qe],Kq),_g=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)}},YM=qt("mouseClick"),XM=Ma();XM.startListening({actionCreator:YM,effect:(e,t)=>{var r=e.payload,n=Tg(t.getState(),_g(r));n?.activeIndex!=null&&t.dispatch(I8({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var bh=qt("mouseMove"),ZM=Ma(),Bs=null;ZM.startListening({actionCreator:bh,effect:(e,t)=>{var r=e.payload;Bs!==null&&cancelAnimationFrame(Bs);var n=_g(r);Bs=requestAnimationFrame(()=>{var o=t.getState(),i=Jv(o,o.tooltip.settings.shared);if(i==="axis"){var a=Tg(o,n);a?.activeIndex!=null?t.dispatch(R_({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(D_())}Bs=null})}});function vee(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 vP={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},JM=Mt({name:"rootProps",initialState:vP,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:vP.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}}}),gee=JM.reducer,{updateOptions:yee}=JM.actions,bee=null,xee={updatePolarOptions:(e,t)=>t.payload},QM=Mt({name:"polarOptions",initialState:bee,reducers:xee}),{updatePolarOptions:wee}=QM.actions,See=QM.reducer,ej=qt("keyDown"),tj=qt("focus"),Mg=Ma();Mg.startListening({actionCreator:ej,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=Qv(o,yi(r),Wa(r),Ua(r)),s=a==null?-1:Number(a);if(!(!Number.isFinite(s)||s<0)){var l=tn(r);if(i==="Enter"){var c=tc(r,"axis","hover",String(o.index));t.dispatch(lh({active:!o.active,activeIndex:o.index,activeCoordinate:c}));return}var u=E8(r),d=u==="left-to-right"?1:-1,f=i==="ArrowRight"?1:-1,h=s+f*d;if(!(l==null||h>=l.length||h<0)){var v=tc(r,"axis","hover",String(h));t.dispatch(lh({active:!0,activeIndex:h.toString(),activeCoordinate:v}))}}}}}});Mg.startListening({actionCreator:tj,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=tc(r,"axis","hover",String(i));t.dispatch(lh({active:!0,activeIndex:i,activeCoordinate:a}))}}}});var Bt=qt("externalEvent"),rj=Ma(),qf=new Map;rj.startListening({actionCreator:Bt,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var o=n.type,i=qf.get(o);i!==void 0&&cancelAnimationFrame(i);var a=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:wq(s),activeDataKey:og(s),activeIndex:gn(s),activeLabel:U_(s),activeTooltipIndex:gn(s),isTooltipActive:Sq(s)};r(l,n)}finally{qf.delete(o)}});qf.set(o,a)}}});var Pee=k([vi],e=>e.tooltipItemPayloads),Cee=k([Pee,(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)}}}),nj=qt("touchMove"),oj=Ma();oj.startListening({actionCreator:nj,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),o=Jv(n,n.tooltip.settings.shared);if(o==="axis"){var i=r.touches[0];if(i==null)return;var a=Tg(n,_g({clientX:i.clientX,clientY:i.clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(R_({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(OA),d=(s=c.getAttribute(AA))!==null&&s!==void 0?s:void 0,f=gi(n).find(m=>m.id===d);if(u==null||f==null||d==null)return;var{dataKey:h}=f,v=Cee(n,u,d);t.dispatch(j_({activeDataKey:h,activeIndex:u,activeCoordinate:v,activeGraphicalItemId:d}))}}}});var Eee=KO({brush:tZ,cartesianAxis:LX,chartData:w9,errorBars:YZ,graphicalItems:KY,layout:GW,legend:tK,options:v9,polarAxis:nY,polarOptions:See,referenceElements:iZ,rootProps:gee,tooltip:N8,zIndex:o9}),Oee=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return yW({reducer:Eee,preloadedState:t,middleware:n=>{var o;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([XM.middleware,ZM.middleware,Mg.middleware,rj.middleware,oj.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(cA({type:"raf"}))},devTools:{serialize:{replacer:vee},name:"recharts-".concat(r)}})};function ij(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,o=gt(),i=O.useRef(null);if(o)return r;i.current==null&&(i.current=Oee(t,n));var a=Lm;return p.createElement(EJ,{context:a,store:i.current},r)}function Aee(e){var{layout:t,margin:r}=e,n=Ce(),o=gt();return O.useEffect(()=>{o||(n(KW(t)),n(WW(r)))},[n,o,t,r]),null}var aj=O.memo(Aee,ju);function sj(e){var t=Ce();return O.useEffect(()=>{t(yee(e))},[t,e]),null}function gP(e){var{zIndex:t,isPanorama:r}=e,n=O.useRef(null),o=Ce();return O.useLayoutEffect(()=>(n.current&&o(r9({zIndex:t,element:n.current,isPanorama:r})),()=>{o(n9({zIndex:t,isPanorama:r}))}),[o,t,r]),p.createElement("g",{tabIndex:-1,ref:n})}function yP(e){var{children:t,isPanorama:r}=e,n=Q(Hq);if(!n||n.length===0)return t;var o=n.filter(a=>a<0),i=n.filter(a=>a>0);return p.createElement(p.Fragment,null,o.map(a=>p.createElement(gP,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>p.createElement(gP,{key:a,zIndex:a,isPanorama:r})))}var Tee=["children"];function _ee(e,t){if(e==null)return{};var r,n,o=Mee(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 Mee(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 dc(){return dc=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},dc.apply(null,arguments)}var jee={width:"100%",height:"100%",display:"block"},Dee=O.forwardRef((e,t)=>{var r=qm(),n=Ym(),o=KA();if(!Pr(r)||!Pr(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),p.createElement(Om,dc({},a,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:jee,ref:t}),i)}),Ree=e=>{var{children:t}=e,r=Q(tu);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return p.createElement(Om,{width:n,height:o,x:a,y:i},t)},bP=O.forwardRef((e,t)=>{var{children:r}=e,n=_ee(e,Tee),o=gt();return o?p.createElement(Ree,null,p.createElement(yP,{isPanorama:!0},r)):p.createElement(Dee,dc({ref:t},n),p.createElement(yP,{isPanorama:!1},r))});function kee(){var e=Ce(),[t,r]=O.useState(null),n=Q(u4);return O.useEffect(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;ue(i)&&i!==n&&e(HW(i))}},[t,e,n]),r}function xP(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 Iee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xP(Object(r),!0).forEach(function(n){Nee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nee(e,t,r){return(t=Lee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lee(e){var t=$ee(e,"string");return typeof t=="symbol"?t:t+""}function $ee(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 pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pn.apply(null,arguments)}var Vee=()=>(M9(),null);function fc(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Fee=O.forwardRef((e,t)=>{var r,n,o=O.useRef(null),[i,a]=O.useState({containerWidth:fc((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:fc((n=e.style)===null||n===void 0?void 0:n.height)}),s=O.useCallback((c,u)=>{a(d=>{var f=Math.round(c),h=Math.round(u);return d.containerWidth===f&&d.containerHeight===h?d:{containerWidth:f,containerHeight:h}})},[]),l=O.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:d}=c.getBoundingClientRect();s(u,d);var f=v=>{var m=v[0];if(m!=null){var{width:g,height:y}=m.contentRect;s(g,y)}},h=new ResizeObserver(f);h.observe(c),o.current=h}},[t,s]);return O.useEffect(()=>()=>{var c=o.current;c?.disconnect()},[s]),p.createElement(p.Fragment,null,p.createElement(Da,{width:i.containerWidth,height:i.containerHeight}),p.createElement("div",pn({ref:l},e)))}),Bee=O.forwardRef((e,t)=>{var{width:r,height:n}=e,[o,i]=O.useState({containerWidth:fc(r),containerHeight:fc(n)}),a=O.useCallback((l,c)=>{i(u=>{var d=Math.round(l),f=Math.round(c);return u.containerWidth===d&&u.containerHeight===f?u:{containerWidth:d,containerHeight:f}})},[]),s=O.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();a(c,u)}},[t,a]);return p.createElement(p.Fragment,null,p.createElement(Da,{width:o.containerWidth,height:o.containerHeight}),p.createElement("div",pn({ref:s},e)))}),zee=O.forwardRef((e,t)=>{var{width:r,height:n}=e;return p.createElement(p.Fragment,null,p.createElement(Da,{width:r,height:n}),p.createElement("div",pn({ref:t},e)))}),Wee=O.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?p.createElement(Bee,pn({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?p.createElement(zee,pn({},e,{width:r,height:n,ref:t})):p.createElement(p.Fragment,null,p.createElement(Da,{width:r,height:n}),p.createElement("div",pn({ref:t},e)))});function Kee(e){return e?Fee:Wee}var Uee=O.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:f,onTouchEnd:h,onTouchMove:v,onTouchStart:m,style:g,width:y,responsive:x,dispatchTouchEvents:w=!0}=e,S=O.useRef(null),P=Ce(),[C,E]=O.useState(null),[A,_]=O.useState(null),D=kee(),R=Um(),T=R?.width>0?R.width:y,j=R?.height>0?R.height:o,N=O.useCallback(V=>{D(V),typeof t=="function"&&t(V),E(V),_(V),V!=null&&(S.current=V)},[D,t,E,_]),W=O.useCallback(V=>{P(YM(V)),P(Bt({handler:i,reactEvent:V}))},[P,i]),B=O.useCallback(V=>{P(bh(V)),P(Bt({handler:c,reactEvent:V}))},[P,c]),$=O.useCallback(V=>{P(D_()),P(Bt({handler:u,reactEvent:V}))},[P,u]),M=O.useCallback(V=>{P(bh(V)),P(Bt({handler:d,reactEvent:V}))},[P,d]),I=O.useCallback(()=>{P(tj())},[P]),H=O.useCallback(V=>{P(ej(V.key))},[P]),te=O.useCallback(V=>{P(Bt({handler:a,reactEvent:V}))},[P,a]),oe=O.useCallback(V=>{P(Bt({handler:s,reactEvent:V}))},[P,s]),ae=O.useCallback(V=>{P(Bt({handler:l,reactEvent:V}))},[P,l]),ie=O.useCallback(V=>{P(Bt({handler:f,reactEvent:V}))},[P,f]),ce=O.useCallback(V=>{P(Bt({handler:m,reactEvent:V}))},[P,m]),Ae=O.useCallback(V=>{w&&P(nj(V)),P(Bt({handler:v,reactEvent:V}))},[P,w,v]),K=O.useCallback(V=>{P(Bt({handler:h,reactEvent:V}))},[P,h]),de=Kee(x);return p.createElement(J_.Provider,{value:C},p.createElement(aO.Provider,{value:A},p.createElement(de,{width:T??g?.width,height:j??g?.height,className:fe("recharts-wrapper",n),style:Iee({position:"relative",cursor:"default",width:T,height:j},g),onClick:W,onContextMenu:te,onDoubleClick:oe,onFocus:I,onKeyDown:H,onMouseDown:ae,onMouseEnter:B,onMouseLeave:$,onMouseMove:M,onMouseUp:ie,onTouchEnd:K,onTouchMove:Ae,onTouchStart:ce,ref:N},p.createElement(Vee,null),r)))}),Hee=["width","height","responsive","children","className","style","compact","title","desc"];function Gee(e,t){if(e==null)return{};var r,n,o=qee(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 qee(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 lj=O.forwardRef((e,t)=>{var{width:r,height:n,responsive:o,children:i,className:a,style:s,compact:l,title:c,desc:u}=e,d=Gee(e,Hee),f=Lt(d);return l?p.createElement(p.Fragment,null,p.createElement(Da,{width:r,height:n}),p.createElement(bP,{otherAttributes:f,title:c,desc:u},i)):p.createElement(Uee,{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},p.createElement(bP,{otherAttributes:f,title:c,desc:u,ref:t},p.createElement(sZ,null,i)))});function xh(){return xh=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},xh.apply(null,arguments)}var Yee={top:5,right:5,bottom:5,left:5},Xee={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:Yee,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},cj=O.forwardRef(function(t,r){var n,o=We(t.categoricalChartProps,Xee),{chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,categoricalChartProps:c}=t,u={chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,eventEmitter:void 0};return p.createElement(ij,{preloadedState:{options:u},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:i},p.createElement(TM,{chartData:c.data}),p.createElement(aj,{layout:o.layout,margin:o.margin}),p.createElement(sj,{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}),p.createElement(lj,xh({},o,{ref:r})))}),Zee=["axis"],Jee=O.forwardRef((e,t)=>p.createElement(cj,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Zee,tooltipPayloadSearcher:cg,categoricalChartProps:e,ref:t})),Qee=["axis","item"],ete=O.forwardRef((e,t)=>p.createElement(cj,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Qee,tooltipPayloadSearcher:cg,categoricalChartProps:e,ref:t}));function tte(e){var t=Ce();return O.useEffect(()=>{t(wee(e))},[t,e]),null}var rte=["layout"];function wh(){return wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wh.apply(null,arguments)}function nte(e,t){if(e==null)return{};var r,n,o=ote(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 ote(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 ite={top:5,right:5,bottom:5,left:5},uj={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:ite,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},ate=O.forwardRef(function(t,r){var n,o=We(t.categoricalChartProps,uj),{layout:i}=o,a=nte(o,rte),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=t,d={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return p.createElement(ij,{preloadedState:{options:d},reduxStoreName:(n=o.id)!==null&&n!==void 0?n:s},p.createElement(TM,{chartData:o.data}),p.createElement(aj,{layout:i,margin:o.margin}),p.createElement(sj,{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}),p.createElement(tte,{cx:o.cx,cy:o.cy,startAngle:o.startAngle,endAngle:o.endAngle,innerRadius:o.innerRadius,outerRadius:o.outerRadius}),p.createElement(lj,wh({},a,{ref:r})))});function wP(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 SP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wP(Object(r),!0).forEach(function(n){ste(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ste(e,t,r){return(t=lte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lte(e){var t=cte(e,"string");return typeof t=="symbol"?t:t+""}function cte(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 ute=["item"],dte=SP(SP({},uj),{},{layout:"centric",startAngle:0,endAngle:360}),fte=O.forwardRef((e,t)=>{var r=We(e,dte);return p.createElement(ate,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:ute,tooltipPayloadSearcher:cg,categoricalChartProps:r,ref:t})});const dj=re("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),zs=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],fj=p.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",...f},h)=>{const v=p.useMemo(()=>{if(n)return n;const g=r[0];return g?Object.keys(g).filter(x=>x!=="label"&&typeof g[x]=="number").map((x,w)=>({key:x,name:x.charAt(0).toUpperCase()+x.slice(1),color:zs[w%zs.length]})):[]},[r,n]),m=d==="vertical";return b.jsx("div",{ref:h,className:L(dj({size:t,className:e})),role:"img",...f,children:b.jsx(Hm,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:b.jsxs(ete,{data:r,layout:d,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&b.jsx(Eg,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!m,horizontal:m}),m?b.jsxs(b.Fragment,{children:[b.jsx(cc,{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}),b.jsx(uc,{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})]}):b.jsxs(b.Fragment,{children:[b.jsx(cc,{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}),b.jsx(uc,{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&&b.jsx(ug,{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&&b.jsx(au,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:g=>b.jsx("span",{style:{color:"var(--color-secondary)"},children:g})}),v.map((g,y)=>b.jsx(GM,{dataKey:g.key,name:g.name,fill:g.color||zs[y%zs.length],radius:c,stackId:u?"stack":void 0},g.key))]})})})});fj.displayName="BarChart";const pj=re("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"}}),Sh=re("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}}),hj=p.forwardRef(({className:e,size:t,separator:r=b.jsx(jg,{}),children:n,...o},i)=>{const a=p.Children.toArray(n).filter(p.isValidElement);return b.jsx("nav",{ref:i,"aria-label":"Breadcrumb",...o,children:b.jsx("ol",{className:L(pj({size:t,className:e})),children:a.map((s,l)=>b.jsxs("li",{className:"inline-flex items-center gap-2",children:[s,l<a.length-1&&r]},l))})})});hj.displayName="Breadcrumbs";const mj=p.forwardRef(({className:e,asChild:t=!1,isCurrentPage:r=!1,...n},o)=>{if(r)return b.jsx("span",{className:L(Sh({isCurrentPage:!0,className:e})),"aria-current":"page",children:n.children});const i=t?Oe:"a";return b.jsx(i,{ref:o,className:L(Sh({isCurrentPage:!1,className:e})),...n})});mj.displayName="BreadcrumbItem";const jg=p.forwardRef(({className:e,children:t,...r},n)=>b.jsx("span",{ref:n,role:"presentation","aria-hidden":"true",className:L("text-tertiary",e),...r,children:t??b.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:b.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}));jg.displayName="BreadcrumbSeparator";const In=["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(" "),vj=re("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-6",default:"p-8",lg:"p-10"},bg:{default:"bg-card",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:`${In} [--card-accent-color:var(--color-border)]`,sunflower:`${In} [--card-accent-color:var(--color-sunflower)]`,"warm-purple":`${In} [--card-accent-color:var(--color-warm-purple)]`,"cool-purple":`${In} [--card-accent-color:var(--color-cool-purple)]`,"electric-blue":`${In} [--card-accent-color:var(--color-electric-blue)]`,"deep-blue":`${In} [--card-accent-color:var(--color-deep-blue)]`,error:`${In} [--card-accent-color:var(--color-error)]`}},defaultVariants:{variant:"default",padding:"default",bg:"default",accent:"none"}}),gj=p.forwardRef(({className:e,variant:t,padding:r,bg:n,accent:o,asChild:i=!1,...a},s)=>{const l=i?Oe:"div";return b.jsx(l,{className:L(vj({variant:t,padding:r,bg:n,accent:o,className:e})),ref:s,...a})});gj.displayName="Card";function Ya(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Xa(e){const[t,r]=p.useState(void 0);return tt(()=>{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 Du="Checkbox",[pte]=Ge(Du),[hte,Dg]=pte(Du);function mte(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,[f,h]=ut({prop:r,defaultProp:o??!1,onChange:l,caller:Du}),[v,m]=p.useState(null),[g,y]=p.useState(null),x=p.useRef(!1),w=v?!!a||!!v.closest("form"):!0,S={checked:f,disabled:i,setChecked:h,control:v,setControl:m,name:s,form:a,value:u,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:hn(o)?!1:o,isFormControl:w,bubbleInput:g,setBubbleInput:y};return b.jsx(hte,{scope:t,...S,children:vte(d)?d(S):n})}var yj="CheckboxTrigger",bj=p.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:f,isFormControl:h,bubbleInput:v}=Dg(yj,e),m=ne(o,u),g=p.useRef(l);return p.useEffect(()=>{const y=i?.form;if(y){const x=()=>d(g.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[i,d]),b.jsx(ee.button,{type:"button",role:"checkbox","aria-checked":hn(l)?"mixed":l,"aria-required":c,"data-state":Ej(l),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:m,onKeyDown:U(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:U(r,y=>{d(x=>hn(x)?!0:!x),v&&h&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});bj.displayName=yj;var xj=p.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 b.jsx(mte,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:c,name:n,form:u,value:l,internal_do_not_use_render:({isFormControl:f})=>b.jsxs(b.Fragment,{children:[b.jsx(bj,{...d,ref:t,__scopeCheckbox:r}),f&&b.jsx(Cj,{__scopeCheckbox:r})]})})});xj.displayName=Du;var wj="CheckboxIndicator",Sj=p.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=Dg(wj,r);return b.jsx(vt,{present:n||hn(i.checked)||i.checked===!0,children:b.jsx(ee.span,{"data-state":Ej(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Sj.displayName=wj;var Pj="CheckboxBubbleInput",Cj=p.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:f,setBubbleInput:h}=Dg(Pj,e),v=ne(r,h),m=Ya(i),g=Xa(n);p.useEffect(()=>{const x=f;if(!x)return;const w=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor(w,"checked").set,C=!o.current;if(m!==i&&P){const E=new Event("click",{bubbles:C});x.indeterminate=hn(i),P.call(x,hn(i)?!1:i),x.dispatchEvent(E)}},[f,m,i,o]);const y=p.useRef(hn(i)?!1:i);return b.jsx(ee.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:v,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Cj.displayName=Pj;function vte(e){return typeof e=="function"}function hn(e){return e==="indeterminate"}function Ej(e){return hn(e)?"indeterminate":e?"checked":"unchecked"}const Oj=p.forwardRef(({className:e,...t},r)=>b.jsx(xj,{ref:r,className:L("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:b.jsx(Sj,{className:L("flex items-center justify-center text-current"),children:b.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:b.jsx("polyline",{points:"20 6 9 17 4 12"})})})}));Oj.displayName="Checkbox";const gte=["top","right","bottom","left"],bn=Math.min,Dt=Math.max,pc=Math.round,Ws=Math.floor,br=e=>({x:e,y:e}),yte={left:"right",right:"left",bottom:"top",top:"bottom"},bte={start:"end",end:"start"};function Ph(e,t,r){return Dt(e,bn(t,r))}function Wr(e,t){return typeof e=="function"?e(t):e}function Kr(e){return e.split("-")[0]}function bi(e){return e.split("-")[1]}function Rg(e){return e==="x"?"y":"x"}function kg(e){return e==="y"?"height":"width"}const xte=new Set(["top","bottom"]);function gr(e){return xte.has(Kr(e))?"y":"x"}function Ig(e){return Rg(gr(e))}function wte(e,t,r){r===void 0&&(r=!1);const n=bi(e),o=Ig(e),i=kg(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=hc(a)),[a,hc(a)]}function Ste(e){const t=hc(e);return[Ch(e),t,Ch(t)]}function Ch(e){return e.replace(/start|end/g,t=>bte[t])}const PP=["left","right"],CP=["right","left"],Pte=["top","bottom"],Cte=["bottom","top"];function Ete(e,t,r){switch(e){case"top":case"bottom":return r?t?CP:PP:t?PP:CP;case"left":case"right":return t?Pte:Cte;default:return[]}}function Ote(e,t,r,n){const o=bi(e);let i=Ete(Kr(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Ch)))),i}function hc(e){return e.replace(/left|right|bottom|top/g,t=>yte[t])}function Ate(e){return{top:0,right:0,bottom:0,left:0,...e}}function Aj(e){return typeof e!="number"?Ate(e):{top:e,right:e,bottom:e,left:e}}function mc(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 EP(e,t,r){let{reference:n,floating:o}=e;const i=gr(t),a=Ig(t),s=kg(a),l=Kr(t),c=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-o.width,y:d};break;default:h={x:n.x,y:n.y}}switch(bi(t)){case"start":h[a]-=f*(r&&c?-1:1);break;case"end":h[a]+=f*(r&&c?-1:1);break}return h}async function Tte(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:f=!1,padding:h=0}=Wr(t,e),v=Aj(h),g=s[f?d==="floating"?"reference":"floating":d],y=mc(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(g)))==null||r?g:g.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},P=mc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:l}):x);return{top:(y.top-P.top+v.top)/S.y,bottom:(P.bottom-y.bottom+v.bottom)/S.y,left:(y.left-P.left+v.left)/S.x,right:(P.right-y.right+v.right)/S.x}}const _te=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}=EP(c,n,l),f=n,h={},v=0;for(let g=0;g<s.length;g++){var m;const{name:y,fn:x}=s[g],{x:w,y:S,data:P,reset:C}=await x({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:Tte},elements:{reference:e,floating:t}});u=w??u,d=S??d,h={...h,[y]:{...h[y],...P}},C&&v<=50&&(v++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(c=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:u,y:d}=EP(c,f,l)),g=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}},Mte=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}=Wr(e,t)||{};if(c==null)return{};const d=Aj(u),f={x:r,y:n},h=Ig(o),v=kg(h),m=await a.getDimensions(c),g=h==="y",y=g?"top":"left",x=g?"bottom":"right",w=g?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[h]-f[h]-i.floating[v],P=f[h]-i.reference[h],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let E=C?C[w]:0;(!E||!await(a.isElement==null?void 0:a.isElement(C)))&&(E=s.floating[w]||i.floating[v]);const A=S/2-P/2,_=E/2-m[v]/2-1,D=bn(d[y],_),R=bn(d[x],_),T=D,j=E-m[v]-R,N=E/2-m[v]/2+A,W=Ph(T,N,j),B=!l.arrow&&bi(o)!=null&&N!==W&&i.reference[v]/2-(N<T?D:R)-m[v]/2<0,$=B?N<T?N-T:N-j:0;return{[h]:f[h]+$,data:{[h]:W,centerOffset:N-W-$,...B&&{alignmentOffset:$}},reset:B}}}),jte=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:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...g}=Wr(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=Kr(o),x=gr(s),w=Kr(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),P=f||(w||!m?[hc(s)]:Ste(s)),C=v!=="none";!f&&C&&P.push(...Ote(s,m,v,S));const E=[s,...P],A=await l.detectOverflow(t,g),_=[];let D=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&_.push(A[y]),d){const N=wte(o,a,S);_.push(A[N[0]],A[N[1]])}if(D=[...D,{placement:o,overflows:_}],!_.every(N=>N<=0)){var R,T;const N=(((R=i.flip)==null?void 0:R.index)||0)+1,W=E[N];if(W&&(!(d==="alignment"?x!==gr(W):!1)||D.every(M=>gr(M.placement)===x?M.overflows[0]>0:!0)))return{data:{index:N,overflows:D},reset:{placement:W}};let B=(T=D.filter($=>$.overflows[0]<=0).sort(($,M)=>$.overflows[1]-M.overflows[1])[0])==null?void 0:T.placement;if(!B)switch(h){case"bestFit":{var j;const $=(j=D.filter(M=>{if(C){const I=gr(M.placement);return I===x||I==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(I=>I>0).reduce((I,H)=>I+H,0)]).sort((M,I)=>M[1]-I[1])[0])==null?void 0:j[0];$&&(B=$);break}case"initialPlacement":B=s;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function OP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function AP(e){return gte.some(t=>e[t]>=0)}const Dte=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Wr(e,t);switch(o){case"referenceHidden":{const a=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=OP(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:AP(s)}}}case"escaped":{const a=await n.detectOverflow(t,{...i,altBoundary:!0}),s=OP(a,r.floating);return{data:{escapedOffsets:s,escaped:AP(s)}}}default:return{}}}}},Tj=new Set(["left","top"]);async function Rte(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Kr(r),s=bi(r),l=gr(r)==="y",c=Tj.has(a)?-1:1,u=i&&l?-1:1,d=Wr(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const kte=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 Rte(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}}}}},Ite=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:y=>{let{x,y:w}=y;return{x,y:w}}},...c}=Wr(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),f=gr(Kr(o)),h=Rg(f);let v=u[h],m=u[f];if(a){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",w=v+d[y],S=v-d[x];v=Ph(w,v,S)}if(s){const y=f==="y"?"top":"left",x=f==="y"?"bottom":"right",w=m+d[y],S=m-d[x];m=Ph(w,m,S)}const g=l.fn({...t,[h]:v,[f]:m});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:a,[f]:s}}}}}},Nte=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}=Wr(e,t),u={x:r,y:n},d=gr(o),f=Rg(d);let h=u[f],v=u[d];const m=Wr(s,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=f==="y"?"height":"width",S=i.reference[f]-i.floating[w]+g.mainAxis,P=i.reference[f]+i.reference[w]-g.mainAxis;h<S?h=S:h>P&&(h=P)}if(c){var y,x;const w=f==="y"?"width":"height",S=Tj.has(Kr(o)),P=i.reference[d]-i.floating[w]+(S&&((y=a.offset)==null?void 0:y[d])||0)+(S?0:g.crossAxis),C=i.reference[d]+i.reference[w]+(S?0:((x=a.offset)==null?void 0:x[d])||0)-(S?g.crossAxis:0);v<P?v=P:v>C&&(v=C)}return{[f]:h,[d]:v}}}},Lte=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}=Wr(e,t),u=await a.detectOverflow(t,c),d=Kr(o),f=bi(o),h=gr(o)==="y",{width:v,height:m}=i.floating;let g,y;d==="top"||d==="bottom"?(g=d,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g=f==="end"?"top":"bottom");const x=m-u.top-u.bottom,w=v-u.left-u.right,S=bn(m-u[g],x),P=bn(v-u[y],w),C=!t.middlewareData.shift;let E=S,A=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=x),C&&!f){const D=Dt(u.left,0),R=Dt(u.right,0),T=Dt(u.top,0),j=Dt(u.bottom,0);h?A=v-2*(D!==0||R!==0?D+R:Dt(u.left,u.right)):E=m-2*(T!==0||j!==0?T+j:Dt(u.top,u.bottom))}await l({...t,availableWidth:A,availableHeight:E});const _=await a.getDimensions(s.floating);return v!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}};function Ru(){return typeof window<"u"}function xi(e){return _j(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Tr(e){var t;return(t=(_j(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _j(e){return Ru()?e instanceof Node||e instanceof Nt(e).Node:!1}function or(e){return Ru()?e instanceof Element||e instanceof Nt(e).Element:!1}function Er(e){return Ru()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function TP(e){return!Ru()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}const $te=new Set(["inline","contents"]);function Za(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ir(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!$te.has(o)}const Vte=new Set(["table","td","th"]);function Fte(e){return Vte.has(xi(e))}const Bte=[":popover-open",":modal"];function ku(e){return Bte.some(t=>{try{return e.matches(t)}catch{return!1}})}const zte=["transform","translate","scale","rotate","perspective"],Wte=["transform","translate","scale","rotate","perspective","filter"],Kte=["paint","layout","strict","content"];function Ng(e){const t=Lg(),r=or(e)?ir(e):e;return zte.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)||Wte.some(n=>(r.willChange||"").includes(n))||Kte.some(n=>(r.contain||"").includes(n))}function Ute(e){let t=xn(e);for(;Er(t)&&!ti(t);){if(Ng(t))return t;if(ku(t))return null;t=xn(t)}return null}function Lg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Hte=new Set(["html","body","#document"]);function ti(e){return Hte.has(xi(e))}function ir(e){return Nt(e).getComputedStyle(e)}function Iu(e){return or(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xn(e){if(xi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||TP(e)&&e.host||Tr(e);return TP(t)?t.host:t}function Mj(e){const t=xn(e);return ti(t)?e.ownerDocument?e.ownerDocument.body:e.body:Er(t)&&Za(t)?t:Mj(t)}function fa(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Mj(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Nt(o);if(i){const s=Eh(a);return t.concat(a,a.visualViewport||[],Za(o)?o:[],s&&r?fa(s):[])}return t.concat(o,fa(o,[],r))}function Eh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jj(e){const t=ir(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Er(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=pc(r)!==i||pc(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function $g(e){return or(e)?e:e.contextElement}function Ho(e){const t=$g(e);if(!Er(t))return br(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=jj(t);let a=(i?pc(r.width):r.width)/n,s=(i?pc(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Gte=br(0);function Dj(e){const t=Nt(e);return!Lg()||!t.visualViewport?Gte:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qte(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Nt(e)?!1:t}function uo(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=$g(e);let a=br(1);t&&(n?or(n)&&(a=Ho(n)):a=Ho(e));const s=qte(i,r,n)?Dj(i):br(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 f=Nt(i),h=n&&or(n)?Nt(n):n;let v=f,m=Eh(v);for(;m&&n&&h!==v;){const g=Ho(m),y=m.getBoundingClientRect(),x=ir(m),w=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*g.x,S=y.top+(m.clientTop+parseFloat(x.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=w,c+=S,v=Nt(m),m=Eh(v)}}return mc({width:u,height:d,x:l,y:c})}function Nu(e,t){const r=Iu(e).scrollLeft;return t?t.left+r:uo(Tr(e)).left+r}function Rj(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Nu(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Yte(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=Tr(n),s=t?ku(t.floating):!1;if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=br(1);const u=br(0),d=Er(n);if((d||!d&&!i)&&((xi(n)!=="body"||Za(a))&&(l=Iu(n)),Er(n))){const h=uo(n);c=Ho(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const f=a&&!d&&!i?Rj(a,l):br(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Xte(e){return Array.from(e.getClientRects())}function Zte(e){const t=Tr(e),r=Iu(e),n=e.ownerDocument.body,o=Dt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Dt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Nu(e);const s=-r.scrollTop;return ir(n).direction==="rtl"&&(a+=Dt(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const _P=25;function Jte(e,t){const r=Nt(e),n=Tr(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=Lg();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=Nu(n);if(c<=0){const u=n.ownerDocument,d=u.body,f=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(n.clientWidth-d.clientWidth-h);v<=_P&&(i-=v)}else c<=_P&&(i+=c);return{width:i,height:a,x:s,y:l}}const Qte=new Set(["absolute","fixed"]);function ere(e,t){const r=uo(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Er(e)?Ho(e):br(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 MP(e,t,r){let n;if(t==="viewport")n=Jte(e,r);else if(t==="document")n=Zte(Tr(e));else if(or(t))n=ere(t,r);else{const o=Dj(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return mc(n)}function kj(e,t){const r=xn(e);return r===t||!or(r)||ti(r)?!1:ir(r).position==="fixed"||kj(r,t)}function tre(e,t){const r=t.get(e);if(r)return r;let n=fa(e,[],!1).filter(s=>or(s)&&xi(s)!=="body"),o=null;const i=ir(e).position==="fixed";let a=i?xn(e):e;for(;or(a)&&!ti(a);){const s=ir(a),l=Ng(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&Qte.has(o.position)||Za(a)&&!l&&kj(e,a))?n=n.filter(u=>u!==a):o=s,a=xn(a)}return t.set(e,n),n}function rre(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?ku(t)?[]:tre(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,u)=>{const d=MP(t,u,o);return c.top=Dt(d.top,c.top),c.right=bn(d.right,c.right),c.bottom=bn(d.bottom,c.bottom),c.left=Dt(d.left,c.left),c},MP(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nre(e){const{width:t,height:r}=jj(e);return{width:t,height:r}}function ore(e,t,r){const n=Er(t),o=Tr(t),i=r==="fixed",a=uo(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=br(0);function c(){l.x=Nu(o)}if(n||!n&&!i)if((xi(t)!=="body"||Za(o))&&(s=Iu(t)),n){const h=uo(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=o&&!n&&!i?Rj(o,s):br(0),d=a.left+s.scrollLeft-l.x-u.x,f=a.top+s.scrollTop-l.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function Yf(e){return ir(e).position==="static"}function jP(e,t){if(!Er(e)||ir(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Tr(e)===r&&(r=r.ownerDocument.body),r}function Ij(e,t){const r=Nt(e);if(ku(e))return r;if(!Er(e)){let o=xn(e);for(;o&&!ti(o);){if(or(o)&&!Yf(o))return o;o=xn(o)}return r}let n=jP(e,t);for(;n&&Fte(n)&&Yf(n);)n=jP(n,t);return n&&ti(n)&&Yf(n)&&!Ng(n)?r:n||Ute(e)||r}const ire=async function(e){const t=this.getOffsetParent||Ij,r=this.getDimensions,n=await r(e.floating);return{reference:ore(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function are(e){return ir(e).direction==="rtl"}const sre={convertOffsetParentRelativeRectToViewportRelativeRect:Yte,getDocumentElement:Tr,getClippingRect:rre,getOffsetParent:Ij,getElementRects:ire,getClientRects:Xte,getDimensions:nre,getScale:Ho,isElement:or,isRTL:are};function Nj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lre(e,t){let r=null,n;const o=Tr(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:f,height:h}=c;if(s||t(),!f||!h)return;const v=Ws(d),m=Ws(o.clientWidth-(u+f)),g=Ws(o.clientHeight-(d+h)),y=Ws(u),w={rootMargin:-v+"px "+-m+"px "+-g+"px "+-y+"px",threshold:Dt(0,bn(1,l))||1};let S=!0;function P(C){const E=C[0].intersectionRatio;if(E!==l){if(!S)return a();E?a(!1,E):n=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!Nj(c,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(P,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(P,w)}r.observe(e)}return a(!0),i}function cre(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=$g(e),u=o||i?[...c?fa(c):[],...fa(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const d=c&&s?lre(c,r):null;let f=-1,h=null;a&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),c&&!l&&h.observe(c),h.observe(t));let v,m=l?uo(e):null;l&&g();function g(){const y=uo(e);m&&!Nj(m,y)&&r(),m=y,v=requestAnimationFrame(g)}return r(),()=>{var y;u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const ure=kte,dre=Ite,fre=jte,pre=Lte,hre=Dte,DP=Mte,mre=Nte,vre=(e,t,r)=>{const n=new Map,o={platform:sre,...r},i={...o.platform,_c:n};return _te(e,t,{...o,platform:i})};var gre=typeof document<"u",yre=function(){},il=gre?O.useLayoutEffect:yre;function vc(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(!vc(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)&&!vc(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Lj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function RP(e,t){const r=Lj(e);return Math.round(t*r)/r}function Xf(e){const t=p.useRef(e);return il(()=>{t.current=e}),t}function bre(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]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=p.useState(n);vc(f,n)||h(n);const[v,m]=p.useState(null),[g,y]=p.useState(null),x=p.useCallback(M=>{M!==C.current&&(C.current=M,m(M))},[]),w=p.useCallback(M=>{M!==E.current&&(E.current=M,y(M))},[]),S=i||v,P=a||g,C=p.useRef(null),E=p.useRef(null),A=p.useRef(u),_=l!=null,D=Xf(l),R=Xf(o),T=Xf(c),j=p.useCallback(()=>{if(!C.current||!E.current)return;const M={placement:t,strategy:r,middleware:f};R.current&&(M.platform=R.current),vre(C.current,E.current,M).then(I=>{const H={...I,isPositioned:T.current!==!1};N.current&&!vc(A.current,H)&&(A.current=H,Sa.flushSync(()=>{d(H)}))})},[f,t,r,R,T]);il(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(M=>({...M,isPositioned:!1})))},[c]);const N=p.useRef(!1);il(()=>(N.current=!0,()=>{N.current=!1}),[]),il(()=>{if(S&&(C.current=S),P&&(E.current=P),S&&P){if(D.current)return D.current(S,P,j);j()}},[S,P,j,D,_]);const W=p.useMemo(()=>({reference:C,floating:E,setReference:x,setFloating:w}),[x,w]),B=p.useMemo(()=>({reference:S,floating:P}),[S,P]),$=p.useMemo(()=>{const M={position:r,left:0,top:0};if(!B.floating)return M;const I=RP(B.floating,u.x),H=RP(B.floating,u.y);return s?{...M,transform:"translate("+I+"px, "+H+"px)",...Lj(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:I,top:H}},[r,s,B.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:j,refs:W,elements:B,floatingStyles:$}),[u,j,W,B,$])}const xre=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?DP({element:n.current,padding:o}).fn(r):{}:n?DP({element:n,padding:o}).fn(r):{}}}},wre=(e,t)=>({...ure(e),options:[e,t]}),Sre=(e,t)=>({...dre(e),options:[e,t]}),Pre=(e,t)=>({...mre(e),options:[e,t]}),Cre=(e,t)=>({...fre(e),options:[e,t]}),Ere=(e,t)=>({...pre(e),options:[e,t]}),Ore=(e,t)=>({...hre(e),options:[e,t]}),Are=(e,t)=>({...xre(e),options:[e,t]});var Tre="Arrow",$j=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return b.jsx(ee.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});$j.displayName=Tre;var _re=$j,Vg="Popper",[Vj,An]=Ge(Vg),[Mre,Fj]=Vj(Vg),Bj=e=>{const{__scopePopper:t,children:r}=e,[n,o]=p.useState(null);return b.jsx(Mre,{scope:t,anchor:n,onAnchorChange:o,children:r})};Bj.displayName=Vg;var zj="PopperAnchor",Wj=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=Fj(zj,r),a=p.useRef(null),s=ne(t,a),l=p.useRef(null);return p.useEffect(()=>{const c=l.current;l.current=n?.current||a.current,c!==l.current&&i.onAnchorChange(l.current)}),n?null:b.jsx(ee.div,{...o,ref:s})});Wj.displayName=zj;var Fg="PopperContent",[jre,Dre]=Vj(Fg),Kj=p.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:f=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,g=Fj(Fg,r),[y,x]=p.useState(null),w=ne(t,K=>x(K)),[S,P]=p.useState(null),C=Xa(S),E=C?.width??0,A=C?.height??0,_=n+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},R=Array.isArray(c)?c:[c],T=R.length>0,j={padding:D,boundary:R.filter(kre),altBoundary:T},{refs:N,floatingStyles:W,placement:B,isPositioned:$,middlewareData:M}=bre({strategy:"fixed",placement:_,whileElementsMounted:(...K)=>cre(...K,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[wre({mainAxis:o+A,alignmentAxis:a}),l&&Sre({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Pre():void 0,...j}),l&&Cre({...j}),Ere({...j,apply:({elements:K,rects:de,availableWidth:V,availableHeight:G})=>{const{width:z,height:F}=de.reference,pe=K.floating.style;pe.setProperty("--radix-popper-available-width",`${V}px`),pe.setProperty("--radix-popper-available-height",`${G}px`),pe.setProperty("--radix-popper-anchor-width",`${z}px`),pe.setProperty("--radix-popper-anchor-height",`${F}px`)}}),S&&Are({element:S,padding:s}),Ire({arrowWidth:E,arrowHeight:A}),f&&Ore({strategy:"referenceHidden",...j})]}),[I,H]=Gj(B),te=mt(v);tt(()=>{$&&te?.()},[$,te]);const oe=M.arrow?.x,ae=M.arrow?.y,ie=M.arrow?.centerOffset!==0,[ce,Ae]=p.useState();return tt(()=>{y&&Ae(window.getComputedStyle(y).zIndex)},[y]),b.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:$?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(jre,{scope:r,placedSide:I,onArrowChange:P,arrowX:oe,arrowY:ae,shouldHideArrow:ie,children:b.jsx(ee.div,{"data-side":I,"data-align":H,...m,ref:w,style:{...m.style,animation:$?void 0:"none"}})})})});Kj.displayName=Fg;var Uj="PopperArrow",Rre={top:"bottom",right:"left",bottom:"top",left:"right"},Hj=p.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=Dre(Uj,n),a=Rre[i.placedSide];return b.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:b.jsx(_re,{...o,ref:r,style:{...o.style,display:"block"}})})});Hj.displayName=Uj;function kre(e){return e!==null}var Ire=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]=Gj(r),d={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+s/2,h=(o.arrow?.y??0)+l/2;let v="",m="";return c==="bottom"?(v=a?d:`${f}px`,m=`${-l}px`):c==="top"?(v=a?d:`${f}px`,m=`${n.floating.height+l}px`):c==="right"?(v=`${-l}px`,m=a?d:`${h}px`):c==="left"&&(v=`${n.floating.width+l}px`,m=a?d:`${h}px`),{data:{x:v,y:m}}}});function Gj(e){const[t,r="center"]=e.split("-");return[t,r]}var Ja=Bj,Qa=Wj,Lu=Kj,$u=Hj,Zf="rovingFocusGroup.onEntryFocus",Nre={bubbles:!1,cancelable:!0},es="RovingFocusGroup",[Oh,qj,Lre]=ii(es),[$re,Vu]=Ge(es,[Lre]),[Vre,Fre]=$re(es),Yj=p.forwardRef((e,t)=>b.jsx(Oh.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Oh.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Bre,{...e,ref:t})})}));Yj.displayName=es;var Bre=p.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,f=p.useRef(null),h=ne(t,f),v=ai(i),[m,g]=ut({prop:a,defaultProp:s??null,onChange:l,caller:es}),[y,x]=p.useState(!1),w=mt(c),S=qj(r),P=p.useRef(!1),[C,E]=p.useState(0);return p.useEffect(()=>{const A=f.current;if(A)return A.addEventListener(Zf,w),()=>A.removeEventListener(Zf,w)},[w]),b.jsx(Vre,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:p.useCallback(A=>g(A),[g]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>E(A=>A+1),[]),onFocusableItemRemove:p.useCallback(()=>E(A=>A-1),[]),children:b.jsx(ee.div,{tabIndex:y||C===0?-1:0,"data-orientation":n,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{P.current=!0}),onFocus:U(e.onFocus,A=>{const _=!P.current;if(A.target===A.currentTarget&&_&&!y){const D=new CustomEvent(Zf,Nre);if(A.currentTarget.dispatchEvent(D),!D.defaultPrevented){const R=S().filter(B=>B.focusable),T=R.find(B=>B.active),j=R.find(B=>B.id===m),W=[T,j,...R].filter(Boolean).map(B=>B.ref.current);Jj(W,u)}}P.current=!1}),onBlur:U(e.onBlur,()=>x(!1))})})}),Xj="RovingFocusGroupItem",Zj=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:a,...s}=e,l=Ct(),c=i||l,u=Fre(Xj,r),d=u.currentTabStopId===c,f=qj(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=u;return p.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),b.jsx(Oh.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:b.jsx(ee.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:U(e.onMouseDown,g=>{n?u.onItemFocus(c):g.preventDefault()}),onFocus:U(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:U(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Kre(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let w=f().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")w.reverse();else if(y==="prev"||y==="next"){y==="prev"&&w.reverse();const S=w.indexOf(g.currentTarget);w=u.loop?Ure(w,S+1):w.slice(S+1)}setTimeout(()=>Jj(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});Zj.displayName=Xj;var zre={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Wre(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Kre(e,t,r){const n=Wre(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return zre[n]}function Jj(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Ure(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Qj=Yj,eD=Zj;function Hre(e){const t=Gre(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(Yre);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function Gre(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=Zre(o),s=Xre(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Ar(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qre=Symbol("radix.slottable");function Yre(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qre}function Xre(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 Zre(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 Ah=["Enter"," "],Jre=["ArrowDown","PageUp","Home"],tD=["ArrowUp","PageDown","End"],Qre=[...Jre,...tD],ene={ltr:[...Ah,"ArrowRight"],rtl:[...Ah,"ArrowLeft"]},tne={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ts="Menu",[pa,rne,nne]=ii(ts),[Po,Fu]=Ge(ts,[nne,An,Vu]),rs=An(),rD=Vu(),[nD,Tn]=Po(ts),[one,ns]=Po(ts),oD=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:a=!0}=e,s=rs(t),[l,c]=p.useState(null),u=p.useRef(!1),d=mt(i),f=ai(o);return p.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),b.jsx(Ja,{...s,children:b.jsx(nD,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:b.jsx(one,{scope:t,onClose:p.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:a,children:n})})})};oD.displayName=ts;var ine="MenuAnchor",Bg=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=rs(r);return b.jsx(Qa,{...o,...n,ref:t})});Bg.displayName=ine;var zg="MenuPortal",[ane,iD]=Po(zg,{forceMount:void 0}),aD=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=Tn(zg,t);return b.jsx(ane,{scope:t,forceMount:r,children:b.jsx(vt,{present:r||i.open,children:b.jsx(vo,{asChild:!0,container:o,children:n})})})};aD.displayName=zg;var Ut="MenuContent",[sne,Wg]=Po(Ut),sD=p.forwardRef((e,t)=>{const r=iD(Ut,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=Tn(Ut,e.__scopeMenu),a=ns(Ut,e.__scopeMenu);return b.jsx(pa.Provider,{scope:e.__scopeMenu,children:b.jsx(vt,{present:n||i.open,children:b.jsx(pa.Slot,{scope:e.__scopeMenu,children:a.modal?b.jsx(lne,{...o,ref:t}):b.jsx(cne,{...o,ref:t})})})})}),lne=p.forwardRef((e,t)=>{const r=Tn(Ut,e.__scopeMenu),n=p.useRef(null),o=ne(t,n);return p.useEffect(()=>{const i=n.current;if(i)return Nc(i)},[]),b.jsx(Kg,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),cne=p.forwardRef((e,t)=>{const r=Tn(Ut,e.__scopeMenu);return b.jsx(Kg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),une=Hre("MenuContent.ScrollLock"),Kg=p.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:f,onDismiss:h,disableOutsideScroll:v,...m}=e,g=Tn(Ut,r),y=ns(Ut,r),x=rs(r),w=rD(r),S=rne(r),[P,C]=p.useState(null),E=p.useRef(null),A=ne(t,E,g.onContentChange),_=p.useRef(0),D=p.useRef(""),R=p.useRef(0),T=p.useRef(null),j=p.useRef("right"),N=p.useRef(0),W=v?Ca:p.Fragment,B=v?{as:une,allowPinchZoom:!0}:void 0,$=I=>{const H=D.current+I,te=S().filter(K=>!K.disabled),oe=document.activeElement,ae=te.find(K=>K.ref.current===oe)?.textValue,ie=te.map(K=>K.textValue),ce=Sne(ie,H,ae),Ae=te.find(K=>K.textValue===ce)?.ref.current;(function K(de){D.current=de,window.clearTimeout(_.current),de!==""&&(_.current=window.setTimeout(()=>K(""),1e3))})(H),Ae&&setTimeout(()=>Ae.focus())};p.useEffect(()=>()=>window.clearTimeout(_.current),[]),kc();const M=p.useCallback(I=>j.current===T.current?.side&&Cne(I,T.current?.area),[]);return b.jsx(sne,{scope:r,searchRef:D,onItemEnter:p.useCallback(I=>{M(I)&&I.preventDefault()},[M]),onItemLeave:p.useCallback(I=>{M(I)||(E.current?.focus(),C(null))},[M]),onTriggerLeave:p.useCallback(I=>{M(I)&&I.preventDefault()},[M]),pointerGraceTimerRef:R,onPointerGraceIntentChange:p.useCallback(I=>{T.current=I},[]),children:b.jsx(W,{...B,children:b.jsx(Pa,{asChild:!0,trapped:o,onMountAutoFocus:U(i,I=>{I.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:b.jsx(mo,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:b.jsx(Qj,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:P,onCurrentTabStopIdChange:C,onEntryFocus:U(l,I=>{y.isUsingKeyboardRef.current||I.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(Lu,{role:"menu","aria-orientation":"vertical","data-state":CD(g.open),"data-radix-menu-content":"",dir:y.dir,...x,...m,ref:A,style:{outline:"none",...m.style},onKeyDown:U(m.onKeyDown,I=>{const te=I.target.closest("[data-radix-menu-content]")===I.currentTarget,oe=I.ctrlKey||I.altKey||I.metaKey,ae=I.key.length===1;te&&(I.key==="Tab"&&I.preventDefault(),!oe&&ae&&$(I.key));const ie=E.current;if(I.target!==ie||!Qre.includes(I.key))return;I.preventDefault();const Ae=S().filter(K=>!K.disabled).map(K=>K.ref.current);tD.includes(I.key)&&Ae.reverse(),xne(Ae)}),onBlur:U(e.onBlur,I=>{I.currentTarget.contains(I.target)||(window.clearTimeout(_.current),D.current="")}),onPointerMove:U(e.onPointerMove,ha(I=>{const H=I.target,te=N.current!==I.clientX;if(I.currentTarget.contains(H)&&te){const oe=I.clientX>N.current?"right":"left";j.current=oe,N.current=I.clientX}}))})})})})})})});sD.displayName=Ut;var dne="MenuGroup",Ug=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(ee.div,{role:"group",...n,ref:t})});Ug.displayName=dne;var fne="MenuLabel",lD=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(ee.div,{...n,ref:t})});lD.displayName=fne;var gc="MenuItem",kP="menu.itemSelect",Bu=p.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=p.useRef(null),a=ns(gc,e.__scopeMenu),s=Wg(gc,e.__scopeMenu),l=ne(t,i),c=p.useRef(!1),u=()=>{const d=i.current;if(!r&&d){const f=new CustomEvent(kP,{bubbles:!0,cancelable:!0});d.addEventListener(kP,h=>n?.(h),{once:!0}),fm(d,f),f.defaultPrevented?c.current=!1:a.onClose()}};return b.jsx(cD,{...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 f=s.searchRef.current!=="";r||f&&d.key===" "||Ah.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Bu.displayName=gc;var cD=p.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,a=Wg(gc,r),s=rD(r),l=p.useRef(null),c=ne(t,l),[u,d]=p.useState(!1),[f,h]=p.useState("");return p.useEffect(()=>{const v=l.current;v&&h((v.textContent??"").trim())},[i.children]),b.jsx(pa.ItemSlot,{scope:r,disabled:n,textValue:o??f,children:b.jsx(eD,{asChild:!0,...s,focusable:!n,children:b.jsx(ee.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,ha(v=>{n?a.onItemLeave(v):(a.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:U(e.onPointerLeave,ha(v=>a.onItemLeave(v))),onFocus:U(e.onFocus,()=>d(!0)),onBlur:U(e.onBlur,()=>d(!1))})})})}),pne="MenuCheckboxItem",uD=p.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return b.jsx(mD,{scope:e.__scopeMenu,checked:r,children:b.jsx(Bu,{role:"menuitemcheckbox","aria-checked":yc(r)?"mixed":r,...o,ref:t,"data-state":qg(r),onSelect:U(o.onSelect,()=>n?.(yc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});uD.displayName=pne;var dD="MenuRadioGroup",[hne,mne]=Po(dD,{value:void 0,onValueChange:()=>{}}),fD=p.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=mt(n);return b.jsx(hne,{scope:e.__scopeMenu,value:r,onValueChange:i,children:b.jsx(Ug,{...o,ref:t})})});fD.displayName=dD;var pD="MenuRadioItem",hD=p.forwardRef((e,t)=>{const{value:r,...n}=e,o=mne(pD,e.__scopeMenu),i=r===o.value;return b.jsx(mD,{scope:e.__scopeMenu,checked:i,children:b.jsx(Bu,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":qg(i),onSelect:U(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});hD.displayName=pD;var Hg="MenuItemIndicator",[mD,vne]=Po(Hg,{checked:!1}),vD=p.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=vne(Hg,r);return b.jsx(vt,{present:n||yc(i.checked)||i.checked===!0,children:b.jsx(ee.span,{...o,ref:t,"data-state":qg(i.checked)})})});vD.displayName=Hg;var gne="MenuSeparator",gD=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});gD.displayName=gne;var yne="MenuArrow",yD=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=rs(r);return b.jsx($u,{...o,...n,ref:t})});yD.displayName=yne;var Gg="MenuSub",[bne,bD]=Po(Gg),xD=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=Tn(Gg,t),a=rs(t),[s,l]=p.useState(null),[c,u]=p.useState(null),d=mt(o);return p.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),b.jsx(Ja,{...a,children:b.jsx(nD,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:b.jsx(bne,{scope:t,contentId:Ct(),triggerId:Ct(),trigger:s,onTriggerChange:l,children:r})})})};xD.displayName=Gg;var Wi="MenuSubTrigger",wD=p.forwardRef((e,t)=>{const r=Tn(Wi,e.__scopeMenu),n=ns(Wi,e.__scopeMenu),o=bD(Wi,e.__scopeMenu),i=Wg(Wi,e.__scopeMenu),a=p.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=p.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return p.useEffect(()=>u,[u]),p.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),b.jsx(Bg,{asChild:!0,...c,children:b.jsx(cD,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":CD(r.open),...e,ref:Ar(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:U(e.onPointerMove,ha(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,ha(d=>{u();const f=r.content?.getBoundingClientRect();if(f){const h=r.content?.dataset.side,v=h==="right",m=v?-5:5,g=f[v?"left":"right"],y=f[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:g,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:g,y:f.bottom}],side:h}),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 f=i.searchRef.current!=="";e.disabled||f&&d.key===" "||ene[n.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});wD.displayName=Wi;var SD="MenuSubContent",PD=p.forwardRef((e,t)=>{const r=iD(Ut,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=Tn(Ut,e.__scopeMenu),a=ns(Ut,e.__scopeMenu),s=bD(SD,e.__scopeMenu),l=p.useRef(null),c=ne(t,l);return b.jsx(pa.Provider,{scope:e.__scopeMenu,children:b.jsx(vt,{present:n||i.open,children:b.jsx(pa.Slot,{scope:e.__scopeMenu,children:b.jsx(Kg,{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),f=tne[a.dir].includes(u.key);d&&f&&(i.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});PD.displayName=SD;function CD(e){return e?"open":"closed"}function yc(e){return e==="indeterminate"}function qg(e){return yc(e)?"indeterminate":e?"checked":"unchecked"}function xne(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function wne(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Sne(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=wne(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 Pne(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,f=l.y;u>n!=f>n&&r<(d-c)*(n-u)/(f-u)+c&&(o=!o)}return o}function Cne(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return Pne(r,t)}function ha(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ED=oD,OD=Bg,AD=aD,TD=sD,_D=Ug,MD=lD,jD=Bu,DD=uD,RD=fD,kD=hD,ID=vD,ND=gD,LD=yD,$D=xD,VD=wD,FD=PD,Yg="ContextMenu",[Ene]=Ge(Yg,[Fu]),yt=Fu(),[One,BD]=Ene(Yg),zD=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:o,modal:i=!0}=e,[a,s]=p.useState(!1),l=yt(t),c=mt(n),u=p.useCallback(d=>{s(d),c(d)},[c]);return b.jsx(One,{scope:t,open:a,onOpenChange:u,modal:i,children:b.jsx(ED,{...l,dir:o,open:a,onOpenChange:u,modal:i,children:r})})};zD.displayName=Yg;var WD="ContextMenuTrigger",KD=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...o}=e,i=BD(WD,r),a=yt(r),s=p.useRef({x:0,y:0}),l=p.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),c=p.useRef(0),u=p.useCallback(()=>window.clearTimeout(c.current),[]),d=f=>{s.current={x:f.clientX,y:f.clientY},i.onOpenChange(!0)};return p.useEffect(()=>u,[u]),p.useEffect(()=>{n&&u()},[n,u]),b.jsxs(b.Fragment,{children:[b.jsx(OD,{...a,virtualRef:l}),b.jsx(ee.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,f=>{u(),d(f),f.preventDefault()}),onPointerDown:n?e.onPointerDown:U(e.onPointerDown,Ks(f=>{u(),c.current=window.setTimeout(()=>d(f),700)})),onPointerMove:n?e.onPointerMove:U(e.onPointerMove,Ks(u)),onPointerCancel:n?e.onPointerCancel:U(e.onPointerCancel,Ks(u)),onPointerUp:n?e.onPointerUp:U(e.onPointerUp,Ks(u))})]})});KD.displayName=WD;var Ane="ContextMenuPortal",UD=e=>{const{__scopeContextMenu:t,...r}=e,n=yt(t);return b.jsx(AD,{...n,...r})};UD.displayName=Ane;var HD="ContextMenuContent",GD=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=BD(HD,r),i=yt(r),a=p.useRef(!1);return b.jsx(TD,{...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)"}})});GD.displayName=HD;var Tne="ContextMenuGroup",qD=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(_D,{...o,...n,ref:t})});qD.displayName=Tne;var _ne="ContextMenuLabel",YD=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(MD,{...o,...n,ref:t})});YD.displayName=_ne;var Mne="ContextMenuItem",XD=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(jD,{...o,...n,ref:t})});XD.displayName=Mne;var jne="ContextMenuCheckboxItem",ZD=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(DD,{...o,...n,ref:t})});ZD.displayName=jne;var Dne="ContextMenuRadioGroup",JD=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(RD,{...o,...n,ref:t})});JD.displayName=Dne;var Rne="ContextMenuRadioItem",QD=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(kD,{...o,...n,ref:t})});QD.displayName=Rne;var kne="ContextMenuItemIndicator",eR=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(ID,{...o,...n,ref:t})});eR.displayName=kne;var Ine="ContextMenuSeparator",tR=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(ND,{...o,...n,ref:t})});tR.displayName=Ine;var Nne="ContextMenuArrow",Lne=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(LD,{...o,...n,ref:t})});Lne.displayName=Nne;var rR="ContextMenuSub",nR=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:o,defaultOpen:i}=e,a=yt(t),[s,l]=ut({prop:o,defaultProp:i??!1,onChange:n,caller:rR});return b.jsx($D,{...a,open:s,onOpenChange:l,children:r})};nR.displayName=rR;var $ne="ContextMenuSubTrigger",oR=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(VD,{...o,...n,ref:t})});oR.displayName=$ne;var Vne="ContextMenuSubContent",iR=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=yt(r);return b.jsx(FD,{...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)"}})});iR.displayName=Vne;function Ks(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var Fne=zD,Bne=KD,zne=UD,Wne=GD,Kne=qD,Une=YD,Hne=XD,Gne=ZD,qne=JD,Yne=QD,aR=eR,Xne=tR,Zne=nR,Jne=oR,Qne=iR;const eoe=Fne,toe=Bne,roe=Kne,sR=zne,noe=Zne,ooe=qne,lR=p.forwardRef(({className:e,inset:t,children:r,...n},o)=>b.jsxs(Jne,{ref:o,className:L("text-body-sm 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,b.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:b.jsx("path",{d:"m9 18 6-6-6-6"})})]}));lR.displayName="ContextMenuSubTrigger";const cR=p.forwardRef(({className:e,...t},r)=>b.jsx(Qne,{ref:r,className:L("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}));cR.displayName="ContextMenuSubContent";const uR=p.forwardRef(({className:e,...t},r)=>b.jsx(sR,{children:b.jsx(Wne,{ref:r,className:L("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})}));uR.displayName="ContextMenuContent";const dR=p.forwardRef(({className:e,inset:t,...r},n)=>b.jsx(Hne,{ref:n,className:L("text-body-sm 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}));dR.displayName="ContextMenuItem";const fR=p.forwardRef(({className:e,children:t,checked:r,...n},o)=>b.jsxs(Gne,{ref:o,className:L("text-body-sm 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:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(aR,{children:b.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:b.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));fR.displayName="ContextMenuCheckboxItem";const pR=p.forwardRef(({className:e,children:t,...r},n)=>b.jsxs(Yne,{ref:n,className:L("text-body-sm 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:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(aR,{children:b.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:b.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));pR.displayName="ContextMenuRadioItem";const hR=p.forwardRef(({className:e,inset:t,...r},n)=>b.jsx(Une,{ref:n,className:L("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));hR.displayName="ContextMenuLabel";const mR=p.forwardRef(({className:e,...t},r)=>b.jsx(Xne,{ref:r,className:L("bg-border -mx-1 my-1 h-px",e),...t}));mR.displayName="ContextMenuSeparator";const vR=p.forwardRef(({className:e,...t},r)=>b.jsx("span",{ref:r,className:L("text-small text-tertiary ml-auto tracking-widest",e),...t}));vR.displayName="ContextMenuShortcut";function ioe(e){const t=aoe(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(loe);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function aoe(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=uoe(o),s=coe(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Ar(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var soe=Symbol("radix.slottable");function loe(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===soe}function coe(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 uoe(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 zu="Popover",[gR]=Ge(zu,[An]),os=An(),[doe,_n]=gR(zu),yR=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=os(t),l=p.useRef(null),[c,u]=p.useState(!1),[d,f]=ut({prop:n,defaultProp:o??!1,onChange:i,caller:zu});return b.jsx(Ja,{...s,children:b.jsx(doe,{scope:t,contentId:Ct(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:c,onCustomAnchorAdd:p.useCallback(()=>u(!0),[]),onCustomAnchorRemove:p.useCallback(()=>u(!1),[]),modal:a,children:r})})};yR.displayName=zu;var bR="PopoverAnchor",foe=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=_n(bR,r),i=os(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return p.useEffect(()=>(a(),()=>s()),[a,s]),b.jsx(Qa,{...i,...n,ref:t})});foe.displayName=bR;var xR="PopoverTrigger",wR=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=_n(xR,r),i=os(r),a=ne(t,o.triggerRef),s=b.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":OR(o.open),...n,ref:a,onClick:U(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:b.jsx(Qa,{asChild:!0,...i,children:s})});wR.displayName=xR;var Xg="PopoverPortal",[poe,hoe]=gR(Xg,{forceMount:void 0}),SR=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=_n(Xg,t);return b.jsx(poe,{scope:t,forceMount:r,children:b.jsx(vt,{present:r||i.open,children:b.jsx(vo,{asChild:!0,container:o,children:n})})})};SR.displayName=Xg;var ri="PopoverContent",PR=p.forwardRef((e,t)=>{const r=hoe(ri,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=_n(ri,e.__scopePopover);return b.jsx(vt,{present:n||i.open,children:i.modal?b.jsx(voe,{...o,ref:t}):b.jsx(goe,{...o,ref:t})})});PR.displayName=ri;var moe=ioe("PopoverContent.RemoveScroll"),voe=p.forwardRef((e,t)=>{const r=_n(ri,e.__scopePopover),n=p.useRef(null),o=ne(t,n),i=p.useRef(!1);return p.useEffect(()=>{const a=n.current;if(a)return Nc(a)},[]),b.jsx(Ca,{as:moe,allowPinchZoom:!0,children:b.jsx(CR,{...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})})})}),goe=p.forwardRef((e,t)=>{const r=_n(ri,e.__scopePopover),n=p.useRef(!1),o=p.useRef(!1);return b.jsx(CR,{...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()}})}),CR=p.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=_n(ri,r),h=os(r);return kc(),b.jsx(Pa,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(mo,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:b.jsx(Lu,{"data-state":OR(f.open),role:"dialog",id:f.contentId,...h,...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)"}})})})}),ER="PopoverClose",yoe=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=_n(ER,r);return b.jsx(ee.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});yoe.displayName=ER;var boe="PopoverArrow",xoe=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=os(r);return b.jsx($u,{...o,...n,ref:t})});xoe.displayName=boe;function OR(e){return e?"open":"closed"}var AR=yR,TR=wR,_R=SR,MR=PR;const woe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],IP=["January","February","March","April","May","June","July","August","September","October","November","December"];function NP(e,t){return new Date(e,t+1,0).getDate()}function Soe(e,t){return new Date(e,t,1).getDay()}function jR(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function Poe(e){return jR(new Date,e)}function LP(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 DR=re(["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"}}),RR=re(["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"}}),kR=p.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":f},h)=>{const[v,m]=p.useState(!1),[g,y]=p.useState(()=>e||new Date),x=g.getFullYear(),w=g.getMonth(),S=NP(x,w),P=Soe(x,w),C=p.useMemo(()=>{const T=[],j=w===0?11:w-1,N=w===0?x-1:x,W=NP(N,j);for(let I=P-1;I>=0;I--)T.push({date:new Date(N,j,W-I),isOutside:!0});for(let I=1;I<=S;I++)T.push({date:new Date(x,w,I),isOutside:!1});const B=42-T.length,$=w===11?0:w+1,M=w===11?x+1:x;for(let I=1;I<=B;I++)T.push({date:new Date(M,$,I),isOutside:!0});return T},[x,w,S,P]),E=()=>{y(new Date(x,w-1,1))},A=()=>{y(new Date(x,w+1,1))},_=T=>{t?.(T),m(!1)},D=T=>!!(o&&T<new Date(o.setHours(0,0,0,0))||i&&T>new Date(i.setHours(23,59,59,999))),R=(T,j)=>D(T)?"disabled":j?"outside":e&&jR(e,T)?"selected":Poe(T)?"today":"default";return p.useEffect(()=>{e&&y(e)},[e]),b.jsxs(AR,{open:v,onOpenChange:m,children:[b.jsx(TR,{asChild:!0,children:b.jsxs("button",{ref:h,id:c,type:"button",disabled:a,className:L(DR({variant:s}),l),"aria-label":d||"Choose date","aria-describedby":f,"aria-haspopup":"dialog","aria-expanded":v,children:[b.jsx("span",{className:L("truncate",!e&&"text-tertiary text-body-sm"),children:e?LP(e,n):r}),b.jsx(OE,{className:"text-tertiary h-4 w-4 shrink-0"}),u&&b.jsx("input",{type:"hidden",name:u,value:e?LP(e,"yyyy-MM-dd"):""})]})}),b.jsx(_R,{children:b.jsxs(MR,{className:L("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:[b.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[b.jsx("button",{type:"button",onClick:E,className:L("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:b.jsx(Dc,{className:"h-4 w-4"})}),b.jsxs("span",{className:"text-primary text-sm font-medium",children:[IP[w]," ",x]}),b.jsx("button",{type:"button",onClick:A,className:L("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:b.jsx(Rc,{className:"h-4 w-4"})})]}),b.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:woe.map(T=>b.jsx("div",{className:"text-tertiary text-center text-xs font-medium",children:T},T))}),b.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid","aria-label":`${IP[w]} ${x}`,children:C.map(({date:T,isOutside:j},N)=>{const W=R(T,j),B=W==="disabled";return b.jsx("button",{type:"button",onClick:()=>!B&&_(T),disabled:B,className:RR({state:W}),"aria-label":T.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":W==="selected",tabIndex:j?-1:0,children:T.getDate()},N)})}),b.jsx("div",{className:"border-border mt-4 border-t pt-4",children:b.jsx("button",{type:"button",onClick:()=>_(new Date),className:L("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"})})]})})]})});kR.displayName="DatePicker";const Coe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],$P=["January","February","March","April","May","June","July","August","September","October","November","December"];function VP(e,t){return new Date(e,t+1,0).getDate()}function Eoe(e,t){return new Date(e,t,1).getDay()}function IR(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function Ooe(e){return IR(new Date,e)}function Aoe(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 FP(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 NR=re(["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"}}),LR=re(["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"}}),$R=p.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:f=1,"aria-label":h,"aria-describedby":v},m)=>{const[g,y]=p.useState(!1),[x,w]=p.useState(()=>e||new Date),[S,P]=p.useState(()=>e?`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`:"12:00"),C=x.getFullYear(),E=x.getMonth(),A=VP(C,E),_=Eoe(C,E),D=p.useMemo(()=>{const M=[],I=E===0?11:E-1,H=E===0?C-1:C,te=VP(H,I);for(let ce=_-1;ce>=0;ce--)M.push({date:new Date(H,I,te-ce),isOutside:!0});for(let ce=1;ce<=A;ce++)M.push({date:new Date(C,E,ce),isOutside:!1});const oe=42-M.length,ae=E===11?0:E+1,ie=E===11?C+1:C;for(let ce=1;ce<=oe;ce++)M.push({date:new Date(ie,ae,ce),isOutside:!0});return M},[C,E,A,_]),R=()=>{w(new Date(C,E-1,1))},T=()=>{w(new Date(C,E+1,1))},j=M=>{const{hours:I,minutes:H}=FP(S),te=new Date(M.getFullYear(),M.getMonth(),M.getDate(),I,H);t?.(te)},N=M=>{const I=M.target.value;if(P(I),e){const{hours:H,minutes:te}=FP(I),oe=new Date(e);oe.setHours(H,te),t?.(oe)}},W=()=>{const M=new Date;P(`${String(M.getHours()).padStart(2,"0")}:${String(M.getMinutes()).padStart(2,"0")}`),t?.(M),y(!1)},B=M=>!!(o&&M<new Date(o.setHours(0,0,0,0))||i&&M>new Date(i.setHours(23,59,59,999))),$=(M,I)=>B(M)?"disabled":I?"outside":e&&IR(e,M)?"selected":Ooe(M)?"today":"default";return p.useEffect(()=>{e&&(w(e),P(`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`))},[e]),b.jsxs(AR,{open:g,onOpenChange:y,children:[b.jsx(TR,{asChild:!0,children:b.jsxs("button",{ref:m,id:c,type:"button",disabled:a,className:L(NR({variant:s}),l),"aria-label":h||"Choose date and time","aria-describedby":v,"aria-haspopup":"dialog","aria-expanded":g,children:[b.jsx("span",{className:L("truncate",!e&&"text-tertiary text-body-sm"),children:e?Aoe(e,n,d):r}),b.jsxs("div",{className:"flex items-center gap-1",children:[b.jsx(RV,{className:"text-tertiary h-4 w-4 shrink-0"}),b.jsx(OE,{className:"text-tertiary h-4 w-4 shrink-0"})]}),u&&b.jsx("input",{type:"hidden",name:u,value:e?e.toISOString():""})]})}),b.jsx(_R,{children:b.jsxs(MR,{className:L("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:[b.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[b.jsx("button",{type:"button",onClick:R,className:L("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:b.jsx(Dc,{className:"h-4 w-4"})}),b.jsxs("span",{className:"text-primary text-sm font-medium",children:[$P[E]," ",C]}),b.jsx("button",{type:"button",onClick:T,className:L("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:b.jsx(Rc,{className:"h-4 w-4"})})]}),b.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:Coe.map(M=>b.jsx("div",{className:"text-tertiary text-center text-xs font-medium",children:M},M))}),b.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid","aria-label":`${$P[E]} ${C}`,children:D.map(({date:M,isOutside:I},H)=>{const te=$(M,I),oe=te==="disabled";return b.jsx("button",{type:"button",onClick:()=>!oe&&j(M),disabled:oe,className:LR({state:te}),"aria-label":M.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":te==="selected",tabIndex:I?-1:0,children:M.getDate()},H)})}),b.jsx("div",{className:"border-border mt-4 border-t pt-4",children:b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx("label",{htmlFor:"time-input",className:"text-secondary text-sm font-medium",children:"Time"}),b.jsx("input",{id:"time-input",type:"time",value:S,onChange:N,step:f*60,className:L("bg-card text-body-sm text-primary placeholder:text-body-sm 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"})]})}),b.jsx("div",{className:"border-border mt-4 border-t pt-4",children:b.jsx("button",{type:"button",onClick:W,className:L("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"})})]})})]})});$R.displayName="DateTimePicker";const VR=re("bg-border shrink-0",{variants:{orientation:{horizontal:"h-px w-full",vertical:"h-full w-px"}},defaultVariants:{orientation:"horizontal"}}),FR=p.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>{const i=t??"horizontal";return b.jsx("div",{ref:o,role:r?"none":"separator","aria-orientation":r?void 0:i,className:L(VR({orientation:i,className:e})),...n})});FR.displayName="Divider";var Wu="DropdownMenu",[Toe]=Ge(Wu,[Fu]),bt=Fu(),[_oe,BR]=Toe(Wu),zR=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=bt(t),c=p.useRef(null),[u,d]=ut({prop:o,defaultProp:i??!1,onChange:a,caller:Wu});return b.jsx(_oe,{scope:t,triggerId:Ct(),triggerRef:c,contentId:Ct(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:s,children:b.jsx(ED,{...l,open:u,onOpenChange:d,dir:n,modal:s,children:r})})};zR.displayName=Wu;var WR="DropdownMenuTrigger",KR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=BR(WR,r),a=bt(r);return b.jsx(OD,{asChild:!0,...a,children:b.jsx(ee.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:Ar(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())})})})});KR.displayName=WR;var Moe="DropdownMenuPortal",UR=e=>{const{__scopeDropdownMenu:t,...r}=e,n=bt(t);return b.jsx(AD,{...n,...r})};UR.displayName=Moe;var HR="DropdownMenuContent",GR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=BR(HR,r),i=bt(r),a=p.useRef(!1);return b.jsx(TD,{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)"}})});GR.displayName=HR;var joe="DropdownMenuGroup",qR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(_D,{...o,...n,ref:t})});qR.displayName=joe;var Doe="DropdownMenuLabel",YR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(MD,{...o,...n,ref:t})});YR.displayName=Doe;var Roe="DropdownMenuItem",XR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(jD,{...o,...n,ref:t})});XR.displayName=Roe;var koe="DropdownMenuCheckboxItem",ZR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(DD,{...o,...n,ref:t})});ZR.displayName=koe;var Ioe="DropdownMenuRadioGroup",JR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(RD,{...o,...n,ref:t})});JR.displayName=Ioe;var Noe="DropdownMenuRadioItem",QR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(kD,{...o,...n,ref:t})});QR.displayName=Noe;var Loe="DropdownMenuItemIndicator",ek=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(ID,{...o,...n,ref:t})});ek.displayName=Loe;var $oe="DropdownMenuSeparator",tk=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(ND,{...o,...n,ref:t})});tk.displayName=$oe;var Voe="DropdownMenuArrow",Foe=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(LD,{...o,...n,ref:t})});Foe.displayName=Voe;var Boe=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=bt(t),[s,l]=ut({prop:n,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return b.jsx($D,{...a,open:s,onOpenChange:l,children:r})},zoe="DropdownMenuSubTrigger",rk=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(VD,{...o,...n,ref:t})});rk.displayName=zoe;var Woe="DropdownMenuSubContent",nk=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=bt(r);return b.jsx(FD,{...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)"}})});nk.displayName=Woe;var Koe=zR,ok=KR,Uoe=UR,Hoe=GR,Goe=qR,qoe=YR,Yoe=XR,Xoe=ZR,Zoe=JR,Joe=QR,ik=ek,Qoe=tk,eie=Boe,tie=rk,rie=nk;const nie=Koe,oie=ok,iie=Goe,ak=Uoe,aie=eie,sie=Zoe,sk=p.forwardRef(({className:e,inset:t,children:r,...n},o)=>b.jsxs(tie,{ref:o,className:L("text-body-sm 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,b.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:b.jsx("path",{d:"m9 18 6-6-6-6"})})]}));sk.displayName="DropdownMenuSubTrigger";const lk=p.forwardRef(({className:e,...t},r)=>b.jsx(rie,{ref:r,className:L("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}));lk.displayName="DropdownMenuSubContent";const ck=p.forwardRef(({className:e,sideOffset:t=4,...r},n)=>b.jsx(ak,{children:b.jsx(Hoe,{ref:n,sideOffset:t,className:L("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})}));ck.displayName="DropdownMenuContent";const uk=p.forwardRef(({className:e,inset:t,...r},n)=>b.jsx(Yoe,{ref:n,className:L("text-body-sm 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}));uk.displayName="DropdownMenuItem";const dk=p.forwardRef(({className:e,children:t,checked:r,...n},o)=>b.jsxs(Xoe,{ref:o,className:L("text-body-sm 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:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(ik,{children:b.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:b.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));dk.displayName="DropdownMenuCheckboxItem";const fk=p.forwardRef(({className:e,children:t,...r},n)=>b.jsxs(Joe,{ref:n,className:L("text-body-sm 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:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(ik,{children:b.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:b.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));fk.displayName="DropdownMenuRadioItem";const pk=p.forwardRef(({className:e,inset:t,...r},n)=>b.jsx(qoe,{ref:n,className:L("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));pk.displayName="DropdownMenuLabel";const hk=p.forwardRef(({className:e,...t},r)=>b.jsx(Qoe,{ref:r,className:L("bg-border -mx-1 my-1 h-px",e),...t}));hk.displayName="DropdownMenuSeparator";const mk=p.forwardRef(({className:e,...t},r)=>b.jsx("span",{ref:r,className:L("text-small text-tertiary ml-auto tracking-widest",e),...t}));mk.displayName="DropdownMenuShortcut";const vk=p.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 b.jsxs(ok,{ref:n,className:L("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:[b.jsx(AE,{className:o[t]}),b.jsx("span",{className:"sr-only",children:"Open menu"})]})});vk.displayName="ActionsMenuButton";const gk=re("inline-block",{variants:{size:{xs:"h-3",sm:"h-4",md:"h-5",lg:"h-6",xl:"h-8"}},defaultVariants:{size:"md"}});function lie(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 yk=p.forwardRef(({className:e,size:t,compact:r,...n},o)=>{const i=lie(r),a=r!==!0;return b.jsx("svg",{ref:o,viewBox:"0 0 179.96 38.58",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:L(gk({size:t,className:e})),"aria-label":"Engrate",role:"img",...n,children:b.jsx("g",{id:"engrate-logo",children:b.jsxs("g",{children:[a&&b.jsxs("g",{className:i,children:[b.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"}),b.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"}),b.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"}),b.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"}),b.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"}),b.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"}),b.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"})]}),b.jsxs("g",{children:[b.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"}),b.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"}),b.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"})]})]})})})});yk.displayName="EngrateLogo";const bk=re("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"}}),xk=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"span";return b.jsx(a,{className:L(bk({variant:t,size:r,className:e})),ref:i,...o})});xk.displayName="Eyebrow";const wk=re("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"}}),Sk=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"footer";return b.jsx(a,{ref:i,className:L(wk({variant:t,size:r,className:e})),...o})});Sk.displayName="Footer";const Pk=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return b.jsx(o,{ref:n,className:L("grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-4",e),...r})});Pk.displayName="FooterContent";const Ck=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return b.jsx(o,{ref:n,className:L("flex flex-col gap-3",e),...r})});Ck.displayName="FooterSection";const Ek=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"h3";return b.jsx(o,{ref:n,className:L("text-small font-medium",e),...r})});Ek.displayName="FooterHeading";const Ok=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"nav";return b.jsx(o,{ref:n,className:L("text-small text-secondary flex flex-col gap-2",e),...r})});Ok.displayName="FooterLinks";const Ak=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return b.jsx(o,{ref:n,className:L("border-border mt-8 flex flex-col items-center justify-between gap-4 border-t pt-8 sm:flex-row",e),...r})});Ak.displayName="FooterBottom";const Tk=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"p";return b.jsx(o,{ref:n,className:L("text-small text-secondary",e),...r})});Tk.displayName="FooterCopyright";const Zg=p.forwardRef(({className:e,variant:t="default",children:r,...n},o)=>r?b.jsx("p",{ref:o,className:L("text-descriptive font-sans text-sm",t==="default"?"text-tertiary":"text-error",e),...n,children:r}):null);Zg.displayName="FormMessage";var cie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],uie=cie.reduce((e,t)=>{const r=K1(`Primitive.${t}`),n=p.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),die="Label",_k=p.forwardRef((e,t)=>b.jsx(uie.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));_k.displayName=die;var fie=_k;const Mk=re("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"}}),Jg=p.forwardRef(({className:e,size:t,...r},n)=>b.jsx(fie,{ref:n,className:L(Mk({size:t}),e),...r}));Jg.displayName="Label";const jk=p.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 b.jsxs("div",{ref:l,className:L("flex flex-col gap-1.5",e),...s,children:[t&&b.jsx(Jg,{htmlFor:i,size:r,children:t}),a,(n||o)&&b.jsx(Zg,{id:c,variant:o?"error":"default",role:o?"alert":void 0,children:o||n})]})});jk.displayName="FormField";const pie=re("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"}}),hie={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"},mie={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},vie={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},gie={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"};function Hn(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 Dk=p.forwardRef(({className:e,cols:t,gap:r,align:n,justify:o,as:i="div",asChild:a=!1,...s},l)=>{const c=a?Oe:i,u=Hn(t,hie,1),d=Hn(r,mie,"md"),f=Hn(n,vie,"stretch"),h=Hn(o,gie,"stretch");return b.jsx(c,{className:L("grid",u,d,f,h,e),ref:l,...s})});Dk.displayName="Grid";const yie=re("",{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:{}}),bie={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"},xie={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"},wie={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"},Rk=p.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:n,as:o="div",asChild:i=!1,...a},s)=>{const l=i?Oe:o,c=Hn(t,bie),u=Hn(r,xie),d=Hn(n,wie);return b.jsx(l,{className:L(c,u,d,e),ref:s,...a})});Rk.displayName="GridItem";const kk=re("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}}),Ik=p.forwardRef(({className:e,variant:t,size:r,sticky:n,asChild:o=!1,...i},a)=>{const s=o?Oe:"header";return b.jsx(s,{ref:a,className:L(kk({variant:t,size:r,sticky:n,className:e})),...i})});Ik.displayName="Header";const Nk=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return b.jsx(o,{ref:n,className:L("flex shrink-0 items-center",e),...r})});Nk.displayName="HeaderLogo";const Lk=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"nav";return b.jsx(o,{ref:n,className:L("flex items-center gap-6",e),...r})});Lk.displayName="HeaderNav";const $k=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Oe:"div";return b.jsx(o,{ref:n,className:L("flex shrink-0 items-center gap-3",e),...r})});$k.displayName="HeaderActions";const Vk=re("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"}}),Sie={hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4"},Qg=p.forwardRef(({className:e,level:t="h1",as:r,asChild:n=!1,...o},i)=>{const a=r??Sie[t??"h1"],s=n?Oe:a;return b.jsx(s,{className:L(Vk({level:t,className:e})),ref:i,...o})});Qg.displayName="Heading";const Fk=re("bg-card text-body-sm text-primary placeholder:text-tertiary placeholder:text-body-sm flex h-8 w-full rounded-md border px-3 py-1 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"}}),Bk=p.forwardRef(({className:e,variant:t,type:r="text",...n},o)=>b.jsx("input",{type:r,className:L(Fk({variant:t}),e),ref:o,...n}));Bk.displayName="Input";const zk=re("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Us=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],Wk=p.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,...f},h)=>{const v=p.useMemo(()=>{if(n)return n;const m=r[0];return m?Object.keys(m).filter(y=>y!=="label"&&typeof m[y]=="number").map((y,x)=>({key:y,name:y.charAt(0).toUpperCase()+y.slice(1),color:Us[x%Us.length]})):[]},[r,n]);return b.jsx("div",{ref:h,className:L(zk({size:t,className:e})),role:"img",...f,children:b.jsx(Hm,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:b.jsxs(Jee,{data:r,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&b.jsx(Eg,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),b.jsx(cc,{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}),b.jsx(uc,{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&&b.jsx(ug,{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&&b.jsx(au,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>b.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),v.map((m,g)=>b.jsx(zM,{type:u?"monotone":"linear",dataKey:m.key,name:m.name,stroke:m.color||Us[g%Us.length],strokeWidth:c,dot:d,activeDot:d?{r:6}:!1},m.key))]})})})});Wk.displayName="LineChart";const Kk=re("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"}}),Uk=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Oe:"a";return b.jsx(a,{className:L(Kk({variant:t,size:r,className:e})),ref:i,...o})});Uk.displayName="Link";const ey=O.createContext({});function ty(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const Hk=typeof window<"u",Gk=Hk?O.useLayoutEffect:O.useEffect,Ku=O.createContext(null);function ry(e,t){e.indexOf(t)===-1&&e.push(t)}function bc(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Or=(e,t,r)=>r>t?t:r<e?e:r;function Th(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let wi=()=>{},Ur=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(wi=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(Th(t,r))},Ur=(e,t,r)=>{if(!e)throw new Error(Th(t,r))});const Hr={},qk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Yk(e){return typeof e=="object"&&e!==null}const Xk=e=>/^0[^.\s]+$/u.test(e);function ny(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ht=e=>e,Pie=(e,t)=>r=>t(e(r)),is=(...e)=>e.reduce(Pie),ma=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class oy{constructor(){this.subscriptions=[]}add(t){return ry(this.subscriptions,t),()=>bc(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gt=e=>e*1e3,Kt=e=>e/1e3;function Zk(e,t){return t?e*(1e3/t):0}const BP=new Set;function iy(e,t,r){e||BP.has(t)||(console.warn(Th(t,r)),BP.add(t))}const Jk=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Cie=1e-7,Eie=12;function Oie(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=Jk(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>Cie&&++s<Eie);return a}function as(e,t,r,n){if(e===t&&r===n)return Ht;const o=i=>Oie(i,0,1,e,r);return i=>i===0||i===1?i:Jk(o(i),t,n)}const Qk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eI=e=>t=>1-e(1-t),tI=as(.33,1.53,.69,.99),ay=eI(tI),rI=Qk(ay),nI=e=>(e*=2)<1?.5*ay(e):.5*(2-Math.pow(2,-10*(e-1))),sy=e=>1-Math.sin(Math.acos(e)),oI=eI(sy),iI=Qk(sy),Aie=as(.42,0,1,1),Tie=as(0,0,.58,1),aI=as(.42,0,.58,1),_ie=e=>Array.isArray(e)&&typeof e[0]!="number",sI=e=>Array.isArray(e)&&typeof e[0]=="number",zP={linear:Ht,easeIn:Aie,easeInOut:aI,easeOut:Tie,circIn:sy,circInOut:iI,circOut:oI,backIn:ay,backInOut:rI,backOut:tI,anticipate:nI},Mie=e=>typeof e=="string",WP=e=>{if(sI(e)){Ur(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return as(t,r,n,o)}else if(Mie(e))return Ur(zP[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),zP[e];return e},Hs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jie(e,t){let r=new Set,n=new Set,o=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(u){a.has(u)&&(c.schedule(u),e()),u(s)}const c={schedule:(u,d=!1,f=!1)=>{const v=f&&o?r:n;return d&&a.add(u),v.has(u)||v.add(u),u},cancel:u=>{n.delete(u),a.delete(u)},process:u=>{if(s=u,o){i=!0;return}o=!0,[r,n]=[n,r],r.forEach(l),r.clear(),o=!1,i&&(i=!1,c.process(u))}};return c}const Die=40;function lI(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=Hs.reduce((w,S)=>(w[S]=jie(i),w),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:v}=a,m=()=>{const w=Hr.useManualTiming?o.timestamp:performance.now();r=!1,Hr.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(w-o.timestamp,Die),1)),o.timestamp=w,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),h.process(o),v.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(m))},g=()=>{r=!0,n=!0,o.isProcessing||e(m)};return{schedule:Hs.reduce((w,S)=>{const P=a[S];return w[S]=(C,E=!1,A=!1)=>(r||g(),P.schedule(C,E,A)),w},{}),cancel:w=>{for(let S=0;S<Hs.length;S++)a[Hs[S]].cancel(w)},state:o,steps:a}}const{schedule:Pe,cancel:wn,state:lt,steps:Jf}=lI(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ht,!0);let al;function Rie(){al=void 0}const St={now:()=>(al===void 0&&St.set(lt.isProcessing||Hr.useManualTiming?lt.timestamp:performance.now()),al),set:e=>{al=e,queueMicrotask(Rie)}},cI=e=>t=>typeof t=="string"&&t.startsWith(e),uI=cI("--"),kie=cI("var(--"),ly=e=>kie(e)?Iie.test(e.split("/*")[0].trim()):!1,Iie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function KP(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Si={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},va={...Si,transform:e=>Or(0,1,e)},Gs={...Si,default:1},Gi=e=>Math.round(e*1e5)/1e5,cy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nie(e){return e==null}const Lie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,uy=(e,t)=>r=>!!(typeof r=="string"&&Lie.test(r)&&r.startsWith(e)||t&&!Nie(r)&&Object.prototype.hasOwnProperty.call(r,t)),dI=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,i,a,s]=n.match(cy);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},$ie=e=>Or(0,255,e),Qf={...Si,transform:e=>Math.round($ie(e))},Gn={test:uy("rgb","red"),parse:dI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Qf.transform(e)+", "+Qf.transform(t)+", "+Qf.transform(r)+", "+Gi(va.transform(n))+")"};function Vie(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const _h={test:uy("#"),parse:Vie,transform:Gn.transform},ss=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),an=ss("deg"),xr=ss("%"),J=ss("px"),Fie=ss("vh"),Bie=ss("vw"),UP={...xr,parse:e=>xr.parse(e)/100,transform:e=>xr.transform(e*100)},Io={test:uy("hsl","hue"),parse:dI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+xr.transform(Gi(t))+", "+xr.transform(Gi(r))+", "+Gi(va.transform(n))+")"},Ve={test:e=>Gn.test(e)||_h.test(e)||Io.test(e),parse:e=>Gn.test(e)?Gn.parse(e):Io.test(e)?Io.parse(e):_h.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Gn.transform(e):Io.transform(e),getAnimatableNone:e=>{const t=Ve.parse(e);return t.alpha=0,Ve.transform(t)}},zie=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wie(e){return isNaN(e)&&typeof e=="string"&&(e.match(cy)?.length||0)+(e.match(zie)?.length||0)>0}const fI="number",pI="color",Kie="var",Uie="var(",HP="${}",Hie=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ga(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(Hie,l=>(Ve.test(l)?(n.color.push(i),o.push(pI),r.push(Ve.parse(l))):l.startsWith(Uie)?(n.var.push(i),o.push(Kie),r.push(l)):(n.number.push(i),o.push(fI),r.push(parseFloat(l))),++i,HP)).split(HP);return{values:r,split:s,indexes:n,types:o}}function hI(e){return ga(e).values}function mI(e){const{split:t,types:r}=ga(e),n=t.length;return o=>{let i="";for(let a=0;a<n;a++)if(i+=t[a],o[a]!==void 0){const s=r[a];s===fI?i+=Gi(o[a]):s===pI?i+=Ve.transform(o[a]):i+=o[a]}return i}}const Gie=e=>typeof e=="number"?0:Ve.test(e)?Ve.getAnimatableNone(e):e;function qie(e){const t=hI(e);return mI(e)(t.map(Gie))}const Sn={test:Wie,parse:hI,createTransformer:mI,getAnimatableNone:qie};function ep(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Yie({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=ep(l,s,e+1/3),i=ep(l,s,e),a=ep(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}function xc(e,t){return r=>r>0?t:e}const De=(e,t,r)=>e+(t-e)*r,tp=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},Xie=[_h,Gn,Io],Zie=e=>Xie.find(t=>t.test(e));function GP(e){const t=Zie(e);if(wi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===Io&&(r=Yie(r)),r}const qP=(e,t)=>{const r=GP(e),n=GP(t);if(!r||!n)return xc(e,t);const o={...r};return i=>(o.red=tp(r.red,n.red,i),o.green=tp(r.green,n.green,i),o.blue=tp(r.blue,n.blue,i),o.alpha=De(r.alpha,n.alpha,i),Gn.transform(o))},Mh=new Set(["none","hidden"]);function Jie(e,t){return Mh.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function Qie(e,t){return r=>De(e,t,r)}function dy(e){return typeof e=="number"?Qie:typeof e=="string"?ly(e)?xc:Ve.test(e)?qP:rae:Array.isArray(e)?vI:typeof e=="object"?Ve.test(e)?qP:eae:xc}function vI(e,t){const r=[...e],n=r.length,o=e.map((i,a)=>dy(i)(i,t[a]));return i=>{for(let a=0;a<n;a++)r[a]=o[a](i);return r}}function eae(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=dy(e[o])(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}}function tae(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][n[i]],s=e.values[a]??0;r[o]=s,n[i]++}return r}const rae=(e,t)=>{const r=Sn.createTransformer(t),n=ga(e),o=ga(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Mh.has(e)&&!o.values.length||Mh.has(t)&&!n.values.length?Jie(e,t):is(vI(tae(n,o),o.values),r):(wi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),xc(e,t))};function gI(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?De(e,t,r):dy(e)(e,t)}const nae=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>Pe.update(t,r),stop:()=>wn(t),now:()=>lt.isProcessing?lt.timestamp:St.now()}},yI=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let i=0;i<o;i++)n+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},wc=2e4;function fy(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<wc;)t+=r,n=e.next(t);return t>=wc?1/0:t}function oae(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(fy(n),wc);return{type:"keyframes",ease:i=>n.next(o*i).value/t,duration:Kt(o)}}const iae=5;function bI(e,t,r){const n=Math.max(t-iae,0);return Zk(r-e(n),t-n)}const je={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},rp=.001;function aae({duration:e=je.duration,bounce:t=je.bounce,velocity:r=je.velocity,mass:n=je.mass}){let o,i;wi(e<=Gt(je.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Or(je.minDamping,je.maxDamping,a),e=Or(je.minDuration,je.maxDuration,Kt(e)),a<1?(o=c=>{const u=c*a,d=u*e,f=u-r,h=jh(c,a),v=Math.exp(-d);return rp-f/h*v},i=c=>{const d=c*a*e,f=d*r+r,h=Math.pow(a,2)*Math.pow(c,2)*e,v=Math.exp(-d),m=jh(Math.pow(c,2),a);return(-o(c)+rp>0?-1:1)*((f-h)*v)/m}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-rp+u*d},i=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const s=5/e,l=lae(o,i,s);if(e=Gt(e),isNaN(l))return{stiffness:je.stiffness,damping:je.damping,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}const sae=12;function lae(e,t,r){let n=r;for(let o=1;o<sae;o++)n=n-e(n)/t(n);return n}function jh(e,t){return e*Math.sqrt(1-t*t)}const cae=["duration","bounce"],uae=["stiffness","damping","mass"];function YP(e,t){return t.some(r=>e[r]!==void 0)}function dae(e){let t={velocity:je.velocity,stiffness:je.stiffness,damping:je.damping,mass:je.mass,isResolvedFromDuration:!1,...e};if(!YP(e,uae)&&YP(e,cae))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,i=2*Or(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:je.mass,stiffness:o,damping:i}}else{const r=aae(e);t={...t,...r,mass:je.mass},t.isResolvedFromDuration=!0}return t}function Sc(e=je.visualDuration,t=je.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const i=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=dae({...r,velocity:-Kt(r.velocity||0)}),v=f||0,m=c/(2*Math.sqrt(l*u)),g=a-i,y=Kt(Math.sqrt(l/u)),x=Math.abs(g)<5;n||(n=x?je.restSpeed.granular:je.restSpeed.default),o||(o=x?je.restDelta.granular:je.restDelta.default);let w;if(m<1){const P=jh(y,m);w=C=>{const E=Math.exp(-m*y*C);return a-E*((v+m*y*g)/P*Math.sin(P*C)+g*Math.cos(P*C))}}else if(m===1)w=P=>a-Math.exp(-y*P)*(g+(v+y*g)*P);else{const P=y*Math.sqrt(m*m-1);w=C=>{const E=Math.exp(-m*y*C),A=Math.min(P*C,300);return a-E*((v+m*y*g)*Math.sinh(A)+P*g*Math.cosh(A))/P}}const S={calculatedDuration:h&&d||null,next:P=>{const C=w(P);if(h)s.done=P>=d;else{let E=P===0?v:0;m<1&&(E=P===0?Gt(v):bI(w,P,C));const A=Math.abs(E)<=n,_=Math.abs(a-C)<=o;s.done=A&&_}return s.value=s.done?a:C,s},toString:()=>{const P=Math.min(fy(S),wc),C=yI(E=>S.next(P*E).value,P,30);return P+"ms "+C},toTransition:()=>{}};return S}Sc.applyToOptions=e=>{const t=oae(e,100,Sc);return e.ease=t.ease,e.duration=Gt(t.duration),e.type="keyframes",e};function Dh({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=A=>s!==void 0&&A<s||l!==void 0&&A>l,v=A=>s===void 0?l:l===void 0||Math.abs(s-A)<Math.abs(l-A)?s:l;let m=r*t;const g=d+m,y=a===void 0?g:a(g);y!==g&&(m=y-d);const x=A=>-m*Math.exp(-A/n),w=A=>y+x(A),S=A=>{const _=x(A),D=w(A);f.done=Math.abs(_)<=c,f.value=f.done?y:D};let P,C;const E=A=>{h(f.value)&&(P=A,C=Sc({keyframes:[f.value,v(f.value)],velocity:bI(w,A,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:A=>{let _=!1;return!C&&P===void 0&&(_=!0,S(A),E(A)),P!==void 0&&A>=P?C.next(A-P):(!_&&S(A),f)}}}function fae(e,t,r){const n=[],o=r||Hr.mix||gI,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Ht:t;s=is(l,s)}n.push(s)}return n}function pae(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(Ur(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=fae(t,n,o),l=s.length,c=u=>{if(a&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=ma(e[d],e[d+1],u);return s[d](f)};return r?u=>c(Or(e[0],e[i-1],u)):c}function hae(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=ma(0,t,n);e.push(De(r,1,o))}}function mae(e){const t=[0];return hae(t,e.length-1),t}function vae(e,t){return e.map(r=>r*t)}function gae(e,t){return e.map(()=>t||aI).splice(0,e.length-1)}function No({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=_ie(n)?n.map(WP):WP(n),i={done:!1,value:t[0]},a=vae(r&&r.length===t.length?r:mae(t),e),s=pae(a,t,{ease:Array.isArray(o)?o:gae(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const yae=e=>e!==null;function py(e,{repeat:t,repeatType:r="loop"},n,o=1){const i=e.filter(yae),s=o<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!s||n===void 0?i[s]:n}const bae={decay:Dh,inertia:Dh,tween:No,keyframes:No,spring:Sc};function xI(e){typeof e.type=="string"&&(e.type=bae[e.type])}class hy{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const xae=e=>e/100;class my extends hy{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==St.now()&&this.tick(St.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;xI(t);const{type:r=No,repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=t;let{keyframes:s}=t;const l=r||No;process.env.NODE_ENV!=="production"&&l!==No&&Ur(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),l!==No&&typeof s[0]!="number"&&(this.mixKeyframes=is(xae,gI(s[0],s[1])),s=[0,100]);const c=l({...t,keyframes:s});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=fy(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=c}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:o,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:v,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,S=n;if(d){const A=Math.min(this.currentTime,o)/s;let _=Math.floor(A),D=A%1;!D&&A>=1&&(D=1),D===1&&_--,_=Math.min(_,d+1),_%2&&(f==="reverse"?(D=1-D,h&&(D-=h/s)):f==="mirror"&&(S=a)),w=Or(0,1,D)*s}const P=x?{done:!1,value:u[0]}:S.next(w);i&&(P.value=i(P.value));let{done:C}=P;!x&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return E&&v!==Dh&&(P.value=py(u,this.options,g,this.speed)),m&&m(P.value),E&&this.finish(),P}then(t,r){return this.finished.then(t,r)}get duration(){return Kt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Kt(t)}get time(){return Kt(this.currentTime)}set time(t){t=Gt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(St.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Kt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=nae,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(St.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function wae(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const qn=e=>e*180/Math.PI,Rh=e=>{const t=qn(Math.atan2(e[1],e[0]));return kh(t)},Sae={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Rh,rotateZ:Rh,skewX:e=>qn(Math.atan(e[1])),skewY:e=>qn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},kh=e=>(e=e%360,e<0&&(e+=360),e),XP=Rh,ZP=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),JP=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Pae={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ZP,scaleY:JP,scale:e=>(ZP(e)+JP(e))/2,rotateX:e=>kh(qn(Math.atan2(e[6],e[5]))),rotateY:e=>kh(qn(Math.atan2(-e[2],e[0]))),rotateZ:XP,rotate:XP,skewX:e=>qn(Math.atan(e[4])),skewY:e=>qn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ih(e){return e.includes("scale")?1:0}function Nh(e,t){if(!e||e==="none")return Ih(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=Pae,o=r;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Sae,o=s}if(!o)return Ih(t);const i=n[t],a=o[1].split(",").map(Eae);return typeof i=="function"?i(a):a[i]}const Cae=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Nh(r,t)};function Eae(e){return parseFloat(e.trim())}const Pi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ci=new Set(Pi),QP=e=>e===Si||e===J,Oae=new Set(["x","y","z"]),Aae=Pi.filter(e=>!Oae.has(e));function Tae(e){const t=[];return Aae.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const dn={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Nh(t,"x"),y:(e,{transform:t})=>Nh(t,"y")};dn.translateX=dn.x;dn.translateY=dn.y;const Qn=new Set;let Lh=!1,$h=!1,Vh=!1;function wI(){if($h){const e=Array.from(Qn).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=Tae(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([i,a])=>{n.getValue(i)?.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}$h=!1,Lh=!1,Qn.forEach(e=>e.complete(Vh)),Qn.clear()}function SI(){Qn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($h=!0)})}function _ae(){Vh=!0,SI(),wI(),Vh=!1}class vy{constructor(t,r,n,o,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Qn.add(this),Lh||(Lh=!0,Pe.read(SI),Pe.resolveKeyframes(wI))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){const i=o?.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(n&&r){const s=n.readValue(r,a);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=a),o&&i===void 0&&o.set(t[0])}wae(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Qn.delete(this)}cancel(){this.state==="scheduled"&&(Qn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Mae=e=>e.startsWith("--");function jae(e,t,r){Mae(t)?e.style.setProperty(t,r):e.style[t]=r}const Dae=ny(()=>window.ScrollTimeline!==void 0),Rae={};function kae(e,t){const r=ny(e);return()=>Rae[t]??r()}const PI=kae(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ki=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,eC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ki([0,.65,.55,1]),circOut:Ki([.55,0,1,.45]),backIn:Ki([.31,.01,.66,-.59]),backOut:Ki([.33,1.53,.69,.99])};function CI(e,t){if(e)return typeof e=="function"?PI()?yI(e,t):"ease-out":sI(e)?Ki(e):Array.isArray(e)?e.map(r=>CI(r,t)||eC.easeOut):eC[e]}function Iae(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:r};l&&(u.offset=l);const d=CI(s,o);Array.isArray(d)&&(u.easing=d);const f={delay:n,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function EI(e){return typeof e=="function"&&"applyToOptions"in e}function Nae({type:e,...t}){return EI(e)&&PI()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class OI extends hy{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:o,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,Ur(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Nae(t);this.animation=Iae(r,n,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=py(o,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(u):jae(r,n,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Kt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Kt(t)}get time(){return Kt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Gt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Dae()?(this.animation.timeline=t,Ht):r(this)}}const AI={anticipate:nI,backInOut:rI,circInOut:iI};function Lae(e){return e in AI}function $ae(e){typeof e.ease=="string"&&Lae(e.ease)&&(e.ease=AI[e.ease])}const np=10;class Vae extends OI{constructor(t){$ae(t),xI(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:o,element:i,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const s=new my({...a,autoplay:!1}),l=Math.max(np,St.now()-this.startTime),c=Or(0,np,l-np);r.setWithVelocity(s.sample(Math.max(0,l-c)).value,s.sample(l).value,c),s.stop()}}const tC=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Sn.test(e)||e==="0")&&!e.startsWith("url("));function Fae(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function Bae(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=tC(o,t),s=tC(i,t);return wi(a===s,`You are trying to animate ${t} from "${o}" to "${i}". "${a?i:o}" is not an animatable value.`,"value-not-animatable"),!a||!s?!1:Fae(e)||(r==="spring"||EI(r))&&n}function Fh(e){e.duration=0,e.type="keyframes"}const zae=new Set(["opacity","clipPath","filter","transform"]),Wae=ny(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Kae(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return Wae()&&r&&zae.has(r)&&(r!=="transform"||!c)&&!l&&!n&&o!=="mirror"&&i!==0&&a!=="inertia"}const Uae=40;class Hae extends hy{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=St.now();const f={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:i,repeatType:a,name:l,motionValue:c,element:u,...d},h=u?.KeyframeResolver||vy;this.keyframeResolver=new h(s,(v,m,g)=>this.onKeyframesResolved(v,m,f,!g),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;const{name:i,type:a,velocity:s,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=St.now(),Bae(t,i,a,s)||((Hr.instantAnimations||!l)&&u?.(py(t,n,r)),t[0]=t[t.length-1],Fh(n),n.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Uae?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},h=!c&&Kae(f),v=f.motionValue?.owner?.current,m=h?new Vae({...f,element:v}):new my(f);m.finished.then(()=>{this.notifyFinished()}).catch(Ht),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),_ae()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function TI(e,t,r,n=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),a=e.size,s=(a-1)*n;return typeof r=="function"?r(i,a):o===1?i*n:s-i*n}const Gae=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qae(e){const t=Gae.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const Yae=4;function _I(e,t,r=1){Ur(r<=Yae,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=qae(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const a=i.trim();return qk(a)?parseFloat(a):a}return ly(o)?_I(o,t,r+1):o}const Xae={type:"spring",stiffness:500,damping:25,restSpeed:10},Zae=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Jae={type:"keyframes",duration:.8},Qae={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ese=(e,{keyframes:t})=>t.length>2?Jae:Ci.has(e)?e.startsWith("scale")?Zae(t[1]):Xae:Qae,tse=e=>e!==null;function rse(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(tse),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return o[i]}function MI(e,t){if(e?.inherit&&t){const{inherit:r,...n}=e;return{...t,...n}}return e}function gy(e,t){const r=e?.[t]??e?.default??e;return r!==e?MI(r,e):r}function nse({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const yy=(e,t,r,n={},o,i)=>a=>{const s=gy(n,e)||{},l=s.delay||n.delay||0;let{elapsed:c=0}=n;c=c-Gt(l);const u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};nse(s)||Object.assign(u,ese(e,u)),u.duration&&(u.duration=Gt(u.duration)),u.repeatDelay&&(u.repeatDelay=Gt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Fh(u),u.delay===0&&(d=!0)),(Hr.instantAnimations||Hr.skipAnimations||o?.shouldSkipAnimations)&&(d=!0,Fh(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!i&&t.get()!==void 0){const f=rse(u.keyframes,s);if(f!==void 0){Pe.update(()=>{u.onUpdate(f),u.onComplete()});return}}return s.isSync?new my(u):new Hae(u)};function rC(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function by(e,t,r,n){if(typeof t=="function"){const[o,i]=rC(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=rC(n);t=t(r!==void 0?r:e.custom,o,i)}return t}function Go(e,t,r){const n=e.getProps();return by(n,t,r!==void 0?r:n.custom,e)}const jI=new Set(["width","height","top","left","right","bottom",...Pi]),nC=30,ose=e=>!isNaN(parseFloat(e));class ise{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const o=St.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=St.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ose(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&iy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new oy);const n=this.events[t].add(r);return t==="change"?()=>{n(),Pe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=St.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nC)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,nC);return Zk(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ni(e,t){return new ise(e,t)}const Bh=e=>Array.isArray(e);function ase(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ni(r))}function sse(e){return Bh(e)?e[e.length-1]||0:e}function lse(e,t){const r=Go(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const a in i){const s=sse(i[a]);ase(e,a,s)}}const pt=e=>!!(e&&e.getVelocity);function cse(e){return!!(pt(e)&&e.add)}function zh(e,t){const r=e.getValue("willChange");if(cse(r))return r.add(t);if(!r&&Hr.WillChange){const n=new Hr.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function xy(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const use="framerAppearId",DI="data-"+xy(use);function RI(e){return e.props[DI]}function dse({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function kI(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:i,transitionEnd:a,...s}=t;const l=e.getDefaultTransition();i=i?MI(i,l):l;const c=i?.reduceMotion;n&&(i=n);const u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in s){const h=e.getValue(f,e.latestValues[f]??null),v=s[f];if(v===void 0||d&&dse(d,f))continue;const m={delay:r,...gy(i||{},f)},g=h.get();if(g!==void 0&&!h.isAnimating&&!Array.isArray(v)&&v===g&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const S=RI(e);if(S){const P=window.MotionHandoffAnimation(S,f,Pe);P!==null&&(m.startTime=P,y=!0)}}zh(e,f);const x=c??e.shouldReduceMotion;h.start(yy(f,h,v,x&&jI.has(f)?{type:!1}:m,e,y));const w=h.animation;w&&u.push(w)}if(a){const f=()=>Pe.update(()=>{a&&lse(e,a)});u.length?Promise.all(u).then(f):f()}return u}function Wh(e,t,r={}){const n=Go(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(kI(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return fse(e,t,l,c,u,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(r.delay)])}function fse(e,t,r=0,n=0,o=0,i=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(Wh(l,t,{...a,delay:r+(typeof n=="function"?0:n)+TI(e.variantChildren,l,n,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function pse(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Wh(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Wh(e,t,r);else{const o=typeof t=="function"?Go(e,t,r.custom):t;n=Promise.all(kI(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const hse={test:e=>e==="auto",parse:e=>e},II=e=>t=>t.test(e),NI=[Si,J,xr,an,Bie,Fie,hse],oC=e=>NI.find(II(e));function mse(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Xk(e):!0}const vse=new Set(["brightness","contrast","saturate","opacity"]);function gse(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(cy)||[];if(!n)return e;const o=r.replace(n,"");let i=vse.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const yse=/\b([a-z-]*)\(.*?\)/gu,Kh={...Sn,getAnimatableNone:e=>{const t=e.match(yse);return t?t.map(gse).join(" "):e}},iC={...Si,transform:Math.round},bse={rotate:an,rotateX:an,rotateY:an,rotateZ:an,scale:Gs,scaleX:Gs,scaleY:Gs,scaleZ:Gs,skew:an,skewX:an,skewY:an,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:va,originX:UP,originY:UP,originZ:J},wy={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,...bse,zIndex:iC,fillOpacity:va,strokeOpacity:va,numOctaves:iC},xse={...wy,color:Ve,backgroundColor:Ve,outlineColor:Ve,fill:Ve,stroke:Ve,borderColor:Ve,borderTopColor:Ve,borderRightColor:Ve,borderBottomColor:Ve,borderLeftColor:Ve,filter:Kh,WebkitFilter:Kh},LI=e=>xse[e];function $I(e,t){let r=LI(e);return r!==Kh&&(r=Sn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const wse=new Set(["auto","none","0"]);function Sse(e,t,r){let n=0,o;for(;n<e.length&&!o;){const i=e[n];typeof i=="string"&&!wse.has(i)&&ga(i).values.length&&(o=e[n]),n++}if(o&&r)for(const i of t)e[i]=$I(r,o)}class Pse extends vy{constructor(t,r,n,o,i){super(t,r,n,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),ly(d))){const f=_I(d,r.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!jI.has(n)||t.length!==2)return;const[o,i]=t,a=oC(o),s=oC(i),l=KP(o),c=KP(i);if(l!==c&&dn[n]){this.needsMeasurement=!0;return}if(a!==s)if(QP(a)&&QP(s))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else dn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||mse(t[o]))&&n.push(o);n.length&&Sse(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const i=n.length-1,a=n[i];n[i]=dn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,l])=>{t.getValue(s).set(l)}),this.resolveNoneKeyframes()}}const Cse=new Set(["opacity","clipPath","filter","transform"]);function VI(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(n=>n!=null)}const FI=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Uh(e){return Yk(e)&&"offsetHeight"in e}const{schedule:Sy}=lI(queueMicrotask,!1),Qt={x:!1,y:!1};function BI(){return Qt.x||Qt.y}function Ese(e){return e==="x"||e==="y"?Qt[e]?null:(Qt[e]=!0,()=>{Qt[e]=!1}):Qt.x||Qt.y?null:(Qt.x=Qt.y=!0,()=>{Qt.x=Qt.y=!1})}function zI(e,t){const r=VI(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function Ose(e){return!(e.pointerType==="touch"||BI())}function Ase(e,t,r={}){const[n,o,i]=zI(e,r);return n.forEach(a=>{let s=!1,l=!1,c;const u=()=>{a.removeEventListener("pointerleave",v)},d=g=>{c&&(c(g),c=void 0),u()},f=g=>{s=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(g))},h=()=>{s=!0,window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",f,o)},v=g=>{if(g.pointerType!=="touch"){if(s){l=!0;return}d(g)}},m=g=>{if(!Ose(g))return;l=!1;const y=t(a,g);typeof y=="function"&&(c=y,a.addEventListener("pointerleave",v,o))};a.addEventListener("pointerenter",m,o),a.addEventListener("pointerdown",h,o)}),i}const WI=(e,t)=>t?e===t?!0:WI(e,t.parentElement):!1,Py=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Tse=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _se(e){return Tse.has(e.tagName)||e.isContentEditable===!0}const Mse=new Set(["INPUT","SELECT","TEXTAREA"]);function jse(e){return Mse.has(e.tagName)||e.isContentEditable===!0}const sl=new WeakSet;function aC(e){return t=>{t.key==="Enter"&&e(t)}}function op(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Dse=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=aC(()=>{if(sl.has(r))return;op(r,"down");const o=aC(()=>{op(r,"up")}),i=()=>op(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function sC(e){return Py(e)&&!BI()}const lC=new WeakSet;function Rse(e,t,r={}){const[n,o,i]=zI(e,r),a=s=>{const l=s.currentTarget;if(!sC(s)||lC.has(s))return;sl.add(l),r.stopPropagation&&lC.add(s);const c=t(l,s),u=(h,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),sl.has(l)&&sl.delete(l),sC(h)&&typeof c=="function"&&c(h,{success:v})},d=h=>{u(h,l===window||l===document||r.useGlobalTarget||WI(l,h.target))},f=h=>{u(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return n.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",a,o),Uh(s)&&(s.addEventListener("focus",c=>Dse(c,o)),!_se(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),i}function Cy(e){return Yk(e)&&"ownerSVGElement"in e}const ll=new WeakMap;let cl;const KI=(e,t,r)=>(n,o)=>o&&o[0]?o[0][e+"Size"]:Cy(n)&&"getBBox"in n?n.getBBox()[t]:n[r],kse=KI("inline","width","offsetWidth"),Ise=KI("block","height","offsetHeight");function Nse({target:e,borderBoxSize:t}){ll.get(e)?.forEach(r=>{r(e,{get width(){return kse(e,t)},get height(){return Ise(e,t)}})})}function Lse(e){e.forEach(Nse)}function $se(){typeof ResizeObserver>"u"||(cl=new ResizeObserver(Lse))}function Vse(e,t){cl||$se();const r=VI(e);return r.forEach(n=>{let o=ll.get(n);o||(o=new Set,ll.set(n,o)),o.add(t),cl?.observe(n)}),()=>{r.forEach(n=>{const o=ll.get(n);o?.delete(t),o?.size||cl?.unobserve(n)})}}const ul=new Set;let Lo;function Fse(){Lo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ul.forEach(t=>t(e))},window.addEventListener("resize",Lo)}function Bse(e){return ul.add(e),Lo||Fse(),()=>{ul.delete(e),!ul.size&&typeof Lo=="function"&&(window.removeEventListener("resize",Lo),Lo=void 0)}}function cC(e,t){return typeof e=="function"?Bse(e):Vse(e,t)}function zse(e){return Cy(e)&&e.tagName==="svg"}const Wse=[...NI,Ve,Sn],Kse=e=>Wse.find(II(e)),uC=()=>({translate:0,scale:1,origin:0,originPoint:0}),$o=()=>({x:uC(),y:uC()}),dC=()=>({min:0,max:0}),Ue=()=>({x:dC(),y:dC()}),Use=new WeakMap;function Uu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ya(e){return typeof e=="string"||Array.isArray(e)}const Ey=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Oy=["initial",...Ey];function Hu(e){return Uu(e.animate)||Oy.some(t=>ya(e[t]))}function UI(e){return!!(Hu(e)||e.variants)}function Hse(e,t,r){for(const n in t){const o=t[n],i=r[n];if(pt(o))e.addValue(n,o);else if(pt(i))e.addValue(n,ni(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const a=e.getValue(n);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(n);e.addValue(n,ni(a!==void 0?a:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const Hh={current:null},HI={current:!1},Gse=typeof window<"u";function qse(){if(HI.current=!0,!!Gse)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Hh.current=e.matches;e.addEventListener("change",t),t()}else Hh.current=!1}const fC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Pc={};function GI(e){Pc=e}function Yse(){return Pc}class Xse{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:a,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=vy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=St.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Pe.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=Hu(r),this.isVariantNode=UI(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(const h in f){const v=f[h];c[h]!==void 0&&pt(v)&&v.set(c[h])}}mount(t){if(this.hasBeenMounted)for(const r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=t,Use.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(HI.current||qse(),this.shouldReduceMotion=Hh.current),process.env.NODE_ENV!=="production"&&iy(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),wn(this.notifyUpdate),wn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&Cse.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:s,times:l,ease:c,duration:u}=r.accelerate,d=new OI({element:this.current,name:t,keyframes:s,times:l,ease:c,duration:Gt(u)}),f=a(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const n=Ci.has(t);n&&this.onBindTransform&&this.onBindTransform();const o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Pe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Pc){const r=Pc[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ue()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<fC.length;n++){const o=fC[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=Hse(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=ni(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(qk(n)||Xk(n))?n=parseFloat(n):!Kse(n)&&Sn.test(r)&&(n=$I(t,r)),this.setBaseTarget(t,pt(n)?n.get():n)),pt(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const i=by(this.props,r,this.presenceContext?.custom);i&&(n=i[t])}if(r&&n!==void 0)return n;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!pt(o)?o:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new oy),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Sy.render(this.render)}}class qI extends Xse{constructor(){super(...arguments),this.KeyframeResolver=Pse}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const n=t.style;return n?n[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;pt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Mn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function YI({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Zse({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Jse(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function ip(e){return e===void 0||e===1}function Gh({scale:e,scaleX:t,scaleY:r}){return!ip(e)||!ip(t)||!ip(r)}function Fn(e){return Gh(e)||XI(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function XI(e){return pC(e.x)||pC(e.y)}function pC(e){return e&&e!=="0%"}function Cc(e,t,r){const n=e-r,o=t*n;return r+o}function hC(e,t,r,n,o){return o!==void 0&&(e=Cc(e,o,n)),Cc(e,r,n)+t}function qh(e,t=0,r=1,n,o){e.min=hC(e.min,t,r,n,o),e.max=hC(e.max,t,r,n,o)}function ZI(e,{x:t,y:r}){qh(e.x,t.translate,t.scale,t.originPoint),qh(e.y,r.translate,r.scale,r.originPoint)}const mC=.999999999999,vC=1.0000000000001;function Qse(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=r[s],a=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Fo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ZI(e,a)),n&&Fn(i.latestValues)&&Fo(e,i.latestValues))}t.x<vC&&t.x>mC&&(t.x=1),t.y<vC&&t.y>mC&&(t.y=1)}function Vo(e,t){e.min=e.min+t,e.max=e.max+t}function gC(e,t,r,n,o=.5){const i=De(e.min,e.max,o);qh(e,t,r,i,n)}function Fo(e,t){gC(e.x,t.x,t.scaleX,t.scale,t.originX),gC(e.y,t.y,t.scaleY,t.scale,t.originY)}function JI(e,t){return YI(Jse(e.getBoundingClientRect(),t))}function ele(e,t,r){const n=JI(e,r),{scroll:o}=t;return o&&(Vo(n.x,o.offset.x),Vo(n.y,o.offset.y)),n}const tle={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rle=Pi.length;function nle(e,t,r){let n="",o=!0;for(let i=0;i<rle;i++){const a=Pi[i],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(a.startsWith("scale")?1:0);else{const c=parseFloat(s);l=a.startsWith("scale")?c===1:c===0}if(!l||r){const c=FI(s,wy[a]);if(!l){o=!1;const u=tle[a]||a;n+=`${u}(${c}) `}r&&(t[a]=c)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function Ay(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const l in t){const c=t[l];if(Ci.has(l)){a=!0;continue}else if(uI(l)){o[l]=c;continue}else{const u=FI(c,wy[l]);l.startsWith("origin")?(s=!0,i[l]=u):n[l]=u}}if(t.transform||(a||r?n.transform=nle(t,e.transform,r):n.transform&&(n.transform="none")),s){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;n.transformOrigin=`${l} ${c} ${u}`}}function QI(e,{style:t,vars:r},n,o){const i=e.style;let a;for(a in t)i[a]=t[a];o?.applyProjectionStyles(i,n);for(a in r)i.setProperty(a,r[a])}function yC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $i={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(J.test(e))e=parseFloat(e);else return e;const r=yC(e,t.target.x),n=yC(e,t.target.y);return`${r}% ${n}%`}},ole={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Sn.parse(e);if(o.length>5)return n;const i=Sn.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=De(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}},Yh={borderRadius:{...$i,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$i,borderTopRightRadius:$i,borderBottomLeftRadius:$i,borderBottomRightRadius:$i,boxShadow:ole};function eN(e,{layout:t,layoutId:r}){return Ci.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Yh[e]||e==="opacity")}function Ty(e,t,r){const n=e.style,o=t?.style,i={};if(!n)return i;for(const a in n)(pt(n[a])||o&&pt(o[a])||eN(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(i[a]=n[a]);return i}function ile(e){return window.getComputedStyle(e)}class ale extends qI{constructor(){super(...arguments),this.type="html",this.renderInstance=QI}readValueFromInstance(t,r){if(Ci.has(r))return this.projection?.isProjecting?Ih(r):Cae(t,r);{const n=ile(t),o=(uI(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return JI(t,r)}build(t,r,n){Ay(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Ty(t,r,n)}}const sle={offset:"stroke-dashoffset",array:"stroke-dasharray"},lle={offset:"strokeDashoffset",array:"strokeDasharray"};function cle(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?sle:lle;e[i.offset]=`${-n}`,e[i.array]=`${t} ${r}`}const ule=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tN(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(Ay(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const h of ule)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),o!==void 0&&cle(d,o,i,a,!1)}const rN=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),nN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function dle(e,t,r,n){QI(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(rN.has(o)?o:xy(o),t.attrs[o])}function oN(e,t,r){const n=Ty(e,t,r);for(const o in e)if(pt(e[o])||pt(t[o])){const i=Pi.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}class fle extends qI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ue}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Ci.has(r)){const n=LI(r);return n&&n.default||0}return r=rN.has(r)?r:xy(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return oN(t,r,n)}build(t,r,n){tN(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,o){dle(t,r,n,o)}mount(t){this.isSVGTag=nN(t.tagName),super.mount(t)}}const ple=Oy.length;function iN(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?iN(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<ple;r++){const n=Oy[r],o=e.props[n];(ya(o)||o===!1)&&(t[n]=o)}return t}function aN(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const hle=[...Ey].reverse(),mle=Ey.length;function vle(e){return t=>Promise.all(t.map(({animation:r,options:n})=>pse(e,r,n)))}function gle(e){let t=vle(e),r=bC(),n=!0;const o=l=>(c,u)=>{const d=Go(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:h,...v}=d;c={...c,...v,...h}}return c};function i(l){t=l(e)}function a(l){const{props:c}=e,u=iN(e.parent)||{},d=[],f=new Set;let h={},v=1/0;for(let g=0;g<mle;g++){const y=hle[g],x=r[y],w=c[y]!==void 0?c[y]:u[y],S=ya(w),P=y===l?x.isActive:null;P===!1&&(v=g);let C=w===u[y]&&w!==c[y]&&S;if(C&&n&&e.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...h},!x.isActive&&P===null||!w&&!x.prevProp||Uu(w)||typeof w=="boolean")continue;if(y==="exit"&&x.isActive&&P!==!0){x.prevResolvedValues&&(h={...h,...x.prevResolvedValues});continue}const E=yle(x.prevProp,w);let A=E||y===l&&x.isActive&&!C&&S||g>v&&S,_=!1;const D=Array.isArray(w)?w:[w];let R=D.reduce(o(y),{});P===!1&&(R={});const{prevResolvedValues:T={}}=x,j={...T,...R},N=$=>{A=!0,f.has($)&&(_=!0,f.delete($)),x.needsAnimating[$]=!0;const M=e.getValue($);M&&(M.liveStyle=!1)};for(const $ in j){const M=R[$],I=T[$];if(h.hasOwnProperty($))continue;let H=!1;Bh(M)&&Bh(I)?H=!aN(M,I):H=M!==I,H?M!=null?N($):f.add($):M!==void 0&&f.has($)?N($):x.protectedKeys[$]=!0}x.prevProp=w,x.prevResolvedValues=R,x.isActive&&(h={...h,...R}),n&&e.blockInitialAnimation&&(A=!1);const W=C&&E;A&&(!W||_)&&d.push(...D.map($=>{const M={type:y};if(typeof $=="string"&&n&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:I}=e,H=Go(I,$);if(I.enteringChildren&&H){const{delayChildren:te}=H.transition||{};M.delay=TI(I.enteringChildren,e,te)}}return{animation:$,options:M}}))}if(f.size){const g={};if(typeof c.initial!="boolean"){const y=Go(e,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(g.transition=y.transition)}f.forEach(y=>{const x=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),g[y]=x??null}),d.push({animation:g})}let m=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}function s(l,c){if(r[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),r[l].isActive=c;const u=a(l);for(const d in r)r[d].protectedKeys={};return u}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r,reset:()=>{r=bC()}}}function yle(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!aN(t,e):!1}function Nn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bC(){return{animate:Nn(!0),whileInView:Nn(),whileHover:Nn(),whileTap:Nn(),whileDrag:Nn(),whileFocus:Nn(),exit:Nn()}}function xC(e,t){e.min=t.min,e.max=t.max}function Jt(e,t){xC(e.x,t.x),xC(e.y,t.y)}function wC(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const sN=1e-4,ble=1-sN,xle=1+sN,lN=.01,wle=0-lN,Sle=0+lN;function Pt(e){return e.max-e.min}function Ple(e,t,r){return Math.abs(e-t)<=r}function SC(e,t,r,n=.5){e.origin=n,e.originPoint=De(t.min,t.max,e.origin),e.scale=Pt(r)/Pt(t),e.translate=De(r.min,r.max,e.origin)-e.originPoint,(e.scale>=ble&&e.scale<=xle||isNaN(e.scale))&&(e.scale=1),(e.translate>=wle&&e.translate<=Sle||isNaN(e.translate))&&(e.translate=0)}function qi(e,t,r,n){SC(e.x,t.x,r.x,n?n.originX:void 0),SC(e.y,t.y,r.y,n?n.originY:void 0)}function PC(e,t,r){e.min=r.min+t.min,e.max=e.min+Pt(t)}function Cle(e,t,r){PC(e.x,t.x,r.x),PC(e.y,t.y,r.y)}function CC(e,t,r){e.min=t.min-r.min,e.max=e.min+Pt(t)}function Ec(e,t,r){CC(e.x,t.x,r.x),CC(e.y,t.y,r.y)}function EC(e,t,r,n,o){return e-=t,e=Cc(e,1/r,n),o!==void 0&&(e=Cc(e,1/o,n)),e}function Ele(e,t=0,r=1,n=.5,o,i=e,a=e){if(xr.test(t)&&(t=parseFloat(t),t=De(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=De(i.min,i.max,n);e===i&&(s-=t),e.min=EC(e.min,t,r,s,o),e.max=EC(e.max,t,r,s,o)}function OC(e,t,[r,n,o],i,a){Ele(e,t[r],t[n],t[o],t.scale,i,a)}const Ole=["x","scaleX","originX"],Ale=["y","scaleY","originY"];function AC(e,t,r,n){OC(e.x,t,Ole,r?r.x:void 0,n?n.x:void 0),OC(e.y,t,Ale,r?r.y:void 0,n?n.y:void 0)}function TC(e){return e.translate===0&&e.scale===1}function cN(e){return TC(e.x)&&TC(e.y)}function _C(e,t){return e.min===t.min&&e.max===t.max}function Tle(e,t){return _C(e.x,t.x)&&_C(e.y,t.y)}function MC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function uN(e,t){return MC(e.x,t.x)&&MC(e.y,t.y)}function jC(e){return Pt(e.x)/Pt(e.y)}function DC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function fr(e){return[e("x"),e("y")]}function _le(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=r?.z||0;if((o||i||a)&&(n=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:v}=r;c&&(n=`perspective(${c}px) ${n}`),u&&(n+=`rotate(${u}deg) `),d&&(n+=`rotateX(${d}deg) `),f&&(n+=`rotateY(${f}deg) `),h&&(n+=`skewX(${h}deg) `),v&&(n+=`skewY(${v}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(n+=`scale(${s}, ${l})`),n||"none"}const dN=["TopLeft","TopRight","BottomLeft","BottomRight"],Mle=dN.length,RC=e=>typeof e=="string"?parseFloat(e):e,kC=e=>typeof e=="number"||J.test(e);function jle(e,t,r,n,o,i){o?(e.opacity=De(0,r.opacity??1,Dle(n)),e.opacityExit=De(t.opacity??1,0,Rle(n))):i&&(e.opacity=De(t.opacity??1,r.opacity??1,n));for(let a=0;a<Mle;a++){const s=`border${dN[a]}Radius`;let l=IC(t,s),c=IC(r,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||kC(l)===kC(c)?(e[s]=Math.max(De(RC(l),RC(c),n),0),(xr.test(c)||xr.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||r.rotate)&&(e.rotate=De(t.rotate||0,r.rotate||0,n))}function IC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Dle=fN(0,.5,oI),Rle=fN(.5,.95,Ht);function fN(e,t,r){return n=>n<e?0:n>t?1:r(ma(e,t,n))}function kle(e,t,r){const n=pt(e)?e:ni(e);return n.start(yy("",n,t,r)),n.animation}function ba(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Ile=(e,t)=>e.depth-t.depth;class Nle{constructor(){this.children=[],this.isDirty=!1}add(t){ry(this.children,t),this.isDirty=!0}remove(t){bc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ile),this.isDirty=!1,this.children.forEach(t)}}function Lle(e,t){const r=St.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(wn(n),e(i-t))};return Pe.setup(n,!0),()=>wn(n)}function dl(e){return pt(e)?e.get():e}class $le{constructor(){this.members=[]}add(t){ry(this.members,t);for(let r=this.members.length-1;r>=0;r--){const n=this.members[r];if(n===t||n===this.lead||n===this.prevLead)continue;const o=n.instance;o&&o.isConnected===!1&&n.isPresent!==!1&&!n.snapshot&&bc(this.members,n)}t.scheduleRender()}remove(t){if(bc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o],a=i.instance;if(i.isPresent!==!1&&(!a||a.isConnected!==!1)){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender();const o=n.options.layoutDependency,i=t.options.layoutDependency;if(!(o!==void 0&&i!==void 0&&o===i)){const l=n.instance;l&&l.isConnected===!1&&!n.snapshot||(t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:s}=t.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const fl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ap=["","X","Y","Z"],Vle=1e3;let Fle=0;function sp(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function pN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=RI(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Pe,!(o||i))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&pN(n)}function hN({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t?.()){this.id=Fle++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Wle),this.nodes.forEach(Gle),this.nodes.forEach(qle),this.nodes.forEach(Kle)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Nle)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new oy),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Cy(a)&&!zse(a),this.instance=a;const{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;Pe.read(()=>{d=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,u&&u(),u=Lle(f,250),fl.hasAnimatedSinceResize&&(fl.hasAnimatedSinceResize=!1,this.nodes.forEach($C)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||Qle,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=c.getProps(),y=!this.targetLayout||!uN(this.targetLayout,h),x=!d&&f;if(this.options.layoutRoot||this.resumeFrom||x||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...gy(v,"layout"),onPlay:m,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,x)}else d||$C(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),wn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Yle),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(NC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(LC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Hle),this.nodes.forEach(Ble),this.nodes.forEach(zle)):this.nodes.forEach(LC),this.clearAllSnapshots();const s=St.now();lt.delta=Or(0,1e3/60,s-lt.timestamp),lt.timestamp=s,lt.isProcessing=!0,Jf.update.process(lt),Jf.preRender.process(lt),Jf.render.process(lt),lt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ule),this.sharedNodes.forEach(Xle)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Pt(this.snapshot.measuredBox.x)&&!Pt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ue(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&this.instance){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!cN(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&this.instance&&(s||Fn(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),ece(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ue();const s=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tce))){const{scroll:c}=this.root;c&&(Vo(s.x,c.offset.x),Vo(s.y,c.offset.y))}return s}removeElementScroll(a){const s=Ue();if(Jt(s,a),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&Jt(s,a),Vo(s.x,u.offset.x),Vo(s.y,u.offset.y))}return s}applyTransform(a,s=!1){const l=Ue();Jt(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Fo(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Fn(u.latestValues)&&Fo(l,u.latestValues)}return Fn(this.latestValues)&&Fo(l,this.latestValues),l}removeTransform(a){const s=Ue();Jt(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Fn(c.latestValues))continue;Gh(c.latestValues)&&c.updateSnapshot();const u=Ue(),d=c.measurePageBox();Jt(u,d),AC(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Fn(this.latestValues)&&AC(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==lt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=lt.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ue(),this.targetWithTransforms=Ue()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Cle(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jt(this.target,this.layout.layoutBox),ZI(this.target,this.targetDelta)):Jt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Gh(this.parent.latestValues)||XI(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,s,l){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ue(),this.relativeTargetOrigin=Ue(),Ec(this.relativeTargetOrigin,s,l),Jt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),s=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===lt.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Jt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;Qse(this.layoutCorrected,this.treeScale,this.path,s),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Ue());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(wC(this.prevProjectionDelta.x,this.projectionDelta.x),wC(this.prevProjectionDelta.y,this.projectionDelta.y)),qi(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!DC(this.projectionDelta.x,this.prevProjectionDelta.x)||!DC(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=$o(),this.projectionDelta=$o(),this.projectionDeltaWithTransform=$o()}setAnimationOrigin(a,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=$o();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=Ue(),h=l?l.source:void 0,v=this.layout?this.layout.source:void 0,m=h!==v,g=this.getStack(),y=!g||g.members.length<=1,x=!!(m&&!y&&this.options.crossfade===!0&&!this.path.some(Jle));this.animationProgress=0;let w;this.mixTargetDelta=S=>{const P=S/1e3;VC(d.x,a.x,P),VC(d.y,a.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ec(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Zle(this.relativeTarget,this.relativeTargetOrigin,f,P),w&&Tle(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ue()),Jt(w,this.relativeTarget)),m&&(this.animationValues=u,jle(u,c,this.latestValues,P,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(wn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pe.update(()=>{fl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ni(0)),this.currentAnimation=kle(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vle),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&mN(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ue();const d=Pt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=Pt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}Jt(s,l),Fo(s,u),qi(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new $le),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&sp("z",a,c,this.animationValues);for(let u=0;u<ap.length;u++)sp(`rotate${ap[u]}`,a,c,this.animationValues),sp(`skew${ap[u]}`,a,c,this.animationValues);a.render();for(const u in c)a.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=dl(s?.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=dl(s?.pointerEvents)||""),this.hasProjected&&!Fn(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=_le(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),a.transform=d;const{x:f,y:h}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,c.animationValues?a.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const v in Yh){if(u[v]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:y}=Yh[v],x=d==="none"?u[v]:m(u[v],c);if(g){const w=g.length;for(let S=0;S<w;S++)a[g[S]]=x}else y?this.options.visualElement.renderState.vars[v]=x:a[v]=x}this.options.layoutId&&(a.pointerEvents=c===this?dl(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(NC),this.root.sharedNodes.clear()}}}function Ble(e){e.updateLayout()}function zle(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?fr(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],f=Pt(d);d.min=r[u].min,d.max=d.min+f}):mN(o,t.layoutBox,r)&&fr(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],f=Pt(r[u]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const a=$o();qi(a,r,t.layoutBox);const s=$o();i?qi(s,e.applyTransform(n,!0),t.measuredBox):qi(s,r,t.layoutBox);const l=!cN(a);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const h=Ue();Ec(h,t.layoutBox,d.layoutBox);const v=Ue();Ec(v,r,f.layoutBox),uN(h,v)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=h,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Wle(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Kle(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ule(e){e.clearSnapshot()}function NC(e){e.clearMeasurements()}function LC(e){e.isLayoutDirty=!1}function Hle(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $C(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gle(e){e.resolveTargetDelta()}function qle(e){e.calcProjection()}function Yle(e){e.resetSkewAndRotation()}function Xle(e){e.removeLeadSnapshot()}function VC(e,t,r){e.translate=De(t.translate,0,r),e.scale=De(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function FC(e,t,r,n){e.min=De(t.min,r.min,n),e.max=De(t.max,r.max,n)}function Zle(e,t,r,n){FC(e.x,t.x,r.x,n),FC(e.y,t.y,r.y,n)}function Jle(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Qle={duration:.45,ease:[.4,0,.1,1]},BC=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),zC=BC("applewebkit/")&&!BC("chrome/")?Math.round:Ht;function WC(e){e.min=zC(e.min),e.max=zC(e.max)}function ece(e){WC(e.x),WC(e.y)}function mN(e,t,r){return e==="position"||e==="preserve-aspect"&&!Ple(jC(t),jC(r),.2)}function tce(e){return e!==e.root&&e.scroll?.wasRoot}const rce=hN({attachResizeListener:(e,t)=>ba(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),lp={current:void 0},vN=hN({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lp.current){const e=new rce({});e.mount(window),e.setOptions({layoutScroll:!0}),lp.current=e}return lp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_y=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function KC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nce(...e){return t=>{let r=!1;const n=e.map(o=>{const i=KC(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():KC(e[o],null)}}}}function oce(...e){return p.useCallback(nce(...e),e)}class ice extends p.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=r.offsetParent,o=Uh(n)&&n.offsetWidth||0,i=Uh(n)&&n.offsetHeight||0,a=this.props.sizeRef.current;a.height=r.offsetHeight||0,a.width=r.offsetWidth||0,a.top=r.offsetTop,a.left=r.offsetLeft,a.right=o-a.width-a.left,a.bottom=i-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function ace({children:e,isPresent:t,anchorX:r,anchorY:n,root:o,pop:i}){const a=O.useId(),s=O.useRef(null),l=O.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=O.useContext(_y),u=e.props?.ref??e?.ref,d=oce(s,u);return O.useInsertionEffect(()=>{const{width:f,height:h,top:v,left:m,right:g,bottom:y}=l.current;if(t||i===!1||!s.current||!f||!h)return;const x=r==="left"?`left: ${m}`:`right: ${g}`,w=n==="bottom"?`bottom: ${y}`:`top: ${v}`;s.current.dataset.motionPopId=a;const S=document.createElement("style");c&&(S.nonce=c);const P=o??document.head;return P.appendChild(S),S.sheet&&S.sheet.insertRule(`
98
+ A`,",",",0,0,",",",",","Z"])),E.x,E.y,i,i,+(u<0),C.x,C.y,n,n,+(T>180),+(u>0),x.x,x.y,i,i,+(u<0),S.x,S.y)}else w+=Ue(iS||(iS=po(["L",",","Z"])),t,r);return w},B6={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},xM=e=>{var t=et(e,B6),{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 f=ve("recharts-sector",d),h=i-o,v=Ot(a,h,0,!0),m;return v>0&&Math.abs(c-u)<360?m=V6({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(v,h/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=wM({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),p.createElement("path",Yh({},It(t),{className:f,d:m}))};function W6(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(qA(t)){if(e==="centric"){var{cx:n,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=Xe(n,o,i,s),c=Xe(n,o,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return bM(t)}}var pp={},hp={},mp={},aS;function z6(){return aS||(aS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sT();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(mp)),mp}var sS;function K6(){return sS||(sS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z6();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})(hp)),hp}var lS;function U6(){return lS||(lS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lT(),r=K6();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})(pp)),pp}var vp,cS;function H6(){return cS||(cS=1,vp=U6().range),vp}var G6=H6();const SM=Hn(G6);function Rn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Y6(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function eg(e){let t,r,n;e.length!==2?(t=Rn,r=(s,l)=>Rn(e(s),l),n=(s,l)=>e(s)-l):(t=e===Rn||e===Y6?e:q6,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 q6(){return 0}function PM(e){return e===null?NaN:+e}function*X6(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Z6=eg(Rn),ys=Z6.right;eg(PM).center;class uS extends Map{constructor(t,r=eG){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(dS(this,t))}has(t){return super.has(dS(this,t))}set(t,r){return super.set(Q6(this,t),r)}delete(t){return super.delete(J6(this,t))}}function dS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Q6({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function J6({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function eG(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tG(e=Rn){if(e===Rn)return CM;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 CM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const rG=Math.sqrt(50),nG=Math.sqrt(10),oG=Math.sqrt(2);function Tc(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>=rG?10:i>=nG?5:i>=oG?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?Tc(e,t,r*2):[s,l,c]}function qh(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?Tc(t,e,r):Tc(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 Xh(e,t,r){return t=+t,e=+e,r=+r,Tc(e,t,r)[2]}function Zh(e,t,r){t=+t,e=+e,r=+r;const n=t<e,o=n?Xh(t,e,r):Xh(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}function fS(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function pS(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function OM(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?CM:tG(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),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*d/l+f)),v=Math.min(n,Math.floor(t+(l-c)*d/l+f));OM(e,t,h,v,o)}const i=e[t];let a=r,s=n;for(ca(e,r,t),o(e[n],i)>0&&ca(e,r,n);a<s;){for(ca(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[r],i)===0?ca(e,r,s):(++s,ca(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function ca(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function iG(e,t,r){if(e=Float64Array.from(X6(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return pS(e);if(t>=1)return fS(e);var n,o=(n-1)*t,i=Math.floor(o),a=fS(OM(e,i).subarray(0,i+1)),s=pS(e.subarray(i+1));return a+(s-a)*(o-i)}}function aG(e,t,r=PM){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 sG(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 fr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function wn(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 Qh=Symbol("implicit");function tg(){var e=new uS,t=[],r=[],n=Qh;function o(i){let a=e.get(i);if(a===void 0){if(n!==Qh)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 uS;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 tg(t,r).unknown(n)},fr.apply(o,arguments),o}function rg(){var e=tg().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 f=t().length,h=o<n,v=h?o:n,m=h?n:o;i=(m-v)/Math.max(1,f-l+c*2),s&&(i=Math.floor(i)),v+=(m-v-i*(f-l))*u,a=i*(1-l),s&&(v=Math.round(v),a=Math.round(a));var g=sG(f).map(function(y){return v+i*y});return r(h?g.reverse():g)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([n,o]=f,n=+n,o=+o,d()):[n,o]},e.rangeRound=function(f){return[n,o]=f,n=+n,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return rg(t(),[n,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},fr.apply(d(),arguments)}function EM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return EM(t())},e}function lG(){return EM(rg.apply(null,arguments).paddingInner(1))}function ng(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function AM(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function bs(){}var $a=.7,Mc=1/$a,bi="\\s*([+-]?\\d+)\\s*",Fa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Lr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cG=/^#([0-9a-f]{3,8})$/,uG=new RegExp(`^rgb\\(${bi},${bi},${bi}\\)$`),dG=new RegExp(`^rgb\\(${Lr},${Lr},${Lr}\\)$`),fG=new RegExp(`^rgba\\(${bi},${bi},${bi},${Fa}\\)$`),pG=new RegExp(`^rgba\\(${Lr},${Lr},${Lr},${Fa}\\)$`),hG=new RegExp(`^hsl\\(${Fa},${Lr},${Lr}\\)$`),mG=new RegExp(`^hsla\\(${Fa},${Lr},${Lr},${Fa}\\)$`),hS={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};ng(bs,Va,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:mS,formatHex:mS,formatHex8:vG,formatHsl:gG,formatRgb:vS,toString:vS});function mS(){return this.rgb().formatHex()}function vG(){return this.rgb().formatHex8()}function gG(){return TM(this).formatHsl()}function vS(){return this.rgb().formatRgb()}function Va(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=cG.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?gS(t):r===3?new Vt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wl(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=uG.exec(e))?new Vt(t[1],t[2],t[3],1):(t=dG.exec(e))?new Vt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fG.exec(e))?wl(t[1],t[2],t[3],t[4]):(t=pG.exec(e))?wl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hG.exec(e))?wS(t[1],t[2]/100,t[3]/100,1):(t=mG.exec(e))?wS(t[1],t[2]/100,t[3]/100,t[4]):hS.hasOwnProperty(e)?gS(hS[e]):e==="transparent"?new Vt(NaN,NaN,NaN,0):null}function gS(e){return new Vt(e>>16&255,e>>8&255,e&255,1)}function wl(e,t,r,n){return n<=0&&(e=t=r=NaN),new Vt(e,t,r,n)}function yG(e){return e instanceof bs||(e=Va(e)),e?(e=e.rgb(),new Vt(e.r,e.g,e.b,e.opacity)):new Vt}function Jh(e,t,r,n){return arguments.length===1?yG(e):new Vt(e,t,r,n??1)}function Vt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ng(Vt,Jh,AM(bs,{brighter(e){return e=e==null?Mc:Math.pow(Mc,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?$a:Math.pow($a,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vt(Po(this.r),Po(this.g),Po(this.b),kc(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:yS,formatHex:yS,formatHex8:bG,formatRgb:bS,toString:bS}));function yS(){return`#${ho(this.r)}${ho(this.g)}${ho(this.b)}`}function bG(){return`#${ho(this.r)}${ho(this.g)}${ho(this.b)}${ho((isNaN(this.opacity)?1:this.opacity)*255)}`}function bS(){const e=kc(this.opacity);return`${e===1?"rgb(":"rgba("}${Po(this.r)}, ${Po(this.g)}, ${Po(this.b)}${e===1?")":`, ${e})`}`}function kc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Po(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ho(e){return e=Po(e),(e<16?"0":"")+e.toString(16)}function wS(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new gr(e,t,r,n)}function TM(e){if(e instanceof gr)return new gr(e.h,e.s,e.l,e.opacity);if(e instanceof bs||(e=Va(e)),!e)return new gr;if(e instanceof gr)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 gr(a,s,l,e.opacity)}function wG(e,t,r,n){return arguments.length===1?TM(e):new gr(e,t,r,n??1)}function gr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ng(gr,wG,AM(bs,{brighter(e){return e=e==null?Mc:Math.pow(Mc,e),new gr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$a:Math.pow($a,e),new gr(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 Vt(gp(e>=240?e-240:e+120,o,n),gp(e,o,n),gp(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new gr(xS(this.h),xl(this.s),xl(this.l),kc(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=kc(this.opacity);return`${e===1?"hsl(":"hsla("}${xS(this.h)}, ${xl(this.s)*100}%, ${xl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function xS(e){return e=(e||0)%360,e<0?e+360:e}function xl(e){return Math.max(0,Math.min(1,e||0))}function gp(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 og=e=>()=>e;function xG(e,t){return function(r){return e+r*t}}function SG(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 PG(e){return(e=+e)==1?MM:function(t,r){return r-t?SG(t,r,e):og(isNaN(t)?r:t)}}function MM(e,t){var r=t-e;return r?xG(e,r):og(isNaN(e)?t:e)}const SS=(function e(t){var r=PG(t);function n(o,i){var a=r((o=Jh(o)).r,(i=Jh(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=MM(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 CG(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 OG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function EG(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]=Fi(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 AG(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Dc(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function TG(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]=Fi(e[o],t[o]):n[o]=t[o];return function(i){for(o in r)n[o]=r[o](i);return n}}var em=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yp=new RegExp(em.source,"g");function MG(e){return function(){return e}}function kG(e){return function(t){return e(t)+""}}function DG(e,t){var r=em.lastIndex=yp.lastIndex=0,n,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=em.exec(e))&&(o=yp.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:Dc(n,o)})),r=yp.lastIndex;return r<t.length&&(i=t.slice(r),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?kG(l[0].x):MG(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 Fi(e,t){var r=typeof t,n;return t==null||r==="boolean"?og(t):(r==="number"?Dc:r==="string"?(n=Va(t))?(t=n,SS):DG:t instanceof Va?SS:t instanceof Date?AG:OG(t)?CG:Array.isArray(t)?EG:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?TG:Dc)(e,t)}function ig(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function _G(e,t){t===void 0&&(t=e,e=Fi);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 NG(e){return function(){return e}}function _c(e){return+e}var PS=[0,1];function _t(e){return e}function tm(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:NG(isNaN(t)?NaN:.5)}function jG(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function RG(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=tm(o,n),i=r(a,i)):(n=tm(n,o),i=r(i,a)),function(s){return i(n(s))}}function IG(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]=tm(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(s){var l=ys(e,s,1,n)-1;return i[l](o[l](s))}}function ws(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Yu(){var e=PS,t=PS,r=Fi,n,o,i,a=_t,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==_t&&(a=jG(e[0],e[f-1])),s=f>2?IG:RG,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(n),t,r)))(n(a(f)))}return d.invert=function(f){return a(o((c||(c=s(t,e.map(n),Dc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,_c),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),r=ig,u()},d.clamp=function(f){return arguments.length?(a=f?!0:_t,u()):a!==_t},d.interpolate=function(f){return arguments.length?(r=f,u()):r},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,h){return n=f,o=h,u()}}function ag(){return Yu()(_t,_t)}function LG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Nc(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 Ei(e){return e=Nc(Math.abs(e)),e?e[1]:NaN}function $G(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 FG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var VG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ba(e){if(!(t=VG.exec(e)))throw new Error("invalid format: "+e);var t;return new sg({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]})}Ba.prototype=sg.prototype;function sg(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+""}sg.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 BG(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 jc;function WG(e,t){var r=Nc(e,t);if(!r)return jc=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(jc=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")+Nc(e,Math.max(0,t+i-1))[0]}function CS(e,t){var r=Nc(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 OS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:LG,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)=>CS(e*100,t),r:CS,s:WG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ES(e){return e}var AS=Array.prototype.map,TS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zG(e){var t=e.grouping===void 0||e.thousands===void 0?ES:$G(AS.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?ES:FG(AS.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,f){d=Ba(d);var h=d.fill,v=d.align,m=d.sign,g=d.symbol,y=d.zero,w=d.width,x=d.comma,S=d.precision,P=d.trim,C=d.type;C==="n"?(x=!0,C="g"):OS[C]||(S===void 0&&(S=12),P=!0,C="g"),(y||h==="0"&&v==="=")&&(y=!0,h="0",v="=");var E=(f&&f.prefix!==void 0?f.prefix:"")+(g==="$"?r:g==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),A=(g==="$"?n:/[%p]/.test(C)?a:"")+(f&&f.suffix!==void 0?f.suffix:""),T=OS[C],M=/[defgprs%]/.test(C);S=S===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function D(k){var _=E,I=A,z,B,V;if(C==="c")I=T(k)+I,k="";else{k=+k;var j=k<0||1/k<0;if(k=isNaN(k)?l:T(Math.abs(k),S),P&&(k=BG(k)),j&&+k==0&&m!=="+"&&(j=!1),_=(j?m==="("?m:s:m==="-"||m==="("?"":m)+_,I=(C==="s"&&!isNaN(k)&&jc!==void 0?TS[8+jc/3]:"")+I+(j&&m==="("?")":""),M){for(z=-1,B=k.length;++z<B;)if(V=k.charCodeAt(z),48>V||V>57){I=(V===46?o+k.slice(z+1):k.slice(z))+I,k=k.slice(0,z);break}}}x&&!y&&(k=t(k,1/0));var L=_.length+k.length+I.length,H=L<w?new Array(w-L+1).join(h):"";switch(x&&y&&(k=t(H+k,H.length?w-I.length:1/0),H=""),v){case"<":k=_+k+I+H;break;case"=":k=_+H+k+I;break;case"^":k=H.slice(0,L=H.length>>1)+_+k+I+H.slice(L);break;default:k=H+_+k+I;break}return i(k)}return D.toString=function(){return d+""},D}function u(d,f){var h=Math.max(-8,Math.min(8,Math.floor(Ei(f)/3)))*3,v=Math.pow(10,-h),m=c((d=Ba(d),d.type="f",d),{suffix:TS[8+h/3]});return function(g){return m(v*g)}}return{format:c,formatPrefix:u}}var Sl,lg,kM;KG({thousands:",",grouping:[3],currency:["$",""]});function KG(e){return Sl=zG(e),lg=Sl.format,kM=Sl.formatPrefix,Sl}function UG(e){return Math.max(0,-Ei(Math.abs(e)))}function HG(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ei(t)/3)))*3-Ei(Math.abs(e)))}function GG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ei(t)-Ei(e))+1}function DM(e,t,r,n){var o=Zh(e,t,r),i;switch(n=Ba(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=HG(o,a))&&(n.precision=i),kM(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=GG(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=UG(o))&&(n.precision=i-(n.type==="%")*2);break}}return lg(n)}function Gn(e){var t=e.domain;return e.ticks=function(r){var n=t();return qh(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return DM(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=Xh(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 _M(){var e=ag();return e.copy=function(){return ws(e,_M())},fr.apply(e,arguments),Gn(e)}function NM(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,_c),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return NM(e).unknown(t)},e=arguments.length?Array.from(e,_c):[0,1],Gn(r)}function jM(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 MS(e){return Math.log(e)}function kS(e){return Math.exp(e)}function YG(e){return-Math.log(-e)}function qG(e){return-Math.exp(-e)}function XG(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ZG(e){return e===10?XG:e===Math.E?Math.exp:t=>Math.pow(e,t)}function QG(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 DS(e){return(t,r)=>-e(-t,r)}function cg(e){const t=e(MS,kS),r=t.domain;let n=10,o,i;function a(){return o=QG(n),i=ZG(n),r()[0]<0?(o=DS(o),i=DS(i),e(YG,qG)):e(MS,kS),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 f=o(c),h=o(u),v,m;const g=s==null?10:+s;let y=[];if(!(n%1)&&h-f<g){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(v=1;v<n;++v)if(m=f<0?v/i(-f):v*i(f),!(m<c)){if(m>u)break;y.push(m)}}else for(;f<=h;++f)for(v=n-1;v>=1;--v)if(m=f>0?v/i(-f):v*i(f),!(m<c)){if(m>u)break;y.push(m)}y.length*2<g&&(y=qh(c,u,g))}else y=qh(f,h,Math.min(h-f,g)).map(i);return d?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ba(l)).precision==null&&(l.trim=!0),l=lg(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(jM(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function RM(){const e=cg(Yu()).domain([1,10]);return e.copy=()=>ws(e,RM()).base(e.base()),fr.apply(e,arguments),e}function _S(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function NS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ug(e){var t=1,r=e(_S(t),NS(t));return r.constant=function(n){return arguments.length?e(_S(t=+n),NS(t)):t},Gn(r)}function IM(){var e=ug(Yu());return e.copy=function(){return ws(e,IM()).constant(e.constant())},fr.apply(e,arguments)}function jS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function JG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function eY(e){return e<0?-e*e:e*e}function dg(e){var t=e(_t,_t),r=1;function n(){return r===1?e(_t,_t):r===.5?e(JG,eY):e(jS(r),jS(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},Gn(t)}function fg(){var e=dg(Yu());return e.copy=function(){return ws(e,fg()).exponent(e.exponent())},fr.apply(e,arguments),e}function tY(){return fg.apply(null,arguments).exponent(.5)}function RS(e){return Math.sign(e)*e*e}function rY(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function LM(){var e=ag(),t=[0,1],r=!1,n;function o(i){var a=rY(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(RS(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,_c)).map(RS)),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 LM(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},fr.apply(o,arguments),Gn(o)}function $M(){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]=aG(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?n:t[ys(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(Rn),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 $M().domain(e).range(t).unknown(n)},fr.apply(i,arguments)}function FM(){var e=0,t=1,r=1,n=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[ys(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 FM().domain([e,t]).range(o).unknown(i)},fr.apply(Gn(a),arguments)}function VM(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[ys(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 VM().domain(e).range(t).unknown(r)},fr.apply(o,arguments)}const bp=new Date,wp=new Date;function st(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=>st(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)=>(bp.setTime(+i),wp.setTime(+a),e(bp),e(wp),Math.floor(r(bp,wp))),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 Rc=st(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Rc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?st(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Rc);Rc.range;const Qr=1e3,ir=Qr*60,Jr=ir*60,an=Jr*24,pg=an*7,IS=an*30,xp=an*365,mo=st(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Qr)},(e,t)=>(t-e)/Qr,e=>e.getUTCSeconds());mo.range;const hg=st(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qr)},(e,t)=>{e.setTime(+e+t*ir)},(e,t)=>(t-e)/ir,e=>e.getMinutes());hg.range;const mg=st(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ir)},(e,t)=>(t-e)/ir,e=>e.getUTCMinutes());mg.range;const vg=st(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qr-e.getMinutes()*ir)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getHours());vg.range;const gg=st(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getUTCHours());gg.range;const xs=st(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ir)/an,e=>e.getDate()-1);xs.range;const qu=st(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/an,e=>e.getUTCDate()-1);qu.range;const BM=st(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/an,e=>Math.floor(e/an));BM.range;function Ko(e){return st(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())*ir)/pg)}const Xu=Ko(0),Ic=Ko(1),nY=Ko(2),oY=Ko(3),Ai=Ko(4),iY=Ko(5),aY=Ko(6);Xu.range;Ic.range;nY.range;oY.range;Ai.range;iY.range;aY.range;function Uo(e){return st(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)/pg)}const Zu=Uo(0),Lc=Uo(1),sY=Uo(2),lY=Uo(3),Ti=Uo(4),cY=Uo(5),uY=Uo(6);Zu.range;Lc.range;sY.range;lY.range;Ti.range;cY.range;uY.range;const yg=st(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());yg.range;const bg=st(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());bg.range;const sn=st(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());sn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:st(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)});sn.range;const ln=st(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());ln.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:st(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)});ln.range;function WM(e,t,r,n,o,i){const a=[[mo,1,Qr],[mo,5,5*Qr],[mo,15,15*Qr],[mo,30,30*Qr],[i,1,ir],[i,5,5*ir],[i,15,15*ir],[i,30,30*ir],[o,1,Jr],[o,3,3*Jr],[o,6,6*Jr],[o,12,12*Jr],[n,1,an],[n,2,2*an],[r,1,pg],[t,1,IS],[t,3,3*IS],[e,1,xp]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),v=h?h.range(c,+u+1):[];return f?v.reverse():v}function l(c,u,d){const f=Math.abs(u-c)/d,h=eg(([,,g])=>g).right(a,f);if(h===a.length)return e.every(Zh(c/xp,u/xp,d));if(h===0)return Rc.every(Math.max(Zh(c,u,d),1));const[v,m]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return v.every(m)}return[s,l]}const[dY,fY]=WM(ln,bg,Zu,BM,gg,mg),[pY,hY]=WM(sn,yg,Xu,xs,vg,hg);function Sp(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 Pp(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 ua(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function mY(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=da(o),u=fa(o),d=da(i),f=fa(i),h=da(a),v=fa(a),m=da(s),g=fa(s),y=da(l),w=fa(l),x={a:V,A:j,b:L,B:H,c:null,d:WS,e:WS,f:$Y,g:YY,G:XY,H:RY,I:IY,j:LY,L:zM,m:FY,M:VY,p:te,q:le,Q:US,s:HS,S:BY,u:WY,U:zY,V:KY,w:UY,W:HY,x:null,X:null,y:GY,Y:qY,Z:ZY,"%":KS},S={a:ae,A:oe,b:Se,B:Me,c:null,d:zS,e:zS,f:t8,g:d8,G:p8,H:QY,I:JY,j:e8,L:UM,m:r8,M:n8,p:K,q:fe,Q:US,s:HS,S:o8,u:i8,U:a8,V:s8,w:l8,W:c8,x:null,X:null,y:u8,Y:f8,Z:h8,"%":KS},P={a:M,A:D,b:k,B:_,c:I,d:VS,e:VS,f:DY,g:FS,G:$S,H:BS,I:BS,j:AY,L:kY,m:EY,M:TY,p:T,q:OY,Q:NY,s:jY,S:MY,u:wY,U:xY,V:SY,w:bY,W:PY,x:z,X:B,y:FS,Y:$S,Z:CY,"%":_Y};x.x=C(r,x),x.X=C(n,x),x.c=C(t,x),S.x=C(r,S),S.X=C(n,S),S.c=C(t,S);function C($,G){return function(W){var F=[],he=-1,ue=0,Ye=$.length,tt,zt,Zs;for(W instanceof Date||(W=new Date(+W));++he<Ye;)$.charCodeAt(he)===37&&(F.push($.slice(ue,he)),(zt=LS[tt=$.charAt(++he)])!=null?tt=$.charAt(++he):zt=tt==="e"?" ":"0",(Zs=G[tt])&&(tt=Zs(W,zt)),F.push(tt),ue=he+1);return F.push($.slice(ue,he)),F.join("")}}function E($,G){return function(W){var F=ua(1900,void 0,1),he=A(F,$,W+="",0),ue,Ye;if(he!=W.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(G&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(ue=Pp(ua(F.y,0,1)),Ye=ue.getUTCDay(),ue=Ye>4||Ye===0?Lc.ceil(ue):Lc(ue),ue=qu.offset(ue,(F.V-1)*7),F.y=ue.getUTCFullYear(),F.m=ue.getUTCMonth(),F.d=ue.getUTCDate()+(F.w+6)%7):(ue=Sp(ua(F.y,0,1)),Ye=ue.getDay(),ue=Ye>4||Ye===0?Ic.ceil(ue):Ic(ue),ue=xs.offset(ue,(F.V-1)*7),F.y=ue.getFullYear(),F.m=ue.getMonth(),F.d=ue.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Ye="Z"in F?Pp(ua(F.y,0,1)).getUTCDay():Sp(ua(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Ye+5)%7:F.w+F.U*7-(Ye+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,Pp(F)):Sp(F)}}function A($,G,W,F){for(var he=0,ue=G.length,Ye=W.length,tt,zt;he<ue;){if(F>=Ye)return-1;if(tt=G.charCodeAt(he++),tt===37){if(tt=G.charAt(he++),zt=P[tt in LS?G.charAt(he++):tt],!zt||(F=zt($,W,F))<0)return-1}else if(tt!=W.charCodeAt(F++))return-1}return F}function T($,G,W){var F=c.exec(G.slice(W));return F?($.p=u.get(F[0].toLowerCase()),W+F[0].length):-1}function M($,G,W){var F=h.exec(G.slice(W));return F?($.w=v.get(F[0].toLowerCase()),W+F[0].length):-1}function D($,G,W){var F=d.exec(G.slice(W));return F?($.w=f.get(F[0].toLowerCase()),W+F[0].length):-1}function k($,G,W){var F=y.exec(G.slice(W));return F?($.m=w.get(F[0].toLowerCase()),W+F[0].length):-1}function _($,G,W){var F=m.exec(G.slice(W));return F?($.m=g.get(F[0].toLowerCase()),W+F[0].length):-1}function I($,G,W){return A($,t,G,W)}function z($,G,W){return A($,r,G,W)}function B($,G,W){return A($,n,G,W)}function V($){return a[$.getDay()]}function j($){return i[$.getDay()]}function L($){return l[$.getMonth()]}function H($){return s[$.getMonth()]}function te($){return o[+($.getHours()>=12)]}function le($){return 1+~~($.getMonth()/3)}function ae($){return a[$.getUTCDay()]}function oe($){return i[$.getUTCDay()]}function Se($){return l[$.getUTCMonth()]}function Me($){return s[$.getUTCMonth()]}function K($){return o[+($.getUTCHours()>=12)]}function fe($){return 1+~~($.getUTCMonth()/3)}return{format:function($){var G=C($+="",x);return G.toString=function(){return $},G},parse:function($){var G=E($+="",!1);return G.toString=function(){return $},G},utcFormat:function($){var G=C($+="",S);return G.toString=function(){return $},G},utcParse:function($){var G=E($+="",!0);return G.toString=function(){return $},G}}}var LS={"-":"",_:" ",0:"0"},mt=/^\s*\d+/,vY=/^%/,gY=/[\\^$*+?|[\]().{}]/g;function ge(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 yY(e){return e.replace(gY,"\\$&")}function da(e){return new RegExp("^(?:"+e.map(yY).join("|")+")","i")}function fa(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function bY(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function wY(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function xY(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function SY(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function PY(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function $S(e,t,r){var n=mt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function FS(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function CY(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 OY(e,t,r){var n=mt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function EY(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function VS(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function AY(e,t,r){var n=mt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function BS(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function TY(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function MY(e,t,r){var n=mt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function kY(e,t,r){var n=mt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function DY(e,t,r){var n=mt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _Y(e,t,r){var n=vY.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function NY(e,t,r){var n=mt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function jY(e,t,r){var n=mt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function WS(e,t){return ge(e.getDate(),t,2)}function RY(e,t){return ge(e.getHours(),t,2)}function IY(e,t){return ge(e.getHours()%12||12,t,2)}function LY(e,t){return ge(1+xs.count(sn(e),e),t,3)}function zM(e,t){return ge(e.getMilliseconds(),t,3)}function $Y(e,t){return zM(e,t)+"000"}function FY(e,t){return ge(e.getMonth()+1,t,2)}function VY(e,t){return ge(e.getMinutes(),t,2)}function BY(e,t){return ge(e.getSeconds(),t,2)}function WY(e){var t=e.getDay();return t===0?7:t}function zY(e,t){return ge(Xu.count(sn(e)-1,e),t,2)}function KM(e){var t=e.getDay();return t>=4||t===0?Ai(e):Ai.ceil(e)}function KY(e,t){return e=KM(e),ge(Ai.count(sn(e),e)+(sn(e).getDay()===4),t,2)}function UY(e){return e.getDay()}function HY(e,t){return ge(Ic.count(sn(e)-1,e),t,2)}function GY(e,t){return ge(e.getFullYear()%100,t,2)}function YY(e,t){return e=KM(e),ge(e.getFullYear()%100,t,2)}function qY(e,t){return ge(e.getFullYear()%1e4,t,4)}function XY(e,t){var r=e.getDay();return e=r>=4||r===0?Ai(e):Ai.ceil(e),ge(e.getFullYear()%1e4,t,4)}function ZY(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ge(t/60|0,"0",2)+ge(t%60,"0",2)}function zS(e,t){return ge(e.getUTCDate(),t,2)}function QY(e,t){return ge(e.getUTCHours(),t,2)}function JY(e,t){return ge(e.getUTCHours()%12||12,t,2)}function e8(e,t){return ge(1+qu.count(ln(e),e),t,3)}function UM(e,t){return ge(e.getUTCMilliseconds(),t,3)}function t8(e,t){return UM(e,t)+"000"}function r8(e,t){return ge(e.getUTCMonth()+1,t,2)}function n8(e,t){return ge(e.getUTCMinutes(),t,2)}function o8(e,t){return ge(e.getUTCSeconds(),t,2)}function i8(e){var t=e.getUTCDay();return t===0?7:t}function a8(e,t){return ge(Zu.count(ln(e)-1,e),t,2)}function HM(e){var t=e.getUTCDay();return t>=4||t===0?Ti(e):Ti.ceil(e)}function s8(e,t){return e=HM(e),ge(Ti.count(ln(e),e)+(ln(e).getUTCDay()===4),t,2)}function l8(e){return e.getUTCDay()}function c8(e,t){return ge(Lc.count(ln(e)-1,e),t,2)}function u8(e,t){return ge(e.getUTCFullYear()%100,t,2)}function d8(e,t){return e=HM(e),ge(e.getUTCFullYear()%100,t,2)}function f8(e,t){return ge(e.getUTCFullYear()%1e4,t,4)}function p8(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ti(e):Ti.ceil(e),ge(e.getUTCFullYear()%1e4,t,4)}function h8(){return"+0000"}function KS(){return"%"}function US(e){return+e}function HS(e){return Math.floor(+e/1e3)}var ei,GM,YM;m8({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 m8(e){return ei=mY(e),GM=ei.format,ei.parse,YM=ei.utcFormat,ei.utcParse,ei}function v8(e){return new Date(e)}function g8(e){return e instanceof Date?+e:+new Date(+e)}function wg(e,t,r,n,o,i,a,s,l,c){var u=ag(),d=u.invert,f=u.domain,h=c(".%L"),v=c(":%S"),m=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),w=c("%b %d"),x=c("%B"),S=c("%Y");function P(C){return(l(C)<C?h:s(C)<C?v:a(C)<C?m:i(C)<C?g:n(C)<C?o(C)<C?y:w:r(C)<C?x:S)(C)}return u.invert=function(C){return new Date(d(C))},u.domain=function(C){return arguments.length?f(Array.from(C,g8)):f().map(v8)},u.ticks=function(C){var E=f();return e(E[0],E[E.length-1],C??10)},u.tickFormat=function(C,E){return E==null?P:c(E)},u.nice=function(C){var E=f();return(!C||typeof C.range!="function")&&(C=t(E[0],E[E.length-1],C??10)),C?f(jM(E,C)):u},u.copy=function(){return ws(u,wg(e,t,r,n,o,i,a,s,l,c))},u}function y8(){return fr.apply(wg(pY,hY,sn,yg,Xu,xs,vg,hg,mo,GM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function b8(){return fr.apply(wg(dY,fY,ln,bg,Zu,qu,gg,mg,mo,YM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Qu(){var e=0,t=1,r,n,o,i,a=_t,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(f){var h,v;return arguments.length?([h,v]=f,a=d(h,v),c):[a(0),a(1)]}}return c.range=u(Fi),c.rangeRound=u(ig),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 Yn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function qM(){var e=Gn(Qu()(_t));return e.copy=function(){return Yn(e,qM())},wn.apply(e,arguments)}function XM(){var e=cg(Qu()).domain([1,10]);return e.copy=function(){return Yn(e,XM()).base(e.base())},wn.apply(e,arguments)}function ZM(){var e=ug(Qu());return e.copy=function(){return Yn(e,ZM()).constant(e.constant())},wn.apply(e,arguments)}function xg(){var e=dg(Qu());return e.copy=function(){return Yn(e,xg()).exponent(e.exponent())},wn.apply(e,arguments)}function w8(){return xg.apply(null,arguments).exponent(.5)}function QM(){var e=[],t=_t;function r(n){if(n!=null&&!isNaN(n=+n))return t((ys(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(Rn),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)=>iG(e,i/n))},r.copy=function(){return QM(t).domain(e)},wn.apply(r,arguments)}function Ju(){var e=0,t=.5,r=1,n=1,o,i,a,s,l,c=_t,u,d=!1,f;function h(m){return isNaN(m=+m)?f:(m=.5+((m=+u(m))-i)*(n*m<n*i?s:l),c(d?Math.max(0,Math.min(1,m)):m))}h.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,h):[e,t,r]},h.clamp=function(m){return arguments.length?(d=!!m,h):d},h.interpolator=function(m){return arguments.length?(c=m,h):c};function v(m){return function(g){var y,w,x;return arguments.length?([y,w,x]=g,c=_G(m,[y,w,x]),h):[c(0),c(.5),c(1)]}}return h.range=v(Fi),h.rangeRound=v(ig),h.unknown=function(m){return arguments.length?(f=m,h):f},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,h}}function JM(){var e=Gn(Ju()(_t));return e.copy=function(){return Yn(e,JM())},wn.apply(e,arguments)}function ek(){var e=cg(Ju()).domain([.1,1,10]);return e.copy=function(){return Yn(e,ek()).base(e.base())},wn.apply(e,arguments)}function tk(){var e=ug(Ju());return e.copy=function(){return Yn(e,tk()).constant(e.constant())},wn.apply(e,arguments)}function Sg(){var e=dg(Ju());return e.copy=function(){return Yn(e,Sg()).exponent(e.exponent())},wn.apply(e,arguments)}function x8(){return Sg.apply(null,arguments).exponent(.5)}const ba=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:rg,scaleDiverging:JM,scaleDivergingLog:ek,scaleDivergingPow:Sg,scaleDivergingSqrt:x8,scaleDivergingSymlog:tk,scaleIdentity:NM,scaleImplicit:Qh,scaleLinear:_M,scaleLog:RM,scaleOrdinal:tg,scalePoint:lG,scalePow:fg,scaleQuantile:$M,scaleQuantize:FM,scaleRadial:LM,scaleSequential:qM,scaleSequentialLog:XM,scaleSequentialPow:xg,scaleSequentialQuantile:QM,scaleSequentialSqrt:w8,scaleSequentialSymlog:ZM,scaleSqrt:tY,scaleSymlog:IM,scaleThreshold:VM,scaleTime:y8,scaleUtc:b8,tickFormat:DM},Symbol.toStringTag,{value:"Module"}));var xn=e=>e.chartData,ed=R([xn],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Pg=(e,t,r,n)=>n?ed(e):xn(e),S8=(e,t,r)=>r?ed(e):xn(e);function cn(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(pe(t)&&pe(r))return!0}return!1}function GS(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function rk(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,o,i;if(pe(r))o=r;else if(typeof r=="function")return;if(pe(n))i=n;else if(typeof n=="function")return;var a=[o,i];if(cn(a))return a}}function P8(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(cn(n))return GS(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(Y(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&n0.test(o)){var l=n0.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(Y(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[1]))}catch{}else if(typeof i=="string"&&o0.test(i)){var u=o0.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 f=[a,s];if(cn(f))return t==null?f:GS(f,t,r)}}}var Vi=1e9,C8={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Og,$e=!0,dr="[DecimalError] ",Co=dr+"Invalid argument: ",Cg=dr+"Exponent out of range: ",Bi=Math.floor,lo=Math.pow,O8=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Yt,dt=1e7,je=7,nk=9007199254740991,$c=Bi(nk/je),q={};q.absoluteValue=q.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};q.comparedTo=q.cmp=function(e){var t,r,n,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};q.decimalPlaces=q.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*je;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};q.dividedBy=q.div=function(e){return rn(this,new this.constructor(e))};q.dividedToIntegerBy=q.idiv=function(e){var t=this,r=t.constructor;return ke(rn(t,new r(e),0,1),r.precision)};q.equals=q.eq=function(e){return!this.cmp(e)};q.exponent=function(){return Qe(this)};q.greaterThan=q.gt=function(e){return this.cmp(e)>0};q.greaterThanOrEqualTo=q.gte=function(e){return this.cmp(e)>=0};q.isInteger=q.isint=function(){return this.e>this.d.length-2};q.isNegative=q.isneg=function(){return this.s<0};q.isPositive=q.ispos=function(){return this.s>0};q.isZero=function(){return this.s===0};q.lessThan=q.lt=function(e){return this.cmp(e)<0};q.lessThanOrEqualTo=q.lte=function(e){return this.cmp(e)<1};q.logarithm=q.log=function(e){var t,r=this,n=r.constructor,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(Yt))throw Error(dr+"NaN");if(r.s<1)throw Error(dr+(r.s?"NaN":"-Infinity"));return r.eq(Yt)?new n(0):($e=!1,t=rn(Wa(r,i),Wa(e,i),i),$e=!0,ke(t,o))};q.minus=q.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ak(t,e):ok(t,(e.s=-e.s,e))};q.modulo=q.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(e=new n(e),!e.s)throw Error(dr+"NaN");return r.s?($e=!1,t=rn(r,e,0,1).times(e),$e=!0,r.minus(t)):ke(new n(r),o)};q.naturalExponential=q.exp=function(){return ik(this)};q.naturalLogarithm=q.ln=function(){return Wa(this)};q.negated=q.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};q.plus=q.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ok(t,e):ak(t,(e.s=-e.s,e))};q.precision=q.sd=function(e){var t,r,n,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Co+e);if(t=Qe(o)+1,n=o.d.length-1,r=n*je+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};q.squareRoot=q.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(dr+"NaN")}for(e=Qe(s),$e=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=jr(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Bi((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(rn(s,i,a+2)).times(.5),jr(i.d).slice(0,a)===(t=jr(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(ke(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;a+=4}return $e=!0,ke(n,r)};q.times=q.mul=function(e){var t,r,n,o,i,a,s,l,c,u=this,d=u.constructor,f=u.d,h=(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=f.length,c=h.length,l<c&&(i=f,f=h,h=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]+h[n]*f[o-n-1]+t,i[o--]=s%dt|0,t=s/dt|0;i[o]=(i[o]+t)%dt|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,$e?ke(e,d.precision):e};q.toDecimalPlaces=q.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(zr(e,0,Vi),t===void 0?t=n.rounding:zr(t,0,8),ke(r,e+Qe(r)+1,t))};q.toExponential=function(e,t){var r,n=this,o=n.constructor;return e===void 0?r=jo(n,!0):(zr(e,0,Vi),t===void 0?t=o.rounding:zr(t,0,8),n=ke(new o(n),e+1,t),r=jo(n,!0,e+1)),r};q.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?jo(o):(zr(e,0,Vi),t===void 0?t=i.rounding:zr(t,0,8),n=ke(new i(o),e+Qe(o)+1,t),r=jo(n.abs(),!1,e+Qe(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)};q.toInteger=q.toint=function(){var e=this,t=e.constructor;return ke(new t(e),Qe(e)+1,t.rounding)};q.toNumber=function(){return+this};q.toPower=q.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(Yt);if(s=new l(s),!s.s){if(e.s<1)throw Error(dr+"Infinity");return s}if(s.eq(Yt))return s;if(n=l.precision,e.eq(Yt))return ke(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,i=s.s,a){if((r=u<0?-u:u)<=nk){for(o=new l(Yt),t=Math.ceil(n/je+4),$e=!1;r%2&&(o=o.times(s),qS(o.d,t)),r=Bi(r/2),r!==0;)s=s.times(s),qS(s.d,t);return $e=!0,e.s<0?new l(Yt).div(o):ke(o,n)}}else if(i<0)throw Error(dr+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,$e=!1,o=e.times(Wa(s,n+c)),$e=!0,o=ik(o),o.s=i,o};q.toPrecision=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?(r=Qe(o),n=jo(o,r<=i.toExpNeg||r>=i.toExpPos)):(zr(e,1,Vi),t===void 0?t=i.rounding:zr(t,0,8),o=ke(new i(o),e,t),r=Qe(o),n=jo(o,e<=r||r<=i.toExpNeg,e)),n};q.toSignificantDigits=q.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(zr(e,1,Vi),t===void 0?t=n.rounding:zr(t,0,8)),ke(new n(r),e,t)};q.toString=q.valueOf=q.val=q.toJSON=q[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Qe(e),r=e.constructor;return jo(e,t<=r.toExpNeg||t>=r.toExpPos)};function ok(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?ke(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/je),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)/dt|0,l[i]%=dt;for(r&&(l.unshift(r),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,$e?ke(t,d):t}function zr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Co+e)}function jr(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=je-n.length,r&&(i+=kn(r)),i+=n;a=e[t],n=a+"",r=je-n.length,r&&(i+=kn(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var rn=(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%dt|0,a=i/dt|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*dt+n[i]-o[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,o,i,a){var s,l,c,u,d,f,h,v,m,g,y,w,x,S,P,C,E,A,T=n.constructor,M=n.s==o.s?1:-1,D=n.d,k=o.d;if(!n.s)return new T(n);if(!o.s)throw Error(dr+"Division by zero");for(l=n.e-o.e,E=k.length,P=D.length,h=new T(M),v=h.d=[],c=0;k[c]==(D[c]||0);)++c;if(k[c]>(D[c]||0)&&--l,i==null?w=i=T.precision:a?w=i+(Qe(n)-Qe(o))+1:w=i,w<0)return new T(0);if(w=w/je+2|0,c=0,E==1)for(u=0,k=k[0],w++;(c<P||u)&&w--;c++)x=u*dt+(D[c]||0),v[c]=x/k|0,u=x%k|0;else{for(u=dt/(k[0]+1)|0,u>1&&(k=e(k,u),D=e(D,u),E=k.length,P=D.length),S=E,m=D.slice(0,E),g=m.length;g<E;)m[g++]=0;A=k.slice(),A.unshift(0),C=k[0],k[1]>=dt/2&&++C;do u=0,s=t(k,m,E,g),s<0?(y=m[0],E!=g&&(y=y*dt+(m[1]||0)),u=y/C|0,u>1?(u>=dt&&(u=dt-1),d=e(k,u),f=d.length,g=m.length,s=t(d,m,f,g),s==1&&(u--,r(d,E<f?A:k,f))):(u==0&&(s=u=1),d=k.slice()),f=d.length,f<g&&d.unshift(0),r(m,d,g),s==-1&&(g=m.length,s=t(k,m,E,g),s<1&&(u++,r(m,E<g?A:k,g))),g=m.length):s===0&&(u++,m=[0]),v[c++]=u,s&&m[0]?m[g++]=D[S]||0:(m=[D[S]],g=1);while((S++<P||m[0]!==void 0)&&w--)}return v[0]||v.shift(),h.e=l,ke(h,a?i+Qe(h)+1:i)}})();function ik(e,t){var r,n,o,i,a,s,l=0,c=0,u=e.constructor,d=u.precision;if(Qe(e)>16)throw Error(Cg+Qe(e));if(!e.s)return new u(Yt);for($e=!1,s=d,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(n=Math.log(lo(2,c))/Math.LN10*2+5|0,s+=n,r=o=i=new u(Yt),u.precision=s;;){if(o=ke(o.times(e),s),r=r.times(++l),a=i.plus(rn(o,r,s)),jr(a.d).slice(0,s)===jr(i.d).slice(0,s)){for(;c--;)i=ke(i.times(i),s);return u.precision=d,t==null?($e=!0,ke(i,d)):i}i=a}}function Qe(e){for(var t=e.e*je,r=e.d[0];r>=10;r/=10)t++;return t}function Cp(e,t,r){if(t>e.LN10.sd())throw $e=!0,r&&(e.precision=r),Error(dr+"LN10 precision limit exceeded");return ke(new e(e.LN10),t)}function kn(e){for(var t="";e--;)t+="0";return t}function Wa(e,t){var r,n,o,i,a,s,l,c,u,d=1,f=10,h=e,v=h.d,m=h.constructor,g=m.precision;if(h.s<1)throw Error(dr+(h.s?"NaN":"-Infinity"));if(h.eq(Yt))return new m(0);if(t==null?($e=!1,c=g):c=t,h.eq(10))return t==null&&($e=!0),Cp(m,c);if(c+=f,m.precision=c,r=jr(v),n=r.charAt(0),i=Qe(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=jr(h.d),n=r.charAt(0),d++;i=Qe(h),n>1?(h=new m("0."+r),i++):h=new m(n+"."+r.slice(1))}else return l=Cp(m,c+2,g).times(i+""),h=Wa(new m(n+"."+r.slice(1)),c-f).plus(l),m.precision=g,t==null?($e=!0,ke(h,g)):h;for(s=a=h=rn(h.minus(Yt),h.plus(Yt),c),u=ke(h.times(h),c),o=3;;){if(a=ke(a.times(u),c),l=s.plus(rn(a,new m(o),c)),jr(l.d).slice(0,c)===jr(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(Cp(m,c+2,g).times(i+""))),s=rn(s,new m(d),c),m.precision=g,t==null?($e=!0,ke(s,g)):s;s=l,o+=2}}function YS(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=Bi(r/je),e.d=[],n=(r+1)%je,r<0&&(n+=je),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=je;n<o;)e.d.push(+t.slice(n,n+=je));t=t.slice(n),n=je-t.length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),$e&&(e.e>$c||e.e<-$c))throw Error(Cg+r)}else e.s=0,e.e=0,e.d=[0];return e}function ke(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+=je,o=t,c=d[u=0];else{if(u=Math.ceil((n+1)/je),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;n%=je,o=n-je+a}if(r!==void 0&&(i=lo(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/lo(10,a-o):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return l?(i=Qe(e),d.length=1,t=t-i-1,d[0]=lo(10,(je-t%je)%je),e.e=Bi(-t/je)||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=lo(10,je-n),d[u]=o>0?(c/lo(10,a-o)%lo(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==dt&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=dt)break;d[u--]=0,i=1}for(n=d.length;d[--n]===0;)d.pop();if($e&&(e.e>$c||e.e<-$c))throw Error(Cg+Qe(e));return e}function ak(e,t){var r,n,o,i,a,s,l,c,u,d,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),$e?ke(t,h):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(h/je),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]=dt-1;--l[i],l[o]+=dt}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?ke(t,h):t):new f(0)}function jo(e,t,r){var n,o=Qe(e),i=jr(e.d),a=i.length;return t?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+kn(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+kn(-o-1)+i,r&&(n=r-a)>0&&(i+=kn(n))):o>=a?(i+=kn(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+kn(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=kn(n))),e.s<0?"-"+i:i}function qS(e,t){if(e.length>t)return e.length=t,!0}function sk(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(Co+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 YS(a,i.toString())}else if(typeof i!="string")throw Error(Co+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,O8.test(i))YS(a,i);else throw Error(Co+i)}if(o.prototype=q,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=sk,o.config=o.set=E8,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 E8(e){if(!e||typeof e!="object")throw Error(dr+"Object expected");var t,r,n,o=["precision",1,Vi,"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(Bi(n)===n&&n>=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Co+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Co+r+": "+n);return this}var Og=sk(C8);Yt=new Og(1);const Ce=Og;function lk(e){var t;return e===0?t=1:t=Math.floor(new Ce(e).abs().log(10).toNumber())+1,t}function ck(e,t,r){for(var n=new Ce(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}var uk=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},dk=(e,t,r)=>{if(e.lte(0))return new Ce(0);var n=lk(e.toNumber()),o=new Ce(10).pow(n),i=e.div(o),a=n!==1?.05:.1,s=new Ce(Math.ceil(i.div(a).toNumber())).add(r).mul(a),l=s.mul(o);return t?new Ce(l.toNumber()):new Ce(Math.ceil(l.toNumber()))},A8=(e,t,r)=>{var n=new Ce(1),o=new Ce(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new Ce(10).pow(lk(e)-1),o=new Ce(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new Ce(Math.floor(e)))}else e===0?o=new Ce(Math.floor((t-1)/2)):r||(o=new Ce(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l<t;l++)s.push(o.add(new Ce(l-a).mul(n)).toNumber());return s},fk=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 Ce(0),tickMin:new Ce(0),tickMax:new Ce(0)};var a=dk(new Ce(r).sub(t).div(n-1),o,i),s;t<=0&&r>=0?s=new Ce(0):(s=new Ce(t).add(r).div(2),s=s.sub(new Ce(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),c=Math.ceil(new Ce(r).sub(s).div(a).toNumber()),u=l+c+1;return u>n?fk(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 Ce(l).mul(a)),tickMax:s.add(new Ce(c).mul(a))})},T8=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]=uk([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 A8(s,o,i);var{step:u,tickMin:d,tickMax:f}=fk(s,l,a,i,0),h=ck(d,f.add(new Ce(.1).mul(u)),u);return r>n?h.reverse():h},M8=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=uk([n,o]);if(a===-1/0||s===1/0)return[n,o];if(a===s)return[a];var l=Math.max(r,2),c=dk(new Ce(s).sub(a).div(l-1),i,0),u=[...ck(new Ce(a),new Ce(s),c),s];return i===!1&&(u=u.map(d=>Math.round(d))),n>o?u.reverse():u},pk=e=>e.rootProps.maxBarSize,k8=e=>e.rootProps.barGap,hk=e=>e.rootProps.barCategoryGap,D8=e=>e.rootProps.barSize,Ss=e=>e.rootProps.stackOffset,mk=e=>e.rootProps.reverseStackOrder,Eg=e=>e.options.chartName,Ag=e=>e.rootProps.syncId,vk=e=>e.rootProps.syncMethod,Tg=e=>e.options.eventEmitter,Ze={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},no={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Ar={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},td=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function rd(e,t,r){if(r!=="auto")return r;if(e!=null)return gn(e,t)?"category":"number"}function XS(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 Fc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XS(Object(r),!0).forEach(function(n){_8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _8(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=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)}var ZS={allowDataOverflow:no.allowDataOverflow,allowDecimals:no.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:no.angleAxisId,includeHidden:!1,name:void 0,reversed:no.reversed,scale:no.scale,tick:no.tick,tickCount:void 0,ticks:void 0,type:no.type,unit:void 0},QS={allowDataOverflow:Ar.allowDataOverflow,allowDecimals:Ar.allowDecimals,allowDuplicatedCategory:Ar.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ar.radiusAxisId,includeHidden:Ar.includeHidden,name:void 0,reversed:Ar.reversed,scale:Ar.scale,tick:Ar.tick,tickCount:Ar.tickCount,ticks:void 0,type:Ar.type,unit:void 0},R8=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},Mg=R([R8,tM],(e,t)=>{var r;if(e!=null)return e;var n=(r=rd(t,"angleAxis",ZS.type))!==null&&r!==void 0?r:"category";return Fc(Fc({},ZS),{},{type:n})}),I8=(e,t)=>e.polarAxis.radiusAxis[t],kg=R([I8,tM],(e,t)=>{var r;if(e!=null)return e;var n=(r=rd(t,"radiusAxis",QS.type))!==null&&r!==void 0?r:"category";return Fc(Fc({},QS),{},{type:n})}),nd=e=>e.polarOptions,Dg=R([yn,bn,at],yM),gk=R([nd,Dg],(e,t)=>{if(e!=null)return Ot(e.innerRadius,t,0)}),yk=R([nd,Dg],(e,t)=>{if(e!=null)return Ot(e.outerRadius,t,t*.8)}),L8=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},bk=R([nd],L8);R([Mg,bk],td);var wk=R([Dg,gk,yk],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});R([kg,wk],td);var xk=R([ye,nd,gk,yk,yn,bn],(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:Ot(a,o,o/2),cy:Ot(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),ze=(e,t)=>t,Ps=(e,t,r)=>r;function _g(e){return e?.id}function Sk(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=_g(s);c.forEach((d,f)=>{var h=i==null||o?f:String(Ae(d,i,null)),v=Ae(d,s.dataKey,0),m;a.has(h)?m=a.get(h):m={},Object.assign(m,{[u]:v}),a.set(h,m)})}}),Array.from(a.values())}function od(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var id=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function ad(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function $8(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 vt=e=>{var t=ye(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Wi=e=>e.tooltip.settings.axisId;function F8(e){if(e in ba)return ba[e]();var t="scale".concat(ss(e));if(t in ba)return ba[t]()}function JS(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 eP(e,t,r){if(typeof e=="function")return JS(e.copy().domain(t).range(r));if(e!=null){var n=F8(e);if(n!=null)return n.domain(t).range(r),JS(n)}}var Pk=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!cn(t)){for(var r,n,o=0;o<t.length;o++){var i=t[o];pe(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 tP(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 Vc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tP(Object(r),!0).forEach(function(n){V8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V8(e,t,r){return(t=B8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B8(e){var t=W8(e,"string");return typeof t=="symbol"?t:t+""}function W8(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 rm=[0,"auto"],ct={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},Ck=(e,t)=>e.cartesianAxis.xAxis[t],Sn=(e,t)=>{var r=Ck(e,t);return r??ct},ut={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:rm,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:ps},Ok=(e,t)=>e.cartesianAxis.yAxis[t],Pn=(e,t)=>{var r=Ok(e,t);return r??ut},z8={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:""},Ng=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??z8},Ge=(e,t,r)=>{switch(t){case"xAxis":return Sn(e,r);case"yAxis":return Pn(e,r);case"zAxis":return Ng(e,r);case"angleAxis":return Mg(e,r);case"radiusAxis":return kg(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},K8=(e,t,r)=>{switch(t){case"xAxis":return Sn(e,r);case"yAxis":return Pn(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},zi=(e,t,r)=>{switch(t){case"xAxis":return Sn(e,r);case"yAxis":return Pn(e,r);case"angleAxis":return Mg(e,r);case"radiusAxis":return kg(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Ek=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function jg(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 sd=e=>e.graphicalItems.cartesianItems,U8=R([ze,Ps],jg),Rg=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Cs=R([sd,Ge,U8],Rg,{memoizeOptions:{resultEqualityCheck:ad}}),Ak=R([Cs],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(od)),Tk=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),H8=R([Cs],Tk),Ig=e=>e.map(t=>t.data).filter(Boolean).flat(1),G8=R([Cs],Ig,{memoizeOptions:{resultEqualityCheck:ad}}),Lg=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},$g=R([G8,Pg],Lg),Fg=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:Ae(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(o=>({value:Ae(o,n)}))):e.map(n=>({value:n})),ld=R([$g,Ge,Cs],Fg);function Mk(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function zl(e){if(Br(e)||e instanceof Date){var t=Number(e);if(pe(t))return t}}function rP(e){if(Array.isArray(e)){var t=[zl(e[0]),zl(e[1])];return cn(t)?t:void 0}var r=zl(e);if(r!=null)return[r,r]}function un(e){return e.map(zl).filter(Ft)}function Y8(e,t,r){return!r||typeof t!="number"||Vr(t)?[]:r.length?un(r.flatMap(n=>{var o=Ae(e,n.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!pe(i)||!pe(a)))return[t-i,t+a]})):[]}var lt=e=>{var t=vt(e),r=Wi(e);return zi(e,t,r)},Os=R([lt],e=>e?.dataKey),q8=R([Ak,Pg,lt],Sk),kk=(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(_g);return[s,{stackedData:hU(e,u,r),graphicalItems:c}]}))},nm=R([q8,Ak,Ss,mk],kk),Dk=(e,t,r,n)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var a=bU(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},X8=R([Ge],e=>e.allowDataOverflow),Vg=e=>{var t;if(e==null||!("domain"in e))return rm;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=un(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:rm},Bg=R([Ge],Vg),Wg=R([Bg,X8],rk),Z8=R([nm,xn,ze,Wg],Dk,{memoizeOptions:{resultEqualityCheck:id}}),cd=e=>e.errorBars,Q8=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>Mk(r,n)),Bc=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]}},zg=(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(y=>Mk(o,y)),f=Ae(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),h=Y8(s,f,d);if(h.length>=2){var v=Math.min(...h),m=Math.max(...h);(i==null||v<i)&&(i=v),(a==null||m>a)&&(a=m)}var g=rP(f);g!=null&&(i=i==null?g[0]:Math.min(i,g[0]),a=a==null?g[1]:Math.max(a,g[1]))})}),t?.dataKey!=null&&e.forEach(s=>{var l=rP(Ae(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]))}),pe(i)&&pe(a))return[i,a]},J8=R([$g,Ge,H8,cd,ze],zg,{memoizeOptions:{resultEqualityCheck:id}});function eq(e){var{value:t}=e;if(Br(t)||t instanceof Date)return t}var tq=(e,t,r)=>{var n=e.map(eq).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&HA(n))?SM(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},_k=e=>e.referenceElements.dots,Ki=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),rq=R([_k,ze,Ps],Ki),Nk=e=>e.referenceElements.areas,nq=R([Nk,ze,Ps],Ki),jk=e=>e.referenceElements.lines,oq=R([jk,ze,Ps],Ki),Rk=(e,t)=>{if(e!=null){var r=un(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},iq=R(rq,ze,Rk),Ik=(e,t)=>{if(e!=null){var r=un(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)]}},aq=R([nq,ze],Ik);function sq(e){var t;if(e.x!=null)return un([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:un(r)}function lq(e){var t;if(e.y!=null)return un([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:un(r)}var Lk=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?sq(n):lq(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},cq=R([oq,ze],Lk),uq=R(iq,cq,aq,(e,t,r)=>Bc(e,r,t)),Kg=(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?Bc(n,i,o):Bc(i,o);return P8(t,c,e.allowDataOverflow)},dq=R([Ge,Bg,Wg,Z8,J8,uq,ye,ze],Kg,{memoizeOptions:{resultEqualityCheck:id}}),fq=[0,1],Ug=(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=gn(t,i);if(c&&s==null){var u;return SM(0,(u=r?.length)!==null&&u!==void 0?u:0)}return l==="category"?tq(n,e,c):o==="expand"?fq:a}},Hg=R([Ge,ye,$g,ld,Ss,ze,dq],Ug);function pq(e){return e in ba}var $k=(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(ss(n));return pq(i)?i:"point"}}},qn=R([Ge,Ek,Eg],$k);function Gg(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?eP(e.scale,r,n):eP(t,r,n)}var Yg=(e,t,r)=>{var n=Vg(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&cn(e))return T8(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&cn(e))return M8(e,t.tickCount,t.allowDecimals)}},qg=R([Hg,zi,qn],Yg),Xg=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&cn(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},hq=R([Ge,Hg,qg,ze],Xg),mq=R(ld,Ge,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(un(e.map(d=>d.value))).sort((d,f)=>d-f),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}}),Fk=R(mq,ye,hk,at,(e,t,r,n,o)=>o,(e,t,r,n,o)=>{if(!pe(e))return 0;var i=t==="vertical"?n.height:n.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=Ot(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),vq=(e,t,r)=>{var n=Sn(e,t);return n==null||typeof n.padding!="string"?0:Fk(e,"xAxis",t,r,n.padding)},gq=(e,t,r)=>{var n=Pn(e,t);return n==null||typeof n.padding!="string"?0:Fk(e,"yAxis",t,r,n.padding)},yq=R(Sn,vq,(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}}),bq=R(Pn,gq,(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}}),wq=R([at,yq,Bu,Vu,(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]}),xq=R([at,ye,bq,Bu,Vu,(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]}),Es=(e,t,r,n)=>{var o;switch(t){case"xAxis":return wq(e,r,n);case"yAxis":return xq(e,r,n);case"zAxis":return(o=Ng(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return bk(e);case"radiusAxis":return wk(e,r);default:return}},Vk=R([Ge,Es],td),Sq=R([qn,hq],Pk),ud=R([Ge,qn,Sq,Vk],Gg);R([Cs,cd,ze],Q8);function Bk(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var dd=(e,t)=>t,fd=(e,t,r)=>r,Pq=R($u,dd,fd,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Bk)),Cq=R(Fu,dd,fd,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Bk)),Wk=(e,t)=>({width:e.width,height:t.height}),Oq=(e,t)=>{var r=typeof t.width=="number"?t.width:ps;return{width:r,height:e.height}},zk=R(at,Sn,Wk),Eq=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},Aq=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},Tq=R(bn,at,Pq,dd,fd,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=Wk(t,s);a==null&&(a=Eq(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}),Mq=R(yn,at,Cq,dd,fd,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=Oq(t,s);a==null&&(a=Aq(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}),kq=(e,t)=>{var r=Sn(e,t);if(r!=null)return Tq(e,r.orientation,r.mirror)},Dq=R([at,Sn,kq,(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}}}),_q=(e,t)=>{var r=Pn(e,t);if(r!=null)return Mq(e,r.orientation,r.mirror)},Nq=R([at,Pn,_q,(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}}}),Kk=R(at,Pn,(e,t)=>{var r=typeof t.width=="number"?t.width:ps;return{width:r,height:e.height}}),nP=(e,t,r)=>{switch(t){case"xAxis":return zk(e,r).width;case"yAxis":return Kk(e,r).height;default:return}},Uk=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=r,s=gn(e,n),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&HA(l))return l}},Zg=R([ye,ld,Ge,ze],Uk),Hk=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:i}=r,a=gn(e,n);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},Qg=R([ye,ld,zi,ze],Hk),oP=R([ye,K8,qn,ud,Zg,Qg,Es,qg,ze],(e,t,r,n,o,i,a,s,l)=>{if(t!=null){var c=gn(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}}}),jq=(e,t,r,n,o,i,a,s,l)=>{if(!(t==null||n==null)){var c=gn(e,l),{type:u,ticks:d,tickCount:f}=t,h=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,v=u==="category"&&n.bandwidth?n.bandwidth()/h:0;v=l==="angleAxis"&&i!=null&&i.length>=2?ft(i[0]-i[1])*2*v:v;var m=d||o;return m?m.map((g,y)=>{var w=a?a.indexOf(g):g,x=n.map(w);return pe(x)?{index:y,coordinate:x+v,value:g,offset:v}:null}).filter(Ft):c&&s?s.map((g,y)=>{var w=n.map(g);return pe(w)?{coordinate:w+v,value:g,index:y,offset:v}:null}).filter(Ft):n.ticks?n.ticks(f).map((g,y)=>{var w=n.map(g);return pe(w)?{coordinate:w+v,value:g,index:y,offset:v}:null}).filter(Ft):n.domain().map((g,y)=>{var w=n.map(g);return pe(w)?{coordinate:w+v,value:a?a[g]:g,index:y,offset:v}:null}).filter(Ft)}},Gk=R([ye,zi,qn,ud,qg,Es,Zg,Qg,ze],jq),Rq=(e,t,r,n,o,i,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=gn(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&n?.length>=2?ft(n[0]-n[1])*2*c:c,s&&i?i.map((u,d)=>{var f=r.map(u);return pe(f)?{coordinate:f+c,value:u,index:d,offset:c}:null}).filter(Ft):r.ticks?r.ticks(l).map((u,d)=>{var f=r.map(u);return pe(f)?{coordinate:f+c,value:u,index:d,offset:c}:null}).filter(Ft):r.domain().map((u,d)=>{var f=r.map(u);return pe(f)?{coordinate:f+c,value:o?o[u]:u,index:d,offset:c}:null}).filter(Ft)}},$n=R([ye,zi,ud,Es,Zg,Qg,ze],Rq),Fn=R(Ge,ud,(e,t)=>{if(!(e==null||t==null))return Vc(Vc({},e),{},{scale:t})}),Iq=R([Ge,qn,Hg,Vk],Gg);R((e,t,r)=>Ng(e,r),Iq,(e,t)=>{if(!(e==null||t==null))return Vc(Vc({},e),{},{scale:t})});var Lq=R([ye,$u,Fu],(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}}),Yk=e=>e.options.defaultTooltipEventType,qk=e=>e.options.validateTooltipEventTypes;function Xk(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Jg(e,t){var r=Yk(e),n=qk(e);return Xk(t,r,n)}function $q(e){return J(t=>Jg(t,e))}var Zk=(e,t)=>{var r,n=Number(t);if(!(Vr(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},Fq=e=>e.tooltip.settings,_n={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Vq={itemInteraction:{click:_n,hover:_n},axisInteraction:{click:_n,hover:_n},keyboardInteraction:_n,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}},Qk=Bt({name:"tooltip",initialState:Vq,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Ie()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,o=br(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=n)},prepare:Ie()},removeTooltipEntrySettings:{reducer(e,t){var r=br(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Ie()},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:Bq,replaceTooltipEntrySettings:Wq,removeTooltipEntrySettings:zq,setTooltipSettingsState:Kq,setActiveMouseOverItemIndex:Jk,mouseLeaveItem:Uq,mouseLeaveChart:eD,setActiveClickItemIndex:Hq,setMouseOverAxisIndex:tD,setMouseClickAxisIndex:Gq,setSyncInteraction:om,setKeyboardInteraction:im}=Qk.actions,Yq=Qk.reducer;function iP(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 Pl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iP(Object(r),!0).forEach(function(n){qq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qq(e,t,r){return(t=Xq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xq(e){var t=Zq(e,"string");return typeof t=="symbol"?t:t+""}function Zq(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 Qq(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Jq(e){return e.index!=null}var rD=(e,t,r,n)=>{if(t==null)return _n;var o=Qq(e,t,r);if(o==null)return _n;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(Jq(o)){if(i)return Pl(Pl({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Pl(Pl({},_n),{},{coordinate:o.coordinate})};function e9(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 t9(e,t){var r=e9(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 r9(e,t,r){if(r==null||t==null)return!0;var n=Ae(e,t);return n==null||!cn(r)?!0:t9(n,r)}var ey=(e,t,r,n)=>{var o=e?.index;if(o==null)return null;var i=Number(o);if(!pe(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||r9(c,r,n)?String(l):null},nD=(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}}},oD=(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})},iD=e=>e.options.tooltipPayloadSearcher,Ui=e=>e.tooltip;function aP(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 sP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(r),!0).forEach(function(n){n9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n9(e,t,r){return(t=o9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o9(e){var t=i9(e,"string");return typeof t=="symbol"?t:t+""}function i9(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 a9(e,t){return e??t}var aD=(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((f,h)=>{var v,{dataDefinedOnItem:m,settings:g}=h,y=a9(m,s),w=Array.isArray(y)?KT(y,c,u):y,x=(v=g?.dataKey)!==null&&v!==void 0?v:n,S=g?.nameKey,P;if(n&&Array.isArray(w)&&!Array.isArray(w[0])&&a==="axis"?P=GA(w,n,o):P=i(w,t,l,S),Array.isArray(P))P.forEach(E=>{var A=sP(sP({},g),{},{name:E.name,unit:E.unit,color:void 0,fill:void 0});f.push(i0({tooltipEntrySettings:A,dataKey:E.dataKey,payload:E.payload,value:Ae(E.payload,E.dataKey),name:E.name}))});else{var C;f.push(i0({tooltipEntrySettings:g,dataKey:x,payload:P,value:Ae(P,x),name:(C=Ae(P,S))!==null&&C!==void 0?C:g?.name}))}return f},d)}},ty=R([lt,Ek,Eg],$k),s9=R([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),l9=R([vt,Wi],jg),Hi=R([s9,lt,l9],Rg,{memoizeOptions:{resultEqualityCheck:ad}}),c9=R([Hi],e=>e.filter(od)),u9=R([Hi],Ig,{memoizeOptions:{resultEqualityCheck:ad}}),Gi=R([u9,xn],Lg),d9=R([c9,xn,lt],Sk),ry=R([Gi,lt,Hi],Fg),sD=R([lt],Vg),f9=R([lt],e=>e.allowDataOverflow),lD=R([sD,f9],rk),p9=R([Hi],e=>e.filter(od)),h9=R([d9,p9,Ss,mk],kk),m9=R([h9,xn,vt,lD],Dk),v9=R([Hi],Tk),g9=R([Gi,lt,v9,cd,vt],zg,{memoizeOptions:{resultEqualityCheck:id}}),y9=R([_k,vt,Wi],Ki),b9=R([y9,vt],Rk),w9=R([Nk,vt,Wi],Ki),x9=R([w9,vt],Ik),S9=R([jk,vt,Wi],Ki),P9=R([S9,vt],Lk),C9=R([b9,P9,x9],Bc),O9=R([lt,sD,lD,m9,g9,C9,ye,vt],Kg),As=R([lt,ye,Gi,ry,Ss,vt,O9],Ug),E9=R([As,lt,ty],Yg),A9=R([lt,As,E9,vt],Xg),cD=e=>{var t=vt(e),r=Wi(e),n=!1;return Es(e,t,r,n)},uD=R([lt,cD],td),dD=R([lt,ty,A9,uD],Gg),T9=R([ye,ry,lt,vt],Uk),M9=R([ye,ry,lt,vt],Hk),k9=(e,t,r,n,o,i,a,s)=>{if(t){var{type:l}=t,c=gn(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?ft(o[0]-o[1])*2*d:d,c&&a?a.map((f,h)=>{var v=n.map(f);return pe(v)?{coordinate:v+d,value:f,index:h,offset:d}:null}).filter(Ft):n.domain().map((f,h)=>{var v=n.map(f);return pe(v)?{coordinate:v+d,value:i?i[f]:f,index:h,offset:d}:null}).filter(Ft)}}},Cn=R([ye,lt,ty,dD,cD,T9,M9,vt],k9),ny=R([Yk,qk,Fq],(e,t,r)=>Xk(r.shared,e,t)),fD=e=>e.tooltip.settings.trigger,oy=e=>e.tooltip.settings.defaultIndex,Ts=R([Ui,ny,fD,oy],rD),Vn=R([Ts,Gi,Os,As],ey),pD=R([Cn,Vn],Zk),iy=R([Ts],e=>{if(e)return e.dataKey}),D9=R([Ts],e=>{if(e)return e.graphicalItemId}),hD=R([Ui,ny,fD,oy],oD),_9=R([yn,bn,ye,at,Cn,oy,hD],nD),N9=R([Ts,_9],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),j9=R([Ts],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),R9=R([hD,Vn,xn,Os,pD,iD,ny],aD),I9=R([R9],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function lP(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 cP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(r),!0).forEach(function(n){L9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L9(e,t,r){return(t=$9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $9(e){var t=F9(e,"string");return typeof t=="symbol"?t:t+""}function F9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var V9=()=>J(lt),B9=()=>{var e=V9(),t=J(Cn),r=J(dD);return Pi(!e||!r?void 0:cP(cP({},e),{},{scale:r}),t)};function uP(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 ti(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(r),!0).forEach(function(n){W9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W9(e,t,r){return(t=z9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z9(e){var t=K9(e,"string");return typeof t=="symbol"?t:t+""}function K9(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 U9=(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}},H9=(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 ti(ti(ti({},n),Xe(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=n;return ti(ti(ti({},n),Xe(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 G9(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 mD=(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,f,h=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,v=(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:(f=r[s+1])===null||f===void 0?void 0:f.coordinate,g=void 0;if(!(h==null||v==null||m==null))if(ft(v-h)!==ft(m-v)){var y=[];if(ft(m-v)===ft(o[1]-o[0])){g=m;var w=v+o[1]-o[0];y[0]=Math.min(w,(w+h)/2),y[1]=Math.max(w,(w+h)/2)}else{g=h;var x=m+o[1]-o[0];y[0]=Math.min(v,(x+v)/2),y[1]=Math.max(v,(x+v)/2)}var S=[Math.min(v,(g+v)/2),Math.max(v,(g+v)/2)];if(e>S[0]&&e<=S[1]||e>=y[0]&&e<=y[1]){var P;return(P=r[s])===null||P===void 0?void 0:P.index}}else{var C=Math.min(h,m),E=Math.max(h,m);if(e>(C+v)/2&&e<=(E+v)/2){var A;return(A=r[s])===null||A===void 0?void 0:A.index}}}else if(t)for(var T=0;T<a;T++){var M=t[T];if(M!=null){var D=t[T+1],k=t[T-1];if(T===0&&D!=null&&e<=(M.coordinate+D.coordinate)/2||T===a-1&&k!=null&&e>(M.coordinate+k.coordinate)/2||T>0&&T<a-1&&k!=null&&D!=null&&e>(M.coordinate+k.coordinate)/2&&e<=(M.coordinate+D.coordinate)/2)return M.index}}return-1},Y9=()=>J(Eg),ay=(e,t)=>t,vD=(e,t,r)=>r,sy=(e,t,r,n)=>n,q9=R(Cn,e=>Mu(e,t=>t.coordinate)),ly=R([Ui,ay,vD,sy],rD),cy=R([ly,Gi,Os,As],ey),X9=(e,t,r)=>{if(t!=null){var n=Ui(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},gD=R([Ui,ay,vD,sy],oD),Wc=R([yn,bn,ye,at,Cn,sy,gD],nD),Z9=R([ly,Wc],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),yD=R([Cn,cy],Zk),Q9=R([gD,cy,xn,Os,yD,iD,ay],aD),J9=R([ly,cy],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),e7=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&G9(e,a)){var s=wU(e,t),l=mD(s,i,o,r,n),c=U9(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},t7=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=$6(e,r);if(s){var l=xU(s,t),c=mD(l,a,i,n,o),u=H9(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},r7=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?e7(e,t,n,o,i,a,s):t7(e,t,r,n,o,i,a)},n7=R(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}}),o7=R(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(Ze)),r=Array.from(new Set(t));return r.sort((n,o)=>n-o)},{memoizeOptions:{resultEqualityCheck:$8}});function dP(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 fP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dP(Object(r),!0).forEach(function(n){i7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i7(e,t,r){return(t=a7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a7(e){var t=s7(e,"string");return typeof t=="symbol"?t:t+""}function s7(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 l7={},c7={zIndexMap:Object.values(Ze).reduce((e,t)=>fP(fP({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),l7)},u7=new Set(Object.values(Ze));function d7(e){return u7.has(e)}var bD=Bt({name:"zIndex",initialState:c7,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:Ie()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!d7(r)&&delete e.zIndexMap[r])},prepare:Ie()},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:Ie()},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:Ie()}}}),{registerZIndexPortal:f7,unregisterZIndexPortal:p7,registerZIndexPortalElement:h7,unregisterZIndexPortalElement:m7}=bD.actions,v7=bD.reducer;function Wt(e){var{zIndex:t,children:r}=e,n=QU(),o=n&&t!==void 0&&t!==0,i=Tt(),a=Ne();O.useLayoutEffect(()=>o?(a(f7({zIndex:t})),()=>{a(p7({zIndex:t}))}):Wo,[a,t,o]);var s=J(l=>n7(l,t,i));return o?s?ns.createPortal(r,s):null:r}function am(){return am=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},am.apply(null,arguments)}function pP(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 Cl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pP(Object(r),!0).forEach(function(n){g7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g7(e,t,r){return(t=y7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y7(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 w7(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return O.isValidElement(t)?O.cloneElement(t,n):O.createElement(r,n)}function x7(e){var t,{coordinate:r,payload:n,index:o,offset:i,tooltipAxisBandSize:a,layout:s,cursor:l,tooltipEventType:c,chartName:u}=e,d=r,f=n,h=o;if(!l||!d||u!=="ScatterChart"&&c!=="axis")return null;var v,m,g;if(u==="ScatterChart")v=d,m=QH,g=Ze.cursorLine;else if(u==="BarChart")v=JH(s,d,i,a),m=gM,g=Ze.cursorRectangle;else if(s==="radial"&&qA(d)){var{cx:y,cy:w,radius:x,startAngle:S,endAngle:P}=bM(d);v={cx:y,cy:w,startAngle:S,endAngle:P,innerRadius:x,outerRadius:x},m=xM,g=Ze.cursorLine}else v={points:W6(s,d,i)},m=Jv,g=Ze.cursorLine;var C=typeof l=="object"&&"className"in l?l.className:void 0,E=Cl(Cl(Cl(Cl({stroke:"#ccc",pointerEvents:"none"},i),v),Ao(l)),{},{payload:f,payloadIndex:h,className:ve("recharts-tooltip-cursor",C)});return p.createElement(Wt,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:g},p.createElement(w7,{cursor:l,cursorComp:m,cursorProps:E}))}function S7(e){var t=B9(),r=JT(),n=zo(),o=Y9();return t==null||r==null||n==null||o==null?null:p.createElement(x7,am({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:o}))}var wD=O.createContext(null),P7=()=>O.useContext(wD),Op={exports:{}},hP;function C7(){return hP||(hP=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,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new o(u,d||l,f),v=r?r+c:c;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],h]:l._events[v].push(h):(l._events[v]=h,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 f=0,h=d.length,v=new Array(h);f<h;f++)v[f]=d[f].fn;return v},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,f,h,v){var m=r?r+c:c;if(!this._events[m])return!1;var g=this._events[m],y=arguments.length,w,x;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,d),!0;case 4:return g.fn.call(g.context,u,d,f),!0;case 5:return g.fn.call(g.context,u,d,f,h),!0;case 6:return g.fn.call(g.context,u,d,f,h,v),!0}for(x=1,w=new Array(y-1);x<y;x++)w[x-1]=arguments[x];g.fn.apply(g.context,w)}else{var S=g.length,P;for(x=0;x<S;x++)switch(g[x].once&&this.removeListener(c,g[x].fn,void 0,!0),y){case 1:g[x].fn.call(g[x].context);break;case 2:g[x].fn.call(g[x].context,u);break;case 3:g[x].fn.call(g[x].context,u,d);break;case 4:g[x].fn.call(g[x].context,u,d,f);break;default:if(!w)for(P=1,w=new Array(y-1);P<y;P++)w[P-1]=arguments[P];g[x].fn.apply(g[x].context,w)}}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,f){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return a(this,h),this;var v=this._events[h];if(v.fn)v.fn===u&&(!f||v.once)&&(!d||v.context===d)&&a(this,h);else{for(var m=0,g=[],y=v.length;m<y;m++)(v[m].fn!==u||f&&!v[m].once||d&&v[m].context!==d)&&g.push(v[m]);g.length?this._events[h]=g.length===1?g[0]:g:a(this,h)}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})(Op)),Op.exports}var O7=C7();const E7=Hn(O7);var za=new E7,sm="recharts.syncEvent.tooltip",mP="recharts.syncEvent.brush",uy=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!Vr(r))return e[r]}},A7={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},xD=Bt({name:"options",initialState:A7,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),T7=xD.reducer,{createEventEmitter:M7}=xD.actions;function k7(e){return e.tooltip.syncInteraction}var D7={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},SD=Bt({name:"chartData",initialState:D7,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:vP,setDataStartEndIndexes:_7,setComputedData:rye}=SD.actions,N7=SD.reducer,j7=["x","y"];function gP(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 ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(r),!0).forEach(function(n){R7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R7(e,t,r){return(t=I7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I7(e){var t=L7(e,"string");return typeof t=="symbol"?t:t+""}function L7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $7(e,t){if(e==null)return{};var r,n,o=F7(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 F7(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(){var e=J(Ag),t=J(Tg),r=Ne(),n=J(vk),o=J(Cn),i=zo(),a=Wu(),s=J(l=>l.rootProps.className);O.useEffect(()=>{if(e==null)return Wo;var l=(c,u,d)=>{if(t!==d&&e===c){if(n==="index"){var f;if(a&&u!==null&&u!==void 0&&(f=u.payload)!==null&&f!==void 0&&f.coordinate&&u.payload.sourceViewBox){var h=u.payload.coordinate,{x:v,y:m}=h,g=$7(h,j7),{x:y,y:w,width:x,height:S}=u.payload.sourceViewBox,P=ri(ri({},g),{},{x:a.x+(x?(v-y)/x:0)*a.width,y:a.y+(S?(m-w)/S:0)*a.height});r(ri(ri({},u),{},{payload:ri(ri({},u.payload),{},{coordinate:P})}))}else r(u);return}if(o!=null){var C;if(typeof n=="function"){var E={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},A=n(o,E);C=o[A]}else n==="value"&&(C=o.find(B=>String(B.value)===u.payload.label));var{coordinate:T}=u.payload;if(C==null||u.payload.active===!1||T==null||a==null){r(om({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:M,y:D}=T,k=Math.min(M,a.x+a.width),_=Math.min(D,a.y+a.height),I={x:i==="horizontal"?C.coordinate:k,y:i==="horizontal"?_:C.coordinate},z=om({active:u.payload.active,coordinate:I,dataKey:u.payload.dataKey,index:String(C.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(z)}}};return za.on(sm,l),()=>{za.off(sm,l)}},[s,r,t,e,n,o,i,a])}function B7(){var e=J(Ag),t=J(Tg),r=Ne();O.useEffect(()=>{if(e==null)return Wo;var n=(o,i,a)=>{t!==a&&e===o&&r(_7(i))};return za.on(mP,n),()=>{za.off(mP,n)}},[r,t,e])}function W7(){var e=Ne();O.useEffect(()=>{e(M7())},[e]),V7(),B7()}function z7(e,t,r,n,o,i){var a=J(h=>X9(h,e,t)),s=J(Tg),l=J(Ag),c=J(vk),u=J(k7),d=u?.active,f=Wu();O.useEffect(()=>{if(!d&&l!=null&&s!=null){var h=om({active:i,coordinate:r,dataKey:a,index:o,label:typeof n=="number"?String(n):n,sourceViewBox:f,graphicalItemId:void 0});za.emit(sm,l,h,s)}},[d,r,a,o,n,s,l,c,i,f])}function yP(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 bP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yP(Object(r),!0).forEach(function(n){K7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K7(e,t,r){return(t=U7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U7(e){var t=H7(e,"string");return typeof t=="symbol"?t:t+""}function H7(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 G7(e){return e.dataKey}function Y7(e,t){return p.isValidElement(e)?p.cloneElement(e,t):typeof e=="function"?p.createElement(e,t):p.createElement(DH,t)}var wP=[],q7={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 dy(e){var t,r,n=et(e,q7),{active:o,allowEscapeViewBox:i,animationDuration:a,animationEasing:s,content:l,filterNull:c,isAnimationActive:u,offset:d,payloadUniqBy:f,position:h,reverseDirection:v,useTranslate3d:m,wrapperStyle:g,cursor:y,shared:w,trigger:x,defaultIndex:S,portal:P,axisId:C}=n,E=Ne(),A=typeof S=="number"?String(S):S;O.useEffect(()=>{E(Kq({shared:w,trigger:x,axisId:C,active:o,defaultIndex:A}))},[E,w,x,C,o,A]);var T=Wu(),M=fM(),D=$q(w),{activeIndex:k,isActive:_}=(t=J(K=>J9(K,D,x,A)))!==null&&t!==void 0?t:{},I=J(K=>Q9(K,D,x,A)),z=J(K=>yD(K,D,x,A)),B=J(K=>Z9(K,D,x,A)),V=I,j=P7(),L=(r=o??_)!==null&&r!==void 0?r:!1,[H,te]=uT([V,L]),le=D==="axis"?z:void 0;z7(D,x,B,le,k,L);var ae=P??j;if(ae==null||T==null||D==null)return null;var oe=V??wP;L||(oe=wP),c&&oe.length&&(oe=oT(oe.filter(K=>K.value!=null&&(K.hide!==!0||n.includeHidden)),f,G7));var Se=oe.length>0,Me=p.createElement($H,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:L,coordinate:B,hasPayload:Se,offset:d,position:h,reverseDirection:v,useTranslate3d:m,viewBox:T,wrapperStyle:g,lastBoundingBox:H,innerRef:te,hasPortalFromProps:!!P},Y7(l,bP(bP({},n),{},{payload:oe,label:le,active:L,activeIndex:k,coordinate:B,accessibilityLayer:M})));return p.createElement(p.Fragment,null,ns.createPortal(Me,ae),L&&p.createElement(S7,{cursor:y,tooltipEventType:D,coordinate:B,payload:oe,index:k}))}var Ms=e=>null;Ms.displayName="Cell";function X7(e,t,r){return(t=Z7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z7(e){var t=Q7(e,"string");return typeof t=="symbol"?t:t+""}function Q7(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 J7{constructor(t){X7(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 xP(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?xP(Object(r),!0).forEach(function(n){tX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tX(e,t,r){return(t=rX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rX(e){var t=nX(e,"string");return typeof t=="symbol"?t:t+""}function nX(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 oX={cacheSize:2e3,enableCache:!0},PD=eX({},oX),SP=new J7(PD.cacheSize),iX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},PP="recharts_measurement_span";function aX(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 CP=(e,t)=>{try{var r=document.getElementById(PP);r||(r=document.createElement("span"),r.setAttribute("id",PP),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,iX,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Ea=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Gu.isSsr)return{width:0,height:0};if(!PD.enableCache)return CP(t,r);var n=aX(t,r),o=SP.get(n);if(o)return o;var i=CP(t,r);return SP.set(n,i),i},CD;function sX(e,t,r){return(t=lX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lX(e){var t=cX(e,"string");return typeof t=="symbol"?t:t+""}function cX(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 OP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,EP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,dX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,fX={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},pX=["cm","mm","pt","pc","in","Q","px"];function hX(e){return pX.includes(e)}var li="NaN";function mX(e,t){return e*fX[t]}class bt{static parse(t){var r,[,n,o]=(r=dX.exec(t))!==null&&r!==void 0?r:[];return n==null?bt.NaN:new bt(parseFloat(n),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Vr(t)&&(this.unit=""),r!==""&&!uX.test(r)&&(this.num=NaN,this.unit=""),hX(r)&&(this.num=mX(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new bt(NaN,""):new bt(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new bt(NaN,""):new bt(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new bt(NaN,""):new bt(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new bt(NaN,""):new bt(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Vr(this.num)}}CD=bt;sX(bt,"NaN",new CD(NaN,""));function OD(e){if(e==null||e.includes(li))return li;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=OP.exec(t))!==null&&r!==void 0?r:[],a=bt.parse(n??""),s=bt.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return li;t=t.replace(OP,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,f]=(c=EP.exec(t))!==null&&c!==void 0?c:[],h=bt.parse(u??""),v=bt.parse(f??""),m=d==="+"?h.add(v):h.subtract(v);if(m.isNaN())return li;t=t.replace(EP,m.toString())}return t}var AP=/\(([^()]*)\)/;function vX(e){for(var t=e,r;(r=AP.exec(t))!=null;){var[,n]=r;t=t.replace(AP,OD(n))}return t}function gX(e){var t=e.replace(/\s+/g,"");return t=vX(t),t=OD(t),t}function yX(e){try{return gX(e)}catch{return li}}function Ep(e){var t=yX(e.slice(5,-1));return t===li?"":t}var bX=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],wX=["dx","dy","angle","className","breakAll"];function lm(){return lm=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},lm.apply(null,arguments)}function TP(e,t){if(e==null)return{};var r,n,o=xX(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 xX(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 ED=/[ \f\n\r\t\v\u2028\u2029]+/,AD=e=>{var{children:t,breakAll:r,style:n}=e;try{var o=[];We(t)||(r?o=t.toString().split(""):o=t.toString().split(ED));var i=o.map(s=>({word:s,width:Ea(s,n).width})),a=r?0:Ea(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function SX(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var TD=(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},[]),MD=e=>e.reduce((t,r)=>t.width>r.width?t:r),PX="…",MP=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=AD({breakAll:r,style:n,children:l+PX});if(!c)return[!1,[]];var u=TD(c.wordsWithComputedWidth,i,a,s),d=u.length>o||MD(u).width>Number(i);return[d,u]},CX=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=Y(i),u=String(a),d=TD(t,n,r,o);if(!c||o)return d;var f=d.length>i||MD(d).width>Number(n);if(!f)return d;for(var h=0,v=u.length-1,m=0,g;h<=v&&m<=u.length-1;){var y=Math.floor((h+v)/2),w=y-1,[x,S]=MP(u,w,l,s,i,n,r,o),[P]=MP(u,y,l,s,i,n,r,o);if(!x&&!P&&(h=y+1),x&&P&&(v=y-1),!x&&P){g=S;break}m++}return g||d},kP=e=>{var t=We(e)?[]:e.toString().split(ED);return[{words:t,width:void 0}]},OX=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!Gu.isSsr){var s,l,c=AD({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;s=u,l=d}else return kP(n);return CX({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return kP(n)},kD="#808080",EX={angle:0,breakAll:!1,capHeight:"0.71em",fill:kD,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},pd=O.forwardRef((e,t)=>{var r=et(e,EX),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,d=TP(r,bX),f=O.useMemo(()=>OX({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:h,dy:v,angle:m,className:g,breakAll:y}=d,w=TP(d,wX);if(!Br(n)||!Br(o)||f.length===0)return null;var x=Number(n)+(Y(h)?h:0),S=Number(o)+(Y(v)?v:0);if(!pe(x)||!pe(S))return null;var P;switch(u){case"start":P=Ep("calc(".concat(a,")"));break;case"middle":P=Ep("calc(".concat((f.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:P=Ep("calc(".concat(f.length-1," * -").concat(i,")"));break}var C=[],E=f[0];if(l&&E!=null){var A=E.width,{width:T}=d;C.push("scale(".concat(Y(T)&&Y(A)?T/A:1,")"))}return m&&C.push("rotate(".concat(m,", ").concat(x,", ").concat(S,")")),C.length&&(w.transform=C.join(" ")),p.createElement("text",lm({},It(w),{ref:t,x,y:S,className:ve("recharts-text",g),textAnchor:c,fill:s.includes("url")?kD:s}),f.map((M,D)=>{var k=M.words.join(y?"":" ");return p.createElement("tspan",{x,dy:D===0?P:i,key:"".concat(k,"-").concat(D)},k)}))});pd.displayName="Text";function DP(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 Tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DP(Object(r),!0).forEach(function(n){AX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AX(e,t,r){return(t=TX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TX(e){var t=MX(e,"string");return typeof t=="symbol"?t:t+""}function MX(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 kX=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:o}=e,{x:i,y:a,height:s,upperWidth:l,lowerWidth:c}=Yv(t),u=i,d=i+(l-c)/2,f=(u+d)/2,h=(l+c)/2,v=u+l/2,m=s>=0?1:-1,g=m*n,y=m>0?"end":"start",w=m>0?"start":"end",x=l>=0?1:-1,S=x*n,P=x>0?"end":"start",C=x>0?"start":"end",E=o;if(r==="top"){var A={x:u+l/2,y:a-g,horizontalAnchor:"middle",verticalAnchor:y};return E&&(A.height=Math.max(a-E.y,0),A.width=l),A}if(r==="bottom"){var T={x:d+c/2,y:a+s+g,horizontalAnchor:"middle",verticalAnchor:w};return E&&(T.height=Math.max(E.y+E.height-(a+s),0),T.width=c),T}if(r==="left"){var M={x:f-S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"};return E&&(M.width=Math.max(M.x-E.x,0),M.height=s),M}if(r==="right"){var D={x:f+h+S,y:a+s/2,horizontalAnchor:C,verticalAnchor:"middle"};return E&&(D.width=Math.max(E.x+E.width-D.x,0),D.height=s),D}var k=E?{width:h,height:s}:{};return r==="insideLeft"?Tr({x:f+S,y:a+s/2,horizontalAnchor:C,verticalAnchor:"middle"},k):r==="insideRight"?Tr({x:f+h-S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"},k):r==="insideTop"?Tr({x:u+l/2,y:a+g,horizontalAnchor:"middle",verticalAnchor:w},k):r==="insideBottom"?Tr({x:d+c/2,y:a+s-g,horizontalAnchor:"middle",verticalAnchor:y},k):r==="insideTopLeft"?Tr({x:u+S,y:a+g,horizontalAnchor:C,verticalAnchor:w},k):r==="insideTopRight"?Tr({x:u+l-S,y:a+g,horizontalAnchor:P,verticalAnchor:w},k):r==="insideBottomLeft"?Tr({x:d+S,y:a+s-g,horizontalAnchor:C,verticalAnchor:y},k):r==="insideBottomRight"?Tr({x:d+c-S,y:a+s-g,horizontalAnchor:P,verticalAnchor:y},k):r&&typeof r=="object"&&(Y(r.x)||ko(r.x))&&(Y(r.y)||ko(r.y))?Tr({x:i+Ot(r.x,h),y:a+Ot(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},k):Tr({x:v,y:a+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},k)},DX=["labelRef"],_X=["content"];function _P(e,t){if(e==null)return{};var r,n,o=NX(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 NX(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 NP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function wa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NP(Object(r),!0).forEach(function(n){jX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jX(e,t,r){return(t=RX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RX(e){var t=IX(e,"string");return typeof t=="symbol"?t:t+""}function IX(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 Zr(){return Zr=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},Zr.apply(null,arguments)}var DD=O.createContext(null),LX=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a,children:s}=e,l=O.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a}),[t,r,n,o,i,a]);return p.createElement(DD.Provider,{value:l},s)},_D=()=>{var e=O.useContext(DD),t=Wu();return e||(t?Yv(t):void 0)},$X=O.createContext(null),FX=()=>{var e=O.useContext($X),t=J(xk);return e||t},VX=e=>{var{value:t,formatter:r}=e,n=We(e.children)?t:e.children;return typeof r=="function"?r(n):n},fy=e=>e!=null&&typeof e=="function",BX=(e,t)=>{var r=ft(t-e),n=Math.min(Math.abs(t-e),360);return r*n},WX=(e,t,r,n,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:d,endAngle:f,clockWise:h}=o,v=(c+u)/2,m=BX(d,f),g=m>=0?1:-1,y,w;switch(t){case"insideStart":y=d+g*i,w=h;break;case"insideEnd":y=f-g*i,w=!h;break;case"end":y=f+g*i,w=h;break;default:throw new Error("Unsupported position ".concat(t))}w=m<=0?w:!w;var x=Xe(s,l,v,y),S=Xe(s,l,v,y+(w?1:-1)*359),P="M".concat(x.x,",").concat(x.y,`
99
+ A`).concat(v,",").concat(v,",0,1,").concat(w?0:1,`,
100
+ `).concat(S.x,",").concat(S.y),C=We(e.id)?ka("recharts-radial-line-"):e.id;return p.createElement("text",Zr({},n,{dominantBaseline:"central",className:ve("recharts-radial-bar-label",a)}),p.createElement("defs",null,p.createElement("path",{id:C,d:P})),p.createElement("textPath",{xlinkHref:"#".concat(C)},r))},zX=(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}=Xe(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 f=(i+a)/2,{x:h,y:v}=Xe(n,o,f,c);return{x:h,y:v,textAnchor:"middle",verticalAnchor:"middle"}},Kl=e=>e!=null&&"cx"in e&&Y(e.cx),KX={angle:0,offset:5,zIndex:Ze.label,position:"middle",textBreakAll:!1};function UX(e){if(!Kl(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 Dn(e){var t=et(e,KX),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:u}=t,d=FX(),f=_D(),h=o==="center"?f:d??f,v,m,g;r==null?v=h:Kl(r)?v=r:v=Yv(r);var y=UX(v);if(!v||We(i)&&We(a)&&!O.isValidElement(s)&&typeof s!="function")return null;var w=wa(wa({},t),{},{viewBox:v});if(O.isValidElement(s)){var{labelRef:x}=w,S=_P(w,DX);return O.cloneElement(s,S)}if(typeof s=="function"){var{content:P}=w,C=_P(w,_X);if(m=O.createElement(s,C),O.isValidElement(m))return m}else m=VX(t);var E=It(t);if(Kl(v)){if(o==="insideStart"||o==="insideEnd"||o==="end")return WX(t,o,m,E,v);g=zX(v,t.offset,t.position)}else{if(!y)return null;var A=kX({viewBox:y,position:o,offset:t.offset,parentViewBox:Kl(n)?void 0:n});g=wa(wa({x:A.x,y:A.y,textAnchor:A.horizontalAnchor,verticalAnchor:A.verticalAnchor},A.width!==void 0?{width:A.width}:{}),A.height!==void 0?{height:A.height}:{})}return p.createElement(Wt,{zIndex:t.zIndex},p.createElement(pd,Zr({ref:u,className:ve("recharts-label",l)},E,g,{textAnchor:SX(E.textAnchor)?E.textAnchor:g.textAnchor,breakAll:c}),m))}Dn.displayName="Label";var HX=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?p.createElement(Dn,Zr({key:"label-implicit"},n)):Br(e)?p.createElement(Dn,Zr({key:"label-implicit",value:e},n)):O.isValidElement(e)?e.type===Dn?O.cloneElement(e,wa({key:"label-implicit"},n)):p.createElement(Dn,Zr({key:"label-implicit",content:e},n)):fy(e)?p.createElement(Dn,Zr({key:"label-implicit",content:e},n)):e&&typeof e=="object"?p.createElement(Dn,Zr({},e,{key:"label-implicit"},n)):null};function GX(e){var{label:t,labelRef:r}=e,n=_D();return HX(t,n,r)||null}var Ap={},Tp={},jP;function YX(){return jP||(jP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(Tp)),Tp}var Mp={},RP;function qX(){return RP||(RP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(Mp)),Mp}var IP;function XX(){return IP||(IP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=YX(),r=qX(),n=Iv();function o(i){if(n.isArrayLike(i))return t.last(r.toArray(i))}e.last=o})(Ap)),Ap}var kp,LP;function ZX(){return LP||(LP=1,kp=XX().last),kp}var QX=ZX();const JX=Hn(QX);var eZ=["valueAccessor"],tZ=["dataKey","clockWise","id","textBreakAll","zIndex"];function zc(){return zc=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},zc.apply(null,arguments)}function $P(e,t){if(e==null)return{};var r,n,o=rZ(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 rZ(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 nZ=e=>Array.isArray(e.value)?JX(e.value):e.value,ND=O.createContext(void 0),jD=ND.Provider,RD=O.createContext(void 0),oZ=RD.Provider;function iZ(){return O.useContext(ND)}function aZ(){return O.useContext(RD)}function Ul(e){var{valueAccessor:t=nZ}=e,r=$P(e,eZ),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=$P(r,tZ),c=iZ(),u=aZ(),d=c||u;return!d||!d.length?null:p.createElement(Wt,{zIndex:s??Ze.label},p.createElement(ht,{className:"recharts-label-list"},d.map((f,h)=>{var v,m=We(n)?t(f,h):Ae(f.payload,n),g=We(i)?{}:{id:"".concat(i,"-").concat(h)};return p.createElement(Dn,zc({key:"label-".concat(h)},It(f),l,g,{fill:(v=r.fill)!==null&&v!==void 0?v:f.fill,parentViewBox:f.parentViewBox,value:m,textBreakAll:a,viewBox:f.viewBox,index:h,zIndex:0}))})))}Ul.displayName="LabelList";function py(e){var{label:t}=e;return t?t===!0?p.createElement(Ul,{key:"labelList-implicit"}):p.isValidElement(t)||fy(t)?p.createElement(Ul,{key:"labelList-implicit",content:t}):typeof t=="object"?p.createElement(Ul,zc({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function cm(){return cm=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},cm.apply(null,arguments)}var ID=e=>{var{cx:t,cy:r,r:n,className:o}=e,i=ve("recharts-dot",o);return Y(t)&&Y(r)&&Y(n)?p.createElement("circle",cm({},Zt(e),Rv(e),{className:i,cx:t,cy:r,r:n})):null},LD=e=>e.graphicalItems.polarItems,sZ=R([ze,Ps],jg),hd=R([LD,Ge,sZ],Rg),lZ=R([hd],Ig),md=R([lZ,ed],Lg),cZ=R([md,Ge,hd],Fg);R([md,Ge,hd],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(o=>{var i,a=Ae(n,(i=t.dataKey)!==null&&i!==void 0?i:o.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:Ae(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var FP=()=>{},uZ=R([md,Ge,hd,cd,ze],zg),dZ=R([Ge,Bg,Wg,FP,uZ,FP,ye,ze],Kg),$D=R([Ge,ye,md,cZ,Ss,ze,dZ],Ug),fZ=R([$D,zi,qn],Yg),pZ=R([Ge,$D,fZ,ze],Xg);R([qn,pZ],Pk);var hZ={radiusAxis:{},angleAxis:{}},FD=Bt({name:"polarAxis",initialState:hZ,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:nye,removeRadiusAxis:oye,addAngleAxis:iye,removeAngleAxis:aye}=FD.actions,mZ=FD.reducer;function VD(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function VP(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 BP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VP(Object(r),!0).forEach(function(n){vZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vZ(e,t,r){return(t=gZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gZ(e){var t=yZ(e,"string");return typeof t=="symbol"?t:t+""}function yZ(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 bZ=(e,t)=>t,hy=R([LD,bZ],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),wZ=[],my=(e,t,r)=>r?.length===0?wZ:r,BD=R([ed,hy,my],(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=>BP(BP({},t.presentationProps),i.props))),o!=null)return o}}),xZ=R([BD,hy,my],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,o)=>{var i,a=Ae(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:$i(a,t.dataKey),color:s,payload:n,type:t.legendType}})}),SZ=R([BD,hy,my,at],(e,t,r,n)=>{if(!(t==null||e==null))return CQ({offset:n,pieSettings:t,displayedData:e,cells:r})}),Ol={exports:{}},Oe={};var WP;function PZ(){if(WP)return Oe;WP=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,f=60121,h=60122,v=60117,m=60129,g=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),o=y("react.profiler"),i=y("react.provider"),a=y("react.context"),s=y("react.forward_ref"),l=y("react.suspense"),c=y("react.suspense_list"),u=y("react.memo"),d=y("react.lazy"),f=y("react.block"),h=y("react.server.block"),v=y("react.fundamental"),m=y("react.debug_trace_mode"),g=y("react.legacy_hidden")}function w(_){if(typeof _=="object"&&_!==null){var I=_.$$typeof;switch(I){case e:switch(_=_.type,_){case r:case o:case n:case l:case c:return _;default:switch(_=_&&_.$$typeof,_){case a:case s:case d:case u:case i:return _;default:return I}}case t:return I}}}var x=i,S=e,P=s,C=r,E=d,A=u,T=t,M=o,D=n,k=l;return Oe.ContextConsumer=a,Oe.ContextProvider=x,Oe.Element=S,Oe.ForwardRef=P,Oe.Fragment=C,Oe.Lazy=E,Oe.Memo=A,Oe.Portal=T,Oe.Profiler=M,Oe.StrictMode=D,Oe.Suspense=k,Oe.isAsyncMode=function(){return!1},Oe.isConcurrentMode=function(){return!1},Oe.isContextConsumer=function(_){return w(_)===a},Oe.isContextProvider=function(_){return w(_)===i},Oe.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},Oe.isForwardRef=function(_){return w(_)===s},Oe.isFragment=function(_){return w(_)===r},Oe.isLazy=function(_){return w(_)===d},Oe.isMemo=function(_){return w(_)===u},Oe.isPortal=function(_){return w(_)===t},Oe.isProfiler=function(_){return w(_)===o},Oe.isStrictMode=function(_){return w(_)===n},Oe.isSuspense=function(_){return w(_)===l},Oe.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===o||_===m||_===n||_===l||_===c||_===g||typeof _=="object"&&_!==null&&(_.$$typeof===d||_.$$typeof===u||_.$$typeof===i||_.$$typeof===a||_.$$typeof===s||_.$$typeof===v||_.$$typeof===f||_[0]===h)},Oe.typeOf=w,Oe}var Ee={};var zP;function CZ(){return zP||(zP=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,f=60121,h=60122,v=60117,m=60129,g=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;e=y("react.element"),t=y("react.portal"),r=y("react.fragment"),n=y("react.strict_mode"),o=y("react.profiler"),i=y("react.provider"),a=y("react.context"),s=y("react.forward_ref"),l=y("react.suspense"),c=y("react.suspense_list"),u=y("react.memo"),d=y("react.lazy"),f=y("react.block"),h=y("react.server.block"),v=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),m=y("react.debug_trace_mode"),y("react.offscreen"),g=y("react.legacy_hidden")}var w=!1;function x(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===o||W===m||W===n||W===l||W===c||W===g||w||typeof W=="object"&&W!==null&&(W.$$typeof===d||W.$$typeof===u||W.$$typeof===i||W.$$typeof===a||W.$$typeof===s||W.$$typeof===v||W.$$typeof===f||W[0]===h))}function S(W){if(typeof W=="object"&&W!==null){var F=W.$$typeof;switch(F){case e:var he=W.type;switch(he){case r:case o:case n:case l:case c:return he;default:var ue=he&&he.$$typeof;switch(ue){case a:case s:case d:case u:case i:return ue;default:return F}}case t:return F}}}var P=a,C=i,E=e,A=s,T=r,M=d,D=u,k=t,_=o,I=n,z=l,B=!1,V=!1;function j(W){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(W){return V||(V=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(W){return S(W)===a}function te(W){return S(W)===i}function le(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function ae(W){return S(W)===s}function oe(W){return S(W)===r}function Se(W){return S(W)===d}function Me(W){return S(W)===u}function K(W){return S(W)===t}function fe(W){return S(W)===o}function $(W){return S(W)===n}function G(W){return S(W)===l}Ee.ContextConsumer=P,Ee.ContextProvider=C,Ee.Element=E,Ee.ForwardRef=A,Ee.Fragment=T,Ee.Lazy=M,Ee.Memo=D,Ee.Portal=k,Ee.Profiler=_,Ee.StrictMode=I,Ee.Suspense=z,Ee.isAsyncMode=j,Ee.isConcurrentMode=L,Ee.isContextConsumer=H,Ee.isContextProvider=te,Ee.isElement=le,Ee.isForwardRef=ae,Ee.isFragment=oe,Ee.isLazy=Se,Ee.isMemo=Me,Ee.isPortal=K,Ee.isProfiler=fe,Ee.isStrictMode=$,Ee.isSuspense=G,Ee.isValidElementType=x,Ee.typeOf=S})()),Ee}var KP;function OZ(){return KP||(KP=1,process.env.NODE_ENV==="production"?Ol.exports=PZ():Ol.exports=CZ()),Ol.exports}var EZ=OZ(),UP=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",HP=null,Dp=null,WD=e=>{if(e===HP&&Array.isArray(Dp))return Dp;var t=[];return O.Children.forEach(e,r=>{We(r)||(EZ.isFragment(r)?t=t.concat(WD(r.props.children)):t.push(r))}),Dp=t,HP=e,t};function vy(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(o=>UP(o)):n=[UP(t)],WD(e).forEach(o=>{var i=Mo(o,"type.displayName")||Mo(o,"type.name");i&&n.indexOf(i)!==-1&&r.push(o)}),r}var zD=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,_p={},GP;function AZ(){return GP||(GP=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})(_p)),_p}var Np,YP;function TZ(){return YP||(YP=1,Np=AZ().isPlainObject),Np}var MZ=TZ();const kZ=Hn(MZ);var qP,XP,ZP,QP,JP;function eC(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 tC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eC(Object(r),!0).forEach(function(n){DZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DZ(e,t,r){return(t=_Z(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _Z(e){var t=NZ(e,"string");return typeof t=="symbol"?t:t+""}function NZ(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 Kc(){return Kc=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},Kc.apply(null,arguments)}function pa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var rC=(e,t,r,n,o)=>{var i=r-n,a;return a=Ue(qP||(qP=pa(["M ",",",""])),e,t),a+=Ue(XP||(XP=pa(["L ",",",""])),e+r,t),a+=Ue(ZP||(ZP=pa(["L ",",",""])),e+r-i/2,t+o),a+=Ue(QP||(QP=pa(["L ",",",""])),e+r-i/2-n,t+o),a+=Ue(JP||(JP=pa(["L ",","," Z"])),e,t),a},jZ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},RZ=e=>{var t=et(e,jZ),{x:r,y:n,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:d}=t,f=O.useRef(null),[h,v]=O.useState(-1),m=O.useRef(o),g=O.useRef(i),y=O.useRef(a),w=O.useRef(r),x=O.useRef(n),S=gs(e,"trapezoid-");if(O.useEffect(()=>{if(f.current&&f.current.getTotalLength)try{var I=f.current.getTotalLength();I&&v(I)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var P=ve("recharts-trapezoid",s);if(!d)return p.createElement("g",null,p.createElement("path",Kc({},It(t),{className:P,d:rC(r,n,o,i,a)})));var C=m.current,E=g.current,A=y.current,T=w.current,M=x.current,D="0px ".concat(h===-1?1:h,"px"),k="".concat(h,"px 0px"),_=pM(["strokeDasharray"],c,l);return p.createElement(vs,{animationId:S,key:S,canBegin:h>0,duration:c,easing:l,isActive:d,begin:u},I=>{var z=Le(C,o,I),B=Le(E,i,I),V=Le(A,a,I),j=Le(T,r,I),L=Le(M,n,I);f.current&&(m.current=z,g.current=B,y.current=V,w.current=j,x.current=L);var H=I>0?{transition:_,strokeDasharray:k}:{strokeDasharray:D};return p.createElement("path",Kc({},It(t),{className:P,d:rC(j,L,z,B,V),ref:f,style:tC(tC({},H),t.style)}))})},IZ=["option","shapeType","activeClassName"];function LZ(e,t){if(e==null)return{};var r,n,o=$Z(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $Z(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function nC(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 Uc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nC(Object(r),!0).forEach(function(n){FZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FZ(e,t,r){return(t=VZ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VZ(e){var t=BZ(e,"string");return typeof t=="symbol"?t:t+""}function BZ(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 WZ(e,t){return Uc(Uc({},t),e)}function zZ(e,t){return e==="symbols"}function oC(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return p.createElement(gM,r);case"trapezoid":return p.createElement(RZ,r);case"sector":return p.createElement(xM,r);case"symbols":if(zZ(t))return p.createElement(jv,r);break;case"curve":return p.createElement(Jv,r);default:return null}}function KZ(e){return O.isValidElement(e)?e.props:e}function gy(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,o=LZ(e,IZ),i;if(O.isValidElement(t))i=O.cloneElement(t,Uc(Uc({},o),KZ(t)));else if(typeof t=="function")i=t(o,o.index);else if(kZ(t)&&typeof t!="boolean"){var a=WZ(t,o);i=p.createElement(oC,{shapeType:r,elementProps:a})}else{var s=o;i=p.createElement(oC,{shapeType:r,elementProps:s})}return o.isActive?p.createElement(ht,{className:n},i):i}var yy=(e,t,r)=>{var n=Ne();return(o,i)=>a=>{e?.(o,i,a),n(Jk({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},by=e=>{var t=Ne();return(r,n)=>o=>{e?.(r,n,o),t(Uq())}},wy=(e,t,r)=>{var n=Ne();return(o,i)=>a=>{e?.(o,i,a),n(Hq({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};function xy(e){var{tooltipEntrySettings:t}=e,r=Ne(),n=Tt(),o=O.useRef(null);return O.useLayoutEffect(()=>{n||(o.current===null?r(Bq(t)):o.current!==t&&r(Wq({prev:o.current,next:t})),o.current=t)},[t,r,n]),O.useLayoutEffect(()=>()=>{o.current&&(r(zq(o.current)),o.current=null)},[r]),null}function KD(e){var{legendPayload:t}=e,r=Ne(),n=Tt(),o=O.useRef(null);return O.useLayoutEffect(()=>{n||(o.current===null?r(cM(t)):o.current!==t&&r(uM({prev:o.current,next:t})),o.current=t)},[r,n,t]),O.useLayoutEffect(()=>()=>{o.current&&(r(dM(o.current)),o.current=null)},[r]),null}function UZ(e){var{legendPayload:t}=e,r=Ne(),n=J(ye),o=O.useRef(null);return O.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(o.current===null?r(cM(t)):o.current!==t&&r(uM({prev:o.current,next:t})),o.current=t)},[r,n,t]),O.useLayoutEffect(()=>()=>{o.current&&(r(dM(o.current)),o.current=null)},[r]),null}var jp,HZ=()=>{var[e]=p.useState(()=>ka("uid-"));return e},GZ=(jp=p.useId)!==null&&jp!==void 0?jp:HZ;function YZ(e,t){var r=GZ();return t||(e?"".concat(e,"-").concat(r):r)}var qZ=O.createContext(void 0),Sy=e=>{var{id:t,type:r,children:n}=e,o=YZ("recharts-".concat(r),t);return p.createElement(qZ.Provider,{value:o},n(o))},XZ={cartesianItems:[],polarItems:[]},UD=Bt({name:"graphicalItems",initialState:XZ,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Ie()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=br(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=n)},prepare:Ie()},removeCartesianGraphicalItem:{reducer(e,t){var r=br(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Ie()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Ie()},removePolarGraphicalItem:{reducer(e,t){var r=br(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Ie()}}}),{addCartesianGraphicalItem:ZZ,replaceCartesianGraphicalItem:QZ,removeCartesianGraphicalItem:JZ,addPolarGraphicalItem:eQ,removePolarGraphicalItem:tQ}=UD.actions,rQ=UD.reducer,nQ=e=>{var t=Ne(),r=O.useRef(null);return O.useLayoutEffect(()=>{r.current===null?t(ZZ(e)):r.current!==e&&t(QZ({prev:r.current,next:e})),r.current=e},[t,e]),O.useLayoutEffect(()=>()=>{r.current&&(t(JZ(r.current)),r.current=null)},[t]),null},HD=O.memo(nQ);function oQ(e){var t=Ne();return O.useLayoutEffect(()=>(t(eQ(e)),()=>{t(tQ(e))}),[t,e]),null}var iQ=["key"],aQ=["onMouseEnter","onClick","onMouseLeave"],sQ=["id"],lQ=["id"];function iC(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 He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iC(Object(r),!0).forEach(function(n){cQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cQ(e,t,r){return(t=uQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uQ(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 Bn(){return Bn=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},Bn.apply(null,arguments)}function vd(e,t){if(e==null)return{};var r,n,o=fQ(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 fQ(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 pQ(e){var t=O.useMemo(()=>vy(e.children,Ms),[e.children]),r=J(n=>xZ(n,e.id,t));return r==null?null:p.createElement(UZ,{legendPayload:r})}var hQ=p.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(f=>f.tooltipPayload),getPosition:f=>{var h;return(h=n[Number(f)])===null||h===void 0?void 0:h.tooltipPosition},settings:{stroke:o,strokeWidth:i,fill:a,dataKey:t,nameKey:r,name:$i(s,t),hide:l,type:c,color:a,unit:"",graphicalItemId:u}};return p.createElement(xy,{tooltipEntrySettings:d})}),mQ=(e,t)=>e>t?"start":e<t?"end":"middle",vQ=(e,t,r)=>Ot(typeof t=="function"?t(e):t,r,r*.8),gQ=(e,t,r)=>{var{top:n,left:o,width:i,height:a}=t,s=yM(i,a),l=o+Ot(e.cx,i,i/2),c=n+Ot(e.cy,a,a/2),u=Ot(e.innerRadius,s,0),d=vQ(r,e.outerRadius,s),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:f}},yQ=(e,t)=>{var r=ft(t-e),n=Math.min(Math.abs(t-e),360);return r*n},bQ=(e,t)=>{if(p.isValidElement(e))return p.cloneElement(e,t);if(typeof e=="function")return e(t);var r=ve("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,o=vd(t,iQ);return p.createElement(Jv,Bn({},o,{type:"linear",className:r}))},wQ=(e,t,r)=>{if(p.isValidElement(e))return p.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),p.isValidElement(n)))return n;var o=ve("recharts-pie-label-text",VD(e));return p.createElement(pd,Bn({},t,{alignmentBaseline:"middle",className:o}),n)};function xQ(e){var{sectors:t,props:r,showLabels:n}=e,{label:o,labelLine:i,dataKey:a}=r;if(!n||!o||!t)return null;var s=Zt(r),l=Ao(o),c=Ao(i),u=typeof o=="object"&&"offsetRadius"in o&&typeof o.offsetRadius=="number"&&o.offsetRadius||20,d=t.map((f,h)=>{var v=(f.startAngle+f.endAngle)/2,m=Xe(f.cx,f.cy,f.outerRadius+u,v),g=He(He(He(He({},s),f),{},{stroke:"none"},l),{},{index:h,textAnchor:mQ(m.x,f.cx)},m),y=He(He(He(He({},s),f),{},{fill:"none",stroke:f.fill},c),{},{index:h,points:[Xe(f.cx,f.cy,f.outerRadius,v),m],key:"line"});return p.createElement(Wt,{zIndex:Ze.label,key:"label-".concat(f.startAngle,"-").concat(f.endAngle,"-").concat(f.midAngle,"-").concat(h)},p.createElement(ht,null,i&&bQ(i,y),wQ(o,g,Ae(f,a))))});return p.createElement(ht,{className:"recharts-pie-labels"},d)}function SQ(e){var{sectors:t,props:r,showLabels:n}=e,{label:o}=r;return typeof o=="object"&&o!=null&&"position"in o?p.createElement(py,{label:o}):p.createElement(xQ,{sectors:t,props:r,showLabels:n})}function PQ(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:o,shape:i,id:a}=e,s=J(Vn),l=J(iy),c=J(D9),{onMouseEnter:u,onClick:d,onMouseLeave:f}=o,h=vd(o,aQ),v=yy(u,o.dataKey,a),m=by(f),g=wy(d,o.dataKey,a);return t==null||t.length===0?null:p.createElement(p.Fragment,null,t.map((y,w)=>{if(y?.startAngle===0&&y?.endAngle===0&&t.length!==1)return null;var x=c==null||c===a,S=String(w)===s&&(l==null||o.dataKey===l)&&x,P=s?n:null,C=r&&S?r:P,E=He(He({},y),{},{stroke:y.stroke,tabIndex:-1,[YT]:w,[qT]:a});return p.createElement(ht,Bn({key:"sector-".concat(y?.startAngle,"-").concat(y?.endAngle,"-").concat(y.midAngle,"-").concat(w),tabIndex:-1,className:"recharts-pie-sector"},ls(h,y,w),{onMouseEnter:v(y,w),onMouseLeave:m(y,w),onClick:g(y,w)}),p.createElement(gy,Bn({option:i??C,index:w,shapeType:"sector",isActive:S},E)))}))}function CQ(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,f=Math.abs(r.minAngle),h=yQ(s,l),v=Math.abs(h),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,g=n.filter(C=>Ae(C,c,0)!==0).length,y=(v>=360?g:g-1)*m,w=v-g*f-y,x=n.reduce((C,E)=>{var A=Ae(E,c,0);return C+(Y(A)?A:0)},0),S;if(x>0){var P;S=n.map((C,E)=>{var A=Ae(C,c,0),T=Ae(C,u,E),M=gQ(r,i,C),D=(Y(A)?A:0)/x,k,_=He(He({},C),o&&o[E]&&o[E].props);E?k=P.endAngle+ft(h)*m*(A!==0?1:0):k=s;var I=k+ft(h)*((A!==0?f:0)+D*w),z=(k+I)/2,B=(M.innerRadius+M.outerRadius)/2,V=[{name:T,value:A,payload:_,dataKey:c,type:d,graphicalItemId:r.id}],j=Xe(M.cx,M.cy,B,z);return P=He(He(He(He({},r.presentationProps),{},{percent:D,cornerRadius:typeof a=="string"?parseFloat(a):a,name:T,tooltipPayload:V,midAngle:z,middleRadius:B,tooltipPosition:j},_),M),{},{value:A,dataKey:c,startAngle:k,endAngle:I,payload:_,paddingAngle:ft(h)*m}),P})}return S}function OQ(e){var{showLabels:t,sectors:r,children:n}=e,o=O.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 p.createElement(oZ,{value:t?o:void 0},n)}function EQ(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:f}=t,h=gs(t,"recharts-pie-"),v=r.current,[m,g]=O.useState(!1),y=O.useCallback(()=>{typeof f=="function"&&f(),g(!1)},[f]),w=O.useCallback(()=>{typeof d=="function"&&d(),g(!0)},[d]);return p.createElement(OQ,{showLabels:!m,sectors:o},p.createElement(vs,{animationId:h,begin:a,duration:s,isActive:i,easing:l,onAnimationStart:w,onAnimationEnd:y,key:h},x=>{var S,P=[],C=o&&o[0],E=(S=C?.startAngle)!==null&&S!==void 0?S:0;return o?.forEach((A,T)=>{var M=v&&v[T],D=T>0?Mo(A,"paddingAngle",0):0;if(M){var k=Le(M.endAngle-M.startAngle,A.endAngle-A.startAngle,x),_=He(He({},A),{},{startAngle:E+D,endAngle:E+k+D});P.push(_),E=_.endAngle}else{var{endAngle:I,startAngle:z}=A,B=Le(0,I-z,x),V=He(He({},A),{},{startAngle:E+D,endAngle:E+B+D});P.push(V),E=V.endAngle}}),r.current=P,p.createElement(ht,null,p.createElement(PQ,{sectors:P,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),p.createElement(SQ,{showLabels:!m,sectors:o,props:t}),t.children)}var AQ={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:Ze.area};function TQ(e){var{id:t}=e,r=vd(e,sQ),{hide:n,className:o,rootTabIndex:i}=e,a=O.useMemo(()=>vy(e.children,Ms),[e.children]),s=J(u=>SZ(u,t,a)),l=O.useRef(null),c=ve("recharts-pie",o);return n||s==null?(l.current=null,p.createElement(ht,{tabIndex:i,className:c})):p.createElement(Wt,{zIndex:e.zIndex},p.createElement(hQ,{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}),p.createElement(ht,{tabIndex:i,className:c},p.createElement(EQ,{props:He(He({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function GD(e){var t=et(e,AQ),{id:r}=t,n=vd(t,lQ),o=Zt(n);return p.createElement(Sy,{id:r,type:"pie"},i=>p.createElement(p.Fragment,null,p.createElement(oQ,{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}),p.createElement(pQ,Bn({},n,{id:i})),p.createElement(TQ,Bn({},n,{id:i}))))}GD.displayName="Pie";var MQ=["points"];function aC(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 Rp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aC(Object(r),!0).forEach(function(n){kQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kQ(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 Hc(){return Hc=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},Hc.apply(null,arguments)}function NQ(e,t){if(e==null)return{};var r,n,o=jQ(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 jQ(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 RQ(e){var{option:t,dotProps:r,className:n}=e;if(O.isValidElement(t))return O.cloneElement(t,r);if(typeof t=="function")return t(r);var o=ve(n,typeof t!="boolean"?t.className:""),i=r??{},{points:a}=i,s=NQ(i,MQ);return p.createElement(ID,Hc({},s,{className:o}))}function IQ(e,t){return e==null?!1:t?!0:e.length===1}function LQ(e){var{points:t,dot:r,className:n,dotClassName:o,dataKey:i,baseProps:a,needClip:s,clipPathId:l,zIndex:c=Ze.scatter}=e;if(!IQ(t,r))return null;var u=zD(r),d=_3(r),f=t.map((v,m)=>{var g,y,w=Rp(Rp(Rp({r:3},a),d),{},{index:m,cx:(g=v.x)!==null&&g!==void 0?g:void 0,cy:(y=v.y)!==null&&y!==void 0?y:void 0,dataKey:i,value:v.value,payload:v.payload,points:t});return p.createElement(RQ,{key:"dot-".concat(m),option:r,dotProps:w,className:o})}),h={};return s&&l!=null&&(h.clipPath="url(#clipPath-".concat(u?"":"dots-").concat(l,")")),p.createElement(Wt,{zIndex:c},p.createElement(ht,Hc({className:n},h),f))}function sC(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 lC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sC(Object(r),!0).forEach(function(n){$Q(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $Q(e,t,r){return(t=FQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FQ(e){var t=VQ(e,"string");return typeof t=="symbol"?t:t+""}function VQ(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 YD=0,BQ={xAxis:{},yAxis:{},zAxis:{}},qD=Bt({name:"cartesianAxis",initialState:BQ,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Ie()},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:Ie()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Ie()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Ie()},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:Ie()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Ie()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Ie()},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:Ie()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Ie()},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]=lC(lC({},o),{},{width:n,widthHistory:s})}}}}),{addXAxis:WQ,replaceXAxis:zQ,removeXAxis:KQ,addYAxis:UQ,replaceYAxis:HQ,removeYAxis:GQ,addZAxis:sye,replaceZAxis:lye,removeZAxis:cye,updateYAxisWidth:YQ}=qD.actions,qQ=qD.reducer,XQ=R([at],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),ZQ=R([XQ,yn,bn],(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)}}),Py=()=>J(ZQ),QQ=()=>J(I9);function cC(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 Ip(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cC(Object(r),!0).forEach(function(n){JQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JQ(e,t,r){return(t=eJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eJ(e){var t=tJ(e,"string");return typeof t=="symbol"?t:t+""}function tJ(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 rJ=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=Ip(Ip(Ip({},s),Ao(o)),Rv(o)),c;return O.isValidElement(o)?c=O.cloneElement(o,l):typeof o=="function"?c=o(l):c=p.createElement(ID,l),p.createElement(ht,{className:"recharts-active-dot",clipPath:a},c)};function nJ(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:o,clipPath:i,zIndex:a=Ze.activeDot}=e,s=J(Vn),l=QQ();if(t==null||l==null)return null;var c=t.find(u=>l.includes(u.payload));return We(c)?null:p.createElement(Wt,{zIndex:a},p.createElement(rJ,{point:c,childIndex:Number(s),mainColor:r,dataKey:o,activeDot:n,clipPath:i}))}var uC=(e,t,r)=>{var n=r??e;if(!We(n))return Ot(n,t,0)},oJ=(e,t,r)=>{var n={},o=e.filter(od),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,f]=c,h=f.map(m=>m.dataKey),v=uC(t,r,(u=f[0])===null||u===void 0?void 0:u.barSize);return{stackId:d,dataKeys:h,barSize:v}}),l=i.map(c=>{var u=[c.dataKey].filter(f=>f!=null),d=uC(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...s,...l]};function dC(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 El(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dC(Object(r),!0).forEach(function(n){iJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iJ(e,t,r){return(t=aJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aJ(e){var t=sJ(e,"string");return typeof t=="symbol"?t:t+""}function sJ(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 lJ(e,t,r,n,o){var i,a=n.length;if(!(a<1)){var s=Ot(e,r,0,!0),l,c=[];if(pe((i=n[0])===null||i===void 0?void 0:i.barSize)){var u=!1,d=r/a,f=n.reduce((w,x)=>w+(x.barSize||0),0);f+=(a-1)*s,f>=r&&(f-=(a-1)*s,s=0),f>=r&&d>0&&(u=!0,d*=.9,f=a*d);var h=(r-f)/2>>0,v={offset:h-s,size:0};l=n.reduce((w,x)=>{var S,P={stackId:x.stackId,dataKeys:x.dataKeys,position:{offset:v.offset+v.size+s,size:u?d:(S=x.barSize)!==null&&S!==void 0?S:0}},C=[...w,P];return v=P.position,C},c)}else{var m=Ot(t,r,0,!0);r-2*m-(a-1)*s<=0&&(s=0);var g=(r-2*m-(a-1)*s)/a;g>1&&(g>>=0);var y=pe(o)?Math.min(g,o):g;l=n.reduce((w,x,S)=>[...w,{stackId:x.stackId,dataKeys:x.dataKeys,position:{offset:m+(g+s)*S+(g-y)/2,size:y}}],c)}return l}}var cJ=(e,t,r,n,o,i,a)=>{var s=We(a)?t:a,l=lJ(r,n,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>El(El({},c),{},{position:El(El({},c.position),{},{offset:c.position.offset-o/2})}))),l},uJ=(e,t)=>{var r=_g(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)}}}},dJ=(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 fJ(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&pe(e.zIndex)?e.zIndex:t}var XD=e=>{var{chartData:t}=e,r=Ne(),n=Tt();return O.useEffect(()=>n?()=>{}:(r(vP(t)),()=>{r(vP(void 0))}),[t,r,n]),null},fC={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},ZD=Bt({name:"brush",initialState:fC,reducers:{setBrushSettings(e,t){return t.payload==null?fC:t.payload}}}),{setBrushSettings:uye}=ZD.actions,pJ=ZD.reducer;function hJ(e){return(e%180+180)%180}var mJ=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=hJ(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)},vJ={dots:[],areas:[],lines:[]},QD=Bt({name:"referenceElements",initialState:vJ,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=br(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=br(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=br(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:dye,removeDot:fye,addArea:pye,removeArea:hye,addLine:mye,removeLine:vye}=QD.actions,gJ=QD.reducer,yJ=O.createContext(void 0),bJ=e=>{var{children:t}=e,[r]=O.useState("".concat(ka("recharts"),"-clip")),n=Py();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return p.createElement(yJ.Provider,{value:r},p.createElement("defs",null,p.createElement("clipPath",{id:r},p.createElement("rect",{x:o,y:i,height:s,width:a}))),t)};function JD(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 wJ(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return mJ(n,r)}function xJ(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 Ka(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 SJ(e,t){return JD(e,t+1)}function PJ(e,t,r,n,o){for(var i=(n||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,d=function(){var v=n?.[l];if(v===void 0)return{v:JD(n,c)};var m=l,g,y=()=>(g===void 0&&(g=r(v,m)),g),w=v.coordinate,x=l===0||Ka(e,w,y,u,s);x||(l=0,u=a,c+=1),x&&(u=w+e*(y()/2+o),l+=c)},f;c<=i.length;)if(f=d(),f)return f.v;return[]}function CJ(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,f=!0,h=function(){var S=n[m];if(S==null)return 0;var P=m,C,E=()=>(C===void 0&&(C=r(S,P)),C),A=S.coordinate,T=m===u||Ka(e,A,E,d,l);if(!T)return f=!1,1;T&&(d=A+e*(E()/2+o))},v,m=u;m<a&&(v=h(),!(v!==0&&v===1));m+=c);if(f){for(var g=[],y=u;y<a;y+=c){var w=n[y];w!=null&&g.push(w)}return g}}return[]}function pC(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?pC(Object(r),!0).forEach(function(n){OJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OJ(e,t,r){return(t=EJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EJ(e){var t=AJ(e,"string");return typeof t=="symbol"?t:t+""}function AJ(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 TJ(e,t,r,n,o){for(var i=(n||[]).slice(),a=i.length,{start:s}=t,{end:l}=t,c=function(f){var h=i[f];if(h==null)return 1;var v=h,m,g=()=>(m===void 0&&(m=r(h,f)),m);if(f===a-1){var y=e*(v.coordinate+e*g()/2-l);i[f]=v=xt(xt({},v),{},{tickCoord:y>0?v.coordinate-y*e:v.coordinate})}else i[f]=v=xt(xt({},v),{},{tickCoord:v.coordinate});if(v.tickCoord!=null){var w=Ka(e,v.tickCoord,g,s,l);w&&(l=v.tickCoord-e*(g()/2+o),i[f]=xt(xt({},v),{},{isShow:!0}))}},u=a-1;u>=0;u--)c(u);return i}function MJ(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),f=e*(u.coordinate+e*d/2-c);if(a[s-1]=u=xt(xt({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null){var h=Ka(e,u.tickCoord,()=>d,l,c);h&&(c=u.tickCoord-e*(d/2+o),a[s-1]=xt(xt({},u),{},{isShow:!0}))}}}for(var v=i?s-1:s,m=function(w){var x=a[w];if(x==null)return 1;var S=x,P,C=()=>(P===void 0&&(P=r(x,w)),P);if(w===0){var E=e*(S.coordinate-e*C()/2-l);a[w]=S=xt(xt({},S),{},{tickCoord:E<0?S.coordinate-E*e:S.coordinate})}else a[w]=S=xt(xt({},S),{},{tickCoord:S.coordinate});if(S.tickCoord!=null){var A=Ka(e,S.tickCoord,C,l,c);A&&(l=S.tickCoord+e*(C()/2+o),a[w]=xt(xt({},S),{},{isShow:!0}))}},g=0;g<v;g++)m(g);return a}function Cy(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(Y(l)||Gu.isSsr){var f;return(f=SJ(o,Y(l)?l:0))!==null&&f!==void 0?f:[]}var h=[],v=s==="top"||s==="bottom"?"width":"height",m=u&&v==="width"?Ea(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},g=(P,C)=>{var E=typeof c=="function"?c(P.value,C):P.value;return v==="width"?wJ(Ea(E,{fontSize:t,letterSpacing:r}),m,d):Ea(E,{fontSize:t,letterSpacing:r})[v]},y=o[0],w=o[1],x=o.length>=2&&y!=null&&w!=null?ft(w.coordinate-y.coordinate):1,S=xJ(i,x,v);return l==="equidistantPreserveStart"?PJ(x,S,g,o,a):l==="equidistantPreserveEnd"?CJ(x,S,g,o,a):(l==="preserveStart"||l==="preserveStartEnd"?h=MJ(x,S,g,o,a,l==="preserveStartEnd"):h=TJ(x,S,g,o,a),h.filter(P=>P.isShow))}var kJ=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},DJ=["axisLine","width","height","className","hide","ticks","axisType"];function _J(e,t){if(e==null)return{};var r,n,o=NJ(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 NJ(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 Ro(){return Ro=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},Ro.apply(null,arguments)}function hC(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 Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hC(Object(r),!0).forEach(function(n){jJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jJ(e,t,r){return(t=RJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RJ(e){var t=IJ(e,"string");return typeof t=="symbol"?t:t+""}function IJ(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 nn={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:Ze.axis};function LJ(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=Ke(Ke(Ke({},l),Zt(s)),{},{fill:"none"});if(i==="top"||i==="bottom"){var u=+(i==="top"&&!a||i==="bottom"&&a);c=Ke(Ke({},c),{},{x1:t,y1:r+u*o,x2:t+n,y2:r+u*o})}else{var d=+(i==="left"&&!a||i==="right"&&a);c=Ke(Ke({},c),{},{x1:t+d*n,y1:r,x2:t+d*n,y2:r+o})}return p.createElement("line",Ro({},c,{className:ve("recharts-cartesian-axis-line",Mo(s,"className"))}))}function $J(e,t,r,n,o,i,a,s,l){var c,u,d,f,h,v,m=s?-1:1,g=e.tickSize||a,y=Y(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":c=u=e.coordinate,f=r+ +!s*o,d=f-m*g,v=d-m*l,h=y;break;case"left":d=f=e.coordinate,u=t+ +!s*n,c=u-m*g,h=c-m*l,v=y;break;case"right":d=f=e.coordinate,u=t+ +s*n,c=u+m*g,h=c+m*l,v=y;break;default:c=u=e.coordinate,f=r+ +s*o,d=f+m*g,v=d+m*l,h=y;break}return{line:{x1:c,y1:d,x2:u,y2:f},tick:{x:h,y:v}}}function FJ(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function VJ(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function BJ(e){var{option:t,tickProps:r,value:n}=e,o,i=ve(r.className,"recharts-cartesian-axis-tick-value");if(p.isValidElement(t))o=p.cloneElement(t,Ke(Ke({},r),{},{className:i}));else if(typeof t=="function")o=t(Ke(Ke({},r),{},{className:i}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=ve(a,VD(t))),o=p.createElement(pd,Ro({},r,{className:a}),n)}return o}var WJ=O.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:f,y:h,width:v,height:m,tickSize:g,tickMargin:y,fontSize:w,letterSpacing:x,getTicksConfig:S,events:P,axisType:C}=e,E=Cy(Ke(Ke({},S),{},{ticks:r}),w,x),A=FJ(u,d),T=VJ(u,d),M=Zt(S),D=Ao(n),k={};typeof o=="object"&&(k=o);var _=Ke(Ke({},M),{},{fill:"none"},k),I=E.map(V=>Ke({entry:V},$J(V,f,h,v,m,u,g,d,y))),z=I.map(V=>{var{entry:j,line:L}=V;return p.createElement(ht,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(j.value,"-").concat(j.coordinate,"-").concat(j.tickCoord)},o&&p.createElement("line",Ro({},_,L,{className:ve("recharts-cartesian-axis-tick-line",Mo(o,"className"))})))}),B=I.map((V,j)=>{var L,H,{entry:te,tick:le}=V,ae=Ke(Ke(Ke(Ke({verticalAnchor:T},M),{},{textAnchor:A,stroke:"none",fill:i},le),{},{index:j,payload:te,visibleTicksCount:E.length,tickFormatter:a,padding:l},c),{},{angle:(L=(H=c?.angle)!==null&&H!==void 0?H:M.angle)!==null&&L!==void 0?L:0}),oe=Ke(Ke({},ae),D);return p.createElement(ht,Ro({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(te.value,"-").concat(te.coordinate,"-").concat(te.tickCoord)},ls(P,te,j)),n&&p.createElement(BJ,{option:n,tickProps:oe,value:"".concat(typeof a=="function"?a(te.value,j):te.value).concat(s||"")}))});return p.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(C,"-ticks")},B.length>0&&p.createElement(Wt,{zIndex:Ze.label},p.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(C,"-tick-labels"),ref:t},B)),z.length>0&&p.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(C,"-tick-lines")},z))}),zJ=O.forwardRef((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l}=e,c=_J(e,DJ),[u,d]=O.useState(""),[f,h]=O.useState(""),v=O.useRef(null);O.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var g;return kJ({ticks:v.current,label:(g=e.labelRef)===null||g===void 0?void 0:g.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=O.useCallback(g=>{if(g){var y=g.getElementsByClassName("recharts-cartesian-axis-tick-value");v.current=y;var w=y[0];if(w){var x=window.getComputedStyle(w),S=x.fontSize,P=x.letterSpacing;(S!==u||P!==f)&&(d(S),h(P))}}},[u,f]);return a||n!=null&&n<=0||o!=null&&o<=0?null:p.createElement(Wt,{zIndex:e.zIndex},p.createElement(ht,{className:ve("recharts-cartesian-axis",i)},p.createElement(LJ,{x:e.x,y:e.y,width:n,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Zt(e)}),p.createElement(WJ,{ref:m,axisType:l,events:c,fontSize:u,getTicksConfig:e,height:e.height,letterSpacing:f,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}),p.createElement(LX,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},p.createElement(GX,{label:e.label,labelRef:e.labelRef}),e.children)))}),Oy=p.forwardRef((e,t)=>{var r=et(e,nn);return p.createElement(zJ,Ro({},r,{ref:t}))});Oy.displayName="CartesianAxis";var KJ=["x1","y1","x2","y2","key"],UJ=["offset"],HJ=["xAxisId","yAxisId"],GJ=["xAxisId","yAxisId"];function mC(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 Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mC(Object(r),!0).forEach(function(n){YJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YJ(e,t,r){return(t=qJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qJ(e){var t=XJ(e,"string");return typeof t=="symbol"?t:t+""}function XJ(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 vo(){return vo=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},vo.apply(null,arguments)}function Gc(e,t){if(e==null)return{};var r,n,o=ZJ(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 ZJ(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 QJ=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 p.createElement("rect",{x:n,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function e_(e){var{option:t,lineItemProps:r}=e,n;if(p.isValidElement(t))n=p.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=Gc(r,KJ),d=(o=Zt(u))!==null&&o!==void 0?o:{},{offset:f}=d,h=Gc(d,UJ);n=p.createElement("line",vo({},h,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function JJ(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=Gc(e,HJ),l=o.map((c,u)=>{var d=Pt(Pt({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return p.createElement(e_,{key:"line-".concat(u),option:n,lineItemProps:d})});return p.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function eee(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=Gc(e,GJ),l=o.map((c,u)=>{var d=Pt(Pt({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return p.createElement(e_,{option:n,lineItemProps:d,key:"line-".concat(u)})});return p.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function tee(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,f)=>d-f);o!==c[0]&&c.unshift(0);var u=c.map((d,f)=>{var h=c[f+1],v=h==null,m=v?o+a-d:h-d;if(m<=0)return null;var g=f%t.length;return p.createElement("rect",{key:"react-".concat(f),y:d,x:n,height:m,width:i,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return p.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function ree(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,f)=>d-f);o!==c[0]&&c.unshift(0);var u=c.map((d,f)=>{var h=c[f+1],v=h==null,m=v?o+a-d:h-d;if(m<=0)return null;var g=f%r.length;return p.createElement("rect",{key:"react-".concat(f),x:d,y:i,width:m,height:s,stroke:"none",fill:r[g],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return p.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var nee=(e,t)=>{var{xAxis:r,width:n,height:o,offset:i}=e;return UT(Cy(Pt(Pt(Pt({},nn),r),{},{ticks:HT(r),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},oee=(e,t)=>{var{yAxis:r,width:n,height:o,offset:i}=e;return UT(Cy(Pt(Pt(Pt({},nn),r),{},{ticks:HT(r),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},iee={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Ze.grid};function Ey(e){var t=qv(),r=Xv(),n=JT(),o=Pt(Pt({},et(e,iee)),{},{x:Y(e.x)?e.x:n.left,y:Y(e.y)?e.y:n.top,width:Y(e.width)?e.width:n.width,height:Y(e.height)?e.height:n.height}),{xAxisId:i,yAxisId:a,x:s,y:l,width:c,height:u,syncWithTicks:d,horizontalValues:f,verticalValues:h}=o,v=Tt(),m=J(T=>oP(T,"xAxis",i,v)),g=J(T=>oP(T,"yAxis",a,v));if(!Wr(c)||!Wr(u)||!Y(s)||!Y(l))return null;var y=o.verticalCoordinatesGenerator||nee,w=o.horizontalCoordinatesGenerator||oee,{horizontalPoints:x,verticalPoints:S}=o;if((!x||!x.length)&&typeof w=="function"){var P=f&&f.length,C=w({yAxis:g?Pt(Pt({},g),{},{ticks:P?f:g.ticks}):void 0,width:t??c,height:r??u,offset:n},P?!0:d);bc(Array.isArray(C),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(x=C)}if((!S||!S.length)&&typeof y=="function"){var E=h&&h.length,A=y({xAxis:m?Pt(Pt({},m),{},{ticks:E?h:m.ticks}):void 0,width:t??c,height:r??u,offset:n},E?!0:d);bc(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof A,"]")),Array.isArray(A)&&(S=A)}return p.createElement(Wt,{zIndex:o.zIndex},p.createElement("g",{className:"recharts-cartesian-grid"},p.createElement(QJ,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),p.createElement(tee,vo({},o,{horizontalPoints:x})),p.createElement(ree,vo({},o,{verticalPoints:S})),p.createElement(JJ,vo({},o,{offset:n,horizontalPoints:x,xAxis:m,yAxis:g})),p.createElement(eee,vo({},o,{offset:n,verticalPoints:S,xAxis:m,yAxis:g}))))}Ey.displayName="CartesianGrid";var aee={},t_=Bt({name:"errorBars",initialState:aee,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:gye,replaceErrorBar:yye,removeErrorBar:bye}=t_.actions,see=t_.reducer,lee=["children"];function cee(e,t){if(e==null)return{};var r,n,o=uee(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 uee(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 dee={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},fee=O.createContext(dee);function r_(e){var{children:t}=e,r=cee(e,lee);return p.createElement(fee.Provider,{value:r},t)}function Ay(e,t){var r,n,o=J(c=>Sn(c,e)),i=J(c=>Pn(c,t)),a=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:ct.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:ut.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function n_(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=Py(),{needClipX:i,needClipY:a,needClip:s}=Ay(t,r);if(!s||!o)return null;var{x:l,y:c,width:u,height:d}=o;return p.createElement("clipPath",{id:"clipPath-".concat(n)},p.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 o_=(e,t,r,n)=>Fn(e,"xAxis",t,n),i_=(e,t,r,n)=>$n(e,"xAxis",t,n),a_=(e,t,r,n)=>Fn(e,"yAxis",r,n),s_=(e,t,r,n)=>$n(e,"yAxis",r,n),pee=R([ye,o_,a_,i_,s_],(e,t,r,n,o)=>gn(e,"xAxis")?Pi(t,n,!1):Pi(r,o,!1)),hee=(e,t,r,n,o)=>o;function mee(e){return e.type==="line"}var vee=R([sd,hee],(e,t)=>e.filter(mee).find(r=>r.id===t)),gee=R([ye,o_,a_,i_,s_,vee,pee,Pg],(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:f}=i,h;if(f!=null&&f.length>0?h=f:h=l?.slice(c,u+1),h!=null)return ite({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:o,dataKey:d,bandSize:a,displayedData:h})}});function yee(e){var t=Ao(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 Al={exports:{}},Lp={};var vC;function bee(){if(vC)return Lp;vC=1;var e=O;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 Lp.useSyncExternalStoreWithSelector=function(l,c,u,d,f){var h=o(null);if(h.current===null){var v={hasValue:!1,value:null};h.current=v}else v=h.current;h=a(function(){function g(P){if(!y){if(y=!0,w=P,P=d(P),f!==void 0&&v.hasValue){var C=v.value;if(f(C,P))return x=C}return x=P}if(C=x,r(w,P))return C;var E=d(P);return f!==void 0&&f(C,E)?(w=P,C):(w=P,x=E)}var y=!1,w,x,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,d,f]);var m=n(l,h[0],h[1]);return i(function(){v.hasValue=!0,v.value=m},[m]),s(m),m},Lp}var $p={};var gC;function wee(){return gC||(gC=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=O,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,a=t.useMemo,s=t.useDebugValue;$p.useSyncExternalStoreWithSelector=function(l,c,u,d,f){var h=o(null);if(h.current===null){var v={hasValue:!1,value:null};h.current=v}else v=h.current;h=a(function(){function g(P){if(!y){if(y=!0,w=P,P=d(P),f!==void 0&&v.hasValue){var C=v.value;if(f(C,P))return x=C}return x=P}if(C=x,r(w,P))return C;var E=d(P);return f!==void 0&&f(C,E)?(w=P,C):(w=P,x=E)}var y=!1,w,x,S=u===void 0?null:u;return[function(){return g(c())},S===null?void 0:function(){return g(S())}]},[c,u,d,f]);var m=n(l,h[0],h[1]);return i(function(){v.hasValue=!0,v.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())})()),$p}var yC;function xee(){return yC||(yC=1,process.env.NODE_ENV==="production"?Al.exports=bee():Al.exports=wee()),Al.exports}xee();function See(e){e()}function Pee(){let e=null,t=null;return{clear(){e=null,t=null},notify(){See(()=>{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 bC={notify(){},get:()=>[]};function Cee(e,t){let r,n=bC,o=0,i=!1;function a(m){u();const g=n.subscribe(m);let y=!1;return()=>{y||(y=!0,g(),d())}}function s(){n.notify()}function l(){v.onStateChange&&v.onStateChange()}function c(){return i}function u(){o++,r||(r=e.subscribe(l),n=Pee())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=bC)}function f(){i||(i=!0,u())}function h(){i&&(i=!1,d())}const v={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:f,tryUnsubscribe:h,getListeners:()=>n};return v}var Oee=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Eee=Oee(),Aee=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Tee=Aee(),Mee=()=>Eee||Tee?p.useLayoutEffect:p.useEffect,kee=Mee();function wC(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Dee(e,t){if(wC(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])||!wC(e[r[o]],t[r[o]]))return!1;return!0}var _ee=Symbol.for("react-redux-context"),Nee=typeof globalThis<"u"?globalThis:{};function jee(){if(!p.createContext)return{};const e=Nee[_ee]??=new Map;let t=e.get(p.createContext);return t||(t=p.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(p.createContext,t)),t}var Ree=jee();function Iee(e){const{children:t,context:r,serverState:n,store:o}=e,i=p.useMemo(()=>{const l=Cee(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=p.useMemo(()=>o.getState(),[o]);kee(()=>{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||Ree;return p.createElement(s.Provider,{value:i},t)}var Lee=Iee,$ee=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function Fee(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function gd(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if($ee.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Dee(e[n],t[n]))return!1}else if(!Fee(e[n],t[n]))return!1;return!0}var Vee=["id"],Bee=["type","layout","connectNulls","needClip","shape"],Wee=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function Ua(){return Ua=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},Ua.apply(null,arguments)}function xC(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 Dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xC(Object(r),!0).forEach(function(n){zee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zee(e,t,r){return(t=Kee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kee(e){var t=Uee(e,"string");return typeof t=="symbol"?t:t+""}function Uee(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 Ty(e,t){if(e==null)return{};var r,n,o=Hee(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 Hee(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 Gee=e=>{var{dataKey:t,name:r,stroke:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:$i(r,t),payload:e}]},Yee=p.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:Wo,settings:{stroke:n,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:$i(a,t),hide:s,type:c,color:n,unit:l,graphicalItemId:u}};return p.createElement(xy,{tooltipEntrySettings:d})}),l_=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function qee(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],o=0;o<t;++o)n=[...n,...r];return n}var Xee=(e,t,r)=>{var n=r.reduce((h,v)=>h+v);if(!n)return l_(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 f=s.length%2===0?[0,a]:[a];return[...qee(r,o),...s,...f].map(h=>"".concat(h,"px")).join(", ")};function Zee(e){var{clipPathId:t,points:r,props:n}=e,{dot:o,dataKey:i,needClip:a}=n,{id:s}=n,l=Ty(n,Vee),c=Zt(l);return p.createElement(LQ,{points:r,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:c,needClip:a,clipPathId:t})}function Qee(e){var{showLabels:t,children:r,points:n}=e,o=O.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 Dr(Dr({},l),{},{value:i.value,payload:i.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[n]);return p.createElement(jD,{value:t?o:void 0},r)}function SC(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=Ty(i,Bee),f=Dr(Dr({},It(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 p.createElement(p.Fragment,null,n?.length>1&&p.createElement(gy,Ua({shapeType:"curve",option:u},f,{pathRef:r})),p.createElement(Zee,{points:n,clipPathId:t,props:i}))}function Jee(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function ete(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:f,width:h,height:v,onAnimationEnd:m,onAnimationStart:g}=r,y=o.current,w=gs(a,"recharts-line-"),x=O.useRef(w),[S,P]=O.useState(!1),C=!S,E=O.useCallback(()=>{typeof m=="function"&&m(),P(!1)},[m]),A=O.useCallback(()=>{typeof g=="function"&&g(),P(!0)},[g]),T=Jee(n.current),M=O.useRef(0);x.current!==w&&(M.current=i.current,x.current=w);var D=M.current;return p.createElement(Qee,{points:a,showLabels:C},r.children,p.createElement(vs,{animationId:w,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:E,onAnimationStart:A,key:w},k=>{var _=Le(D,T+D,k),I=Math.min(_,T),z;if(l)if(s){var B="".concat(s).split(/[,\s]+/gim).map(L=>parseFloat(L));z=Xee(I,T,B)}else z=l_(T,I);else z=s==null?void 0:String(s);if(k>0&&T>0&&(o.current=a,i.current=Math.max(i.current,I)),y){var V=y.length/a.length,j=k===1?a:a.map((L,H)=>{var te=Math.floor(H*V);if(y[te]){var le=y[te];return Dr(Dr({},L),{},{x:Le(le.x,L.x,k),y:Le(le.y,L.y,k)})}return f?Dr(Dr({},L),{},{x:Le(h*2,L.x,k),y:Le(v/2,L.y,k)}):Dr(Dr({},L),{},{x:L.x,y:L.y})});return o.current=j,p.createElement(SC,{props:r,points:j,clipPathId:t,pathRef:n,strokeDasharray:z})}return p.createElement(SC,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:z})}),p.createElement(py,{label:r.label}))}function tte(e){var{clipPathId:t,props:r}=e,n=O.useRef(null),o=O.useRef(0),i=O.useRef(null);return p.createElement(ete,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:o,pathRef:i})}var rte=(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:Ae(e.payload,t)}};class nte extends O.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:f,zIndex:h}=this.props;if(t)return null;var v=ve("recharts-line",o),m=d,{r:g,strokeWidth:y}=yee(r),w=zD(r),x=g*2+y,S=f?"url(#clipPath-".concat(w?"":"dots-").concat(m,")"):void 0;return p.createElement(Wt,{zIndex:h},p.createElement(ht,{className:v},f&&p.createElement("defs",null,p.createElement(n_,{clipPathId:m,xAxisId:i,yAxisId:a}),!w&&p.createElement("clipPath",{id:"clipPath-dots-".concat(m)},p.createElement("rect",{x:l-x/2,y:s-x/2,width:c+x,height:u+x}))),p.createElement(r_,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:rte,errorBarOffset:0},p.createElement(tte,{props:this.props,clipPathId:m}))),p.createElement(nJ,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:S}))}}var c_={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:Ze.line,type:"linear"};function ote(e){var t=et(e,c_),{activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:d,legendType:f,xAxisId:h,yAxisId:v,id:m}=t,g=Ty(t,Wee),{needClip:y}=Ay(h,v),w=Py(),x=zo(),S=Tt(),P=J(M=>gee(M,h,v,S,m));if(x!=="horizontal"&&x!=="vertical"||P==null||w==null)return null;var{height:C,width:E,x:A,y:T}=w;return p.createElement(nte,Ua({},g,{id:m,connectNulls:s,dot:l,activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,isAnimationActive:u,hide:c,label:d,legendType:f,xAxisId:h,yAxisId:v,points:P,layout:x,height:C,width:E,left:A,top:T,needClip:y}))}function ite(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=Ae(c,a);if(t==="horizontal"){var f=t0({axis:r,ticks:o,bandSize:s,entry:c,index:u}),h=We(d)?null:n.scale.map(d);return{x:f,y:h??null,value:d,payload:c}}var v=We(d)?null:r.scale.map(d),m=t0({axis:n,ticks:i,bandSize:s,entry:c,index:u});return v==null||m==null?null:{x:v,y:m,value:d,payload:c}}).filter(Boolean)}function ate(e){var t=et(e,c_),r=Tt();return p.createElement(Sy,{id:t.id,type:"line"},n=>p.createElement(p.Fragment,null,p.createElement(KD,{legendPayload:Gee(t)}),p.createElement(Yee,{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}),p.createElement(HD,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),p.createElement(ote,Ua({},t,{id:n}))))}var u_=p.memo(ate,gd);u_.displayName="Line";function Ho(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:YD}function Go(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:YD}var ste=process.env.NODE_ENV==="production",Fp="Invariant failed";function lte(e,t){if(ste)throw new Error(Fp);var r=typeof t=="function"?t():t,n=r?"".concat(Fp,": ").concat(r):Fp;throw new Error(n)}function um(){return um=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},um.apply(null,arguments)}function Yc(e){return p.createElement(gy,um({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var cte=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,o)=>{if(Y(t))return t;var i=Y(n)||We(n);return i?t(n,o):(i||lte(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},ute=(e,t,r)=>r,dte=(e,t)=>t,ks=R([sd,dte],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),fte=R([ks],e=>e?.maxBarSize),pte=(e,t,r,n)=>n,hte=R([ye,sd,Ho,Go,ute],(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")),mte=(e,t,r)=>{var n=ye(e),o=Ho(e,t),i=Go(e,t);if(!(o==null||i==null))return n==="horizontal"?nm(e,"yAxis",i,r):nm(e,"xAxis",o,r)},vte=(e,t)=>{var r=ye(e),n=Ho(e,t),o=Go(e,t);if(!(n==null||o==null))return r==="horizontal"?nP(e,"xAxis",n):nP(e,"yAxis",o)},gte=R([hte,D8,vte],oJ),yte=(e,t,r)=>{var n,o,i=ks(e,t);if(i==null)return 0;var a=Ho(e,t),s=Go(e,t);if(a==null||s==null)return 0;var l=ye(e),c=pk(e),{maxBarSize:u}=i,d=We(u)?c:u,f,h;return l==="horizontal"?(f=Fn(e,"xAxis",a,r),h=$n(e,"xAxis",a,r)):(f=Fn(e,"yAxis",s,r),h=$n(e,"yAxis",s,r)),(n=(o=Pi(f,h,!0))!==null&&o!==void 0?o:d)!==null&&n!==void 0?n:0},d_=(e,t,r)=>{var n=ye(e),o=Ho(e,t),i=Go(e,t);if(!(o==null||i==null)){var a,s;return n==="horizontal"?(a=Fn(e,"xAxis",o,r),s=$n(e,"xAxis",o,r)):(a=Fn(e,"yAxis",i,r),s=$n(e,"yAxis",i,r)),Pi(a,s)}},bte=R([gte,pk,k8,hk,yte,d_,fte],cJ),wte=(e,t,r)=>{var n=Ho(e,t);if(n!=null)return Fn(e,"xAxis",n,r)},xte=(e,t,r)=>{var n=Go(e,t);if(n!=null)return Fn(e,"yAxis",n,r)},Ste=(e,t,r)=>{var n=Ho(e,t);if(n!=null)return $n(e,"xAxis",n,r)},Pte=(e,t,r)=>{var n=Go(e,t);if(n!=null)return $n(e,"yAxis",n,r)},Cte=R([bte,ks],dJ),Ote=R([mte,ks],uJ),Ete=R([at,Uv,wte,xte,Ste,Pte,Cte,ye,S8,d_,Ote,ks,pte],(e,t,r,n,o,i,a,s,l,c,u,d,f)=>{var{chartData:h,dataStartIndex:v,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:g}=d,y;if(g!=null&&g.length>0?y=g:y=h?.slice(v,m+1),y!=null)return ere({layout:s,barSettings:d,pos:a,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,stackedData:u,displayedData:y,offset:e,cells:f,dataStartIndex:v})}}),Ate=["index"];function dm(){return dm=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},dm.apply(null,arguments)}function Tte(e,t){if(e==null)return{};var r,n,o=Mte(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 Mte(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 f_=O.createContext(void 0),kte=e=>{var t=O.useContext(f_);if(t!=null)return t.stackId;if(e!=null)return mU(e)},Dte=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),_te=e=>{var t=O.useContext(f_);if(t!=null){var{stackId:r}=t;return"url(#".concat(Dte(r,e),")")}},p_=e=>{var{index:t}=e,r=Tte(e,Ate),n=_te(t);return p.createElement(ht,dm({className:"recharts-bar-stack-layer",clipPath:n},r))},Nte=["onMouseEnter","onMouseLeave","onClick"],jte=["value","background","tooltipPosition"],Rte=["id"],Ite=["onMouseEnter","onClick","onMouseLeave"];function dn(){return dn=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},dn.apply(null,arguments)}function PC(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 Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PC(Object(r),!0).forEach(function(n){Lte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lte(e,t,r){return(t=$te(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $te(e){var t=Fte(e,"string");return typeof t=="symbol"?t:t+""}function Fte(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 qc(e,t){if(e==null)return{};var r,n,o=Vte(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 Vte(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 Bte=e=>{var{dataKey:t,name:r,fill:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:$i(r,t),payload:e}]},Wte=p.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:Wo,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:t,nameKey:void 0,name:$i(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:c}};return p.createElement(xy,{tooltipEntrySettings:u})});function zte(e){var t=J(Vn),{data:r,dataKey:n,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=qc(i,Nte),u=yy(a,n,i.id),d=by(s),f=wy(l,n,i.id);if(!o||r==null)return null;var h=Ao(o);return p.createElement(Wt,{zIndex:fJ(o,Ze.barBackground)},r.map((v,m)=>{var{value:g,background:y,tooltipPosition:w}=v,x=qc(v,jte);if(!y)return null;var S=u(v,m),P=d(v,m),C=f(v,m),E=Dt(Dt(Dt(Dt(Dt({option:o,isActive:String(m)===t},x),{},{fill:"#eee"},y),h),ls(c,v,m)),{},{onMouseEnter:S,onMouseLeave:P,onClick:C,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return p.createElement(Yc,dn({key:"background-bar-".concat(m)},E))}))}function Kte(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 Dt(Dt({},a),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:a,fill:i.fill})});return p.createElement(jD,{value:t?o:void 0},r)}function Ute(e){var{shape:t,activeBar:r,baseProps:n,entry:o,index:i,dataKey:a}=e,s=J(Vn),l=J(iy),c=r&&String(i)===s&&(l==null||a===l),u=c?r:t;return c?p.createElement(Wt,{zIndex:Ze.activeBar},p.createElement(p_,{index:i},p.createElement(Yc,dn({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a})))):p.createElement(Yc,dn({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a}))}function Hte(e){var{shape:t,baseProps:r,entry:n,index:o,dataKey:i}=e;return p.createElement(Yc,dn({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:o,dataKey:i}))}function Gte(e){var t,{data:r,props:n}=e,o=(t=Zt(n))!==null&&t!==void 0?t:{},{id:i}=o,a=qc(o,Rte),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:u,onClick:d,onMouseLeave:f}=n,h=qc(n,Ite),v=yy(u,l,i),m=by(f),g=wy(d,l,i);return r?p.createElement(p.Fragment,null,r.map((y,w)=>p.createElement(p_,dn({index:w,key:"rectangle-".concat(y?.x,"-").concat(y?.y,"-").concat(y?.value,"-").concat(w),className:"recharts-bar-rectangle"},ls(h,y,w),{onMouseEnter:v(y,w),onMouseLeave:m(y,w),onClick:g(y,w)}),c?p.createElement(Ute,{shape:s,activeBar:c,baseProps:a,entry:y,index:w,dataKey:l}):p.createElement(Hte,{shape:s,baseProps:a,entry:y,index:w,dataKey:l})))):null}function Yte(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,f=gs(t,"recharts-bar-"),[h,v]=O.useState(!1),m=!h,g=O.useCallback(()=>{typeof c=="function"&&c(),v(!1)},[c]),y=O.useCallback(()=>{typeof u=="function"&&u(),v(!0)},[u]);return p.createElement(Kte,{showLabels:m,rects:n},p.createElement(vs,{animationId:f,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:g,onAnimationStart:y,key:f},w=>{var x=w===1?n:n?.map((S,P)=>{var C=d&&d[P];if(C)return Dt(Dt({},S),{},{x:Le(C.x,S.x,w),y:Le(C.y,S.y,w),width:Le(C.width,S.width,w),height:Le(C.height,S.height,w)});if(o==="horizontal"){var E=Le(0,S.height,w),A=Le(S.stackedBarStart,S.y,w);return Dt(Dt({},S),{},{y:A,height:E})}var T=Le(0,S.width,w),M=Le(S.stackedBarStart,S.x,w);return Dt(Dt({},S),{},{width:T,x:M})});return w>0&&(r.current=x??null),x==null?null:p.createElement(ht,null,p.createElement(Gte,{props:t,data:x}))}),p.createElement(py,{label:t.label}),t.children)}function qte(e){var t=O.useRef(null);return p.createElement(Yte,{previousRectanglesRef:t,props:e})}var h_=0,Xte=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Ae(e,t)}};class Zte extends O.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=ve("recharts-bar",o),d=c;return p.createElement(ht,{className:u,id:c},s&&p.createElement("defs",null,p.createElement(n_,{clipPathId:d,xAxisId:i,yAxisId:a})),p.createElement(ht,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},p.createElement(zte,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),p.createElement(qte,this.props)))}}var Qte={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:h_,xAxisId:0,yAxisId:0,zIndex:Ze.bar};function Jte(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}=Ay(t,r),f=zo(),h=Tt(),v=vy(e.children,Ms),m=J(w=>Ete(w,e.id,h,v));if(f!=="vertical"&&f!=="horizontal")return null;var g,y=m?.[0];return y==null||y.height==null||y.width==null?g=0:g=f==="vertical"?y.height/2:y.width/2,p.createElement(r_,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:Xte,errorBarOffset:g},p.createElement(Zte,dn({},e,{layout:f,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 ere(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:f,cells:h,parentViewBox:v,dataStartIndex:m}=e,g=t==="horizontal"?s:a,y=u?g.scale.domain():null,w=vU({numericAxis:g}),x=g.scale.map(w);return d.map((S,P)=>{var C,E,A,T,M,D;if(u){var k=u[P+m];if(k==null)return null;C=uU(k,y)}else C=Ae(S,r),Array.isArray(C)||(C=[w,C]);var _=cte(n,h_)(C[1],P);if(t==="horizontal"){var I,z=s.scale.map(C[0]),B=s.scale.map(C[1]);if(z==null||B==null)return null;E=r0({axis:a,ticks:l,bandSize:i,offset:o.offset,entry:S,index:P}),A=(I=B??z)!==null&&I!==void 0?I:void 0,T=o.size;var V=z-B;if(M=Vr(V)?0:V,D={x:E,y:f.top,width:T,height:f.height},Math.abs(_)>0&&Math.abs(M)<Math.abs(_)){var j=ft(M||_)*(Math.abs(_)-Math.abs(M));A-=j,M+=j}}else{var L=a.scale.map(C[0]),H=a.scale.map(C[1]);if(L==null||H==null)return null;if(E=L,A=r0({axis:s,ticks:c,bandSize:i,offset:o.offset,entry:S,index:P}),T=H-L,M=o.size,D={x:f.left,y:A,width:f.width,height:M},Math.abs(_)>0&&Math.abs(T)<Math.abs(_)){var te=ft(T||_)*(Math.abs(_)-Math.abs(T));T+=te}}if(E==null||A==null||T==null||M==null)return null;var le=Dt(Dt({},S),{},{stackedBarStart:x,x:E,y:A,width:T,height:M,value:u?C:C[1],payload:S,background:D,tooltipPosition:{x:E+T/2,y:A+M/2},parentViewBox:v},h&&h[P]&&h[P].props);return le}).filter(Boolean)}function tre(e){var t=et(e,Qte),r=kte(t.stackId),n=Tt();return p.createElement(Sy,{id:t.id,type:"bar"},o=>p.createElement(p.Fragment,null,p.createElement(KD,{legendPayload:Bte(t)}),p.createElement(Wte,{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}),p.createElement(HD,{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}),p.createElement(Wt,{zIndex:t.zIndex},p.createElement(Jte,dn({},t,{id:o})))))}var m_=p.memo(tre,gd);m_.displayName="Bar";var rre=["domain","range"],nre=["domain","range"];function CC(e,t){if(e==null)return{};var r,n,o=ore(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 ore(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 OC(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 v_(e,t){if(e===t)return!0;var{domain:r,range:n}=e,o=CC(e,rre),{domain:i,range:a}=t,s=CC(t,nre);return!OC(r,i)||!OC(n,a)?!1:gd(o,s)}var ire=["type"],are=["dangerouslySetInnerHTML","ticks","scale"],sre=["id","scale"];function fm(){return fm=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},fm.apply(null,arguments)}function EC(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 AC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EC(Object(r),!0).forEach(function(n){lre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lre(e,t,r){return(t=cre(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cre(e){var t=ure(e,"string");return typeof t=="symbol"?t:t+""}function ure(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 pm(e,t){if(e==null)return{};var r,n,o=dre(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 dre(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 fre(e){var t=Ne(),r=O.useRef(null),n=eM(),{type:o}=e,i=pm(e,ire),a=rd(n,"xAxis",o),s=O.useMemo(()=>{if(a!=null)return AC(AC({},i),{},{type:a})},[i,a]);return O.useLayoutEffect(()=>{s!=null&&(r.current===null?t(WQ(s)):r.current!==s&&t(zQ({prev:r.current,next:s})),r.current=s)},[s,t]),O.useLayoutEffect(()=>()=>{r.current&&(t(KQ(r.current)),r.current=null)},[t]),null}var pre=e=>{var{xAxisId:t,className:r}=e,n=J(Uv),o=Tt(),i="xAxis",a=J(y=>Gk(y,i,t,o)),s=J(y=>zk(y,t)),l=J(y=>Dq(y,t)),c=J(y=>Ck(y,t));if(s==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:f}=e,h=pm(e,are),{id:v,scale:m}=c,g=pm(c,sre);return p.createElement(Oy,fm({},h,g,{x:l.x,y:l.y,width:s.width,height:s.height,className:ve("recharts-".concat(i," ").concat(i),r),viewBox:n,ticks:a,axisType:i}))},hre={allowDataOverflow:ct.allowDataOverflow,allowDecimals:ct.allowDecimals,allowDuplicatedCategory:ct.allowDuplicatedCategory,angle:ct.angle,axisLine:nn.axisLine,height:ct.height,hide:!1,includeHidden:ct.includeHidden,interval:ct.interval,label:!1,minTickGap:ct.minTickGap,mirror:ct.mirror,orientation:ct.orientation,padding:ct.padding,reversed:ct.reversed,scale:ct.scale,tick:ct.tick,tickCount:ct.tickCount,tickLine:nn.tickLine,tickSize:nn.tickSize,type:ct.type,xAxisId:0},mre=e=>{var t=et(e,hre);return p.createElement(p.Fragment,null,p.createElement(fre,{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}),p.createElement(pre,t))},Xc=p.memo(mre,v_);Xc.displayName="XAxis";var vre=["type"],gre=["dangerouslySetInnerHTML","ticks","scale"],yre=["id","scale"];function hm(){return hm=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},hm.apply(null,arguments)}function TC(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 MC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TC(Object(r),!0).forEach(function(n){bre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bre(e,t,r){return(t=wre(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wre(e){var t=xre(e,"string");return typeof t=="symbol"?t:t+""}function xre(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 mm(e,t){if(e==null)return{};var r,n,o=Sre(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 Sre(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 Pre(e){var t=Ne(),r=O.useRef(null),n=eM(),{type:o}=e,i=mm(e,vre),a=rd(n,"yAxis",o),s=O.useMemo(()=>{if(a!=null)return MC(MC({},i),{},{type:a})},[a,i]);return O.useLayoutEffect(()=>{s!=null&&(r.current===null?t(UQ(s)):r.current!==s&&t(HQ({prev:r.current,next:s})),r.current=s)},[s,t]),O.useLayoutEffect(()=>()=>{r.current&&(t(GQ(r.current)),r.current=null)},[t]),null}function Cre(e){var{yAxisId:t,className:r,width:n,label:o}=e,i=O.useRef(null),a=O.useRef(null),s=J(Uv),l=Tt(),c=Ne(),u="yAxis",d=J(C=>Kk(C,t)),f=J(C=>Nq(C,t)),h=J(C=>Gk(C,u,t,l)),v=J(C=>Ok(C,t));if(O.useLayoutEffect(()=>{if(!(n!=="auto"||!d||fy(o)||O.isValidElement(o)||v==null)){var C=i.current;if(C){var E=C.getCalculatedWidth();Math.round(d.width)!==Math.round(E)&&c(YQ({id:t,width:E}))}}},[h,d,c,o,t,n,v]),d==null||f==null||v==null)return null;var{dangerouslySetInnerHTML:m,ticks:g,scale:y}=e,w=mm(e,gre),{id:x,scale:S}=v,P=mm(v,yre);return p.createElement(Oy,hm({},w,P,{ref:i,labelRef:a,x:f.x,y:f.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:d.width,height:d.height,className:ve("recharts-".concat(u," ").concat(u),r),viewBox:s,ticks:h,axisType:u}))}var Ore={allowDataOverflow:ut.allowDataOverflow,allowDecimals:ut.allowDecimals,allowDuplicatedCategory:ut.allowDuplicatedCategory,angle:ut.angle,axisLine:nn.axisLine,hide:!1,includeHidden:ut.includeHidden,interval:ut.interval,label:!1,minTickGap:ut.minTickGap,mirror:ut.mirror,orientation:ut.orientation,padding:ut.padding,reversed:ut.reversed,scale:ut.scale,tick:ut.tick,tickCount:ut.tickCount,tickLine:nn.tickLine,tickSize:nn.tickSize,type:ut.type,width:ut.width,yAxisId:0},Ere=e=>{var t=et(e,Ore);return p.createElement(p.Fragment,null,p.createElement(Pre,{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}),p.createElement(Cre,t))},Zc=p.memo(Ere,v_);Zc.displayName="YAxis";var Are=(e,t)=>t,My=R([Are,ye,xk,vt,uD,Cn,q9,at],r7),ky=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)}},g_=ur("mouseClick"),y_=fs();y_.startListening({actionCreator:g_,effect:(e,t)=>{var r=e.payload,n=My(t.getState(),ky(r));n?.activeIndex!=null&&t.dispatch(Gq({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var vm=ur("mouseMove"),b_=fs(),Tl=null;b_.startListening({actionCreator:vm,effect:(e,t)=>{var r=e.payload;Tl!==null&&cancelAnimationFrame(Tl);var n=ky(r);Tl=requestAnimationFrame(()=>{var o=t.getState(),i=Jg(o,o.tooltip.settings.shared);if(i==="axis"){var a=My(o,n);a?.activeIndex!=null?t.dispatch(tD({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(eD())}Tl=null})}});function Tre(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 kC={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},w_=Bt({name:"rootProps",initialState:kC,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:kC.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}}}),Mre=w_.reducer,{updateOptions:kre}=w_.actions,Dre=null,_re={updatePolarOptions:(e,t)=>t.payload},x_=Bt({name:"polarOptions",initialState:Dre,reducers:_re}),{updatePolarOptions:Nre}=x_.actions,jre=x_.reducer,S_=ur("keyDown"),P_=ur("focus"),Dy=fs();Dy.startListening({actionCreator:S_,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=ey(o,Gi(r),Os(r),As(r)),s=a==null?-1:Number(a);if(!(!Number.isFinite(s)||s<0)){var l=Cn(r);if(i==="Enter"){var c=Wc(r,"axis","hover",String(o.index));t.dispatch(im({active:!o.active,activeIndex:o.index,activeCoordinate:c}));return}var u=Lq(r),d=u==="left-to-right"?1:-1,f=i==="ArrowRight"?1:-1,h=s+f*d;if(!(l==null||h>=l.length||h<0)){var v=Wc(r,"axis","hover",String(h));t.dispatch(im({active:!0,activeIndex:h.toString(),activeCoordinate:v}))}}}}}});Dy.startListening({actionCreator:P_,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=Wc(r,"axis","hover",String(i));t.dispatch(im({active:!0,activeIndex:i,activeCoordinate:a}))}}}});var rr=ur("externalEvent"),C_=fs(),Vp=new Map;C_.startListening({actionCreator:rr,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var o=n.type,i=Vp.get(o);i!==void 0&&cancelAnimationFrame(i);var a=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:N9(s),activeDataKey:iy(s),activeIndex:Vn(s),activeLabel:pD(s),activeTooltipIndex:Vn(s),isTooltipActive:j9(s)};r(l,n)}finally{Vp.delete(o)}});Vp.set(o,a)}}});var Rre=R([Ui],e=>e.tooltipItemPayloads),Ire=R([Rre,(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)}}}),O_=ur("touchMove"),E_=fs();E_.startListening({actionCreator:O_,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),o=Jg(n,n.tooltip.settings.shared);if(o==="axis"){var i=r.touches[0];if(i==null)return;var a=My(n,ky({clientX:i.clientX,clientY:i.clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(tD({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(YT),d=(s=c.getAttribute(qT))!==null&&s!==void 0?s:void 0,f=Hi(n).find(m=>m.id===d);if(u==null||f==null||d==null)return;var{dataKey:h}=f,v=Ire(n,u,d);t.dispatch(Jk({activeDataKey:h,activeIndex:u,activeCoordinate:v,activeGraphicalItemId:d}))}}}});var Lre=fT({brush:pJ,cartesianAxis:qQ,chartData:N7,errorBars:see,graphicalItems:rQ,layout:iU,legend:pH,options:T7,polarAxis:mZ,polarOptions:jre,referenceElements:gJ,rootProps:Mre,tooltip:Yq,zIndex:v7}),$re=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return kK({reducer:Lre,preloadedState:t,middleware:n=>{var o;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([y_.middleware,b_.middleware,Dy.middleware,C_.middleware,E_.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(DT({type:"raf"}))},devTools:{serialize:{replacer:Tre},name:"recharts-".concat(r)}})};function A_(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,o=Tt(),i=O.useRef(null);if(o)return r;i.current==null&&(i.current=$re(t,n));var a=$v;return p.createElement(Lee,{context:a,store:i.current},r)}function Fre(e){var{layout:t,margin:r}=e,n=Ne(),o=Tt();return O.useEffect(()=>{o||(n(rU(t)),n(tU(r)))},[n,o,t,r]),null}var T_=O.memo(Fre,gd);function M_(e){var t=Ne();return O.useEffect(()=>{t(kre(e))},[t,e]),null}function DC(e){var{zIndex:t,isPanorama:r}=e,n=O.useRef(null),o=Ne();return O.useLayoutEffect(()=>(n.current&&o(h7({zIndex:t,element:n.current,isPanorama:r})),()=>{o(m7({zIndex:t,isPanorama:r}))}),[o,t,r]),p.createElement("g",{tabIndex:-1,ref:n})}function _C(e){var{children:t,isPanorama:r}=e,n=J(o7);if(!n||n.length===0)return t;var o=n.filter(a=>a<0),i=n.filter(a=>a>0);return p.createElement(p.Fragment,null,o.map(a=>p.createElement(DC,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>p.createElement(DC,{key:a,zIndex:a,isPanorama:r})))}var Vre=["children"];function Bre(e,t){if(e==null)return{};var r,n,o=Wre(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 Wre(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 Qc(){return Qc=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},Qc.apply(null,arguments)}var zre={width:"100%",height:"100%",display:"block"},Kre=O.forwardRef((e,t)=>{var r=qv(),n=Xv(),o=fM();if(!Wr(r)||!Wr(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),p.createElement(Av,Qc({},a,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:zre,ref:t}),i)}),Ure=e=>{var{children:t}=e,r=J(Bu);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return p.createElement(Av,{width:n,height:o,x:a,y:i},t)},NC=O.forwardRef((e,t)=>{var{children:r}=e,n=Bre(e,Vre),o=Tt();return o?p.createElement(Ure,null,p.createElement(_C,{isPanorama:!0},r)):p.createElement(Kre,Qc({ref:t},n),p.createElement(_C,{isPanorama:!1},r))});function Hre(){var e=Ne(),[t,r]=O.useState(null),n=J(SU);return O.useEffect(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;pe(i)&&i!==n&&e(oU(i))}},[t,e,n]),r}function jC(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 Gre(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jC(Object(r),!0).forEach(function(n){Yre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yre(e,t,r){return(t=qre(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qre(e){var t=Xre(e,"string");return typeof t=="symbol"?t:t+""}function Xre(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 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)}var Zre=()=>(W7(),null);function Jc(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Qre=O.forwardRef((e,t)=>{var r,n,o=O.useRef(null),[i,a]=O.useState({containerWidth:Jc((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Jc((n=e.style)===null||n===void 0?void 0:n.height)}),s=O.useCallback((c,u)=>{a(d=>{var f=Math.round(c),h=Math.round(u);return d.containerWidth===f&&d.containerHeight===h?d:{containerWidth:f,containerHeight:h}})},[]),l=O.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:d}=c.getBoundingClientRect();s(u,d);var f=v=>{var m=v[0];if(m!=null){var{width:g,height:y}=m.contentRect;s(g,y)}},h=new ResizeObserver(f);h.observe(c),o.current=h}},[t,s]);return O.useEffect(()=>()=>{var c=o.current;c?.disconnect()},[s]),p.createElement(p.Fragment,null,p.createElement(hs,{width:i.containerWidth,height:i.containerHeight}),p.createElement("div",In({ref:l},e)))}),Jre=O.forwardRef((e,t)=>{var{width:r,height:n}=e,[o,i]=O.useState({containerWidth:Jc(r),containerHeight:Jc(n)}),a=O.useCallback((l,c)=>{i(u=>{var d=Math.round(l),f=Math.round(c);return u.containerWidth===d&&u.containerHeight===f?u:{containerWidth:d,containerHeight:f}})},[]),s=O.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();a(c,u)}},[t,a]);return p.createElement(p.Fragment,null,p.createElement(hs,{width:o.containerWidth,height:o.containerHeight}),p.createElement("div",In({ref:s},e)))}),ene=O.forwardRef((e,t)=>{var{width:r,height:n}=e;return p.createElement(p.Fragment,null,p.createElement(hs,{width:r,height:n}),p.createElement("div",In({ref:t},e)))}),tne=O.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?p.createElement(Jre,In({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?p.createElement(ene,In({},e,{width:r,height:n,ref:t})):p.createElement(p.Fragment,null,p.createElement(hs,{width:r,height:n}),p.createElement("div",In({ref:t},e)))});function rne(e){return e?Qre:tne}var nne=O.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:f,onTouchEnd:h,onTouchMove:v,onTouchStart:m,style:g,width:y,responsive:w,dispatchTouchEvents:x=!0}=e,S=O.useRef(null),P=Ne(),[C,E]=O.useState(null),[A,T]=O.useState(null),M=Hre(),D=Hv(),k=D?.width>0?D.width:y,_=D?.height>0?D.height:o,I=O.useCallback($=>{M($),typeof t=="function"&&t($),E($),T($),$!=null&&(S.current=$)},[M,t,E,T]),z=O.useCallback($=>{P(g_($)),P(rr({handler:i,reactEvent:$}))},[P,i]),B=O.useCallback($=>{P(vm($)),P(rr({handler:c,reactEvent:$}))},[P,c]),V=O.useCallback($=>{P(eD()),P(rr({handler:u,reactEvent:$}))},[P,u]),j=O.useCallback($=>{P(vm($)),P(rr({handler:d,reactEvent:$}))},[P,d]),L=O.useCallback(()=>{P(P_())},[P]),H=O.useCallback($=>{P(S_($.key))},[P]),te=O.useCallback($=>{P(rr({handler:a,reactEvent:$}))},[P,a]),le=O.useCallback($=>{P(rr({handler:s,reactEvent:$}))},[P,s]),ae=O.useCallback($=>{P(rr({handler:l,reactEvent:$}))},[P,l]),oe=O.useCallback($=>{P(rr({handler:f,reactEvent:$}))},[P,f]),Se=O.useCallback($=>{P(rr({handler:m,reactEvent:$}))},[P,m]),Me=O.useCallback($=>{x&&P(O_($)),P(rr({handler:v,reactEvent:$}))},[P,x,v]),K=O.useCallback($=>{P(rr({handler:h,reactEvent:$}))},[P,h]),fe=rne(w);return p.createElement(wD.Provider,{value:C},p.createElement(TA.Provider,{value:A},p.createElement(fe,{width:k??g?.width,height:_??g?.height,className:ve("recharts-wrapper",n),style:Gre({position:"relative",cursor:"default",width:k,height:_},g),onClick:z,onContextMenu:te,onDoubleClick:le,onFocus:L,onKeyDown:H,onMouseDown:ae,onMouseEnter:B,onMouseLeave:V,onMouseMove:j,onMouseUp:oe,onTouchEnd:K,onTouchMove:Me,onTouchStart:Se,ref:I},p.createElement(Zre,null),r)))}),one=["width","height","responsive","children","className","style","compact","title","desc"];function ine(e,t){if(e==null)return{};var r,n,o=ane(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 ane(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 k_=O.forwardRef((e,t)=>{var{width:r,height:n,responsive:o,children:i,className:a,style:s,compact:l,title:c,desc:u}=e,d=ine(e,one),f=Zt(d);return l?p.createElement(p.Fragment,null,p.createElement(hs,{width:r,height:n}),p.createElement(NC,{otherAttributes:f,title:c,desc:u},i)):p.createElement(nne,{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},p.createElement(NC,{otherAttributes:f,title:c,desc:u,ref:t},p.createElement(bJ,null,i)))});function gm(){return gm=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},gm.apply(null,arguments)}var sne={top:5,right:5,bottom:5,left:5},lne={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:sne,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},D_=O.forwardRef(function(t,r){var n,o=et(t.categoricalChartProps,lne),{chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,categoricalChartProps:c}=t,u={chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,eventEmitter:void 0};return p.createElement(A_,{preloadedState:{options:u},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:i},p.createElement(XD,{chartData:c.data}),p.createElement(T_,{layout:o.layout,margin:o.margin}),p.createElement(M_,{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}),p.createElement(k_,gm({},o,{ref:r})))}),cne=["axis"],une=O.forwardRef((e,t)=>p.createElement(D_,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:cne,tooltipPayloadSearcher:uy,categoricalChartProps:e,ref:t})),dne=["axis","item"],fne=O.forwardRef((e,t)=>p.createElement(D_,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:dne,tooltipPayloadSearcher:uy,categoricalChartProps:e,ref:t}));function pne(e){var t=Ne();return O.useEffect(()=>{t(Nre(e))},[t,e]),null}var hne=["layout"];function ym(){return ym=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},ym.apply(null,arguments)}function mne(e,t){if(e==null)return{};var r,n,o=vne(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 vne(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 gne={top:5,right:5,bottom:5,left:5},__={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:gne,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},yne=O.forwardRef(function(t,r){var n,o=et(t.categoricalChartProps,__),{layout:i}=o,a=mne(o,hne),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=t,d={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return p.createElement(A_,{preloadedState:{options:d},reduxStoreName:(n=o.id)!==null&&n!==void 0?n:s},p.createElement(XD,{chartData:o.data}),p.createElement(T_,{layout:i,margin:o.margin}),p.createElement(M_,{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}),p.createElement(pne,{cx:o.cx,cy:o.cy,startAngle:o.startAngle,endAngle:o.endAngle,innerRadius:o.innerRadius,outerRadius:o.outerRadius}),p.createElement(k_,ym({},a,{ref:r})))});function RC(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 IC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RC(Object(r),!0).forEach(function(n){bne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bne(e,t,r){return(t=wne(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wne(e){var t=xne(e,"string");return typeof t=="symbol"?t:t+""}function xne(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 Sne=["item"],Pne=IC(IC({},__),{},{layout:"centric",startAngle:0,endAngle:360}),Cne=O.forwardRef((e,t)=>{var r=et(e,Pne);return p.createElement(yne,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:Sne,tooltipPayloadSearcher:uy,categoricalChartProps:r,ref:t})});const N_=ne("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Ml=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],j_=p.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",...f},h)=>{const v=p.useMemo(()=>{if(n)return n;const g=r[0];return g?Object.keys(g).filter(w=>w!=="label"&&typeof g[w]=="number").map((w,x)=>({key:w,name:w.charAt(0).toUpperCase()+w.slice(1),color:Ml[x%Ml.length]})):[]},[r,n]),m=d==="vertical";return b.jsx("div",{ref:h,className:N(N_({size:t,className:e})),role:"img",...f,children:b.jsx(Gv,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:b.jsxs(fne,{data:r,layout:d,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&b.jsx(Ey,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!m,horizontal:m}),m?b.jsxs(b.Fragment,{children:[b.jsx(Xc,{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}),b.jsx(Zc,{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})]}):b.jsxs(b.Fragment,{children:[b.jsx(Xc,{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}),b.jsx(Zc,{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&&b.jsx(dy,{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&&b.jsx(Hu,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:g=>b.jsx("span",{style:{color:"var(--color-secondary)"},children:g})}),v.map((g,y)=>b.jsx(m_,{dataKey:g.key,name:g.name,fill:g.color||Ml[y%Ml.length],radius:c,stackId:u?"stack":void 0},g.key))]})})})});j_.displayName="BarChart";const R_=ne("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"}}),bm=ne("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}}),I_=p.forwardRef(({className:e,size:t,separator:r=b.jsx(_y,{}),children:n,...o},i)=>{const a=p.Children.toArray(n).filter(p.isValidElement);return b.jsx("nav",{ref:i,"aria-label":"Breadcrumb",...o,children:b.jsx("ol",{className:N(R_({size:t,className:e})),children:a.map((s,l)=>b.jsxs("li",{className:"inline-flex items-center gap-2",children:[s,l<a.length-1&&r]},l))})})});I_.displayName="Breadcrumbs";const L_=p.forwardRef(({className:e,asChild:t=!1,isCurrentPage:r=!1,...n},o)=>{if(r)return b.jsx("span",{className:N(bm({isCurrentPage:!0,className:e})),"aria-current":"page",children:n.children});const i=t?Re:"a";return b.jsx(i,{ref:o,className:N(bm({isCurrentPage:!1,className:e})),...n})});L_.displayName="BreadcrumbItem";const _y=p.forwardRef(({className:e,children:t,...r},n)=>b.jsx("span",{ref:n,role:"presentation","aria-hidden":"true",className:N("text-tertiary",e),...r,children:t??b.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:b.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}));_y.displayName="BreadcrumbSeparator";function One(e,t,r="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:r}).format(t).split(/\s/g).slice(2).join(" ")}const Ene={},xa={};function go(e,t){try{const n=(Ene[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return n in xa?xa[n]:LC(n,n.split(":"))}catch{if(e in xa)return xa[e];const r=e?.match(Ane);return r?LC(e,r.slice(1)):NaN}}const Ane=/([+-]\d\d):?(\d\d)?/;function LC(e,t){const r=+(t[0]||0),n=+(t[1]||0),o=+(t[2]||0)/60;return xa[e]=r*60+n>0?r*60+n+o:r*60-n-o}class Rr extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(go(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),$_(this),wm(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new Rr(...r,t):new Rr(Date.now(),t)}withTimeZone(t){return new Rr(+this,t)}getTimezoneOffset(){const t=-go(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),wm(this),+this}[Symbol.for("constructDateFrom")](t){return new Rr(+new Date(t),this.timeZone)}}const $C=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!$C.test(e))return;const t=e.replace($C,"$1UTC");Rr.prototype[t]&&(e.startsWith("get")?Rr.prototype[e]=function(){return this.internal[t]()}:(Rr.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Tne(this),+this},Rr.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),wm(this),+this}))});function wm(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-go(e.timeZone,e)*60))}function Tne(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),$_(e)}function $_(e){const t=go(e.timeZone,e),r=t>0?Math.floor(t):Math.ceil(t),n=new Date(+e);n.setUTCHours(n.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),i=-new Date(+n).getTimezoneOffset(),a=o-i,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const l=o-r;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const c=new Date(+e);c.setUTCSeconds(0);const u=o>0?c.getSeconds():(c.getSeconds()-60)%60,d=Math.round(-(go(e.timeZone,e)*60))%60;(d||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+d+u));const f=go(e.timeZone,e),h=f>0?Math.floor(f):Math.ceil(f),m=-new Date(+e).getTimezoneOffset()-h,g=h!==r,y=m-l;if(g&&y){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+y);const w=go(e.timeZone,e),x=w>0?Math.floor(w):Math.ceil(w),S=h-x;S&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+S),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+S))}}class St extends Rr{static tz(t,...r){return r.length?new St(...r,t):new St(Date.now(),t)}toISOString(){const[t,r,n]=this.tzComponents(),o=`${t}${r}:${n}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,r,n,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${n} ${r} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[r,n,o]=this.tzComponents();return`${t} GMT${r}${n}${o} (${One(this.timeZone,this)})`}toLocaleString(t,r){return Date.prototype.toLocaleString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(t,r){return Date.prototype.toLocaleDateString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(t,r){return Date.prototype.toLocaleTimeString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),r=t>0?"-":"+",n=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[r,n,o]}withTimeZone(t){return new St(+this,t)}[Symbol.for("constructDateFrom")](t){return new St(+new Date(t),this.timeZone)}}const F_=6048e5,Mne=864e5,FC=Symbol.for("constructDateFrom");function Je(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&FC in e?e[FC](t):e instanceof Date?new e.constructor(t):new Date(t)}function Te(e,t){return Je(t||e,e)}function V_(e,t,r){const n=Te(e,r?.in);return isNaN(t)?Je(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function B_(e,t,r){const n=Te(e,r?.in);if(isNaN(t))return Je(e,NaN);if(!t)return n;const o=n.getDate(),i=Je(e,n.getTime());i.setMonth(n.getMonth()+t+1,0);const a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}let kne={};function Ds(){return kne}function Mi(e,t){const r=Ds(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Te(e,t?.in),i=o.getDay(),a=(i<n?7:0)+i-n;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Ha(e,t){return Mi(e,{...t,weekStartsOn:1})}function W_(e,t){const r=Te(e,t?.in),n=r.getFullYear(),o=Je(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const i=Ha(o),a=Je(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=Ha(a);return r.getTime()>=i.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function VC(e){const t=Te(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Yi(e,...t){const r=Je.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Ga(e,t){const r=Te(e,t?.in);return r.setHours(0,0,0,0),r}function Ny(e,t,r){const[n,o]=Yi(r?.in,e,t),i=Ga(n),a=Ga(o),s=+i-VC(i),l=+a-VC(a);return Math.round((s-l)/Mne)}function Dne(e,t){const r=W_(e,t),n=Je(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ha(n)}function _ne(e,t,r){return V_(e,t*7,r)}function Nne(e,t,r){return B_(e,t*12,r)}function jne(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=Je.bind(null,o));const i=Te(o,n);(!r||r<i||isNaN(+i))&&(r=i)}),Je(n,r||NaN)}function Rne(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=Je.bind(null,o));const i=Te(o,n);(!r||r>i||isNaN(+i))&&(r=i)}),Je(n,r||NaN)}function Ine(e,t,r){const[n,o]=Yi(r?.in,e,t);return+Ga(n)==+Ga(o)}function z_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Lne(e){return!(!z_(e)&&typeof e!="number"||isNaN(+Te(e)))}function K_(e,t,r){const[n,o]=Yi(r?.in,e,t),i=n.getFullYear()-o.getFullYear(),a=n.getMonth()-o.getMonth();return i*12+a}function $ne(e,t){const r=Te(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function U_(e,t){const[r,n]=Yi(e,t.start,t.end);return{start:r,end:n}}function Fne(e,t){const{start:r,end:n}=U_(t?.in,e);let o=+r>+n;const i=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setDate(1);let s=1;const l=[];for(;+a<=i;)l.push(Je(r,a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}function Vne(e,t){const r=Te(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Bne(e,t){const r=Te(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}function H_(e,t){const r=Te(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Wne(e,t){const{start:r,end:n}=U_(t?.in,e);let o=+r>+n;const i=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setMonth(0,1);let s=1;const l=[];for(;+a<=i;)l.push(Je(r,a)),a.setFullYear(a.getFullYear()+s);return o?l.reverse():l}function G_(e,t){const r=Ds(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Te(e,t?.in),i=o.getDay(),a=(i<n?-7:0)+6-(i-n);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function zne(e,t){return G_(e,{...t,weekStartsOn:1})}const Kne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Une=(e,t,r)=>{let n;const o=Kne[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Bp(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Hne={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gne={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qne={date:Bp({formats:Hne,defaultWidth:"full"}),time:Bp({formats:Gne,defaultWidth:"full"}),dateTime:Bp({formats:Yne,defaultWidth:"full"})},Xne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zne=(e,t,r,n)=>Xne[e];function ha(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=r?.width?String(r.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=r?.width?String(r.width):e.defaultWidth;o=e.values[s]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const Qne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Jne={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},eoe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},toe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},roe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},noe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ooe=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ioe={ordinalNumber:ooe,era:ha({values:Qne,defaultWidth:"wide"}),quarter:ha({values:Jne,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ha({values:eoe,defaultWidth:"wide"}),day:ha({values:toe,defaultWidth:"wide"}),dayPeriod:ha({values:roe,defaultWidth:"wide",formattingValues:noe,defaultFormattingWidth:"wide"})};function ma(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?soe(s,d=>d.test(a)):aoe(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function aoe(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function soe(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function loe(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;const s=t.slice(o.length);return{value:a,rest:s}}}const coe=/^(\d+)(th|st|nd|rd)?/i,uoe=/\d+/i,doe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},foe={any:[/^b/i,/^(a|c)/i]},poe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hoe={any:[/1/i,/2/i,/3/i,/4/i]},moe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},voe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},goe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yoe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},boe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},woe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xoe={ordinalNumber:loe({matchPattern:coe,parsePattern:uoe,valueCallback:e=>parseInt(e,10)}),era:ma({matchPatterns:doe,defaultMatchWidth:"wide",parsePatterns:foe,defaultParseWidth:"any"}),quarter:ma({matchPatterns:poe,defaultMatchWidth:"wide",parsePatterns:hoe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ma({matchPatterns:moe,defaultMatchWidth:"wide",parsePatterns:voe,defaultParseWidth:"any"}),day:ma({matchPatterns:goe,defaultMatchWidth:"wide",parsePatterns:yoe,defaultParseWidth:"any"}),dayPeriod:ma({matchPatterns:boe,defaultMatchWidth:"any",parsePatterns:woe,defaultParseWidth:"any"})},ii={code:"en-US",formatDistance:Une,formatLong:qne,formatRelative:Zne,localize:ioe,match:xoe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Soe(e,t){const r=Te(e,t?.in);return Ny(r,H_(r))+1}function jy(e,t){const r=Te(e,t?.in),n=+Ha(r)-+Dne(r);return Math.round(n/F_)+1}function Y_(e,t){const r=Te(e,t?.in),n=r.getFullYear(),o=Ds(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Je(t?.in||e,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);const s=Mi(a,t),l=Je(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const c=Mi(l,t);return+r>=+s?n+1:+r>=+c?n:n-1}function Poe(e,t){const r=Ds(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Y_(e,t),i=Je(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Mi(i,t)}function Ry(e,t){const r=Te(e,t?.in),n=+Mi(r,t)-+Poe(r,t);return Math.round(n/F_)+1}function Pe(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const En={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Pe(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):Pe(r+1,2)},d(e,t){return Pe(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Pe(e.getHours()%12||12,t.length)},H(e,t){return Pe(e.getHours(),t.length)},m(e,t){return Pe(e.getMinutes(),t.length)},s(e,t){return Pe(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return Pe(o,t.length)}},ni={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},BC={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return En.y(e,t)},Y:function(e,t,r,n){const o=Y_(e,n),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return Pe(a,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):Pe(i,t.length)},R:function(e,t){const r=W_(e);return Pe(r,t.length)},u:function(e,t){const r=e.getFullYear();return Pe(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Pe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Pe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return En.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Pe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=Ry(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):Pe(o,t.length)},I:function(e,t,r){const n=jy(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):Pe(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):En.d(e,t)},D:function(e,t,r){const n=Soe(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):Pe(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Pe(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Pe(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return Pe(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=ni.noon:n===0?o=ni.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=ni.evening:n>=12?o=ni.afternoon:n>=4?o=ni.morning:o=ni.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return En.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):En.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):Pe(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):Pe(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):En.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):En.s(e,t)},S:function(e,t){return En.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return zC(n);case"XXXX":case"XX":return co(n);default:return co(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return zC(n);case"xxxx":case"xx":return co(n);default:return co(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+WC(n,":");default:return"GMT"+co(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+WC(n,":");default:return"GMT"+co(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return Pe(n,t.length)},T:function(e,t,r){return Pe(+e,t.length)}};function WC(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return i===0?r+String(o):r+String(o)+t+Pe(i,2)}function zC(e,t){return e%60===0?(e>0?"-":"+")+Pe(Math.abs(e)/60,2):co(e,t)}function co(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Pe(Math.trunc(n/60),2),i=Pe(n%60,2);return r+o+t+i}const KC=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},q_=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Coe=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return KC(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",KC(n,t)).replace("{{time}}",q_(o,t))},Ooe={p:q_,P:Coe},Eoe=/^D+$/,Aoe=/^Y+$/,Toe=["D","DD","YY","YYYY"];function Moe(e){return Eoe.test(e)}function koe(e){return Aoe.test(e)}function Doe(e,t,r){const n=_oe(e,t,r);if(console.warn(n),Toe.includes(e))throw new RangeError(n)}function _oe(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Noe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,joe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Roe=/^'([^]*?)'?$/,Ioe=/''/g,Loe=/[a-zA-Z]/;function Sa(e,t,r){const n=Ds(),o=r?.locale??n.locale??ii,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Te(e,r?.in);if(!Lne(s))throw new RangeError("Invalid time value");let l=t.match(joe).map(u=>{const d=u[0];if(d==="p"||d==="P"){const f=Ooe[d];return f(u,o.formatLong)}return u}).join("").match(Noe).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const d=u[0];if(d==="'")return{isToken:!1,value:$oe(u)};if(BC[d])return{isToken:!0,value:u};if(d.match(Loe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(u=>{if(!u.isToken)return u.value;const d=u.value;(!r?.useAdditionalWeekYearTokens&&koe(d)||!r?.useAdditionalDayOfYearTokens&&Moe(d))&&Doe(d,t,String(e));const f=BC[d[0]];return f(s,d,o.localize,c)}).join("")}function $oe(e){const t=e.match(Roe);return t?t[1].replace(Ioe,"'"):e}function Foe(e,t){const r=Te(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=Je(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}function Voe(e,t){return Te(e,t?.in).getMonth()}function Boe(e,t){return Te(e,t?.in).getFullYear()}function Woe(e,t){return+Te(e)>+Te(t)}function zoe(e,t){return+Te(e)<+Te(t)}function Koe(e,t,r){const[n,o]=Yi(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function Uoe(e,t,r){const[n,o]=Yi(r?.in,e,t);return n.getFullYear()===o.getFullYear()}function Hoe(e,t,r){const n=Te(e,r?.in),o=n.getFullYear(),i=n.getDate(),a=Je(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const s=Foe(a);return n.setMonth(t,Math.min(i,s)),n}function Goe(e,t,r){const n=Te(e,r?.in);return isNaN(+n)?Je(e,NaN):(n.setFullYear(t),n)}const UC=5,Yoe=4;function qoe(e,t){const r=t.startOfMonth(e),n=r.getDay()>0?r.getDay():7,o=t.addDays(e,-n+1),i=t.addDays(o,UC*7-1);return t.getMonth(e)===t.getMonth(i)?UC:Yoe}function X_(e,t){const r=t.startOfMonth(e),n=r.getDay();return n===1?r:n===0?t.addDays(r,-6):t.addDays(r,-1*(n-1))}function Xoe(e,t){const r=X_(e,t),n=qoe(e,t);return t.addDays(r,n*7-1)}const Z_={...ii,labels:{labelDayButton:(e,t,r,n)=>{let o;n&&typeof n.format=="function"?o=n.format.bind(n):o=(a,s)=>Sa(a,s,{locale:ii,...r});let i=o(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,r)=>{let n;return r&&typeof r.format=="function"?n=r.format.bind(r):n=(o,i)=>Sa(o,i,{locale:ii,...t}),n(e,"LLLL yyyy")},labelGridcell:(e,t,r,n)=>{let o;n&&typeof n.format=="function"?o=n.format.bind(n):o=(a,s)=>Sa(a,s,{locale:ii,...r});let i=o(e,"PPPP");return t?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,r)=>{let n;return r&&typeof r.format=="function"?n=r.format.bind(r):n=(o,i)=>Sa(o,i,{locale:ii,...t}),n(e,"cccc")}}};class Jt{constructor(t,r){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?St.tz(this.options.timeZone):new this.Date,this.newDate=(n,o,i)=>this.overrides?.newDate?this.overrides.newDate(n,o,i):this.options.timeZone?new St(n,o,i,this.options.timeZone):new Date(n,o,i),this.addDays=(n,o)=>this.overrides?.addDays?this.overrides.addDays(n,o):V_(n,o),this.addMonths=(n,o)=>this.overrides?.addMonths?this.overrides.addMonths(n,o):B_(n,o),this.addWeeks=(n,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(n,o):_ne(n,o),this.addYears=(n,o)=>this.overrides?.addYears?this.overrides.addYears(n,o):Nne(n,o),this.differenceInCalendarDays=(n,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(n,o):Ny(n,o),this.differenceInCalendarMonths=(n,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(n,o):K_(n,o),this.eachMonthOfInterval=n=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(n):Fne(n),this.eachYearOfInterval=n=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(n):Wne(n),i=new Set(o.map(s=>this.getYear(s)));if(i.size===o.length)return o;const a=[];return i.forEach(s=>{a.push(new Date(s,0,1))}),a},this.endOfBroadcastWeek=n=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(n):Xoe(n,this),this.endOfISOWeek=n=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(n):zne(n),this.endOfMonth=n=>this.overrides?.endOfMonth?this.overrides.endOfMonth(n):$ne(n),this.endOfWeek=(n,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(n,o):G_(n,this.options),this.endOfYear=n=>this.overrides?.endOfYear?this.overrides.endOfYear(n):Bne(n),this.format=(n,o,i)=>{const a=this.overrides?.format?this.overrides.format(n,o,this.options):Sa(n,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=n=>this.overrides?.getISOWeek?this.overrides.getISOWeek(n):jy(n),this.getMonth=(n,o)=>this.overrides?.getMonth?this.overrides.getMonth(n,this.options):Voe(n,this.options),this.getYear=(n,o)=>this.overrides?.getYear?this.overrides.getYear(n,this.options):Boe(n,this.options),this.getWeek=(n,o)=>this.overrides?.getWeek?this.overrides.getWeek(n,this.options):Ry(n,this.options),this.isAfter=(n,o)=>this.overrides?.isAfter?this.overrides.isAfter(n,o):Woe(n,o),this.isBefore=(n,o)=>this.overrides?.isBefore?this.overrides.isBefore(n,o):zoe(n,o),this.isDate=n=>this.overrides?.isDate?this.overrides.isDate(n):z_(n),this.isSameDay=(n,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(n,o):Ine(n,o),this.isSameMonth=(n,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(n,o):Koe(n,o),this.isSameYear=(n,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(n,o):Uoe(n,o),this.max=n=>this.overrides?.max?this.overrides.max(n):jne(n),this.min=n=>this.overrides?.min?this.overrides.min(n):Rne(n),this.setMonth=(n,o)=>this.overrides?.setMonth?this.overrides.setMonth(n,o):Hoe(n,o),this.setYear=(n,o)=>this.overrides?.setYear?this.overrides.setYear(n,o):Goe(n,o),this.startOfBroadcastWeek=(n,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(n,this):X_(n,this),this.startOfDay=n=>this.overrides?.startOfDay?this.overrides.startOfDay(n):Ga(n),this.startOfISOWeek=n=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(n):Ha(n),this.startOfMonth=n=>this.overrides?.startOfMonth?this.overrides.startOfMonth(n):Vne(n),this.startOfWeek=(n,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(n,this.options):Mi(n,this.options),this.startOfYear=n=>this.overrides?.startOfYear?this.overrides.startOfYear(n):H_(n),this.options={locale:Z_,...t},this.overrides=r}getDigitMap(){const{numerals:t="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:t}),n={};for(let o=0;o<10;o++)n[o.toString()]=r.format(o);return n}replaceDigits(t){const r=this.getDigitMap();return t.replace(/\d/g,n=>r[n]||n)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&Jt.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:r,timeZone:n,numerals:o}=this.options,i=r?.code;if(i&&Jt.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:n,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}Jt.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Gr=new Jt;class Q_{constructor(t,r,n=Gr){this.date=t,this.displayMonth=r,this.outside=!!(r&&!n.isSameMonth(t,r)),this.dateLib=n,this.isoDate=n.format(t,"yyyy-MM-dd"),this.displayMonthId=n.format(r,"yyyy-MM"),this.dateMonthId=n.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class Zoe{constructor(t,r){this.date=t,this.weeks=r}}class Qoe{constructor(t,r){this.days=r,this.weekNumber=t}}function Joe(e){return O.createElement("button",{...e})}function eie(e){return O.createElement("span",{...e})}function tie(e){const{size:t=24,orientation:r="left",className:n}=e;return O.createElement("svg",{className:n,width:t,height:t,viewBox:"0 0 24 24"},r==="up"&&O.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),r==="down"&&O.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),r==="left"&&O.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),r==="right"&&O.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function rie(e){const{day:t,modifiers:r,...n}=e;return O.createElement("td",{...n})}function nie(e){const{day:t,modifiers:r,...n}=e,o=O.useRef(null);return O.useEffect(()=>{r.focused&&o.current?.focus()},[r.focused]),O.createElement("button",{ref:o,...n})}var re;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(re||(re={}));var Ve;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Ve||(Ve={}));var yr;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(yr||(yr={}));var Ut;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Ut||(Ut={}));function oie(e){const{options:t,className:r,components:n,classNames:o,...i}=e,a=[o[re.Dropdown],r].join(" "),s=t?.find(({value:l})=>l===i.value);return O.createElement("span",{"data-disabled":i.disabled,className:o[re.DropdownRoot]},O.createElement(n.Select,{className:a,...i},t?.map(({value:l,label:c,disabled:u})=>O.createElement(n.Option,{key:l,value:l,disabled:u},c))),O.createElement("span",{className:o[re.CaptionLabel],"aria-hidden":!0},s?.label,O.createElement(n.Chevron,{orientation:"down",size:18,className:o[re.Chevron]})))}function iie(e){return O.createElement("div",{...e})}function aie(e){return O.createElement("div",{...e})}function sie(e){const{calendarMonth:t,displayIndex:r,...n}=e;return O.createElement("div",{...n},e.children)}function lie(e){const{calendarMonth:t,displayIndex:r,...n}=e;return O.createElement("div",{...n})}function cie(e){return O.createElement("table",{...e})}function uie(e){return O.createElement("div",{...e})}const J_=O.createContext(void 0);function _s(){const e=O.useContext(J_);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function die(e){const{components:t}=_s();return O.createElement(t.Dropdown,{...e})}function fie(e){const{onPreviousClick:t,onNextClick:r,previousMonth:n,nextMonth:o,...i}=e,{components:a,classNames:s,labels:{labelPrevious:l,labelNext:c}}=_s(),u=O.useCallback(f=>{o&&r?.(f)},[o,r]),d=O.useCallback(f=>{n&&t?.(f)},[n,t]);return O.createElement("nav",{...i},O.createElement(a.PreviousMonthButton,{type:"button",className:s[re.PreviousMonthButton],tabIndex:n?void 0:-1,"aria-disabled":n?void 0:!0,"aria-label":l(n),onClick:d},O.createElement(a.Chevron,{disabled:n?void 0:!0,className:s[re.Chevron],orientation:"left"})),O.createElement(a.NextMonthButton,{type:"button",className:s[re.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":c(o),onClick:u},O.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[re.Chevron]})))}function pie(e){const{components:t}=_s();return O.createElement(t.Button,{...e})}function hie(e){return O.createElement("option",{...e})}function mie(e){const{components:t}=_s();return O.createElement(t.Button,{...e})}function vie(e){const{rootRef:t,...r}=e;return O.createElement("div",{...r,ref:t})}function gie(e){return O.createElement("select",{...e})}function yie(e){const{week:t,...r}=e;return O.createElement("tr",{...r})}function bie(e){return O.createElement("th",{...e})}function wie(e){return O.createElement("thead",{"aria-hidden":!0},O.createElement("tr",{...e}))}function xie(e){const{week:t,...r}=e;return O.createElement("th",{...r})}function Sie(e){return O.createElement("th",{...e})}function Pie(e){return O.createElement("tbody",{...e})}function Cie(e){const{components:t}=_s();return O.createElement(t.Dropdown,{...e})}const Oie=Object.freeze(Object.defineProperty({__proto__:null,Button:Joe,CaptionLabel:eie,Chevron:tie,Day:rie,DayButton:nie,Dropdown:oie,DropdownNav:iie,Footer:aie,Month:sie,MonthCaption:lie,MonthGrid:cie,Months:uie,MonthsDropdown:die,Nav:fie,NextMonthButton:pie,Option:hie,PreviousMonthButton:mie,Root:vie,Select:gie,Week:yie,WeekNumber:xie,WeekNumberHeader:Sie,Weekday:bie,Weekdays:wie,Weeks:Pie,YearsDropdown:Cie},Symbol.toStringTag,{value:"Module"}));function en(e,t,r=!1,n=Gr){let{from:o,to:i}=e;const{differenceInCalendarDays:a,isSameDay:s}=n;return o&&i?(a(i,o)<0&&([o,i]=[i,o]),a(t,o)>=(r?1:0)&&a(i,t)>=(r?1:0)):!r&&i?s(i,t):!r&&o?s(o,t):!1}function Iy(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function yd(e){return!!(e&&typeof e=="object"&&"from"in e)}function Ly(e){return!!(e&&typeof e=="object"&&"after"in e)}function $y(e){return!!(e&&typeof e=="object"&&"before"in e)}function eN(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function tN(e,t){return Array.isArray(e)&&e.every(t.isDate)}function tn(e,t,r=Gr){const n=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:i,isAfter:a}=r;return n.some(s=>{if(typeof s=="boolean")return s;if(r.isDate(s))return o(e,s);if(tN(s,r))return s.some(l=>o(e,l));if(yd(s))return en(s,e,!1,r);if(eN(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(e.getDay()):s.dayOfWeek===e.getDay();if(Iy(s)){const l=i(s.before,e),c=i(s.after,e),u=l>0,d=c<0;return a(s.before,s.after)?d&&u:u||d}return Ly(s)?i(e,s.after)>0:$y(s)?i(s.before,e)>0:typeof s=="function"?s(e):!1})}function Eie(e,t,r,n,o){const{disabled:i,hidden:a,modifiers:s,showOutsideDays:l,broadcastCalendar:c,today:u=o.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:h,isBefore:v,endOfMonth:m,isAfter:g}=o,y=r&&h(r),w=n&&m(n),x={[Ve.focused]:[],[Ve.outside]:[],[Ve.disabled]:[],[Ve.hidden]:[],[Ve.today]:[]},S={};for(const P of e){const{date:C,displayMonth:E}=P,A=!!(E&&!f(C,E)),T=!!(y&&v(C,y)),M=!!(w&&g(C,w)),D=!!(i&&tn(C,i,o)),k=!!(a&&tn(C,a,o))||T||M||!c&&!l&&A||c&&l===!1&&A,_=d(C,u);A&&x.outside.push(P),D&&x.disabled.push(P),k&&x.hidden.push(P),_&&x.today.push(P),s&&Object.keys(s).forEach(I=>{const z=s?.[I];z&&tn(C,z,o)&&(S[I]?S[I].push(P):S[I]=[P])})}return P=>{const C={[Ve.focused]:!1,[Ve.disabled]:!1,[Ve.hidden]:!1,[Ve.outside]:!1,[Ve.today]:!1},E={};for(const A in x){const T=x[A];C[A]=T.some(M=>M===P)}for(const A in S)E[A]=S[A].some(T=>T===P);return{...C,...E}}}function Aie(e,t,r={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[i])=>(r[i]?o.push(r[i]):t[Ve[i]]?o.push(t[Ve[i]]):t[yr[i]]&&o.push(t[yr[i]]),o),[t[re.Day]])}function Tie(e){return{...Oie,...e}}function Mie(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([r,n])=>{r.startsWith("data-")&&(t[r]=n)}),t}function rN(){const e={};for(const t in re)e[re[t]]=`rdp-${re[t]}`;for(const t in Ve)e[Ve[t]]=`rdp-${Ve[t]}`;for(const t in yr)e[yr[t]]=`rdp-${yr[t]}`;for(const t in Ut)e[Ut[t]]=`rdp-${Ut[t]}`;return e}function nN(e,t,r){return(r??new Jt(t)).formatMonthYear(e)}const kie=nN;function Die(e,t,r){return(r??new Jt(t)).format(e,"d")}function _ie(e,t=Gr){return t.format(e,"LLLL")}function Nie(e,t,r){return(r??new Jt(t)).format(e,"cccccc")}function jie(e,t=Gr){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Rie(){return""}function oN(e,t=Gr){return t.format(e,"yyyy")}const Iie=oN,Lie=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:nN,formatDay:Die,formatMonthCaption:kie,formatMonthDropdown:_ie,formatWeekNumber:jie,formatWeekNumberHeader:Rie,formatWeekdayName:Nie,formatYearCaption:Iie,formatYearDropdown:oN},Symbol.toStringTag,{value:"Module"}));function $ie(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Lie,...e}}function Fy(e,t,r,n){let o=(n??new Jt(r)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Fie=Fy;function Vy(e,t,r){return(r??new Jt(t)).formatMonthYear(e)}const Vie=Vy;function iN(e,t,r,n){let o=(n??new Jt(r)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function aN(e){return"Choose the Month"}function sN(){return""}const Bie="Go to the Next Month";function lN(e,t){return Bie}function cN(e){return"Go to the Previous Month"}function uN(e,t,r){return(r??new Jt(t)).format(e,"cccc")}function dN(e,t){return`Week ${e}`}function fN(e){return"Week Number"}function pN(e){return"Choose the Year"}const Wie=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Vie,labelDay:Fie,labelDayButton:Fy,labelGrid:Vy,labelGridcell:iN,labelMonthDropdown:aN,labelNav:sN,labelNext:lN,labelPrevious:cN,labelWeekNumber:dN,labelWeekNumberHeader:fN,labelWeekday:uN,labelYearDropdown:pN},Symbol.toStringTag,{value:"Module"})),pr=(e,t,r)=>t||(r?typeof r=="function"?r:(...n)=>r:e);function zie(e,t){const r=t.locale?.labels??{};return{...Wie,...e??{},labelDayButton:pr(Fy,e?.labelDayButton,r.labelDayButton),labelMonthDropdown:pr(aN,e?.labelMonthDropdown,r.labelMonthDropdown),labelNext:pr(lN,e?.labelNext,r.labelNext),labelPrevious:pr(cN,e?.labelPrevious,r.labelPrevious),labelWeekNumber:pr(dN,e?.labelWeekNumber,r.labelWeekNumber),labelYearDropdown:pr(pN,e?.labelYearDropdown,r.labelYearDropdown),labelGrid:pr(Vy,e?.labelGrid,r.labelGrid),labelGridcell:pr(iN,e?.labelGridcell,r.labelGridcell),labelNav:pr(sN,e?.labelNav,r.labelNav),labelWeekNumberHeader:pr(fN,e?.labelWeekNumberHeader,r.labelWeekNumberHeader),labelWeekday:pr(uN,e?.labelWeekday,r.labelWeekday)}}function Kie(e,t,r,n,o){const{startOfMonth:i,startOfYear:a,endOfYear:s,eachMonthOfInterval:l,getMonth:c}=o;return l({start:a(e),end:s(e)}).map(f=>{const h=n.formatMonthDropdown(f,o),v=c(f),m=t&&f<i(t)||r&&f>i(r)||!1;return{value:v,label:h,disabled:m}})}function Uie(e,t={},r={}){let n={...t?.[re.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{n={...n,...r?.[o]}}),n}function Hie(e,t,r,n){const o=n??e.today(),i=r?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let s=0;s<7;s++){const l=e.addDays(i,s);a.push(l)}return a}function Gie(e,t,r,n,o=!1){if(!e||!t)return;const{startOfYear:i,endOfYear:a,eachYearOfInterval:s,getYear:l}=n,c=i(e),u=a(t),d=s({start:c,end:u});return o&&d.reverse(),d.map(f=>{const h=r.formatYearDropdown(f,n);return{value:l(f),label:h,disabled:!1}})}function Yie(e,t={}){const{weekStartsOn:r,locale:n}=t,o=r??n?.options?.weekStartsOn??0,i=s=>{const l=typeof s=="number"||typeof s=="string"?new Date(s):s;return new St(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,e)},a=s=>{const l=i(s);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>i(St.tz(e)),newDate:(s,l,c)=>new St(s,l,c,12,0,0,e),startOfDay:s=>i(s),startOfWeek:(s,l)=>{const c=i(s),u=l?.weekStartsOn??o,d=(c.getDay()-u+7)%7;return c.setDate(c.getDate()-d),c},startOfISOWeek:s=>{const l=i(s),c=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-c),l},startOfMonth:s=>{const l=i(s);return l.setDate(1),l},startOfYear:s=>{const l=i(s);return l.setMonth(0,1),l},endOfWeek:(s,l)=>{const c=i(s),f=(((l?.weekStartsOn??o)+6)%7-c.getDay()+7)%7;return c.setDate(c.getDate()+f),c},endOfISOWeek:s=>{const l=i(s),c=(7-l.getDay())%7;return l.setDate(l.getDate()+c),l},endOfMonth:s=>{const l=i(s);return l.setMonth(l.getMonth()+1,0),l},endOfYear:s=>{const l=i(s);return l.setMonth(11,31),l},eachMonthOfInterval:s=>{const l=i(s.start),c=i(s.end),u=[],d=new St(l.getFullYear(),l.getMonth(),1,12,0,0,e),f=c.getFullYear()*12+c.getMonth();for(;d.getFullYear()*12+d.getMonth()<=f;)u.push(new St(d,e)),d.setMonth(d.getMonth()+1,1);return u},addDays:(s,l)=>{const c=i(s);return c.setDate(c.getDate()+l),c},addWeeks:(s,l)=>{const c=i(s);return c.setDate(c.getDate()+l*7),c},addMonths:(s,l)=>{const c=i(s);return c.setMonth(c.getMonth()+l),c},addYears:(s,l)=>{const c=i(s);return c.setFullYear(c.getFullYear()+l),c},eachYearOfInterval:s=>{const l=i(s.start),c=i(s.end),u=[],d=new St(l.getFullYear(),0,1,12,0,0,e);for(;d.getFullYear()<=c.getFullYear();)u.push(new St(d,e)),d.setFullYear(d.getFullYear()+1,0,1);return u},getWeek:(s,l)=>{const c=a(s);return Ry(c,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??n?.options?.firstWeekContainsDate??1})},getISOWeek:s=>{const l=a(s);return jy(l)},differenceInCalendarDays:(s,l)=>{const c=a(s),u=a(l);return Ny(c,u)},differenceInCalendarMonths:(s,l)=>{const c=a(s),u=a(l);return K_(c,u)}}}const Ns=e=>e instanceof HTMLElement?e:null,Wp=e=>[...e.querySelectorAll("[data-animated-month]")??[]],qie=e=>Ns(e.querySelector("[data-animated-month]")),zp=e=>Ns(e.querySelector("[data-animated-caption]")),Kp=e=>Ns(e.querySelector("[data-animated-weeks]")),Xie=e=>Ns(e.querySelector("[data-animated-nav]")),Zie=e=>Ns(e.querySelector("[data-animated-weekdays]"));function Qie(e,t,{classNames:r,months:n,focused:o,dateLib:i}){const a=O.useRef(null),s=O.useRef(n),l=O.useRef(!1);O.useLayoutEffect(()=>{const c=s.current;if(s.current=n,!t||!e.current||!(e.current instanceof HTMLElement)||n.length===0||c.length===0||n.length!==c.length)return;const u=i.isSameMonth(n[0].date,c[0].date),d=i.isAfter(n[0].date,c[0].date),f=d?r[Ut.caption_after_enter]:r[Ut.caption_before_enter],h=d?r[Ut.weeks_after_enter]:r[Ut.weeks_before_enter],v=a.current,m=e.current.cloneNode(!0);if(m instanceof HTMLElement?(Wp(m).forEach(x=>{if(!(x instanceof HTMLElement))return;const S=qie(x);S&&x.contains(S)&&x.removeChild(S);const P=zp(x);P&&P.classList.remove(f);const C=Kp(x);C&&C.classList.remove(h)}),a.current=m):a.current=null,l.current||u||o)return;const g=v instanceof HTMLElement?Wp(v):[],y=Wp(e.current);if(y?.every(w=>w instanceof HTMLElement)&&g&&g.every(w=>w instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const w=Xie(e.current);w&&(w.style.zIndex="1"),y.forEach((x,S)=>{const P=g[S];if(!P)return;x.style.position="relative",x.style.overflow="hidden";const C=zp(x);C&&C.classList.add(f);const E=Kp(x);E&&E.classList.add(h);const A=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),w&&(w.style.zIndex=""),C&&C.classList.remove(f),E&&E.classList.remove(h),x.style.position="",x.style.overflow="",x.contains(P)&&x.removeChild(P)};P.style.pointerEvents="none",P.style.position="absolute",P.style.overflow="hidden",P.setAttribute("aria-hidden","true");const T=Zie(P);T&&(T.style.opacity="0");const M=zp(P);M&&(M.classList.add(d?r[Ut.caption_before_exit]:r[Ut.caption_after_exit]),M.addEventListener("animationend",A));const D=Kp(P);D&&D.classList.add(d?r[Ut.weeks_before_exit]:r[Ut.weeks_after_exit]),x.insertBefore(P,x.firstChild)})}})}function Jie(e,t,r,n){const o=e[0],i=e[e.length-1],{ISOWeek:a,fixedWeeks:s,broadcastCalendar:l}=r??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:h,endOfMonth:v,endOfWeek:m,isAfter:g,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:x}=n,S=l?y(o,n):a?w(o):x(o),P=l?f(i):a?h(v(i)):m(v(i)),C=t&&(l?f(t):a?h(t):m(t)),E=C&&g(P,C)?C:P,A=u(E,S),T=d(i,o)+1,M=[];for(let _=0;_<=A;_++){const I=c(S,_);M.push(I)}const k=(l?35:42)*T;if(s&&M.length<k){const _=k-M.length;for(let I=0;I<_;I++){const z=c(M[M.length-1],1);M.push(z)}}return M}function eae(e){const t=[];return e.reduce((r,n)=>{const o=n.weeks.reduce((i,a)=>i.concat(a.days.slice()),t.slice());return r.concat(o.slice())},t.slice())}function tae(e,t,r,n){const{numberOfMonths:o=1}=r,i=[];for(let a=0;a<o;a++){const s=n.addMonths(e,a);if(t&&s>t)break;i.push(s)}return i}function HC(e,t,r,n){const{month:o,defaultMonth:i,today:a=n.today(),numberOfMonths:s=1}=e;let l=o||i||a;const{differenceInCalendarMonths:c,addMonths:u,startOfMonth:d}=n;if(r&&c(r,l)<s-1){const f=-1*(s-1);l=u(r,f)}return t&&c(l,t)<0&&(l=t),d(l)}function rae(e,t,r,n){const{addDays:o,endOfBroadcastWeek:i,endOfISOWeek:a,endOfMonth:s,endOfWeek:l,getISOWeek:c,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:h}=n,v=e.reduce((m,g)=>{const y=r.broadcastCalendar?d(g,n):r.ISOWeek?f(g):h(g),w=r.broadcastCalendar?i(g):r.ISOWeek?a(s(g)):l(s(g)),x=t.filter(E=>E>=y&&E<=w),S=r.broadcastCalendar?35:42;if(r.fixedWeeks&&x.length<S){const E=t.filter(A=>{const T=S-x.length;return A>w&&A<=o(w,T)});x.push(...E)}const P=x.reduce((E,A)=>{const T=r.ISOWeek?c(A):u(A),M=E.find(k=>k.weekNumber===T),D=new Q_(A,g,n);return M?M.days.push(D):E.push(new Qoe(T,[D])),E},[]),C=new Zoe(g,P);return m.push(C),m},[]);return r.reverseMonths?v.reverse():v}function nae(e,t){let{startMonth:r,endMonth:n}=e;const{startOfYear:o,startOfDay:i,startOfMonth:a,endOfMonth:s,addYears:l,endOfYear:c,newDate:u,today:d}=t,{fromYear:f,toYear:h,fromMonth:v,toMonth:m}=e;!r&&v&&(r=v),!r&&f&&(r=t.newDate(f,0,1)),!n&&m&&(n=m),!n&&h&&(n=u(h,11,31));const g=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return r?r=a(r):f?r=u(f,0,1):!r&&g&&(r=o(l(e.today??d(),-100))),n?n=s(n):h?n=u(h,11,31):!n&&g&&(n=c(e.today??d())),[r&&i(r),n&&i(n)]}function oae(e,t,r,n){if(r.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=r,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=n,c=o?i:1,u=a(e);if(!t)return s(u,c);if(!(l(t,e)<i))return s(u,c)}function iae(e,t,r,n){if(r.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i}=r,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=n,c=o?i??1:1,u=a(e);if(!t)return s(u,-c);if(!(l(u,t)<=0))return s(u,-c)}function aae(e){const t=[];return e.reduce((r,n)=>r.concat(n.weeks.slice()),t.slice())}function bd(e,t){const[r,n]=O.useState(e);return[t===void 0?r:t,n]}function sae(e,t){const[r,n]=nae(e,t),{startOfMonth:o,endOfMonth:i}=t,a=HC(e,r,n,t),[s,l]=bd(a,e.month?a:void 0);O.useEffect(()=>{const S=HC(e,r,n,t);l(S)},[e.timeZone]);const{months:c,weeks:u,days:d,previousMonth:f,nextMonth:h}=O.useMemo(()=>{const S=tae(s,n,{numberOfMonths:e.numberOfMonths},t),P=Jie(S,e.endMonth?i(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),C=rae(S,P,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),E=aae(C),A=eae(C),T=iae(s,r,e,t),M=oae(s,n,e,t);return{months:C,weeks:E,days:A,previousMonth:T,nextMonth:M}},[t,s.getTime(),n?.getTime(),r?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:v,onMonthChange:m}=e,g=S=>u.some(P=>P.days.some(C=>C.isEqualTo(S))),y=S=>{if(v)return;let P=o(S);r&&P<o(r)&&(P=o(r)),n&&P>o(n)&&(P=o(n)),l(P),m?.(P)};return{months:c,weeks:u,days:d,navStart:r,navEnd:n,previousMonth:f,nextMonth:h,goToMonth:y,goToDay:S=>{g(S)||y(S.date)}}}var Mr;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Mr||(Mr={}));function GC(e){return!e[Ve.disabled]&&!e[Ve.hidden]&&!e[Ve.outside]}function lae(e,t,r,n){let o,i=-1;for(const a of e){const s=t(a);GC(s)&&(s[Ve.focused]&&i<Mr.FocusedModifier?(o=a,i=Mr.FocusedModifier):n?.isEqualTo(a)&&i<Mr.LastFocused?(o=a,i=Mr.LastFocused):r(a.date)&&i<Mr.Selected?(o=a,i=Mr.Selected):s[Ve.today]&&i<Mr.Today&&(o=a,i=Mr.Today))}return o||(o=e.find(a=>GC(t(a)))),o}function cae(e,t,r,n,o,i,a){const{ISOWeek:s,broadcastCalendar:l}=i,{addDays:c,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:h,endOfISOWeek:v,endOfWeek:m,max:g,min:y,startOfBroadcastWeek:w,startOfISOWeek:x,startOfWeek:S}=a;let C={day:c,week:d,month:u,year:f,startOfWeek:E=>l?w(E,a):s?x(E):S(E),endOfWeek:E=>l?h(E):s?v(E):m(E)}[e](r,t==="after"?1:-1);return t==="before"&&n?C=g([n,C]):t==="after"&&o&&(C=y([o,C])),C}function hN(e,t,r,n,o,i,a,s=0){if(s>365)return;const l=cae(e,t,r.date,n,o,i,a),c=!!(i.disabled&&tn(l,i.disabled,a)),u=!!(i.hidden&&tn(l,i.hidden,a)),d=l,f=new Q_(l,d,a);return!c&&!u?f:hN(e,t,f,n,o,i,a,s+1)}function uae(e,t,r,n,o){const{autoFocus:i}=e,[a,s]=O.useState(),l=lae(t.days,r,n||(()=>!1),a),[c,u]=O.useState(i?l:void 0);return{isFocusTarget:m=>!!l?.isEqualTo(m),setFocused:u,focused:c,blur:()=>{s(c),u(void 0)},moveFocus:(m,g)=>{if(!c)return;const y=hN(m,g,c,t.navStart,t.navEnd,e,o);y&&(e.disableNavigation&&!t.days.some(x=>x.isEqualTo(y))||(t.goToDay(y),u(y)))}}}function dae(e,t){const{selected:r,required:n,onSelect:o}=e,[i,a]=bd(r,o?r:void 0),s=o?r:i,{isSameDay:l}=t,c=h=>s?.some(v=>l(v,h))??!1,{min:u,max:d}=e;return{selected:s,select:(h,v,m)=>{let g=[...s??[]];if(c(h)){if(s?.length===u||n&&s?.length===1)return;g=s?.filter(y=>!l(y,h))}else s?.length===d?g=[h]:g=[...g,h];return o||a(g),o?.(g,h,v,m),g},isSelected:c}}function fae(e,t,r=0,n=0,o=!1,i=Gr){const{from:a,to:s}=t||{},{isSameDay:l,isAfter:c,isBefore:u}=i;let d;if(!a&&!s)d={from:e,to:r>0?void 0:e};else if(a&&!s)l(a,e)?r===0?d={from:a,to:e}:o?d={from:a,to:void 0}:d=void 0:u(e,a)?d={from:e,to:a}:d={from:a,to:e};else if(a&&s)if(l(a,e)&&l(s,e))o?d={from:a,to:s}:d=void 0;else if(l(a,e))d={from:a,to:r>0?void 0:e};else if(l(s,e))d={from:e,to:r>0?void 0:e};else if(u(e,a))d={from:e,to:s};else if(c(e,a))d={from:a,to:e};else if(c(e,s))d={from:a,to:e};else throw new Error("Invalid range");if(d?.from&&d?.to){const f=i.differenceInCalendarDays(d.to,d.from);n>0&&f>n?d={from:e,to:void 0}:r>1&&f<r&&(d={from:e,to:void 0})}return d}function pae(e,t,r=Gr){const n=Array.isArray(t)?t:[t];let o=e.from;const i=r.differenceInCalendarDays(e.to,e.from),a=Math.min(i,6);for(let s=0;s<=a;s++){if(n.includes(o.getDay()))return!0;o=r.addDays(o,1)}return!1}function YC(e,t,r=Gr){return en(e,t.from,!1,r)||en(e,t.to,!1,r)||en(t,e.from,!1,r)||en(t,e.to,!1,r)}function hae(e,t,r=Gr){const n=Array.isArray(t)?t:[t];if(n.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:r.isDate(s)?en(e,s,!1,r):tN(s,r)?s.some(l=>en(e,l,!1,r)):yd(s)?s.from&&s.to?YC(e,{from:s.from,to:s.to},r):!1:eN(s)?pae(e,s.dayOfWeek,r):Iy(s)?r.isAfter(s.before,s.after)?YC(e,{from:r.addDays(s.after,1),to:r.addDays(s.before,-1)},r):tn(e.from,s,r)||tn(e.to,s,r):Ly(s)||$y(s)?tn(e.from,s,r)||tn(e.to,s,r):!1))return!0;const a=n.filter(s=>typeof s=="function");if(a.length){let s=e.from;const l=r.differenceInCalendarDays(e.to,e.from);for(let c=0;c<=l;c++){if(a.some(u=>u(s)))return!0;s=r.addDays(s,1)}}return!1}function mae(e,t){const{disabled:r,excludeDisabled:n,selected:o,required:i,onSelect:a}=e,[s,l]=bd(o,a?o:void 0),c=a?o:s;return{selected:c,select:(f,h,v)=>{const{min:m,max:g}=e,y=f?fae(f,c,m,g,i,t):void 0;return n&&r&&y?.from&&y.to&&hae({from:y.from,to:y.to},r,t)&&(y.from=f,y.to=void 0),a||l(y),a?.(y,f,h,v),y},isSelected:f=>c&&en(c,f,!1,t)}}function vae(e,t){const{selected:r,required:n,onSelect:o}=e,[i,a]=bd(r,o?r:void 0),s=o?r:i,{isSameDay:l}=t;return{selected:s,select:(d,f,h)=>{let v=d;return!n&&s&&s&&l(d,s)&&(v=void 0),o||a(v),o?.(v,d,f,h),v},isSelected:d=>s?l(s,d):!1}}function gae(e,t){const r=vae(e,t),n=dae(e,t),o=mae(e,t);switch(e.mode){case"single":return r;case"multiple":return n;case"range":return o;default:return}}function or(e,t){return e instanceof St&&e.timeZone===t?e:new St(e,t)}function oi(e,t,r){return or(e,t)}function qC(e,t,r){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?oi(e,t):Array.isArray(e)?e.map(n=>n instanceof Date?oi(n,t):n):yd(e)?{...e,from:e.from?or(e.from,t):e.from,to:e.to?or(e.to,t):e.to}:Iy(e)?{before:oi(e.before,t),after:oi(e.after,t)}:Ly(e)?{after:oi(e.after,t)}:$y(e)?{before:oi(e.before,t)}:e}function Up(e,t,r){return e&&(Array.isArray(e)?e.map(n=>qC(n,t)):qC(e,t))}function yae(e){let t=e;const r=t.timeZone;if(r&&(t={...e,timeZone:r},t.today&&(t.today=or(t.today,r)),t.month&&(t.month=or(t.month,r)),t.defaultMonth&&(t.defaultMonth=or(t.defaultMonth,r)),t.startMonth&&(t.startMonth=or(t.startMonth,r)),t.endMonth&&(t.endMonth=or(t.endMonth,r)),t.mode==="single"&&t.selected?t.selected=or(t.selected,r):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(ce=>or(ce,r)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?or(t.selected.from,r):t.selected.from,to:t.selected.to?or(t.selected.to,r):t.selected.to}),t.disabled!==void 0&&(t.disabled=Up(t.disabled,r)),t.hidden!==void 0&&(t.hidden=Up(t.hidden,r)),t.modifiers)){const ce={};Object.keys(t.modifiers).forEach(xe=>{ce[xe]=Up(t.modifiers?.[xe],r)}),t.modifiers=ce}const{components:n,formatters:o,labels:i,dateLib:a,locale:s,classNames:l}=O.useMemo(()=>{const ce={...Z_,...t.locale},xe=t.broadcastCalendar?1:t.weekStartsOn,se=t.noonSafe&&t.timeZone?Yie(t.timeZone,{weekStartsOn:xe,locale:ce}):void 0,be=t.dateLib&&se?{...se,...t.dateLib}:t.dateLib??se,Kt=new Jt({locale:ce,weekStartsOn:xe,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},be);return{dateLib:Kt,components:Tie(t.components),formatters:$ie(t.formatters),labels:zie(t.labels,Kt.options),locale:ce,classNames:{...rN(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:c,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:h,onDayClick:v,onDayFocus:m,onDayKeyDown:g,onDayMouseEnter:y,onDayMouseLeave:w,onNextClick:x,onPrevClick:S,showWeekNumber:P,styles:C}=t,{formatCaption:E,formatDay:A,formatMonthDropdown:T,formatWeekNumber:M,formatWeekNumberHeader:D,formatWeekdayName:k,formatYearDropdown:_}=o,I=sae(t,a),{days:z,months:B,navStart:V,navEnd:j,previousMonth:L,nextMonth:H,goToMonth:te}=I,le=Eie(z,t,V,j,a),{isSelected:ae,select:oe,selected:Se}=gae(t,a)??{},{blur:Me,focused:K,isFocusTarget:fe,moveFocus:$,setFocused:G}=uae(t,I,le,ae??(()=>!1),a),{labelDayButton:W,labelGridcell:F,labelGrid:he,labelMonthDropdown:ue,labelNav:Ye,labelPrevious:tt,labelNext:zt,labelWeekday:Zs,labelWeekNumber:EV,labelWeekNumberHeader:AV,labelYearDropdown:TV}=i,MV=O.useMemo(()=>Hie(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),ow=u!==void 0||v!==void 0,Gd=O.useCallback(()=>{L&&(te(L),S?.(L))},[L,te,S]),Yd=O.useCallback(()=>{H&&(te(H),x?.(H))},[te,H,x]),kV=O.useCallback((ce,xe)=>se=>{se.preventDefault(),se.stopPropagation(),G(ce),!xe.disabled&&(oe?.(ce.date,xe,se),v?.(ce.date,xe,se))},[oe,v,G]),DV=O.useCallback((ce,xe)=>se=>{G(ce),m?.(ce.date,xe,se)},[m,G]),_V=O.useCallback((ce,xe)=>se=>{Me(),h?.(ce.date,xe,se)},[Me,h]),NV=O.useCallback((ce,xe)=>se=>{const be={ArrowLeft:[se.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[se.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[se.shiftKey?"year":"week","after"],ArrowUp:[se.shiftKey?"year":"week","before"],PageUp:[se.shiftKey?"year":"month","before"],PageDown:[se.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(be[se.key]){se.preventDefault(),se.stopPropagation();const[Kt,me]=be[se.key];$(Kt,me)}g?.(ce.date,xe,se)},[$,g,t.dir]),jV=O.useCallback((ce,xe)=>se=>{y?.(ce.date,xe,se)},[y]),RV=O.useCallback((ce,xe)=>se=>{w?.(ce.date,xe,se)},[w]),IV=O.useCallback(ce=>xe=>{const se=Number(xe.target.value),be=a.setMonth(a.startOfMonth(ce),se);te(be)},[a,te]),LV=O.useCallback(ce=>xe=>{const se=Number(xe.target.value),be=a.setYear(a.startOfMonth(ce),se);te(be)},[a,te]),{className:$V,style:FV}=O.useMemo(()=>({className:[l[re.Root],t.className].filter(Boolean).join(" "),style:{...C?.[re.Root],...t.style}}),[l,t.className,t.style,C]),VV=Mie(t),iw=O.useRef(null);Qie(iw,!!t.animate,{classNames:l,months:B,focused:K,dateLib:a});const BV={dayPickerProps:t,selected:Se,select:oe,isSelected:ae,months:B,nextMonth:H,previousMonth:L,goToMonth:te,getModifiers:le,components:n,classNames:l,styles:C,labels:i,formatters:o};return O.createElement(J_.Provider,{value:BV},O.createElement(n.Root,{rootRef:t.animate?iw:void 0,className:$V,style:FV,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...VV},O.createElement(n.Months,{className:l[re.Months],style:C?.[re.Months]},!t.hideNavigation&&!d&&O.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[re.Nav],style:C?.[re.Nav],"aria-label":Ye(),onPreviousClick:Gd,onNextClick:Yd,previousMonth:L,nextMonth:H}),B.map((ce,xe)=>O.createElement(n.Month,{"data-animated-month":t.animate?"true":void 0,className:l[re.Month],style:C?.[re.Month],key:xe,displayIndex:xe,calendarMonth:ce},d==="around"&&!t.hideNavigation&&xe===0&&O.createElement(n.PreviousMonthButton,{type:"button",className:l[re.PreviousMonthButton],tabIndex:L?void 0:-1,"aria-disabled":L?void 0:!0,"aria-label":tt(L),onClick:Gd,"data-animated-button":t.animate?"true":void 0},O.createElement(n.Chevron,{disabled:L?void 0:!0,className:l[re.Chevron],orientation:t.dir==="rtl"?"right":"left"})),O.createElement(n.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[re.MonthCaption],style:C?.[re.MonthCaption],calendarMonth:ce,displayIndex:xe},c?.startsWith("dropdown")?O.createElement(n.DropdownNav,{className:l[re.Dropdowns],style:C?.[re.Dropdowns]},(()=>{const se=c==="dropdown"||c==="dropdown-months"?O.createElement(n.MonthsDropdown,{key:"month",className:l[re.MonthsDropdown],"aria-label":ue(),classNames:l,components:n,disabled:!!t.disableNavigation,onChange:IV(ce.date),options:Kie(ce.date,V,j,o,a),style:C?.[re.Dropdown],value:a.getMonth(ce.date)}):O.createElement("span",{key:"month"},T(ce.date,a)),be=c==="dropdown"||c==="dropdown-years"?O.createElement(n.YearsDropdown,{key:"year",className:l[re.YearsDropdown],"aria-label":TV(a.options),classNames:l,components:n,disabled:!!t.disableNavigation,onChange:LV(ce.date),options:Gie(V,j,o,a,!!t.reverseYears),style:C?.[re.Dropdown],value:a.getYear(ce.date)}):O.createElement("span",{key:"year"},_(ce.date,a));return a.getMonthYearOrder()==="year-first"?[be,se]:[se,be]})(),O.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},E(ce.date,a.options,a))):O.createElement(n.CaptionLabel,{className:l[re.CaptionLabel],role:"status","aria-live":"polite"},E(ce.date,a.options,a))),d==="around"&&!t.hideNavigation&&xe===f-1&&O.createElement(n.NextMonthButton,{type:"button",className:l[re.NextMonthButton],tabIndex:H?void 0:-1,"aria-disabled":H?void 0:!0,"aria-label":zt(H),onClick:Yd,"data-animated-button":t.animate?"true":void 0},O.createElement(n.Chevron,{disabled:H?void 0:!0,className:l[re.Chevron],orientation:t.dir==="rtl"?"left":"right"})),xe===f-1&&d==="after"&&!t.hideNavigation&&O.createElement(n.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[re.Nav],style:C?.[re.Nav],"aria-label":Ye(),onPreviousClick:Gd,onNextClick:Yd,previousMonth:L,nextMonth:H}),O.createElement(n.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":he(ce.date,a.options,a)||void 0,className:l[re.MonthGrid],style:C?.[re.MonthGrid]},!t.hideWeekdays&&O.createElement(n.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[re.Weekdays],style:C?.[re.Weekdays]},P&&O.createElement(n.WeekNumberHeader,{"aria-label":AV(a.options),className:l[re.WeekNumberHeader],style:C?.[re.WeekNumberHeader],scope:"col"},D()),MV.map(se=>O.createElement(n.Weekday,{"aria-label":Zs(se,a.options,a),className:l[re.Weekday],key:String(se),style:C?.[re.Weekday],scope:"col"},k(se,a.options,a)))),O.createElement(n.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[re.Weeks],style:C?.[re.Weeks]},ce.weeks.map(se=>O.createElement(n.Week,{className:l[re.Week],key:se.weekNumber,style:C?.[re.Week],week:se},P&&O.createElement(n.WeekNumber,{week:se,style:C?.[re.WeekNumber],"aria-label":EV(se.weekNumber,{locale:s}),className:l[re.WeekNumber],scope:"row",role:"rowheader"},M(se.weekNumber,a)),se.days.map(be=>{const{date:Kt}=be,me=le(be);if(me[Ve.focused]=!me.hidden&&!!K?.isEqualTo(be),me[yr.selected]=ae?.(Kt)||me.selected,yd(Se)){const{from:qd,to:Xd}=Se;me[yr.range_start]=!!(qd&&Xd&&a.isSameDay(Kt,qd)),me[yr.range_end]=!!(qd&&Xd&&a.isSameDay(Kt,Xd)),me[yr.range_middle]=en(Se,Kt,!0,a)}const WV=Uie(me,C,t.modifiersStyles),zV=Aie(me,l,t.modifiersClassNames),KV=!ow&&!me.hidden?F(Kt,me,a.options,a):void 0;return O.createElement(n.Day,{key:`${be.isoDate}_${be.displayMonthId}`,day:be,modifiers:me,className:zV.join(" "),style:WV,role:"gridcell","aria-selected":me.selected||void 0,"aria-label":KV,"data-day":be.isoDate,"data-month":be.outside?be.dateMonthId:void 0,"data-selected":me.selected||void 0,"data-disabled":me.disabled||void 0,"data-hidden":me.hidden||void 0,"data-outside":be.outside||void 0,"data-focused":me.focused||void 0,"data-today":me.today||void 0},!me.hidden&&ow?O.createElement(n.DayButton,{className:l[re.DayButton],style:C?.[re.DayButton],type:"button",day:be,modifiers:me,disabled:!me.focused&&me.disabled||void 0,"aria-disabled":me.focused&&me.disabled||void 0,tabIndex:fe(be)?0:-1,"aria-label":W(Kt,me,a.options,a),onClick:kV(be,me),onBlur:_V(be,me),onFocus:DV(be,me),onKeyDown:NV(be,me),onMouseEnter:jV(be,me),onMouseLeave:RV(be,me)},A(Kt,a.options,a)):!me.hidden&&A(be.date,a.options,a))})))))))),t.footer&&O.createElement(n.Footer,{className:l[re.Footer],style:C?.[re.Footer],role:"status","aria-live":"polite"},t.footer)))}function js({className:e,classNames:t,components:r,...n}){const o=rN();return b.jsx(yae,{showOutsideDays:!0,fixedWeeks:!0,className:N("font-sans",e),classNames:{root:N(o.root),months:N("relative flex flex-row gap-4",o.months),month:N(o.month),month_caption:N("flex h-9 items-center justify-center",o.month_caption),caption_label:N("text-primary text-sm font-medium",o.caption_label),nav:N("absolute inset-x-0 top-0 z-10 flex h-9 items-center justify-between px-0.5"),button_previous:N("hover:bg-alt focus-visible:ring-sunflower inline-flex h-7 w-7 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),button_next:N("hover:bg-alt focus-visible:ring-sunflower inline-flex h-7 w-7 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),weekday:N("text-tertiary w-9 text-center text-xs font-medium",o.weekday),weekdays:N(o.weekdays),week:N(o.week),day:N("relative p-0 text-center",o.day),day_button:N("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","hover:bg-sunflower text-primary",o.day_button),today:N("[&>button]:border-sunflower [&>button]:border",o.today),selected:N("[&>button]:bg-sunflower [&>button]:text-primary [&>button]:hover:bg-sunflower [&>button]:font-medium",o.selected),range_start:N("[&>button]:bg-sunflower [&>button]:text-primary [&>button]:rounded-full [&>button]:font-medium","bg-lemon-meringue rounded-l-full",o.range_start),range_middle:N("bg-lemon-meringue [&>button]:text-primary [&>button]:hover:bg-sunflower/30 [&>button]:rounded-none [&>button]:bg-transparent","rounded-none",o.range_middle),range_end:N("[&>button]:bg-sunflower [&>button]:text-primary [&>button]:rounded-full [&>button]:font-medium","bg-lemon-meringue rounded-r-full",o.range_end),outside:N("[&>button]:text-tertiary [&>button]:opacity-50",o.outside),disabled:N("[&>button]:text-tertiary [&>button]:cursor-not-allowed [&>button]:opacity-50 [&>button]:hover:bg-transparent",o.disabled),hidden:N("invisible",o.hidden),...t},components:{Chevron:({orientation:i,...a})=>{const s=i==="left"?yv:bv;return b.jsx(s,{className:"h-4 w-4",...a})},...r},...n})}js.displayName="Calendar";const oo=["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(" "),mN=ne("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-6",default:"p-8",lg:"p-10"},bg:{default:"bg-card",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:`${oo} [--card-accent-color:var(--color-border)]`,sunflower:`${oo} [--card-accent-color:var(--color-sunflower)]`,"warm-purple":`${oo} [--card-accent-color:var(--color-warm-purple)]`,"cool-purple":`${oo} [--card-accent-color:var(--color-cool-purple)]`,"electric-blue":`${oo} [--card-accent-color:var(--color-electric-blue)]`,"deep-blue":`${oo} [--card-accent-color:var(--color-deep-blue)]`,error:`${oo} [--card-accent-color:var(--color-error)]`}},defaultVariants:{variant:"default",padding:"default",bg:"default",accent:"none"}}),vN=p.forwardRef(({className:e,variant:t,padding:r,bg:n,accent:o,asChild:i=!1,...a},s)=>{const l=i?Re:"div";return b.jsx(l,{className:N(mN({variant:t,padding:r,bg:n,accent:o,className:e})),ref:s,...a})});vN.displayName="Card";function Rs(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Is(e){const[t,r]=p.useState(void 0);return pt(()=>{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 wd="Checkbox",[bae]=it(wd),[wae,By]=bae(wd);function xae(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,[f,h]=wt({prop:r,defaultProp:o??!1,onChange:l,caller:wd}),[v,m]=p.useState(null),[g,y]=p.useState(null),w=p.useRef(!1),x=v?!!a||!!v.closest("form"):!0,S={checked:f,disabled:i,setChecked:h,control:v,setControl:m,name:s,form:a,value:u,hasConsumerStoppedPropagationRef:w,required:c,defaultChecked:Ln(o)?!1:o,isFormControl:x,bubbleInput:g,setBubbleInput:y};return b.jsx(wae,{scope:t,...S,children:Sae(d)?d(S):n})}var gN="CheckboxTrigger",yN=p.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:f,isFormControl:h,bubbleInput:v}=By(gN,e),m=ie(o,u),g=p.useRef(l);return p.useEffect(()=>{const y=i?.form;if(y){const w=()=>d(g.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[i,d]),b.jsx(ee.button,{type:"button",role:"checkbox","aria-checked":Ln(l)?"mixed":l,"aria-required":c,"data-state":CN(l),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:m,onKeyDown:U(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:U(r,y=>{d(w=>Ln(w)?!0:!w),v&&h&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});yN.displayName=gN;var bN=p.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 b.jsx(xae,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:c,name:n,form:u,value:l,internal_do_not_use_render:({isFormControl:f})=>b.jsxs(b.Fragment,{children:[b.jsx(yN,{...d,ref:t,__scopeCheckbox:r}),f&&b.jsx(PN,{__scopeCheckbox:r})]})})});bN.displayName=wd;var wN="CheckboxIndicator",xN=p.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=By(wN,r);return b.jsx(At,{present:n||Ln(i.checked)||i.checked===!0,children:b.jsx(ee.span,{"data-state":CN(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});xN.displayName=wN;var SN="CheckboxBubbleInput",PN=p.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:f,setBubbleInput:h}=By(SN,e),v=ie(r,h),m=Rs(i),g=Is(n);p.useEffect(()=>{const w=f;if(!w)return;const x=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor(x,"checked").set,C=!o.current;if(m!==i&&P){const E=new Event("click",{bubbles:C});w.indeterminate=Ln(i),P.call(w,Ln(i)?!1:i),w.dispatchEvent(E)}},[f,m,i,o]);const y=p.useRef(Ln(i)?!1:i);return b.jsx(ee.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:v,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});PN.displayName=SN;function Sae(e){return typeof e=="function"}function Ln(e){return e==="indeterminate"}function CN(e){return Ln(e)?"indeterminate":e?"checked":"unchecked"}const ON=p.forwardRef(({className:e,...t},r)=>b.jsx(bN,{ref:r,className:N("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:b.jsx(xN,{className:N("flex items-center justify-center text-current"),children:b.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:b.jsx("polyline",{points:"20 6 9 17 4 12"})})})}));ON.displayName="Checkbox";const Pae=["top","right","bottom","left"],Wn=Math.min,Ht=Math.max,eu=Math.round,kl=Math.floor,$r=e=>({x:e,y:e}),Cae={left:"right",right:"left",bottom:"top",top:"bottom"},Oae={start:"end",end:"start"};function xm(e,t,r){return Ht(e,Wn(t,r))}function fn(e,t){return typeof e=="function"?e(t):e}function pn(e){return e.split("-")[0]}function qi(e){return e.split("-")[1]}function Wy(e){return e==="x"?"y":"x"}function zy(e){return e==="y"?"height":"width"}const Eae=new Set(["top","bottom"]);function Ir(e){return Eae.has(pn(e))?"y":"x"}function Ky(e){return Wy(Ir(e))}function Aae(e,t,r){r===void 0&&(r=!1);const n=qi(e),o=Ky(e),i=zy(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=tu(a)),[a,tu(a)]}function Tae(e){const t=tu(e);return[Sm(e),t,Sm(t)]}function Sm(e){return e.replace(/start|end/g,t=>Oae[t])}const XC=["left","right"],ZC=["right","left"],Mae=["top","bottom"],kae=["bottom","top"];function Dae(e,t,r){switch(e){case"top":case"bottom":return r?t?ZC:XC:t?XC:ZC;case"left":case"right":return t?Mae:kae;default:return[]}}function _ae(e,t,r,n){const o=qi(e);let i=Dae(pn(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Sm)))),i}function tu(e){return e.replace(/left|right|bottom|top/g,t=>Cae[t])}function Nae(e){return{top:0,right:0,bottom:0,left:0,...e}}function EN(e){return typeof e!="number"?Nae(e):{top:e,right:e,bottom:e,left:e}}function ru(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 QC(e,t,r){let{reference:n,floating:o}=e;const i=Ir(t),a=Ky(t),s=zy(a),l=pn(t),c=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-o.width,y:d};break;default:h={x:n.x,y:n.y}}switch(qi(t)){case"start":h[a]-=f*(r&&c?-1:1);break;case"end":h[a]+=f*(r&&c?-1:1);break}return h}async function jae(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:f=!1,padding:h=0}=fn(t,e),v=EN(h),g=s[f?d==="floating"?"reference":"floating":d],y=ru(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(g)))==null||r?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),w=d==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},P=ru(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-P.top+v.top)/S.y,bottom:(P.bottom-y.bottom+v.bottom)/S.y,left:(y.left-P.left+v.left)/S.x,right:(P.right-y.right+v.right)/S.x}}const Rae=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}=QC(c,n,l),f=n,h={},v=0;for(let g=0;g<s.length;g++){var m;const{name:y,fn:w}=s[g],{x,y:S,data:P,reset:C}=await w({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:jae},elements:{reference:e,floating:t}});u=x??u,d=S??d,h={...h,[y]:{...h[y],...P}},C&&v<=50&&(v++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(c=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:u,y:d}=QC(c,f,l)),g=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}},Iae=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}=fn(e,t)||{};if(c==null)return{};const d=EN(u),f={x:r,y:n},h=Ky(o),v=zy(h),m=await a.getDimensions(c),g=h==="y",y=g?"top":"left",w=g?"bottom":"right",x=g?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[h]-f[h]-i.floating[v],P=f[h]-i.reference[h],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let E=C?C[x]:0;(!E||!await(a.isElement==null?void 0:a.isElement(C)))&&(E=s.floating[x]||i.floating[v]);const A=S/2-P/2,T=E/2-m[v]/2-1,M=Wn(d[y],T),D=Wn(d[w],T),k=M,_=E-m[v]-D,I=E/2-m[v]/2+A,z=xm(k,I,_),B=!l.arrow&&qi(o)!=null&&I!==z&&i.reference[v]/2-(I<k?M:D)-m[v]/2<0,V=B?I<k?I-k:I-_:0;return{[h]:f[h]+V,data:{[h]:z,centerOffset:I-z-V,...B&&{alignmentOffset:V}},reset:B}}}),Lae=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:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...g}=fn(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=pn(o),w=Ir(s),x=pn(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),P=f||(x||!m?[tu(s)]:Tae(s)),C=v!=="none";!f&&C&&P.push(..._ae(s,m,v,S));const E=[s,...P],A=await l.detectOverflow(t,g),T=[];let M=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&T.push(A[y]),d){const I=Aae(o,a,S);T.push(A[I[0]],A[I[1]])}if(M=[...M,{placement:o,overflows:T}],!T.every(I=>I<=0)){var D,k;const I=(((D=i.flip)==null?void 0:D.index)||0)+1,z=E[I];if(z&&(!(d==="alignment"?w!==Ir(z):!1)||M.every(j=>Ir(j.placement)===w?j.overflows[0]>0:!0)))return{data:{index:I,overflows:M},reset:{placement:z}};let B=(k=M.filter(V=>V.overflows[0]<=0).sort((V,j)=>V.overflows[1]-j.overflows[1])[0])==null?void 0:k.placement;if(!B)switch(h){case"bestFit":{var _;const V=(_=M.filter(j=>{if(C){const L=Ir(j.placement);return L===w||L==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(L=>L>0).reduce((L,H)=>L+H,0)]).sort((j,L)=>j[1]-L[1])[0])==null?void 0:_[0];V&&(B=V);break}case"initialPlacement":B=s;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function JC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function e1(e){return Pae.some(t=>e[t]>=0)}const $ae=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=fn(e,t);switch(o){case"referenceHidden":{const a=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=JC(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:e1(s)}}}case"escaped":{const a=await n.detectOverflow(t,{...i,altBoundary:!0}),s=JC(a,r.floating);return{data:{escapedOffsets:s,escaped:e1(s)}}}default:return{}}}}},AN=new Set(["left","top"]);async function Fae(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=pn(r),s=qi(r),l=Ir(r)==="y",c=AN.has(a)?-1:1,u=i&&l?-1:1,d=fn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const Vae=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 Fae(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}}}}},Bae=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:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...c}=fn(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),f=Ir(pn(o)),h=Wy(f);let v=u[h],m=u[f];if(a){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=v+d[y],S=v-d[w];v=xm(x,v,S)}if(s){const y=f==="y"?"top":"left",w=f==="y"?"bottom":"right",x=m+d[y],S=m-d[w];m=xm(x,m,S)}const g=l.fn({...t,[h]:v,[f]:m});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:a,[f]:s}}}}}},Wae=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}=fn(e,t),u={x:r,y:n},d=Ir(o),f=Wy(d);let h=u[f],v=u[d];const m=fn(s,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const x=f==="y"?"height":"width",S=i.reference[f]-i.floating[x]+g.mainAxis,P=i.reference[f]+i.reference[x]-g.mainAxis;h<S?h=S:h>P&&(h=P)}if(c){var y,w;const x=f==="y"?"width":"height",S=AN.has(pn(o)),P=i.reference[d]-i.floating[x]+(S&&((y=a.offset)==null?void 0:y[d])||0)+(S?0:g.crossAxis),C=i.reference[d]+i.reference[x]+(S?0:((w=a.offset)==null?void 0:w[d])||0)-(S?g.crossAxis:0);v<P?v=P:v>C&&(v=C)}return{[f]:h,[d]:v}}}},zae=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}=fn(e,t),u=await a.detectOverflow(t,c),d=pn(o),f=qi(o),h=Ir(o)==="y",{width:v,height:m}=i.floating;let g,y;d==="top"||d==="bottom"?(g=d,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,g=f==="end"?"top":"bottom");const w=m-u.top-u.bottom,x=v-u.left-u.right,S=Wn(m-u[g],w),P=Wn(v-u[y],x),C=!t.middlewareData.shift;let E=S,A=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(A=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=w),C&&!f){const M=Ht(u.left,0),D=Ht(u.right,0),k=Ht(u.top,0),_=Ht(u.bottom,0);h?A=v-2*(M!==0||D!==0?M+D:Ht(u.left,u.right)):E=m-2*(k!==0||_!==0?k+_:Ht(u.top,u.bottom))}await l({...t,availableWidth:A,availableHeight:E});const T=await a.getDimensions(s.floating);return v!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};function xd(){return typeof window<"u"}function Xi(e){return TN(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yr(e){var t;return(t=(TN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function TN(e){return xd()?e instanceof Node||e instanceof Xt(e).Node:!1}function xr(e){return xd()?e instanceof Element||e instanceof Xt(e).Element:!1}function Kr(e){return xd()?e instanceof HTMLElement||e instanceof Xt(e).HTMLElement:!1}function t1(e){return!xd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}const Kae=new Set(["inline","contents"]);function Ls(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Sr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Kae.has(o)}const Uae=new Set(["table","td","th"]);function Hae(e){return Uae.has(Xi(e))}const Gae=[":popover-open",":modal"];function Sd(e){return Gae.some(t=>{try{return e.matches(t)}catch{return!1}})}const Yae=["transform","translate","scale","rotate","perspective"],qae=["transform","translate","scale","rotate","perspective","filter"],Xae=["paint","layout","strict","content"];function Uy(e){const t=Hy(),r=xr(e)?Sr(e):e;return Yae.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)||qae.some(n=>(r.willChange||"").includes(n))||Xae.some(n=>(r.contain||"").includes(n))}function Zae(e){let t=zn(e);for(;Kr(t)&&!ki(t);){if(Uy(t))return t;if(Sd(t))return null;t=zn(t)}return null}function Hy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qae=new Set(["html","body","#document"]);function ki(e){return Qae.has(Xi(e))}function Sr(e){return Xt(e).getComputedStyle(e)}function Pd(e){return xr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zn(e){if(Xi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||t1(e)&&e.host||Yr(e);return t1(t)?t.host:t}function MN(e){const t=zn(e);return ki(t)?e.ownerDocument?e.ownerDocument.body:e.body:Kr(t)&&Ls(t)?t:MN(t)}function Ya(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=MN(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Xt(o);if(i){const s=Pm(a);return t.concat(a,a.visualViewport||[],Ls(o)?o:[],s&&r?Ya(s):[])}return t.concat(o,Ya(o,[],r))}function Pm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function kN(e){const t=Sr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Kr(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=eu(r)!==i||eu(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Gy(e){return xr(e)?e:e.contextElement}function wi(e){const t=Gy(e);if(!Kr(t))return $r(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=kN(t);let a=(i?eu(r.width):r.width)/n,s=(i?eu(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Jae=$r(0);function DN(e){const t=Xt(e);return!Hy()||!t.visualViewport?Jae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ese(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Xt(e)?!1:t}function Io(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Gy(e);let a=$r(1);t&&(n?xr(n)&&(a=wi(n)):a=wi(e));const s=ese(i,r,n)?DN(i):$r(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 f=Xt(i),h=n&&xr(n)?Xt(n):n;let v=f,m=Pm(v);for(;m&&n&&h!==v;){const g=wi(m),y=m.getBoundingClientRect(),w=Sr(m),x=y.left+(m.clientLeft+parseFloat(w.paddingLeft))*g.x,S=y.top+(m.clientTop+parseFloat(w.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=x,c+=S,v=Xt(m),m=Pm(v)}}return ru({width:u,height:d,x:l,y:c})}function Cd(e,t){const r=Pd(e).scrollLeft;return t?t.left+r:Io(Yr(e)).left+r}function _N(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Cd(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function tse(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=Yr(n),s=t?Sd(t.floating):!1;if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=$r(1);const u=$r(0),d=Kr(n);if((d||!d&&!i)&&((Xi(n)!=="body"||Ls(a))&&(l=Pd(n)),Kr(n))){const h=Io(n);c=wi(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const f=a&&!d&&!i?_N(a,l):$r(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function rse(e){return Array.from(e.getClientRects())}function nse(e){const t=Yr(e),r=Pd(e),n=e.ownerDocument.body,o=Ht(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Ht(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Cd(e);const s=-r.scrollTop;return Sr(n).direction==="rtl"&&(a+=Ht(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const r1=25;function ose(e,t){const r=Xt(e),n=Yr(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=Hy();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=Cd(n);if(c<=0){const u=n.ownerDocument,d=u.body,f=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(n.clientWidth-d.clientWidth-h);v<=r1&&(i-=v)}else c<=r1&&(i+=c);return{width:i,height:a,x:s,y:l}}const ise=new Set(["absolute","fixed"]);function ase(e,t){const r=Io(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Kr(e)?wi(e):$r(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 n1(e,t,r){let n;if(t==="viewport")n=ose(e,r);else if(t==="document")n=nse(Yr(e));else if(xr(t))n=ase(t,r);else{const o=DN(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ru(n)}function NN(e,t){const r=zn(e);return r===t||!xr(r)||ki(r)?!1:Sr(r).position==="fixed"||NN(r,t)}function sse(e,t){const r=t.get(e);if(r)return r;let n=Ya(e,[],!1).filter(s=>xr(s)&&Xi(s)!=="body"),o=null;const i=Sr(e).position==="fixed";let a=i?zn(e):e;for(;xr(a)&&!ki(a);){const s=Sr(a),l=Uy(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&ise.has(o.position)||Ls(a)&&!l&&NN(e,a))?n=n.filter(u=>u!==a):o=s,a=zn(a)}return t.set(e,n),n}function lse(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Sd(t)?[]:sse(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,u)=>{const d=n1(t,u,o);return c.top=Ht(d.top,c.top),c.right=Wn(d.right,c.right),c.bottom=Wn(d.bottom,c.bottom),c.left=Ht(d.left,c.left),c},n1(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function cse(e){const{width:t,height:r}=kN(e);return{width:t,height:r}}function use(e,t,r){const n=Kr(t),o=Yr(t),i=r==="fixed",a=Io(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=$r(0);function c(){l.x=Cd(o)}if(n||!n&&!i)if((Xi(t)!=="body"||Ls(o))&&(s=Pd(t)),n){const h=Io(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=o&&!n&&!i?_N(o,s):$r(0),d=a.left+s.scrollLeft-l.x-u.x,f=a.top+s.scrollTop-l.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function Hp(e){return Sr(e).position==="static"}function o1(e,t){if(!Kr(e)||Sr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Yr(e)===r&&(r=r.ownerDocument.body),r}function jN(e,t){const r=Xt(e);if(Sd(e))return r;if(!Kr(e)){let o=zn(e);for(;o&&!ki(o);){if(xr(o)&&!Hp(o))return o;o=zn(o)}return r}let n=o1(e,t);for(;n&&Hae(n)&&Hp(n);)n=o1(n,t);return n&&ki(n)&&Hp(n)&&!Uy(n)?r:n||Zae(e)||r}const dse=async function(e){const t=this.getOffsetParent||jN,r=this.getDimensions,n=await r(e.floating);return{reference:use(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function fse(e){return Sr(e).direction==="rtl"}const pse={convertOffsetParentRelativeRectToViewportRelativeRect:tse,getDocumentElement:Yr,getClippingRect:lse,getOffsetParent:jN,getElementRects:dse,getClientRects:rse,getDimensions:cse,getScale:wi,isElement:xr,isRTL:fse};function RN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hse(e,t){let r=null,n;const o=Yr(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:f,height:h}=c;if(s||t(),!f||!h)return;const v=kl(d),m=kl(o.clientWidth-(u+f)),g=kl(o.clientHeight-(d+h)),y=kl(u),x={rootMargin:-v+"px "+-m+"px "+-g+"px "+-y+"px",threshold:Ht(0,Wn(1,l))||1};let S=!0;function P(C){const E=C[0].intersectionRatio;if(E!==l){if(!S)return a();E?a(!1,E):n=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!RN(c,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(P,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(P,x)}r.observe(e)}return a(!0),i}function mse(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=Gy(e),u=o||i?[...c?Ya(c):[],...Ya(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const d=c&&s?hse(c,r):null;let f=-1,h=null;a&&(h=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),r()}),c&&!l&&h.observe(c),h.observe(t));let v,m=l?Io(e):null;l&&g();function g(){const y=Io(e);m&&!RN(m,y)&&r(),m=y,v=requestAnimationFrame(g)}return r(),()=>{var y;u.forEach(w=>{o&&w.removeEventListener("scroll",r),i&&w.removeEventListener("resize",r)}),d?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const vse=Vae,gse=Bae,yse=Lae,bse=zae,wse=$ae,i1=Iae,xse=Wae,Sse=(e,t,r)=>{const n=new Map,o={platform:pse,...r},i={...o.platform,_c:n};return Rae(e,t,{...o,platform:i})};var Pse=typeof document<"u",Cse=function(){},Hl=Pse?O.useLayoutEffect:Cse;function nu(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(!nu(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)&&!nu(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function IN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function a1(e,t){const r=IN(e);return Math.round(t*r)/r}function Gp(e){const t=p.useRef(e);return Hl(()=>{t.current=e}),t}function Ose(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]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=p.useState(n);nu(f,n)||h(n);const[v,m]=p.useState(null),[g,y]=p.useState(null),w=p.useCallback(j=>{j!==C.current&&(C.current=j,m(j))},[]),x=p.useCallback(j=>{j!==E.current&&(E.current=j,y(j))},[]),S=i||v,P=a||g,C=p.useRef(null),E=p.useRef(null),A=p.useRef(u),T=l!=null,M=Gp(l),D=Gp(o),k=Gp(c),_=p.useCallback(()=>{if(!C.current||!E.current)return;const j={placement:t,strategy:r,middleware:f};D.current&&(j.platform=D.current),Sse(C.current,E.current,j).then(L=>{const H={...L,isPositioned:k.current!==!1};I.current&&!nu(A.current,H)&&(A.current=H,os.flushSync(()=>{d(H)}))})},[f,t,r,D,k]);Hl(()=>{c===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(j=>({...j,isPositioned:!1})))},[c]);const I=p.useRef(!1);Hl(()=>(I.current=!0,()=>{I.current=!1}),[]),Hl(()=>{if(S&&(C.current=S),P&&(E.current=P),S&&P){if(M.current)return M.current(S,P,_);_()}},[S,P,_,M,T]);const z=p.useMemo(()=>({reference:C,floating:E,setReference:w,setFloating:x}),[w,x]),B=p.useMemo(()=>({reference:S,floating:P}),[S,P]),V=p.useMemo(()=>{const j={position:r,left:0,top:0};if(!B.floating)return j;const L=a1(B.floating,u.x),H=a1(B.floating,u.y);return s?{...j,transform:"translate("+L+"px, "+H+"px)",...IN(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:L,top:H}},[r,s,B.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:_,refs:z,elements:B,floatingStyles:V}),[u,_,z,B,V])}const Ese=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?i1({element:n.current,padding:o}).fn(r):{}:n?i1({element:n,padding:o}).fn(r):{}}}},Ase=(e,t)=>({...vse(e),options:[e,t]}),Tse=(e,t)=>({...gse(e),options:[e,t]}),Mse=(e,t)=>({...xse(e),options:[e,t]}),kse=(e,t)=>({...yse(e),options:[e,t]}),Dse=(e,t)=>({...bse(e),options:[e,t]}),_se=(e,t)=>({...wse(e),options:[e,t]}),Nse=(e,t)=>({...Ese(e),options:[e,t]});var jse="Arrow",LN=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return b.jsx(ee.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});LN.displayName=jse;var Rse=LN,Yy="Popper",[$N,Xn]=it(Yy),[Ise,FN]=$N(Yy),VN=e=>{const{__scopePopper:t,children:r}=e,[n,o]=p.useState(null);return b.jsx(Ise,{scope:t,anchor:n,onAnchorChange:o,children:r})};VN.displayName=Yy;var BN="PopperAnchor",WN=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=FN(BN,r),a=p.useRef(null),s=ie(t,a),l=p.useRef(null);return p.useEffect(()=>{const c=l.current;l.current=n?.current||a.current,c!==l.current&&i.onAnchorChange(l.current)}),n?null:b.jsx(ee.div,{...o,ref:s})});WN.displayName=BN;var qy="PopperContent",[Lse,$se]=$N(qy),zN=p.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:f=!1,updatePositionStrategy:h="optimized",onPlaced:v,...m}=e,g=FN(qy,r),[y,w]=p.useState(null),x=ie(t,K=>w(K)),[S,P]=p.useState(null),C=Is(S),E=C?.width??0,A=C?.height??0,T=n+(i!=="center"?"-"+i:""),M=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(c)?c:[c],k=D.length>0,_={padding:M,boundary:D.filter(Vse),altBoundary:k},{refs:I,floatingStyles:z,placement:B,isPositioned:V,middlewareData:j}=Ose({strategy:"fixed",placement:T,whileElementsMounted:(...K)=>mse(...K,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[Ase({mainAxis:o+A,alignmentAxis:a}),l&&Tse({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Mse():void 0,..._}),l&&kse({..._}),Dse({..._,apply:({elements:K,rects:fe,availableWidth:$,availableHeight:G})=>{const{width:W,height:F}=fe.reference,he=K.floating.style;he.setProperty("--radix-popper-available-width",`${$}px`),he.setProperty("--radix-popper-available-height",`${G}px`),he.setProperty("--radix-popper-anchor-width",`${W}px`),he.setProperty("--radix-popper-anchor-height",`${F}px`)}}),S&&Nse({element:S,padding:s}),Bse({arrowWidth:E,arrowHeight:A}),f&&_se({strategy:"referenceHidden",..._})]}),[L,H]=HN(B),te=Et(v);pt(()=>{V&&te?.()},[V,te]);const le=j.arrow?.x,ae=j.arrow?.y,oe=j.arrow?.centerOffset!==0,[Se,Me]=p.useState();return pt(()=>{y&&Me(window.getComputedStyle(y).zIndex)},[y]),b.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:V?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(Lse,{scope:r,placedSide:L,onArrowChange:P,arrowX:le,arrowY:ae,shouldHideArrow:oe,children:b.jsx(ee.div,{"data-side":L,"data-align":H,...m,ref:x,style:{...m.style,animation:V?void 0:"none"}})})})});zN.displayName=qy;var KN="PopperArrow",Fse={top:"bottom",right:"left",bottom:"top",left:"right"},UN=p.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=$se(KN,n),a=Fse[i.placedSide];return b.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:b.jsx(Rse,{...o,ref:r,style:{...o.style,display:"block"}})})});UN.displayName=KN;function Vse(e){return e!==null}var Bse=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]=HN(r),d={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+s/2,h=(o.arrow?.y??0)+l/2;let v="",m="";return c==="bottom"?(v=a?d:`${f}px`,m=`${-l}px`):c==="top"?(v=a?d:`${f}px`,m=`${n.floating.height+l}px`):c==="right"?(v=`${-l}px`,m=a?d:`${h}px`):c==="left"&&(v=`${n.floating.width+l}px`,m=a?d:`${h}px`),{data:{x:v,y:m}}}});function HN(e){const[t,r="center"]=e.split("-");return[t,r]}var $s=VN,Fs=WN,Od=zN,Ed=UN,Yp="rovingFocusGroup.onEntryFocus",Wse={bubbles:!1,cancelable:!0},Vs="RovingFocusGroup",[Cm,GN,zse]=ji(Vs),[Kse,Ad]=it(Vs,[zse]),[Use,Hse]=Kse(Vs),YN=p.forwardRef((e,t)=>b.jsx(Cm.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Cm.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Gse,{...e,ref:t})})}));YN.displayName=Vs;var Gse=p.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,f=p.useRef(null),h=ie(t,f),v=Ri(i),[m,g]=wt({prop:a,defaultProp:s??null,onChange:l,caller:Vs}),[y,w]=p.useState(!1),x=Et(c),S=GN(r),P=p.useRef(!1),[C,E]=p.useState(0);return p.useEffect(()=>{const A=f.current;if(A)return A.addEventListener(Yp,x),()=>A.removeEventListener(Yp,x)},[x]),b.jsx(Use,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:m,onItemFocus:p.useCallback(A=>g(A),[g]),onItemShiftTab:p.useCallback(()=>w(!0),[]),onFocusableItemAdd:p.useCallback(()=>E(A=>A+1),[]),onFocusableItemRemove:p.useCallback(()=>E(A=>A-1),[]),children:b.jsx(ee.div,{tabIndex:y||C===0?-1:0,"data-orientation":n,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{P.current=!0}),onFocus:U(e.onFocus,A=>{const T=!P.current;if(A.target===A.currentTarget&&T&&!y){const M=new CustomEvent(Yp,Wse);if(A.currentTarget.dispatchEvent(M),!M.defaultPrevented){const D=S().filter(B=>B.focusable),k=D.find(B=>B.active),_=D.find(B=>B.id===m),z=[k,_,...D].filter(Boolean).map(B=>B.ref.current);ZN(z,u)}}P.current=!1}),onBlur:U(e.onBlur,()=>w(!1))})})}),qN="RovingFocusGroupItem",XN=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:a,...s}=e,l=Rt(),c=i||l,u=Hse(qN,r),d=u.currentTabStopId===c,f=GN(r),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:m}=u;return p.useEffect(()=>{if(n)return h(),()=>v()},[n,h,v]),b.jsx(Cm.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:b.jsx(ee.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:U(e.onMouseDown,g=>{n?u.onItemFocus(c):g.preventDefault()}),onFocus:U(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:U(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=Xse(g,u.orientation,u.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let x=f().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const S=x.indexOf(g.currentTarget);x=u.loop?Zse(x,S+1):x.slice(S+1)}setTimeout(()=>ZN(x))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});XN.displayName=qN;var Yse={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qse(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Xse(e,t,r){const n=qse(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Yse[n]}function ZN(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Zse(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var QN=YN,JN=XN;function Qse(e){const t=Jse(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(tle);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function Jse(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=nle(o),s=rle(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Hr(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ele=Symbol("radix.slottable");function tle(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ele}function rle(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 nle(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 Om=["Enter"," "],ole=["ArrowDown","PageUp","Home"],ej=["ArrowUp","PageDown","End"],ile=[...ole,...ej],ale={ltr:[...Om,"ArrowRight"],rtl:[...Om,"ArrowLeft"]},sle={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Bs="Menu",[qa,lle,cle]=ji(Bs),[Yo,Td]=it(Bs,[cle,Xn,Ad]),Ws=Xn(),tj=Ad(),[rj,Zn]=Yo(Bs),[ule,zs]=Yo(Bs),nj=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:a=!0}=e,s=Ws(t),[l,c]=p.useState(null),u=p.useRef(!1),d=Et(i),f=Ri(o);return p.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),b.jsx($s,{...s,children:b.jsx(rj,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:b.jsx(ule,{scope:t,onClose:p.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:a,children:n})})})};nj.displayName=Bs;var dle="MenuAnchor",Xy=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Ws(r);return b.jsx(Fs,{...o,...n,ref:t})});Xy.displayName=dle;var Zy="MenuPortal",[fle,oj]=Yo(Zy,{forceMount:void 0}),ij=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=Zn(Zy,t);return b.jsx(fle,{scope:t,forceMount:r,children:b.jsx(At,{present:r||i.open,children:b.jsx(Bo,{asChild:!0,container:o,children:n})})})};ij.displayName=Zy;var sr="MenuContent",[ple,Qy]=Yo(sr),aj=p.forwardRef((e,t)=>{const r=oj(sr,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=Zn(sr,e.__scopeMenu),a=zs(sr,e.__scopeMenu);return b.jsx(qa.Provider,{scope:e.__scopeMenu,children:b.jsx(At,{present:n||i.open,children:b.jsx(qa.Slot,{scope:e.__scopeMenu,children:a.modal?b.jsx(hle,{...o,ref:t}):b.jsx(mle,{...o,ref:t})})})})}),hle=p.forwardRef((e,t)=>{const r=Zn(sr,e.__scopeMenu),n=p.useRef(null),o=ie(t,n);return p.useEffect(()=>{const i=n.current;if(i)return Su(i)},[]),b.jsx(Jy,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),mle=p.forwardRef((e,t)=>{const r=Zn(sr,e.__scopeMenu);return b.jsx(Jy,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),vle=Qse("MenuContent.ScrollLock"),Jy=p.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:f,onDismiss:h,disableOutsideScroll:v,...m}=e,g=Zn(sr,r),y=zs(sr,r),w=Ws(r),x=tj(r),S=lle(r),[P,C]=p.useState(null),E=p.useRef(null),A=ie(t,E,g.onContentChange),T=p.useRef(0),M=p.useRef(""),D=p.useRef(0),k=p.useRef(null),_=p.useRef("right"),I=p.useRef(0),z=v?as:p.Fragment,B=v?{as:vle,allowPinchZoom:!0}:void 0,V=L=>{const H=M.current+L,te=S().filter(K=>!K.disabled),le=document.activeElement,ae=te.find(K=>K.ref.current===le)?.textValue,oe=te.map(K=>K.textValue),Se=Tle(oe,H,ae),Me=te.find(K=>K.textValue===Se)?.ref.current;(function K(fe){M.current=fe,window.clearTimeout(T.current),fe!==""&&(T.current=window.setTimeout(()=>K(""),1e3))})(H),Me&&setTimeout(()=>Me.focus())};p.useEffect(()=>()=>window.clearTimeout(T.current),[]),wu();const j=p.useCallback(L=>_.current===k.current?.side&&kle(L,k.current?.area),[]);return b.jsx(ple,{scope:r,searchRef:M,onItemEnter:p.useCallback(L=>{j(L)&&L.preventDefault()},[j]),onItemLeave:p.useCallback(L=>{j(L)||(E.current?.focus(),C(null))},[j]),onTriggerLeave:p.useCallback(L=>{j(L)&&L.preventDefault()},[j]),pointerGraceTimerRef:D,onPointerGraceIntentChange:p.useCallback(L=>{k.current=L},[]),children:b.jsx(z,{...B,children:b.jsx(is,{asChild:!0,trapped:o,onMountAutoFocus:U(i,L=>{L.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:b.jsx(Vo,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:b.jsx(QN,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:P,onCurrentTabStopIdChange:C,onEntryFocus:U(l,L=>{y.isUsingKeyboardRef.current||L.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(Od,{role:"menu","aria-orientation":"vertical","data-state":Pj(g.open),"data-radix-menu-content":"",dir:y.dir,...w,...m,ref:A,style:{outline:"none",...m.style},onKeyDown:U(m.onKeyDown,L=>{const te=L.target.closest("[data-radix-menu-content]")===L.currentTarget,le=L.ctrlKey||L.altKey||L.metaKey,ae=L.key.length===1;te&&(L.key==="Tab"&&L.preventDefault(),!le&&ae&&V(L.key));const oe=E.current;if(L.target!==oe||!ile.includes(L.key))return;L.preventDefault();const Me=S().filter(K=>!K.disabled).map(K=>K.ref.current);ej.includes(L.key)&&Me.reverse(),Ele(Me)}),onBlur:U(e.onBlur,L=>{L.currentTarget.contains(L.target)||(window.clearTimeout(T.current),M.current="")}),onPointerMove:U(e.onPointerMove,Xa(L=>{const H=L.target,te=I.current!==L.clientX;if(L.currentTarget.contains(H)&&te){const le=L.clientX>I.current?"right":"left";_.current=le,I.current=L.clientX}}))})})})})})})});aj.displayName=sr;var gle="MenuGroup",eb=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(ee.div,{role:"group",...n,ref:t})});eb.displayName=gle;var yle="MenuLabel",sj=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(ee.div,{...n,ref:t})});sj.displayName=yle;var ou="MenuItem",s1="menu.itemSelect",Md=p.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=p.useRef(null),a=zs(ou,e.__scopeMenu),s=Qy(ou,e.__scopeMenu),l=ie(t,i),c=p.useRef(!1),u=()=>{const d=i.current;if(!r&&d){const f=new CustomEvent(s1,{bubbles:!0,cancelable:!0});d.addEventListener(s1,h=>n?.(h),{once:!0}),uv(d,f),f.defaultPrevented?c.current=!1:a.onClose()}};return b.jsx(lj,{...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 f=s.searchRef.current!=="";r||f&&d.key===" "||Om.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Md.displayName=ou;var lj=p.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,a=Qy(ou,r),s=tj(r),l=p.useRef(null),c=ie(t,l),[u,d]=p.useState(!1),[f,h]=p.useState("");return p.useEffect(()=>{const v=l.current;v&&h((v.textContent??"").trim())},[i.children]),b.jsx(qa.ItemSlot,{scope:r,disabled:n,textValue:o??f,children:b.jsx(JN,{asChild:!0,...s,focusable:!n,children:b.jsx(ee.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,Xa(v=>{n?a.onItemLeave(v):(a.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:U(e.onPointerLeave,Xa(v=>a.onItemLeave(v))),onFocus:U(e.onFocus,()=>d(!0)),onBlur:U(e.onBlur,()=>d(!1))})})})}),ble="MenuCheckboxItem",cj=p.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return b.jsx(hj,{scope:e.__scopeMenu,checked:r,children:b.jsx(Md,{role:"menuitemcheckbox","aria-checked":iu(r)?"mixed":r,...o,ref:t,"data-state":nb(r),onSelect:U(o.onSelect,()=>n?.(iu(r)?!0:!r),{checkForDefaultPrevented:!1})})})});cj.displayName=ble;var uj="MenuRadioGroup",[wle,xle]=Yo(uj,{value:void 0,onValueChange:()=>{}}),dj=p.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=Et(n);return b.jsx(wle,{scope:e.__scopeMenu,value:r,onValueChange:i,children:b.jsx(eb,{...o,ref:t})})});dj.displayName=uj;var fj="MenuRadioItem",pj=p.forwardRef((e,t)=>{const{value:r,...n}=e,o=xle(fj,e.__scopeMenu),i=r===o.value;return b.jsx(hj,{scope:e.__scopeMenu,checked:i,children:b.jsx(Md,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":nb(i),onSelect:U(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});pj.displayName=fj;var tb="MenuItemIndicator",[hj,Sle]=Yo(tb,{checked:!1}),mj=p.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=Sle(tb,r);return b.jsx(At,{present:n||iu(i.checked)||i.checked===!0,children:b.jsx(ee.span,{...o,ref:t,"data-state":nb(i.checked)})})});mj.displayName=tb;var Ple="MenuSeparator",vj=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});vj.displayName=Ple;var Cle="MenuArrow",gj=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Ws(r);return b.jsx(Ed,{...o,...n,ref:t})});gj.displayName=Cle;var rb="MenuSub",[Ole,yj]=Yo(rb),bj=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=Zn(rb,t),a=Ws(t),[s,l]=p.useState(null),[c,u]=p.useState(null),d=Et(o);return p.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),b.jsx($s,{...a,children:b.jsx(rj,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:b.jsx(Ole,{scope:t,contentId:Rt(),triggerId:Rt(),trigger:s,onTriggerChange:l,children:r})})})};bj.displayName=rb;var Pa="MenuSubTrigger",wj=p.forwardRef((e,t)=>{const r=Zn(Pa,e.__scopeMenu),n=zs(Pa,e.__scopeMenu),o=yj(Pa,e.__scopeMenu),i=Qy(Pa,e.__scopeMenu),a=p.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=p.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return p.useEffect(()=>u,[u]),p.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),b.jsx(Xy,{asChild:!0,...c,children:b.jsx(lj,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Pj(r.open),...e,ref:Hr(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:U(e.onPointerMove,Xa(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,Xa(d=>{u();const f=r.content?.getBoundingClientRect();if(f){const h=r.content?.dataset.side,v=h==="right",m=v?-5:5,g=f[v?"left":"right"],y=f[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:g,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:g,y:f.bottom}],side:h}),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 f=i.searchRef.current!=="";e.disabled||f&&d.key===" "||ale[n.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});wj.displayName=Pa;var xj="MenuSubContent",Sj=p.forwardRef((e,t)=>{const r=oj(sr,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=Zn(sr,e.__scopeMenu),a=zs(sr,e.__scopeMenu),s=yj(xj,e.__scopeMenu),l=p.useRef(null),c=ie(t,l);return b.jsx(qa.Provider,{scope:e.__scopeMenu,children:b.jsx(At,{present:n||i.open,children:b.jsx(qa.Slot,{scope:e.__scopeMenu,children:b.jsx(Jy,{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),f=sle[a.dir].includes(u.key);d&&f&&(i.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});Sj.displayName=xj;function Pj(e){return e?"open":"closed"}function iu(e){return e==="indeterminate"}function nb(e){return iu(e)?"indeterminate":e?"checked":"unchecked"}function Ele(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Ale(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Tle(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=Ale(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 Mle(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,f=l.y;u>n!=f>n&&r<(d-c)*(n-u)/(f-u)+c&&(o=!o)}return o}function kle(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return Mle(r,t)}function Xa(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Cj=nj,Oj=Xy,Ej=ij,Aj=aj,Tj=eb,Mj=sj,kj=Md,Dj=cj,_j=dj,Nj=pj,jj=mj,Rj=vj,Ij=gj,Lj=bj,$j=wj,Fj=Sj,ob="ContextMenu",[Dle]=it(ob,[Td]),Mt=Td(),[_le,Vj]=Dle(ob),Bj=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:o,modal:i=!0}=e,[a,s]=p.useState(!1),l=Mt(t),c=Et(n),u=p.useCallback(d=>{s(d),c(d)},[c]);return b.jsx(_le,{scope:t,open:a,onOpenChange:u,modal:i,children:b.jsx(Cj,{...l,dir:o,open:a,onOpenChange:u,modal:i,children:r})})};Bj.displayName=ob;var Wj="ContextMenuTrigger",zj=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...o}=e,i=Vj(Wj,r),a=Mt(r),s=p.useRef({x:0,y:0}),l=p.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),c=p.useRef(0),u=p.useCallback(()=>window.clearTimeout(c.current),[]),d=f=>{s.current={x:f.clientX,y:f.clientY},i.onOpenChange(!0)};return p.useEffect(()=>u,[u]),p.useEffect(()=>{n&&u()},[n,u]),b.jsxs(b.Fragment,{children:[b.jsx(Oj,{...a,virtualRef:l}),b.jsx(ee.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,f=>{u(),d(f),f.preventDefault()}),onPointerDown:n?e.onPointerDown:U(e.onPointerDown,Dl(f=>{u(),c.current=window.setTimeout(()=>d(f),700)})),onPointerMove:n?e.onPointerMove:U(e.onPointerMove,Dl(u)),onPointerCancel:n?e.onPointerCancel:U(e.onPointerCancel,Dl(u)),onPointerUp:n?e.onPointerUp:U(e.onPointerUp,Dl(u))})]})});zj.displayName=Wj;var Nle="ContextMenuPortal",Kj=e=>{const{__scopeContextMenu:t,...r}=e,n=Mt(t);return b.jsx(Ej,{...n,...r})};Kj.displayName=Nle;var Uj="ContextMenuContent",Hj=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Vj(Uj,r),i=Mt(r),a=p.useRef(!1);return b.jsx(Aj,{...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)"}})});Hj.displayName=Uj;var jle="ContextMenuGroup",Gj=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx(Tj,{...o,...n,ref:t})});Gj.displayName=jle;var Rle="ContextMenuLabel",Yj=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx(Mj,{...o,...n,ref:t})});Yj.displayName=Rle;var Ile="ContextMenuItem",qj=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx(kj,{...o,...n,ref:t})});qj.displayName=Ile;var Lle="ContextMenuCheckboxItem",Xj=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx(Dj,{...o,...n,ref:t})});Xj.displayName=Lle;var $le="ContextMenuRadioGroup",Zj=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx(_j,{...o,...n,ref:t})});Zj.displayName=$le;var Fle="ContextMenuRadioItem",Qj=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx(Nj,{...o,...n,ref:t})});Qj.displayName=Fle;var Vle="ContextMenuItemIndicator",Jj=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx(jj,{...o,...n,ref:t})});Jj.displayName=Vle;var Ble="ContextMenuSeparator",eR=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx(Rj,{...o,...n,ref:t})});eR.displayName=Ble;var Wle="ContextMenuArrow",zle=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx(Ij,{...o,...n,ref:t})});zle.displayName=Wle;var tR="ContextMenuSub",rR=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:o,defaultOpen:i}=e,a=Mt(t),[s,l]=wt({prop:o,defaultProp:i??!1,onChange:n,caller:tR});return b.jsx(Lj,{...a,open:s,onOpenChange:l,children:r})};rR.displayName=tR;var Kle="ContextMenuSubTrigger",nR=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx($j,{...o,...n,ref:t})});nR.displayName=Kle;var Ule="ContextMenuSubContent",oR=p.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=Mt(r);return b.jsx(Fj,{...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)"}})});oR.displayName=Ule;function Dl(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var Hle=Bj,Gle=zj,Yle=Kj,qle=Hj,Xle=Gj,Zle=Yj,Qle=qj,Jle=Xj,ece=Zj,tce=Qj,iR=Jj,rce=eR,nce=rR,oce=nR,ice=oR;const ace=Hle,sce=Gle,lce=Xle,aR=Yle,cce=nce,uce=ece,sR=p.forwardRef(({className:e,inset:t,children:r,...n},o)=>b.jsxs(oce,{ref:o,className:N("text-body-sm 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,b.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:b.jsx("path",{d:"m9 18 6-6-6-6"})})]}));sR.displayName="ContextMenuSubTrigger";const lR=p.forwardRef(({className:e,...t},r)=>b.jsx(ice,{ref:r,className:N("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}));lR.displayName="ContextMenuSubContent";const cR=p.forwardRef(({className:e,...t},r)=>b.jsx(aR,{children:b.jsx(qle,{ref:r,className:N("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})}));cR.displayName="ContextMenuContent";const uR=p.forwardRef(({className:e,inset:t,...r},n)=>b.jsx(Qle,{ref:n,className:N("text-body-sm 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}));uR.displayName="ContextMenuItem";const dR=p.forwardRef(({className:e,children:t,checked:r,...n},o)=>b.jsxs(Jle,{ref:o,className:N("text-body-sm 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:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(iR,{children:b.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:b.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));dR.displayName="ContextMenuCheckboxItem";const fR=p.forwardRef(({className:e,children:t,...r},n)=>b.jsxs(tce,{ref:n,className:N("text-body-sm 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:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(iR,{children:b.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:b.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));fR.displayName="ContextMenuRadioItem";const pR=p.forwardRef(({className:e,inset:t,...r},n)=>b.jsx(Zle,{ref:n,className:N("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));pR.displayName="ContextMenuLabel";const hR=p.forwardRef(({className:e,...t},r)=>b.jsx(rce,{ref:r,className:N("bg-border -mx-1 my-1 h-px",e),...t}));hR.displayName="ContextMenuSeparator";const mR=p.forwardRef(({className:e,...t},r)=>b.jsx("span",{ref:r,className:N("text-small text-tertiary ml-auto tracking-widest",e),...t}));mR.displayName="ContextMenuShortcut";function dce(e){const t=fce(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(hce);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function fce(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=vce(o),s=mce(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Hr(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pce=Symbol("radix.slottable");function hce(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pce}function mce(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 vce(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 kd="Popover",[vR]=it(kd,[Xn]),Ks=Xn(),[gce,Qn]=vR(kd),gR=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Ks(t),l=p.useRef(null),[c,u]=p.useState(!1),[d,f]=wt({prop:n,defaultProp:o??!1,onChange:i,caller:kd});return b.jsx($s,{...s,children:b.jsx(gce,{scope:t,contentId:Rt(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:c,onCustomAnchorAdd:p.useCallback(()=>u(!0),[]),onCustomAnchorRemove:p.useCallback(()=>u(!1),[]),modal:a,children:r})})};gR.displayName=kd;var yR="PopoverAnchor",yce=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Qn(yR,r),i=Ks(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return p.useEffect(()=>(a(),()=>s()),[a,s]),b.jsx(Fs,{...i,...n,ref:t})});yce.displayName=yR;var bR="PopoverTrigger",wR=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Qn(bR,r),i=Ks(r),a=ie(t,o.triggerRef),s=b.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":OR(o.open),...n,ref:a,onClick:U(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:b.jsx(Fs,{asChild:!0,...i,children:s})});wR.displayName=bR;var ib="PopoverPortal",[bce,wce]=vR(ib,{forceMount:void 0}),xR=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=Qn(ib,t);return b.jsx(bce,{scope:t,forceMount:r,children:b.jsx(At,{present:r||i.open,children:b.jsx(Bo,{asChild:!0,container:o,children:n})})})};xR.displayName=ib;var Di="PopoverContent",SR=p.forwardRef((e,t)=>{const r=wce(Di,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=Qn(Di,e.__scopePopover);return b.jsx(At,{present:n||i.open,children:i.modal?b.jsx(Sce,{...o,ref:t}):b.jsx(Pce,{...o,ref:t})})});SR.displayName=Di;var xce=dce("PopoverContent.RemoveScroll"),Sce=p.forwardRef((e,t)=>{const r=Qn(Di,e.__scopePopover),n=p.useRef(null),o=ie(t,n),i=p.useRef(!1);return p.useEffect(()=>{const a=n.current;if(a)return Su(a)},[]),b.jsx(as,{as:xce,allowPinchZoom:!0,children:b.jsx(PR,{...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})})})}),Pce=p.forwardRef((e,t)=>{const r=Qn(Di,e.__scopePopover),n=p.useRef(!1),o=p.useRef(!1);return b.jsx(PR,{...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()}})}),PR=p.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=Qn(Di,r),h=Ks(r);return wu(),b.jsx(is,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Vo,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:b.jsx(Od,{"data-state":OR(f.open),role:"dialog",id:f.contentId,...h,...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)"}})})})}),CR="PopoverClose",Cce=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Qn(CR,r);return b.jsx(ee.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});Cce.displayName=CR;var Oce="PopoverArrow",Ece=p.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ks(r);return b.jsx(Ed,{...o,...n,ref:t})});Ece.displayName=Oce;function OR(e){return e?"open":"closed"}var ab=gR,sb=wR,lb=xR,cb=SR;function l1(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 ER=ne(["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"}}),AR=p.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":f},h)=>{const[v,m]=p.useState(!1),[g,y]=p.useState(e||new Date),w=p.useMemo(()=>{const P=[];return o&&P.push({before:o}),i&&P.push({after:i}),P.length>0?P:void 0},[o,i]),x=P=>{t?.(P??null),P&&m(!1)},S=()=>{t?.(new Date),m(!1)};return p.useEffect(()=>{e&&y(e)},[e]),b.jsxs(ab,{open:v,onOpenChange:m,children:[b.jsx(sb,{asChild:!0,children:b.jsxs("button",{ref:h,id:c,type:"button",disabled:a,className:N(ER({variant:s}),l),"aria-label":d||"Choose date","aria-describedby":f,"aria-haspopup":"dialog","aria-expanded":v,children:[b.jsx("span",{className:N("truncate",!e&&"text-tertiary text-body-sm"),children:e?l1(e,n):r}),b.jsx(gv,{className:"text-tertiary h-4 w-4 shrink-0"}),u&&b.jsx("input",{type:"hidden",name:u,value:e?l1(e,"yyyy-MM-dd"):""})]})}),b.jsx(lb,{children:b.jsxs(cb,{className:N("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:[b.jsx(js,{mode:"single",selected:e??void 0,onSelect:x,month:g,onMonthChange:y,disabled:w}),b.jsx("div",{className:"border-border mt-4 border-t pt-4",children:b.jsx("button",{type:"button",onClick:S,className:N("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"})})]})})]})});AR.displayName="DatePicker";function au(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)}function Ace(e,t){if(!e?.from)return"";const r=au(e.from,t);if(!e.to)return`${r} – ...`;const n=au(e.to,t);return`${r} – ${n}`}const TR=ne(["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"}}),MR=p.forwardRef(({value:e,onChange:t,placeholder:r="Select date range",format:n="MM/dd/yyyy",minDate:o,maxDate:i,disabled:a=!1,numberOfMonths:s=2,variant:l,className:c,id:u,name:d,"aria-label":f,"aria-describedby":h},v)=>{const[m,g]=p.useState(!1),[y,w]=p.useState(e?.from||new Date),x=p.useMemo(()=>{const E=[];return o&&E.push({before:o}),i&&E.push({after:i}),E.length>0?E:void 0},[o,i]),S=E=>{t?.(E),E?.from&&E?.to&&g(!1)},P=()=>{const E=new Date;t?.({from:E,to:E}),g(!1)},C=()=>{t?.(void 0)};return p.useEffect(()=>{e?.from&&w(e.from)},[e?.from]),b.jsxs(ab,{open:m,onOpenChange:g,children:[b.jsx(sb,{asChild:!0,children:b.jsxs("button",{ref:v,id:u,type:"button",disabled:a,className:N(TR({variant:l}),c),"aria-label":f||"Choose date range","aria-describedby":h,"aria-haspopup":"dialog","aria-expanded":m,children:[b.jsx("span",{className:N("truncate",!e?.from&&"text-tertiary text-body-sm"),children:e?.from?Ace(e,n):r}),b.jsx(gv,{className:"text-tertiary h-4 w-4 shrink-0"}),d&&b.jsx("input",{type:"hidden",name:d,value:e?.from?`${au(e.from,"yyyy-MM-dd")}/${au(e.to,"yyyy-MM-dd")}`:""})]})}),b.jsx(lb,{children:b.jsxs(cb,{className:N("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:[b.jsx(js,{mode:"range",selected:e,onSelect:S,month:y,onMonthChange:w,numberOfMonths:s,disabled:x}),b.jsxs("div",{className:"border-border mt-4 flex items-center justify-between border-t pt-4",children:[b.jsx("button",{type:"button",onClick:C,className:N("text-tertiary hover:text-secondary text-sm","transition-colors focus-visible:underline focus-visible:outline-none"),children:"Clear"}),b.jsx("button",{type:"button",onClick:P,className:N("text-sunflower hover:text-sunflower-hover text-sm font-medium","transition-colors focus-visible:underline focus-visible:outline-none"),children:"Today"})]})]})})]})});MR.displayName="DateRangePicker";function Tce(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 c1(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 kR=ne(["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"}}),DR=p.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:f=1,"aria-label":h,"aria-describedby":v},m)=>{const[g,y]=p.useState(!1),[w,x]=p.useState(e||new Date),[S,P]=p.useState(()=>e?`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`:"12:00"),C=p.useMemo(()=>{const M=[];return o&&M.push({before:o}),i&&M.push({after:i}),M.length>0?M:void 0},[o,i]),E=M=>{if(!M)return;const{hours:D,minutes:k}=c1(S),_=new Date(M.getFullYear(),M.getMonth(),M.getDate(),D,k);t?.(_)},A=M=>{const D=M.target.value;if(P(D),e){const{hours:k,minutes:_}=c1(D),I=new Date(e);I.setHours(k,_),t?.(I)}},T=()=>{const M=new Date;P(`${String(M.getHours()).padStart(2,"0")}:${String(M.getMinutes()).padStart(2,"0")}`),t?.(M),y(!1)};return p.useEffect(()=>{e&&(x(e),P(`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`))},[e]),b.jsxs(ab,{open:g,onOpenChange:y,children:[b.jsx(sb,{asChild:!0,children:b.jsxs("button",{ref:m,id:c,type:"button",disabled:a,className:N(kR({variant:s}),l),"aria-label":h||"Choose date and time","aria-describedby":v,"aria-haspopup":"dialog","aria-expanded":g,children:[b.jsx("span",{className:N("truncate",!e&&"text-tertiary text-body-sm"),children:e?Tce(e,n,d):r}),b.jsxs("div",{className:"flex items-center gap-1",children:[b.jsx(UB,{className:"text-tertiary h-4 w-4 shrink-0"}),b.jsx(gv,{className:"text-tertiary h-4 w-4 shrink-0"})]}),u&&b.jsx("input",{type:"hidden",name:u,value:e?e.toISOString():""})]})}),b.jsx(lb,{children:b.jsxs(cb,{className:N("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:[b.jsx(js,{mode:"single",selected:e??void 0,onSelect:E,month:w,onMonthChange:x,disabled:C}),b.jsx("div",{className:"border-border mt-4 border-t pt-4",children:b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx("label",{htmlFor:"time-input",className:"text-secondary text-sm font-medium",children:"Time"}),b.jsx("input",{id:"time-input",type:"time",value:S,onChange:A,step:f*60,className:N("bg-card text-body-sm text-primary placeholder:text-body-sm 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"})]})}),b.jsx("div",{className:"border-border mt-4 border-t pt-4",children:b.jsx("button",{type:"button",onClick:T,className:N("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"})})]})})]})});DR.displayName="DateTimePicker";const _R=ne("bg-border shrink-0",{variants:{orientation:{horizontal:"h-px w-full",vertical:"h-full w-px"}},defaultVariants:{orientation:"horizontal"}}),NR=p.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>{const i=t??"horizontal";return b.jsx("div",{ref:o,role:r?"none":"separator","aria-orientation":r?void 0:i,className:N(_R({orientation:i,className:e})),...n})});NR.displayName="Divider";var Dd="DropdownMenu",[Mce]=it(Dd,[Td]),kt=Td(),[kce,jR]=Mce(Dd),RR=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=kt(t),c=p.useRef(null),[u,d]=wt({prop:o,defaultProp:i??!1,onChange:a,caller:Dd});return b.jsx(kce,{scope:t,triggerId:Rt(),triggerRef:c,contentId:Rt(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:s,children:b.jsx(Cj,{...l,open:u,onOpenChange:d,dir:n,modal:s,children:r})})};RR.displayName=Dd;var IR="DropdownMenuTrigger",LR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=jR(IR,r),a=kt(r);return b.jsx(Oj,{asChild:!0,...a,children:b.jsx(ee.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:Hr(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())})})})});LR.displayName=IR;var Dce="DropdownMenuPortal",$R=e=>{const{__scopeDropdownMenu:t,...r}=e,n=kt(t);return b.jsx(Ej,{...n,...r})};$R.displayName=Dce;var FR="DropdownMenuContent",VR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=jR(FR,r),i=kt(r),a=p.useRef(!1);return b.jsx(Aj,{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)"}})});VR.displayName=FR;var _ce="DropdownMenuGroup",BR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx(Tj,{...o,...n,ref:t})});BR.displayName=_ce;var Nce="DropdownMenuLabel",WR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx(Mj,{...o,...n,ref:t})});WR.displayName=Nce;var jce="DropdownMenuItem",zR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx(kj,{...o,...n,ref:t})});zR.displayName=jce;var Rce="DropdownMenuCheckboxItem",KR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx(Dj,{...o,...n,ref:t})});KR.displayName=Rce;var Ice="DropdownMenuRadioGroup",UR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx(_j,{...o,...n,ref:t})});UR.displayName=Ice;var Lce="DropdownMenuRadioItem",HR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx(Nj,{...o,...n,ref:t})});HR.displayName=Lce;var $ce="DropdownMenuItemIndicator",GR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx(jj,{...o,...n,ref:t})});GR.displayName=$ce;var Fce="DropdownMenuSeparator",YR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx(Rj,{...o,...n,ref:t})});YR.displayName=Fce;var Vce="DropdownMenuArrow",Bce=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx(Ij,{...o,...n,ref:t})});Bce.displayName=Vce;var Wce=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=kt(t),[s,l]=wt({prop:n,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return b.jsx(Lj,{...a,open:s,onOpenChange:l,children:r})},zce="DropdownMenuSubTrigger",qR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx($j,{...o,...n,ref:t})});qR.displayName=zce;var Kce="DropdownMenuSubContent",XR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=kt(r);return b.jsx(Fj,{...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)"}})});XR.displayName=Kce;var Uce=RR,ZR=LR,Hce=$R,Gce=VR,Yce=BR,qce=WR,Xce=zR,Zce=KR,Qce=UR,Jce=HR,QR=GR,eue=YR,tue=Wce,rue=qR,nue=XR;const oue=Uce,iue=ZR,aue=Yce,JR=Hce,sue=tue,lue=Qce,eI=p.forwardRef(({className:e,inset:t,children:r,...n},o)=>b.jsxs(rue,{ref:o,className:N("text-body-sm 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,b.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:b.jsx("path",{d:"m9 18 6-6-6-6"})})]}));eI.displayName="DropdownMenuSubTrigger";const tI=p.forwardRef(({className:e,...t},r)=>b.jsx(nue,{ref:r,className:N("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}));tI.displayName="DropdownMenuSubContent";const rI=p.forwardRef(({className:e,sideOffset:t=4,...r},n)=>b.jsx(JR,{children:b.jsx(Gce,{ref:n,sideOffset:t,className:N("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})}));rI.displayName="DropdownMenuContent";const nI=p.forwardRef(({className:e,inset:t,...r},n)=>b.jsx(Xce,{ref:n,className:N("text-body-sm 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}));nI.displayName="DropdownMenuItem";const oI=p.forwardRef(({className:e,children:t,checked:r,...n},o)=>b.jsxs(Zce,{ref:o,className:N("text-body-sm 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:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(QR,{children:b.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:b.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));oI.displayName="DropdownMenuCheckboxItem";const iI=p.forwardRef(({className:e,children:t,...r},n)=>b.jsxs(Jce,{ref:n,className:N("text-body-sm 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:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(QR,{children:b.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:b.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));iI.displayName="DropdownMenuRadioItem";const aI=p.forwardRef(({className:e,inset:t,...r},n)=>b.jsx(qce,{ref:n,className:N("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));aI.displayName="DropdownMenuLabel";const sI=p.forwardRef(({className:e,...t},r)=>b.jsx(eue,{ref:r,className:N("bg-border -mx-1 my-1 h-px",e),...t}));sI.displayName="DropdownMenuSeparator";const lI=p.forwardRef(({className:e,...t},r)=>b.jsx("span",{ref:r,className:N("text-small text-tertiary ml-auto tracking-widest",e),...t}));lI.displayName="DropdownMenuShortcut";const cI=p.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 b.jsxs(ZR,{ref:n,className:N("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:[b.jsx(qO,{className:o[t]}),b.jsx("span",{className:"sr-only",children:"Open menu"})]})});cI.displayName="ActionsMenuButton";const uI=ne("inline-block",{variants:{size:{xs:"h-3",sm:"h-4",md:"h-5",lg:"h-6",xl:"h-8"}},defaultVariants:{size:"md"}});function cue(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 dI=p.forwardRef(({className:e,size:t,compact:r,...n},o)=>{const i=cue(r),a=r!==!0;return b.jsx("svg",{ref:o,viewBox:"0 0 179.96 38.58",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:N(uI({size:t,className:e})),"aria-label":"Engrate",role:"img",...n,children:b.jsx("g",{id:"engrate-logo",children:b.jsxs("g",{children:[a&&b.jsxs("g",{className:i,children:[b.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"}),b.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"}),b.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"}),b.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"}),b.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"}),b.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"}),b.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"})]}),b.jsxs("g",{children:[b.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"}),b.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"}),b.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"})]})]})})})});dI.displayName="EngrateLogo";const fI=ne("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"}}),pI=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Re:"span";return b.jsx(a,{className:N(fI({variant:t,size:r,className:e})),ref:i,...o})});pI.displayName="Eyebrow";const hI=ne("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"}}),mI=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Re:"footer";return b.jsx(a,{ref:i,className:N(hI({variant:t,size:r,className:e})),...o})});mI.displayName="Footer";const vI=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Re:"div";return b.jsx(o,{ref:n,className:N("grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-4",e),...r})});vI.displayName="FooterContent";const gI=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Re:"div";return b.jsx(o,{ref:n,className:N("flex flex-col gap-3",e),...r})});gI.displayName="FooterSection";const yI=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Re:"h3";return b.jsx(o,{ref:n,className:N("text-small font-medium",e),...r})});yI.displayName="FooterHeading";const bI=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Re:"nav";return b.jsx(o,{ref:n,className:N("text-small text-secondary flex flex-col gap-2",e),...r})});bI.displayName="FooterLinks";const wI=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Re:"div";return b.jsx(o,{ref:n,className:N("border-border mt-8 flex flex-col items-center justify-between gap-4 border-t pt-8 sm:flex-row",e),...r})});wI.displayName="FooterBottom";const xI=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Re:"p";return b.jsx(o,{ref:n,className:N("text-small text-secondary",e),...r})});xI.displayName="FooterCopyright";const ub=p.forwardRef(({className:e,variant:t="default",children:r,...n},o)=>r?b.jsx("p",{ref:o,className:N("text-descriptive font-sans text-sm",t==="default"?"text-tertiary":"text-error",e),...n,children:r}):null);ub.displayName="FormMessage";var uue=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],due=uue.reduce((e,t)=>{const r=fA(`Primitive.${t}`),n=p.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),fue="Label",SI=p.forwardRef((e,t)=>b.jsx(due.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));SI.displayName=fue;var pue=SI;const PI=ne("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"}}),db=p.forwardRef(({className:e,size:t,...r},n)=>b.jsx(pue,{ref:n,className:N(PI({size:t}),e),...r}));db.displayName="Label";const CI=p.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 b.jsxs("div",{ref:l,className:N("flex flex-col gap-1.5",e),...s,children:[t&&b.jsx(db,{htmlFor:i,size:r,children:t}),a,(n||o)&&b.jsx(ub,{id:c,variant:o?"error":"default",role:o?"alert":void 0,children:o||n})]})});CI.displayName="FormField";const hue=ne("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"}}),mue={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"},vue={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},gue={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},yue={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"};function yo(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 OI=p.forwardRef(({className:e,cols:t,gap:r,align:n,justify:o,as:i="div",asChild:a=!1,...s},l)=>{const c=a?Re:i,u=yo(t,mue,1),d=yo(r,vue,"md"),f=yo(n,gue,"stretch"),h=yo(o,yue,"stretch");return b.jsx(c,{className:N("grid",u,d,f,h,e),ref:l,...s})});OI.displayName="Grid";const bue=ne("",{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:{}}),wue={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"},xue={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"},Sue={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"},EI=p.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:n,as:o="div",asChild:i=!1,...a},s)=>{const l=i?Re:o,c=yo(t,wue),u=yo(r,xue),d=yo(n,Sue);return b.jsx(l,{className:N(c,u,d,e),ref:s,...a})});EI.displayName="GridItem";const AI=ne("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}}),TI=p.forwardRef(({className:e,variant:t,size:r,sticky:n,asChild:o=!1,...i},a)=>{const s=o?Re:"header";return b.jsx(s,{ref:a,className:N(AI({variant:t,size:r,sticky:n,className:e})),...i})});TI.displayName="Header";const MI=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Re:"div";return b.jsx(o,{ref:n,className:N("flex shrink-0 items-center",e),...r})});MI.displayName="HeaderLogo";const kI=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Re:"nav";return b.jsx(o,{ref:n,className:N("flex items-center gap-6",e),...r})});kI.displayName="HeaderNav";const DI=p.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Re:"div";return b.jsx(o,{ref:n,className:N("flex shrink-0 items-center gap-3",e),...r})});DI.displayName="HeaderActions";const _I=ne("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"}}),Pue={hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4"},fb=p.forwardRef(({className:e,level:t="h1",as:r,asChild:n=!1,...o},i)=>{const a=r??Pue[t??"h1"],s=n?Re:a;return b.jsx(s,{className:N(_I({level:t,className:e})),ref:i,...o})});fb.displayName="Heading";const NI=ne("bg-card text-body-sm text-primary placeholder:text-tertiary placeholder:text-body-sm flex h-8 w-full rounded-md border px-3 py-1 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"}}),jI=p.forwardRef(({className:e,variant:t,type:r="text",...n},o)=>b.jsx("input",{type:r,className:N(NI({variant:t}),e),ref:o,...n}));jI.displayName="Input";const RI=ne("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),_l=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],II=p.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,...f},h)=>{const v=p.useMemo(()=>{if(n)return n;const m=r[0];return m?Object.keys(m).filter(y=>y!=="label"&&typeof m[y]=="number").map((y,w)=>({key:y,name:y.charAt(0).toUpperCase()+y.slice(1),color:_l[w%_l.length]})):[]},[r,n]);return b.jsx("div",{ref:h,className:N(RI({size:t,className:e})),role:"img",...f,children:b.jsx(Gv,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:b.jsxs(une,{data:r,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&b.jsx(Ey,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),b.jsx(Xc,{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}),b.jsx(Zc,{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&&b.jsx(dy,{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&&b.jsx(Hu,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>b.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),v.map((m,g)=>b.jsx(u_,{type:u?"monotone":"linear",dataKey:m.key,name:m.name,stroke:m.color||_l[g%_l.length],strokeWidth:c,dot:d,activeDot:d?{r:6}:!1},m.key))]})})})});II.displayName="LineChart";const LI=ne("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"}}),$I=p.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Re:"a";return b.jsx(a,{className:N(LI({variant:t,size:r,className:e})),ref:i,...o})});$I.displayName="Link";const pb=O.createContext({});function hb(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const FI=typeof window<"u",VI=FI?O.useLayoutEffect:O.useEffect,_d=O.createContext(null);function mb(e,t){e.indexOf(t)===-1&&e.push(t)}function su(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Ur=(e,t,r)=>r>t?t:r<e?e:r;function Em(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Zi=()=>{},hn=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(Zi=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(Em(t,r))},hn=(e,t,r)=>{if(!e)throw new Error(Em(t,r))});const mn={},BI=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function WI(e){return typeof e=="object"&&e!==null}const zI=e=>/^0[^.\s]+$/u.test(e);function vb(e){let t;return()=>(t===void 0&&(t=e()),t)}const lr=e=>e,Cue=(e,t)=>r=>t(e(r)),Us=(...e)=>e.reduce(Cue),Za=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class gb{constructor(){this.subscriptions=[]}add(t){return mb(this.subscriptions,t),()=>su(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const cr=e=>e*1e3,ar=e=>e/1e3;function KI(e,t){return t?e*(1e3/t):0}const u1=new Set;function yb(e,t,r){e||u1.has(t)||(console.warn(Em(t,r)),u1.add(t))}const UI=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Oue=1e-7,Eue=12;function Aue(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=UI(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>Oue&&++s<Eue);return a}function Hs(e,t,r,n){if(e===t&&r===n)return lr;const o=i=>Aue(i,0,1,e,r);return i=>i===0||i===1?i:UI(o(i),t,n)}const HI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,GI=e=>t=>1-e(1-t),YI=Hs(.33,1.53,.69,.99),bb=GI(YI),qI=HI(bb),XI=e=>(e*=2)<1?.5*bb(e):.5*(2-Math.pow(2,-10*(e-1))),wb=e=>1-Math.sin(Math.acos(e)),ZI=GI(wb),QI=HI(wb),Tue=Hs(.42,0,1,1),Mue=Hs(0,0,.58,1),JI=Hs(.42,0,.58,1),kue=e=>Array.isArray(e)&&typeof e[0]!="number",e2=e=>Array.isArray(e)&&typeof e[0]=="number",d1={linear:lr,easeIn:Tue,easeInOut:JI,easeOut:Mue,circIn:wb,circInOut:QI,circOut:ZI,backIn:bb,backInOut:qI,backOut:YI,anticipate:XI},Due=e=>typeof e=="string",f1=e=>{if(e2(e)){hn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return Hs(t,r,n,o)}else if(Due(e))return hn(d1[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),d1[e];return e},Nl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _ue(e,t){let r=new Set,n=new Set,o=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(u){a.has(u)&&(c.schedule(u),e()),u(s)}const c={schedule:(u,d=!1,f=!1)=>{const v=f&&o?r:n;return d&&a.add(u),v.has(u)||v.add(u),u},cancel:u=>{n.delete(u),a.delete(u)},process:u=>{if(s=u,o){i=!0;return}o=!0,[r,n]=[n,r],r.forEach(l),r.clear(),o=!1,i&&(i=!1,c.process(u))}};return c}const Nue=40;function t2(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=Nl.reduce((x,S)=>(x[S]=_ue(i),x),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:v}=a,m=()=>{const x=mn.useManualTiming?o.timestamp:performance.now();r=!1,mn.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(x-o.timestamp,Nue),1)),o.timestamp=x,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),f.process(o),h.process(o),v.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(m))},g=()=>{r=!0,n=!0,o.isProcessing||e(m)};return{schedule:Nl.reduce((x,S)=>{const P=a[S];return x[S]=(C,E=!1,A=!1)=>(r||g(),P.schedule(C,E,A)),x},{}),cancel:x=>{for(let S=0;S<Nl.length;S++)a[Nl[S]].cancel(x)},state:o,steps:a}}const{schedule:_e,cancel:Kn,state:yt,steps:qp}=t2(typeof requestAnimationFrame<"u"?requestAnimationFrame:lr,!0);let Gl;function jue(){Gl=void 0}const Nt={now:()=>(Gl===void 0&&Nt.set(yt.isProcessing||mn.useManualTiming?yt.timestamp:performance.now()),Gl),set:e=>{Gl=e,queueMicrotask(jue)}},r2=e=>t=>typeof t=="string"&&t.startsWith(e),n2=r2("--"),Rue=r2("var(--"),xb=e=>Rue(e)?Iue.test(e.split("/*")[0].trim()):!1,Iue=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function p1(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Qi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qa={...Qi,transform:e=>Ur(0,1,e)},jl={...Qi,default:1},Aa=e=>Math.round(e*1e5)/1e5,Sb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Lue(e){return e==null}const $ue=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pb=(e,t)=>r=>!!(typeof r=="string"&&$ue.test(r)&&r.startsWith(e)||t&&!Lue(r)&&Object.prototype.hasOwnProperty.call(r,t)),o2=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,i,a,s]=n.match(Sb);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Fue=e=>Ur(0,255,e),Xp={...Qi,transform:e=>Math.round(Fue(e))},bo={test:Pb("rgb","red"),parse:o2("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Xp.transform(e)+", "+Xp.transform(t)+", "+Xp.transform(r)+", "+Aa(Qa.transform(n))+")"};function Vue(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Am={test:Pb("#"),parse:Vue,transform:bo.transform},Gs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mn=Gs("deg"),Fr=Gs("%"),Q=Gs("px"),Bue=Gs("vh"),Wue=Gs("vw"),h1={...Fr,parse:e=>Fr.parse(e)/100,transform:e=>Fr.transform(e*100)},ci={test:Pb("hsl","hue"),parse:o2("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Fr.transform(Aa(t))+", "+Fr.transform(Aa(r))+", "+Aa(Qa.transform(n))+")"},qe={test:e=>bo.test(e)||Am.test(e)||ci.test(e),parse:e=>bo.test(e)?bo.parse(e):ci.test(e)?ci.parse(e):Am.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?bo.transform(e):ci.transform(e),getAnimatableNone:e=>{const t=qe.parse(e);return t.alpha=0,qe.transform(t)}},zue=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Kue(e){return isNaN(e)&&typeof e=="string"&&(e.match(Sb)?.length||0)+(e.match(zue)?.length||0)>0}const i2="number",a2="color",Uue="var",Hue="var(",m1="${}",Gue=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ja(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(Gue,l=>(qe.test(l)?(n.color.push(i),o.push(a2),r.push(qe.parse(l))):l.startsWith(Hue)?(n.var.push(i),o.push(Uue),r.push(l)):(n.number.push(i),o.push(i2),r.push(parseFloat(l))),++i,m1)).split(m1);return{values:r,split:s,indexes:n,types:o}}function s2(e){return Ja(e).values}function l2(e){const{split:t,types:r}=Ja(e),n=t.length;return o=>{let i="";for(let a=0;a<n;a++)if(i+=t[a],o[a]!==void 0){const s=r[a];s===i2?i+=Aa(o[a]):s===a2?i+=qe.transform(o[a]):i+=o[a]}return i}}const Yue=e=>typeof e=="number"?0:qe.test(e)?qe.getAnimatableNone(e):e;function que(e){const t=s2(e);return l2(e)(t.map(Yue))}const Un={test:Kue,parse:s2,createTransformer:l2,getAnimatableNone:que};function Zp(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Xue({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=Zp(l,s,e+1/3),i=Zp(l,s,e),a=Zp(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}function lu(e,t){return r=>r>0?t:e}const Be=(e,t,r)=>e+(t-e)*r,Qp=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},Zue=[Am,bo,ci],Que=e=>Zue.find(t=>t.test(e));function v1(e){const t=Que(e);if(Zi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===ci&&(r=Xue(r)),r}const g1=(e,t)=>{const r=v1(e),n=v1(t);if(!r||!n)return lu(e,t);const o={...r};return i=>(o.red=Qp(r.red,n.red,i),o.green=Qp(r.green,n.green,i),o.blue=Qp(r.blue,n.blue,i),o.alpha=Be(r.alpha,n.alpha,i),bo.transform(o))},Tm=new Set(["none","hidden"]);function Jue(e,t){return Tm.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function ede(e,t){return r=>Be(e,t,r)}function Cb(e){return typeof e=="number"?ede:typeof e=="string"?xb(e)?lu:qe.test(e)?g1:nde:Array.isArray(e)?c2:typeof e=="object"?qe.test(e)?g1:tde:lu}function c2(e,t){const r=[...e],n=r.length,o=e.map((i,a)=>Cb(i)(i,t[a]));return i=>{for(let a=0;a<n;a++)r[a]=o[a](i);return r}}function tde(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Cb(e[o])(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}}function rde(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][n[i]],s=e.values[a]??0;r[o]=s,n[i]++}return r}const nde=(e,t)=>{const r=Un.createTransformer(t),n=Ja(e),o=Ja(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Tm.has(e)&&!o.values.length||Tm.has(t)&&!n.values.length?Jue(e,t):Us(c2(rde(n,o),o.values),r):(Zi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),lu(e,t))};function u2(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Be(e,t,r):Cb(e)(e,t)}const ode=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>_e.update(t,r),stop:()=>Kn(t),now:()=>yt.isProcessing?yt.timestamp:Nt.now()}},d2=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let i=0;i<o;i++)n+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},cu=2e4;function Ob(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<cu;)t+=r,n=e.next(t);return t>=cu?1/0:t}function ide(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(Ob(n),cu);return{type:"keyframes",ease:i=>n.next(o*i).value/t,duration:ar(o)}}const ade=5;function f2(e,t,r){const n=Math.max(t-ade,0);return KI(r-e(n),t-n)}const Fe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Jp=.001;function sde({duration:e=Fe.duration,bounce:t=Fe.bounce,velocity:r=Fe.velocity,mass:n=Fe.mass}){let o,i;Zi(e<=cr(Fe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Ur(Fe.minDamping,Fe.maxDamping,a),e=Ur(Fe.minDuration,Fe.maxDuration,ar(e)),a<1?(o=c=>{const u=c*a,d=u*e,f=u-r,h=Mm(c,a),v=Math.exp(-d);return Jp-f/h*v},i=c=>{const d=c*a*e,f=d*r+r,h=Math.pow(a,2)*Math.pow(c,2)*e,v=Math.exp(-d),m=Mm(Math.pow(c,2),a);return(-o(c)+Jp>0?-1:1)*((f-h)*v)/m}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-Jp+u*d},i=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const s=5/e,l=cde(o,i,s);if(e=cr(e),isNaN(l))return{stiffness:Fe.stiffness,damping:Fe.damping,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}const lde=12;function cde(e,t,r){let n=r;for(let o=1;o<lde;o++)n=n-e(n)/t(n);return n}function Mm(e,t){return e*Math.sqrt(1-t*t)}const ude=["duration","bounce"],dde=["stiffness","damping","mass"];function y1(e,t){return t.some(r=>e[r]!==void 0)}function fde(e){let t={velocity:Fe.velocity,stiffness:Fe.stiffness,damping:Fe.damping,mass:Fe.mass,isResolvedFromDuration:!1,...e};if(!y1(e,dde)&&y1(e,ude))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,i=2*Ur(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Fe.mass,stiffness:o,damping:i}}else{const r=sde(e);t={...t,...r,mass:Fe.mass},t.isResolvedFromDuration=!0}return t}function uu(e=Fe.visualDuration,t=Fe.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const i=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=fde({...r,velocity:-ar(r.velocity||0)}),v=f||0,m=c/(2*Math.sqrt(l*u)),g=a-i,y=ar(Math.sqrt(l/u)),w=Math.abs(g)<5;n||(n=w?Fe.restSpeed.granular:Fe.restSpeed.default),o||(o=w?Fe.restDelta.granular:Fe.restDelta.default);let x;if(m<1){const P=Mm(y,m);x=C=>{const E=Math.exp(-m*y*C);return a-E*((v+m*y*g)/P*Math.sin(P*C)+g*Math.cos(P*C))}}else if(m===1)x=P=>a-Math.exp(-y*P)*(g+(v+y*g)*P);else{const P=y*Math.sqrt(m*m-1);x=C=>{const E=Math.exp(-m*y*C),A=Math.min(P*C,300);return a-E*((v+m*y*g)*Math.sinh(A)+P*g*Math.cosh(A))/P}}const S={calculatedDuration:h&&d||null,next:P=>{const C=x(P);if(h)s.done=P>=d;else{let E=P===0?v:0;m<1&&(E=P===0?cr(v):f2(x,P,C));const A=Math.abs(E)<=n,T=Math.abs(a-C)<=o;s.done=A&&T}return s.value=s.done?a:C,s},toString:()=>{const P=Math.min(Ob(S),cu),C=d2(E=>S.next(P*E).value,P,30);return P+"ms "+C},toTransition:()=>{}};return S}uu.applyToOptions=e=>{const t=ide(e,100,uu);return e.ease=t.ease,e.duration=cr(t.duration),e.type="keyframes",e};function km({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=A=>s!==void 0&&A<s||l!==void 0&&A>l,v=A=>s===void 0?l:l===void 0||Math.abs(s-A)<Math.abs(l-A)?s:l;let m=r*t;const g=d+m,y=a===void 0?g:a(g);y!==g&&(m=y-d);const w=A=>-m*Math.exp(-A/n),x=A=>y+w(A),S=A=>{const T=w(A),M=x(A);f.done=Math.abs(T)<=c,f.value=f.done?y:M};let P,C;const E=A=>{h(f.value)&&(P=A,C=uu({keyframes:[f.value,v(f.value)],velocity:f2(x,A,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:A=>{let T=!1;return!C&&P===void 0&&(T=!0,S(A),E(A)),P!==void 0&&A>=P?C.next(A-P):(!T&&S(A),f)}}}function pde(e,t,r){const n=[],o=r||mn.mix||u2,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||lr:t;s=Us(l,s)}n.push(s)}return n}function hde(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(hn(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=pde(t,n,o),l=s.length,c=u=>{if(a&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Za(e[d],e[d+1],u);return s[d](f)};return r?u=>c(Ur(e[0],e[i-1],u)):c}function mde(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Za(0,t,n);e.push(Be(r,1,o))}}function vde(e){const t=[0];return mde(t,e.length-1),t}function gde(e,t){return e.map(r=>r*t)}function yde(e,t){return e.map(()=>t||JI).splice(0,e.length-1)}function ui({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=kue(n)?n.map(f1):f1(n),i={done:!1,value:t[0]},a=gde(r&&r.length===t.length?r:vde(t),e),s=hde(a,t,{ease:Array.isArray(o)?o:yde(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const bde=e=>e!==null;function Eb(e,{repeat:t,repeatType:r="loop"},n,o=1){const i=e.filter(bde),s=o<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!s||n===void 0?i[s]:n}const wde={decay:km,inertia:km,tween:ui,keyframes:ui,spring:uu};function p2(e){typeof e.type=="string"&&(e.type=wde[e.type])}class Ab{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const xde=e=>e/100;class Tb extends Ab{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==Nt.now()&&this.tick(Nt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;p2(t);const{type:r=ui,repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=t;let{keyframes:s}=t;const l=r||ui;process.env.NODE_ENV!=="production"&&l!==ui&&hn(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),l!==ui&&typeof s[0]!="number"&&(this.mixKeyframes=Us(xde,u2(s[0],s[1])),s=[0,100]);const c=l({...t,keyframes:s});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ob(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=c}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:o,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:v,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let x=this.currentTime,S=n;if(d){const A=Math.min(this.currentTime,o)/s;let T=Math.floor(A),M=A%1;!M&&A>=1&&(M=1),M===1&&T--,T=Math.min(T,d+1),T%2&&(f==="reverse"?(M=1-M,h&&(M-=h/s)):f==="mirror"&&(S=a)),x=Ur(0,1,M)*s}const P=w?{done:!1,value:u[0]}:S.next(x);i&&(P.value=i(P.value));let{done:C}=P;!w&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return E&&v!==km&&(P.value=Eb(u,this.options,g,this.speed)),m&&m(P.value),E&&this.finish(),P}then(t,r){return this.finished.then(t,r)}get duration(){return ar(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ar(t)}get time(){return ar(this.currentTime)}set time(t){t=cr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Nt.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=ar(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=ode,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Nt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Sde(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const wo=e=>e*180/Math.PI,Dm=e=>{const t=wo(Math.atan2(e[1],e[0]));return _m(t)},Pde={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Dm,rotateZ:Dm,skewX:e=>wo(Math.atan(e[1])),skewY:e=>wo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_m=e=>(e=e%360,e<0&&(e+=360),e),b1=Dm,w1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),x1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Cde={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:w1,scaleY:x1,scale:e=>(w1(e)+x1(e))/2,rotateX:e=>_m(wo(Math.atan2(e[6],e[5]))),rotateY:e=>_m(wo(Math.atan2(-e[2],e[0]))),rotateZ:b1,rotate:b1,skewX:e=>wo(Math.atan(e[4])),skewY:e=>wo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Nm(e){return e.includes("scale")?1:0}function jm(e,t){if(!e||e==="none")return Nm(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=Cde,o=r;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Pde,o=s}if(!o)return Nm(t);const i=n[t],a=o[1].split(",").map(Ede);return typeof i=="function"?i(a):a[i]}const Ode=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return jm(r,t)};function Ede(e){return parseFloat(e.trim())}const Ji=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ea=new Set(Ji),S1=e=>e===Qi||e===Q,Ade=new Set(["x","y","z"]),Tde=Ji.filter(e=>!Ade.has(e));function Mde(e){const t=[];return Tde.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const jn={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>jm(t,"x"),y:(e,{transform:t})=>jm(t,"y")};jn.translateX=jn.x;jn.translateY=jn.y;const Oo=new Set;let Rm=!1,Im=!1,Lm=!1;function h2(){if(Im){const e=Array.from(Oo).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=Mde(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([i,a])=>{n.getValue(i)?.set(a)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Im=!1,Rm=!1,Oo.forEach(e=>e.complete(Lm)),Oo.clear()}function m2(){Oo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Im=!0)})}function kde(){Lm=!0,m2(),h2(),Lm=!1}class Mb{constructor(t,r,n,o,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Oo.add(this),Rm||(Rm=!0,_e.read(m2),_e.resolveKeyframes(h2))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){const i=o?.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(n&&r){const s=n.readValue(r,a);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=a),o&&i===void 0&&o.set(t[0])}Sde(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Oo.delete(this)}cancel(){this.state==="scheduled"&&(Oo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Dde=e=>e.startsWith("--");function _de(e,t,r){Dde(t)?e.style.setProperty(t,r):e.style[t]=r}const Nde=vb(()=>window.ScrollTimeline!==void 0),jde={};function Rde(e,t){const r=vb(e);return()=>jde[t]??r()}const v2=Rde(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ca=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,P1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ca([0,.65,.55,1]),circOut:Ca([.55,0,1,.45]),backIn:Ca([.31,.01,.66,-.59]),backOut:Ca([.33,1.53,.69,.99])};function g2(e,t){if(e)return typeof e=="function"?v2()?d2(e,t):"ease-out":e2(e)?Ca(e):Array.isArray(e)?e.map(r=>g2(r,t)||P1.easeOut):P1[e]}function Ide(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:r};l&&(u.offset=l);const d=g2(s,o);Array.isArray(d)&&(u.easing=d);const f={delay:n,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function y2(e){return typeof e=="function"&&"applyToOptions"in e}function Lde({type:e,...t}){return y2(e)&&v2()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class b2 extends Ab{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:o,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,hn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Lde(t);this.animation=Ide(r,n,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Eb(o,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(u):_de(r,n,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ar(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ar(t)}get time(){return ar(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=cr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Nde()?(this.animation.timeline=t,lr):r(this)}}const w2={anticipate:XI,backInOut:qI,circInOut:QI};function $de(e){return e in w2}function Fde(e){typeof e.ease=="string"&&$de(e.ease)&&(e.ease=w2[e.ease])}const eh=10;class Vde extends b2{constructor(t){Fde(t),p2(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:o,element:i,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const s=new Tb({...a,autoplay:!1}),l=Math.max(eh,Nt.now()-this.startTime),c=Ur(0,eh,l-eh);r.setWithVelocity(s.sample(Math.max(0,l-c)).value,s.sample(l).value,c),s.stop()}}const C1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Un.test(e)||e==="0")&&!e.startsWith("url("));function Bde(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function Wde(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=C1(o,t),s=C1(i,t);return Zi(a===s,`You are trying to animate ${t} from "${o}" to "${i}". "${a?i:o}" is not an animatable value.`,"value-not-animatable"),!a||!s?!1:Bde(e)||(r==="spring"||y2(r))&&n}function $m(e){e.duration=0,e.type="keyframes"}const zde=new Set(["opacity","clipPath","filter","transform"]),Kde=vb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ude(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return Kde()&&r&&zde.has(r)&&(r!=="transform"||!c)&&!l&&!n&&o!=="mirror"&&i!==0&&a!=="inertia"}const Hde=40;class Gde extends Ab{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Nt.now();const f={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:i,repeatType:a,name:l,motionValue:c,element:u,...d},h=u?.KeyframeResolver||Mb;this.keyframeResolver=new h(s,(v,m,g)=>this.onKeyframesResolved(v,m,f,!g),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;const{name:i,type:a,velocity:s,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=Nt.now(),Wde(t,i,a,s)||((mn.instantAnimations||!l)&&u?.(Eb(t,n,r)),t[0]=t[t.length-1],$m(n),n.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Hde?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},h=!c&&Ude(f),v=f.motionValue?.owner?.current,m=h?new Vde({...f,element:v}):new Tb(f);m.finished.then(()=>{this.notifyFinished()}).catch(lr),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),kde()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function x2(e,t,r,n=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),a=e.size,s=(a-1)*n;return typeof r=="function"?r(i,a):o===1?i*n:s-i*n}const Yde=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qde(e){const t=Yde.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const Xde=4;function S2(e,t,r=1){hn(r<=Xde,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=qde(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const a=i.trim();return BI(a)?parseFloat(a):a}return xb(o)?S2(o,t,r+1):o}const Zde={type:"spring",stiffness:500,damping:25,restSpeed:10},Qde=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Jde={type:"keyframes",duration:.8},efe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tfe=(e,{keyframes:t})=>t.length>2?Jde:ea.has(e)?e.startsWith("scale")?Qde(t[1]):Zde:efe,rfe=e=>e!==null;function nfe(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(rfe),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return o[i]}function P2(e,t){if(e?.inherit&&t){const{inherit:r,...n}=e;return{...t,...n}}return e}function kb(e,t){const r=e?.[t]??e?.default??e;return r!==e?P2(r,e):r}function ofe({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const Db=(e,t,r,n={},o,i)=>a=>{const s=kb(n,e)||{},l=s.delay||n.delay||0;let{elapsed:c=0}=n;c=c-cr(l);const u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};ofe(s)||Object.assign(u,tfe(e,u)),u.duration&&(u.duration=cr(u.duration)),u.repeatDelay&&(u.repeatDelay=cr(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&($m(u),u.delay===0&&(d=!0)),(mn.instantAnimations||mn.skipAnimations||o?.shouldSkipAnimations)&&(d=!0,$m(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!i&&t.get()!==void 0){const f=nfe(u.keyframes,s);if(f!==void 0){_e.update(()=>{u.onUpdate(f),u.onComplete()});return}}return s.isSync?new Tb(u):new Gde(u)};function O1(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function _b(e,t,r,n){if(typeof t=="function"){const[o,i]=O1(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=O1(n);t=t(r!==void 0?r:e.custom,o,i)}return t}function xi(e,t,r){const n=e.getProps();return _b(n,t,r!==void 0?r:n.custom,e)}const C2=new Set(["width","height","top","left","right","bottom",...Ji]),E1=30,ife=e=>!isNaN(parseFloat(e));class afe{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const o=Nt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Nt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ife(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&yb(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new gb);const n=this.events[t].add(r);return t==="change"?()=>{n(),_e.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Nt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>E1)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,E1);return KI(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _i(e,t){return new afe(e,t)}const Fm=e=>Array.isArray(e);function sfe(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,_i(r))}function lfe(e){return Fm(e)?e[e.length-1]||0:e}function cfe(e,t){const r=xi(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const a in i){const s=lfe(i[a]);sfe(e,a,s)}}const Ct=e=>!!(e&&e.getVelocity);function ufe(e){return!!(Ct(e)&&e.add)}function Vm(e,t){const r=e.getValue("willChange");if(ufe(r))return r.add(t);if(!r&&mn.WillChange){const n=new mn.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function Nb(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const dfe="framerAppearId",O2="data-"+Nb(dfe);function E2(e){return e.props[O2]}function ffe({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function A2(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:i,transitionEnd:a,...s}=t;const l=e.getDefaultTransition();i=i?P2(i,l):l;const c=i?.reduceMotion;n&&(i=n);const u=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in s){const h=e.getValue(f,e.latestValues[f]??null),v=s[f];if(v===void 0||d&&ffe(d,f))continue;const m={delay:r,...kb(i||{},f)},g=h.get();if(g!==void 0&&!h.isAnimating&&!Array.isArray(v)&&v===g&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const S=E2(e);if(S){const P=window.MotionHandoffAnimation(S,f,_e);P!==null&&(m.startTime=P,y=!0)}}Vm(e,f);const w=c??e.shouldReduceMotion;h.start(Db(f,h,v,w&&C2.has(f)?{type:!1}:m,e,y));const x=h.animation;x&&u.push(x)}if(a){const f=()=>_e.update(()=>{a&&cfe(e,a)});u.length?Promise.all(u).then(f):f()}return u}function Bm(e,t,r={}){const n=xi(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(A2(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return pfe(e,t,l,c,u,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(r.delay)])}function pfe(e,t,r=0,n=0,o=0,i=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(Bm(l,t,{...a,delay:r+(typeof n=="function"?0:n)+x2(e.variantChildren,l,n,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function hfe(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Bm(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Bm(e,t,r);else{const o=typeof t=="function"?xi(e,t,r.custom):t;n=Promise.all(A2(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const mfe={test:e=>e==="auto",parse:e=>e},T2=e=>t=>t.test(e),M2=[Qi,Q,Fr,Mn,Wue,Bue,mfe],A1=e=>M2.find(T2(e));function vfe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||zI(e):!0}const gfe=new Set(["brightness","contrast","saturate","opacity"]);function yfe(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Sb)||[];if(!n)return e;const o=r.replace(n,"");let i=gfe.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const bfe=/\b([a-z-]*)\(.*?\)/gu,Wm={...Un,getAnimatableNone:e=>{const t=e.match(bfe);return t?t.map(yfe).join(" "):e}},T1={...Qi,transform:Math.round},wfe={rotate:Mn,rotateX:Mn,rotateY:Mn,rotateZ:Mn,scale:jl,scaleX:jl,scaleY:jl,scaleZ:jl,skew:Mn,skewX:Mn,skewY:Mn,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:Qa,originX:h1,originY:h1,originZ:Q},jb={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,inset:Q,insetBlock:Q,insetBlockStart:Q,insetBlockEnd:Q,insetInline:Q,insetInlineStart:Q,insetInlineEnd:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,paddingBlock:Q,paddingBlockStart:Q,paddingBlockEnd:Q,paddingInline:Q,paddingInlineStart:Q,paddingInlineEnd:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,marginBlock:Q,marginBlockStart:Q,marginBlockEnd:Q,marginInline:Q,marginInlineStart:Q,marginInlineEnd:Q,fontSize:Q,backgroundPositionX:Q,backgroundPositionY:Q,...wfe,zIndex:T1,fillOpacity:Qa,strokeOpacity:Qa,numOctaves:T1},xfe={...jb,color:qe,backgroundColor:qe,outlineColor:qe,fill:qe,stroke:qe,borderColor:qe,borderTopColor:qe,borderRightColor:qe,borderBottomColor:qe,borderLeftColor:qe,filter:Wm,WebkitFilter:Wm},k2=e=>xfe[e];function D2(e,t){let r=k2(e);return r!==Wm&&(r=Un),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Sfe=new Set(["auto","none","0"]);function Pfe(e,t,r){let n=0,o;for(;n<e.length&&!o;){const i=e[n];typeof i=="string"&&!Sfe.has(i)&&Ja(i).values.length&&(o=e[n]),n++}if(o&&r)for(const i of t)e[i]=D2(r,o)}class Cfe extends Mb{constructor(t,r,n,o,i){super(t,r,n,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),xb(d))){const f=S2(d,r.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!C2.has(n)||t.length!==2)return;const[o,i]=t,a=A1(o),s=A1(i),l=p1(o),c=p1(i);if(l!==c&&jn[n]){this.needsMeasurement=!0;return}if(a!==s)if(S1(a)&&S1(s))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else jn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||vfe(t[o]))&&n.push(o);n.length&&Pfe(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=jn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const i=n.length-1,a=n[i];n[i]=jn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,l])=>{t.getValue(s).set(l)}),this.resolveNoneKeyframes()}}const Ofe=new Set(["opacity","clipPath","filter","transform"]);function _2(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(n=>n!=null)}const N2=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function zm(e){return WI(e)&&"offsetHeight"in e}const{schedule:Rb}=t2(queueMicrotask,!1),mr={x:!1,y:!1};function j2(){return mr.x||mr.y}function Efe(e){return e==="x"||e==="y"?mr[e]?null:(mr[e]=!0,()=>{mr[e]=!1}):mr.x||mr.y?null:(mr.x=mr.y=!0,()=>{mr.x=mr.y=!1})}function R2(e,t){const r=_2(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function Afe(e){return!(e.pointerType==="touch"||j2())}function Tfe(e,t,r={}){const[n,o,i]=R2(e,r);return n.forEach(a=>{let s=!1,l=!1,c;const u=()=>{a.removeEventListener("pointerleave",v)},d=g=>{c&&(c(g),c=void 0),u()},f=g=>{s=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,d(g))},h=()=>{s=!0,window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",f,o)},v=g=>{if(g.pointerType!=="touch"){if(s){l=!0;return}d(g)}},m=g=>{if(!Afe(g))return;l=!1;const y=t(a,g);typeof y=="function"&&(c=y,a.addEventListener("pointerleave",v,o))};a.addEventListener("pointerenter",m,o),a.addEventListener("pointerdown",h,o)}),i}const I2=(e,t)=>t?e===t?!0:I2(e,t.parentElement):!1,Ib=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Mfe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function kfe(e){return Mfe.has(e.tagName)||e.isContentEditable===!0}const Dfe=new Set(["INPUT","SELECT","TEXTAREA"]);function _fe(e){return Dfe.has(e.tagName)||e.isContentEditable===!0}const Yl=new WeakSet;function M1(e){return t=>{t.key==="Enter"&&e(t)}}function th(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Nfe=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=M1(()=>{if(Yl.has(r))return;th(r,"down");const o=M1(()=>{th(r,"up")}),i=()=>th(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function k1(e){return Ib(e)&&!j2()}const D1=new WeakSet;function jfe(e,t,r={}){const[n,o,i]=R2(e,r),a=s=>{const l=s.currentTarget;if(!k1(s)||D1.has(s))return;Yl.add(l),r.stopPropagation&&D1.add(s);const c=t(l,s),u=(h,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Yl.has(l)&&Yl.delete(l),k1(h)&&typeof c=="function"&&c(h,{success:v})},d=h=>{u(h,l===window||l===document||r.useGlobalTarget||I2(l,h.target))},f=h=>{u(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return n.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",a,o),zm(s)&&(s.addEventListener("focus",c=>Nfe(c,o)),!kfe(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),i}function Lb(e){return WI(e)&&"ownerSVGElement"in e}const ql=new WeakMap;let Xl;const L2=(e,t,r)=>(n,o)=>o&&o[0]?o[0][e+"Size"]:Lb(n)&&"getBBox"in n?n.getBBox()[t]:n[r],Rfe=L2("inline","width","offsetWidth"),Ife=L2("block","height","offsetHeight");function Lfe({target:e,borderBoxSize:t}){ql.get(e)?.forEach(r=>{r(e,{get width(){return Rfe(e,t)},get height(){return Ife(e,t)}})})}function $fe(e){e.forEach(Lfe)}function Ffe(){typeof ResizeObserver>"u"||(Xl=new ResizeObserver($fe))}function Vfe(e,t){Xl||Ffe();const r=_2(e);return r.forEach(n=>{let o=ql.get(n);o||(o=new Set,ql.set(n,o)),o.add(t),Xl?.observe(n)}),()=>{r.forEach(n=>{const o=ql.get(n);o?.delete(t),o?.size||Xl?.unobserve(n)})}}const Zl=new Set;let di;function Bfe(){di=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Zl.forEach(t=>t(e))},window.addEventListener("resize",di)}function Wfe(e){return Zl.add(e),di||Bfe(),()=>{Zl.delete(e),!Zl.size&&typeof di=="function"&&(window.removeEventListener("resize",di),di=void 0)}}function _1(e,t){return typeof e=="function"?Wfe(e):Vfe(e,t)}function zfe(e){return Lb(e)&&e.tagName==="svg"}const Kfe=[...M2,qe,Un],Ufe=e=>Kfe.find(T2(e)),N1=()=>({translate:0,scale:1,origin:0,originPoint:0}),fi=()=>({x:N1(),y:N1()}),j1=()=>({min:0,max:0}),nt=()=>({x:j1(),y:j1()}),Hfe=new WeakMap;function Nd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function es(e){return typeof e=="string"||Array.isArray(e)}const $b=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fb=["initial",...$b];function jd(e){return Nd(e.animate)||Fb.some(t=>es(e[t]))}function $2(e){return!!(jd(e)||e.variants)}function Gfe(e,t,r){for(const n in t){const o=t[n],i=r[n];if(Ct(o))e.addValue(n,o);else if(Ct(i))e.addValue(n,_i(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const a=e.getValue(n);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(n);e.addValue(n,_i(a!==void 0?a:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const Km={current:null},F2={current:!1},Yfe=typeof window<"u";function qfe(){if(F2.current=!0,!!Yfe)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Km.current=e.matches;e.addEventListener("change",t),t()}else Km.current=!1}const R1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let du={};function V2(e){du=e}function Xfe(){return du}class Zfe{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:a,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Mb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Nt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,_e.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=jd(r),this.isVariantNode=$2(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(r,{},this);for(const h in f){const v=f[h];c[h]!==void 0&&Ct(v)&&v.set(c[h])}}mount(t){if(this.hasBeenMounted)for(const r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=t,Hfe.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(F2.current||qfe(),this.shouldReduceMotion=Km.current),process.env.NODE_ENV!=="production"&&yb(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Kn(this.notifyUpdate),Kn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&Ofe.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:s,times:l,ease:c,duration:u}=r.accelerate,d=new b2({element:this.current,name:t,keyframes:s,times:l,ease:c,duration:cr(u)}),f=a(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const n=ea.has(t);n&&this.onBindTransform&&this.onBindTransform();const o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&_e.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in du){const r=du[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<R1.length;n++){const o=R1[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=Gfe(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=_i(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(BI(n)||zI(n))?n=parseFloat(n):!Ufe(n)&&Un.test(r)&&(n=D2(t,r)),this.setBaseTarget(t,Ct(n)?n.get():n)),Ct(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const i=_b(this.props,r,this.presenceContext?.custom);i&&(n=i[t])}if(r&&n!==void 0)return n;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ct(o)?o:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new gb),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Rb.render(this.render)}}class B2 extends Zfe{constructor(){super(...arguments),this.KeyframeResolver=Cfe}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const n=t.style;return n?n[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ct(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class Jn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function W2({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Qfe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Jfe(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function rh(e){return e===void 0||e===1}function Um({scale:e,scaleX:t,scaleY:r}){return!rh(e)||!rh(t)||!rh(r)}function uo(e){return Um(e)||z2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function z2(e){return I1(e.x)||I1(e.y)}function I1(e){return e&&e!=="0%"}function fu(e,t,r){const n=e-r,o=t*n;return r+o}function L1(e,t,r,n,o){return o!==void 0&&(e=fu(e,o,n)),fu(e,r,n)+t}function Hm(e,t=0,r=1,n,o){e.min=L1(e.min,t,r,n,o),e.max=L1(e.max,t,r,n,o)}function K2(e,{x:t,y:r}){Hm(e.x,t.translate,t.scale,t.originPoint),Hm(e.y,r.translate,r.scale,r.originPoint)}const $1=.999999999999,F1=1.0000000000001;function epe(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=r[s],a=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&hi(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,K2(e,a)),n&&uo(i.latestValues)&&hi(e,i.latestValues))}t.x<F1&&t.x>$1&&(t.x=1),t.y<F1&&t.y>$1&&(t.y=1)}function pi(e,t){e.min=e.min+t,e.max=e.max+t}function V1(e,t,r,n,o=.5){const i=Be(e.min,e.max,o);Hm(e,t,r,i,n)}function hi(e,t){V1(e.x,t.x,t.scaleX,t.scale,t.originX),V1(e.y,t.y,t.scaleY,t.scale,t.originY)}function U2(e,t){return W2(Jfe(e.getBoundingClientRect(),t))}function tpe(e,t,r){const n=U2(e,r),{scroll:o}=t;return o&&(pi(n.x,o.offset.x),pi(n.y,o.offset.y)),n}const rpe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},npe=Ji.length;function ope(e,t,r){let n="",o=!0;for(let i=0;i<npe;i++){const a=Ji[i],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(a.startsWith("scale")?1:0);else{const c=parseFloat(s);l=a.startsWith("scale")?c===1:c===0}if(!l||r){const c=N2(s,jb[a]);if(!l){o=!1;const u=rpe[a]||a;n+=`${u}(${c}) `}r&&(t[a]=c)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function Vb(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const l in t){const c=t[l];if(ea.has(l)){a=!0;continue}else if(n2(l)){o[l]=c;continue}else{const u=N2(c,jb[l]);l.startsWith("origin")?(s=!0,i[l]=u):n[l]=u}}if(t.transform||(a||r?n.transform=ope(t,e.transform,r):n.transform&&(n.transform="none")),s){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;n.transformOrigin=`${l} ${c} ${u}`}}function H2(e,{style:t,vars:r},n,o){const i=e.style;let a;for(a in t)i[a]=t[a];o?.applyProjectionStyles(i,n);for(a in r)i.setProperty(a,r[a])}function B1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const va={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const r=B1(e,t.target.x),n=B1(e,t.target.y);return`${r}% ${n}%`}},ipe={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Un.parse(e);if(o.length>5)return n;const i=Un.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Be(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}},Gm={borderRadius:{...va,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:va,borderTopRightRadius:va,borderBottomLeftRadius:va,borderBottomRightRadius:va,boxShadow:ipe};function G2(e,{layout:t,layoutId:r}){return ea.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Gm[e]||e==="opacity")}function Bb(e,t,r){const n=e.style,o=t?.style,i={};if(!n)return i;for(const a in n)(Ct(n[a])||o&&Ct(o[a])||G2(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(i[a]=n[a]);return i}function ape(e){return window.getComputedStyle(e)}class spe extends B2{constructor(){super(...arguments),this.type="html",this.renderInstance=H2}readValueFromInstance(t,r){if(ea.has(r))return this.projection?.isProjecting?Nm(r):Ode(t,r);{const n=ape(t),o=(n2(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return U2(t,r)}build(t,r,n){Vb(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Bb(t,r,n)}}const lpe={offset:"stroke-dashoffset",array:"stroke-dasharray"},cpe={offset:"strokeDashoffset",array:"strokeDasharray"};function upe(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?lpe:cpe;e[i.offset]=`${-n}`,e[i.array]=`${t} ${r}`}const dpe=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Y2(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,c,u){if(Vb(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const h of dpe)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),o!==void 0&&upe(d,o,i,a,!1)}const q2=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),X2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fpe(e,t,r,n){H2(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(q2.has(o)?o:Nb(o),t.attrs[o])}function Z2(e,t,r){const n=Bb(e,t,r);for(const o in e)if(Ct(e[o])||Ct(t[o])){const i=Ji.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}class ppe extends B2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(ea.has(r)){const n=k2(r);return n&&n.default||0}return r=q2.has(r)?r:Nb(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return Z2(t,r,n)}build(t,r,n){Y2(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,o){fpe(t,r,n,o)}mount(t){this.isSVGTag=X2(t.tagName),super.mount(t)}}const hpe=Fb.length;function Q2(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?Q2(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<hpe;r++){const n=Fb[r],o=e.props[n];(es(o)||o===!1)&&(t[n]=o)}return t}function J2(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const mpe=[...$b].reverse(),vpe=$b.length;function gpe(e){return t=>Promise.all(t.map(({animation:r,options:n})=>hfe(e,r,n)))}function ype(e){let t=gpe(e),r=W1(),n=!0;const o=l=>(c,u)=>{const d=xi(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:h,...v}=d;c={...c,...v,...h}}return c};function i(l){t=l(e)}function a(l){const{props:c}=e,u=Q2(e.parent)||{},d=[],f=new Set;let h={},v=1/0;for(let g=0;g<vpe;g++){const y=mpe[g],w=r[y],x=c[y]!==void 0?c[y]:u[y],S=es(x),P=y===l?w.isActive:null;P===!1&&(v=g);let C=x===u[y]&&x!==c[y]&&S;if(C&&n&&e.manuallyAnimateOnMount&&(C=!1),w.protectedKeys={...h},!w.isActive&&P===null||!x&&!w.prevProp||Nd(x)||typeof x=="boolean")continue;if(y==="exit"&&w.isActive&&P!==!0){w.prevResolvedValues&&(h={...h,...w.prevResolvedValues});continue}const E=bpe(w.prevProp,x);let A=E||y===l&&w.isActive&&!C&&S||g>v&&S,T=!1;const M=Array.isArray(x)?x:[x];let D=M.reduce(o(y),{});P===!1&&(D={});const{prevResolvedValues:k={}}=w,_={...k,...D},I=V=>{A=!0,f.has(V)&&(T=!0,f.delete(V)),w.needsAnimating[V]=!0;const j=e.getValue(V);j&&(j.liveStyle=!1)};for(const V in _){const j=D[V],L=k[V];if(h.hasOwnProperty(V))continue;let H=!1;Fm(j)&&Fm(L)?H=!J2(j,L):H=j!==L,H?j!=null?I(V):f.add(V):j!==void 0&&f.has(V)?I(V):w.protectedKeys[V]=!0}w.prevProp=x,w.prevResolvedValues=D,w.isActive&&(h={...h,...D}),n&&e.blockInitialAnimation&&(A=!1);const z=C&&E;A&&(!z||T)&&d.push(...M.map(V=>{const j={type:y};if(typeof V=="string"&&n&&!z&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,H=xi(L,V);if(L.enteringChildren&&H){const{delayChildren:te}=H.transition||{};j.delay=x2(L.enteringChildren,e,te)}}return{animation:V,options:j}}))}if(f.size){const g={};if(typeof c.initial!="boolean"){const y=xi(e,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(g.transition=y.transition)}f.forEach(y=>{const w=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),g[y]=w??null}),d.push({animation:g})}let m=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}function s(l,c){if(r[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),r[l].isActive=c;const u=a(l);for(const d in r)r[d].protectedKeys={};return u}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r,reset:()=>{r=W1()}}}function bpe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!J2(t,e):!1}function io(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function W1(){return{animate:io(!0),whileInView:io(),whileHover:io(),whileTap:io(),whileDrag:io(),whileFocus:io(),exit:io()}}function z1(e,t){e.min=t.min,e.max=t.max}function hr(e,t){z1(e.x,t.x),z1(e.y,t.y)}function K1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const eL=1e-4,wpe=1-eL,xpe=1+eL,tL=.01,Spe=0-tL,Ppe=0+tL;function jt(e){return e.max-e.min}function Cpe(e,t,r){return Math.abs(e-t)<=r}function U1(e,t,r,n=.5){e.origin=n,e.originPoint=Be(t.min,t.max,e.origin),e.scale=jt(r)/jt(t),e.translate=Be(r.min,r.max,e.origin)-e.originPoint,(e.scale>=wpe&&e.scale<=xpe||isNaN(e.scale))&&(e.scale=1),(e.translate>=Spe&&e.translate<=Ppe||isNaN(e.translate))&&(e.translate=0)}function Ta(e,t,r,n){U1(e.x,t.x,r.x,n?n.originX:void 0),U1(e.y,t.y,r.y,n?n.originY:void 0)}function H1(e,t,r){e.min=r.min+t.min,e.max=e.min+jt(t)}function Ope(e,t,r){H1(e.x,t.x,r.x),H1(e.y,t.y,r.y)}function G1(e,t,r){e.min=t.min-r.min,e.max=e.min+jt(t)}function pu(e,t,r){G1(e.x,t.x,r.x),G1(e.y,t.y,r.y)}function Y1(e,t,r,n,o){return e-=t,e=fu(e,1/r,n),o!==void 0&&(e=fu(e,1/o,n)),e}function Epe(e,t=0,r=1,n=.5,o,i=e,a=e){if(Fr.test(t)&&(t=parseFloat(t),t=Be(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Be(i.min,i.max,n);e===i&&(s-=t),e.min=Y1(e.min,t,r,s,o),e.max=Y1(e.max,t,r,s,o)}function q1(e,t,[r,n,o],i,a){Epe(e,t[r],t[n],t[o],t.scale,i,a)}const Ape=["x","scaleX","originX"],Tpe=["y","scaleY","originY"];function X1(e,t,r,n){q1(e.x,t,Ape,r?r.x:void 0,n?n.x:void 0),q1(e.y,t,Tpe,r?r.y:void 0,n?n.y:void 0)}function Z1(e){return e.translate===0&&e.scale===1}function rL(e){return Z1(e.x)&&Z1(e.y)}function Q1(e,t){return e.min===t.min&&e.max===t.max}function Mpe(e,t){return Q1(e.x,t.x)&&Q1(e.y,t.y)}function J1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nL(e,t){return J1(e.x,t.x)&&J1(e.y,t.y)}function eO(e){return jt(e.x)/jt(e.y)}function tO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function kr(e){return[e("x"),e("y")]}function kpe(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=r?.z||0;if((o||i||a)&&(n=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:v}=r;c&&(n=`perspective(${c}px) ${n}`),u&&(n+=`rotate(${u}deg) `),d&&(n+=`rotateX(${d}deg) `),f&&(n+=`rotateY(${f}deg) `),h&&(n+=`skewX(${h}deg) `),v&&(n+=`skewY(${v}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(n+=`scale(${s}, ${l})`),n||"none"}const oL=["TopLeft","TopRight","BottomLeft","BottomRight"],Dpe=oL.length,rO=e=>typeof e=="string"?parseFloat(e):e,nO=e=>typeof e=="number"||Q.test(e);function _pe(e,t,r,n,o,i){o?(e.opacity=Be(0,r.opacity??1,Npe(n)),e.opacityExit=Be(t.opacity??1,0,jpe(n))):i&&(e.opacity=Be(t.opacity??1,r.opacity??1,n));for(let a=0;a<Dpe;a++){const s=`border${oL[a]}Radius`;let l=oO(t,s),c=oO(r,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||nO(l)===nO(c)?(e[s]=Math.max(Be(rO(l),rO(c),n),0),(Fr.test(c)||Fr.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||r.rotate)&&(e.rotate=Be(t.rotate||0,r.rotate||0,n))}function oO(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Npe=iL(0,.5,ZI),jpe=iL(.5,.95,lr);function iL(e,t,r){return n=>n<e?0:n>t?1:r(Za(e,t,n))}function Rpe(e,t,r){const n=Ct(e)?e:_i(e);return n.start(Db("",n,t,r)),n.animation}function ts(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Ipe=(e,t)=>e.depth-t.depth;class Lpe{constructor(){this.children=[],this.isDirty=!1}add(t){mb(this.children,t),this.isDirty=!0}remove(t){su(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ipe),this.isDirty=!1,this.children.forEach(t)}}function $pe(e,t){const r=Nt.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Kn(n),e(i-t))};return _e.setup(n,!0),()=>Kn(n)}function Ql(e){return Ct(e)?e.get():e}class Fpe{constructor(){this.members=[]}add(t){mb(this.members,t);for(let r=this.members.length-1;r>=0;r--){const n=this.members[r];if(n===t||n===this.lead||n===this.prevLead)continue;const o=n.instance;o&&o.isConnected===!1&&n.isPresent!==!1&&!n.snapshot&&su(this.members,n)}t.scheduleRender()}remove(t){if(su(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o],a=i.instance;if(i.isPresent!==!1&&(!a||a.isConnected!==!1)){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender();const o=n.options.layoutDependency,i=t.options.layoutDependency;if(!(o!==void 0&&i!==void 0&&o===i)){const l=n.instance;l&&l.isConnected===!1&&!n.snapshot||(t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:s}=t.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Jl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nh=["","X","Y","Z"],Vpe=1e3;let Bpe=0;function oh(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function aL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=E2(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",_e,!(o||i))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&aL(n)}function sL({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t?.()){this.id=Bpe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Kpe),this.nodes.forEach(Ype),this.nodes.forEach(qpe),this.nodes.forEach(Upe)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Lpe)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new gb),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Lb(a)&&!zfe(a),this.instance=a;const{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;_e.read(()=>{d=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,u&&u(),u=$pe(f,250),Jl.hasAnimatedSinceResize&&(Jl.hasAnimatedSinceResize=!1,this.nodes.forEach(sO)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||ehe,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=c.getProps(),y=!this.targetLayout||!nL(this.targetLayout,h),w=!d&&f;if(this.options.layoutRoot||this.resumeFrom||w||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...kb(v,"layout"),onPlay:m,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,w)}else d||sO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Kn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Xpe),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&aL(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iO);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(aO);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Gpe),this.nodes.forEach(Wpe),this.nodes.forEach(zpe)):this.nodes.forEach(aO),this.clearAllSnapshots();const s=Nt.now();yt.delta=Ur(0,1e3/60,s-yt.timestamp),yt.timestamp=s,yt.isProcessing=!0,qp.update.process(yt),qp.preRender.process(yt),qp.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Hpe),this.sharedNodes.forEach(Zpe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_e.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_e.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!jt(this.snapshot.measuredBox.x)&&!jt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=nt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&this.instance){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!rL(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;a&&this.instance&&(s||uo(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),the(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return nt();const s=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rhe))){const{scroll:c}=this.root;c&&(pi(s.x,c.offset.x),pi(s.y,c.offset.y))}return s}removeElementScroll(a){const s=nt();if(hr(s,a),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&hr(s,a),pi(s.x,u.offset.x),pi(s.y,u.offset.y))}return s}applyTransform(a,s=!1){const l=nt();hr(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&hi(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),uo(u.latestValues)&&hi(l,u.latestValues)}return uo(this.latestValues)&&hi(l,this.latestValues),l}removeTransform(a){const s=nt();hr(s,a);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!uo(c.latestValues))continue;Um(c.latestValues)&&c.updateSnapshot();const u=nt(),d=c.measurePageBox();hr(u,d),X1(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return uo(this.latestValues)&&X1(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=yt.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=nt(),this.targetWithTransforms=nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ope(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):hr(this.target,this.layout.layoutBox),K2(this.target,this.targetDelta)):hr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Um(this.parent.latestValues)||z2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,s,l){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nt(),this.relativeTargetOrigin=nt(),pu(this.relativeTargetOrigin,s,l),hr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),s=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;hr(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;epe(this.layoutCorrected,this.treeScale,this.path,s),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=nt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(K1(this.prevProjectionDelta.x,this.projectionDelta.x),K1(this.prevProjectionDelta.y,this.projectionDelta.y)),Ta(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!tO(this.projectionDelta.x,this.prevProjectionDelta.x)||!tO(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fi(),this.projectionDelta=fi(),this.projectionDeltaWithTransform=fi()}setAnimationOrigin(a,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=fi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=nt(),h=l?l.source:void 0,v=this.layout?this.layout.source:void 0,m=h!==v,g=this.getStack(),y=!g||g.members.length<=1,w=!!(m&&!y&&this.options.crossfade===!0&&!this.path.some(Jpe));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const P=S/1e3;lO(d.x,a.x,P),lO(d.y,a.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pu(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Qpe(this.relativeTarget,this.relativeTargetOrigin,f,P),x&&Mpe(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=nt()),hr(x,this.relativeTarget)),m&&(this.animationValues=u,_pe(u,c,this.latestValues,P,w,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Kn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_e.update(()=>{Jl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_i(0)),this.currentAnimation=Rpe(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vpe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&lL(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||nt();const d=jt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=jt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}hr(s,l),hi(s,u),Ta(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Fpe),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&oh("z",a,c,this.animationValues);for(let u=0;u<nh.length;u++)oh(`rotate${nh[u]}`,a,c,this.animationValues),oh(`skew${nh[u]}`,a,c,this.animationValues);a.render();for(const u in c)a.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Ql(s?.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Ql(s?.pointerEvents)||""),this.hasProjected&&!uo(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=kpe(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),a.transform=d;const{x:f,y:h}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,c.animationValues?a.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const v in Gm){if(u[v]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:y}=Gm[v],w=d==="none"?u[v]:m(u[v],c);if(g){const x=g.length;for(let S=0;S<x;S++)a[g[S]]=w}else y?this.options.visualElement.renderState.vars[v]=w:a[v]=w}this.options.layoutId&&(a.pointerEvents=c===this?Ql(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(iO),this.root.sharedNodes.clear()}}}function Wpe(e){e.updateLayout()}function zpe(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?kr(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],f=jt(d);d.min=r[u].min,d.max=d.min+f}):lL(o,t.layoutBox,r)&&kr(u=>{const d=i?t.measuredBox[u]:t.layoutBox[u],f=jt(r[u]);d.max=d.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const a=fi();Ta(a,r,t.layoutBox);const s=fi();i?Ta(s,e.applyTransform(n,!0),t.measuredBox):Ta(s,r,t.layoutBox);const l=!rL(a);let c=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const h=nt();pu(h,t.layoutBox,d.layoutBox);const v=nt();pu(v,r,f.layoutBox),nL(h,v)||(c=!0),u.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=h,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Kpe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Upe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Hpe(e){e.clearSnapshot()}function iO(e){e.clearMeasurements()}function aO(e){e.isLayoutDirty=!1}function Gpe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ype(e){e.resolveTargetDelta()}function qpe(e){e.calcProjection()}function Xpe(e){e.resetSkewAndRotation()}function Zpe(e){e.removeLeadSnapshot()}function lO(e,t,r){e.translate=Be(t.translate,0,r),e.scale=Be(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function cO(e,t,r,n){e.min=Be(t.min,r.min,n),e.max=Be(t.max,r.max,n)}function Qpe(e,t,r,n){cO(e.x,t.x,r.x,n),cO(e.y,t.y,r.y,n)}function Jpe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ehe={duration:.45,ease:[.4,0,.1,1]},uO=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),dO=uO("applewebkit/")&&!uO("chrome/")?Math.round:lr;function fO(e){e.min=dO(e.min),e.max=dO(e.max)}function the(e){fO(e.x),fO(e.y)}function lL(e,t,r){return e==="position"||e==="preserve-aspect"&&!Cpe(eO(t),eO(r),.2)}function rhe(e){return e!==e.root&&e.scroll?.wasRoot}const nhe=sL({attachResizeListener:(e,t)=>ts(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ih={current:void 0},cL=sL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ih.current){const e=new nhe({});e.mount(window),e.setOptions({layoutScroll:!0}),ih.current=e}return ih.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Wb=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function pO(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ohe(...e){return t=>{let r=!1;const n=e.map(o=>{const i=pO(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():pO(e[o],null)}}}}function ihe(...e){return p.useCallback(ohe(...e),e)}class ahe extends p.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=r.offsetParent,o=zm(n)&&n.offsetWidth||0,i=zm(n)&&n.offsetHeight||0,a=this.props.sizeRef.current;a.height=r.offsetHeight||0,a.width=r.offsetWidth||0,a.top=r.offsetTop,a.left=r.offsetLeft,a.right=o-a.width-a.left,a.bottom=i-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function she({children:e,isPresent:t,anchorX:r,anchorY:n,root:o,pop:i}){const a=O.useId(),s=O.useRef(null),l=O.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=O.useContext(Wb),u=e.props?.ref??e?.ref,d=ihe(s,u);return O.useInsertionEffect(()=>{const{width:f,height:h,top:v,left:m,right:g,bottom:y}=l.current;if(t||i===!1||!s.current||!f||!h)return;const w=r==="left"?`left: ${m}`:`right: ${g}`,x=n==="bottom"?`bottom: ${y}`:`top: ${v}`;s.current.dataset.motionPopId=a;const S=document.createElement("style");c&&(S.nonce=c);const P=o??document.head;return P.appendChild(S),S.sheet&&S.sheet.insertRule(`
101
101
  [data-motion-pop-id="${a}"] {
102
102
  position: absolute !important;
103
103
  width: ${f}px !important;
104
104
  height: ${h}px !important;
105
- ${x}px !important;
106
105
  ${w}px !important;
106
+ ${x}px !important;
107
107
  }
108
- `),()=>{P.contains(S)&&P.removeChild(S)}},[t]),b.jsx(ice,{isPresent:t,childRef:s,sizeRef:l,pop:i,children:i===!1?e:p.cloneElement(e,{ref:d})})}const sce=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a,anchorX:s,anchorY:l,root:c})=>{const u=ty(lce),d=O.useId();let f=!0,h=O.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:r,custom:o,onExitComplete:v=>{u.set(v,!0);for(const m of u.values())if(!m)return;n&&n()},register:v=>(u.set(v,!1),()=>u.delete(v))}),[r,u,n]);return i&&f&&(h={...h}),O.useMemo(()=>{u.forEach((v,m)=>u.set(m,!1))},[r]),p.useEffect(()=>{!r&&!u.size&&n&&n()},[r]),e=b.jsx(ace,{pop:a==="popLayout",isPresent:r,anchorX:s,anchorY:l,root:c,children:e}),b.jsx(Ku.Provider,{value:h,children:e})};function lce(){return new Map}function gN(e=!0){const t=O.useContext(Ku);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,i=O.useId();O.useEffect(()=>{if(e)return o(i)},[e]);const a=O.useCallback(()=>e&&n&&n(i),[i,n,e]);return!r&&n?[!1,a]:[!0]}const qs=e=>e.key||"";function UC(e){const t=[];return O.Children.forEach(e,r=>{O.isValidElement(r)&&t.push(r)}),t}const cce=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1,anchorX:s="left",anchorY:l="top",root:c})=>{const[u,d]=gN(a),f=O.useMemo(()=>UC(e),[e]),h=a&&!u?[]:f.map(qs),v=O.useRef(!0),m=O.useRef(f),g=ty(()=>new Map),y=O.useRef(new Set),[x,w]=O.useState(f),[S,P]=O.useState(f);Gk(()=>{v.current=!1,m.current=f;for(let A=0;A<S.length;A++){const _=qs(S[A]);h.includes(_)?(g.delete(_),y.current.delete(_)):g.get(_)!==!0&&g.set(_,!1)}},[S,h.length,h.join("-")]);const C=[];if(f!==x){let A=[...f];for(let _=0;_<S.length;_++){const D=S[_],R=qs(D);h.includes(R)||(A.splice(_,0,D),C.push(D))}return i==="wait"&&C.length&&(A=C),P(UC(A)),w(f),null}process.env.NODE_ENV!=="production"&&i==="wait"&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:E}=O.useContext(ey);return b.jsx(b.Fragment,{children:S.map(A=>{const _=qs(A),D=a&&!u?!1:f===S||h.includes(_),R=()=>{if(y.current.has(_))return;if(y.current.add(_),g.has(_))g.set(_,!0);else return;let T=!0;g.forEach(j=>{j||(T=!1)}),T&&(E?.(),P(m.current),a&&d?.(),n&&n())};return b.jsx(sce,{isPresent:D,initial:!v.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:D?void 0:R,anchorX:s,anchorY:l,children:A},_)})})},yN=O.createContext({strict:!1}),HC={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let GC=!1;function uce(){if(GC)return;const e={};for(const t in HC)e[t]={isEnabled:r=>HC[t].some(n=>!!r[n])};GI(e),GC=!0}function bN(){return uce(),Yse()}function dce(e){const t=bN();for(const r in e)t[r]={...t[r],...e[r]};GI(t)}const fce=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Oc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fce.has(e)}let xN=e=>!Oc(e);function pce(e){typeof e=="function"&&(xN=t=>t.startsWith("on")?!Oc(t):e(t))}try{pce(require("@emotion/is-prop-valid").default)}catch{}function hce(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(xN(o)||r===!0&&Oc(o)||!t&&!Oc(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}const Gu=O.createContext({});function mce(e,t){if(Hu(e)){const{initial:r,animate:n}=e;return{initial:r===!1||ya(r)?r:void 0,animate:ya(n)?n:void 0}}return e.inherit!==!1?t:{}}function vce(e){const{initial:t,animate:r}=mce(e,O.useContext(Gu));return O.useMemo(()=>({initial:t,animate:r}),[qC(t),qC(r)])}function qC(e){return Array.isArray(e)?e.join(" "):e}const My=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wN(e,t,r){for(const n in t)!pt(t[n])&&!eN(n,r)&&(e[n]=t[n])}function gce({transformTemplate:e},t){return O.useMemo(()=>{const r=My();return Ay(r,t,e),Object.assign({},r.vars,r.style)},[t])}function yce(e,t){const r=e.style||{},n={};return wN(n,r,e),Object.assign(n,gce(e,t)),n}function bce(e,t){const r={},n=yce(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const SN=()=>({...My(),attrs:{}});function xce(e,t,r,n){const o=O.useMemo(()=>{const i=SN();return tN(i,t,nN(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};wN(i,e.style,e),o.style={...i,...o.style}}return o}const wce=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function jy(e){return typeof e!="string"||e.includes("-")?!1:!!(wce.indexOf(e)>-1||/[A-Z]/u.test(e))}function Sce(e,t,r,{latestValues:n},o,i=!1,a){const l=(a??jy(e)?xce:bce)(t,n,o,e),c=hce(t,typeof e=="string",i),u=e!==O.Fragment?{...c,...l,ref:r}:{},{children:d}=t,f=O.useMemo(()=>pt(d)?d.get():d,[d]);return O.createElement(e,{...u,children:f})}function Pce({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:Cce(r,n,o,e),renderState:t()}}function Cce(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=dl(i[f]);let{initial:a,animate:s}=e;const l=Hu(e),c=UI(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;const d=u?s:a;if(d&&typeof d!="boolean"&&!Uu(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const v=by(e,f[h]);if(v){const{transitionEnd:m,transition:g,...y}=v;for(const x in y){let w=y[x];if(Array.isArray(w)){const S=u?w.length-1:0;w=w[S]}w!==null&&(o[x]=w)}for(const x in m)o[x]=m[x]}}}return o}const PN=e=>(t,r)=>{const n=O.useContext(Gu),o=O.useContext(Ku),i=()=>Pce(e,t,n,o);return r?i():ty(i)},Ece=PN({scrapeMotionValuesFromProps:Ty,createRenderState:My}),Oce=PN({scrapeMotionValuesFromProps:oN,createRenderState:SN}),Ace=Symbol.for("motionComponentSymbol");function Tce(e,t,r){const n=O.useRef(r);O.useInsertionEffect(()=>{n.current=r});const o=O.useRef(null);return O.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const a=n.current;if(typeof a=="function")if(i){const s=a(i);typeof s=="function"&&(o.current=s)}else o.current?(o.current(),o.current=null):a(i);else a&&(a.current=i)},[t])}const CN=O.createContext({});function Do(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _ce(e,t,r,n,o,i){const{visualElement:a}=O.useContext(Gu),s=O.useContext(yN),l=O.useContext(Ku),c=O.useContext(_y),u=c.reducedMotion,d=c.skipAnimations,f=O.useRef(null),h=O.useRef(!1);n=n||s.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:a,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),h.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const v=f.current,m=O.useContext(CN);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&Mce(f.current,r,o,m);const g=O.useRef(!1);O.useInsertionEffect(()=>{v&&g.current&&v.update(r,l)});const y=r[DI],x=O.useRef(!!y&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return Gk(()=>{h.current=!0,v&&(g.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),x.current&&v.animationState&&v.animationState.animateChanges())}),O.useEffect(()=>{v&&(!x.current&&v.animationState&&v.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),x.current=!1),v.enteringChildren=void 0)}),v}function Mce(e,t,r,n){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:EN(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&Do(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}function EN(e){if(e)return e.options.allowProjection!==!1?e.projection:EN(e.parent)}function cp(e,{forwardMotionProps:t=!1,type:r}={},n,o){n&&dce(n);const i=r?r==="svg":jy(e),a=i?Oce:Ece;function s(c,u){let d;const f={...O.useContext(_y),...c,layoutId:jce(c)},{isStatic:h}=f,v=vce(c),m=a(c,h);if(!h&&Hk){Dce(f,n);const g=Rce(f);d=g.MeasureLayout,v.visualElement=_ce(e,m,f,o,g.ProjectionNode,i)}return b.jsxs(Gu.Provider,{value:v,children:[d&&v.visualElement?b.jsx(d,{visualElement:v.visualElement,...f}):null,Sce(e,c,Tce(m,v.visualElement,u),m,h,t,i)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=O.forwardRef(s);return l[Ace]=e,l}function jce({layoutId:e}){const t=O.useContext(ey).id;return t&&e!==void 0?t+"-"+e:e}function Dce(e,t){const r=O.useContext(yN).strict;if(process.env.NODE_ENV!=="production"&&t&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?wi(!1,n,"lazy-strict-mode"):Ur(!1,n,"lazy-strict-mode")}}function Rce(e){const t=bN(),{drag:r,layout:n}=t;if(!r&&!n)return{};const o={...r,...n};return{MeasureLayout:r?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function kce(e,t){if(typeof Proxy>"u")return cp;const r=new Map,n=(i,a)=>cp(i,a,e,t),o=(i,a)=>(process.env.NODE_ENV!=="production"&&iy(!1,"motion() is deprecated. Use motion.create() instead."),n(i,a));return new Proxy(o,{get:(i,a)=>a==="create"?n:(r.has(a)||r.set(a,cp(a,void 0,e,t)),r.get(a))})}const Ice=(e,t)=>t.isSVG??jy(e)?new fle(t):new ale(t,{allowProjection:e!==O.Fragment});class Nce extends Mn{constructor(t){super(t),t.animationState||(t.animationState=gle(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Uu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Lce=0;class $ce extends Mn{constructor(){super(...arguments),this.id=Lce++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Vce={animation:{Feature:Nce},exit:{Feature:$ce}};function ls(e){return{point:{x:e.pageX,y:e.pageY}}}const Fce=e=>t=>Py(t)&&e(t,ls(t));function Yi(e,t,r,n){return ba(e,t,Fce(r),n)}const ON=({current:e})=>e?e.ownerDocument.defaultView:null,YC=(e,t)=>Math.abs(e-t);function Bce(e,t){const r=YC(e.x,t.x),n=YC(e.y,t.y);return Math.sqrt(r**2+n**2)}const XC=new Set(["auto","scroll"]);class AN{constructor(t,r,{transformPagePoint:n,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=dp(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,m=Bce(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!m)return;const{point:g}=h,{timestamp:y}=lt;this.history.push({...g,timestamp:y});const{onStart:x,onMove:w}=this.handlers;v||(x&&x(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,h)},this.handlePointerMove=(h,v)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=up(v,this.transformPagePoint),Pe.update(this.updatePoint,!0)},this.handlePointerUp=(h,v)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=dp(h.type==="pointercancel"?this.lastMoveEventInfo:up(v,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,x),g&&g(h,x)},!Py(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=o||window;const l=ls(t),c=up(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=lt;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=r;f&&f(t,dp(c,this.history)),this.removeListeners=is(Yi(this.contextWindow,"pointermove",this.handlePointerMove),Yi(this.contextWindow,"pointerup",this.handlePointerUp),Yi(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let r=t.parentElement;for(;r;){const n=getComputedStyle(r);(XC.has(n.overflowX)||XC.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const n=t===window,o=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-r.x,y:o.y-r.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),Pe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),wn(this.updatePoint)}}function up(e,t){return t?{point:t(e.point)}:e}function ZC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dp({point:e},t){return{point:e,delta:ZC(e,TN(t)),offset:ZC(e,zce(t)),velocity:Wce(t,.1)}}function zce(e){return e[0]}function TN(e){return e[e.length-1]}function Wce(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=TN(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Gt(t)));)r--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&o.timestamp-n.timestamp>Gt(t)*2&&(n=e[1]);const i=Kt(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Kce(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?De(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?De(r,e,n.max):Math.min(e,r)),e}function JC(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Uce(e,{top:t,left:r,bottom:n,right:o}){return{x:JC(e.x,r,o),y:JC(e.y,t,n)}}function QC(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function Hce(e,t){return{x:QC(e.x,t.x),y:QC(e.y,t.y)}}function Gce(e,t){let r=.5;const n=Pt(e),o=Pt(t);return o>n?r=ma(t.min,t.max-n,e.min):n>o&&(r=ma(e.min,e.max-o,t.min)),Or(0,1,r)}function qce(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Xh=.35;function Yce(e=Xh){return e===!1?e=0:e===!0&&(e=Xh),{x:eE(e,"left","right"),y:eE(e,"top","bottom")}}function eE(e,t,r){return{min:tE(e,t),max:tE(e,r)}}function tE(e,t){return typeof e=="number"?e:e[t]||0}const Xce=new WeakMap;class Zce{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ue(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{r&&this.snapToCursor(ls(d).point),this.stopAnimation()},a=(d,f)=>{const{drag:h,dragPropagation:v,onDragStart:m}=this.getProps();if(h&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ese(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fr(y=>{let x=this.getAxisMotionValue(y).get()||0;if(xr.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[y];S&&(x=Pt(S)*(parseFloat(x)/100))}}this.originPoint[y]=x}),m&&Pe.update(()=>m(d,f),!1,!0),zh(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:v,onDirectionLock:m,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:y}=f;if(v&&this.currentDirection===null){this.currentDirection=Qce(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&Pe.update(()=>g(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new AN(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:ON(this.visualElement),element:this.visualElement.current})}stop(t,r){const n=t||this.latestPointerEvent,o=r||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!n)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&Pe.postRender(()=>s(n,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Ys(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=Kce(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&Do(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=Uce(n.layoutBox,t):this.constraints=!1,this.elastic=Yce(r),o!==this.constraints&&!Do(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&fr(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=qce(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Do(t))return!1;const n=t.current;Ur(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=ele(n,o.root,this.visualElement.getTransformPagePoint());let a=Hce(o.layout.layoutBox,i);if(r){const s=r(Zse(a));this.hasMutatedConstraints=!!s,s&&(a=YI(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=fr(u=>{if(!Ys(u,r,this.currentDirection))return;let d=l&&l[u]||{};a&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,v={type:"inertia",velocity:n?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return zh(this.visualElement,t),n.start(yy(t,n,0,r,this.visualElement,!1))}stopAnimation(){fr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){fr(r=>{const{drag:n}=this.getProps();if(!Ys(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r],l=i.get()||0;i.set(t[r]-De(a,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Do(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};fr(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=Gce({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),fr(a=>{if(!Ys(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(De(l,c,o[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Xce.set(this.visualElement,this);const t=this.visualElement.current,r=Yi(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,h=f!==t&&jse(f);u&&d&&!h&&this.start(c)});let n;const o=()=>{const{dragConstraints:c}=this.getProps();Do(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),n||(n=Jce(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Pe.read(o);const s=ba(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(fr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())}));return()=>{s(),r(),a(),l&&l(),n&&n()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Xh,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function rE(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Jce(e,t,r){const n=cC(e,rE(r)),o=cC(t,rE(r));return()=>{n(),o()}}function Ys(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Qce(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class eue extends Mn{constructor(t){super(t),this.removeGroupControls=Ht,this.removeListeners=Ht,this.controls=new Zce(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ht}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const fp=e=>(t,r)=>{e&&Pe.update(()=>e(t,r),!1,!0)};class tue extends Mn{constructor(){super(...arguments),this.removePointerDownListener=Ht}onPointerDown(t){this.session=new AN(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ON(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:fp(t),onStart:fp(r),onMove:fp(n),onEnd:(i,a)=>{delete this.session,o&&Pe.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=Yi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let pp=!1;class rue extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),pp&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),fl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,t.layoutDependency!==r&&a.setOptions({...a.options,layoutDependency:r}),pp=!0,o||t.layoutDependency!==r||r===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Pe.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Sy.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;pp=!0,o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function _N(e){const[t,r]=gN(),n=O.useContext(ey);return b.jsx(rue,{...e,layoutGroup:n,switchLayoutGroup:O.useContext(CN),isPresent:t,safeToRemove:r})}const nue={pan:{Feature:tue},drag:{Feature:eue,ProjectionNode:vN,MeasureLayout:_N}};function nE(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const o="onHover"+r,i=n[o];i&&Pe.postRender(()=>i(t,ls(t)))}class oue extends Mn{mount(){const{current:t}=this.node;t&&(this.unmount=Ase(t,(r,n)=>(nE(this.node,n,"Start"),o=>nE(this.node,o,"End"))))}unmount(){}}class iue extends Mn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=is(ba(this.node.current,"focus",()=>this.onFocus()),ba(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function oE(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const o="onTap"+(r==="End"?"":r),i=n[o];i&&Pe.postRender(()=>i(t,ls(t)))}class aue extends Mn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:n}=this.node.props;this.unmount=Rse(t,(o,i)=>(oE(this.node,i,"Start"),(a,{success:s})=>oE(this.node,a,s?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:n?.tap===!1})}unmount(){}}const Zh=new WeakMap,hp=new WeakMap,sue=e=>{const t=Zh.get(e.target);t&&t(e)},lue=e=>{e.forEach(sue)};function cue({root:e,...t}){const r=e||document;hp.has(r)||hp.set(r,{});const n=hp.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(lue,{root:e,...t})),n[o]}function uue(e,t,r){const n=cue(t);return Zh.set(e,r),n.observe(e),()=>{Zh.delete(e),n.unobserve(e)}}const due={some:0,all:1};class fue extends Mn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:due[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return uue(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(pue(t,r))&&this.startObserver()}unmount(){}}function pue({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const hue={inView:{Feature:fue},tap:{Feature:aue},focus:{Feature:iue},hover:{Feature:oue}},mue={layout:{ProjectionNode:vN,MeasureLayout:_N}},vue={...Vce,...hue,...nue,...mue},MN=kce(vue,Ice),jN=re("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","body-sm":"text-body-sm 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"}}),Ei=p.forwardRef(({className:e,variant:t="body",weight:r="regular",as:n="p",asChild:o=!1,...i},a)=>{const s=o?Oe:n;return b.jsx(s,{className:L(jN({variant:t,weight:r,className:e})),ref:a,...i})});Ei.displayName="Text";const DN=p.createContext(!1),RN=({open:e,defaultOpen:t=!1,onOpenChange:r,children:n,...o})=>{const[i,a]=p.useState(t),s=e!==void 0,l=s?e:i,c=p.useCallback(u=>{s||a(u),r?.(u)},[s,r]);return b.jsx(DN.Provider,{value:l,children:b.jsx(P1,{open:l,onOpenChange:c,...o,children:n})})};RN.displayName="Modal";const gue=C1,kN=E1,yue=$c,Dy=p.forwardRef(({className:e,...t},r)=>b.jsx(O1,{ref:r,forceMount:!0,asChild:!0,...t,children:b.jsx(MN.div,{initial:{opacity:0,backdropFilter:"blur(0px)"},animate:{opacity:1,backdropFilter:"blur(4px)"},exit:{opacity:0,backdropFilter:"blur(0px)"},transition:{duration:.2},className:L("fixed inset-0 z-50 bg-black/20",e)})}));Dy.displayName="ModalOverlay";const IN=re(["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-8 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"],{variants:{size:{sm:"max-w-[400px]",default:"max-w-[500px]",lg:"max-w-[640px]",full:"max-w-[95vw]"}},defaultVariants:{size:"default"}}),NN=p.forwardRef(({className:e,children:t,size:r,showCloseButton:n=!0,...o},i)=>{const a=p.useContext(DN);return b.jsx(cce,{children:a&&b.jsxs(kN,{forceMount:!0,children:[b.jsx(Dy,{}),b.jsx(A1,{ref:i,forceMount:!0,asChild:!0,...o,children:b.jsxs(MN.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:L(IN({size:r}),e),children:[t,n&&b.jsx($c,{asChild:!0,children:b.jsxs(Pm,{variant:"ghost",size:"icon",className:"absolute top-6 right-6",children:[b.jsx(TE,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})})]})})]})})});NN.displayName="ModalContent";const LN=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:L("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}));LN.displayName="ModalHeader";const $N=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:L("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));$N.displayName="ModalFooter";const VN=p.forwardRef(({className:e,children:t,...r},n)=>b.jsx(T1,{ref:n,asChild:!0,...r,children:b.jsx(Qg,{level:"h3",className:e,children:t})}));VN.displayName="ModalTitle";const FN=p.forwardRef(({className:e,children:t,...r},n)=>b.jsx(_1,{ref:n,asChild:!0,...r,children:b.jsx(Ei,{variant:"semi-lead",className:e,children:t})}));FN.displayName="ModalDescription";const BN=re("flex items-center justify-center gap-1 font-sans",{variants:{size:{sm:"text-small",default:"text-body",lg:"text-lead"}},defaultVariants:{size:"default"}}),zN=re("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"}}),WN=p.forwardRef(({className:e,size:t,page:r,totalPages:n,onPageChange:o,siblingCount:i=1,...a},s)=>{const l=p.useMemo(()=>{const d=i*2+3+2;if(n<=d)return Array.from({length:n},(g,y)=>y+1);const f=Math.max(r-i,1),h=Math.min(r+i,n),v=f>2,m=h<n-1;if(!v&&m){const g=3+2*i;return[...Array.from({length:g},(x,w)=>w+1),"ellipsis-right",n]}if(v&&!m){const g=3+2*i;return[1,"ellipsis-left",...Array.from({length:g},(x,w)=>n-g+w+1)]}return v&&m?[1,"ellipsis-left",...Array.from({length:i*2+1},(y,x)=>f+x),"ellipsis-right",n]:Array.from({length:n},(g,y)=>y+1)},[r,n,i]),c=u=>{u>=1&&u<=n&&u!==r&&o?.(u)};return b.jsxs("nav",{ref:s,role:"navigation","aria-label":"Pagination",className:L(BN({size:t,className:e})),...a,children:[b.jsx(Bo,{size:t,onClick:()=>c(r-1),disabled:r===1,"aria-label":"Go to previous page",children:b.jsx(Dc,{className:"h-4 w-4"})}),l.map(u=>typeof u=="string"?b.jsx(Bo,{size:t,variant:"ellipsis",disabled:!0,"aria-hidden":!0,children:b.jsx(AE,{className:"h-4 w-4"})},u):b.jsx(Bo,{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)),b.jsx(Bo,{size:t,onClick:()=>c(r+1),disabled:r===n,"aria-label":"Go to next page",children:b.jsx(Rc,{className:"h-4 w-4"})})]})});WN.displayName="Pagination";const Bo=p.forwardRef(({className:e,variant:t,size:r,...n},o)=>b.jsx("button",{ref:o,type:"button",className:L(zN({variant:t,size:r,className:e})),...n}));Bo.displayName="PaginationItem";const KN=p.createContext(null);function bue(){const e=p.useContext(KN);if(!e)throw new Error("PaginationDot must be used within a PaginationDots component");return e}const UN=re("inline-flex items-center justify-center font-sans",{variants:{size:{sm:"gap-1.5",default:"gap-2",lg:"gap-2.5"}},defaultVariants:{size:"default"}}),HN=p.forwardRef(({className:e,value:t,onValueChange:r,size:n="default",children:o,...i},a)=>b.jsx(KN.Provider,{value:{value:t,onValueChange:r,size:n??"default"},children:b.jsx("div",{ref:a,role:"group","aria-label":"Content navigation",className:L(UN({size:n}),e),...i,children:o})}));HN.displayName="PaginationDots";const GN=re("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}}),qN=p.forwardRef(({className:e,index:t,...r},n)=>{const{value:o,onValueChange:i,size:a}=bue(),s=t===o;return b.jsx("button",{ref:n,type:"button","aria-label":`Go to slide ${t+1}`,"aria-current":s?"true":void 0,onClick:()=>i?.(t),className:L(GN({size:a,active:s}),e),...r})});qN.displayName="PaginationDot";const YN=re("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),iE=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],XN=p.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},f)=>{const h=p.useMemo(()=>r.reduce((m,g)=>m+g.value,0),[r]),v=p.useCallback(m=>{const{cx:g=0,cy:y=0,midAngle:x=0,percent:w=0}=m,S=m.innerRadius??0,P=m.outerRadius??0,C=Math.PI/180,E=S+(P-S)*.5,A=g+E*Math.cos(-x*C),_=y+E*Math.sin(-x*C);return b.jsx("text",{x:A,y:_,fill:"var(--color-white)",textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"12px",fontFamily:"var(--font-sans)",fontWeight:500},children:`${(w*100).toFixed(0)}%`})},[]);return b.jsx("div",{ref:f,className:L(YN({size:t,className:e})),role:"img",...d,children:b.jsx(Hm,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:b.jsxs(fte,{children:[o&&b.jsx(ug,{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,g)=>[`${m} (${h>0?(Number(m)/h*100).toFixed(1):0}%)`,g]}),n&&b.jsx(au,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>b.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),b.jsx(EM,{data:r,cx:"50%",cy:"50%",innerRadius:i,outerRadius:a,paddingAngle:s,dataKey:"value",nameKey:"name",startAngle:c,endAngle:u,label:l?v:!1,labelLine:!1,children:r.map((m,g)=>b.jsx(Ga,{fill:m.color||iE[g%iE.length]},`cell-${m.name}-${g}`))})]})})})});XN.displayName="PieChart";const ZN=re("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"}}),JN=re("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}}),QN=p.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 b.jsx("div",{ref:c,role:"progressbar","aria-valuenow":s?void 0:t,"aria-valuemin":0,"aria-valuemax":r,"aria-label":a,className:L(ZN({size:n,className:e})),...l,children:b.jsx("div",{className:L(JN({variant:o,animated:i}),s&&"animate-progress-indeterminate"),style:{width:s?"50%":`${u}%`}})})});QN.displayName="ProgressIndicator";var Ry="Radio",[xue,e2]=Ge(Ry),[wue,Sue]=xue(Ry),t2=p.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,f]=p.useState(null),h=ne(t,g=>f(g)),v=p.useRef(!1),m=d?c||!!d.closest("form"):!0;return b.jsxs(wue,{scope:r,checked:o,disabled:a,children:[b.jsx(ee.button,{type:"button",role:"radio","aria-checked":o,"data-state":i2(o),"data-disabled":a?"":void 0,disabled:a,value:s,...u,ref:h,onClick:U(e.onClick,g=>{o||l?.(),m&&(v.current=g.isPropagationStopped(),v.current||g.stopPropagation())})}),m&&b.jsx(o2,{control:d,bubbles:!v.current,name:n,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});t2.displayName=Ry;var r2="RadioIndicator",n2=p.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=Sue(r2,r);return b.jsx(vt,{present:n||i.checked,children:b.jsx(ee.span,{"data-state":i2(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});n2.displayName=r2;var Pue="RadioBubbleInput",o2=p.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=p.useRef(null),s=ne(a,i),l=Ya(r),c=Xa(t);return p.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&h){const v=new Event("click",{bubbles:n});h.call(u,r),u.dispatchEvent(v)}},[l,r,n]),b.jsx(ee.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}})});o2.displayName=Pue;function i2(e){return e?"checked":"unchecked"}var Cue=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],qu="RadioGroup",[Eue]=Ge(qu,[Vu,e2]),a2=Vu(),s2=e2(),[Oue,Aue]=Eue(qu),l2=p.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,...f}=e,h=a2(r),v=ai(c),[m,g]=ut({prop:i,defaultProp:o??null,onChange:d,caller:qu});return b.jsx(Oue,{scope:r,name:n,required:a,disabled:s,value:m,onValueChange:g,children:b.jsx(Qj,{asChild:!0,...h,orientation:l,dir:v,loop:u,children:b.jsx(ee.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:v,...f,ref:t})})})});l2.displayName=qu;var c2="RadioGroupItem",u2=p.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=Aue(c2,r),a=i.disabled||n,s=a2(r),l=s2(r),c=p.useRef(null),u=ne(t,c),d=i.value===o.value,f=p.useRef(!1);return p.useEffect(()=>{const h=m=>{Cue.includes(m.key)&&(f.current=!0)},v=()=>f.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),b.jsx(eD,{asChild:!0,...s,focusable:!a,active:d,children:b.jsx(t2,{disabled:a,required:i.required,checked:d,...l,...o,name:i.name,ref:u,onCheck:()=>i.onValueChange(o.value),onKeyDown:U(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:U(o.onFocus,()=>{f.current&&c.current?.click()})})})});u2.displayName=c2;var Tue="RadioGroupIndicator",d2=p.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=s2(r);return b.jsx(n2,{...o,...n,ref:t})});d2.displayName=Tue;var _ue=l2,Mue=u2,jue=d2;const f2=p.forwardRef(({className:e,...t},r)=>b.jsx(_ue,{className:L("grid gap-2",e),...t,ref:r}));f2.displayName="RadioGroup";const p2=p.forwardRef(({className:e,...t},r)=>b.jsx(Mue,{ref:r,className:L("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:b.jsx(jue,{className:"flex items-center justify-center",children:b.jsx("span",{className:"bg-sunflower h-2.5 w-2.5 rounded-full"})})}));p2.displayName="RadioGroupItem";function Ac(e,[t,r]){return Math.min(r,Math.max(t,e))}function Due(e){const t=Rue(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(Iue);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function Rue(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=Lue(o),s=Nue(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Ar(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kue=Symbol("radix.slottable");function Iue(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kue}function Nue(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 Lue(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 h2=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"}),$ue="VisuallyHidden",Yu=p.forwardRef((e,t)=>b.jsx(ee.span,{...e,ref:t,style:{...h2,...e.style}}));Yu.displayName=$ue;var Vue=Yu,Fue=[" ","Enter","ArrowUp","ArrowDown"],Bue=[" ","Enter"],fo="Select",[Xu,Zu,zue]=ii(fo),[Oi]=Ge(fo,[zue,An]),Ju=An(),[Wue,jn]=Oi(fo),[Kue,Uue]=Oi(fo),m2=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:f,required:h,form:v}=e,m=Ju(t),[g,y]=p.useState(null),[x,w]=p.useState(null),[S,P]=p.useState(!1),C=ai(c),[E,A]=ut({prop:n,defaultProp:o??!1,onChange:i,caller:fo}),[_,D]=ut({prop:a,defaultProp:s,onChange:l,caller:fo}),R=p.useRef(null),T=g?v||!!g.closest("form"):!0,[j,N]=p.useState(new Set),W=Array.from(j).map(B=>B.props.value).join(";");return b.jsx(Ja,{...m,children:b.jsxs(Wue,{required:h,scope:t,trigger:g,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:P,contentId:Ct(),value:_,onValueChange:D,open:E,onOpenChange:A,dir:C,triggerPointerDownPosRef:R,disabled:f,children:[b.jsx(Xu.Provider,{scope:t,children:b.jsx(Kue,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(B=>{N($=>new Set($).add(B))},[]),onNativeOptionRemove:p.useCallback(B=>{N($=>{const M=new Set($);return M.delete(B),M})},[]),children:r})}),T?b.jsxs(F2,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:_,onChange:B=>D(B.target.value),disabled:f,form:v,children:[_===void 0?b.jsx("option",{value:""}):null,Array.from(j)]},W):null]})})};m2.displayName=fo;var v2="SelectTrigger",g2=p.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Ju(r),a=jn(v2,r),s=a.disabled||n,l=ne(t,a.onTriggerChange),c=Zu(r),u=p.useRef("touch"),[d,f,h]=z2(m=>{const g=c().filter(w=>!w.disabled),y=g.find(w=>w.value===a.value),x=W2(g,m,y);x!==void 0&&a.onValueChange(x.value)}),v=m=>{s||(a.onOpenChange(!0),h()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return b.jsx(Qa,{asChild:!0,...i,children:b.jsx(ee.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":B2(a.value)?"":void 0,...o,ref:l,onClick:U(o.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&v(m)}),onPointerDown:U(o.onPointerDown,m=>{u.current=m.pointerType;const g=m.target;g.hasPointerCapture(m.pointerId)&&g.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:U(o.onKeyDown,m=>{const g=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(g&&m.key===" ")&&Fue.includes(m.key)&&(v(),m.preventDefault())})})})});g2.displayName=v2;var y2="SelectValue",b2=p.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a="",...s}=e,l=jn(y2,r),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=ne(t,l.onValueNodeChange);return tt(()=>{c(u)},[c,u]),b.jsx(ee.span,{...s,ref:d,style:{pointerEvents:"none"},children:B2(l.value)?b.jsx(b.Fragment,{children:a}):i})});b2.displayName=y2;var Hue="SelectIcon",x2=p.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return b.jsx(ee.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});x2.displayName=Hue;var Gue="SelectPortal",w2=e=>b.jsx(vo,{asChild:!0,...e});w2.displayName=Gue;var po="SelectContent",S2=p.forwardRef((e,t)=>{const r=jn(po,e.__scopeSelect),[n,o]=p.useState();if(tt(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?Sa.createPortal(b.jsx(P2,{scope:e.__scopeSelect,children:b.jsx(Xu.Slot,{scope:e.__scopeSelect,children:b.jsx("div",{children:e.children})})}),i):null}return b.jsx(C2,{...e,ref:t})});S2.displayName=po;var er=10,[P2,Dn]=Oi(po),que="SelectContentImpl",Yue=Due("SelectContent.RemoveScroll"),C2=p.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:f,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:g,...y}=e,x=jn(po,r),[w,S]=p.useState(null),[P,C]=p.useState(null),E=ne(t,K=>S(K)),[A,_]=p.useState(null),[D,R]=p.useState(null),T=Zu(r),[j,N]=p.useState(!1),W=p.useRef(!1);p.useEffect(()=>{if(w)return Nc(w)},[w]),kc();const B=p.useCallback(K=>{const[de,...V]=T().map(F=>F.ref.current),[G]=V.slice(-1),z=document.activeElement;for(const F of K)if(F===z||(F?.scrollIntoView({block:"nearest"}),F===de&&P&&(P.scrollTop=0),F===G&&P&&(P.scrollTop=P.scrollHeight),F?.focus(),document.activeElement!==z))return},[T,P]),$=p.useCallback(()=>B([A,w]),[B,A,w]);p.useEffect(()=>{j&&$()},[j,$]);const{onOpenChange:M,triggerPointerDownPosRef:I}=x;p.useEffect(()=>{if(w){let K={x:0,y:0};const de=G=>{K={x:Math.abs(Math.round(G.pageX)-(I.current?.x??0)),y:Math.abs(Math.round(G.pageY)-(I.current?.y??0))}},V=G=>{K.x<=10&&K.y<=10?G.preventDefault():w.contains(G.target)||M(!1),document.removeEventListener("pointermove",de),I.current=null};return I.current!==null&&(document.addEventListener("pointermove",de),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",de),document.removeEventListener("pointerup",V,{capture:!0})}}},[w,M,I]),p.useEffect(()=>{const K=()=>M(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[M]);const[H,te]=z2(K=>{const de=T().filter(z=>!z.disabled),V=de.find(z=>z.ref.current===document.activeElement),G=W2(de,K,V);G&&setTimeout(()=>G.ref.current.focus())}),oe=p.useCallback((K,de,V)=>{const G=!W.current&&!V;(x.value!==void 0&&x.value===de||G)&&(_(K),G&&(W.current=!0))},[x.value]),ae=p.useCallback(()=>w?.focus(),[w]),ie=p.useCallback((K,de,V)=>{const G=!W.current&&!V;(x.value!==void 0&&x.value===de||G)&&R(K)},[x.value]),ce=n==="popper"?Jh:E2,Ae=ce===Jh?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:g}:{};return b.jsx(P2,{scope:r,content:w,viewport:P,onViewportChange:C,itemRefCallback:oe,selectedItem:A,onItemLeave:ae,itemTextRefCallback:ie,focusSelectedItem:$,selectedItemText:D,position:n,isPositioned:j,searchRef:H,children:b.jsx(Ca,{as:Yue,allowPinchZoom:!0,children:b.jsx(Pa,{asChild:!0,trapped:x.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:U(o,K=>{x.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:b.jsx(mo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:b.jsx(ce,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:K=>K.preventDefault(),...y,...Ae,onPlaced:()=>N(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:U(y.onKeyDown,K=>{const de=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!de&&K.key.length===1&&te(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let G=T().filter(z=>!z.disabled).map(z=>z.ref.current);if(["ArrowUp","End"].includes(K.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const z=K.target,F=G.indexOf(z);G=G.slice(F+1)}setTimeout(()=>B(G)),K.preventDefault()}})})})})})})});C2.displayName=que;var Xue="SelectItemAlignedPosition",E2=p.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=jn(po,r),a=Dn(po,r),[s,l]=p.useState(null),[c,u]=p.useState(null),d=ne(t,E=>u(E)),f=Zu(r),h=p.useRef(!1),v=p.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:x}=a,w=p.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&g&&y){const E=i.trigger.getBoundingClientRect(),A=c.getBoundingClientRect(),_=i.valueNode.getBoundingClientRect(),D=y.getBoundingClientRect();if(i.dir!=="rtl"){const z=D.left-A.left,F=_.left-z,pe=E.left-F,le=E.width+pe,it=Math.max(le,A.width),at=window.innerWidth-er,Zt=Ac(F,[er,Math.max(er,at-it)]);s.style.minWidth=le+"px",s.style.left=Zt+"px"}else{const z=A.right-D.right,F=window.innerWidth-_.right-z,pe=window.innerWidth-E.right-F,le=E.width+pe,it=Math.max(le,A.width),at=window.innerWidth-er,Zt=Ac(F,[er,Math.max(er,at-it)]);s.style.minWidth=le+"px",s.style.right=Zt+"px"}const R=f(),T=window.innerHeight-er*2,j=m.scrollHeight,N=window.getComputedStyle(c),W=parseInt(N.borderTopWidth,10),B=parseInt(N.paddingTop,10),$=parseInt(N.borderBottomWidth,10),M=parseInt(N.paddingBottom,10),I=W+B+j+M+$,H=Math.min(g.offsetHeight*5,I),te=window.getComputedStyle(m),oe=parseInt(te.paddingTop,10),ae=parseInt(te.paddingBottom,10),ie=E.top+E.height/2-er,ce=T-ie,Ae=g.offsetHeight/2,K=g.offsetTop+Ae,de=W+B+K,V=I-de;if(de<=ie){const z=R.length>0&&g===R[R.length-1].ref.current;s.style.bottom="0px";const F=c.clientHeight-m.offsetTop-m.offsetHeight,pe=Math.max(ce,Ae+(z?ae:0)+F+$),le=de+pe;s.style.height=le+"px"}else{const z=R.length>0&&g===R[0].ref.current;s.style.top="0px";const pe=Math.max(ie,W+m.offsetTop+(z?oe:0)+Ae)+V;s.style.height=pe+"px",m.scrollTop=de-ie+m.offsetTop}s.style.margin=`${er}px 0`,s.style.minHeight=H+"px",s.style.maxHeight=T+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[f,i.trigger,i.valueNode,s,c,m,g,y,i.dir,n]);tt(()=>w(),[w]);const[S,P]=p.useState();tt(()=>{c&&P(window.getComputedStyle(c).zIndex)},[c]);const C=p.useCallback(E=>{E&&v.current===!0&&(w(),x?.(),v.current=!1)},[w,x]);return b.jsx(Jue,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:C,children:b.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:b.jsx(ee.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});E2.displayName=Xue;var Zue="SelectPopperPosition",Jh=p.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=er,...i}=e,a=Ju(r);return b.jsx(Lu,{...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)"}})});Jh.displayName=Zue;var[Jue,ky]=Oi(po,{}),Qh="SelectViewport",O2=p.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=Dn(Qh,r),a=ky(Qh,r),s=ne(t,i.onViewportChange),l=p.useRef(0);return b.jsxs(b.Fragment,{children:[b.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}),b.jsx(Xu.Slot,{scope:r,children:b.jsx(ee.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:f}=a;if(f?.current&&d){const h=Math.abs(l.current-u.scrollTop);if(h>0){const v=window.innerHeight-er*2,m=parseFloat(d.style.minHeight),g=parseFloat(d.style.height),y=Math.max(m,g);if(y<v){const x=y+h,w=Math.min(v,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})})})]})});O2.displayName=Qh;var A2="SelectGroup",[Que,ede]=Oi(A2),T2=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ct();return b.jsx(Que,{scope:r,id:o,children:b.jsx(ee.div,{role:"group","aria-labelledby":o,...n,ref:t})})});T2.displayName=A2;var _2="SelectLabel",M2=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=ede(_2,r);return b.jsx(ee.div,{id:o.id,...n,ref:t})});M2.displayName=_2;var Tc="SelectItem",[tde,j2]=Oi(Tc),D2=p.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=jn(Tc,r),l=Dn(Tc,r),c=s.value===n,[u,d]=p.useState(i??""),[f,h]=p.useState(!1),v=ne(t,x=>l.itemRefCallback?.(x,n,o)),m=Ct(),g=p.useRef("touch"),y=()=>{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 b.jsx(tde,{scope:r,value:n,disabled:o,textId:m,isSelected:c,onItemTextChange:p.useCallback(x=>{d(w=>w||(x?.textContent??"").trim())},[]),children:b.jsx(Xu.ItemSlot,{scope:r,value:n,disabled:o,textValue:u,children:b.jsx(ee.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:v,onFocus:U(a.onFocus,()=>h(!0)),onBlur:U(a.onBlur,()=>h(!1)),onClick:U(a.onClick,()=>{g.current!=="mouse"&&y()}),onPointerUp:U(a.onPointerUp,()=>{g.current==="mouse"&&y()}),onPointerDown:U(a.onPointerDown,x=>{g.current=x.pointerType}),onPointerMove:U(a.onPointerMove,x=>{g.current=x.pointerType,o?l.onItemLeave?.():g.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===" "||(Bue.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});D2.displayName=Tc;var Ui="SelectItemText",R2=p.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=jn(Ui,r),s=Dn(Ui,r),l=j2(Ui,r),c=Uue(Ui,r),[u,d]=p.useState(null),f=ne(t,y=>d(y),l.onItemTextChange,y=>s.itemTextRefCallback?.(y,l.value,l.disabled)),h=u?.textContent,v=p.useMemo(()=>b.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return tt(()=>(m(v),()=>g(v)),[m,g,v]),b.jsxs(b.Fragment,{children:[b.jsx(ee.span,{id:l.textId,...i,ref:f}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Sa.createPortal(i.children,a.valueNode):null]})});R2.displayName=Ui;var k2="SelectItemIndicator",I2=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return j2(k2,r).isSelected?b.jsx(ee.span,{"aria-hidden":!0,...n,ref:t}):null});I2.displayName=k2;var em="SelectScrollUpButton",N2=p.forwardRef((e,t)=>{const r=Dn(em,e.__scopeSelect),n=ky(em,e.__scopeSelect),[o,i]=p.useState(!1),a=ne(t,n.onScrollButtonChange);return tt(()=>{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?b.jsx($2,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});N2.displayName=em;var tm="SelectScrollDownButton",L2=p.forwardRef((e,t)=>{const r=Dn(tm,e.__scopeSelect),n=ky(tm,e.__scopeSelect),[o,i]=p.useState(!1),a=ne(t,n.onScrollButtonChange);return tt(()=>{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?b.jsx($2,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});L2.displayName=tm;var $2=p.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=Dn("SelectScrollButton",r),a=p.useRef(null),s=Zu(r),l=p.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return p.useEffect(()=>()=>l(),[l]),tt(()=>{s().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),b.jsx(ee.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()})})}),rde="SelectSeparator",V2=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return b.jsx(ee.div,{"aria-hidden":!0,...n,ref:t})});V2.displayName=rde;var rm="SelectArrow",nde=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ju(r),i=jn(rm,r),a=Dn(rm,r);return i.open&&a.position==="popper"?b.jsx($u,{...o,...n,ref:t}):null});nde.displayName=rm;var ode="SelectBubbleInput",F2=p.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=p.useRef(null),i=ne(n,o),a=Ya(t);return p.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]),b.jsx(ee.select,{...r,style:{...h2,...r.style},ref:i,defaultValue:t})});F2.displayName=ode;function B2(e){return e===""||e===void 0}function z2(e){const t=mt(e),r=p.useRef(""),n=p.useRef(0),o=p.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=p.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function W2(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=ide(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 ide(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var ade=m2,sde=g2,lde=b2,cde=x2,ude=w2,dde=S2,fde=O2,pde=T2,hde=M2,mde=D2,vde=R2,gde=I2,yde=N2,bde=L2,xde=V2;const wde=ade,Sde=pde,Pde=lde,K2=p.forwardRef(({className:e,children:t,variant:r="default",...n},o)=>b.jsxs(sde,{ref:o,className:L("bg-card text-body-sm text-primary flex h-8 w-full items-center justify-between rounded-md border px-3 py-2 font-sans transition-colors","placeholder:text-tertiary placeholder:text-body-sm","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,b.jsx(cde,{asChild:!0,children:b.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:b.jsx("path",{d:"m6 9 6 6 6-6"})})})]}));K2.displayName="SelectTrigger";const Iy=p.forwardRef(({className:e,...t},r)=>b.jsx(yde,{ref:r,className:L("flex cursor-default items-center justify-center py-1",e),...t,children:b.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:b.jsx("path",{d:"m18 15-6-6-6 6"})})}));Iy.displayName="SelectScrollUpButton";const Ny=p.forwardRef(({className:e,...t},r)=>b.jsx(bde,{ref:r,className:L("flex cursor-default items-center justify-center py-1",e),...t,children:b.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:b.jsx("path",{d:"m6 9 6 6 6-6"})})}));Ny.displayName="SelectScrollDownButton";const U2=p.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>b.jsx(ude,{children:b.jsxs(dde,{ref:o,className:L("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:[b.jsx(Iy,{}),b.jsx(fde,{className:L("p-1",r==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),b.jsx(Ny,{})]})}));U2.displayName="SelectContent";const H2=p.forwardRef(({className:e,...t},r)=>b.jsx(hde,{ref:r,className:L("text-small text-tertiary py-1.5 pr-2 pl-8 font-normal",e),...t}));H2.displayName="SelectLabel";const G2=p.forwardRef(({className:e,children:t,...r},n)=>b.jsxs(mde,{ref:n,className:L("text-body-sm relative flex h-8 w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-alt focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(gde,{children:b.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:b.jsx("polyline",{points:"20 6 9 17 4 12"})})})}),b.jsx(vde,{children:t})]}));G2.displayName="SelectItem";const q2=p.forwardRef(({className:e,...t},r)=>b.jsx(xde,{ref:r,className:L("bg-border -mx-1 my-1 h-px",e),...t}));q2.displayName="SelectSeparator";const Y2=p.createContext(null);function Qu(){const e=p.useContext(Y2);if(!e)throw new Error("Sidebar components must be used within a Sidebar");return e}const X2=re(["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"}}),Cde={sm:{expanded:"w-52",collapsed:"w-14"},default:{expanded:"w-64",collapsed:"w-16"},lg:{expanded:"w-72",collapsed:"w-20"}},Z2=p.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,f]=p.useState(n),h=o!==void 0,v=h?o:d,m=p.useCallback(x=>{a&&(h||f(x),i?.(x))},[h,i,a]);p.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 g=p.useMemo(()=>({collapsed:v,setCollapsed:m,collapsible:a}),[v,m,a]),y=Cde[r||"default"];return b.jsx(Y2.Provider,{value:g,children:b.jsx("aside",{ref:u,className:L(X2({variant:t}),v?y.collapsed:y.expanded,e),"data-collapsed":v,...c,children:l})})});Z2.displayName="Sidebar";const J2=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:L("flex items-center gap-4 px-6 pt-6 pb-4",e),...t}));J2.displayName="SidebarHeader";const Q2=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:L("flex-1 overflow-y-auto px-5 py-4",e),...t}));Q2.displayName="SidebarContent";const eL=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:L("border-border mt-auto border-t px-5 py-5",e),...t}));eL.displayName="SidebarFooter";const tL=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:L("space-y-2 py-4",e),...t}));tL.displayName="SidebarGroup";const rL=p.forwardRef(({className:e,...t},r)=>{const{collapsed:n}=Qu();return n?null:b.jsx(Ei,{variant:"label",ref:r,className:L("px-4 py-3 uppercase",e),...t})});rL.displayName="SidebarGroupLabel";const nm=re(["group text-small relative flex w-full cursor-pointer items-center gap-3 rounded-md px-4 py-3 font-sans font-normal","text-secondary 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}}),nL=p.forwardRef(({className:e,active:t,icon:r,asChild:n=!1,children:o,...i},a)=>{const{collapsed:s}=Qu(),l=n?Oe:"button",c=b.jsx("span",{className:L("bg-sunflower absolute rounded-full transition-opacity",s?"right-1 bottom-0 left-1 h-0.75":"top-1 bottom-1 left-0 w-0.75",t?"opacity-100":"opacity-0 group-hover:opacity-100"),"aria-hidden":"true"}),u=b.jsxs(b.Fragment,{children:[c,r&&b.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&b.jsx(Ei,{variant:"body-sm",className:"truncate",children:o})]});return n?b.jsx(Oe,{ref:a,className:L(nm({active:t}),s&&"justify-center px-2",e),...i,children:p.isValidElement(o)?p.cloneElement(o,{children:b.jsxs(b.Fragment,{children:[c,r&&b.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&b.jsx("span",{className:"truncate",children:o.props.children})]})}):o}):b.jsx(l,{ref:a,className:L(nm({active:t}),s&&"justify-center px-2",e),...i,children:u})});nL.displayName="SidebarItem";const oL=p.forwardRef(({className:e,...t},r)=>{const{collapsed:n,setCollapsed:o,collapsible:i}=Qu();return i?b.jsx("button",{ref:r,type:"button",className:L("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?b.jsx(Rc,{className:"h-5 w-5"}):b.jsx(Dc,{className:"h-5 w-5"})}):null});oL.displayName="SidebarTrigger";const iL=p.forwardRef(({className:e,...t},r)=>b.jsx("hr",{ref:r,className:L("border-border my-5 border-t",e),...t}));iL.displayName="SidebarSeparator";const aL=re("bg-contrast animate-pulse",{variants:{variant:{default:"rounded-md",circular:"rounded-full",text:"rounded"}},defaultVariants:{variant:"default"}}),sL=p.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 b.jsx("div",{ref:a,"aria-hidden":"true",className:L(aL({variant:t,className:e})),style:s,...i})});sL.displayName="Skeleton";var lL=["PageUp","PageDown"],cL=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],uL={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ai="Slider",[om,Ede,Ode]=ii(Ai),[dL]=Ge(Ai,[Ode]),[Ade,ed]=dL(Ai),fL=p.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:f=()=>{},inverted:h=!1,form:v,...m}=e,g=p.useRef(new Set),y=p.useRef(0),w=a==="horizontal"?Tde:_de,[S=[],P]=ut({prop:u,defaultProp:c,onChange:R=>{[...g.current][y.current]?.focus(),d(R)}}),C=p.useRef(S);function E(R){const T=kde(S,R);D(R,T)}function A(R){D(R,y.current)}function _(){const R=C.current[y.current];S[y.current]!==R&&f(S)}function D(R,T,{commit:j}={commit:!1}){const N=$de(i),W=Vde(Math.round((R-n)/i)*i+n,N),B=Ac(W,[n,o]);P(($=[])=>{const M=Dde($,B,T);if(Lde(M,l*i)){y.current=M.indexOf(B);const I=String(M)!==String($);return I&&j&&f(M),I?M:$}else return $})}return b.jsx(Ade,{scope:e.__scopeSlider,name:r,disabled:s,min:n,max:o,valueIndexToChangeRef:y,thumbs:g.current,values:S,orientation:a,form:v,children:b.jsx(om.Provider,{scope:e.__scopeSlider,children:b.jsx(om.Slot,{scope:e.__scopeSlider,children:b.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:t,onPointerDown:U(m.onPointerDown,()=>{s||(C.current=S)}),min:n,max:o,inverted:h,onSlideStart:s?void 0:E,onSlideMove:s?void 0:A,onSlideEnd:s?void 0:_,onHomeKeyDown:()=>!s&&D(n,0,{commit:!0}),onEndKeyDown:()=>!s&&D(o,S.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:T})=>{if(!s){const W=lL.includes(R.key)||R.shiftKey&&cL.includes(R.key)?10:1,B=y.current,$=S[B],M=i*W*T;D($+M,B,{commit:!0})}}})})})})});fL.displayName=Ai;var[pL,hL]=dL(Ai,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Tde=p.forwardRef((e,t)=>{const{min:r,max:n,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,[d,f]=p.useState(null),h=ne(t,w=>f(w)),v=p.useRef(void 0),m=ai(o),g=m==="ltr",y=g&&!i||!g&&i;function x(w){const S=v.current||d.getBoundingClientRect(),P=[0,S.width],E=Ly(P,y?[r,n]:[n,r]);return v.current=S,E(w-S.left)}return b.jsx(pL,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:b.jsx(mL,{dir:m,"data-orientation":"horizontal",...u,ref:h,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:()=>{v.current=void 0,l?.()},onStepKeyDown:w=>{const P=uL[y?"from-left":"from-right"].includes(w.key);c?.({event:w,direction:P?-1:1})}})})}),_de=p.forwardRef((e,t)=>{const{min:r,max:n,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,u=p.useRef(null),d=ne(t,u),f=p.useRef(void 0),h=!o;function v(m){const g=f.current||u.current.getBoundingClientRect(),y=[0,g.height],w=Ly(y,h?[n,r]:[r,n]);return f.current=g,w(m-g.top)}return b.jsx(pL,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:b.jsx(mL,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const g=v(m.clientY);i?.(g)},onSlideMove:m=>{const g=v(m.clientY);a?.(g)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:m=>{const y=uL[h?"from-bottom":"from-top"].includes(m.key);l?.({event:m,direction:y?-1:1})}})})}),mL=p.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=ed(Ai,r);return b.jsx(ee.span,{...c,ref:t,onKeyDown:U(e.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):lL.concat(cL).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:U(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(f)?f.focus():n(d)}),onPointerMove:U(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:U(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),i(d))})})}),vL="SliderTrack",gL=p.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=ed(vL,r);return b.jsx(ee.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});gL.displayName=vL;var im="SliderRange",yL=p.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=ed(im,r),i=hL(im,r),a=p.useRef(null),s=ne(t,a),l=o.values.length,c=o.values.map(f=>wL(f,o.min,o.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return b.jsx(ee.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:s,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:d+"%"}})});yL.displayName=im;var am="SliderThumb",bL=p.forwardRef((e,t)=>{const r=Ede(e.__scopeSlider),[n,o]=p.useState(null),i=ne(t,s=>o(s)),a=p.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return b.jsx(Mde,{...e,ref:i,index:a})}),Mde=p.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:o,...i}=e,a=ed(am,r),s=hL(am,r),[l,c]=p.useState(null),u=ne(t,x=>c(x)),d=l?a.form||!!l.closest("form"):!0,f=Xa(l),h=a.values[n],v=h===void 0?0:wL(h,a.min,a.max),m=Rde(n,a.values.length),g=f?.[s.size],y=g?Ide(g,v,s.direction):0;return p.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),b.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${v}% + ${y}px)`},children:[b.jsx(om.ItemSlot,{scope:e.__scopeSlider,children:b.jsx(ee.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":h,"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:h===void 0?{display:"none"}:e.style,onFocus:U(e.onFocus,()=>{a.valueIndexToChangeRef.current=n})})}),d&&b.jsx(xL,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:h},n)]})});bL.displayName=am;var jde="RadioBubbleInput",xL=p.forwardRef(({__scopeSlider:e,value:t,...r},n)=>{const o=p.useRef(null),i=ne(o,n),a=Ya(t);return p.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]),b.jsx(ee.input,{style:{display:"none"},...r,ref:i,defaultValue:t})});xL.displayName=jde;function Dde(e=[],t,r){const n=[...e];return n[r]=t,n.sort((o,i)=>o-i)}function wL(e,t,r){const i=100/(r-t)*(e-t);return Ac(i,[0,100])}function Rde(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function kde(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 Ide(e,t,r){const n=e/2,i=Ly([0,50],[0,n]);return(n-i(t)*r)*r}function Nde(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function Lde(e,t){if(t>0){const r=Nde(e);return Math.min(...r)>=t}return!0}function Ly(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 $de(e){return(String(e).split(".")[1]||"").length}function Vde(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var Fde=fL,Bde=gL,zde=yL,Wde=bL;const SL=re("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"}}),PL=p.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 b.jsxs(Fde,{ref:s,defaultValue:r,value:n,className:L(SL({size:t}),e),...a,children:[b.jsx(Bde,{className:L("bg-border relative h-[var(--slider-track-height)] w-full grow overflow-hidden rounded-full"),children:b.jsx(zde,{className:"bg-sunflower absolute h-full"})}),Array.from({length:l}).map((c,u)=>b.jsx(Wde,{"aria-label":o,"aria-labelledby":i,className:L("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))]})});PL.displayName="Slider";const CL=re("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"}}),EL=p.forwardRef(({className:e,variant:t,size:r,label:n="Loading",...o},i)=>b.jsx("span",{ref:i,role:"status","aria-label":n,className:L(CL({variant:t,size:r,className:e})),...o,children:b.jsx("span",{className:"sr-only",children:n})}));EL.displayName="Spinner";const OL=re("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"}}),AL=p.forwardRef(({className:e,direction:t,gap:r,align:n,justify:o,wrap:i,as:a="div",asChild:s=!1,...l},c)=>{const u=s?Oe:a;return b.jsx(u,{className:L(OL({direction:t,gap:r,align:n,justify:o,wrap:i,className:e})),ref:c,...l})});AL.displayName="Stack";var td="Switch",[Kde]=Ge(td),[Ude,Hde]=Kde(td),TL=p.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,[f,h]=p.useState(null),v=ne(t,w=>h(w)),m=p.useRef(!1),g=f?u||!!f.closest("form"):!0,[y,x]=ut({prop:o,defaultProp:i??!1,onChange:c,caller:td});return b.jsxs(Ude,{scope:r,checked:y,disabled:s,children:[b.jsx(ee.button,{type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":DL(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:v,onClick:U(e.onClick,w=>{x(S=>!S),g&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),g&&b.jsx(jL,{control:f,bubbles:!m.current,name:n,value:l,checked:y,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});TL.displayName=td;var _L="SwitchThumb",ML=p.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=Hde(_L,r);return b.jsx(ee.span,{"data-state":DL(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});ML.displayName=_L;var Gde="SwitchBubbleInput",jL=p.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=p.useRef(null),s=ne(a,i),l=Ya(r),c=Xa(t);return p.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&h){const v=new Event("click",{bubbles:n});h.call(u,r),u.dispatchEvent(v)}},[l,r,n]),b.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}})});jL.displayName=Gde;function DL(e){return e?"checked":"unchecked"}var qde=TL,Yde=ML;const RL=p.forwardRef(({className:e,...t},r)=>b.jsx(qde,{className:L("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:b.jsx(Yde,{className:L("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")})}));RL.displayName="Switch";const kL=re("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"}}),Xde=re("border-border bg-alt border-b",{variants:{},defaultVariants:{}}),Zde=re("",{variants:{},defaultVariants:{}}),Jde=re("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"}}),Qde=re("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"}}),efe=re("text-secondary align-middle [&:has([role=checkbox])]:pr-0",{variants:{size:{default:"p-4",compact:"p-2"}},defaultVariants:{size:"default"}}),$y=p.createContext({size:"default"}),IL=p.forwardRef(({className:e,variant:t,size:r="default",...n},o)=>b.jsx($y.Provider,{value:{size:r??"default"},children:b.jsx("div",{className:"relative w-full overflow-auto",children:b.jsx("table",{ref:o,className:L(kL({variant:t,size:r}),e),...n})})}));IL.displayName="Table";const NL=p.forwardRef(({className:e,...t},r)=>b.jsx("thead",{ref:r,className:L(Xde(),e),...t}));NL.displayName="TableHeader";const LL=p.forwardRef(({className:e,...t},r)=>b.jsx("tbody",{ref:r,className:L(Zde(),e),...t}));LL.displayName="TableBody";const $L=p.forwardRef(({className:e,...t},r)=>b.jsx("tfoot",{ref:r,className:L("border-border bg-alt text-primary border-t font-normal",e),...t}));$L.displayName="TableFooter";const VL=p.forwardRef(({className:e,variant:t,...r},n)=>b.jsx("tr",{ref:n,className:L(Jde({variant:t}),e),...r}));VL.displayName="TableRow";const FL=p.forwardRef(({className:e,children:t,sortable:r=!1,sortDirection:n=null,onSort:o,...i},a)=>{const{size:s}=p.useContext($y),l=()=>{r&&o&&o()},c=u=>{r&&o&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())};return b.jsx("th",{ref:a,className:L(Qde({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:b.jsxs("div",{className:"flex items-center gap-2",children:[t,r&&b.jsxs("span",{className:"inline-flex flex-col","aria-hidden":"true",children:[b.jsx("svg",{className:L("h-3 w-3 transition-opacity",n==="asc"?"opacity-100":"opacity-30"),fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:b.jsx("path",{d:"M7 15l5-5 5 5"})}),b.jsx("svg",{className:L("-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:b.jsx("path",{d:"M7 9l5 5 5-5"})})]})]})})});FL.displayName="TableHead";const BL=p.forwardRef(({className:e,children:t,...r},n)=>{const{size:o}=p.useContext($y);return b.jsx("td",{ref:n,className:L(efe({size:o}),e),...r,children:b.jsx(Ei,{variant:"body-sm",as:"span",children:t})})});BL.displayName="TableCell";const zL=p.forwardRef(({className:e,...t},r)=>b.jsx("caption",{ref:r,className:L("text-small text-tertiary mt-4 text-left",e),...t}));zL.displayName="TableCaption";function tfe({data:e,initialSortKey:t=null,initialSortDirection:r="asc"}){const[n,o]=p.useState(t),[i,a]=p.useState(r),s=p.useCallback(c=>{o(u=>u===c?(a(d=>d==="asc"?"desc":d==="desc"?(o(null),null):"asc"),u):(a("asc"),c))},[]);return{sortedData:p.useMemo(()=>!n||!i?e:[...e].sort((c,u)=>{const d=c[n],f=u[n];if(d===f)return 0;let h=0;return typeof d=="string"&&typeof f=="string"?h=d.localeCompare(f):typeof d=="number"&&typeof f=="number"?h=d-f:h=String(d).localeCompare(String(f)),i==="asc"?h:-h}),[e,n,i]),sortKey:n,sortDirection:i,handleSort:s}}function rfe({data:e,filterKeys:t}){const[r,n]=p.useState("");return{filteredData:p.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 WL=p.createContext(null);function KL(){const e=p.useContext(WL);if(!e)throw new Error("Tab components must be used within a Tabs component");return e}const UL=p.forwardRef(({className:e,defaultValue:t="",value:r,onValueChange:n,children:o,...i},a)=>{const[s,l]=p.useState(t),c=p.useRef(new Map),u=r!==void 0?r:s,d=p.useCallback(h=>{r===void 0&&l(h),n?.(h)},[r,n]),f=p.useCallback((h,v)=>{v?c.current.set(h,v):c.current.delete(h)},[]);return b.jsx(WL.Provider,{value:{activeTab:u,setActiveTab:d,registerTrigger:f},children:b.jsx("div",{ref:a,className:L("w-full",e),...i,children:o})})});UL.displayName="Tabs";const HL=re("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"}}),GL=p.createContext(null),qL=p.forwardRef(({className:e,variant:t,...r},n)=>{const o=p.useRef(null),[i,a]=p.useState(null),[s,l]=p.useState(!1),c=p.useRef(!1),u=p.useCallback(h=>{if(h&&o.current){const v=o.current.getBoundingClientRect();a({left:h.left-v.left,width:h.width}),c.current||(c.current=!0,l(!0))}},[]),d=p.useCallback(h=>{o.current=h,typeof n=="function"?n(h):n&&(n.current=h)},[n]),f=p.useMemo(()=>({variant:t??"default",setActiveRect:u}),[t,u]);return b.jsx(GL.Provider,{value:f,children:b.jsxs("div",{ref:d,role:"tablist",className:L(HL({variant:t,className:e})),...r,children:[r.children,t!=="pills"&&i&&b.jsx("span",{className:L("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"})]})})});qL.displayName="TabList";const YL=re("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"}}),XL=p.forwardRef(({className:e,variant:t,size:r,value:n,...o},i)=>{const{activeTab:a,setActiveTab:s}=KL(),l=p.useContext(GL),c=p.useRef(null),u=a===n,d=p.useCallback(f=>{c.current=f,typeof i=="function"?i(f):i&&(i.current=f)},[i]);return p.useEffect(()=>{if(u&&c.current&&l){const f=()=>{if(c.current){const h=c.current.getBoundingClientRect();l.setActiveRect({left:h.left,width:h.width})}};return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)}},[u,l]),b.jsx("button",{ref:d,role:"tab",type:"button","aria-selected":u,"data-state":u?"active":"inactive",onClick:()=>s(n),className:L(YL({variant:t,size:r,className:e})),...o})});XL.displayName="TabTrigger";const ZL=re("font-sans",{variants:{size:{sm:"text-small mt-3",default:"text-body mt-4",lg:"text-body mt-6"}},defaultVariants:{size:"default"}}),JL=p.forwardRef(({className:e,size:t,value:r,...n},o)=>{const{activeTab:i}=KL(),a=i===r;return a?b.jsx("div",{ref:o,role:"tabpanel","data-state":a?"active":"inactive",className:L(ZL({size:t,className:e})),...n}):null});JL.displayName="TabContent";const QL=re("bg-card text-body-sm text-primary placeholder:text-tertiary placeholder:text-body-sm 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"}}),e$=p.forwardRef(({className:e,variant:t,resize:r,...n},o)=>b.jsx("textarea",{className:L(QL({variant:t,resize:r}),e),ref:o,...n}));e$.displayName="Textarea";var Vy="ToastProvider",[Fy,nfe,ofe]=ii("Toast"),[t$]=Ge("Toast",[ofe]),[ife,rd]=t$(Vy),r$=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=p.useState(null),[c,u]=p.useState(0),d=p.useRef(!1),f=p.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Vy}\`. Expected non-empty \`string\`.`),b.jsx(Fy.Provider,{scope:t,children:b.jsx(ife,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:p.useCallback(()=>u(h=>h+1),[]),onToastRemove:p.useCallback(()=>u(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:a})})};r$.displayName=Vy;var n$="ToastViewport",afe=["F8"],sm="toast.viewportPause",lm="toast.viewportResume",o$=p.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=afe,label:o="Notifications ({hotkey})",...i}=e,a=rd(n$,r),s=nfe(r),l=p.useRef(null),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=ne(t,d,a.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=a.toastCount>0;p.useEffect(()=>{const g=y=>{n.length!==0&&n.every(w=>y[w]||y.code===w)&&d.current?.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[n]),p.useEffect(()=>{const g=l.current,y=d.current;if(v&&g&&y){const x=()=>{if(!a.isClosePausedRef.current){const C=new CustomEvent(sm);y.dispatchEvent(C),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const C=new CustomEvent(lm);y.dispatchEvent(C),a.isClosePausedRef.current=!1}},S=C=>{!g.contains(C.relatedTarget)&&w()},P=()=>{g.contains(document.activeElement)||w()};return g.addEventListener("focusin",x),g.addEventListener("focusout",S),g.addEventListener("pointermove",x),g.addEventListener("pointerleave",P),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{g.removeEventListener("focusin",x),g.removeEventListener("focusout",S),g.removeEventListener("pointermove",x),g.removeEventListener("pointerleave",P),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[v,a.isClosePausedRef]);const m=p.useCallback(({tabbingDirection:g})=>{const x=s().map(w=>{const S=w.ref.current,P=[S,...bfe(S)];return g==="forwards"?P:P.reverse()});return(g==="forwards"?x.reverse():x).flat()},[s]);return p.useEffect(()=>{const g=d.current;if(g){const y=x=>{const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const P=document.activeElement,C=x.shiftKey;if(x.target===g&&C){c.current?.focus();return}const _=m({tabbingDirection:C?"backwards":"forwards"}),D=_.findIndex(R=>R===P);mp(_.slice(D+1))?x.preventDefault():C?c.current?.focus():u.current?.focus()}};return g.addEventListener("keydown",y),()=>g.removeEventListener("keydown",y)}},[s,m]),b.jsxs(DF,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&b.jsx(cm,{ref:c,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});mp(g)}}),b.jsx(Fy.Slot,{scope:r,children:b.jsx(ee.ol,{tabIndex:-1,...i,ref:f})}),v&&b.jsx(cm,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});mp(g)}})]})});o$.displayName=n$;var i$="ToastFocusProxy",cm=p.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=rd(i$,r);return b.jsx(Yu,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{const s=a.relatedTarget;!i.viewport?.contains(s)&&n()}})});cm.displayName=i$;var cs="Toast",sfe="toast.swipeStart",lfe="toast.swipeMove",cfe="toast.swipeCancel",ufe="toast.swipeEnd",a$=p.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s,l]=ut({prop:n,defaultProp:o??!0,onChange:i,caller:cs});return b.jsx(vt,{present:r||s,children:b.jsx(pfe,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:mt(e.onPause),onResume:mt(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)})})})});a$.displayName=cs;var[dfe,ffe]=t$(cs,{onClose(){}}),pfe=p.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:f,onSwipeEnd:h,...v}=e,m=rd(cs,r),[g,y]=p.useState(null),x=ne(t,N=>y(N)),w=p.useRef(null),S=p.useRef(null),P=o||m.duration,C=p.useRef(0),E=p.useRef(P),A=p.useRef(0),{onToastAdd:_,onToastRemove:D}=m,R=mt(()=>{g?.contains(document.activeElement)&&m.viewport?.focus(),a()}),T=p.useCallback(N=>{!N||N===1/0||(window.clearTimeout(A.current),C.current=new Date().getTime(),A.current=window.setTimeout(R,N))},[R]);p.useEffect(()=>{const N=m.viewport;if(N){const W=()=>{T(E.current),c?.()},B=()=>{const $=new Date().getTime()-C.current;E.current=E.current-$,window.clearTimeout(A.current),l?.()};return N.addEventListener(sm,B),N.addEventListener(lm,W),()=>{N.removeEventListener(sm,B),N.removeEventListener(lm,W)}}},[m.viewport,P,l,c,T]),p.useEffect(()=>{i&&!m.isClosePausedRef.current&&T(P)},[i,P,m.isClosePausedRef,T]),p.useEffect(()=>(_(),()=>D()),[_,D]);const j=p.useMemo(()=>g?p$(g):null,[g]);return m.viewport?b.jsxs(b.Fragment,{children:[j&&b.jsx(hfe,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:j}),b.jsx(dfe,{scope:r,onClose:R,children:Sa.createPortal(b.jsx(Fy.ItemSlot,{scope:r,children:b.jsx(jF,{asChild:!0,onEscapeKeyDown:U(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||R(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(ee.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...v,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:U(e.onKeyDown,N=>{N.key==="Escape"&&(s?.(N.nativeEvent),N.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,R()))}),onPointerDown:U(e.onPointerDown,N=>{N.button===0&&(w.current={x:N.clientX,y:N.clientY})}),onPointerMove:U(e.onPointerMove,N=>{if(!w.current)return;const W=N.clientX-w.current.x,B=N.clientY-w.current.y,$=!!S.current,M=["left","right"].includes(m.swipeDirection),I=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,H=M?I(0,W):0,te=M?0:I(0,B),oe=N.pointerType==="touch"?10:2,ae={x:H,y:te},ie={originalEvent:N,delta:ae};$?(S.current=ae,Xs(lfe,d,ie,{discrete:!1})):aE(ae,m.swipeDirection,oe)?(S.current=ae,Xs(sfe,u,ie,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(W)>oe||Math.abs(B)>oe)&&(w.current=null)}),onPointerUp:U(e.onPointerUp,N=>{const W=S.current,B=N.target;if(B.hasPointerCapture(N.pointerId)&&B.releasePointerCapture(N.pointerId),S.current=null,w.current=null,W){const $=N.currentTarget,M={originalEvent:N,delta:W};aE(W,m.swipeDirection,m.swipeThreshold)?Xs(ufe,h,M,{discrete:!0}):Xs(cfe,f,M,{discrete:!0}),$.addEventListener("click",I=>I.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),hfe=e=>{const{__scopeToast:t,children:r,...n}=e,o=rd(cs,t),[i,a]=p.useState(!1),[s,l]=p.useState(!1);return gfe(()=>a(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:b.jsx(vo,{asChild:!0,children:b.jsx(Yu,{...n,children:i&&b.jsxs(b.Fragment,{children:[o.label," ",r]})})})},mfe="ToastTitle",s$=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return b.jsx(ee.div,{...n,ref:t})});s$.displayName=mfe;var vfe="ToastDescription",l$=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return b.jsx(ee.div,{...n,ref:t})});l$.displayName=vfe;var c$="ToastAction",u$=p.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?b.jsx(f$,{altText:r,asChild:!0,children:b.jsx(By,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${c$}\`. Expected non-empty \`string\`.`),null)});u$.displayName=c$;var d$="ToastClose",By=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=ffe(d$,r);return b.jsx(f$,{asChild:!0,children:b.jsx(ee.button,{type:"button",...n,ref:t,onClick:U(e.onClick,o.onClose)})})});By.displayName=d$;var f$=p.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return b.jsx(ee.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function p$(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),yfe(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(...p$(n))}}),t}function Xs(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?fm(o,i):o.dispatchEvent(i)}var aE=(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 gfe(e=()=>{}){const t=mt(e);tt(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function yfe(e){return e.nodeType===e.ELEMENT_NODE}function bfe(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 mp(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var xfe=r$,wfe=o$,Sfe=a$,Pfe=s$,Cfe=l$,Efe=u$,Ofe=By;const Afe=xfe,h$=p.forwardRef(({className:e,...t},r)=>b.jsx(wfe,{ref:r,className:L("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}));h$.displayName="ToastViewport";const m$=re(["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"}}),v$=p.forwardRef(({className:e,variant:t,...r},n)=>b.jsx(Sfe,{ref:n,className:L(m$({variant:t}),e),...r}));v$.displayName="Toast";const g$=p.forwardRef(({className:e,...t},r)=>b.jsx(Efe,{ref:r,className:L("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}));g$.displayName="ToastAction";const y$=p.forwardRef(({className:e,...t},r)=>b.jsxs(Ofe,{ref:r,className:L("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:[b.jsx(TE,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]}));y$.displayName="ToastClose";const b$=p.forwardRef(({className:e,...t},r)=>b.jsx(Pfe,{ref:r,className:L("text-sm",e),...t}));b$.displayName="ToastTitle";const x$=p.forwardRef(({className:e,...t},r)=>b.jsx(Cfe,{ref:r,className:L("text-secondary text-sm",e),...t}));x$.displayName="ToastDescription";var Tfe=Symbol("radix.slottable");function _fe(e){const t=({children:r})=>b.jsx(b.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Tfe,t}var[nd]=Ge("Tooltip",[An]),od=An(),w$="TooltipProvider",Mfe=700,um="tooltip.open",[jfe,zy]=nd(w$),S$=e=>{const{__scopeTooltip:t,delayDuration:r=Mfe,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,a=p.useRef(!0),s=p.useRef(!1),l=p.useRef(0);return p.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),b.jsx(jfe,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:p.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:p.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:i})};S$.displayName=w$;var xa="Tooltip",[Dfe,us]=nd(xa),P$=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=zy(xa,e.__scopeTooltip),c=od(t),[u,d]=p.useState(null),f=Ct(),h=p.useRef(0),v=a??l.disableHoverableContent,m=s??l.delayDuration,g=p.useRef(!1),[y,x]=ut({prop:n,defaultProp:o??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(um))):l.onClose(),i?.(E)},caller:xa}),w=p.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),S=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,x(!0)},[x]),P=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),C=p.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,x(!0),h.current=0},m)},[m,x]);return p.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),b.jsx(Ja,{...c,children:b.jsx(Dfe,{scope:t,contentId:f,open:y,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayedRef.current?C():S()},[l.isOpenDelayedRef,C,S]),onTriggerLeave:p.useCallback(()=>{v?P():(window.clearTimeout(h.current),h.current=0)},[P,v]),onOpen:S,onClose:P,disableHoverableContent:v,children:r})})};P$.displayName=xa;var dm="TooltipTrigger",C$=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=us(dm,r),i=zy(dm,r),a=od(r),s=p.useRef(null),l=ne(t,s,o.onTriggerChange),c=p.useRef(!1),u=p.useRef(!1),d=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),b.jsx(Qa,{asChild:!0,...a,children:b.jsx(ee.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:U(e.onPointerMove,f=>{f.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)})})});C$.displayName=dm;var Wy="TooltipPortal",[Rfe,kfe]=nd(Wy,{forceMount:void 0}),E$=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=us(Wy,t);return b.jsx(Rfe,{scope:t,forceMount:r,children:b.jsx(vt,{present:r||i.open,children:b.jsx(vo,{asChild:!0,container:o,children:n})})})};E$.displayName=Wy;var oi="TooltipContent",O$=p.forwardRef((e,t)=>{const r=kfe(oi,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=us(oi,e.__scopeTooltip);return b.jsx(vt,{present:n||a.open,children:a.disableHoverableContent?b.jsx(A$,{side:o,...i,ref:t}):b.jsx(Ife,{side:o,...i,ref:t})})}),Ife=p.forwardRef((e,t)=>{const r=us(oi,e.__scopeTooltip),n=zy(oi,e.__scopeTooltip),o=p.useRef(null),i=ne(t,o),[a,s]=p.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,f=p.useCallback(()=>{s(null),d(!1)},[d]),h=p.useCallback((v,m)=>{const g=v.currentTarget,y={x:v.clientX,y:v.clientY},x=Vfe(y,g.getBoundingClientRect()),w=Ffe(y,x),S=Bfe(m.getBoundingClientRect()),P=Wfe([...w,...S]);s(P),d(!0)},[d]);return p.useEffect(()=>()=>f(),[f]),p.useEffect(()=>{if(l&&u){const v=g=>h(g,u),m=g=>h(g,l);return l.addEventListener("pointerleave",v),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",v),u.removeEventListener("pointerleave",m)}}},[l,u,h,f]),p.useEffect(()=>{if(a){const v=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},x=l?.contains(g)||u?.contains(g),w=!zfe(y,a);x?f():w&&(f(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,u,a,c,f]),b.jsx(A$,{...e,ref:i})}),[Nfe,Lfe]=nd(xa,{isInside:!1}),$fe=_fe("TooltipContent"),A$=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=us(oi,r),c=od(r),{onClose:u}=l;return p.useEffect(()=>(document.addEventListener(um,u),()=>document.removeEventListener(um,u)),[u]),p.useEffect(()=>{if(l.trigger){const d=f=>{f.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),b.jsx(mo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:b.jsxs(Lu,{"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:[b.jsx($fe,{children:n}),b.jsx(Nfe,{scope:r,isInside:!0,children:b.jsx(Vue,{id:l.contentId,role:"tooltip",children:o||n})})]})})});O$.displayName=oi;var T$="TooltipArrow",_$=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=od(r);return Lfe(T$,r).isInside?null:b.jsx($u,{...o,...n,ref:t})});_$.displayName=T$;function Vfe(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 Ffe(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 Bfe(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 zfe(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,f=l.y;u>n!=f>n&&r<(d-c)*(n-u)/(f-u)+c&&(o=!o)}return o}function Wfe(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),Kfe(t)}function Kfe(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 Ufe=S$,Hfe=P$,Gfe=C$,qfe=E$,Yfe=O$,Xfe=_$;const Zfe=Ufe,Jfe=Hfe,Qfe=Gfe,M$=qfe,Ky=p.forwardRef(({className:e,...t},r)=>b.jsx(Xfe,{ref:r,className:L("fill-primary",e),...t}));Ky.displayName="TooltipArrow";const j$=re(["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"}}),D$=p.forwardRef(({className:e,variant:t,sideOffset:r=4,showArrow:n=!1,children:o,...i},a)=>b.jsx(M$,{children:b.jsxs(Yfe,{ref:a,sideOffset:r,className:L(j$({variant:t,className:e})),...i,children:[o,n&&b.jsx(Ky,{className:t==="light"?"fill-card":"fill-primary"})]})}));D$.displayName="TooltipContent";exports.Accordion=WE;exports.AccordionContent=GE;exports.AccordionItem=KE;exports.AccordionTrigger=HE;exports.ActionsMenuButton=vk;exports.AlertDialog=mz;exports.AlertDialogAction=J1;exports.AlertDialogCancel=Q1;exports.AlertDialogContent=G1;exports.AlertDialogDescription=Z1;exports.AlertDialogFooter=Y1;exports.AlertDialogHeader=q1;exports.AlertDialogOverlay=Cm;exports.AlertDialogPortal=U1;exports.AlertDialogTitle=X1;exports.AlertDialogTrigger=vz;exports.Badge=tO;exports.Banner=nO;exports.BarChart=fj;exports.BreadcrumbItem=mj;exports.BreadcrumbSeparator=jg;exports.Breadcrumbs=hj;exports.Button=Pm;exports.Card=gj;exports.Checkbox=Oj;exports.ContextMenu=eoe;exports.ContextMenuCheckboxItem=fR;exports.ContextMenuContent=uR;exports.ContextMenuGroup=roe;exports.ContextMenuItem=dR;exports.ContextMenuLabel=hR;exports.ContextMenuPortal=sR;exports.ContextMenuRadioGroup=ooe;exports.ContextMenuRadioItem=pR;exports.ContextMenuSeparator=mR;exports.ContextMenuShortcut=vR;exports.ContextMenuSub=noe;exports.ContextMenuSubContent=cR;exports.ContextMenuSubTrigger=lR;exports.ContextMenuTrigger=toe;exports.DatePicker=kR;exports.DateTimePicker=$R;exports.Divider=FR;exports.DropdownMenu=nie;exports.DropdownMenuCheckboxItem=dk;exports.DropdownMenuContent=ck;exports.DropdownMenuGroup=iie;exports.DropdownMenuItem=uk;exports.DropdownMenuLabel=pk;exports.DropdownMenuPortal=ak;exports.DropdownMenuRadioGroup=sie;exports.DropdownMenuRadioItem=fk;exports.DropdownMenuSeparator=hk;exports.DropdownMenuShortcut=mk;exports.DropdownMenuSub=aie;exports.DropdownMenuSubContent=lk;exports.DropdownMenuSubTrigger=sk;exports.DropdownMenuTrigger=oie;exports.EngrateLogo=yk;exports.Eyebrow=xk;exports.Footer=Sk;exports.FooterBottom=Ak;exports.FooterContent=Pk;exports.FooterCopyright=Tk;exports.FooterHeading=Ek;exports.FooterLinks=Ok;exports.FooterSection=Ck;exports.FormField=jk;exports.FormMessage=Zg;exports.Grid=Dk;exports.GridItem=Rk;exports.Header=Ik;exports.HeaderActions=$k;exports.HeaderLogo=Nk;exports.HeaderNav=Lk;exports.Heading=Qg;exports.Input=Bk;exports.Label=Jg;exports.LineChart=Wk;exports.Link=Uk;exports.Modal=RN;exports.ModalClose=yue;exports.ModalContent=NN;exports.ModalDescription=FN;exports.ModalFooter=$N;exports.ModalHeader=LN;exports.ModalOverlay=Dy;exports.ModalPortal=kN;exports.ModalTitle=VN;exports.ModalTrigger=gue;exports.Pagination=WN;exports.PaginationDot=qN;exports.PaginationDots=HN;exports.PaginationItem=Bo;exports.PieChart=XN;exports.ProgressIndicator=QN;exports.RadioGroup=f2;exports.RadioGroupItem=p2;exports.Select=wde;exports.SelectContent=U2;exports.SelectGroup=Sde;exports.SelectItem=G2;exports.SelectLabel=H2;exports.SelectScrollDownButton=Ny;exports.SelectScrollUpButton=Iy;exports.SelectSeparator=q2;exports.SelectTrigger=K2;exports.SelectValue=Pde;exports.Sidebar=Z2;exports.SidebarContent=Q2;exports.SidebarFooter=eL;exports.SidebarGroup=tL;exports.SidebarGroupLabel=rL;exports.SidebarHeader=J2;exports.SidebarItem=nL;exports.SidebarSeparator=iL;exports.SidebarTrigger=oL;exports.Skeleton=sL;exports.Slider=PL;exports.Spinner=EL;exports.Stack=AL;exports.Switch=RL;exports.TabContent=JL;exports.TabList=qL;exports.TabTrigger=XL;exports.Table=IL;exports.TableBody=LL;exports.TableCaption=zL;exports.TableCell=BL;exports.TableFooter=$L;exports.TableHead=FL;exports.TableHeader=NL;exports.TableRow=VL;exports.Tabs=UL;exports.Text=Ei;exports.Textarea=e$;exports.Toast=v$;exports.ToastAction=g$;exports.ToastClose=y$;exports.ToastDescription=x$;exports.ToastProvider=Afe;exports.ToastTitle=b$;exports.ToastViewport=h$;exports.Tooltip=Jfe;exports.TooltipArrow=Ky;exports.TooltipContent=D$;exports.TooltipPortal=M$;exports.TooltipProvider=Zfe;exports.TooltipTrigger=Qfe;exports.accordionTriggerVariants=UE;exports.accordionVariants=zE;exports.alertDialogContentVariants=H1;exports.badgeVariants=eO;exports.bannerVariants=rO;exports.barChartVariants=dj;exports.breadcrumbItemVariants=Sh;exports.breadcrumbsVariants=pj;exports.buttonVariants=Vc;exports.calendarDayVariants=RR;exports.cardVariants=vj;exports.cn=L;exports.datePickerTriggerVariants=DR;exports.dateTimePickerCalendarDayVariants=LR;exports.dateTimePickerTriggerVariants=NR;exports.dividerVariants=VR;exports.engrateLogoVariants=gk;exports.eyebrowVariants=bk;exports.footerVariants=wk;exports.gridItemVariants=yie;exports.gridVariants=pie;exports.headerVariants=kk;exports.headingVariants=Vk;exports.inputVariants=Fk;exports.labelVariants=Mk;exports.lineChartVariants=zk;exports.linkVariants=Kk;exports.modalContentVariants=IN;exports.paginationDotVariants=GN;exports.paginationDotsVariants=UN;exports.paginationItemVariants=zN;exports.paginationVariants=BN;exports.pieChartVariants=YN;exports.progressBarVariants=JN;exports.progressIndicatorVariants=ZN;exports.sidebarItemVariants=nm;exports.sidebarVariants=X2;exports.skeletonVariants=aL;exports.sliderVariants=SL;exports.spinnerVariants=CL;exports.stackVariants=OL;exports.tabContentVariants=ZL;exports.tabListVariants=HL;exports.tabTriggerVariants=YL;exports.tableVariants=kL;exports.textVariants=jN;exports.textareaVariants=QL;exports.toastVariants=m$;exports.tooltipContentVariants=j$;exports.useFilterableTable=rfe;exports.useSidebarContext=Qu;exports.useSortableTable=tfe;
108
+ `),()=>{P.contains(S)&&P.removeChild(S)}},[t]),b.jsx(ahe,{isPresent:t,childRef:s,sizeRef:l,pop:i,children:i===!1?e:p.cloneElement(e,{ref:d})})}const lhe=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a,anchorX:s,anchorY:l,root:c})=>{const u=hb(che),d=O.useId();let f=!0,h=O.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:r,custom:o,onExitComplete:v=>{u.set(v,!0);for(const m of u.values())if(!m)return;n&&n()},register:v=>(u.set(v,!1),()=>u.delete(v))}),[r,u,n]);return i&&f&&(h={...h}),O.useMemo(()=>{u.forEach((v,m)=>u.set(m,!1))},[r]),p.useEffect(()=>{!r&&!u.size&&n&&n()},[r]),e=b.jsx(she,{pop:a==="popLayout",isPresent:r,anchorX:s,anchorY:l,root:c,children:e}),b.jsx(_d.Provider,{value:h,children:e})};function che(){return new Map}function uL(e=!0){const t=O.useContext(_d);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,i=O.useId();O.useEffect(()=>{if(e)return o(i)},[e]);const a=O.useCallback(()=>e&&n&&n(i),[i,n,e]);return!r&&n?[!1,a]:[!0]}const Rl=e=>e.key||"";function hO(e){const t=[];return O.Children.forEach(e,r=>{O.isValidElement(r)&&t.push(r)}),t}const uhe=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1,anchorX:s="left",anchorY:l="top",root:c})=>{const[u,d]=uL(a),f=O.useMemo(()=>hO(e),[e]),h=a&&!u?[]:f.map(Rl),v=O.useRef(!0),m=O.useRef(f),g=hb(()=>new Map),y=O.useRef(new Set),[w,x]=O.useState(f),[S,P]=O.useState(f);VI(()=>{v.current=!1,m.current=f;for(let A=0;A<S.length;A++){const T=Rl(S[A]);h.includes(T)?(g.delete(T),y.current.delete(T)):g.get(T)!==!0&&g.set(T,!1)}},[S,h.length,h.join("-")]);const C=[];if(f!==w){let A=[...f];for(let T=0;T<S.length;T++){const M=S[T],D=Rl(M);h.includes(D)||(A.splice(T,0,M),C.push(M))}return i==="wait"&&C.length&&(A=C),P(hO(A)),x(f),null}process.env.NODE_ENV!=="production"&&i==="wait"&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:E}=O.useContext(pb);return b.jsx(b.Fragment,{children:S.map(A=>{const T=Rl(A),M=a&&!u?!1:f===S||h.includes(T),D=()=>{if(y.current.has(T))return;if(y.current.add(T),g.has(T))g.set(T,!0);else return;let k=!0;g.forEach(_=>{_||(k=!1)}),k&&(E?.(),P(m.current),a&&d?.(),n&&n())};return b.jsx(lhe,{isPresent:M,initial:!v.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:c,onExitComplete:M?void 0:D,anchorX:s,anchorY:l,children:A},T)})})},dL=O.createContext({strict:!1}),mO={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let vO=!1;function dhe(){if(vO)return;const e={};for(const t in mO)e[t]={isEnabled:r=>mO[t].some(n=>!!r[n])};V2(e),vO=!0}function fL(){return dhe(),Xfe()}function fhe(e){const t=fL();for(const r in e)t[r]={...t[r],...e[r]};V2(t)}const phe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function hu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||phe.has(e)}let pL=e=>!hu(e);function hhe(e){typeof e=="function"&&(pL=t=>t.startsWith("on")?!hu(t):e(t))}try{hhe(require("@emotion/is-prop-valid").default)}catch{}function mhe(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(pL(o)||r===!0&&hu(o)||!t&&!hu(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}const Rd=O.createContext({});function vhe(e,t){if(jd(e)){const{initial:r,animate:n}=e;return{initial:r===!1||es(r)?r:void 0,animate:es(n)?n:void 0}}return e.inherit!==!1?t:{}}function ghe(e){const{initial:t,animate:r}=vhe(e,O.useContext(Rd));return O.useMemo(()=>({initial:t,animate:r}),[gO(t),gO(r)])}function gO(e){return Array.isArray(e)?e.join(" "):e}const zb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function hL(e,t,r){for(const n in t)!Ct(t[n])&&!G2(n,r)&&(e[n]=t[n])}function yhe({transformTemplate:e},t){return O.useMemo(()=>{const r=zb();return Vb(r,t,e),Object.assign({},r.vars,r.style)},[t])}function bhe(e,t){const r=e.style||{},n={};return hL(n,r,e),Object.assign(n,yhe(e,t)),n}function whe(e,t){const r={},n=bhe(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const mL=()=>({...zb(),attrs:{}});function xhe(e,t,r,n){const o=O.useMemo(()=>{const i=mL();return Y2(i,t,X2(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};hL(i,e.style,e),o.style={...i,...o.style}}return o}const She=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Kb(e){return typeof e!="string"||e.includes("-")?!1:!!(She.indexOf(e)>-1||/[A-Z]/u.test(e))}function Phe(e,t,r,{latestValues:n},o,i=!1,a){const l=(a??Kb(e)?xhe:whe)(t,n,o,e),c=mhe(t,typeof e=="string",i),u=e!==O.Fragment?{...c,...l,ref:r}:{},{children:d}=t,f=O.useMemo(()=>Ct(d)?d.get():d,[d]);return O.createElement(e,{...u,children:f})}function Che({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:Ohe(r,n,o,e),renderState:t()}}function Ohe(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=Ql(i[f]);let{initial:a,animate:s}=e;const l=jd(e),c=$2(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;const d=u?s:a;if(d&&typeof d!="boolean"&&!Nd(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const v=_b(e,f[h]);if(v){const{transitionEnd:m,transition:g,...y}=v;for(const w in y){let x=y[w];if(Array.isArray(x)){const S=u?x.length-1:0;x=x[S]}x!==null&&(o[w]=x)}for(const w in m)o[w]=m[w]}}}return o}const vL=e=>(t,r)=>{const n=O.useContext(Rd),o=O.useContext(_d),i=()=>Che(e,t,n,o);return r?i():hb(i)},Ehe=vL({scrapeMotionValuesFromProps:Bb,createRenderState:zb}),Ahe=vL({scrapeMotionValuesFromProps:Z2,createRenderState:mL}),The=Symbol.for("motionComponentSymbol");function Mhe(e,t,r){const n=O.useRef(r);O.useInsertionEffect(()=>{n.current=r});const o=O.useRef(null);return O.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const a=n.current;if(typeof a=="function")if(i){const s=a(i);typeof s=="function"&&(o.current=s)}else o.current?(o.current(),o.current=null):a(i);else a&&(a.current=i)},[t])}const gL=O.createContext({});function ai(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function khe(e,t,r,n,o,i){const{visualElement:a}=O.useContext(Rd),s=O.useContext(dL),l=O.useContext(_d),c=O.useContext(Wb),u=c.reducedMotion,d=c.skipAnimations,f=O.useRef(null),h=O.useRef(!1);n=n||s.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:a,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:i}),h.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const v=f.current,m=O.useContext(gL);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&Dhe(f.current,r,o,m);const g=O.useRef(!1);O.useInsertionEffect(()=>{v&&g.current&&v.update(r,l)});const y=r[O2],w=O.useRef(!!y&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return VI(()=>{h.current=!0,v&&(g.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),w.current&&v.animationState&&v.animationState.animateChanges())}),O.useEffect(()=>{v&&(!w.current&&v.animationState&&v.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),w.current=!1),v.enteringChildren=void 0)}),v}function Dhe(e,t,r,n){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:yL(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&ai(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}function yL(e){if(e)return e.options.allowProjection!==!1?e.projection:yL(e.parent)}function ah(e,{forwardMotionProps:t=!1,type:r}={},n,o){n&&fhe(n);const i=r?r==="svg":Kb(e),a=i?Ahe:Ehe;function s(c,u){let d;const f={...O.useContext(Wb),...c,layoutId:_he(c)},{isStatic:h}=f,v=ghe(c),m=a(c,h);if(!h&&FI){Nhe(f,n);const g=jhe(f);d=g.MeasureLayout,v.visualElement=khe(e,m,f,o,g.ProjectionNode,i)}return b.jsxs(Rd.Provider,{value:v,children:[d&&v.visualElement?b.jsx(d,{visualElement:v.visualElement,...f}):null,Phe(e,c,Mhe(m,v.visualElement,u),m,h,t,i)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=O.forwardRef(s);return l[The]=e,l}function _he({layoutId:e}){const t=O.useContext(pb).id;return t&&e!==void 0?t+"-"+e:e}function Nhe(e,t){const r=O.useContext(dL).strict;if(process.env.NODE_ENV!=="production"&&t&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Zi(!1,n,"lazy-strict-mode"):hn(!1,n,"lazy-strict-mode")}}function jhe(e){const t=fL(),{drag:r,layout:n}=t;if(!r&&!n)return{};const o={...r,...n};return{MeasureLayout:r?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function Rhe(e,t){if(typeof Proxy>"u")return ah;const r=new Map,n=(i,a)=>ah(i,a,e,t),o=(i,a)=>(process.env.NODE_ENV!=="production"&&yb(!1,"motion() is deprecated. Use motion.create() instead."),n(i,a));return new Proxy(o,{get:(i,a)=>a==="create"?n:(r.has(a)||r.set(a,ah(a,void 0,e,t)),r.get(a))})}const Ihe=(e,t)=>t.isSVG??Kb(e)?new ppe(t):new spe(t,{allowProjection:e!==O.Fragment});class Lhe extends Jn{constructor(t){super(t),t.animationState||(t.animationState=ype(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Nd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let $he=0;class Fhe extends Jn{constructor(){super(...arguments),this.id=$he++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Vhe={animation:{Feature:Lhe},exit:{Feature:Fhe}};function Ys(e){return{point:{x:e.pageX,y:e.pageY}}}const Bhe=e=>t=>Ib(t)&&e(t,Ys(t));function Ma(e,t,r,n){return ts(e,t,Bhe(r),n)}const bL=({current:e})=>e?e.ownerDocument.defaultView:null,yO=(e,t)=>Math.abs(e-t);function Whe(e,t){const r=yO(e.x,t.x),n=yO(e.y,t.y);return Math.sqrt(r**2+n**2)}const bO=new Set(["auto","scroll"]);class wL{constructor(t,r,{transformPagePoint:n,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=lh(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,m=Whe(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!v&&!m)return;const{point:g}=h,{timestamp:y}=yt;this.history.push({...g,timestamp:y});const{onStart:w,onMove:x}=this.handlers;v||(w&&w(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,v)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=sh(v,this.transformPagePoint),_e.update(this.updatePoint,!0)},this.handlePointerUp=(h,v)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=lh(h.type==="pointercancel"?this.lastMoveEventInfo:sh(v,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,w),g&&g(h,w)},!Ib(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=o||window;const l=Ys(t),c=sh(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=r;f&&f(t,lh(c,this.history)),this.removeListeners=Us(Ma(this.contextWindow,"pointermove",this.handlePointerMove),Ma(this.contextWindow,"pointerup",this.handlePointerUp),Ma(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let r=t.parentElement;for(;r;){const n=getComputedStyle(r);(bO.has(n.overflowX)||bO.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const n=t===window,o=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-r.x,y:o.y-r.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),_e.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Kn(this.updatePoint)}}function sh(e,t){return t?{point:t(e.point)}:e}function wO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lh({point:e},t){return{point:e,delta:wO(e,xL(t)),offset:wO(e,zhe(t)),velocity:Khe(t,.1)}}function zhe(e){return e[0]}function xL(e){return e[e.length-1]}function Khe(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=xL(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>cr(t)));)r--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&o.timestamp-n.timestamp>cr(t)*2&&(n=e[1]);const i=ar(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Uhe(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Be(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Be(r,e,n.max):Math.min(e,r)),e}function xO(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Hhe(e,{top:t,left:r,bottom:n,right:o}){return{x:xO(e.x,r,o),y:xO(e.y,t,n)}}function SO(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function Ghe(e,t){return{x:SO(e.x,t.x),y:SO(e.y,t.y)}}function Yhe(e,t){let r=.5;const n=jt(e),o=jt(t);return o>n?r=Za(t.min,t.max-n,e.min):n>o&&(r=Za(e.min,e.max-o,t.min)),Ur(0,1,r)}function qhe(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Ym=.35;function Xhe(e=Ym){return e===!1?e=0:e===!0&&(e=Ym),{x:PO(e,"left","right"),y:PO(e,"top","bottom")}}function PO(e,t,r){return{min:CO(e,t),max:CO(e,r)}}function CO(e,t){return typeof e=="number"?e:e[t]||0}const Zhe=new WeakMap;class Qhe{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{r&&this.snapToCursor(Ys(d).point),this.stopAnimation()},a=(d,f)=>{const{drag:h,dragPropagation:v,onDragStart:m}=this.getProps();if(h&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Efe(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kr(y=>{let w=this.getAxisMotionValue(y).get()||0;if(Fr.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[y];S&&(w=jt(S)*(parseFloat(w)/100))}}this.originPoint[y]=w}),m&&_e.update(()=>m(d,f),!1,!0),Vm(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:v,onDirectionLock:m,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:y}=f;if(v&&this.currentDirection===null){this.currentDirection=eme(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&_e.update(()=>g(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new wL(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:bL(this.visualElement),element:this.visualElement.current})}stop(t,r){const n=t||this.latestPointerEvent,o=r||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!n)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&_e.postRender(()=>s(n,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Il(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=Uhe(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&ai(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=Hhe(n.layoutBox,t):this.constraints=!1,this.elastic=Xhe(r),o!==this.constraints&&!ai(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&kr(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=qhe(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!ai(t))return!1;const n=t.current;hn(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=tpe(n,o.root,this.visualElement.getTransformPagePoint());let a=Ghe(o.layout.layoutBox,i);if(r){const s=r(Qfe(a));this.hasMutatedConstraints=!!s,s&&(a=W2(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=kr(u=>{if(!Il(u,r,this.currentDirection))return;let d=l&&l[u]||{};a&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,v={type:"inertia",velocity:n?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return Vm(this.visualElement,t),n.start(Db(t,n,0,r,this.visualElement,!1))}stopAnimation(){kr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){kr(r=>{const{drag:n}=this.getProps();if(!Il(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r],l=i.get()||0;i.set(t[r]-Be(a,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!ai(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};kr(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=Yhe({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),kr(a=>{if(!Il(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(Be(l,c,o[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Zhe.set(this.visualElement,this);const t=this.visualElement.current,r=Ma(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,h=f!==t&&_fe(f);u&&d&&!h&&this.start(c)});let n;const o=()=>{const{dragConstraints:c}=this.getProps();ai(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),n||(n=Jhe(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),_e.read(o);const s=ts(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(kr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())}));return()=>{s(),r(),a(),l&&l(),n&&n()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Ym,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function OO(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Jhe(e,t,r){const n=_1(e,OO(r)),o=_1(t,OO(r));return()=>{n(),o()}}function Il(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function eme(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class tme extends Jn{constructor(t){super(t),this.removeGroupControls=lr,this.removeListeners=lr,this.controls=new Qhe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||lr}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const ch=e=>(t,r)=>{e&&_e.update(()=>e(t,r),!1,!0)};class rme extends Jn{constructor(){super(...arguments),this.removePointerDownListener=lr}onPointerDown(t){this.session=new wL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bL(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:ch(t),onStart:ch(r),onMove:ch(n),onEnd:(i,a)=>{delete this.session,o&&_e.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=Ma(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let uh=!1;class nme extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),uh&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Jl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,t.layoutDependency!==r&&a.setOptions({...a.options,layoutDependency:r}),uh=!0,o||t.layoutDependency!==r||r===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||_e.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Rb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;uh=!0,o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function SL(e){const[t,r]=uL(),n=O.useContext(pb);return b.jsx(nme,{...e,layoutGroup:n,switchLayoutGroup:O.useContext(gL),isPresent:t,safeToRemove:r})}const ome={pan:{Feature:rme},drag:{Feature:tme,ProjectionNode:cL,MeasureLayout:SL}};function EO(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const o="onHover"+r,i=n[o];i&&_e.postRender(()=>i(t,Ys(t)))}class ime extends Jn{mount(){const{current:t}=this.node;t&&(this.unmount=Tfe(t,(r,n)=>(EO(this.node,n,"Start"),o=>EO(this.node,o,"End"))))}unmount(){}}class ame extends Jn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Us(ts(this.node.current,"focus",()=>this.onFocus()),ts(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function AO(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const o="onTap"+(r==="End"?"":r),i=n[o];i&&_e.postRender(()=>i(t,Ys(t)))}class sme extends Jn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:n}=this.node.props;this.unmount=jfe(t,(o,i)=>(AO(this.node,i,"Start"),(a,{success:s})=>AO(this.node,a,s?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:n?.tap===!1})}unmount(){}}const qm=new WeakMap,dh=new WeakMap,lme=e=>{const t=qm.get(e.target);t&&t(e)},cme=e=>{e.forEach(lme)};function ume({root:e,...t}){const r=e||document;dh.has(r)||dh.set(r,{});const n=dh.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(cme,{root:e,...t})),n[o]}function dme(e,t,r){const n=ume(t);return qm.set(e,r),n.observe(e),()=>{qm.delete(e),n.unobserve(e)}}const fme={some:0,all:1};class pme extends Jn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:fme[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return dme(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(hme(t,r))&&this.startObserver()}unmount(){}}function hme({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const mme={inView:{Feature:pme},tap:{Feature:sme},focus:{Feature:ame},hover:{Feature:ime}},vme={layout:{ProjectionNode:cL,MeasureLayout:SL}},gme={...Vhe,...mme,...ome,...vme},PL=Rhe(gme,Ihe),CL=ne("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","body-sm":"text-body-sm 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"}}),ta=p.forwardRef(({className:e,variant:t="body",weight:r="regular",as:n="p",asChild:o=!1,...i},a)=>{const s=o?Re:n;return b.jsx(s,{className:N(CL({variant:t,weight:r,className:e})),ref:a,...i})});ta.displayName="Text";const OL=p.createContext(!1),EL=({open:e,defaultOpen:t=!1,onOpenChange:r,children:n,...o})=>{const[i,a]=p.useState(t),s=e!==void 0,l=s?e:i,c=p.useCallback(u=>{s||a(u),r?.(u)},[s,r]);return b.jsx(OL.Provider,{value:l,children:b.jsx(UE,{open:l,onOpenChange:c,...o,children:n})})};EL.displayName="Modal";const yme=HE,AL=GE,bme=Cu,Ub=p.forwardRef(({className:e,...t},r)=>b.jsx(YE,{ref:r,forceMount:!0,asChild:!0,...t,children:b.jsx(PL.div,{initial:{opacity:0,backdropFilter:"blur(0px)"},animate:{opacity:1,backdropFilter:"blur(4px)"},exit:{opacity:0,backdropFilter:"blur(0px)"},transition:{duration:.2},className:N("fixed inset-0 z-50 bg-black/20",e)})}));Ub.displayName="ModalOverlay";const TL=ne(["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-8 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"],{variants:{size:{sm:"max-w-[400px]",default:"max-w-[500px]",lg:"max-w-[640px]",full:"max-w-[95vw]"}},defaultVariants:{size:"default"}}),ML=p.forwardRef(({className:e,children:t,size:r,showCloseButton:n=!0,...o},i)=>{const a=p.useContext(OL);return b.jsx(uhe,{children:a&&b.jsxs(AL,{forceMount:!0,children:[b.jsx(Ub,{}),b.jsx(qE,{ref:i,forceMount:!0,asChild:!0,...o,children:b.jsxs(PL.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:N(TL({size:r}),e),children:[t,n&&b.jsx(Cu,{asChild:!0,children:b.jsxs(Cv,{variant:"ghost",size:"icon",className:"absolute top-6 right-6",children:[b.jsx(XO,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})})]})})]})})});ML.displayName="ModalContent";const kL=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:N("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}));kL.displayName="ModalHeader";const DL=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:N("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));DL.displayName="ModalFooter";const _L=p.forwardRef(({className:e,children:t,...r},n)=>b.jsx(XE,{ref:n,asChild:!0,...r,children:b.jsx(fb,{level:"h3",className:e,children:t})}));_L.displayName="ModalTitle";const NL=p.forwardRef(({className:e,children:t,...r},n)=>b.jsx(ZE,{ref:n,asChild:!0,...r,children:b.jsx(ta,{variant:"semi-lead",className:e,children:t})}));NL.displayName="ModalDescription";const jL=ne("flex items-center justify-center gap-1 font-sans",{variants:{size:{sm:"text-small",default:"text-body",lg:"text-lead"}},defaultVariants:{size:"default"}}),RL=ne("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"}}),IL=p.forwardRef(({className:e,size:t,page:r,totalPages:n,onPageChange:o,siblingCount:i=1,...a},s)=>{const l=p.useMemo(()=>{const d=i*2+3+2;if(n<=d)return Array.from({length:n},(g,y)=>y+1);const f=Math.max(r-i,1),h=Math.min(r+i,n),v=f>2,m=h<n-1;if(!v&&m){const g=3+2*i;return[...Array.from({length:g},(w,x)=>x+1),"ellipsis-right",n]}if(v&&!m){const g=3+2*i;return[1,"ellipsis-left",...Array.from({length:g},(w,x)=>n-g+x+1)]}return v&&m?[1,"ellipsis-left",...Array.from({length:i*2+1},(y,w)=>f+w),"ellipsis-right",n]:Array.from({length:n},(g,y)=>y+1)},[r,n,i]),c=u=>{u>=1&&u<=n&&u!==r&&o?.(u)};return b.jsxs("nav",{ref:s,role:"navigation","aria-label":"Pagination",className:N(jL({size:t,className:e})),...a,children:[b.jsx(mi,{size:t,onClick:()=>c(r-1),disabled:r===1,"aria-label":"Go to previous page",children:b.jsx(yv,{className:"h-4 w-4"})}),l.map(u=>typeof u=="string"?b.jsx(mi,{size:t,variant:"ellipsis",disabled:!0,"aria-hidden":!0,children:b.jsx(qO,{className:"h-4 w-4"})},u):b.jsx(mi,{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)),b.jsx(mi,{size:t,onClick:()=>c(r+1),disabled:r===n,"aria-label":"Go to next page",children:b.jsx(bv,{className:"h-4 w-4"})})]})});IL.displayName="Pagination";const mi=p.forwardRef(({className:e,variant:t,size:r,...n},o)=>b.jsx("button",{ref:o,type:"button",className:N(RL({variant:t,size:r,className:e})),...n}));mi.displayName="PaginationItem";const LL=p.createContext(null);function wme(){const e=p.useContext(LL);if(!e)throw new Error("PaginationDot must be used within a PaginationDots component");return e}const $L=ne("inline-flex items-center justify-center font-sans",{variants:{size:{sm:"gap-1.5",default:"gap-2",lg:"gap-2.5"}},defaultVariants:{size:"default"}}),FL=p.forwardRef(({className:e,value:t,onValueChange:r,size:n="default",children:o,...i},a)=>b.jsx(LL.Provider,{value:{value:t,onValueChange:r,size:n??"default"},children:b.jsx("div",{ref:a,role:"group","aria-label":"Content navigation",className:N($L({size:n}),e),...i,children:o})}));FL.displayName="PaginationDots";const VL=ne("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}}),BL=p.forwardRef(({className:e,index:t,...r},n)=>{const{value:o,onValueChange:i,size:a}=wme(),s=t===o;return b.jsx("button",{ref:n,type:"button","aria-label":`Go to slide ${t+1}`,"aria-current":s?"true":void 0,onClick:()=>i?.(t),className:N(VL({size:a,active:s}),e),...r})});BL.displayName="PaginationDot";const WL=ne("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),TO=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],zL=p.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},f)=>{const h=p.useMemo(()=>r.reduce((m,g)=>m+g.value,0),[r]),v=p.useCallback(m=>{const{cx:g=0,cy:y=0,midAngle:w=0,percent:x=0}=m,S=m.innerRadius??0,P=m.outerRadius??0,C=Math.PI/180,E=S+(P-S)*.5,A=g+E*Math.cos(-w*C),T=y+E*Math.sin(-w*C);return b.jsx("text",{x:A,y:T,fill:"var(--color-white)",textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"12px",fontFamily:"var(--font-sans)",fontWeight:500},children:`${(x*100).toFixed(0)}%`})},[]);return b.jsx("div",{ref:f,className:N(WL({size:t,className:e})),role:"img",...d,children:b.jsx(Gv,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:b.jsxs(Cne,{children:[o&&b.jsx(dy,{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,g)=>[`${m} (${h>0?(Number(m)/h*100).toFixed(1):0}%)`,g]}),n&&b.jsx(Hu,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>b.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),b.jsx(GD,{data:r,cx:"50%",cy:"50%",innerRadius:i,outerRadius:a,paddingAngle:s,dataKey:"value",nameKey:"name",startAngle:c,endAngle:u,label:l?v:!1,labelLine:!1,children:r.map((m,g)=>b.jsx(Ms,{fill:m.color||TO[g%TO.length]},`cell-${m.name}-${g}`))})]})})})});zL.displayName="PieChart";const KL=ne("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"}}),UL=ne("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}}),HL=p.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 b.jsx("div",{ref:c,role:"progressbar","aria-valuenow":s?void 0:t,"aria-valuemin":0,"aria-valuemax":r,"aria-label":a,className:N(KL({size:n,className:e})),...l,children:b.jsx("div",{className:N(UL({variant:o,animated:i}),s&&"animate-progress-indeterminate"),style:{width:s?"50%":`${u}%`}})})});HL.displayName="ProgressIndicator";var Hb="Radio",[xme,GL]=it(Hb),[Sme,Pme]=xme(Hb),YL=p.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,f]=p.useState(null),h=ie(t,g=>f(g)),v=p.useRef(!1),m=d?c||!!d.closest("form"):!0;return b.jsxs(Sme,{scope:r,checked:o,disabled:a,children:[b.jsx(ee.button,{type:"button",role:"radio","aria-checked":o,"data-state":QL(o),"data-disabled":a?"":void 0,disabled:a,value:s,...u,ref:h,onClick:U(e.onClick,g=>{o||l?.(),m&&(v.current=g.isPropagationStopped(),v.current||g.stopPropagation())})}),m&&b.jsx(ZL,{control:d,bubbles:!v.current,name:n,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});YL.displayName=Hb;var qL="RadioIndicator",XL=p.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=Pme(qL,r);return b.jsx(At,{present:n||i.checked,children:b.jsx(ee.span,{"data-state":QL(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});XL.displayName=qL;var Cme="RadioBubbleInput",ZL=p.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=p.useRef(null),s=ie(a,i),l=Rs(r),c=Is(t);return p.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&h){const v=new Event("click",{bubbles:n});h.call(u,r),u.dispatchEvent(v)}},[l,r,n]),b.jsx(ee.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}})});ZL.displayName=Cme;function QL(e){return e?"checked":"unchecked"}var Ome=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Id="RadioGroup",[Eme]=it(Id,[Ad,GL]),JL=Ad(),e$=GL(),[Ame,Tme]=Eme(Id),t$=p.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,...f}=e,h=JL(r),v=Ri(c),[m,g]=wt({prop:i,defaultProp:o??null,onChange:d,caller:Id});return b.jsx(Ame,{scope:r,name:n,required:a,disabled:s,value:m,onValueChange:g,children:b.jsx(QN,{asChild:!0,...h,orientation:l,dir:v,loop:u,children:b.jsx(ee.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:v,...f,ref:t})})})});t$.displayName=Id;var r$="RadioGroupItem",n$=p.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=Tme(r$,r),a=i.disabled||n,s=JL(r),l=e$(r),c=p.useRef(null),u=ie(t,c),d=i.value===o.value,f=p.useRef(!1);return p.useEffect(()=>{const h=m=>{Ome.includes(m.key)&&(f.current=!0)},v=()=>f.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),b.jsx(JN,{asChild:!0,...s,focusable:!a,active:d,children:b.jsx(YL,{disabled:a,required:i.required,checked:d,...l,...o,name:i.name,ref:u,onCheck:()=>i.onValueChange(o.value),onKeyDown:U(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:U(o.onFocus,()=>{f.current&&c.current?.click()})})})});n$.displayName=r$;var Mme="RadioGroupIndicator",o$=p.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=e$(r);return b.jsx(XL,{...o,...n,ref:t})});o$.displayName=Mme;var kme=t$,Dme=n$,_me=o$;const i$=p.forwardRef(({className:e,...t},r)=>b.jsx(kme,{className:N("grid gap-2",e),...t,ref:r}));i$.displayName="RadioGroup";const a$=p.forwardRef(({className:e,...t},r)=>b.jsx(Dme,{ref:r,className:N("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:b.jsx(_me,{className:"flex items-center justify-center",children:b.jsx("span",{className:"bg-sunflower h-2.5 w-2.5 rounded-full"})})}));a$.displayName="RadioGroupItem";function mu(e,[t,r]){return Math.min(r,Math.max(t,e))}function Nme(e){const t=jme(e),r=p.forwardRef((n,o)=>{const{children:i,...a}=n,s=p.Children.toArray(i),l=s.find(Ime);if(l){const c=l.props.children,u=s.map(d=>d===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function jme(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const a=$me(o),s=Lme(i,o.props);return o.type!==p.Fragment&&(s.ref=n?Hr(n,a):a),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rme=Symbol("radix.slottable");function Ime(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rme}function Lme(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 $me(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 s$=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"}),Fme="VisuallyHidden",Ld=p.forwardRef((e,t)=>b.jsx(ee.span,{...e,ref:t,style:{...s$,...e.style}}));Ld.displayName=Fme;var Vme=Ld,Bme=[" ","Enter","ArrowUp","ArrowDown"],Wme=[" ","Enter"],Lo="Select",[$d,Fd,zme]=ji(Lo),[ra]=it(Lo,[zme,Xn]),Vd=Xn(),[Kme,eo]=ra(Lo),[Ume,Hme]=ra(Lo),l$=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:f,required:h,form:v}=e,m=Vd(t),[g,y]=p.useState(null),[w,x]=p.useState(null),[S,P]=p.useState(!1),C=Ri(c),[E,A]=wt({prop:n,defaultProp:o??!1,onChange:i,caller:Lo}),[T,M]=wt({prop:a,defaultProp:s,onChange:l,caller:Lo}),D=p.useRef(null),k=g?v||!!g.closest("form"):!0,[_,I]=p.useState(new Set),z=Array.from(_).map(B=>B.props.value).join(";");return b.jsx($s,{...m,children:b.jsxs(Kme,{required:h,scope:t,trigger:g,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:P,contentId:Rt(),value:T,onValueChange:M,open:E,onOpenChange:A,dir:C,triggerPointerDownPosRef:D,disabled:f,children:[b.jsx($d.Provider,{scope:t,children:b.jsx(Ume,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(B=>{I(V=>new Set(V).add(B))},[]),onNativeOptionRemove:p.useCallback(B=>{I(V=>{const j=new Set(V);return j.delete(B),j})},[]),children:r})}),k?b.jsxs(N$,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:T,onChange:B=>M(B.target.value),disabled:f,form:v,children:[T===void 0?b.jsx("option",{value:""}):null,Array.from(_)]},z):null]})})};l$.displayName=Lo;var c$="SelectTrigger",u$=p.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Vd(r),a=eo(c$,r),s=a.disabled||n,l=ie(t,a.onTriggerChange),c=Fd(r),u=p.useRef("touch"),[d,f,h]=R$(m=>{const g=c().filter(x=>!x.disabled),y=g.find(x=>x.value===a.value),w=I$(g,m,y);w!==void 0&&a.onValueChange(w.value)}),v=m=>{s||(a.onOpenChange(!0),h()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return b.jsx(Fs,{asChild:!0,...i,children:b.jsx(ee.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":j$(a.value)?"":void 0,...o,ref:l,onClick:U(o.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&v(m)}),onPointerDown:U(o.onPointerDown,m=>{u.current=m.pointerType;const g=m.target;g.hasPointerCapture(m.pointerId)&&g.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(v(m),m.preventDefault())}),onKeyDown:U(o.onKeyDown,m=>{const g=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(g&&m.key===" ")&&Bme.includes(m.key)&&(v(),m.preventDefault())})})})});u$.displayName=c$;var d$="SelectValue",f$=p.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a="",...s}=e,l=eo(d$,r),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=ie(t,l.onValueNodeChange);return pt(()=>{c(u)},[c,u]),b.jsx(ee.span,{...s,ref:d,style:{pointerEvents:"none"},children:j$(l.value)?b.jsx(b.Fragment,{children:a}):i})});f$.displayName=d$;var Gme="SelectIcon",p$=p.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return b.jsx(ee.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});p$.displayName=Gme;var Yme="SelectPortal",h$=e=>b.jsx(Bo,{asChild:!0,...e});h$.displayName=Yme;var $o="SelectContent",m$=p.forwardRef((e,t)=>{const r=eo($o,e.__scopeSelect),[n,o]=p.useState();if(pt(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?os.createPortal(b.jsx(v$,{scope:e.__scopeSelect,children:b.jsx($d.Slot,{scope:e.__scopeSelect,children:b.jsx("div",{children:e.children})})}),i):null}return b.jsx(g$,{...e,ref:t})});m$.displayName=$o;var vr=10,[v$,to]=ra($o),qme="SelectContentImpl",Xme=Nme("SelectContent.RemoveScroll"),g$=p.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:f,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:g,...y}=e,w=eo($o,r),[x,S]=p.useState(null),[P,C]=p.useState(null),E=ie(t,K=>S(K)),[A,T]=p.useState(null),[M,D]=p.useState(null),k=Fd(r),[_,I]=p.useState(!1),z=p.useRef(!1);p.useEffect(()=>{if(x)return Su(x)},[x]),wu();const B=p.useCallback(K=>{const[fe,...$]=k().map(F=>F.ref.current),[G]=$.slice(-1),W=document.activeElement;for(const F of K)if(F===W||(F?.scrollIntoView({block:"nearest"}),F===fe&&P&&(P.scrollTop=0),F===G&&P&&(P.scrollTop=P.scrollHeight),F?.focus(),document.activeElement!==W))return},[k,P]),V=p.useCallback(()=>B([A,x]),[B,A,x]);p.useEffect(()=>{_&&V()},[_,V]);const{onOpenChange:j,triggerPointerDownPosRef:L}=w;p.useEffect(()=>{if(x){let K={x:0,y:0};const fe=G=>{K={x:Math.abs(Math.round(G.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(G.pageY)-(L.current?.y??0))}},$=G=>{K.x<=10&&K.y<=10?G.preventDefault():x.contains(G.target)||j(!1),document.removeEventListener("pointermove",fe),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",fe),document.addEventListener("pointerup",$,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",fe),document.removeEventListener("pointerup",$,{capture:!0})}}},[x,j,L]),p.useEffect(()=>{const K=()=>j(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[j]);const[H,te]=R$(K=>{const fe=k().filter(W=>!W.disabled),$=fe.find(W=>W.ref.current===document.activeElement),G=I$(fe,K,$);G&&setTimeout(()=>G.ref.current.focus())}),le=p.useCallback((K,fe,$)=>{const G=!z.current&&!$;(w.value!==void 0&&w.value===fe||G)&&(T(K),G&&(z.current=!0))},[w.value]),ae=p.useCallback(()=>x?.focus(),[x]),oe=p.useCallback((K,fe,$)=>{const G=!z.current&&!$;(w.value!==void 0&&w.value===fe||G)&&D(K)},[w.value]),Se=n==="popper"?Xm:y$,Me=Se===Xm?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:v,hideWhenDetached:m,avoidCollisions:g}:{};return b.jsx(v$,{scope:r,content:x,viewport:P,onViewportChange:C,itemRefCallback:le,selectedItem:A,onItemLeave:ae,itemTextRefCallback:oe,focusSelectedItem:V,selectedItemText:M,position:n,isPositioned:_,searchRef:H,children:b.jsx(as,{as:Xme,allowPinchZoom:!0,children:b.jsx(is,{asChild:!0,trapped:w.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:U(o,K=>{w.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:b.jsx(Vo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:b.jsx(Se,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:K=>K.preventDefault(),...y,...Me,onPlaced:()=>I(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:U(y.onKeyDown,K=>{const fe=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!fe&&K.key.length===1&&te(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let G=k().filter(W=>!W.disabled).map(W=>W.ref.current);if(["ArrowUp","End"].includes(K.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const W=K.target,F=G.indexOf(W);G=G.slice(F+1)}setTimeout(()=>B(G)),K.preventDefault()}})})})})})})});g$.displayName=qme;var Zme="SelectItemAlignedPosition",y$=p.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=eo($o,r),a=to($o,r),[s,l]=p.useState(null),[c,u]=p.useState(null),d=ie(t,E=>u(E)),f=Fd(r),h=p.useRef(!1),v=p.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:y,focusSelectedItem:w}=a,x=p.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&g&&y){const E=i.trigger.getBoundingClientRect(),A=c.getBoundingClientRect(),T=i.valueNode.getBoundingClientRect(),M=y.getBoundingClientRect();if(i.dir!=="rtl"){const W=M.left-A.left,F=T.left-W,he=E.left-F,ue=E.width+he,Ye=Math.max(ue,A.width),tt=window.innerWidth-vr,zt=mu(F,[vr,Math.max(vr,tt-Ye)]);s.style.minWidth=ue+"px",s.style.left=zt+"px"}else{const W=A.right-M.right,F=window.innerWidth-T.right-W,he=window.innerWidth-E.right-F,ue=E.width+he,Ye=Math.max(ue,A.width),tt=window.innerWidth-vr,zt=mu(F,[vr,Math.max(vr,tt-Ye)]);s.style.minWidth=ue+"px",s.style.right=zt+"px"}const D=f(),k=window.innerHeight-vr*2,_=m.scrollHeight,I=window.getComputedStyle(c),z=parseInt(I.borderTopWidth,10),B=parseInt(I.paddingTop,10),V=parseInt(I.borderBottomWidth,10),j=parseInt(I.paddingBottom,10),L=z+B+_+j+V,H=Math.min(g.offsetHeight*5,L),te=window.getComputedStyle(m),le=parseInt(te.paddingTop,10),ae=parseInt(te.paddingBottom,10),oe=E.top+E.height/2-vr,Se=k-oe,Me=g.offsetHeight/2,K=g.offsetTop+Me,fe=z+B+K,$=L-fe;if(fe<=oe){const W=D.length>0&&g===D[D.length-1].ref.current;s.style.bottom="0px";const F=c.clientHeight-m.offsetTop-m.offsetHeight,he=Math.max(Se,Me+(W?ae:0)+F+V),ue=fe+he;s.style.height=ue+"px"}else{const W=D.length>0&&g===D[0].ref.current;s.style.top="0px";const he=Math.max(oe,z+m.offsetTop+(W?le:0)+Me)+$;s.style.height=he+"px",m.scrollTop=fe-oe+m.offsetTop}s.style.margin=`${vr}px 0`,s.style.minHeight=H+"px",s.style.maxHeight=k+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[f,i.trigger,i.valueNode,s,c,m,g,y,i.dir,n]);pt(()=>x(),[x]);const[S,P]=p.useState();pt(()=>{c&&P(window.getComputedStyle(c).zIndex)},[c]);const C=p.useCallback(E=>{E&&v.current===!0&&(x(),w?.(),v.current=!1)},[x,w]);return b.jsx(Jme,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:C,children:b.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:b.jsx(ee.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});y$.displayName=Zme;var Qme="SelectPopperPosition",Xm=p.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=vr,...i}=e,a=Vd(r);return b.jsx(Od,{...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)"}})});Xm.displayName=Qme;var[Jme,Gb]=ra($o,{}),Zm="SelectViewport",b$=p.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=to(Zm,r),a=Gb(Zm,r),s=ie(t,i.onViewportChange),l=p.useRef(0);return b.jsxs(b.Fragment,{children:[b.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}),b.jsx($d.Slot,{scope:r,children:b.jsx(ee.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:f}=a;if(f?.current&&d){const h=Math.abs(l.current-u.scrollTop);if(h>0){const v=window.innerHeight-vr*2,m=parseFloat(d.style.minHeight),g=parseFloat(d.style.height),y=Math.max(m,g);if(y<v){const w=y+h,x=Math.min(v,w),S=w-x;d.style.height=x+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});b$.displayName=Zm;var w$="SelectGroup",[eve,tve]=ra(w$),x$=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Rt();return b.jsx(eve,{scope:r,id:o,children:b.jsx(ee.div,{role:"group","aria-labelledby":o,...n,ref:t})})});x$.displayName=w$;var S$="SelectLabel",P$=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=tve(S$,r);return b.jsx(ee.div,{id:o.id,...n,ref:t})});P$.displayName=S$;var vu="SelectItem",[rve,C$]=ra(vu),O$=p.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=eo(vu,r),l=to(vu,r),c=s.value===n,[u,d]=p.useState(i??""),[f,h]=p.useState(!1),v=ie(t,w=>l.itemRefCallback?.(w,n,o)),m=Rt(),g=p.useRef("touch"),y=()=>{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 b.jsx(rve,{scope:r,value:n,disabled:o,textId:m,isSelected:c,onItemTextChange:p.useCallback(w=>{d(x=>x||(w?.textContent??"").trim())},[]),children:b.jsx($d.ItemSlot,{scope:r,value:n,disabled:o,textValue:u,children:b.jsx(ee.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:v,onFocus:U(a.onFocus,()=>h(!0)),onBlur:U(a.onBlur,()=>h(!1)),onClick:U(a.onClick,()=>{g.current!=="mouse"&&y()}),onPointerUp:U(a.onPointerUp,()=>{g.current==="mouse"&&y()}),onPointerDown:U(a.onPointerDown,w=>{g.current=w.pointerType}),onPointerMove:U(a.onPointerMove,w=>{g.current=w.pointerType,o?l.onItemLeave?.():g.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:U(a.onPointerLeave,w=>{w.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:U(a.onKeyDown,w=>{l.searchRef?.current!==""&&w.key===" "||(Wme.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});O$.displayName=vu;var Oa="SelectItemText",E$=p.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=eo(Oa,r),s=to(Oa,r),l=C$(Oa,r),c=Hme(Oa,r),[u,d]=p.useState(null),f=ie(t,y=>d(y),l.onItemTextChange,y=>s.itemTextRefCallback?.(y,l.value,l.disabled)),h=u?.textContent,v=p.useMemo(()=>b.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return pt(()=>(m(v),()=>g(v)),[m,g,v]),b.jsxs(b.Fragment,{children:[b.jsx(ee.span,{id:l.textId,...i,ref:f}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?os.createPortal(i.children,a.valueNode):null]})});E$.displayName=Oa;var A$="SelectItemIndicator",T$=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return C$(A$,r).isSelected?b.jsx(ee.span,{"aria-hidden":!0,...n,ref:t}):null});T$.displayName=A$;var Qm="SelectScrollUpButton",M$=p.forwardRef((e,t)=>{const r=to(Qm,e.__scopeSelect),n=Gb(Qm,e.__scopeSelect),[o,i]=p.useState(!1),a=ie(t,n.onScrollButtonChange);return pt(()=>{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?b.jsx(D$,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});M$.displayName=Qm;var Jm="SelectScrollDownButton",k$=p.forwardRef((e,t)=>{const r=to(Jm,e.__scopeSelect),n=Gb(Jm,e.__scopeSelect),[o,i]=p.useState(!1),a=ie(t,n.onScrollButtonChange);return pt(()=>{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?b.jsx(D$,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});k$.displayName=Jm;var D$=p.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=to("SelectScrollButton",r),a=p.useRef(null),s=Fd(r),l=p.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return p.useEffect(()=>()=>l(),[l]),pt(()=>{s().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),b.jsx(ee.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()})})}),nve="SelectSeparator",_$=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return b.jsx(ee.div,{"aria-hidden":!0,...n,ref:t})});_$.displayName=nve;var ev="SelectArrow",ove=p.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Vd(r),i=eo(ev,r),a=to(ev,r);return i.open&&a.position==="popper"?b.jsx(Ed,{...o,...n,ref:t}):null});ove.displayName=ev;var ive="SelectBubbleInput",N$=p.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=p.useRef(null),i=ie(n,o),a=Rs(t);return p.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]),b.jsx(ee.select,{...r,style:{...s$,...r.style},ref:i,defaultValue:t})});N$.displayName=ive;function j$(e){return e===""||e===void 0}function R$(e){const t=Et(e),r=p.useRef(""),n=p.useRef(0),o=p.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=p.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function I$(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=ave(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 ave(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var sve=l$,lve=u$,cve=f$,uve=p$,dve=h$,fve=m$,pve=b$,hve=x$,mve=P$,vve=O$,gve=E$,yve=T$,bve=M$,wve=k$,xve=_$;const Sve=sve,Pve=hve,Cve=cve,L$=p.forwardRef(({className:e,children:t,variant:r="default",...n},o)=>b.jsxs(lve,{ref:o,className:N("bg-card text-body-sm text-primary flex h-8 w-full items-center justify-between rounded-md border px-3 py-2 font-sans transition-colors","placeholder:text-tertiary placeholder:text-body-sm","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,b.jsx(uve,{asChild:!0,children:b.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:b.jsx("path",{d:"m6 9 6 6 6-6"})})})]}));L$.displayName="SelectTrigger";const Yb=p.forwardRef(({className:e,...t},r)=>b.jsx(bve,{ref:r,className:N("flex cursor-default items-center justify-center py-1",e),...t,children:b.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:b.jsx("path",{d:"m18 15-6-6-6 6"})})}));Yb.displayName="SelectScrollUpButton";const qb=p.forwardRef(({className:e,...t},r)=>b.jsx(wve,{ref:r,className:N("flex cursor-default items-center justify-center py-1",e),...t,children:b.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:b.jsx("path",{d:"m6 9 6 6 6-6"})})}));qb.displayName="SelectScrollDownButton";const $$=p.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>b.jsx(dve,{children:b.jsxs(fve,{ref:o,className:N("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:[b.jsx(Yb,{}),b.jsx(pve,{className:N("p-1",r==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),b.jsx(qb,{})]})}));$$.displayName="SelectContent";const F$=p.forwardRef(({className:e,...t},r)=>b.jsx(mve,{ref:r,className:N("text-small text-tertiary py-1.5 pr-2 pl-8 font-normal",e),...t}));F$.displayName="SelectLabel";const V$=p.forwardRef(({className:e,children:t,...r},n)=>b.jsxs(vve,{ref:n,className:N("text-body-sm relative flex h-8 w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-alt focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(yve,{children:b.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:b.jsx("polyline",{points:"20 6 9 17 4 12"})})})}),b.jsx(gve,{children:t})]}));V$.displayName="SelectItem";const B$=p.forwardRef(({className:e,...t},r)=>b.jsx(xve,{ref:r,className:N("bg-border -mx-1 my-1 h-px",e),...t}));B$.displayName="SelectSeparator";const W$=p.createContext(null);function Bd(){const e=p.useContext(W$);if(!e)throw new Error("Sidebar components must be used within a Sidebar");return e}const z$=ne(["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"}}),Ove={sm:{expanded:"w-52",collapsed:"w-14"},default:{expanded:"w-64",collapsed:"w-16"},lg:{expanded:"w-72",collapsed:"w-20"}},K$=p.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,f]=p.useState(n),h=o!==void 0,v=h?o:d,m=p.useCallback(w=>{a&&(h||f(w),i?.(w))},[h,i,a]);p.useEffect(()=>{if(!s||!a||typeof window>"u"||!window.matchMedia)return;const w=window.matchMedia("(max-width: 768px)"),x=S=>{m(S.matches)};return x(w),w.addEventListener("change",x),()=>w.removeEventListener("change",x)},[s,a,m]);const g=p.useMemo(()=>({collapsed:v,setCollapsed:m,collapsible:a}),[v,m,a]),y=Ove[r||"default"];return b.jsx(W$.Provider,{value:g,children:b.jsx("aside",{ref:u,className:N(z$({variant:t}),v?y.collapsed:y.expanded,e),"data-collapsed":v,...c,children:l})})});K$.displayName="Sidebar";const U$=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:N("flex items-center gap-4 px-6 pt-6 pb-4",e),...t}));U$.displayName="SidebarHeader";const H$=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:N("flex-1 overflow-y-auto px-5 py-4",e),...t}));H$.displayName="SidebarContent";const G$=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:N("border-border mt-auto border-t px-5 py-5",e),...t}));G$.displayName="SidebarFooter";const Y$=p.forwardRef(({className:e,...t},r)=>b.jsx("div",{ref:r,className:N("space-y-2 py-4",e),...t}));Y$.displayName="SidebarGroup";const q$=p.forwardRef(({className:e,...t},r)=>{const{collapsed:n}=Bd();return n?null:b.jsx(ta,{variant:"label",ref:r,className:N("px-4 py-3 uppercase",e),...t})});q$.displayName="SidebarGroupLabel";const tv=ne(["group text-small relative flex w-full cursor-pointer items-center gap-3 rounded-md px-4 py-3 font-sans font-normal","text-secondary 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}}),X$=p.forwardRef(({className:e,active:t,icon:r,asChild:n=!1,children:o,...i},a)=>{const{collapsed:s}=Bd(),l=n?Re:"button",c=b.jsx("span",{className:N("bg-sunflower absolute rounded-full transition-opacity",s?"right-1 bottom-0 left-1 h-0.75":"top-1 bottom-1 left-0 w-0.75",t?"opacity-100":"opacity-0 group-hover:opacity-100"),"aria-hidden":"true"}),u=b.jsxs(b.Fragment,{children:[c,r&&b.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&b.jsx(ta,{variant:"body-sm",className:"truncate",children:o})]});return n?b.jsx(Re,{ref:a,className:N(tv({active:t}),s&&"justify-center px-2",e),...i,children:p.isValidElement(o)?p.cloneElement(o,{children:b.jsxs(b.Fragment,{children:[c,r&&b.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&b.jsx("span",{className:"truncate",children:o.props.children})]})}):o}):b.jsx(l,{ref:a,className:N(tv({active:t}),s&&"justify-center px-2",e),...i,children:u})});X$.displayName="SidebarItem";const Z$=p.forwardRef(({className:e,...t},r)=>{const{collapsed:n,setCollapsed:o,collapsible:i}=Bd();return i?b.jsx("button",{ref:r,type:"button",className:N("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?b.jsx(bv,{className:"h-5 w-5"}):b.jsx(yv,{className:"h-5 w-5"})}):null});Z$.displayName="SidebarTrigger";const Q$=p.forwardRef(({className:e,...t},r)=>b.jsx("hr",{ref:r,className:N("border-border my-5 border-t",e),...t}));Q$.displayName="SidebarSeparator";const J$=ne("bg-contrast animate-pulse",{variants:{variant:{default:"rounded-md",circular:"rounded-full",text:"rounded"}},defaultVariants:{variant:"default"}}),eF=p.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 b.jsx("div",{ref:a,"aria-hidden":"true",className:N(J$({variant:t,className:e})),style:s,...i})});eF.displayName="Skeleton";var tF=["PageUp","PageDown"],rF=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],nF={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},na="Slider",[rv,Eve,Ave]=ji(na),[oF]=it(na,[Ave]),[Tve,Wd]=oF(na),iF=p.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:f=()=>{},inverted:h=!1,form:v,...m}=e,g=p.useRef(new Set),y=p.useRef(0),x=a==="horizontal"?Mve:kve,[S=[],P]=wt({prop:u,defaultProp:c,onChange:D=>{[...g.current][y.current]?.focus(),d(D)}}),C=p.useRef(S);function E(D){const k=Rve(S,D);M(D,k)}function A(D){M(D,y.current)}function T(){const D=C.current[y.current];S[y.current]!==D&&f(S)}function M(D,k,{commit:_}={commit:!1}){const I=Fve(i),z=Vve(Math.round((D-n)/i)*i+n,I),B=mu(z,[n,o]);P((V=[])=>{const j=Nve(V,B,k);if($ve(j,l*i)){y.current=j.indexOf(B);const L=String(j)!==String(V);return L&&_&&f(j),L?j:V}else return V})}return b.jsx(Tve,{scope:e.__scopeSlider,name:r,disabled:s,min:n,max:o,valueIndexToChangeRef:y,thumbs:g.current,values:S,orientation:a,form:v,children:b.jsx(rv.Provider,{scope:e.__scopeSlider,children:b.jsx(rv.Slot,{scope:e.__scopeSlider,children:b.jsx(x,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:t,onPointerDown:U(m.onPointerDown,()=>{s||(C.current=S)}),min:n,max:o,inverted:h,onSlideStart:s?void 0:E,onSlideMove:s?void 0:A,onSlideEnd:s?void 0:T,onHomeKeyDown:()=>!s&&M(n,0,{commit:!0}),onEndKeyDown:()=>!s&&M(o,S.length-1,{commit:!0}),onStepKeyDown:({event:D,direction:k})=>{if(!s){const z=tF.includes(D.key)||D.shiftKey&&rF.includes(D.key)?10:1,B=y.current,V=S[B],j=i*z*k;M(V+j,B,{commit:!0})}}})})})})});iF.displayName=na;var[aF,sF]=oF(na,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Mve=p.forwardRef((e,t)=>{const{min:r,max:n,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,[d,f]=p.useState(null),h=ie(t,x=>f(x)),v=p.useRef(void 0),m=Ri(o),g=m==="ltr",y=g&&!i||!g&&i;function w(x){const S=v.current||d.getBoundingClientRect(),P=[0,S.width],E=Xb(P,y?[r,n]:[n,r]);return v.current=S,E(x-S.left)}return b.jsx(aF,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:b.jsx(lF,{dir:m,"data-orientation":"horizontal",...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=w(x.clientX);a?.(S)},onSlideMove:x=>{const S=w(x.clientX);s?.(S)},onSlideEnd:()=>{v.current=void 0,l?.()},onStepKeyDown:x=>{const P=nF[y?"from-left":"from-right"].includes(x.key);c?.({event:x,direction:P?-1:1})}})})}),kve=p.forwardRef((e,t)=>{const{min:r,max:n,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,u=p.useRef(null),d=ie(t,u),f=p.useRef(void 0),h=!o;function v(m){const g=f.current||u.current.getBoundingClientRect(),y=[0,g.height],x=Xb(y,h?[n,r]:[r,n]);return f.current=g,x(m-g.top)}return b.jsx(aF,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:b.jsx(lF,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const g=v(m.clientY);i?.(g)},onSlideMove:m=>{const g=v(m.clientY);a?.(g)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:m=>{const y=nF[h?"from-bottom":"from-top"].includes(m.key);l?.({event:m,direction:y?-1:1})}})})}),lF=p.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=Wd(na,r);return b.jsx(ee.span,{...c,ref:t,onKeyDown:U(e.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):tF.concat(rF).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:U(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(f)?f.focus():n(d)}),onPointerMove:U(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:U(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),i(d))})})}),cF="SliderTrack",uF=p.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=Wd(cF,r);return b.jsx(ee.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});uF.displayName=cF;var nv="SliderRange",dF=p.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=Wd(nv,r),i=sF(nv,r),a=p.useRef(null),s=ie(t,a),l=o.values.length,c=o.values.map(f=>hF(f,o.min,o.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return b.jsx(ee.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:s,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:d+"%"}})});dF.displayName=nv;var ov="SliderThumb",fF=p.forwardRef((e,t)=>{const r=Eve(e.__scopeSlider),[n,o]=p.useState(null),i=ie(t,s=>o(s)),a=p.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return b.jsx(Dve,{...e,ref:i,index:a})}),Dve=p.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:o,...i}=e,a=Wd(ov,r),s=sF(ov,r),[l,c]=p.useState(null),u=ie(t,w=>c(w)),d=l?a.form||!!l.closest("form"):!0,f=Is(l),h=a.values[n],v=h===void 0?0:hF(h,a.min,a.max),m=jve(n,a.values.length),g=f?.[s.size],y=g?Ive(g,v,s.direction):0;return p.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),b.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${v}% + ${y}px)`},children:[b.jsx(rv.ItemSlot,{scope:e.__scopeSlider,children:b.jsx(ee.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":h,"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:h===void 0?{display:"none"}:e.style,onFocus:U(e.onFocus,()=>{a.valueIndexToChangeRef.current=n})})}),d&&b.jsx(pF,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:h},n)]})});fF.displayName=ov;var _ve="RadioBubbleInput",pF=p.forwardRef(({__scopeSlider:e,value:t,...r},n)=>{const o=p.useRef(null),i=ie(o,n),a=Rs(t);return p.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]),b.jsx(ee.input,{style:{display:"none"},...r,ref:i,defaultValue:t})});pF.displayName=_ve;function Nve(e=[],t,r){const n=[...e];return n[r]=t,n.sort((o,i)=>o-i)}function hF(e,t,r){const i=100/(r-t)*(e-t);return mu(i,[0,100])}function jve(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Rve(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 Ive(e,t,r){const n=e/2,i=Xb([0,50],[0,n]);return(n-i(t)*r)*r}function Lve(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function $ve(e,t){if(t>0){const r=Lve(e);return Math.min(...r)>=t}return!0}function Xb(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 Fve(e){return(String(e).split(".")[1]||"").length}function Vve(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var Bve=iF,Wve=uF,zve=dF,Kve=fF;const mF=ne("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"}}),vF=p.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 b.jsxs(Bve,{ref:s,defaultValue:r,value:n,className:N(mF({size:t}),e),...a,children:[b.jsx(Wve,{className:N("bg-border relative h-[var(--slider-track-height)] w-full grow overflow-hidden rounded-full"),children:b.jsx(zve,{className:"bg-sunflower absolute h-full"})}),Array.from({length:l}).map((c,u)=>b.jsx(Kve,{"aria-label":o,"aria-labelledby":i,className:N("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))]})});vF.displayName="Slider";const gF=ne("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"}}),yF=p.forwardRef(({className:e,variant:t,size:r,label:n="Loading",...o},i)=>b.jsx("span",{ref:i,role:"status","aria-label":n,className:N(gF({variant:t,size:r,className:e})),...o,children:b.jsx("span",{className:"sr-only",children:n})}));yF.displayName="Spinner";const bF=ne("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"}}),wF=p.forwardRef(({className:e,direction:t,gap:r,align:n,justify:o,wrap:i,as:a="div",asChild:s=!1,...l},c)=>{const u=s?Re:a;return b.jsx(u,{className:N(bF({direction:t,gap:r,align:n,justify:o,wrap:i,className:e})),ref:c,...l})});wF.displayName="Stack";var zd="Switch",[Uve]=it(zd),[Hve,Gve]=Uve(zd),xF=p.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,[f,h]=p.useState(null),v=ie(t,x=>h(x)),m=p.useRef(!1),g=f?u||!!f.closest("form"):!0,[y,w]=wt({prop:o,defaultProp:i??!1,onChange:c,caller:zd});return b.jsxs(Hve,{scope:r,checked:y,disabled:s,children:[b.jsx(ee.button,{type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":OF(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:v,onClick:U(e.onClick,x=>{w(S=>!S),g&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})}),g&&b.jsx(CF,{control:f,bubbles:!m.current,name:n,value:l,checked:y,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});xF.displayName=zd;var SF="SwitchThumb",PF=p.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=Gve(SF,r);return b.jsx(ee.span,{"data-state":OF(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});PF.displayName=SF;var Yve="SwitchBubbleInput",CF=p.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=p.useRef(null),s=ie(a,i),l=Rs(r),c=Is(t);return p.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&h){const v=new Event("click",{bubbles:n});h.call(u,r),u.dispatchEvent(v)}},[l,r,n]),b.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}})});CF.displayName=Yve;function OF(e){return e?"checked":"unchecked"}var qve=xF,Xve=PF;const EF=p.forwardRef(({className:e,...t},r)=>b.jsx(qve,{className:N("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:b.jsx(Xve,{className:N("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")})}));EF.displayName="Switch";const AF=ne("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"}}),Zve=ne("border-border bg-alt border-b",{variants:{},defaultVariants:{}}),Qve=ne("",{variants:{},defaultVariants:{}}),Jve=ne("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"}}),ege=ne("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"}}),tge=ne("text-secondary align-middle [&:has([role=checkbox])]:pr-0",{variants:{size:{default:"p-4",compact:"p-2"}},defaultVariants:{size:"default"}}),Zb=p.createContext({size:"default"}),TF=p.forwardRef(({className:e,variant:t,size:r="default",...n},o)=>b.jsx(Zb.Provider,{value:{size:r??"default"},children:b.jsx("div",{className:"relative w-full overflow-auto",children:b.jsx("table",{ref:o,className:N(AF({variant:t,size:r}),e),...n})})}));TF.displayName="Table";const MF=p.forwardRef(({className:e,...t},r)=>b.jsx("thead",{ref:r,className:N(Zve(),e),...t}));MF.displayName="TableHeader";const kF=p.forwardRef(({className:e,...t},r)=>b.jsx("tbody",{ref:r,className:N(Qve(),e),...t}));kF.displayName="TableBody";const DF=p.forwardRef(({className:e,...t},r)=>b.jsx("tfoot",{ref:r,className:N("border-border bg-alt text-primary border-t font-normal",e),...t}));DF.displayName="TableFooter";const _F=p.forwardRef(({className:e,variant:t,...r},n)=>b.jsx("tr",{ref:n,className:N(Jve({variant:t}),e),...r}));_F.displayName="TableRow";const NF=p.forwardRef(({className:e,children:t,sortable:r=!1,sortDirection:n=null,onSort:o,...i},a)=>{const{size:s}=p.useContext(Zb),l=()=>{r&&o&&o()},c=u=>{r&&o&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())};return b.jsx("th",{ref:a,className:N(ege({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:b.jsxs("div",{className:"flex items-center gap-2",children:[t,r&&b.jsxs("span",{className:"inline-flex flex-col","aria-hidden":"true",children:[b.jsx("svg",{className:N("h-3 w-3 transition-opacity",n==="asc"?"opacity-100":"opacity-30"),fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:b.jsx("path",{d:"M7 15l5-5 5 5"})}),b.jsx("svg",{className:N("-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:b.jsx("path",{d:"M7 9l5 5 5-5"})})]})]})})});NF.displayName="TableHead";const jF=p.forwardRef(({className:e,children:t,...r},n)=>{const{size:o}=p.useContext(Zb);return b.jsx("td",{ref:n,className:N(tge({size:o}),e),...r,children:b.jsx(ta,{variant:"body-sm",as:"span",children:t})})});jF.displayName="TableCell";const RF=p.forwardRef(({className:e,...t},r)=>b.jsx("caption",{ref:r,className:N("text-small text-tertiary mt-4 text-left",e),...t}));RF.displayName="TableCaption";function rge({data:e,initialSortKey:t=null,initialSortDirection:r="asc"}){const[n,o]=p.useState({key:t??null,direction:t?r??"asc":null}),i=p.useCallback(c=>{o(u=>u.key!==c?{key:c,direction:"asc"}:u.direction==="asc"?{key:c,direction:"desc"}:u.direction==="desc"?{key:null,direction:null}:{key:c,direction:"asc"})},[]),{key:a,direction:s}=n;return{sortedData:p.useMemo(()=>!a||!s?e:[...e].sort((c,u)=>{const d=c[a],f=u[a];if(d===f)return 0;let h=0;return typeof d=="string"&&typeof f=="string"?h=d.localeCompare(f):typeof d=="number"&&typeof f=="number"?h=d-f:h=String(d).localeCompare(String(f)),s==="asc"?h:-h}),[e,a,s]),sortKey:a,sortDirection:s,handleSort:i}}function nge({data:e,filterKeys:t}){const[r,n]=p.useState("");return{filteredData:p.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 IF=p.createContext(null);function LF(){const e=p.useContext(IF);if(!e)throw new Error("Tab components must be used within a Tabs component");return e}const $F=p.forwardRef(({className:e,defaultValue:t="",value:r,onValueChange:n,children:o,...i},a)=>{const[s,l]=p.useState(t),c=p.useRef(new Map),u=r!==void 0?r:s,d=p.useCallback(h=>{r===void 0&&l(h),n?.(h)},[r,n]),f=p.useCallback((h,v)=>{v?c.current.set(h,v):c.current.delete(h)},[]);return b.jsx(IF.Provider,{value:{activeTab:u,setActiveTab:d,registerTrigger:f},children:b.jsx("div",{ref:a,className:N("w-full",e),...i,children:o})})});$F.displayName="Tabs";const FF=ne("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"}}),VF=p.createContext(null),BF=p.forwardRef(({className:e,variant:t,...r},n)=>{const o=p.useRef(null),[i,a]=p.useState(null),[s,l]=p.useState(!1),c=p.useRef(!1),u=p.useCallback(h=>{if(h&&o.current){const v=o.current.getBoundingClientRect();a({left:h.left-v.left,width:h.width}),c.current||(c.current=!0,l(!0))}},[]),d=p.useCallback(h=>{o.current=h,typeof n=="function"?n(h):n&&(n.current=h)},[n]),f=p.useMemo(()=>({variant:t??"default",setActiveRect:u}),[t,u]);return b.jsx(VF.Provider,{value:f,children:b.jsxs("div",{ref:d,role:"tablist",className:N(FF({variant:t,className:e})),...r,children:[r.children,t!=="pills"&&i&&b.jsx("span",{className:N("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"})]})})});BF.displayName="TabList";const WF=ne("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"}}),zF=p.forwardRef(({className:e,variant:t,size:r,value:n,...o},i)=>{const{activeTab:a,setActiveTab:s}=LF(),l=p.useContext(VF),c=p.useRef(null),u=a===n,d=p.useCallback(f=>{c.current=f,typeof i=="function"?i(f):i&&(i.current=f)},[i]);return p.useEffect(()=>{if(u&&c.current&&l){const f=()=>{if(c.current){const h=c.current.getBoundingClientRect();l.setActiveRect({left:h.left,width:h.width})}};return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)}},[u,l]),b.jsx("button",{ref:d,role:"tab",type:"button","aria-selected":u,"data-state":u?"active":"inactive",onClick:()=>s(n),className:N(WF({variant:t,size:r,className:e})),...o})});zF.displayName="TabTrigger";const KF=ne("font-sans",{variants:{size:{sm:"text-small mt-3",default:"text-body mt-4",lg:"text-body mt-6"}},defaultVariants:{size:"default"}}),UF=p.forwardRef(({className:e,size:t,value:r,...n},o)=>{const{activeTab:i}=LF(),a=i===r;return a?b.jsx("div",{ref:o,role:"tabpanel","data-state":a?"active":"inactive",className:N(KF({size:t,className:e})),...n}):null});UF.displayName="TabContent";const HF=ne("bg-card text-body-sm text-primary placeholder:text-tertiary placeholder:text-body-sm 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"}}),GF=p.forwardRef(({className:e,variant:t,resize:r,...n},o)=>b.jsx("textarea",{className:N(HF({variant:t,resize:r}),e),ref:o,...n}));GF.displayName="Textarea";var Qb="ToastProvider",[Jb,oge,ige]=ji("Toast"),[YF]=it("Toast",[ige]),[age,Kd]=YF(Qb),qF=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=p.useState(null),[c,u]=p.useState(0),d=p.useRef(!1),f=p.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Qb}\`. Expected non-empty \`string\`.`),b.jsx(Jb.Provider,{scope:t,children:b.jsx(age,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:p.useCallback(()=>u(h=>h+1),[]),onToastRemove:p.useCallback(()=>u(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:a})})};qF.displayName=Qb;var XF="ToastViewport",sge=["F8"],iv="toast.viewportPause",av="toast.viewportResume",ZF=p.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=sge,label:o="Notifications ({hotkey})",...i}=e,a=Kd(XF,r),s=oge(r),l=p.useRef(null),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=ie(t,d,a.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=a.toastCount>0;p.useEffect(()=>{const g=y=>{n.length!==0&&n.every(x=>y[x]||y.code===x)&&d.current?.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[n]),p.useEffect(()=>{const g=l.current,y=d.current;if(v&&g&&y){const w=()=>{if(!a.isClosePausedRef.current){const C=new CustomEvent(iv);y.dispatchEvent(C),a.isClosePausedRef.current=!0}},x=()=>{if(a.isClosePausedRef.current){const C=new CustomEvent(av);y.dispatchEvent(C),a.isClosePausedRef.current=!1}},S=C=>{!g.contains(C.relatedTarget)&&x()},P=()=>{g.contains(document.activeElement)||x()};return g.addEventListener("focusin",w),g.addEventListener("focusout",S),g.addEventListener("pointermove",w),g.addEventListener("pointerleave",P),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{g.removeEventListener("focusin",w),g.removeEventListener("focusout",S),g.removeEventListener("pointermove",w),g.removeEventListener("pointerleave",P),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[v,a.isClosePausedRef]);const m=p.useCallback(({tabbingDirection:g})=>{const w=s().map(x=>{const S=x.ref.current,P=[S,...wge(S)];return g==="forwards"?P:P.reverse()});return(g==="forwards"?w.reverse():w).flat()},[s]);return p.useEffect(()=>{const g=d.current;if(g){const y=w=>{const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const P=document.activeElement,C=w.shiftKey;if(w.target===g&&C){c.current?.focus();return}const T=m({tabbingDirection:C?"backwards":"forwards"}),M=T.findIndex(D=>D===P);fh(T.slice(M+1))?w.preventDefault():C?c.current?.focus():u.current?.focus()}};return g.addEventListener("keydown",y),()=>g.removeEventListener("keydown",y)}},[s,m]),b.jsxs(KW,{ref:l,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&b.jsx(sv,{ref:c,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});fh(g)}}),b.jsx(Jb.Slot,{scope:r,children:b.jsx(ee.ol,{tabIndex:-1,...i,ref:f})}),v&&b.jsx(sv,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});fh(g)}})]})});ZF.displayName=XF;var QF="ToastFocusProxy",sv=p.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=Kd(QF,r);return b.jsx(Ld,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{const s=a.relatedTarget;!i.viewport?.contains(s)&&n()}})});sv.displayName=QF;var qs="Toast",lge="toast.swipeStart",cge="toast.swipeMove",uge="toast.swipeCancel",dge="toast.swipeEnd",JF=p.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s,l]=wt({prop:n,defaultProp:o??!0,onChange:i,caller:qs});return b.jsx(At,{present:r||s,children:b.jsx(hge,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:Et(e.onPause),onResume:Et(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)})})})});JF.displayName=qs;var[fge,pge]=YF(qs,{onClose(){}}),hge=p.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:f,onSwipeEnd:h,...v}=e,m=Kd(qs,r),[g,y]=p.useState(null),w=ie(t,I=>y(I)),x=p.useRef(null),S=p.useRef(null),P=o||m.duration,C=p.useRef(0),E=p.useRef(P),A=p.useRef(0),{onToastAdd:T,onToastRemove:M}=m,D=Et(()=>{g?.contains(document.activeElement)&&m.viewport?.focus(),a()}),k=p.useCallback(I=>{!I||I===1/0||(window.clearTimeout(A.current),C.current=new Date().getTime(),A.current=window.setTimeout(D,I))},[D]);p.useEffect(()=>{const I=m.viewport;if(I){const z=()=>{k(E.current),c?.()},B=()=>{const V=new Date().getTime()-C.current;E.current=E.current-V,window.clearTimeout(A.current),l?.()};return I.addEventListener(iv,B),I.addEventListener(av,z),()=>{I.removeEventListener(iv,B),I.removeEventListener(av,z)}}},[m.viewport,P,l,c,k]),p.useEffect(()=>{i&&!m.isClosePausedRef.current&&k(P)},[i,P,m.isClosePausedRef,k]),p.useEffect(()=>(T(),()=>M()),[T,M]);const _=p.useMemo(()=>g?aV(g):null,[g]);return m.viewport?b.jsxs(b.Fragment,{children:[_&&b.jsx(mge,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:_}),b.jsx(fge,{scope:r,onClose:D,children:os.createPortal(b.jsx(Jb.ItemSlot,{scope:r,children:b.jsx(zW,{asChild:!0,onEscapeKeyDown:U(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||D(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(ee.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...v,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:U(e.onKeyDown,I=>{I.key==="Escape"&&(s?.(I.nativeEvent),I.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:U(e.onPointerDown,I=>{I.button===0&&(x.current={x:I.clientX,y:I.clientY})}),onPointerMove:U(e.onPointerMove,I=>{if(!x.current)return;const z=I.clientX-x.current.x,B=I.clientY-x.current.y,V=!!S.current,j=["left","right"].includes(m.swipeDirection),L=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,H=j?L(0,z):0,te=j?0:L(0,B),le=I.pointerType==="touch"?10:2,ae={x:H,y:te},oe={originalEvent:I,delta:ae};V?(S.current=ae,Ll(cge,d,oe,{discrete:!1})):MO(ae,m.swipeDirection,le)?(S.current=ae,Ll(lge,u,oe,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(z)>le||Math.abs(B)>le)&&(x.current=null)}),onPointerUp:U(e.onPointerUp,I=>{const z=S.current,B=I.target;if(B.hasPointerCapture(I.pointerId)&&B.releasePointerCapture(I.pointerId),S.current=null,x.current=null,z){const V=I.currentTarget,j={originalEvent:I,delta:z};MO(z,m.swipeDirection,m.swipeThreshold)?Ll(dge,h,j,{discrete:!0}):Ll(uge,f,j,{discrete:!0}),V.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),mge=e=>{const{__scopeToast:t,children:r,...n}=e,o=Kd(qs,t),[i,a]=p.useState(!1),[s,l]=p.useState(!1);return yge(()=>a(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:b.jsx(Bo,{asChild:!0,children:b.jsx(Ld,{...n,children:i&&b.jsxs(b.Fragment,{children:[o.label," ",r]})})})},vge="ToastTitle",eV=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return b.jsx(ee.div,{...n,ref:t})});eV.displayName=vge;var gge="ToastDescription",tV=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return b.jsx(ee.div,{...n,ref:t})});tV.displayName=gge;var rV="ToastAction",nV=p.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?b.jsx(iV,{altText:r,asChild:!0,children:b.jsx(ew,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${rV}\`. Expected non-empty \`string\`.`),null)});nV.displayName=rV;var oV="ToastClose",ew=p.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=pge(oV,r);return b.jsx(iV,{asChild:!0,children:b.jsx(ee.button,{type:"button",...n,ref:t,onClick:U(e.onClick,o.onClose)})})});ew.displayName=oV;var iV=p.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return b.jsx(ee.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function aV(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),bge(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(...aV(n))}}),t}function Ll(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?uv(o,i):o.dispatchEvent(i)}var MO=(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 yge(e=()=>{}){const t=Et(e);pt(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function bge(e){return e.nodeType===e.ELEMENT_NODE}function wge(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){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var xge=qF,Sge=ZF,Pge=JF,Cge=eV,Oge=tV,Ege=nV,Age=ew;const Tge=xge,sV=p.forwardRef(({className:e,...t},r)=>b.jsx(Sge,{ref:r,className:N("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}));sV.displayName="ToastViewport";const lV=ne(["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"}}),cV=p.forwardRef(({className:e,variant:t,...r},n)=>b.jsx(Pge,{ref:n,className:N(lV({variant:t}),e),...r}));cV.displayName="Toast";const uV=p.forwardRef(({className:e,...t},r)=>b.jsx(Ege,{ref:r,className:N("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}));uV.displayName="ToastAction";const dV=p.forwardRef(({className:e,...t},r)=>b.jsxs(Age,{ref:r,className:N("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:[b.jsx(XO,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]}));dV.displayName="ToastClose";const fV=p.forwardRef(({className:e,...t},r)=>b.jsx(Cge,{ref:r,className:N("text-sm",e),...t}));fV.displayName="ToastTitle";const pV=p.forwardRef(({className:e,...t},r)=>b.jsx(Oge,{ref:r,className:N("text-secondary text-sm",e),...t}));pV.displayName="ToastDescription";var Mge=Symbol("radix.slottable");function kge(e){const t=({children:r})=>b.jsx(b.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Mge,t}var[Ud]=it("Tooltip",[Xn]),Hd=Xn(),hV="TooltipProvider",Dge=700,lv="tooltip.open",[_ge,tw]=Ud(hV),mV=e=>{const{__scopeTooltip:t,delayDuration:r=Dge,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,a=p.useRef(!0),s=p.useRef(!1),l=p.useRef(0);return p.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),b.jsx(_ge,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:p.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:p.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:i})};mV.displayName=hV;var rs="Tooltip",[Nge,Xs]=Ud(rs),vV=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=tw(rs,e.__scopeTooltip),c=Hd(t),[u,d]=p.useState(null),f=Rt(),h=p.useRef(0),v=a??l.disableHoverableContent,m=s??l.delayDuration,g=p.useRef(!1),[y,w]=wt({prop:n,defaultProp:o??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(lv))):l.onClose(),i?.(E)},caller:rs}),x=p.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),S=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,w(!0)},[w]),P=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),C=p.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,w(!0),h.current=0},m)},[m,w]);return p.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),b.jsx($s,{...c,children:b.jsx(Nge,{scope:t,contentId:f,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayedRef.current?C():S()},[l.isOpenDelayedRef,C,S]),onTriggerLeave:p.useCallback(()=>{v?P():(window.clearTimeout(h.current),h.current=0)},[P,v]),onOpen:S,onClose:P,disableHoverableContent:v,children:r})})};vV.displayName=rs;var cv="TooltipTrigger",gV=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Xs(cv,r),i=tw(cv,r),a=Hd(r),s=p.useRef(null),l=ie(t,s,o.onTriggerChange),c=p.useRef(!1),u=p.useRef(!1),d=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),b.jsx(Fs,{asChild:!0,...a,children:b.jsx(ee.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:U(e.onPointerMove,f=>{f.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)})})});gV.displayName=cv;var rw="TooltipPortal",[jge,Rge]=Ud(rw,{forceMount:void 0}),yV=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=Xs(rw,t);return b.jsx(jge,{scope:t,forceMount:r,children:b.jsx(At,{present:r||i.open,children:b.jsx(Bo,{asChild:!0,container:o,children:n})})})};yV.displayName=rw;var Ni="TooltipContent",bV=p.forwardRef((e,t)=>{const r=Rge(Ni,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=Xs(Ni,e.__scopeTooltip);return b.jsx(At,{present:n||a.open,children:a.disableHoverableContent?b.jsx(wV,{side:o,...i,ref:t}):b.jsx(Ige,{side:o,...i,ref:t})})}),Ige=p.forwardRef((e,t)=>{const r=Xs(Ni,e.__scopeTooltip),n=tw(Ni,e.__scopeTooltip),o=p.useRef(null),i=ie(t,o),[a,s]=p.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,f=p.useCallback(()=>{s(null),d(!1)},[d]),h=p.useCallback((v,m)=>{const g=v.currentTarget,y={x:v.clientX,y:v.clientY},w=Vge(y,g.getBoundingClientRect()),x=Bge(y,w),S=Wge(m.getBoundingClientRect()),P=Kge([...x,...S]);s(P),d(!0)},[d]);return p.useEffect(()=>()=>f(),[f]),p.useEffect(()=>{if(l&&u){const v=g=>h(g,u),m=g=>h(g,l);return l.addEventListener("pointerleave",v),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",v),u.removeEventListener("pointerleave",m)}}},[l,u,h,f]),p.useEffect(()=>{if(a){const v=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},w=l?.contains(g)||u?.contains(g),x=!zge(y,a);w?f():x&&(f(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,u,a,c,f]),b.jsx(wV,{...e,ref:i})}),[Lge,$ge]=Ud(rs,{isInside:!1}),Fge=kge("TooltipContent"),wV=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=Xs(Ni,r),c=Hd(r),{onClose:u}=l;return p.useEffect(()=>(document.addEventListener(lv,u),()=>document.removeEventListener(lv,u)),[u]),p.useEffect(()=>{if(l.trigger){const d=f=>{f.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),b.jsx(Vo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:b.jsxs(Od,{"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:[b.jsx(Fge,{children:n}),b.jsx(Lge,{scope:r,isInside:!0,children:b.jsx(Vme,{id:l.contentId,role:"tooltip",children:o||n})})]})})});bV.displayName=Ni;var xV="TooltipArrow",SV=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Hd(r);return $ge(xV,r).isInside?null:b.jsx(Ed,{...o,...n,ref:t})});SV.displayName=xV;function Vge(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 Bge(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 Wge(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 zge(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,f=l.y;u>n!=f>n&&r<(d-c)*(n-u)/(f-u)+c&&(o=!o)}return o}function Kge(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),Uge(t)}function Uge(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 Hge=mV,Gge=vV,Yge=gV,qge=yV,Xge=bV,Zge=SV;const Qge=Hge,Jge=Gge,eye=Yge,PV=qge,nw=p.forwardRef(({className:e,...t},r)=>b.jsx(Zge,{ref:r,className:N("fill-primary",e),...t}));nw.displayName="TooltipArrow";const CV=ne(["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"}}),OV=p.forwardRef(({className:e,variant:t,sideOffset:r=4,showArrow:n=!1,children:o,...i},a)=>b.jsx(PV,{children:b.jsxs(Xge,{ref:a,sideOffset:r,className:N(CV({variant:t,className:e})),...i,children:[o,n&&b.jsx(nw,{className:t==="light"?"fill-card":"fill-primary"})]})}));OV.displayName="TooltipContent";exports.Accordion=dE;exports.AccordionContent=mE;exports.AccordionItem=fE;exports.AccordionTrigger=hE;exports.ActionsMenuButton=cI;exports.AlertDialog=A3;exports.AlertDialogAction=wA;exports.AlertDialogCancel=xA;exports.AlertDialogContent=mA;exports.AlertDialogDescription=bA;exports.AlertDialogFooter=gA;exports.AlertDialogHeader=vA;exports.AlertDialogOverlay=Ov;exports.AlertDialogPortal=pA;exports.AlertDialogTitle=yA;exports.AlertDialogTrigger=T3;exports.Badge=PA;exports.Banner=OA;exports.BarChart=j_;exports.BreadcrumbItem=L_;exports.BreadcrumbSeparator=_y;exports.Breadcrumbs=I_;exports.Button=Cv;exports.Calendar=js;exports.Card=vN;exports.Checkbox=ON;exports.ContextMenu=ace;exports.ContextMenuCheckboxItem=dR;exports.ContextMenuContent=cR;exports.ContextMenuGroup=lce;exports.ContextMenuItem=uR;exports.ContextMenuLabel=pR;exports.ContextMenuPortal=aR;exports.ContextMenuRadioGroup=uce;exports.ContextMenuRadioItem=fR;exports.ContextMenuSeparator=hR;exports.ContextMenuShortcut=mR;exports.ContextMenuSub=cce;exports.ContextMenuSubContent=lR;exports.ContextMenuSubTrigger=sR;exports.ContextMenuTrigger=sce;exports.DatePicker=AR;exports.DateRangePicker=MR;exports.DateTimePicker=DR;exports.Divider=NR;exports.DropdownMenu=oue;exports.DropdownMenuCheckboxItem=oI;exports.DropdownMenuContent=rI;exports.DropdownMenuGroup=aue;exports.DropdownMenuItem=nI;exports.DropdownMenuLabel=aI;exports.DropdownMenuPortal=JR;exports.DropdownMenuRadioGroup=lue;exports.DropdownMenuRadioItem=iI;exports.DropdownMenuSeparator=sI;exports.DropdownMenuShortcut=lI;exports.DropdownMenuSub=sue;exports.DropdownMenuSubContent=tI;exports.DropdownMenuSubTrigger=eI;exports.DropdownMenuTrigger=iue;exports.EngrateLogo=dI;exports.Eyebrow=pI;exports.Footer=mI;exports.FooterBottom=wI;exports.FooterContent=vI;exports.FooterCopyright=xI;exports.FooterHeading=yI;exports.FooterLinks=bI;exports.FooterSection=gI;exports.FormField=CI;exports.FormMessage=ub;exports.Grid=OI;exports.GridItem=EI;exports.Header=TI;exports.HeaderActions=DI;exports.HeaderLogo=MI;exports.HeaderNav=kI;exports.Heading=fb;exports.Input=jI;exports.Label=db;exports.LineChart=II;exports.Link=$I;exports.Modal=EL;exports.ModalClose=bme;exports.ModalContent=ML;exports.ModalDescription=NL;exports.ModalFooter=DL;exports.ModalHeader=kL;exports.ModalOverlay=Ub;exports.ModalPortal=AL;exports.ModalTitle=_L;exports.ModalTrigger=yme;exports.Pagination=IL;exports.PaginationDot=BL;exports.PaginationDots=FL;exports.PaginationItem=mi;exports.PieChart=zL;exports.ProgressIndicator=HL;exports.RadioGroup=i$;exports.RadioGroupItem=a$;exports.Select=Sve;exports.SelectContent=$$;exports.SelectGroup=Pve;exports.SelectItem=V$;exports.SelectLabel=F$;exports.SelectScrollDownButton=qb;exports.SelectScrollUpButton=Yb;exports.SelectSeparator=B$;exports.SelectTrigger=L$;exports.SelectValue=Cve;exports.Sidebar=K$;exports.SidebarContent=H$;exports.SidebarFooter=G$;exports.SidebarGroup=Y$;exports.SidebarGroupLabel=q$;exports.SidebarHeader=U$;exports.SidebarItem=X$;exports.SidebarSeparator=Q$;exports.SidebarTrigger=Z$;exports.Skeleton=eF;exports.Slider=vF;exports.Spinner=yF;exports.Stack=wF;exports.Switch=EF;exports.TabContent=UF;exports.TabList=BF;exports.TabTrigger=zF;exports.Table=TF;exports.TableBody=kF;exports.TableCaption=RF;exports.TableCell=jF;exports.TableFooter=DF;exports.TableHead=NF;exports.TableHeader=MF;exports.TableRow=_F;exports.Tabs=$F;exports.Text=ta;exports.Textarea=GF;exports.Toast=cV;exports.ToastAction=uV;exports.ToastClose=dV;exports.ToastDescription=pV;exports.ToastProvider=Tge;exports.ToastTitle=fV;exports.ToastViewport=sV;exports.Tooltip=Jge;exports.TooltipArrow=nw;exports.TooltipContent=OV;exports.TooltipPortal=PV;exports.TooltipProvider=Qge;exports.TooltipTrigger=eye;exports.accordionTriggerVariants=pE;exports.accordionVariants=uE;exports.alertDialogContentVariants=hA;exports.badgeVariants=SA;exports.bannerVariants=CA;exports.barChartVariants=N_;exports.breadcrumbItemVariants=bm;exports.breadcrumbsVariants=R_;exports.buttonVariants=Ou;exports.cardVariants=mN;exports.cn=N;exports.datePickerTriggerVariants=ER;exports.dateRangePickerTriggerVariants=TR;exports.dateTimePickerTriggerVariants=kR;exports.dividerVariants=_R;exports.engrateLogoVariants=uI;exports.eyebrowVariants=fI;exports.footerVariants=hI;exports.gridItemVariants=bue;exports.gridVariants=hue;exports.headerVariants=AI;exports.headingVariants=_I;exports.inputVariants=NI;exports.labelVariants=PI;exports.lineChartVariants=RI;exports.linkVariants=LI;exports.modalContentVariants=TL;exports.paginationDotVariants=VL;exports.paginationDotsVariants=$L;exports.paginationItemVariants=RL;exports.paginationVariants=jL;exports.pieChartVariants=WL;exports.progressBarVariants=UL;exports.progressIndicatorVariants=KL;exports.sidebarItemVariants=tv;exports.sidebarVariants=z$;exports.skeletonVariants=J$;exports.sliderVariants=mF;exports.spinnerVariants=gF;exports.stackVariants=bF;exports.tabContentVariants=KF;exports.tabListVariants=FF;exports.tabTriggerVariants=WF;exports.tableVariants=AF;exports.textVariants=CL;exports.textareaVariants=HF;exports.toastVariants=lV;exports.tooltipContentVariants=CV;exports.useFilterableTable=nge;exports.useSidebarContext=Bd;exports.useSortableTable=rge;