@bookers/ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,134 @@
1
+ (function(k,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(k=typeof globalThis<"u"?globalThis:k||self,p(k.BookersUi={},k.jsxRuntime,k.React,k.ReactDOM))})(this,(function(k,p,S,no){"use strict";function Ds(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Ds(S),er=Ds(no);function Ap(e,t){const n=u.createContext(t),r=a=>{const{children:s,...i}=a,l=u.useMemo(()=>i,Object.values(i));return p.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=u.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Fe(e,t=[]){let n=[];function r(a,s){const i=u.createContext(s),l=n.length;n=[...n,s];const c=d=>{var y;const{scope:h,children:m,...w}=d,g=((y=h==null?void 0:h[e])==null?void 0:y[l])||i,v=u.useMemo(()=>w,Object.values(w));return p.jsx(g.Provider,{value:v,children:m})};c.displayName=a+"Provider";function f(d,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[l])||i,w=u.useContext(m);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,f]}const o=()=>{const a=n.map(s=>u.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return u.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,Ip(o,...t)]}function Ip(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...i,...d}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ts(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qe(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Ts(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Ts(e[o],null)}}}}function ce(...e){return u.useCallback(Qe(...e),e)}function Pt(e){const t=Wp(e),n=u.forwardRef((r,o)=>{const{children:a,...s}=r,i=u.Children.toArray(a),l=i.find($p);if(l){const c=l.props.children,f=i.map(d=>d===l?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:d);return p.jsx(t,{...s,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,f):null})}return p.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function Wp(e){const t=u.forwardRef((n,r)=>{const{children:o,...a}=n;if(u.isValidElement(o)){const s=Lp(o),i=Bp(a,o.props);return o.type!==u.Fragment&&(i.ref=r?Qe(r,s):s),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ps=Symbol("radix.slottable");function Fp(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ps,t}function $p(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ps}function Bp(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Lp(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function tr(e){const t=e+"CollectionProvider",[n,r]=Fe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:v,children:y}=g,b=S.useRef(null),x=S.useRef(new Map).current;return p.jsx(o,{scope:v,itemMap:x,collectionRef:b,children:y})};s.displayName=t;const i=e+"CollectionSlot",l=Pt(i),c=S.forwardRef((g,v)=>{const{scope:y,children:b}=g,x=a(i,y),N=ce(v,x.collectionRef);return p.jsx(l,{ref:N,children:b})});c.displayName=i;const f=e+"CollectionItemSlot",d="data-radix-collection-item",h=Pt(f),m=S.forwardRef((g,v)=>{const{scope:y,children:b,...x}=g,N=S.useRef(null),M=ce(v,N),C=a(f,y);return S.useEffect(()=>(C.itemMap.set(N,{ref:N,...x}),()=>void C.itemMap.delete(N))),p.jsx(h,{[d]:"",ref:M,children:b})});m.displayName=f;function w(g){const v=a(e+"CollectionConsumer",g);return S.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((C,E)=>x.indexOf(C.ref.current)-x.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:c,ItemSlot:m},w,r]}function L(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var we=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},Rp=u[" useInsertionEffect ".trim().toString()]||we;function $e({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=Yp({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const d=f.current;d!==i&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${i?"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.`),f.current=i},[i,r])}const c=u.useCallback(f=>{var d;if(i){const h=zp(f)?f(e):f;h!==e&&((d=s.current)==null||d.call(s,h))}else a(f)},[i,e,a,s]);return[l,c]}function Yp({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),a=u.useRef(t);return Rp(()=>{a.current=t},[t]),u.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function zp(e){return typeof e=="function"}var Vp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=Vp.reduce((e,t)=>{const n=Pt(`Primitive.${t}`),r=u.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Os(e,t){e&&er.flushSync(()=>e.dispatchEvent(t))}function Hp(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Te=e=>{const{present:t,children:n}=e,r=Gp(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),a=ce(r.ref,jp(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:a}):null};Te.displayName="Presence";function Gp(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),a=u.useRef("none"),s=e?"mounted":"unmounted",[i,l]=Hp(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=nr(r.current);a.current=i==="mounted"?c:"none"},[i]),we(()=>{const c=r.current,f=o.current;if(f!==e){const h=a.current,m=nr(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),we(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,d=m=>{const g=nr(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(a.current=nr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:u.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function nr(e){return(e==null?void 0:e.animationName)||"none"}function jp(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Up=u[" useId ".trim().toString()]||(()=>{}),Kp=0;function me(e){const[t,n]=u.useState(Up());return we(()=>{n(r=>r??String(Kp++))},[e]),t?`radix-${t}`:""}var rr="Collapsible",[qp,_s]=Fe(rr),[Xp,ro]=qp(rr),As=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,c]=$e({prop:r,defaultProp:o??!1,onChange:s,caller:rr});return p.jsx(Xp,{scope:n,disabled:a,contentId:me(),open:l,onOpenToggle:u.useCallback(()=>c(f=>!f),[c]),children:p.jsx(Z.div,{"data-state":ao(l),"data-disabled":a?"":void 0,...i,ref:t})})});As.displayName=rr;var Is="CollapsibleTrigger",Ws=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=ro(Is,n);return p.jsx(Z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ao(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:L(e.onClick,o.onOpenToggle)})});Ws.displayName=Is;var oo="CollapsibleContent",Fs=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ro(oo,e.__scopeCollapsible);return p.jsx(Te,{present:n||o.open,children:({present:a})=>p.jsx(Zp,{...r,ref:t,present:a})})});Fs.displayName=oo;var Zp=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=ro(oo,n),[i,l]=u.useState(r),c=u.useRef(null),f=ce(t,c),d=u.useRef(0),h=d.current,m=u.useRef(0),w=m.current,g=s.open||i,v=u.useRef(g),y=u.useRef(void 0);return u.useEffect(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),we(()=>{const b=c.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const x=b.getBoundingClientRect();d.current=x.height,m.current=x.width,v.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),l(r)}},[s.open,r]),p.jsx(Z.div,{"data-state":ao(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:g&&o})});function ao(e){return e?"open":"closed"}var Qp=As,Jp=Ws,eh=Fs,th=u.createContext(void 0);function bn(e){const t=u.useContext(th);return e||t||"ltr"}var Ye="Accordion",nh=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[so,rh,oh]=tr(Ye),[or]=Fe(Ye,[oh,_s]),io=_s(),$s=S.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return p.jsx(so.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(lh,{...a,ref:t}):p.jsx(ih,{...o,ref:t})})});$s.displayName=Ye;var[Bs,ah]=or(Ye),[Ls,sh]=or(Ye,{collapsible:!1}),ih=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[i,l]=$e({prop:n,defaultProp:r??"",onChange:o,caller:Ye});return p.jsx(Bs,{scope:e.__scopeAccordion,value:S.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:S.useCallback(()=>a&&l(""),[a,l]),children:p.jsx(Ls,{scope:e.__scopeAccordion,collapsible:a,children:p.jsx(Rs,{...s,ref:t})})})}),lh=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,i]=$e({prop:n,defaultProp:r??[],onChange:o,caller:Ye}),l=S.useCallback(f=>i((d=[])=>[...d,f]),[i]),c=S.useCallback(f=>i((d=[])=>d.filter(h=>h!==f)),[i]);return p.jsx(Bs,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:c,children:p.jsx(Ls,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(Rs,{...a,ref:t})})})}),[ch,ar]=or(Ye),Rs=S.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...s}=e,i=S.useRef(null),l=ce(i,t),c=rh(n),d=bn(o)==="ltr",h=L(e.onKeyDown,m=>{var T;if(!nh.includes(m.key))return;const w=m.target,g=c().filter(R=>{var F;return!((F=R.ref.current)!=null&&F.disabled)}),v=g.findIndex(R=>R.ref.current===w),y=g.length;if(v===-1)return;m.preventDefault();let b=v;const x=0,N=y-1,M=()=>{b=v+1,b>N&&(b=x)},C=()=>{b=v-1,b<x&&(b=N)};switch(m.key){case"Home":b=x;break;case"End":b=N;break;case"ArrowRight":a==="horizontal"&&(d?M():C());break;case"ArrowDown":a==="vertical"&&M();break;case"ArrowLeft":a==="horizontal"&&(d?C():M());break;case"ArrowUp":a==="vertical"&&C();break}const E=b%y;(T=g[E].ref.current)==null||T.focus()});return p.jsx(ch,{scope:n,disabled:r,direction:o,orientation:a,children:p.jsx(so.Slot,{scope:n,children:p.jsx(Z.div,{...s,"data-orientation":a,ref:l,onKeyDown:r?void 0:h})})})}),sr="AccordionItem",[dh,lo]=or(sr),Ys=S.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=ar(sr,n),s=ah(sr,n),i=io(n),l=me(),c=r&&s.value.includes(r)||!1,f=a.disabled||e.disabled;return p.jsx(dh,{scope:n,open:c,disabled:f,triggerId:l,children:p.jsx(Qp,{"data-orientation":a.orientation,"data-state":Us(c),...i,...o,ref:t,disabled:f,open:c,onOpenChange:d=>{d?s.onItemOpen(r):s.onItemClose(r)}})})});Ys.displayName=sr;var zs="AccordionHeader",Vs=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ar(Ye,n),a=lo(zs,n);return p.jsx(Z.h3,{"data-orientation":o.orientation,"data-state":Us(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Vs.displayName=zs;var co="AccordionTrigger",Hs=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ar(Ye,n),a=lo(co,n),s=sh(co,n),i=io(n);return p.jsx(so.ItemSlot,{scope:n,children:p.jsx(Jp,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...i,...r,ref:t})})});Hs.displayName=co;var Gs="AccordionContent",js=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ar(Ye,n),a=lo(Gs,n),s=io(n);return p.jsx(eh,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});js.displayName=Gs;function Us(e){return e?"open":"closed"}var uh=$s,fh=Ys,ph=Vs,hh=Hs,mh=js;/**
2
+ * @license lucide-react v0.475.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const gh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ks=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
7
+ * @license lucide-react v0.475.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */var vh={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"};/**
12
+ * @license lucide-react v0.475.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const bh=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...i},l)=>S.createElement("svg",{ref:l,...vh,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ks("lucide",o),...i},[...s.map(([c,f])=>S.createElement(c,f)),...Array.isArray(a)?a:[a]]));/**
17
+ * @license lucide-react v0.475.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const Be=(e,t)=>{const n=S.forwardRef(({className:r,...o},a)=>S.createElement(bh,{ref:a,iconNode:t,className:Ks(`lucide-${gh(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
22
+ * @license lucide-react v0.475.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const yh=Be("Calendar",[["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"}]]);/**
27
+ * @license lucide-react v0.475.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const yn=Be("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
32
+ * @license lucide-react v0.475.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const zt=Be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
37
+ * @license lucide-react v0.475.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const qs=Be("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
42
+ * @license lucide-react v0.475.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const uo=Be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
47
+ * @license lucide-react v0.475.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const Xs=Be("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
52
+ * @license lucide-react v0.475.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const wh=Be("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
57
+ * @license lucide-react v0.475.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const xh=Be("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
62
+ * @license lucide-react v0.475.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const Ch=Be("Ellipsis",[["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"}]]);/**
67
+ * @license lucide-react v0.475.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const Zs=Be("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
72
+ * @license lucide-react v0.475.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const Sh=Be("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
77
+ * @license lucide-react v0.475.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const Nh=Be("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Qs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Qs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Js(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Qs(e))&&(r&&(r+=" "),r+=t);return r}const ei=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ti=Js,be=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ti(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const f=n==null?void 0:n[c],d=a==null?void 0:a[c];if(f===null)return null;const h=ei(f)||ei(d);return o[c][h]}),i=n&&Object.entries(n).reduce((c,f)=>{let[d,h]=f;return h===void 0||(c[d]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:d,className:h,...m}=f;return Object.entries(m).every(w=>{let[g,v]=w;return Array.isArray(v)?v.includes({...a,...i}[g]):{...a,...i}[g]===v})?[...c,d,h]:c},[]);return ti(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},fo="-",Mh=e=>{const t=kh(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(fo);return i[0]===""&&i.length!==1&&i.shift(),ni(i,t)||Eh(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},ni=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ni(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(fo);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},ri=/^\[(.+)\]$/,Eh=e=>{if(ri.test(e)){const t=ri.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},kh=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Th(Object.entries(e.classGroups),n).forEach(([a,s])=>{po(s,r,a,t)}),r},po=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:oi(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Dh(o)){po(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{po(s,oi(t,a),n,r)})})},oi=(e,t)=>{let n=e;return t.split(fo).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Dh=e=>e.isThemeGetter,Th=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[n,o]}):e,Ph=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},ai="!",Oh=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,s=i=>{const l=[];let c=0,f=0,d;for(let v=0;v<i.length;v++){let y=i[v];if(c===0){if(y===o&&(r||i.slice(v,v+a)===t)){l.push(i.slice(f,v)),f=v+a;continue}if(y==="/"){d=v;continue}}y==="["?c++:y==="]"&&c--}const h=l.length===0?i:i.substring(f),m=h.startsWith(ai),w=m?h.substring(1):h,g=d&&d>f?d-f:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:g}};return n?i=>n({className:i,parseClassName:s}):s},_h=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Ah=e=>({cache:Ph(e.cacheSize),parseClassName:Oh(e),...Mh(e)}),Ih=/\s+/,Wh=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],s=e.trim().split(Ih);let i="";for(let l=s.length-1;l>=0;l-=1){const c=s[l],{modifiers:f,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:m}=n(c);let w=!!m,g=r(w?h.substring(0,m):h);if(!g){if(!w){i=c+(i.length>0?" "+i:i);continue}if(g=r(h),!g){i=c+(i.length>0?" "+i:i);continue}w=!1}const v=_h(f).join(":"),y=d?v+ai:v,b=y+g;if(a.includes(b))continue;a.push(b);const x=o(g,w);for(let N=0;N<x.length;++N){const M=x[N];a.push(y+M)}i=c+(i.length>0?" "+i:i)}return i};function Fh(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=si(t))&&(r&&(r+=" "),r+=n);return r}const si=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=si(e[r]))&&(n&&(n+=" "),n+=t);return n};function $h(e,...t){let n,r,o,a=s;function s(l){const c=t.reduce((f,d)=>d(f),e());return n=Ah(c),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const f=Wh(l,n);return o(l,f),f}return function(){return a(Fh.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ii=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bh=/^\d+\/\d+$/,Lh=new Set(["px","full","screen"]),Rh=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yh=/\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$/,zh=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Vh=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hh=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ct=e=>Vt(e)||Lh.has(e)||Bh.test(e),gt=e=>Ht(e,"length",Qh),Vt=e=>!!e&&!Number.isNaN(Number(e)),ho=e=>Ht(e,"number",Vt),wn=e=>!!e&&Number.isInteger(Number(e)),Gh=e=>e.endsWith("%")&&Vt(e.slice(0,-1)),ae=e=>ii.test(e),vt=e=>Rh.test(e),jh=new Set(["length","size","percentage"]),Uh=e=>Ht(e,jh,li),Kh=e=>Ht(e,"position",li),qh=new Set(["image","url"]),Xh=e=>Ht(e,qh,em),Zh=e=>Ht(e,"",Jh),xn=()=>!0,Ht=(e,t,n)=>{const r=ii.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Qh=e=>Yh.test(e)&&!zh.test(e),li=()=>!1,Jh=e=>Vh.test(e),em=e=>Hh.test(e),tm=$h(()=>{const e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),o=pe("borderColor"),a=pe("borderRadius"),s=pe("borderSpacing"),i=pe("borderWidth"),l=pe("contrast"),c=pe("grayscale"),f=pe("hueRotate"),d=pe("invert"),h=pe("gap"),m=pe("gradientColorStops"),w=pe("gradientColorStopPositions"),g=pe("inset"),v=pe("margin"),y=pe("opacity"),b=pe("padding"),x=pe("saturate"),N=pe("scale"),M=pe("sepia"),C=pe("skew"),E=pe("space"),T=pe("translate"),R=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",ae,t],$=()=>[ae,t],j=()=>["",ct,gt],V=()=>["auto",Vt,ae],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",ae],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[Vt,ae];return{cacheSize:500,separator:":",theme:{colors:[xn],spacing:[ct,gt],blur:["none","",vt,ae],brightness:te(),borderColor:[e],borderRadius:["none","","full",vt,ae],borderSpacing:$(),borderWidth:j(),contrast:te(),grayscale:P(),hueRotate:te(),invert:P(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[Gh,gt],inset:H(),margin:H(),opacity:te(),padding:$(),saturate:te(),scale:te(),sepia:P(),skew:te(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[vt]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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"],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:[...ne(),ae]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",wn,ae]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ae]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",wn,ae]}],"grid-cols":[{"grid-cols":[xn]}],"col-start-end":[{col:["auto",{span:["full",wn,ae]},ae]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[xn]}],"row-start-end":[{row:["auto",{span:[wn,ae]},ae]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ae]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ae,t]}],"min-w":[{"min-w":[ae,t,"min","max","fit"]}],"max-w":[{"max-w":[ae,t,"none","full","min","max","fit","prose",{screen:[vt]},vt]}],h:[{h:[ae,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ae,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ae,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ae,t,"auto","min","max","fit"]}],"font-size":[{text:["base",vt,gt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ho]}],"font-family":[{font:[xn]}],"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:["tighter","tight","normal","wide","wider","widest",ae]}],"line-clamp":[{"line-clamp":["none",Vt,ho]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ct,ae]}],"list-image":[{"list-image":["none",ae]}],"list-style-type":[{list:["none","disc","decimal",ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ct,gt]}],"underline-offset":[{"underline-offset":["auto",ct,ae]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),Kh]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Uh]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Xh]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:W()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[ct,ae]}],"outline-w":[{outline:[ct,gt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ct,gt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",vt,Zh]}],"shadow-color":[{shadow:[xn]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",vt,ae]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ae]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",ae]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[wn,ae]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ae]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ct,gt,ho]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}});function O(...e){return tm(Js(e))}const ci=be(["flex w-full items-center justify-between gap-4 text-left font-medium text-foreground","transition-[color,background-color] duration-150","hover:text-foreground/80","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[&[data-disabled]]:cursor-not-allowed [&[data-disabled]]:opacity-50"],{variants:{size:{sm:"py-2 text-sm",md:"py-3 text-sm",lg:"py-4 text-base"}},defaultVariants:{size:"md"}}),di=be(["overflow-hidden text-foreground","data-[state=open]:animate-accordion-down","data-[state=closed]:animate-accordion-up"],{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),ui=be("w-full",{variants:{variant:{default:"rounded-lg border border-border",flush:""}},defaultVariants:{variant:"default"}}),mo=u.forwardRef(({className:e,variant:t,...n},r)=>p.jsx(uh,{ref:r,className:O(ui({variant:t}),e),...n}));mo.displayName="AccordionRoot";const go=u.forwardRef(({className:e,...t},n)=>p.jsx(fh,{ref:n,className:O("border-b border-border last:border-b-0",e),...t}));go.displayName="AccordionItem";const vo=u.forwardRef(({className:e,size:t,children:n,...r},o)=>p.jsx(ph,{className:"flex",children:p.jsxs(hh,{ref:o,className:O("group",ci({size:t}),"px-4",e),...r,children:[n,p.jsx(zt,{className:"size-4 shrink-0 text-muted-foreground transition-[transform] duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}));vo.displayName="AccordionTrigger";const bo=u.forwardRef(({className:e,size:t,children:n,...r},o)=>p.jsx(mh,{ref:o,className:O(di({size:t}),e),...r,children:p.jsx("div",{className:"px-4 pb-4 pt-0",children:n})}));bo.displayName="AccordionContent";const fi=u.forwardRef(({items:e,size:t="md",variant:n="default",className:r,type:o="single",defaultValue:a,value:s,onValueChange:i,collapsible:l,disabled:c,dir:f},d)=>p.jsx(mo,{ref:d,variant:n,className:r,type:o,defaultValue:a,value:s,onValueChange:i,collapsible:l,disabled:c,dir:f,children:e.map(h=>p.jsxs(go,{value:h.value,children:[p.jsx(vo,{size:t,disabled:h.disabled,children:h.trigger}),p.jsx(bo,{size:t,children:h.content})]},h.value))}));fi.displayName="Accordion";const pi=be(["relative w-full rounded-lg border p-4","[&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:size-4","[&>svg~*]:pl-7"],{variants:{variant:{default:"bg-background border-border text-foreground [&>svg]:text-foreground",info:"bg-blue-50 border-blue-200 text-blue-900 [&>svg]:text-blue-600",success:"bg-green-50 border-green-200 text-green-900 [&>svg]:text-green-600",warning:"bg-amber-50 border-amber-200 text-amber-900 [&>svg]:text-amber-700",destructive:"bg-destructive/10 border-destructive/30 text-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),hi=u.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,role:"alert",className:O(pi({variant:t}),e),...n}));hi.displayName="Alert";const mi=u.forwardRef(({className:e,...t},n)=>p.jsx("h5",{ref:n,className:O("mb-1 font-medium leading-none tracking-tight text-balance",e),...t}));mi.displayName="AlertTitle";const gi=u.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:O("text-sm leading-relaxed opacity-90 text-pretty",e),...t}));gi.displayName="AlertDescription";var nm=Symbol.for("react.lazy"),ir=u[" use ".trim().toString()];function rm(e){return typeof e=="object"&&e!==null&&"then"in e}function vi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===nm&&"_payload"in e&&rm(e._payload)}function om(e){const t=am(e),n=u.forwardRef((r,o)=>{let{children:a,...s}=r;vi(a)&&typeof ir=="function"&&(a=ir(a._payload));const i=u.Children.toArray(a),l=i.find(im);if(l){const c=l.props.children,f=i.map(d=>d===l?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:d);return p.jsx(t,{...s,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,f):null})}return p.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}function am(e){const t=u.forwardRef((n,r)=>{let{children:o,...a}=n;if(vi(o)&&typeof ir=="function"&&(o=ir(o._payload)),u.isValidElement(o)){const s=cm(o),i=lm(a,o.props);return o.type!==u.Fragment&&(i.ref=r?Qe(r,s):s),u.cloneElement(o,i)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sm=Symbol("radix.slottable");function im(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sm}function lm(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function cm(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],um=dm.reduce((e,t)=>{const n=om(`Primitive.${t}`),r=u.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),fm="AspectRatio",bi=u.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return p.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:p.jsx(um.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});bi.displayName=fm;var pm=bi;const yi=u.forwardRef(({className:e,ratio:t=16/9,...n},r)=>p.jsx(pm,{ref:r,ratio:t,className:O("overflow-hidden",e),...n}));yi.displayName="AspectRatio";const wi=be("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted",{variants:{size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{size:"md"}});function hm(e){return e.split(" ").filter(Boolean).slice(0,2).map(t=>t[0].toUpperCase()).join("")}const xi=u.forwardRef(({className:e,size:t,src:n,alt:r="",fallback:o,...a},s)=>{const[i,l]=u.useState(!1);u.useEffect(()=>{l(!1)},[n]);const c=o??(r?hm(r):null),f=n&&!i;return p.jsx("span",{ref:s,role:"img","aria-label":r||void 0,className:O(wi({size:t}),e),...a,children:f?p.jsx("img",{src:n,alt:"",className:"h-full w-full object-cover outline -outline-offset-1 outline-black/10",onError:()=>l(!0)}):p.jsx("span",{"aria-hidden":"true",className:"font-medium text-muted-foreground select-none",children:c??"?"})})});xi.displayName="Avatar";const Ci=be("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium transition-colors",{variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"border border-border bg-transparent text-foreground",success:"bg-green-100 text-green-800",warning:"bg-amber-100 text-amber-800"}},defaultVariants:{variant:"default"}}),Si=u.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("span",{ref:r,className:O(Ci({variant:t}),e),...n}));Si.displayName="Badge";const Ni=be(["relative inline-flex items-center justify-center gap-2","whitespace-nowrap rounded-md font-medium","ring-offset-background transition-[background-color,color,border-color,scale]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","active:scale-[0.96]","[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"],{variants:{variant:{default:["bg-primary text-primary-foreground","hover:bg-primary/90","focus-visible:ring-ring"],destructive:["bg-destructive text-destructive-foreground","hover:bg-destructive/90","focus-visible:ring-ring"],outline:["border border-border bg-background text-foreground","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-ring"],ghost:["bg-transparent text-foreground","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-ring"],link:["bg-transparent text-foreground underline-offset-4","hover:underline","focus-visible:ring-ring","active:scale-100"]},size:{sm:"h-8 px-3 text-xs",md:"h-10 px-4 py-2 text-sm",lg:"h-11 px-8 text-base"}},defaultVariants:{variant:"default",size:"md"}}),Mi=u.forwardRef(({className:e,variant:t,size:n,isLoading:r=!1,icon:o,iconPosition:a="left",disabled:s,children:i,static:l=!1,...c},f)=>{const d=o?p.jsxs("span",{className:"relative inline-flex size-4 shrink-0",children:[p.jsx("span",{"aria-hidden":"true",className:O("absolute inset-0 flex items-center justify-center transition-[opacity,translate,filter] duration-150",r?"opacity-0 translate-y-1 blur-sm":"opacity-100 translate-y-0 blur-0"),children:o}),p.jsx("span",{"aria-hidden":"true",className:O("absolute inset-0 flex items-center justify-center transition-[opacity,translate,filter] duration-150",r?"opacity-100 translate-y-0 blur-0":"opacity-0 translate-y-1 blur-sm"),children:p.jsx(Zs,{className:"animate-spin"})})]}):r?p.jsx(Zs,{className:"animate-spin","aria-hidden":"true"}):null;return p.jsx("button",{ref:f,className:O(Ni({variant:t,size:n}),l&&"active:scale-100",e),disabled:s||r,"aria-busy":r||void 0,...c,children:a==="center"?d:p.jsxs(p.Fragment,{children:[a==="left"&&d,i,a==="right"&&d]})})});Mi.displayName="Button";const Ei=be(["peer appearance-none rounded-sm border border-input bg-background cursor-pointer","checked:bg-primary checked:border-primary","indeterminate:bg-primary indeterminate:border-primary","transition-[color,border-color,background-color,box-shadow]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50"],{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),mm={sm:"size-2.5",md:"size-3",lg:"size-3.5"},ki=u.forwardRef(({className:e,size:t,isError:n,...r},o)=>{const a=mm[t??"md"];return p.jsxs("span",{className:"relative inline-flex shrink-0 items-center justify-center",children:[p.jsx("input",{type:"checkbox",ref:o,className:O(Ei({size:t}),n&&"border-destructive",e),"aria-invalid":n||void 0,...r}),p.jsx(yn,{"aria-hidden":"true",className:O("pointer-events-none absolute text-primary-foreground opacity-0 transition-opacity","peer-checked:opacity-100 peer-disabled:opacity-30",a)}),p.jsx(Sh,{"aria-hidden":"true",className:O("pointer-events-none absolute text-primary-foreground opacity-0 transition-opacity","peer-indeterminate:opacity-100 peer-disabled:opacity-30",a)})]})});ki.displayName="Checkbox";var Di=1,gm=.9,vm=.8,bm=.17,yo=.1,wo=.999,ym=.9999,wm=.99,xm=/[\\\/_+.#"@\[\(\{&]/,Cm=/[\\\/_+.#"@\[\(\{&]/g,Sm=/[\s-]/,Ti=/[\s-]/g;function xo(e,t,n,r,o,a,s){if(a===t.length)return o===e.length?Di:wm;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var l=r.charAt(a),c=n.indexOf(l,o),f=0,d,h,m,w;c>=0;)d=xo(e,t,n,r,c+1,a+1,s),d>f&&(c===o?d*=Di:xm.test(e.charAt(c-1))?(d*=vm,m=e.slice(o,c-1).match(Cm),m&&o>0&&(d*=Math.pow(wo,m.length))):Sm.test(e.charAt(c-1))?(d*=gm,w=e.slice(o,c-1).match(Ti),w&&o>0&&(d*=Math.pow(wo,w.length))):(d*=bm,o>0&&(d*=Math.pow(wo,c-o))),e.charAt(c)!==t.charAt(a)&&(d*=ym)),(d<yo&&n.charAt(c-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(c-1)!==r.charAt(a))&&(h=xo(e,t,n,r,c+1,a+2,s),h*yo>d&&(d=h*yo)),d>f&&(f=d),c=n.indexOf(l,c+1);return s[i]=f,f}function Pi(e){return e.toLowerCase().replace(Ti," ")}function Nm(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,xo(e,t,Pi(e),Pi(t),0,0,{})}function ze(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Mm(e,t=globalThis==null?void 0:globalThis.document){const n=ze(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Em="DismissableLayer",Co="dismissableLayer.update",km="dismissableLayer.pointerDownOutside",Dm="dismissableLayer.focusOutside",Oi,_i=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...l}=e,c=u.useContext(_i),[f,d]=u.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=u.useState({}),w=ce(t,E=>d(E)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),b=f?g.indexOf(f):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,N=b>=y,M=Om(E=>{const T=E.target,R=[...c.branches].some(F=>F.contains(T));!N||R||(o==null||o(E),s==null||s(E),E.defaultPrevented||i==null||i())},h),C=_m(E=>{const T=E.target;[...c.branches].some(F=>F.contains(T))||(a==null||a(E),s==null||s(E),E.defaultPrevented||i==null||i())},h);return Mm(E=>{b===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},h),u.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Oi=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),Ai(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Oi)}},[f,h,n,c]),u.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Ai())},[f,c]),u.useEffect(()=>{const E=()=>m({});return document.addEventListener(Co,E),()=>document.removeEventListener(Co,E)},[]),p.jsx(Z.div,{...l,ref:w,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,C.onFocusCapture),onBlurCapture:L(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,M.onPointerDownCapture)})});Gt.displayName=Em;var Tm="DismissableLayerBranch",Pm=u.forwardRef((e,t)=>{const n=u.useContext(_i),r=u.useRef(null),o=ce(t,r);return u.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),p.jsx(Z.div,{...e,ref:o})});Pm.displayName=Tm;function Om(e,t=globalThis==null?void 0:globalThis.document){const n=ze(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let l=function(){Ii(km,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _m(e,t=globalThis==null?void 0:globalThis.document){const n=ze(e),r=u.useRef(!1);return u.useEffect(()=>{const o=a=>{a.target&&!r.current&&Ii(Dm,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ai(){const e=new CustomEvent(Co);document.dispatchEvent(e)}function Ii(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Os(o,a):o.dispatchEvent(a)}var So="focusScope.autoFocusOnMount",No="focusScope.autoFocusOnUnmount",Wi={bubbles:!1,cancelable:!0},Am="FocusScope",Cn=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,l]=u.useState(null),c=ze(o),f=ze(a),d=u.useRef(null),h=ce(t,g=>l(g)),m=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let g=function(x){if(m.paused||!i)return;const N=x.target;i.contains(N)?d.current=N:bt(d.current,{select:!0})},v=function(x){if(m.paused||!i)return;const N=x.relatedTarget;N!==null&&(i.contains(N)||bt(d.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const M of x)M.removedNodes.length>0&&bt(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const b=new MutationObserver(y);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),b.disconnect()}}},[r,i,m.paused]),u.useEffect(()=>{if(i){Bi.add(m);const g=document.activeElement;if(!i.contains(g)){const y=new CustomEvent(So,Wi);i.addEventListener(So,c),i.dispatchEvent(y),y.defaultPrevented||(Im(Lm(Fi(i)),{select:!0}),document.activeElement===g&&bt(i))}return()=>{i.removeEventListener(So,c),setTimeout(()=>{const y=new CustomEvent(No,Wi);i.addEventListener(No,f),i.dispatchEvent(y),y.defaultPrevented||bt(g??document.body,{select:!0}),i.removeEventListener(No,f),Bi.remove(m)},0)}}},[i,c,f,m]);const w=u.useCallback(g=>{if(!n&&!r||m.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(v&&y){const b=g.currentTarget,[x,N]=Wm(b);x&&N?!g.shiftKey&&y===N?(g.preventDefault(),n&&bt(x,{select:!0})):g.shiftKey&&y===x&&(g.preventDefault(),n&&bt(N,{select:!0})):y===b&&g.preventDefault()}},[n,r,m.paused]);return p.jsx(Z.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});Cn.displayName=Am;function Im(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bt(r,{select:t}),document.activeElement!==n)return}function Wm(e){const t=Fi(e),n=$i(t,e),r=$i(t.reverse(),e);return[n,r]}function Fi(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $i(e,t){for(const n of e)if(!Fm(n,{upTo:t}))return n}function Fm(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 $m(e){return e instanceof HTMLInputElement&&"select"in e}function bt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$m(e)&&t&&e.select()}}var Bi=Bm();function Bm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Li(e,t),e.unshift(t)},remove(t){var n;e=Li(e,t),(n=e[0])==null||n.resume()}}}function Li(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Lm(e){return e.filter(t=>t.tagName!=="A")}var Rm="Portal",jt=u.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=u.useState(!1);we(()=>a(!0),[]);const s=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?no.createPortal(p.jsx(Z.div,{...r,ref:t}),s):null});jt.displayName=Rm;var Mo=0;function lr(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ri()),document.body.insertAdjacentElement("beforeend",e[1]??Ri()),Mo++,()=>{Mo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mo--}},[])}function Ri(){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 Je=function(){return Je=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Je.apply(this,arguments)};function Yi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Ym(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var cr="right-scroll-bar-position",dr="width-before-scroll-bar",zm="with-scroll-bars-hidden",Vm="--removed-body-scroll-bar-size";function Eo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Hm(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Gm=typeof window<"u"?u.useLayoutEffect:u.useEffect,zi=new WeakMap;function jm(e,t){var n=Hm(null,function(r){return e.forEach(function(o){return Eo(o,r)})});return Gm(function(){var r=zi.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(i){a.has(i)||Eo(i,null)}),a.forEach(function(i){o.has(i)||Eo(i,s)})}zi.set(n,e)},[e]),n}function Um(e){return e}function Km(e,t){t===void 0&&(t=Um);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var i=n;n=[],i.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(f){s.push(f),c()},filter:function(f){return s=s.filter(f),n}}}};return o}function qm(e){e===void 0&&(e={});var t=Km(null);return t.options=Je({async:!0,ssr:!1},e),t}var Vi=function(e){var t=e.sideCar,n=Yi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,Je({},n))};Vi.isSideCarExport=!0;function Xm(e,t){return e.useMedium(t),Vi}var Hi=qm(),ko=function(){},ur=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:ko,onWheelCapture:ko,onTouchMoveCapture:ko}),o=r[0],a=r[1],s=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,x=e.gapMode,N=Yi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=h,C=jm([n,t]),E=Je(Je({},N),o);return u.createElement(u.Fragment,null,f&&u.createElement(M,{sideCar:Hi,removeScrollBar:c,shards:d,noRelative:m,noIsolation:w,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:x}),s?u.cloneElement(u.Children.only(i),Je(Je({},E),{ref:C})):u.createElement(b,Je({},E,{className:l,ref:C}),i))});ur.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ur.classNames={fullWidth:dr,zeroRight:cr};var Zm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Zm();return t&&e.setAttribute("nonce",t),e}function Jm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function eg(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tg=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Qm())&&(Jm(t,n),eg(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ng=function(){var e=tg();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Gi=function(){var e=ng(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},rg={left:0,top:0,right:0,gap:0},Do=function(e){return parseInt(e||"",10)||0},og=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Do(n),Do(r),Do(o)]},ag=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rg;var t=og(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},sg=Gi(),Ut="data-scroll-locked",ig=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,i=e.gap;return n===void 0&&(n="margin"),`
82
+ .`.concat(zm,` {
83
+ overflow: hidden `).concat(r,`;
84
+ padding-right: `).concat(i,"px ").concat(r,`;
85
+ }
86
+ body[`).concat(Ut,`] {
87
+ overflow: hidden `).concat(r,`;
88
+ overscroll-behavior: contain;
89
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
90
+ padding-left: `.concat(o,`px;
91
+ padding-top: `).concat(a,`px;
92
+ padding-right: `).concat(s,`px;
93
+ margin-left:0;
94
+ margin-top:0;
95
+ margin-right: `).concat(i,"px ").concat(r,`;
96
+ `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
97
+ }
98
+
99
+ .`).concat(cr,` {
100
+ right: `).concat(i,"px ").concat(r,`;
101
+ }
102
+
103
+ .`).concat(dr,` {
104
+ margin-right: `).concat(i,"px ").concat(r,`;
105
+ }
106
+
107
+ .`).concat(cr," .").concat(cr,` {
108
+ right: 0 `).concat(r,`;
109
+ }
110
+
111
+ .`).concat(dr," .").concat(dr,` {
112
+ margin-right: 0 `).concat(r,`;
113
+ }
114
+
115
+ body[`).concat(Ut,`] {
116
+ `).concat(Vm,": ").concat(i,`px;
117
+ }
118
+ `)},ji=function(){var e=parseInt(document.body.getAttribute(Ut)||"0",10);return isFinite(e)?e:0},lg=function(){u.useEffect(function(){return document.body.setAttribute(Ut,(ji()+1).toString()),function(){var e=ji()-1;e<=0?document.body.removeAttribute(Ut):document.body.setAttribute(Ut,e.toString())}},[])},cg=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;lg();var a=u.useMemo(function(){return ag(o)},[o]);return u.createElement(sg,{styles:ig(a,!t,o,n?"":"!important")})},To=!1;if(typeof window<"u")try{var fr=Object.defineProperty({},"passive",{get:function(){return To=!0,!0}});window.addEventListener("test",fr,fr),window.removeEventListener("test",fr,fr)}catch{To=!1}var Kt=To?{passive:!1}:!1,dg=function(e){return e.tagName==="TEXTAREA"},Ui=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!dg(e)&&n[t]==="visible")},ug=function(e){return Ui(e,"overflowY")},fg=function(e){return Ui(e,"overflowX")},Ki=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=qi(e,r);if(o){var a=Xi(e,r),s=a[1],i=a[2];if(s>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pg=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},hg=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},qi=function(e,t){return e==="v"?ug(t):fg(t)},Xi=function(e,t){return e==="v"?pg(t):hg(t)},mg=function(e,t){return e==="h"&&t==="rtl"?-1:1},gg=function(e,t,n,r,o){var a=mg(e,window.getComputedStyle(t).direction),s=a*r,i=n.target,l=t.contains(i),c=!1,f=s>0,d=0,h=0;do{if(!i)break;var m=Xi(e,i),w=m[0],g=m[1],v=m[2],y=g-v-a*w;(w||y)&&qi(e,i)&&(d+=y,h+=w);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&Math.abs(d)<1||!f&&Math.abs(h)<1)&&(c=!0),c},pr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Zi=function(e){return[e.deltaX,e.deltaY]},Qi=function(e){return e&&"current"in e?e.current:e},vg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bg=function(e){return`
119
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
120
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
121
+ `)},yg=0,qt=[];function wg(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(yg++)[0],a=u.useState(Gi)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Ym([e.lockRef.current],(e.shards||[]).map(Qi),!0).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=u.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var y=pr(g),b=n.current,x="deltaX"in g?g.deltaX:b[0]-y[0],N="deltaY"in g?g.deltaY:b[1]-y[1],M,C=g.target,E=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in g&&E==="h"&&C.type==="range")return!1;var T=window.getSelection(),R=T&&T.anchorNode,F=R?R===C||R.contains(C):!1;if(F)return!1;var H=Ki(E,C);if(!H)return!0;if(H?M=E:(M=E==="v"?"h":"v",H=Ki(E,C)),!H)return!1;if(!r.current&&"changedTouches"in g&&(x||N)&&(r.current=M),!M)return!0;var $=r.current||M;return gg($,v,g,$==="h"?x:N)},[]),l=u.useCallback(function(g){var v=g;if(!(!qt.length||qt[qt.length-1]!==a)){var y="deltaY"in v?Zi(v):pr(v),b=t.current.filter(function(M){return M.name===v.type&&(M.target===v.target||v.target===M.shadowParent)&&vg(M.delta,y)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var x=(s.current.shards||[]).map(Qi).filter(Boolean).filter(function(M){return M.contains(v.target)}),N=x.length>0?i(v,x[0]):!s.current.noIsolation;N&&v.cancelable&&v.preventDefault()}}},[]),c=u.useCallback(function(g,v,y,b){var x={name:g,delta:v,target:y,should:b,shadowParent:xg(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),f=u.useCallback(function(g){n.current=pr(g),r.current=void 0},[]),d=u.useCallback(function(g){c(g.type,Zi(g),g.target,i(g,e.lockRef.current))},[]),h=u.useCallback(function(g){c(g.type,pr(g),g.target,i(g,e.lockRef.current))},[]);u.useEffect(function(){return qt.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Kt),document.addEventListener("touchmove",l,Kt),document.addEventListener("touchstart",f,Kt),function(){qt=qt.filter(function(g){return g!==a}),document.removeEventListener("wheel",l,Kt),document.removeEventListener("touchmove",l,Kt),document.removeEventListener("touchstart",f,Kt)}},[]);var m=e.removeScrollBar,w=e.inert;return u.createElement(u.Fragment,null,w?u.createElement(a,{styles:bg(o)}):null,m?u.createElement(cg,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xg(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Cg=Xm(Hi,wg);var Sn=u.forwardRef(function(e,t){return u.createElement(ur,Je({},e,{ref:t,sideCar:Cg}))});Sn.classNames=ur.classNames;var Sg=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xt=new WeakMap,hr=new WeakMap,mr={},Po=0,Ji=function(e){return e&&(e.host||Ji(e.parentNode))},Ng=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ji(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Mg=function(e,t,n,r){var o=Ng(t,Array.isArray(e)?e:[e]);mr[n]||(mr[n]=new WeakMap);var a=mr[n],s=[],i=new Set,l=new Set(o),c=function(d){!d||i.has(d)||(i.add(d),c(d.parentNode))};o.forEach(c);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(i.has(h))f(h);else try{var m=h.getAttribute(r),w=m!==null&&m!=="false",g=(Xt.get(h)||0)+1,v=(a.get(h)||0)+1;Xt.set(h,g),a.set(h,v),s.push(h),g===1&&w&&hr.set(h,!0),v===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),i.clear(),Po++,function(){s.forEach(function(d){var h=Xt.get(d)-1,m=a.get(d)-1;Xt.set(d,h),a.set(d,m),h||(hr.has(d)||d.removeAttribute(r),hr.delete(d)),m||d.removeAttribute(n)}),Po--,Po||(Xt=new WeakMap,Xt=new WeakMap,hr=new WeakMap,mr={})}},gr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Sg(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Mg(r,o,n,"aria-hidden")):function(){return null}},vr="Dialog",[el]=Fe(vr),[Eg,Ve]=el(vr),tl=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=u.useRef(null),l=u.useRef(null),[c,f]=$e({prop:r,defaultProp:o??!1,onChange:a,caller:vr});return p.jsx(Eg,{scope:t,triggerRef:i,contentRef:l,contentId:me(),titleId:me(),descriptionId:me(),open:c,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(d=>!d),[f]),modal:s,children:n})};tl.displayName=vr;var nl="DialogTrigger",rl=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ve(nl,n),a=ce(t,o.triggerRef);return p.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ao(o.open),...r,ref:a,onClick:L(e.onClick,o.onOpenToggle)})});rl.displayName=nl;var Oo="DialogPortal",[kg,ol]=el(Oo,{forceMount:void 0}),al=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ve(Oo,t);return p.jsx(kg,{scope:t,forceMount:n,children:u.Children.map(r,s=>p.jsx(Te,{present:n||a.open,children:p.jsx(jt,{asChild:!0,container:o,children:s})}))})};al.displayName=Oo;var br="DialogOverlay",sl=u.forwardRef((e,t)=>{const n=ol(br,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ve(br,e.__scopeDialog);return a.modal?p.jsx(Te,{present:r||a.open,children:p.jsx(Tg,{...o,ref:t})}):null});sl.displayName=br;var Dg=Pt("DialogOverlay.RemoveScroll"),Tg=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ve(br,n);return p.jsx(Sn,{as:Dg,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(Z.div,{"data-state":Ao(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ot="DialogContent",il=u.forwardRef((e,t)=>{const n=ol(Ot,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ve(Ot,e.__scopeDialog);return p.jsx(Te,{present:r||a.open,children:a.modal?p.jsx(Pg,{...o,ref:t}):p.jsx(Og,{...o,ref:t})})});il.displayName=Ot;var Pg=u.forwardRef((e,t)=>{const n=Ve(Ot,e.__scopeDialog),r=u.useRef(null),o=ce(t,n.contentRef,r);return u.useEffect(()=>{const a=r.current;if(a)return gr(a)},[]),p.jsx(ll,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:L(e.onFocusOutside,a=>a.preventDefault())})}),Og=u.forwardRef((e,t)=>{const n=Ve(Ot,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return p.jsx(ll,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ll=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=Ve(Ot,n),l=u.useRef(null),c=ce(t,l);return lr(),p.jsxs(p.Fragment,{children:[p.jsx(Cn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Gt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Ao(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(_g,{titleId:i.titleId}),p.jsx(Ig,{contentRef:l,descriptionId:i.descriptionId})]})]})}),_o="DialogTitle",cl=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ve(_o,n);return p.jsx(Z.h2,{id:o.titleId,...r,ref:t})});cl.displayName=_o;var dl="DialogDescription",ul=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ve(dl,n);return p.jsx(Z.p,{id:o.descriptionId,...r,ref:t})});ul.displayName=dl;var fl="DialogClose",pl=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ve(fl,n);return p.jsx(Z.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});pl.displayName=fl;function Ao(e){return e?"open":"closed"}var hl="DialogTitleWarning",[PS,ml]=Ap(hl,{contentName:Ot,titleName:_o,docsSlug:"dialog"}),_g=({titleId:e})=>{const t=ml(hl),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
122
+
123
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
124
+
125
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Ag="DialogDescriptionWarning",Ig=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ml(Ag).contentName}}.`;return u.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},gl=tl,Wg=rl,vl=al,Io=sl,Wo=il,bl=cl,yl=ul,Fg=pl,Nn='[cmdk-group=""]',Fo='[cmdk-group-items=""]',$g='[cmdk-group-heading=""]',wl='[cmdk-item=""]',xl=`${wl}:not([aria-disabled="true"])`,$o="cmdk-item-select",Zt="data-value",Bg=(e,t,n)=>Nm(e,t,n),Cl=u.createContext(void 0),Mn=()=>u.useContext(Cl),Sl=u.createContext(void 0),Bo=()=>u.useContext(Sl),Nl=u.createContext(void 0),yr=u.forwardRef((e,t)=>{let n=Qt(()=>{var D,_;return{search:"",value:(_=(D=e.value)!=null?D:e.defaultValue)!=null?_:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Qt(()=>new Set),o=Qt(()=>new Map),a=Qt(()=>new Map),s=Qt(()=>new Set),i=kl(e),{label:l,children:c,value:f,onValueChange:d,filter:h,shouldFilter:m,loop:w,disablePointerSelection:g=!1,vimBindings:v=!0,...y}=e,b=me(),x=me(),N=me(),M=u.useRef(null),C=Vg();_t(()=>{if(f!==void 0){let D=f.trim();n.current.value=D,E.emit()}},[f]),_t(()=>{C(6,j)},[]);let E=u.useMemo(()=>({subscribe:D=>(s.current.add(D),()=>s.current.delete(D)),snapshot:()=>n.current,setState:(D,_,B)=>{var A,K,I,z;if(!Object.is(n.current[D],_)){if(n.current[D]=_,D==="search")$(),F(),C(1,H);else if(D==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let J=document.getElementById(N);J?J.focus():(A=document.getElementById(b))==null||A.focus()}if(C(7,()=>{var J;n.current.selectedItemId=(J=V())==null?void 0:J.id,E.emit()}),B||C(5,j),((K=i.current)==null?void 0:K.value)!==void 0){let J=_??"";(z=(I=i.current).onValueChange)==null||z.call(I,J);return}}E.emit()}},emit:()=>{s.current.forEach(D=>D())}}),[]),T=u.useMemo(()=>({value:(D,_,B)=>{var A;_!==((A=a.current.get(D))==null?void 0:A.value)&&(a.current.set(D,{value:_,keywords:B}),n.current.filtered.items.set(D,R(_,B)),C(2,()=>{F(),E.emit()}))},item:(D,_)=>(r.current.add(D),_&&(o.current.has(_)?o.current.get(_).add(D):o.current.set(_,new Set([D]))),C(3,()=>{$(),F(),n.current.value||H(),E.emit()}),()=>{a.current.delete(D),r.current.delete(D),n.current.filtered.items.delete(D);let B=V();C(4,()=>{$(),(B==null?void 0:B.getAttribute("id"))===D&&H(),E.emit()})}),group:D=>(o.current.has(D)||o.current.set(D,new Set),()=>{a.current.delete(D),o.current.delete(D)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:b,inputId:N,labelId:x,listInnerRef:M}),[]);function R(D,_){var B,A;let K=(A=(B=i.current)==null?void 0:B.filter)!=null?A:Bg;return D?K(D,n.current.search,_):0}function F(){if(!n.current.search||i.current.shouldFilter===!1)return;let D=n.current.filtered.items,_=[];n.current.filtered.groups.forEach(A=>{let K=o.current.get(A),I=0;K.forEach(z=>{let J=D.get(z);I=Math.max(J,I)}),_.push([A,I])});let B=M.current;ne().sort((A,K)=>{var I,z;let J=A.getAttribute("id"),re=K.getAttribute("id");return((I=D.get(re))!=null?I:0)-((z=D.get(J))!=null?z:0)}).forEach(A=>{let K=A.closest(Fo);K?K.appendChild(A.parentElement===K?A:A.closest(`${Fo} > *`)):B.appendChild(A.parentElement===B?A:A.closest(`${Fo} > *`))}),_.sort((A,K)=>K[1]-A[1]).forEach(A=>{var K;let I=(K=M.current)==null?void 0:K.querySelector(`${Nn}[${Zt}="${encodeURIComponent(A[0])}"]`);I==null||I.parentElement.appendChild(I)})}function H(){let D=ne().find(B=>B.getAttribute("aria-disabled")!=="true"),_=D==null?void 0:D.getAttribute(Zt);E.setState("value",_||void 0)}function $(){var D,_,B,A;if(!n.current.search||i.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let K=0;for(let I of r.current){let z=(_=(D=a.current.get(I))==null?void 0:D.value)!=null?_:"",J=(A=(B=a.current.get(I))==null?void 0:B.keywords)!=null?A:[],re=R(z,J);n.current.filtered.items.set(I,re),re>0&&K++}for(let[I,z]of o.current)for(let J of z)if(n.current.filtered.items.get(J)>0){n.current.filtered.groups.add(I);break}n.current.filtered.count=K}function j(){var D,_,B;let A=V();A&&(((D=A.parentElement)==null?void 0:D.firstChild)===A&&((B=(_=A.closest(Nn))==null?void 0:_.querySelector($g))==null||B.scrollIntoView({block:"nearest"})),A.scrollIntoView({block:"nearest"}))}function V(){var D;return(D=M.current)==null?void 0:D.querySelector(`${wl}[aria-selected="true"]`)}function ne(){var D;return Array.from(((D=M.current)==null?void 0:D.querySelectorAll(xl))||[])}function W(D){let _=ne()[D];_&&E.setState("value",_.getAttribute(Zt))}function G(D){var _;let B=V(),A=ne(),K=A.findIndex(z=>z===B),I=A[K+D];(_=i.current)!=null&&_.loop&&(I=K+D<0?A[A.length-1]:K+D===A.length?A[0]:A[K+D]),I&&E.setState("value",I.getAttribute(Zt))}function Y(D){let _=V(),B=_==null?void 0:_.closest(Nn),A;for(;B&&!A;)B=D>0?Yg(B,Nn):zg(B,Nn),A=B==null?void 0:B.querySelector(xl);A?E.setState("value",A.getAttribute(Zt)):G(D)}let P=()=>W(ne().length-1),U=D=>{D.preventDefault(),D.metaKey?P():D.altKey?Y(1):G(1)},te=D=>{D.preventDefault(),D.metaKey?W(0):D.altKey?Y(-1):G(-1)};return u.createElement(Z.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:D=>{var _;(_=y.onKeyDown)==null||_.call(y,D);let B=D.nativeEvent.isComposing||D.keyCode===229;if(!(D.defaultPrevented||B))switch(D.key){case"n":case"j":{v&&D.ctrlKey&&U(D);break}case"ArrowDown":{U(D);break}case"p":case"k":{v&&D.ctrlKey&&te(D);break}case"ArrowUp":{te(D);break}case"Home":{D.preventDefault(),W(0);break}case"End":{D.preventDefault(),P();break}case"Enter":{D.preventDefault();let A=V();if(A){let K=new Event($o);A.dispatchEvent(K)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Gg},l),wr(e,D=>u.createElement(Sl.Provider,{value:E},u.createElement(Cl.Provider,{value:T},D))))}),Lo=u.forwardRef((e,t)=>{var n,r;let o=me(),a=u.useRef(null),s=u.useContext(Nl),i=Mn(),l=kl(e),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;_t(()=>{if(!c)return i.item(o,s==null?void 0:s.id)},[c]);let f=Dl(o,a,[e.value,e.children,a],e.keywords),d=Bo(),h=yt(C=>C.value&&C.value===f.current),m=yt(C=>c||i.filter()===!1?!0:C.search?C.filtered.items.get(o)>0:!0);u.useEffect(()=>{let C=a.current;if(!(!C||e.disabled))return C.addEventListener($o,w),()=>C.removeEventListener($o,w)},[m,e.onSelect,e.disabled]);function w(){var C,E;g(),(E=(C=l.current).onSelect)==null||E.call(C,f.current)}function g(){d.setState("value",f.current,!0)}if(!m)return null;let{disabled:v,value:y,onSelect:b,forceMount:x,keywords:N,...M}=e;return u.createElement(Z.div,{ref:Qe(a,t),...M,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!h,"data-disabled":!!v,"data-selected":!!h,onPointerMove:v||i.getDisablePointerSelection()?void 0:g,onClick:v?void 0:w},e.children)}),Ml=u.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,s=me(),i=u.useRef(null),l=u.useRef(null),c=me(),f=Mn(),d=yt(m=>o||f.filter()===!1?!0:m.search?m.filtered.groups.has(s):!0);_t(()=>f.group(s),[]),Dl(s,i,[e.value,e.heading,l]);let h=u.useMemo(()=>({id:s,forceMount:o}),[o]);return u.createElement(Z.div,{ref:Qe(i,t),...a,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&u.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),wr(e,m=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},u.createElement(Nl.Provider,{value:h},m))))}),El=u.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=u.useRef(null),a=yt(s=>!s.search);return!n&&!a?null:u.createElement(Z.div,{ref:Qe(o,t),...r,"cmdk-separator":"",role:"separator"})}),Ro=u.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,a=Bo(),s=yt(c=>c.search),i=yt(c=>c.selectedItemId),l=Mn();return u.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),u.createElement(Z.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:o?e.value:s,onChange:c=>{o||a.setState("search",c.target.value),n==null||n(c.target.value)}})}),Yo=u.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=u.useRef(null),s=u.useRef(null),i=yt(c=>c.selectedItemId),l=Mn();return u.useEffect(()=>{if(s.current&&a.current){let c=s.current,f=a.current,d,h=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let m=c.offsetHeight;f.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return h.observe(c),()=>{cancelAnimationFrame(d),h.unobserve(c)}}},[]),u.createElement(Z.div,{ref:Qe(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":r,id:l.listId},wr(e,c=>u.createElement("div",{ref:Qe(s,l.listInnerRef),"cmdk-list-sizer":""},c)))}),Lg=u.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:s,...i}=e;return u.createElement(gl,{open:n,onOpenChange:r},u.createElement(vl,{container:s},u.createElement(Io,{"cmdk-overlay":"",className:o}),u.createElement(Wo,{"aria-label":e.label,"cmdk-dialog":"",className:a},u.createElement(yr,{ref:t,...i}))))}),zo=u.forwardRef((e,t)=>yt(n=>n.filtered.count===0)?u.createElement(Z.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Rg=u.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return u.createElement(Z.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},wr(e,s=>u.createElement("div",{"aria-hidden":!0},s)))});Object.assign(yr,{List:Yo,Item:Lo,Input:Ro,Group:Ml,Separator:El,Dialog:Lg,Empty:zo,Loading:Rg});function Yg(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function zg(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function kl(e){let t=u.useRef(e);return _t(()=>{t.current=e}),t}var _t=typeof window>"u"?u.useEffect:u.useLayoutEffect;function Qt(e){let t=u.useRef();return t.current===void 0&&(t.current=e()),t}function yt(e){let t=Bo(),n=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,n,n)}function Dl(e,t,n,r=[]){let o=u.useRef(),a=Mn();return _t(()=>{var s;let i=(()=>{var c;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(c=f.current.textContent)==null?void 0:c.trim():o.current}})(),l=r.map(c=>c.trim());a.value(e,i,l),(s=t.current)==null||s.setAttribute(Zt,i),o.current=i}),o}var Vg=()=>{let[e,t]=u.useState(),n=Qt(()=>new Map);return _t(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function Hg(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function wr({asChild:e,children:t},n){return e&&u.isValidElement(t)?u.cloneElement(Hg(t),{ref:t.ref},n(t.props.children)):n(t)}var Gg={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const jg=["top","right","bottom","left"],wt=Math.min,Oe=Math.max,xr=Math.round,Cr=Math.floor,et=e=>({x:e,y:e}),Ug={left:"right",right:"left",bottom:"top",top:"bottom"};function Vo(e,t,n){return Oe(e,wt(t,n))}function dt(e,t){return typeof e=="function"?e(t):e}function ut(e){return e.split("-")[0]}function Jt(e){return e.split("-")[1]}function Ho(e){return e==="x"?"y":"x"}function Go(e){return e==="y"?"height":"width"}function tt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function jo(e){return Ho(tt(e))}function Kg(e,t,n){n===void 0&&(n=!1);const r=Jt(e),o=jo(e),a=Go(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Sr(s)),[s,Sr(s)]}function qg(e){const t=Sr(e);return[Uo(e),t,Uo(t)]}function Uo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Tl=["left","right"],Pl=["right","left"],Xg=["top","bottom"],Zg=["bottom","top"];function Qg(e,t,n){switch(e){case"top":case"bottom":return n?t?Pl:Tl:t?Tl:Pl;case"left":case"right":return t?Xg:Zg;default:return[]}}function Jg(e,t,n,r){const o=Jt(e);let a=Qg(ut(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Uo)))),a}function Sr(e){const t=ut(e);return Ug[t]+e.slice(t.length)}function ev(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ol(e){return typeof e!="number"?ev(e):{top:e,right:e,bottom:e,left:e}}function Nr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function _l(e,t,n){let{reference:r,floating:o}=e;const a=tt(t),s=jo(t),i=Go(s),l=ut(t),c=a==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[i]/2-o[i]/2;let m;switch(l){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(Jt(t)){case"start":m[s]-=h*(n&&c?-1:1);break;case"end":m[s]+=h*(n&&c?-1:1);break}return m}async function tv(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=dt(t,e),w=Ol(m),v=i[h?d==="floating"?"reference":"floating":d],y=Nr(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:f,strategy:l})),b=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),N=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},M=Nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:b,offsetParent:x,strategy:l}):b);return{top:(y.top-M.top+w.top)/N.y,bottom:(M.bottom-y.bottom+w.bottom)/N.y,left:(y.left-M.left+w.left)/N.x,right:(M.right-y.right+w.right)/N.x}}const nv=50,rv=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,i=s.detectOverflow?s:{...s,detectOverflow:tv},l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=_l(c,r,l),h=r,m=0;const w={};for(let g=0;g<a.length;g++){const v=a[g];if(!v)continue;const{name:y,fn:b}=v,{x,y:N,data:M,reset:C}=await b({x:f,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:w,rects:c,platform:i,elements:{reference:e,floating:t}});f=x??f,d=N??d,w[y]={...w[y],...M},C&&m<nv&&(m++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(c=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:d}=_l(c,h,l)),g=-1)}return{x:f,y:d,placement:h,strategy:o,middlewareData:w}},ov=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:i,middlewareData:l}=t,{element:c,padding:f=0}=dt(e,t)||{};if(c==null)return{};const d=Ol(f),h={x:n,y:r},m=jo(o),w=Go(m),g=await s.getDimensions(c),v=m==="y",y=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",N=a.reference[w]+a.reference[m]-h[m]-a.floating[w],M=h[m]-a.reference[m],C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let E=C?C[x]:0;(!E||!await(s.isElement==null?void 0:s.isElement(C)))&&(E=i.floating[x]||a.floating[w]);const T=N/2-M/2,R=E/2-g[w]/2-1,F=wt(d[y],R),H=wt(d[b],R),$=F,j=E-g[w]-H,V=E/2-g[w]/2+T,ne=Vo($,V,j),W=!l.arrow&&Jt(o)!=null&&V!==ne&&a.reference[w]/2-(V<$?F:H)-g[w]/2<0,G=W?V<$?V-$:V-j:0;return{[m]:h[m]+G,data:{[m]:ne,centerOffset:V-ne-G,...W&&{alignmentOffset:G}},reset:W}}}),av=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...v}=dt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=ut(o),b=tt(i),x=ut(i)===i,N=await(l.isRTL==null?void 0:l.isRTL(c.floating)),M=h||(x||!g?[Sr(i)]:qg(i)),C=w!=="none";!h&&C&&M.push(...Jg(i,g,w,N));const E=[i,...M],T=await l.detectOverflow(t,v),R=[];let F=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&R.push(T[y]),d){const V=Kg(o,s,N);R.push(T[V[0]],T[V[1]])}if(F=[...F,{placement:o,overflows:R}],!R.every(V=>V<=0)){var H,$;const V=(((H=a.flip)==null?void 0:H.index)||0)+1,ne=E[V];if(ne&&(!(d==="alignment"?b!==tt(ne):!1)||F.every(Y=>tt(Y.placement)===b?Y.overflows[0]>0:!0)))return{data:{index:V,overflows:F},reset:{placement:ne}};let W=($=F.filter(G=>G.overflows[0]<=0).sort((G,Y)=>G.overflows[1]-Y.overflows[1])[0])==null?void 0:$.placement;if(!W)switch(m){case"bestFit":{var j;const G=(j=F.filter(Y=>{if(C){const P=tt(Y.placement);return P===b||P==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(P=>P>0).reduce((P,U)=>P+U,0)]).sort((Y,P)=>Y[1]-P[1])[0])==null?void 0:j[0];G&&(W=G);break}case"initialPlacement":W=i;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function Al(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Il(e){return jg.some(t=>e[t]>=0)}const sv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=dt(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...a,elementContext:"reference"}),i=Al(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Il(i)}}}case"escaped":{const s=await r.detectOverflow(t,{...a,altBoundary:!0}),i=Al(s,n.floating);return{data:{escapedOffsets:i,escaped:Il(i)}}}default:return{}}}}},Wl=new Set(["left","top"]);async function iv(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ut(n),i=Jt(n),l=tt(n)==="y",c=Wl.has(s)?-1:1,f=a&&l?-1:1,d=dt(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof w=="number"&&(m=i==="end"?w*-1:w),l?{x:m*f,y:h*c}:{x:h*c,y:m*f}}const lv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:i}=t,l=await iv(t,e);return s===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},cv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:b,y:x}=y;return{x:b,y:x}}},...c}=dt(e,t),f={x:n,y:r},d=await a.detectOverflow(t,c),h=tt(ut(o)),m=Ho(h);let w=f[m],g=f[h];if(s){const y=m==="y"?"top":"left",b=m==="y"?"bottom":"right",x=w+d[y],N=w-d[b];w=Vo(x,w,N)}if(i){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=g+d[y],N=g-d[b];g=Vo(x,g,N)}const v=l.fn({...t,[m]:w,[h]:g});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:s,[h]:i}}}}}},dv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=dt(e,t),f={x:n,y:r},d=tt(o),h=Ho(d);let m=f[h],w=f[d];const g=dt(i,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const x=h==="y"?"height":"width",N=a.reference[h]-a.floating[x]+v.mainAxis,M=a.reference[h]+a.reference[x]-v.mainAxis;m<N?m=N:m>M&&(m=M)}if(c){var y,b;const x=h==="y"?"width":"height",N=Wl.has(ut(o)),M=a.reference[d]-a.floating[x]+(N&&((y=s.offset)==null?void 0:y[d])||0)+(N?0:v.crossAxis),C=a.reference[d]+a.reference[x]+(N?0:((b=s.offset)==null?void 0:b[d])||0)-(N?v.crossAxis:0);w<M?w=M:w>C&&(w=C)}return{[h]:m,[d]:w}}}},uv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:l=()=>{},...c}=dt(e,t),f=await s.detectOverflow(t,c),d=ut(o),h=Jt(o),m=tt(o)==="y",{width:w,height:g}=a.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=h===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=d,v=h==="end"?"top":"bottom");const b=g-f.top-f.bottom,x=w-f.left-f.right,N=wt(g-f[v],b),M=wt(w-f[y],x),C=!t.middlewareData.shift;let E=N,T=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=b),C&&!h){const F=Oe(f.left,0),H=Oe(f.right,0),$=Oe(f.top,0),j=Oe(f.bottom,0);m?T=w-2*(F!==0||H!==0?F+H:Oe(f.left,f.right)):E=g-2*($!==0||j!==0?$+j:Oe(f.top,f.bottom))}await l({...t,availableWidth:T,availableHeight:E});const R=await s.getDimensions(i.floating);return w!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}};function Mr(){return typeof window<"u"}function en(e){return Fl(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nt(e){var t;return(t=(Fl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fl(e){return Mr()?e instanceof Node||e instanceof _e(e).Node:!1}function He(e){return Mr()?e instanceof Element||e instanceof _e(e).Element:!1}function ft(e){return Mr()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function $l(e){return!Mr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}function En(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function fv(e){return/^(table|td|th)$/.test(en(e))}function Er(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const pv=/transform|translate|scale|rotate|perspective|filter/,hv=/paint|layout|strict|content/,At=e=>!!e&&e!=="none";let Ko;function qo(e){const t=He(e)?Ge(e):e;return At(t.transform)||At(t.translate)||At(t.scale)||At(t.rotate)||At(t.perspective)||!Xo()&&(At(t.backdropFilter)||At(t.filter))||pv.test(t.willChange||"")||hv.test(t.contain||"")}function mv(e){let t=xt(e);for(;ft(t)&&!tn(t);){if(qo(t))return t;if(Er(t))return null;t=xt(t)}return null}function Xo(){return Ko==null&&(Ko=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ko}function tn(e){return/^(html|body|#document)$/.test(en(e))}function Ge(e){return _e(e).getComputedStyle(e)}function kr(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xt(e){if(en(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$l(e)&&e.host||nt(e);return $l(t)?t.host:t}function Bl(e){const t=xt(e);return tn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ft(t)&&En(t)?t:Bl(t)}function kn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Bl(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=_e(o);if(a){const i=Zo(s);return t.concat(s,s.visualViewport||[],En(o)?o:[],i&&n?kn(i):[])}else return t.concat(o,kn(o,[],n))}function Zo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ll(e){const t=Ge(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ft(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=xr(n)!==a||xr(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}function Qo(e){return He(e)?e:e.contextElement}function nn(e){const t=Qo(e);if(!ft(t))return et(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ll(t);let s=(a?xr(n.width):n.width)/r,i=(a?xr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const gv=et(0);function Rl(e){const t=_e(e);return!Xo()||!t.visualViewport?gv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_e(e)?!1:t}function It(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Qo(e);let s=et(1);t&&(r?He(r)&&(s=nn(r)):s=nn(e));const i=vv(a,n,r)?Rl(a):et(0);let l=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,f=o.width/s.x,d=o.height/s.y;if(a){const h=_e(a),m=r&&He(r)?_e(r):r;let w=h,g=Zo(w);for(;g&&r&&m!==w;){const v=nn(g),y=g.getBoundingClientRect(),b=Ge(g),x=y.left+(g.clientLeft+parseFloat(b.paddingLeft))*v.x,N=y.top+(g.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,c*=v.y,f*=v.x,d*=v.y,l+=x,c+=N,w=_e(g),g=Zo(w)}}return Nr({width:f,height:d,x:l,y:c})}function Dr(e,t){const n=kr(e).scrollLeft;return t?t.left+n:It(nt(e)).left+n}function Yl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Dr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function bv(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=nt(r),i=t?Er(t.floating):!1;if(r===s||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=et(1);const f=et(0),d=ft(r);if((d||!d&&!a)&&((en(r)!=="body"||En(s))&&(l=kr(r)),d)){const m=It(r);c=nn(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const h=s&&!d&&!a?Yl(s,l):et(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x+h.x,y:n.y*c.y-l.scrollTop*c.y+f.y+h.y}}function yv(e){return Array.from(e.getClientRects())}function wv(e){const t=nt(e),n=kr(e),r=e.ownerDocument.body,o=Oe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Oe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Dr(e);const i=-n.scrollTop;return Ge(r).direction==="rtl"&&(s+=Oe(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:i}}const zl=25;function xv(e,t){const n=_e(e),r=nt(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;const f=Xo();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const c=Dr(r);if(c<=0){const f=r.ownerDocument,d=f.body,h=getComputedStyle(d),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(r.clientWidth-d.clientWidth-m);w<=zl&&(a-=w)}else c<=zl&&(a+=c);return{width:a,height:s,x:i,y:l}}function Cv(e,t){const n=It(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ft(e)?nn(e):et(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,l=o*a.x,c=r*a.y;return{width:s,height:i,x:l,y:c}}function Vl(e,t,n){let r;if(t==="viewport")r=xv(e,n);else if(t==="document")r=wv(nt(e));else if(He(t))r=Cv(t,n);else{const o=Rl(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Nr(r)}function Hl(e,t){const n=xt(e);return n===t||!He(n)||tn(n)?!1:Ge(n).position==="fixed"||Hl(n,t)}function Sv(e,t){const n=t.get(e);if(n)return n;let r=kn(e,[],!1).filter(i=>He(i)&&en(i)!=="body"),o=null;const a=Ge(e).position==="fixed";let s=a?xt(e):e;for(;He(s)&&!tn(s);){const i=Ge(s),l=qo(s);!l&&i.position==="fixed"&&(o=null),(a?!l&&!o:!l&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||En(s)&&!l&&Hl(e,s))?r=r.filter(f=>f!==s):o=i,s=xt(s)}return t.set(e,r),r}function Nv(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Er(t)?[]:Sv(t,this._c):[].concat(n),r],i=Vl(t,s[0],o);let l=i.top,c=i.right,f=i.bottom,d=i.left;for(let h=1;h<s.length;h++){const m=Vl(t,s[h],o);l=Oe(m.top,l),c=wt(m.right,c),f=wt(m.bottom,f),d=Oe(m.left,d)}return{width:c-d,height:f-l,x:d,y:l}}function Mv(e){const{width:t,height:n}=Ll(e);return{width:t,height:n}}function Ev(e,t,n){const r=ft(t),o=nt(t),a=n==="fixed",s=It(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const l=et(0);function c(){l.x=Dr(o)}if(r||!r&&!a)if((en(t)!=="body"||En(o))&&(i=kr(t)),r){const m=It(t,!0,a,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&c();a&&!r&&o&&c();const f=o&&!r&&!a?Yl(o,i):et(0),d=s.left+i.scrollLeft-l.x-f.x,h=s.top+i.scrollTop-l.y-f.y;return{x:d,y:h,width:s.width,height:s.height}}function Jo(e){return Ge(e).position==="static"}function Gl(e,t){if(!ft(e)||Ge(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return nt(e)===n&&(n=n.ownerDocument.body),n}function jl(e,t){const n=_e(e);if(Er(e))return n;if(!ft(e)){let o=xt(e);for(;o&&!tn(o);){if(He(o)&&!Jo(o))return o;o=xt(o)}return n}let r=Gl(e,t);for(;r&&fv(r)&&Jo(r);)r=Gl(r,t);return r&&tn(r)&&Jo(r)&&!qo(r)?n:r||mv(e)||n}const kv=async function(e){const t=this.getOffsetParent||jl,n=this.getDimensions,r=await n(e.floating);return{reference:Ev(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Dv(e){return Ge(e).direction==="rtl"}const Tv={convertOffsetParentRelativeRectToViewportRelativeRect:bv,getDocumentElement:nt,getClippingRect:Nv,getOffsetParent:jl,getElementRects:kv,getClientRects:yv,getDimensions:Mv,getScale:nn,isElement:He,isRTL:Dv};function Ul(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pv(e,t){let n=null,r;const o=nt(e);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function s(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:f,top:d,width:h,height:m}=c;if(i||t(),!h||!m)return;const w=Cr(d),g=Cr(o.clientWidth-(f+h)),v=Cr(o.clientHeight-(d+m)),y=Cr(f),x={rootMargin:-w+"px "+-g+"px "+-v+"px "+-y+"px",threshold:Oe(0,wt(1,l))||1};let N=!0;function M(C){const E=C[0].intersectionRatio;if(E!==l){if(!N)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!Ul(c,e.getBoundingClientRect())&&s(),N=!1}try{n=new IntersectionObserver(M,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(M,x)}n.observe(e)}return s(!0),a}function Ov(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Qo(e),f=o||a?[...c?kn(c):[],...t?kn(t):[]]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const d=c&&i?Pv(c,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let w,g=l?It(e):null;l&&v();function v(){const y=It(e);g&&!Ul(g,y)&&n(),g=y,w=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),d==null||d(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(w)}}const _v=lv,Av=cv,Iv=av,Wv=uv,Fv=sv,Kl=ov,$v=dv,Bv=(e,t,n)=>{const r=new Map,o={platform:Tv,...n},a={...o.platform,_c:r};return rv(e,t,{...o,platform:a})};var Lv=typeof document<"u",Rv=function(){},Tr=Lv?S.useLayoutEffect:Rv;function Pr(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 n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Pr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Pr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ql(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xl(e,t){const n=ql(e);return Math.round(t*n)/n}function ea(e){const t=u.useRef(e);return Tr(()=>{t.current=e}),t}function Yv(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[f,d]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=u.useState(r);Pr(h,r)||m(r);const[w,g]=u.useState(null),[v,y]=u.useState(null),b=u.useCallback(Y=>{Y!==C.current&&(C.current=Y,g(Y))},[]),x=u.useCallback(Y=>{Y!==E.current&&(E.current=Y,y(Y))},[]),N=a||w,M=s||v,C=u.useRef(null),E=u.useRef(null),T=u.useRef(f),R=l!=null,F=ea(l),H=ea(o),$=ea(c),j=u.useCallback(()=>{if(!C.current||!E.current)return;const Y={placement:t,strategy:n,middleware:h};H.current&&(Y.platform=H.current),Bv(C.current,E.current,Y).then(P=>{const U={...P,isPositioned:$.current!==!1};V.current&&!Pr(T.current,U)&&(T.current=U,er.flushSync(()=>{d(U)}))})},[h,t,n,H,$]);Tr(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(Y=>({...Y,isPositioned:!1})))},[c]);const V=u.useRef(!1);Tr(()=>(V.current=!0,()=>{V.current=!1}),[]),Tr(()=>{if(N&&(C.current=N),M&&(E.current=M),N&&M){if(F.current)return F.current(N,M,j);j()}},[N,M,j,F,R]);const ne=u.useMemo(()=>({reference:C,floating:E,setReference:b,setFloating:x}),[b,x]),W=u.useMemo(()=>({reference:N,floating:M}),[N,M]),G=u.useMemo(()=>{const Y={position:n,left:0,top:0};if(!W.floating)return Y;const P=Xl(W.floating,f.x),U=Xl(W.floating,f.y);return i?{...Y,transform:"translate("+P+"px, "+U+"px)",...ql(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:U}},[n,i,W.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:j,refs:ne,elements:W,floatingStyles:G}),[f,j,ne,W,G])}const zv=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Kl({element:r.current,padding:o}).fn(n):{}:r?Kl({element:r,padding:o}).fn(n):{}}}},Vv=(e,t)=>{const n=_v(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hv=(e,t)=>{const n=Av(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gv=(e,t)=>({fn:$v(e).fn,options:[e,t]}),jv=(e,t)=>{const n=Iv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Uv=(e,t)=>{const n=Wv(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kv=(e,t)=>{const n=Fv(e);return{name:n.name,fn:n.fn,options:[e,t]}},qv=(e,t)=>{const n=zv(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Xv="Arrow",Zl=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return p.jsx(Z.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zl.displayName=Xv;var Zv=Zl;function Qv(e){const[t,n]=u.useState(void 0);return we(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;n({width:s,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ta="Popper",[Ql,Ct]=Fe(ta),[Jv,Jl]=Ql(ta),ec=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return p.jsx(Jv,{scope:t,anchor:r,onAnchorChange:o,children:n})};ec.displayName=ta;var tc="PopperAnchor",nc=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Jl(tc,n),s=u.useRef(null),i=ce(t,s),l=u.useRef(null);return u.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||s.current,c!==l.current&&a.onAnchorChange(l.current)}),r?null:p.jsx(Z.div,{...o,ref:i})});nc.displayName=tc;var na="PopperContent",[eb,tb]=Ql(na),rc=u.forwardRef((e,t)=>{var I,z,J,re,ie,se;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...g}=e,v=Jl(na,n),[y,b]=u.useState(null),x=ce(t,xe=>b(xe)),[N,M]=u.useState(null),C=Qv(N),E=(C==null?void 0:C.width)??0,T=(C==null?void 0:C.height)??0,R=r+(a!=="center"?"-"+a:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(c)?c:[c],$=H.length>0,j={padding:F,boundary:H.filter(rb),altBoundary:$},{refs:V,floatingStyles:ne,placement:W,isPositioned:G,middlewareData:Y}=Yv({strategy:"fixed",placement:R,whileElementsMounted:(...xe)=>Ov(...xe,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Vv({mainAxis:o+T,alignmentAxis:s}),l&&Hv({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Gv():void 0,...j}),l&&jv({...j}),Uv({...j,apply:({elements:xe,rects:Ne,availableWidth:it,availableHeight:lt})=>{const{width:We,height:mn}=Ne.reference,Me=xe.floating.style;Me.setProperty("--radix-popper-available-width",`${it}px`),Me.setProperty("--radix-popper-available-height",`${lt}px`),Me.setProperty("--radix-popper-anchor-width",`${We}px`),Me.setProperty("--radix-popper-anchor-height",`${mn}px`)}}),N&&qv({element:N,padding:i}),ob({arrowWidth:E,arrowHeight:T}),h&&Kv({strategy:"referenceHidden",...j})]}),[P,U]=sc(W),te=ze(w);we(()=>{G&&(te==null||te())},[G,te]);const D=(I=Y.arrow)==null?void 0:I.x,_=(z=Y.arrow)==null?void 0:z.y,B=((J=Y.arrow)==null?void 0:J.centerOffset)!==0,[A,K]=u.useState();return we(()=>{y&&K(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:G?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:A,"--radix-popper-transform-origin":[(re=Y.transformOrigin)==null?void 0:re.x,(ie=Y.transformOrigin)==null?void 0:ie.y].join(" "),...((se=Y.hide)==null?void 0:se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(eb,{scope:n,placedSide:P,onArrowChange:M,arrowX:D,arrowY:_,shouldHideArrow:B,children:p.jsx(Z.div,{"data-side":P,"data-align":U,...g,ref:x,style:{...g.style,animation:G?void 0:"none"}})})})});rc.displayName=na;var oc="PopperArrow",nb={top:"bottom",right:"left",bottom:"top",left:"right"},ac=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=tb(oc,r),s=nb[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(Zv,{...o,ref:n,style:{...o.style,display:"block"}})})});ac.displayName=oc;function rb(e){return e!==null}var ob=e=>({name:"transformOrigin",options:e,fn(t){var v,y,b;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,i=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,f]=sc(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(((y=o.arrow)==null?void 0:y.x)??0)+i/2,m=(((b=o.arrow)==null?void 0:b.y)??0)+l/2;let w="",g="";return c==="bottom"?(w=s?d:`${h}px`,g=`${-l}px`):c==="top"?(w=s?d:`${h}px`,g=`${r.floating.height+l}px`):c==="right"?(w=`${-l}px`,g=s?d:`${m}px`):c==="left"&&(w=`${r.floating.width+l}px`,g=s?d:`${m}px`),{data:{x:w,y:g}}}});function sc(e){const[t,n="center"]=e.split("-");return[t,n]}var Dn=ec,Tn=nc,Or=rc,_r=ac,Ar="Popover",[ic]=Fe(Ar,[Ct]),Pn=Ct(),[ab,St]=ic(Ar),lc=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=Pn(t),l=u.useRef(null),[c,f]=u.useState(!1),[d,h]=$e({prop:r,defaultProp:o??!1,onChange:a,caller:Ar});return p.jsx(Dn,{...i,children:p.jsx(ab,{scope:t,contentId:me(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:u.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:c,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:s,children:n})})};lc.displayName=Ar;var cc="PopoverAnchor",dc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=St(cc,n),a=Pn(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return u.useEffect(()=>(s(),()=>i()),[s,i]),p.jsx(Tn,{...a,...r,ref:t})});dc.displayName=cc;var uc="PopoverTrigger",fc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=St(uc,n),a=Pn(n),s=ce(t,o.triggerRef),i=p.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bc(o.open),...r,ref:s,onClick:L(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:p.jsx(Tn,{asChild:!0,...a,children:i})});fc.displayName=uc;var ra="PopoverPortal",[sb,ib]=ic(ra,{forceMount:void 0}),pc=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=St(ra,t);return p.jsx(sb,{scope:t,forceMount:n,children:p.jsx(Te,{present:n||a.open,children:p.jsx(jt,{asChild:!0,container:o,children:r})})})};pc.displayName=ra;var rn="PopoverContent",hc=u.forwardRef((e,t)=>{const n=ib(rn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=St(rn,e.__scopePopover);return p.jsx(Te,{present:r||a.open,children:a.modal?p.jsx(cb,{...o,ref:t}):p.jsx(db,{...o,ref:t})})});hc.displayName=rn;var lb=Pt("PopoverContent.RemoveScroll"),cb=u.forwardRef((e,t)=>{const n=St(rn,e.__scopePopover),r=u.useRef(null),o=ce(t,r),a=u.useRef(!1);return u.useEffect(()=>{const s=r.current;if(s)return gr(s)},[]),p.jsx(Sn,{as:lb,allowPinchZoom:!0,children:p.jsx(mc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,c=i.button===2||l;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),db=u.forwardRef((e,t)=>{const n=St(rn,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return p.jsx(mc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),mc=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:f,...d}=e,h=St(rn,n),m=Pn(n);return lr(),p.jsx(Cn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:p.jsx(Or,{"data-state":bc(h.open),role:"dialog",id:h.contentId,...m,...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)"}})})})}),gc="PopoverClose",vc=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=St(gc,n);return p.jsx(Z.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});vc.displayName=gc;var ub="PopoverArrow",fb=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Pn(n);return p.jsx(_r,{...o,...r,ref:t})});fb.displayName=ub;function bc(e){return e?"open":"closed"}var pb=lc,hb=dc,mb=fc,gb=pc,yc=hc,vb=vc;const on=pb,Ir=mb,bb=vb,yb=hb,Wt=u.forwardRef(({className:e,align:t="center",sideOffset:n=8,...r},o)=>p.jsx(gb,{children:p.jsx(yc,{ref:o,align:t,sideOffset:n,className:O("z-50 rounded-lg ring-1 ring-border/60 bg-background p-4 shadow-md outline-none","origin-(--radix-popover-content-transform-origin)","data-[state=open]:animate-popover-in","data-[state=closed]:animate-popover-out",e),...r})}));Wt.displayName=yc.displayName;const wc=({content:e,children:t,side:n,align:r,sideOffset:o,contentClassName:a,...s})=>p.jsxs(on,{...s,children:[p.jsx(Ir,{asChild:!0,children:t}),p.jsx(Wt,{side:n,align:r,sideOffset:o,className:a,children:e})]});wc.displayName="Popover";const xc=be(["w-full flex items-center justify-between gap-2","rounded-lg border border-border bg-background px-3 py-2 text-sm text-foreground","ring-offset-background","transition-[border-color,box-shadow,scale]","active:scale-[0.96]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{size:{sm:"h-8 text-xs",md:"h-10",lg:"h-11 text-base"},isError:{true:"border-destructive focus-visible:ring-destructive",false:""}},defaultVariants:{size:"md",isError:!1}}),oa=u.forwardRef(({className:e,size:t,isError:n,placeholder:r,children:o,...a},s)=>p.jsxs("button",{ref:s,type:"button",className:O(xc({size:t,isError:n}),e),"aria-invalid":n||void 0,...a,children:[p.jsx("span",{className:O("truncate",!o&&"text-muted-foreground"),children:o??r}),p.jsx(zt,{className:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})]}));oa.displayName="ComboBoxTrigger";const Cc=u.forwardRef(({className:e,children:t,searchPlaceholder:n="Search…",searchValue:r,onSearchChange:o,align:a="start"},s)=>p.jsx(Wt,{ref:s,className:O("w-[var(--radix-popover-trigger-width)] p-0",e),align:a,sideOffset:4,children:p.jsxs(yr,{className:"w-full",value:r,onValueChange:o,children:[p.jsx("div",{className:"border-b border-border",children:p.jsx(Ro,{className:"w-full bg-transparent px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none",placeholder:n})}),p.jsx(Yo,{className:"max-h-60 overflow-y-auto p-1",children:t})]})}));Cc.displayName="ComboBoxContent";const Sc=u.forwardRef(({className:e,children:t,selected:n,onSelect:r,...o},a)=>p.jsxs(Lo,{ref:a,className:O("relative flex w-full cursor-pointer items-center rounded py-1.5 pr-2 pl-8 text-sm select-none","transition-colors duration-100 outline-none","aria-selected:bg-accent aria-selected:text-accent-foreground","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",e),onSelect:r,...o,children:[p.jsx("span",{className:"absolute left-2 flex size-4 items-center justify-center",children:n&&p.jsx(yn,{className:"size-4","aria-hidden":"true"})}),t]}));Sc.displayName="ComboBoxItem";const Nc=u.forwardRef(({className:e,children:t,...n},r)=>p.jsx(zo,{ref:r,className:O("py-6 text-center text-sm text-muted-foreground",e),...n,children:t}));Nc.displayName="ComboBoxEmpty";const Mc=u.forwardRef(({className:e,heading:t,children:n,...r},o)=>p.jsx(Ml,{ref:o,heading:t,className:O("[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group-heading]]:text-muted-foreground",e),...r,children:n}));Mc.displayName="ComboBoxGroup";const Ec=u.forwardRef(({className:e,...t},n)=>p.jsx(El,{ref:n,className:O("-mx-1 my-1 h-px bg-border",e),...t}));Ec.displayName="ComboBoxSeparator";const kc=on;kc.displayName="ComboBoxRoot";const Dc=u.forwardRef(({options:e,value:t,onValueChange:n,placeholder:r="Select…",searchPlaceholder:o="Search…",emptyMessage:a="No results found.",size:s,isError:i,disabled:l,className:c},f)=>{const[d,h]=u.useState(!1),[m,w]=u.useState(""),g=u.useMemo(()=>{var y;return(y=e.find(b=>b.value===t))==null?void 0:y.label},[e,t]);function v(y){h(y),y||w("")}return p.jsxs(on,{open:d,onOpenChange:v,children:[p.jsx(Ir,{asChild:!0,children:p.jsx(oa,{ref:f,size:s,isError:i,disabled:l,className:c,placeholder:r,"aria-expanded":d,"aria-haspopup":"listbox",children:g})}),p.jsx(Wt,{className:"w-[var(--radix-popover-trigger-width)] p-0",align:"start",sideOffset:4,children:p.jsxs(yr,{className:"w-full",children:[p.jsx("div",{className:"border-b border-border",children:p.jsx(Ro,{className:"w-full bg-transparent px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none",placeholder:o,value:m,onValueChange:w})}),p.jsxs(Yo,{className:"max-h-60 overflow-y-auto p-1",children:[p.jsx(zo,{className:"py-6 text-center text-sm text-muted-foreground",children:a}),e.map(y=>p.jsxs(Lo,{value:y.label,disabled:y.disabled,className:O("relative flex w-full cursor-pointer items-center rounded py-1.5 pr-2 pl-8 text-sm select-none","transition-colors duration-100 outline-none","aria-selected:bg-accent aria-selected:text-accent-foreground","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"),onSelect:()=>{n==null||n(y.value),h(!1)},children:[p.jsx("span",{className:"absolute left-2 flex size-4 items-center justify-center",children:t===y.value&&p.jsx(yn,{className:"size-4","aria-hidden":"true"})}),y.label]},y.value))]})]})})]})});Dc.displayName="ComboBox";/**
126
+ * react-table
127
+ *
128
+ * Copyright (c) TanStack
129
+ *
130
+ * This source code is licensed under the MIT license found in the
131
+ * LICENSE.md file in the root directory of this source tree.
132
+ *
133
+ * @license MIT
134
+ */function aa(e,t){return e?wb(e)?u.createElement(e,t):e:null}function wb(e){return xb(e)||typeof e=="function"||Cb(e)}function xb(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Cb(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const sa=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{className:"w-full overflow-x-auto",children:p.jsx("table",{ref:n,className:O("w-full caption-bottom text-sm",e),...t})}));sa.displayName="Table";const ia=u.forwardRef(({className:e,...t},n)=>p.jsx("thead",{ref:n,className:O("[&_tr]:border-b [&_tr]:border-border",e),...t}));ia.displayName="TableHeader";const la=u.forwardRef(({className:e,...t},n)=>p.jsx("tbody",{ref:n,className:O("[&_tr:last-child]:border-0",e),...t}));la.displayName="TableBody";const Tc=u.forwardRef(({className:e,...t},n)=>p.jsx("tfoot",{ref:n,className:O("border-t border-border bg-muted/50 font-medium","[&>tr]:last:border-b-0",e),...t}));Tc.displayName="TableFooter";const an=u.forwardRef(({className:e,...t},n)=>p.jsx("tr",{ref:n,className:O("border-b border-border","transition-[background-color] duration-100","hover:bg-muted/50","data-[selected=true]:bg-muted",e),...t}));an.displayName="TableRow";const ca=u.forwardRef(({className:e,...t},n)=>p.jsx("th",{ref:n,className:O("h-10 px-4 text-left align-middle","text-xs font-medium text-muted-foreground uppercase tracking-wide","whitespace-nowrap","[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px",e),...t}));ca.displayName="TableHead";const On=u.forwardRef(({className:e,...t},n)=>p.jsx("td",{ref:n,className:O("px-4 py-3 align-middle","[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px",e),...t}));On.displayName="TableCell";const Pc=u.forwardRef(({className:e,...t},n)=>p.jsx("caption",{ref:n,className:O("mt-4 text-sm text-muted-foreground text-pretty",e),...t}));Pc.displayName="TableCaption";const da=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:O("animate-pulse rounded-md bg-muted",e),...t}));da.displayName="Skeleton";function Sb({table:e,isLoading:t=!1,loadingRows:n=5,emptyState:r,className:o,...a},s){const i=e.getAllColumns().length,l=e.getRowModel().rows;return p.jsx("div",{ref:s,className:O("w-full overflow-x-auto",o),...a,children:p.jsxs(sa,{children:[p.jsx(ia,{children:e.getHeaderGroups().map(c=>p.jsx(an,{children:c.headers.map(f=>{const d=f.column.getCanSort(),h=f.column.getIsSorted();return p.jsx(ca,{colSpan:f.colSpan,className:O(d&&"cursor-pointer select-none"),onClick:d?f.column.getToggleSortingHandler():void 0,children:f.isPlaceholder?null:d?p.jsxs("span",{className:"flex items-center gap-1.5",children:[aa(f.column.columnDef.header,f.getContext()),p.jsxs("span",{className:"relative size-3.5 shrink-0",children:[p.jsx(wh,{className:O("absolute inset-0 size-3.5 text-muted-foreground","transition-[opacity,scale] duration-150 ease-out",h?"scale-50 opacity-0":"scale-100 opacity-100"),"aria-hidden":"true"}),p.jsx(Xs,{className:O("absolute inset-0 size-3.5","transition-[opacity,scale] duration-150 ease-out",h==="asc"?"scale-100 opacity-100":"scale-50 opacity-0"),"aria-hidden":"true"}),p.jsx(zt,{className:O("absolute inset-0 size-3.5","transition-[opacity,scale] duration-150 ease-out",h==="desc"?"scale-100 opacity-100":"scale-50 opacity-0"),"aria-hidden":"true"})]})]}):aa(f.column.columnDef.header,f.getContext())},f.id)})},c.id))}),p.jsx(la,{children:t?Array.from({length:n}).map((c,f)=>p.jsx(an,{children:p.jsx(On,{colSpan:i,children:p.jsx(da,{className:"h-4 w-full"})})},f)):l.length===0?p.jsx(an,{children:p.jsx(On,{colSpan:i,className:"h-24 text-center text-sm text-muted-foreground",children:r??"No results."})}):l.map(c=>p.jsx(an,{"data-selected":c.getIsSelected()?"true":void 0,children:c.getVisibleCells().map(f=>p.jsx(On,{children:aa(f.column.columnDef.cell,f.getContext())},f.id))},c.id))})]})})}const Oc=u.forwardRef(Sb);Oc.displayName="DataTable";const _c=6048e5,Nb=864e5,Ac=Symbol.for("constructDateFrom");function ve(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ac in e?e[Ac](t):e instanceof Date?new e.constructor(t):new Date(t)}function fe(e,t){return ve(t||e,e)}function Ic(e,t,n){const r=fe(e,n==null?void 0:n.in);return isNaN(t)?ve(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Wc(e,t,n){const r=fe(e,n==null?void 0:n.in);if(isNaN(t))return ve(e,NaN);if(!t)return r;const o=r.getDate(),a=ve(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}let Mb={};function _n(){return Mb}function sn(e,t){var i,l,c,f;const n=_n(),r=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??0,o=fe(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?7:0)+a-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function An(e,t){return sn(e,{...t,weekStartsOn:1})}function Fc(e,t){const n=fe(e,t==null?void 0:t.in),r=n.getFullYear(),o=ve(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const a=An(o),s=ve(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const i=An(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function $c(e){const t=fe(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ln(e,...t){const n=ve.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function In(e,t){const n=fe(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function ua(e,t,n){const[r,o]=ln(n==null?void 0:n.in,e,t),a=In(r),s=In(o),i=+a-$c(a),l=+s-$c(s);return Math.round((i-l)/Nb)}function Eb(e,t){const n=Fc(e,t),r=ve(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),An(r)}function kb(e,t,n){return Ic(e,t*7,n)}function Db(e,t,n){return Wc(e,t*12,n)}function Tb(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ve.bind(null,o));const a=fe(o,r);(!n||n<a||isNaN(+a))&&(n=a)}),ve(r,n||NaN)}function Pb(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=ve.bind(null,o));const a=fe(o,r);(!n||n>a||isNaN(+a))&&(n=a)}),ve(r,n||NaN)}function Ob(e,t,n){const[r,o]=ln(n==null?void 0:n.in,e,t);return+In(r)==+In(o)}function Bc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _b(e){return!(!Bc(e)&&typeof e!="number"||isNaN(+fe(e)))}function Lc(e,t,n){const[r,o]=ln(n==null?void 0:n.in,e,t),a=r.getFullYear()-o.getFullYear(),s=r.getMonth()-o.getMonth();return a*12+s}function Ab(e,t){const n=fe(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Rc(e,t){const[n,r]=ln(e,t.start,t.end);return{start:n,end:r}}function Ib(e,t){const{start:n,end:r}=Rc(t==null?void 0:t.in,e);let o=+n>+r;const a=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setDate(1);let i=1;const l=[];for(;+s<=a;)l.push(ve(n,s)),s.setMonth(s.getMonth()+i);return o?l.reverse():l}function Wb(e,t){const n=fe(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Fb(e,t){const n=fe(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Yc(e,t){const n=fe(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function $b(e,t){const{start:n,end:r}=Rc(t==null?void 0:t.in,e);let o=+n>+r;const a=o?+n:+r,s=o?r:n;s.setHours(0,0,0,0),s.setMonth(0,1);let i=1;const l=[];for(;+s<=a;)l.push(ve(n,s)),s.setFullYear(s.getFullYear()+i);return o?l.reverse():l}function zc(e,t){var i,l,c,f;const n=_n(),r=(t==null?void 0:t.weekStartsOn)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??0,o=fe(e,t==null?void 0:t.in),a=o.getDay(),s=(a<r?-7:0)+6-(a-r);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function Bb(e,t){return zc(e,{...t,weekStartsOn:1})}const Lb={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"}},Rb=(e,t,n)=>{let r;const o=Lb[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function fa(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Yb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hb={date:fa({formats:Yb,defaultWidth:"full"}),time:fa({formats:zb,defaultWidth:"full"}),dateTime:fa({formats:Vb,defaultWidth:"full"})},Gb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jb=(e,t,n,r)=>Gb[e];function Wn(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=n!=null&&n.width?String(n.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const Ub={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Kb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qb={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"]},Xb={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"]},Zb={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"}},Qb={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"}},Jb={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Wn({values:Ub,defaultWidth:"wide"}),quarter:Wn({values:Kb,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Wn({values:qb,defaultWidth:"wide"}),day:Wn({values:Xb,defaultWidth:"wide"}),dayPeriod:Wn({values:Zb,defaultWidth:"wide",formattingValues:Qb,defaultFormattingWidth:"wide"})};function Fn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?ty(i,d=>d.test(s)):ey(i,d=>d.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const f=t.slice(s.length);return{value:c,rest:f}}}function ey(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ty(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ny(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const ry=/^(\d+)(th|st|nd|rd)?/i,oy=/\d+/i,ay={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},sy={any:[/^b/i,/^(a|c)/i]},iy={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ly={any:[/1/i,/2/i,/3/i,/4/i]},cy={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},dy={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]},uy={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},fy={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]},py={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},hy={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}},my={ordinalNumber:ny({matchPattern:ry,parsePattern:oy,valueCallback:e=>parseInt(e,10)}),era:Fn({matchPatterns:ay,defaultMatchWidth:"wide",parsePatterns:sy,defaultParseWidth:"any"}),quarter:Fn({matchPatterns:iy,defaultMatchWidth:"wide",parsePatterns:ly,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Fn({matchPatterns:cy,defaultMatchWidth:"wide",parsePatterns:dy,defaultParseWidth:"any"}),day:Fn({matchPatterns:uy,defaultMatchWidth:"wide",parsePatterns:fy,defaultParseWidth:"any"}),dayPeriod:Fn({matchPatterns:py,defaultMatchWidth:"any",parsePatterns:hy,defaultParseWidth:"any"})},cn={code:"en-US",formatDistance:Rb,formatLong:Hb,formatRelative:jb,localize:Jb,match:my,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gy(e,t){const n=fe(e,t==null?void 0:t.in);return ua(n,Yc(n))+1}function pa(e,t){const n=fe(e,t==null?void 0:t.in),r=+An(n)-+Eb(n);return Math.round(r/_c)+1}function Vc(e,t){var f,d,h,m;const n=fe(e,t==null?void 0:t.in),r=n.getFullYear(),o=_n(),a=(t==null?void 0:t.firstWeekContainsDate)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((m=(h=o.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,s=ve((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const i=sn(s,t),l=ve((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=sn(l,t);return+n>=+i?r+1:+n>=+c?r:r-1}function vy(e,t){var i,l,c,f;const n=_n(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(c=n.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??1,o=Vc(e,t),a=ve((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,r),a.setHours(0,0,0,0),sn(a,t)}function ha(e,t){const n=fe(e,t==null?void 0:t.in),r=+sn(n,t)-+vy(n,t);return Math.round(r/_c)+1}function ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Nt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ue(n+1,2)},d(e,t){return ue(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ue(e.getHours()%12||12,t.length)},H(e,t){return ue(e.getHours(),t.length)},m(e,t){return ue(e.getMinutes(),t.length)},s(e,t){return ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return ue(o,t.length)}},dn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hc={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Nt.y(e,t)},Y:function(e,t,n,r){const o=Vc(e,r),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return ue(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):ue(a,t.length)},R:function(e,t){const n=Fc(e);return ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return ue(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Nt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=ha(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):ue(o,t.length)},I:function(e,t,n){const r=pa(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Nt.d(e,t)},D:function(e,t,n){const r=gy(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ue(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ue(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ue(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return ue(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=dn.noon:r===0?o=dn.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=dn.evening:r>=12?o=dn.afternoon:r>=4?o=dn.morning:o=dn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Nt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Nt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Nt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Nt.s(e,t)},S:function(e,t){return Nt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return jc(r);case"XXXX":case"XX":return Ft(r);case"XXXXX":case"XXX":default:return Ft(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return jc(r);case"xxxx":case"xx":return Ft(r);case"xxxxx":case"xxx":default:return Ft(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Gc(r,":");case"OOOO":default:return"GMT"+Ft(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Gc(r,":");case"zzzz":default:return"GMT"+Ft(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ue(r,t.length)},T:function(e,t,n){return ue(+e,t.length)}};function Gc(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return a===0?n+String(o):n+String(o)+t+ue(a,2)}function jc(e,t){return e%60===0?(e>0?"-":"+")+ue(Math.abs(e)/60,2):Ft(e,t)}function Ft(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=ue(Math.trunc(r/60),2),a=ue(r%60,2);return n+o+t+a}const Uc=(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"});case"PPPP":default:return t.date({width:"full"})}},Kc=(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"});case"pppp":default:return t.time({width:"full"})}},by={p:Kc,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Uc(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Uc(r,t)).replace("{{time}}",Kc(o,t))}},yy=/^D+$/,wy=/^Y+$/,xy=["D","DD","YY","YYYY"];function Cy(e){return yy.test(e)}function Sy(e){return wy.test(e)}function Ny(e,t,n){const r=My(e,t,n);if(console.warn(r),xy.includes(e))throw new RangeError(r)}function My(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ey=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ky=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Dy=/^'([^]*?)'?$/,Ty=/''/g,Py=/[a-zA-Z]/;function un(e,t,n){var f,d,h,m,w,g,v,y;const r=_n(),o=(n==null?void 0:n.locale)??r.locale??cn,a=(n==null?void 0:n.firstWeekContainsDate)??((d=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((m=(h=r.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((g=(w=n==null?void 0:n.locale)==null?void 0:w.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((y=(v=r.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,i=fe(e,n==null?void 0:n.in);if(!_b(i))throw new RangeError("Invalid time value");let l=t.match(ky).map(b=>{const x=b[0];if(x==="p"||x==="P"){const N=by[x];return N(b,o.formatLong)}return b}).join("").match(Ey).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const x=b[0];if(x==="'")return{isToken:!1,value:Oy(b)};if(Hc[x])return{isToken:!0,value:b};if(x.match(Py))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:b}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return l.map(b=>{if(!b.isToken)return b.value;const x=b.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Sy(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Cy(x))&&Ny(x,t,String(e));const N=Hc[x[0]];return N(i,x,o.localize,c)}).join("")}function Oy(e){const t=e.match(Dy);return t?t[1].replace(Ty,"'"):e}function _y(e,t){const n=fe(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),a=ve(n,0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}function Ay(e,t){return fe(e,t==null?void 0:t.in).getMonth()}function Iy(e,t){return fe(e,t==null?void 0:t.in).getFullYear()}function Wy(e,t){return+fe(e)>+fe(t)}function Fy(e,t){return+fe(e)<+fe(t)}function $y(e,t,n){const[r,o]=ln(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function By(e,t,n){const[r,o]=ln(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()}function Ly(e,t,n){const r=fe(e,n==null?void 0:n.in),o=r.getFullYear(),a=r.getDate(),s=ve(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=_y(s);return r.setMonth(t,Math.min(a,i)),r}function Ry(e,t,n){const r=fe(e,n==null?void 0:n.in);return isNaN(+r)?ve(e,NaN):(r.setFullYear(t),r)}function Yy(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const ma={},$n={};function $t(e,t){try{const r=(ma[e]||(ma[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return r in $n?$n[r]:qc(r,r.split(":"))}catch{if(e in $n)return $n[e];const n=e==null?void 0:e.match(zy);return n?qc(e,n.slice(1)):NaN}}const zy=/([+-]\d\d):?(\d\d)?/;function qc(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return $n[e]=n*60+r>0?n*60+r+o:n*60-r-o}class rt extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN($t(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)),Zc(this),ga(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new rt(...n,t):new rt(Date.now(),t)}withTimeZone(t){return new rt(+this,t)}getTimezoneOffset(){const t=-$t(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),ga(this),+this}[Symbol.for("constructDateFrom")](t){return new rt(+new Date(t),this.timeZone)}}const Xc=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Xc.test(e))return;const t=e.replace(Xc,"$1UTC");rt.prototype[t]&&(e.startsWith("get")?rt.prototype[e]=function(){return this.internal[t]()}:(rt.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Vy(this),+this},rt.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),ga(this),+this}))});function ga(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-$t(e.timeZone,e)*60))}function Vy(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()),Zc(e)}function Zc(e){const t=$t(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),a=-new Date(+r).getTimezoneOffset(),s=o-a,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();s&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+s);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const c=new Date(+e);c.setUTCSeconds(0);const f=o>0?c.getSeconds():(c.getSeconds()-60)%60,d=Math.round(-($t(e.timeZone,e)*60))%60;(d||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+d+f));const h=$t(e.timeZone,e),m=h>0?Math.floor(h):Math.ceil(h),g=-new Date(+e).getTimezoneOffset()-m,v=m!==n,y=g-l;if(v&&y){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+y);const b=$t(e.timeZone,e),x=b>0?Math.floor(b):Math.ceil(b),N=m-x;N&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+N),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+N))}}class Ce extends rt{static tz(t,...n){return n.length?new Ce(...n,t):new Ce(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Yy(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Ce(+this,t)}[Symbol.for("constructDateFrom")](t){return new Ce(+new Date(t),this.timeZone)}}const Qc=5,Hy=4;function Gy(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),a=t.addDays(o,Qc*7-1);return t.getMonth(e)===t.getMonth(a)?Qc:Hy}function Jc(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function jy(e,t){const n=Jc(e,t),r=Gy(e,t);return t.addDays(n,r*7-1)}const ed={...cn,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(s,i)=>un(s,i,{locale:cn,...n});let a=o(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},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,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,a)=>un(o,a,{locale:cn,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(s,i)=>un(s,i,{locale:cn,...n});let a=o(e,"PPPP");return t!=null&&t.today&&(a=`Today, ${a}`),a},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,a)=>un(o,a,{locale:cn,...t}),r(e,"cccc")}}};class Ae{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?Ce.tz(this.options.timeZone):new this.Date},this.newDate=(r,o,a)=>{var s;return(s=this.overrides)!=null&&s.newDate?this.overrides.newDate(r,o,a):this.options.timeZone?new Ce(r,o,a,this.options.timeZone):new Date(r,o,a)},this.addDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addDays?this.overrides.addDays(r,o):Ic(r,o)},this.addMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addMonths?this.overrides.addMonths(r,o):Wc(r,o)},this.addWeeks=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addWeeks?this.overrides.addWeeks(r,o):kb(r,o)},this.addYears=(r,o)=>{var a;return(a=this.overrides)!=null&&a.addYears?this.overrides.addYears(r,o):Db(r,o)},this.differenceInCalendarDays=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):ua(r,o)},this.differenceInCalendarMonths=(r,o)=>{var a;return(a=this.overrides)!=null&&a.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Lc(r,o)},this.eachMonthOfInterval=r=>{var o;return(o=this.overrides)!=null&&o.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):Ib(r)},this.eachYearOfInterval=r=>{var i;const o=(i=this.overrides)!=null&&i.eachYearOfInterval?this.overrides.eachYearOfInterval(r):$b(r),a=new Set(o.map(l=>this.getYear(l)));if(a.size===o.length)return o;const s=[];return a.forEach(l=>{s.push(new Date(l,0,1))}),s},this.endOfBroadcastWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):jy(r,this)},this.endOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfISOWeek?this.overrides.endOfISOWeek(r):Bb(r)},this.endOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.endOfMonth?this.overrides.endOfMonth(r):Ab(r)},this.endOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.endOfWeek?this.overrides.endOfWeek(r,o):zc(r,this.options)},this.endOfYear=r=>{var o;return(o=this.overrides)!=null&&o.endOfYear?this.overrides.endOfYear(r):Fb(r)},this.format=(r,o,a)=>{var i;const s=(i=this.overrides)!=null&&i.format?this.overrides.format(r,o,this.options):un(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.getISOWeek?this.overrides.getISOWeek(r):pa(r)},this.getMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getMonth?this.overrides.getMonth(r,this.options):Ay(r,this.options)},this.getYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getYear?this.overrides.getYear(r,this.options):Iy(r,this.options)},this.getWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.getWeek?this.overrides.getWeek(r,this.options):ha(r,this.options)},this.isAfter=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isAfter?this.overrides.isAfter(r,o):Wy(r,o)},this.isBefore=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isBefore?this.overrides.isBefore(r,o):Fy(r,o)},this.isDate=r=>{var o;return(o=this.overrides)!=null&&o.isDate?this.overrides.isDate(r):Bc(r)},this.isSameDay=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameDay?this.overrides.isSameDay(r,o):Ob(r,o)},this.isSameMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameMonth?this.overrides.isSameMonth(r,o):$y(r,o)},this.isSameYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.isSameYear?this.overrides.isSameYear(r,o):By(r,o)},this.max=r=>{var o;return(o=this.overrides)!=null&&o.max?this.overrides.max(r):Tb(r)},this.min=r=>{var o;return(o=this.overrides)!=null&&o.min?this.overrides.min(r):Pb(r)},this.setMonth=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setMonth?this.overrides.setMonth(r,o):Ly(r,o)},this.setYear=(r,o)=>{var a;return(a=this.overrides)!=null&&a.setYear?this.overrides.setYear(r,o):Ry(r,o)},this.startOfBroadcastWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Jc(r,this)},this.startOfDay=r=>{var o;return(o=this.overrides)!=null&&o.startOfDay?this.overrides.startOfDay(r):In(r)},this.startOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfISOWeek?this.overrides.startOfISOWeek(r):An(r)},this.startOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.startOfMonth?this.overrides.startOfMonth(r):Wb(r)},this.startOfWeek=(r,o)=>{var a;return(a=this.overrides)!=null&&a.startOfWeek?this.overrides.startOfWeek(r,this.options):sn(r,this.options)},this.startOfYear=r=>{var o;return(o=this.overrides)!=null&&o.startOfYear?this.overrides.startOfYear(r):Yc(r)},this.options={locale:ed,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){var n;const t=(n=this.options.locale)==null?void 0:n.code;return t&&Ae.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,a=n==null?void 0:n.code;if(a&&Ae.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,s)}}Ae.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 ot=new Ae;class td{constructor(t,n,r=ot){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class Uy{constructor(t,n){this.date=t,this.weeks=n}}class Ky{constructor(t,n){this.days=n,this.weekNumber=t}}function qy(e){return S.createElement("button",{...e})}function Xy(e){return S.createElement("span",{...e})}function Zy(e){const{size:t=24,orientation:n="left",className:r}=e;return S.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&S.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&S.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&S.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&S.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Qy(e){const{day:t,modifiers:n,...r}=e;return S.createElement("td",{...r})}function Jy(e){const{day:t,modifiers:n,...r}=e,o=S.useRef(null);return S.useEffect(()=>{var a;n.focused&&((a=o.current)==null||a.focus())},[n.focused]),S.createElement("button",{ref:o,...r})}var q;(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"})(q||(q={}));var he;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(he||(he={}));var je;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(je||(je={}));var Ie;(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"})(Ie||(Ie={}));function ew(e){const{options:t,className:n,components:r,classNames:o,...a}=e,s=[o[q.Dropdown],n].join(" "),i=t==null?void 0:t.find(({value:l})=>l===a.value);return S.createElement("span",{"data-disabled":a.disabled,className:o[q.DropdownRoot]},S.createElement(r.Select,{className:s,...a},t==null?void 0:t.map(({value:l,label:c,disabled:f})=>S.createElement(r.Option,{key:l,value:l,disabled:f},c))),S.createElement("span",{className:o[q.CaptionLabel],"aria-hidden":!0},i==null?void 0:i.label,S.createElement(r.Chevron,{orientation:"down",size:18,className:o[q.Chevron]})))}function tw(e){return S.createElement("div",{...e})}function nw(e){return S.createElement("div",{...e})}function rw(e){const{calendarMonth:t,displayIndex:n,...r}=e;return S.createElement("div",{...r},e.children)}function ow(e){const{calendarMonth:t,displayIndex:n,...r}=e;return S.createElement("div",{...r})}function aw(e){return S.createElement("table",{...e})}function sw(e){return S.createElement("div",{...e})}const nd=S.createContext(void 0);function Bn(){const e=S.useContext(nd);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function iw(e){const{components:t}=Bn();return S.createElement(t.Dropdown,{...e})}function lw(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...a}=e,{components:s,classNames:i,labels:{labelPrevious:l,labelNext:c}}=Bn(),f=S.useCallback(h=>{o&&(n==null||n(h))},[o,n]),d=S.useCallback(h=>{r&&(t==null||t(h))},[r,t]);return S.createElement("nav",{...a},S.createElement(s.PreviousMonthButton,{type:"button",className:i[q.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:d},S.createElement(s.Chevron,{disabled:r?void 0:!0,className:i[q.Chevron],orientation:"left"})),S.createElement(s.NextMonthButton,{type:"button",className:i[q.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":c(o),onClick:f},S.createElement(s.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[q.Chevron]})))}function cw(e){const{components:t}=Bn();return S.createElement(t.Button,{...e})}function dw(e){return S.createElement("option",{...e})}function uw(e){const{components:t}=Bn();return S.createElement(t.Button,{...e})}function fw(e){const{rootRef:t,...n}=e;return S.createElement("div",{...n,ref:t})}function pw(e){return S.createElement("select",{...e})}function hw(e){const{week:t,...n}=e;return S.createElement("tr",{...n})}function mw(e){return S.createElement("th",{...e})}function gw(e){return S.createElement("thead",{"aria-hidden":!0},S.createElement("tr",{...e}))}function vw(e){const{week:t,...n}=e;return S.createElement("th",{...n})}function bw(e){return S.createElement("th",{...e})}function yw(e){return S.createElement("tbody",{...e})}function ww(e){const{components:t}=Bn();return S.createElement(t.Dropdown,{...e})}const xw=Object.freeze(Object.defineProperty({__proto__:null,Button:qy,CaptionLabel:Xy,Chevron:Zy,Day:Qy,DayButton:Jy,Dropdown:ew,DropdownNav:tw,Footer:nw,Month:rw,MonthCaption:ow,MonthGrid:aw,Months:sw,MonthsDropdown:iw,Nav:lw,NextMonthButton:cw,Option:dw,PreviousMonthButton:uw,Root:fw,Select:pw,Week:hw,WeekNumber:vw,WeekNumberHeader:bw,Weekday:mw,Weekdays:gw,Weeks:yw,YearsDropdown:ww},Symbol.toStringTag,{value:"Module"}));function pt(e,t,n=!1,r=ot){let{from:o,to:a}=e;const{differenceInCalendarDays:s,isSameDay:i}=r;return o&&a?(s(a,o)<0&&([o,a]=[a,o]),s(t,o)>=(n?1:0)&&s(a,t)>=(n?1:0)):!n&&a?i(a,t):!n&&o?i(o,t):!1}function va(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Wr(e){return!!(e&&typeof e=="object"&&"from"in e)}function ba(e){return!!(e&&typeof e=="object"&&"after"in e)}function ya(e){return!!(e&&typeof e=="object"&&"before"in e)}function rd(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function od(e,t){return Array.isArray(e)&&e.every(t.isDate)}function ht(e,t,n=ot){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:a,isAfter:s}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(od(i,n))return i.some(l=>o(e,l));if(Wr(i))return pt(i,e,!1,n);if(rd(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(va(i)){const l=a(i.before,e),c=a(i.after,e),f=l>0,d=c<0;return s(i.before,i.after)?d&&f:f||d}return ba(i)?a(e,i.after)>0:ya(i)?a(i.before,e)>0:typeof i=="function"?i(e):!1})}function Cw(e,t,n,r,o){const{disabled:a,hidden:s,modifiers:i,showOutsideDays:l,broadcastCalendar:c,today:f=o.today()}=t,{isSameDay:d,isSameMonth:h,startOfMonth:m,isBefore:w,endOfMonth:g,isAfter:v}=o,y=n&&m(n),b=r&&g(r),x={[he.focused]:[],[he.outside]:[],[he.disabled]:[],[he.hidden]:[],[he.today]:[]},N={};for(const M of e){const{date:C,displayMonth:E}=M,T=!!(E&&!h(C,E)),R=!!(y&&w(C,y)),F=!!(b&&v(C,b)),H=!!(a&&ht(C,a,o)),$=!!(s&&ht(C,s,o))||R||F||!c&&!l&&T||c&&l===!1&&T,j=d(C,f);T&&x.outside.push(M),H&&x.disabled.push(M),$&&x.hidden.push(M),j&&x.today.push(M),i&&Object.keys(i).forEach(V=>{const ne=i==null?void 0:i[V];ne&&ht(C,ne,o)&&(N[V]?N[V].push(M):N[V]=[M])})}return M=>{const C={[he.focused]:!1,[he.disabled]:!1,[he.hidden]:!1,[he.outside]:!1,[he.today]:!1},E={};for(const T in x){const R=x[T];C[T]=R.some(F=>F===M)}for(const T in N)E[T]=N[T].some(R=>R===M);return{...C,...E}}}function Sw(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[a])=>(n[a]?o.push(n[a]):t[he[a]]?o.push(t[he[a]]):t[je[a]]&&o.push(t[je[a]]),o),[t[q.Day]])}function Nw(e){return{...xw,...e}}function Mw(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(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function Ew(){const e={};for(const t in q)e[q[t]]=`rdp-${q[t]}`;for(const t in he)e[he[t]]=`rdp-${he[t]}`;for(const t in je)e[je[t]]=`rdp-${je[t]}`;for(const t in Ie)e[Ie[t]]=`rdp-${Ie[t]}`;return e}function ad(e,t,n){return(n??new Ae(t)).formatMonthYear(e)}const kw=ad;function Dw(e,t,n){return(n??new Ae(t)).format(e,"d")}function Tw(e,t=ot){return t.format(e,"LLLL")}function Pw(e,t,n){return(n??new Ae(t)).format(e,"cccccc")}function Ow(e,t=ot){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function _w(){return""}function sd(e,t=ot){return t.format(e,"yyyy")}const Aw=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:ad,formatDay:Dw,formatMonthCaption:kw,formatMonthDropdown:Tw,formatWeekNumber:Ow,formatWeekNumberHeader:_w,formatWeekdayName:Pw,formatYearCaption:sd,formatYearDropdown:sd},Symbol.toStringTag,{value:"Module"}));function Iw(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Aw,...e}}function wa(e,t,n,r){let o=(r??new Ae(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Ww=wa;function xa(e,t,n){return(n??new Ae(t)).formatMonthYear(e)}const Fw=xa;function id(e,t,n,r){let o=(r??new Ae(n)).format(e,"PPPP");return t!=null&&t.today&&(o=`Today, ${o}`),o}function ld(e){return"Choose the Month"}function cd(){return""}const $w="Go to the Next Month";function dd(e,t){return $w}function ud(e){return"Go to the Previous Month"}function fd(e,t,n){return(n??new Ae(t)).format(e,"cccc")}function pd(e,t){return`Week ${e}`}function hd(e){return"Week Number"}function md(e){return"Choose the Year"}const Bw=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Fw,labelDay:Ww,labelDayButton:wa,labelGrid:xa,labelGridcell:id,labelMonthDropdown:ld,labelNav:cd,labelNext:dd,labelPrevious:ud,labelWeekNumber:pd,labelWeekNumberHeader:hd,labelWeekday:fd,labelYearDropdown:md},Symbol.toStringTag,{value:"Module"})),Ue=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function Lw(e,t){var r;const n=((r=t.locale)==null?void 0:r.labels)??{};return{...Bw,...e??{},labelDayButton:Ue(wa,e==null?void 0:e.labelDayButton,n.labelDayButton),labelMonthDropdown:Ue(ld,e==null?void 0:e.labelMonthDropdown,n.labelMonthDropdown),labelNext:Ue(dd,e==null?void 0:e.labelNext,n.labelNext),labelPrevious:Ue(ud,e==null?void 0:e.labelPrevious,n.labelPrevious),labelWeekNumber:Ue(pd,e==null?void 0:e.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Ue(md,e==null?void 0:e.labelYearDropdown,n.labelYearDropdown),labelGrid:Ue(xa,e==null?void 0:e.labelGrid,n.labelGrid),labelGridcell:Ue(id,e==null?void 0:e.labelGridcell,n.labelGridcell),labelNav:Ue(cd,e==null?void 0:e.labelNav,n.labelNav),labelWeekNumberHeader:Ue(hd,e==null?void 0:e.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Ue(fd,e==null?void 0:e.labelWeekday,n.labelWeekday)}}function Rw(e,t,n,r,o){const{startOfMonth:a,startOfYear:s,endOfYear:i,eachMonthOfInterval:l,getMonth:c}=o;return l({start:s(e),end:i(e)}).map(h=>{const m=r.formatMonthDropdown(h,o),w=c(h),g=t&&h<a(t)||n&&h>a(n)||!1;return{value:w,label:m,disabled:g}})}function Yw(e,t={},n={}){let r={...t==null?void 0:t[q.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n==null?void 0:n[o]}}),r}function zw(e,t,n,r){const o=r??e.today(),a=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),s=[];for(let i=0;i<7;i++){const l=e.addDays(a,i);s.push(l)}return s}function Vw(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:a,endOfYear:s,eachYearOfInterval:i,getYear:l}=r,c=a(e),f=s(t),d=i({start:c,end:f});return o&&d.reverse(),d.map(h=>{const m=n.formatYearDropdown(h,r);return{value:l(h),label:m,disabled:!1}})}function Hw(e,t={}){var i;const{weekStartsOn:n,locale:r}=t,o=n??((i=r==null?void 0:r.options)==null?void 0:i.weekStartsOn)??0,a=l=>{const c=typeof l=="number"||typeof l=="string"?new Date(l):l;return new Ce(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},s=l=>{const c=a(l);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>a(Ce.tz(e)),newDate:(l,c,f)=>new Ce(l,c,f,12,0,0,e),startOfDay:l=>a(l),startOfWeek:(l,c)=>{const f=a(l),d=(c==null?void 0:c.weekStartsOn)??o,h=(f.getDay()-d+7)%7;return f.setDate(f.getDate()-h),f},startOfISOWeek:l=>{const c=a(l),f=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-f),c},startOfMonth:l=>{const c=a(l);return c.setDate(1),c},startOfYear:l=>{const c=a(l);return c.setMonth(0,1),c},endOfWeek:(l,c)=>{const f=a(l),m=((((c==null?void 0:c.weekStartsOn)??o)+6)%7-f.getDay()+7)%7;return f.setDate(f.getDate()+m),f},endOfISOWeek:l=>{const c=a(l),f=(7-c.getDay())%7;return c.setDate(c.getDate()+f),c},endOfMonth:l=>{const c=a(l);return c.setMonth(c.getMonth()+1,0),c},endOfYear:l=>{const c=a(l);return c.setMonth(11,31),c},eachMonthOfInterval:l=>{const c=a(l.start),f=a(l.end),d=[],h=new Ce(c.getFullYear(),c.getMonth(),1,12,0,0,e),m=f.getFullYear()*12+f.getMonth();for(;h.getFullYear()*12+h.getMonth()<=m;)d.push(new Ce(h,e)),h.setMonth(h.getMonth()+1,1);return d},addDays:(l,c)=>{const f=a(l);return f.setDate(f.getDate()+c),f},addWeeks:(l,c)=>{const f=a(l);return f.setDate(f.getDate()+c*7),f},addMonths:(l,c)=>{const f=a(l);return f.setMonth(f.getMonth()+c),f},addYears:(l,c)=>{const f=a(l);return f.setFullYear(f.getFullYear()+c),f},eachYearOfInterval:l=>{const c=a(l.start),f=a(l.end),d=[],h=new Ce(c.getFullYear(),0,1,12,0,0,e);for(;h.getFullYear()<=f.getFullYear();)d.push(new Ce(h,e)),h.setFullYear(h.getFullYear()+1,0,1);return d},getWeek:(l,c)=>{var d;const f=s(l);return ha(f,{weekStartsOn:(c==null?void 0:c.weekStartsOn)??o,firstWeekContainsDate:(c==null?void 0:c.firstWeekContainsDate)??((d=r==null?void 0:r.options)==null?void 0:d.firstWeekContainsDate)??1})},getISOWeek:l=>{const c=s(l);return pa(c)},differenceInCalendarDays:(l,c)=>{const f=s(l),d=s(c);return ua(f,d)},differenceInCalendarMonths:(l,c)=>{const f=s(l),d=s(c);return Lc(f,d)}}}const Ln=e=>e instanceof HTMLElement?e:null,Ca=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Gw=e=>Ln(e.querySelector("[data-animated-month]")),Sa=e=>Ln(e.querySelector("[data-animated-caption]")),Na=e=>Ln(e.querySelector("[data-animated-weeks]")),jw=e=>Ln(e.querySelector("[data-animated-nav]")),Uw=e=>Ln(e.querySelector("[data-animated-weekdays]"));function Kw(e,t,{classNames:n,months:r,focused:o,dateLib:a}){const s=S.useRef(null),i=S.useRef(r),l=S.useRef(!1);S.useLayoutEffect(()=>{const c=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||c.length===0||r.length!==c.length)return;const f=a.isSameMonth(r[0].date,c[0].date),d=a.isAfter(r[0].date,c[0].date),h=d?n[Ie.caption_after_enter]:n[Ie.caption_before_enter],m=d?n[Ie.weeks_after_enter]:n[Ie.weeks_before_enter],w=s.current,g=e.current.cloneNode(!0);if(g instanceof HTMLElement?(Ca(g).forEach(x=>{if(!(x instanceof HTMLElement))return;const N=Gw(x);N&&x.contains(N)&&x.removeChild(N);const M=Sa(x);M&&M.classList.remove(h);const C=Na(x);C&&C.classList.remove(m)}),s.current=g):s.current=null,l.current||f||o)return;const v=w instanceof HTMLElement?Ca(w):[],y=Ca(e.current);if(y!=null&&y.every(b=>b instanceof HTMLElement)&&v&&v.every(b=>b instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const b=jw(e.current);b&&(b.style.zIndex="1"),y.forEach((x,N)=>{const M=v[N];if(!M)return;x.style.position="relative",x.style.overflow="hidden";const C=Sa(x);C&&C.classList.add(h);const E=Na(x);E&&E.classList.add(m);const T=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),b&&(b.style.zIndex=""),C&&C.classList.remove(h),E&&E.classList.remove(m),x.style.position="",x.style.overflow="",x.contains(M)&&x.removeChild(M)};M.style.pointerEvents="none",M.style.position="absolute",M.style.overflow="hidden",M.setAttribute("aria-hidden","true");const R=Uw(M);R&&(R.style.opacity="0");const F=Sa(M);F&&(F.classList.add(d?n[Ie.caption_before_exit]:n[Ie.caption_after_exit]),F.addEventListener("animationend",T));const H=Na(M);H&&H.classList.add(d?n[Ie.weeks_before_exit]:n[Ie.weeks_after_exit]),x.insertBefore(M,x.firstChild)})}})}function qw(e,t,n,r){const o=e[0],a=e[e.length-1],{ISOWeek:s,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:f,differenceInCalendarMonths:d,endOfBroadcastWeek:h,endOfISOWeek:m,endOfMonth:w,endOfWeek:g,isAfter:v,startOfBroadcastWeek:y,startOfISOWeek:b,startOfWeek:x}=r,N=l?y(o,r):s?b(o):x(o),M=l?h(a):s?m(w(a)):g(w(a)),C=t&&(l?h(t):s?m(t):g(t)),E=C&&v(M,C)?C:M,T=f(E,N),R=d(a,o)+1,F=[];for(let j=0;j<=T;j++){const V=c(N,j);F.push(V)}const $=(l?35:42)*R;if(i&&F.length<$){const j=$-F.length;for(let V=0;V<j;V++){const ne=c(F[F.length-1],1);F.push(ne)}}return F}function Xw(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((a,s)=>a.concat(s.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function Zw(e,t,n,r){const{numberOfMonths:o=1}=n,a=[];for(let s=0;s<o;s++){const i=r.addMonths(e,s);if(t&&i>t)break;a.push(i)}return a}function gd(e,t,n,r){const{month:o,defaultMonth:a,today:s=r.today(),numberOfMonths:i=1}=e;let l=o||a||s;const{differenceInCalendarMonths:c,addMonths:f,startOfMonth:d}=r;if(n&&c(n,l)<i-1){const h=-1*(i-1);l=f(n,h)}return t&&c(l,t)<0&&(l=t),d(l)}function Qw(e,t,n,r){const{addDays:o,endOfBroadcastWeek:a,endOfISOWeek:s,endOfMonth:i,endOfWeek:l,getISOWeek:c,getWeek:f,startOfBroadcastWeek:d,startOfISOWeek:h,startOfWeek:m}=r,w=e.reduce((g,v)=>{const y=n.broadcastCalendar?d(v,r):n.ISOWeek?h(v):m(v),b=n.broadcastCalendar?a(v):n.ISOWeek?s(i(v)):l(i(v)),x=t.filter(E=>E>=y&&E<=b),N=n.broadcastCalendar?35:42;if(n.fixedWeeks&&x.length<N){const E=t.filter(T=>{const R=N-x.length;return T>b&&T<=o(b,R)});x.push(...E)}const M=x.reduce((E,T)=>{const R=n.ISOWeek?c(T):f(T),F=E.find($=>$.weekNumber===R),H=new td(T,v,r);return F?F.days.push(H):E.push(new Ky(R,[H])),E},[]),C=new Uy(v,M);return g.push(C),g},[]);return n.reverseMonths?w.reverse():w}function Jw(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:a,startOfMonth:s,endOfMonth:i,addYears:l,endOfYear:c,newDate:f,today:d}=t,{fromYear:h,toYear:m,fromMonth:w,toMonth:g}=e;!n&&w&&(n=w),!n&&h&&(n=t.newDate(h,0,1)),!r&&g&&(r=g),!r&&m&&(r=f(m,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=s(n):h?n=f(h,0,1):!n&&v&&(n=o(l(e.today??d(),-100))),r?r=i(r):m?r=f(m,11,31):!r&&v&&(r=c(e.today??d())),[n&&a(n),r&&a(r)]}function e0(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a=1}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,c=o?a:1,f=s(e);if(!t)return i(f,c);if(!(l(t,e)<a))return i(f,c)}function t0(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:a}=n,{startOfMonth:s,addMonths:i,differenceInCalendarMonths:l}=r,c=o?a??1:1,f=s(e);if(!t)return i(f,-c);if(!(l(f,t)<=0))return i(f,-c)}function n0(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Fr(e,t){const[n,r]=S.useState(e);return[t===void 0?n:t,r]}function r0(e,t){var N;const[n,r]=Jw(e,t),{startOfMonth:o,endOfMonth:a}=t,s=gd(e,n,r,t),[i,l]=Fr(s,e.month?s:void 0);S.useEffect(()=>{const M=gd(e,n,r,t);l(M)},[e.timeZone]);const{months:c,weeks:f,days:d,previousMonth:h,nextMonth:m}=S.useMemo(()=>{const M=Zw(i,r,{numberOfMonths:e.numberOfMonths},t),C=qw(M,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),E=Qw(M,C,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),T=n0(E),R=Xw(E),F=t0(i,n,e,t),H=e0(i,r,e,t);return{months:E,weeks:T,days:R,previousMonth:F,nextMonth:H}},[t,i.getTime(),r==null?void 0:r.getTime(),n==null?void 0:n.getTime(),e.disableNavigation,e.broadcastCalendar,(N=e.endMonth)==null?void 0:N.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:w,onMonthChange:g}=e,v=M=>f.some(C=>C.days.some(E=>E.isEqualTo(M))),y=M=>{if(w)return;let C=o(M);n&&C<o(n)&&(C=o(n)),r&&C>o(r)&&(C=o(r)),l(C),g==null||g(C)};return{months:c,weeks:f,days:d,navStart:n,navEnd:r,previousMonth:h,nextMonth:m,goToMonth:y,goToDay:M=>{v(M)||y(M.date)}}}var at;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(at||(at={}));function vd(e){return!e[he.disabled]&&!e[he.hidden]&&!e[he.outside]}function o0(e,t,n,r){let o,a=-1;for(const s of e){const i=t(s);vd(i)&&(i[he.focused]&&a<at.FocusedModifier?(o=s,a=at.FocusedModifier):r!=null&&r.isEqualTo(s)&&a<at.LastFocused?(o=s,a=at.LastFocused):n(s.date)&&a<at.Selected?(o=s,a=at.Selected):i[he.today]&&a<at.Today&&(o=s,a=at.Today))}return o||(o=e.find(s=>vd(t(s)))),o}function a0(e,t,n,r,o,a,s){const{ISOWeek:i,broadcastCalendar:l}=a,{addDays:c,addMonths:f,addWeeks:d,addYears:h,endOfBroadcastWeek:m,endOfISOWeek:w,endOfWeek:g,max:v,min:y,startOfBroadcastWeek:b,startOfISOWeek:x,startOfWeek:N}=s;let C={day:c,week:d,month:f,year:h,startOfWeek:E=>l?b(E,s):i?x(E):N(E),endOfWeek:E=>l?m(E):i?w(E):g(E)}[e](n,t==="after"?1:-1);return t==="before"&&r?C=v([r,C]):t==="after"&&o&&(C=y([o,C])),C}function bd(e,t,n,r,o,a,s,i=0){if(i>365)return;const l=a0(e,t,n.date,r,o,a,s),c=!!(a.disabled&&ht(l,a.disabled,s)),f=!!(a.hidden&&ht(l,a.hidden,s)),d=l,h=new td(l,d,s);return!c&&!f?h:bd(e,t,h,r,o,a,s,i+1)}function s0(e,t,n,r,o){const{autoFocus:a}=e,[s,i]=S.useState(),l=o0(t.days,n,r||(()=>!1),s),[c,f]=S.useState(a?l:void 0);return{isFocusTarget:g=>!!(l!=null&&l.isEqualTo(g)),setFocused:f,focused:c,blur:()=>{i(c),f(void 0)},moveFocus:(g,v)=>{if(!c)return;const y=bd(g,v,c,t.navStart,t.navEnd,e,o);y&&(e.disableNavigation&&!t.days.some(x=>x.isEqualTo(y))||(t.goToDay(y),f(y)))}}}function i0(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=Fr(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t,c=m=>(i==null?void 0:i.some(w=>l(w,m)))??!1,{min:f,max:d}=e;return{selected:i,select:(m,w,g)=>{let v=[...i??[]];if(c(m)){if((i==null?void 0:i.length)===f||r&&(i==null?void 0:i.length)===1)return;v=i==null?void 0:i.filter(y=>!l(y,m))}else(i==null?void 0:i.length)===d?v=[m]:v=[...v,m];return o||s(v),o==null||o(v,m,w,g),v},isSelected:c}}function l0(e,t,n=0,r=0,o=!1,a=ot){const{from:s,to:i}=t||{},{isSameDay:l,isAfter:c,isBefore:f}=a;let d;if(!s&&!i)d={from:e,to:n>0?void 0:e};else if(s&&!i)l(s,e)?n===0?d={from:s,to:e}:o?d={from:s,to:void 0}:d=void 0:f(e,s)?d={from:e,to:s}:d={from:s,to:e};else if(s&&i)if(l(s,e)&&l(i,e))o?d={from:s,to:i}:d=void 0;else if(l(s,e))d={from:s,to:n>0?void 0:e};else if(l(i,e))d={from:e,to:n>0?void 0:e};else if(f(e,s))d={from:e,to:i};else if(c(e,s))d={from:s,to:e};else if(c(e,i))d={from:s,to:e};else throw new Error("Invalid range");if(d!=null&&d.from&&(d!=null&&d.to)){const h=a.differenceInCalendarDays(d.to,d.from);r>0&&h>r?d={from:e,to:void 0}:n>1&&h<n&&(d={from:e,to:void 0})}return d}function c0(e,t,n=ot){const r=Array.isArray(t)?t:[t];let o=e.from;const a=n.differenceInCalendarDays(e.to,e.from),s=Math.min(a,6);for(let i=0;i<=s;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function yd(e,t,n=ot){return pt(e,t.from,!1,n)||pt(e,t.to,!1,n)||pt(t,e.from,!1,n)||pt(t,e.to,!1,n)}function d0(e,t,n=ot){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?pt(e,i,!1,n):od(i,n)?i.some(l=>pt(e,l,!1,n)):Wr(i)?i.from&&i.to?yd(e,{from:i.from,to:i.to},n):!1:rd(i)?c0(e,i.dayOfWeek,n):va(i)?n.isAfter(i.before,i.after)?yd(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):ht(e.from,i,n)||ht(e.to,i,n):ba(i)||ya(i)?ht(e.from,i,n)||ht(e.to,i,n):!1))return!0;const s=r.filter(i=>typeof i=="function");if(s.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let c=0;c<=l;c++){if(s.some(f=>f(i)))return!0;i=n.addDays(i,1)}}return!1}function u0(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:o,selected:a,required:s,onSelect:i}=e,[l,c]=Fr(a,i?a:void 0),f=i?a:l;return{selected:f,select:(m,w,g)=>{const{min:v,max:y}=e;let b;if(m){const x=f==null?void 0:f.from,N=f==null?void 0:f.to,M=!!x&&!!N,C=!!x&&!!N&&t.isSameDay(x,N)&&t.isSameDay(m,x);o&&(M||!(f!=null&&f.from))?!s&&C?b=void 0:b={from:m,to:void 0}:b=l0(m,f,v,y,s,t)}return r&&n&&(b!=null&&b.from)&&b.to&&d0({from:b.from,to:b.to},n,t)&&(b.from=m,b.to=void 0),i||c(b),i==null||i(b,m,w,g),b},isSelected:m=>f&&pt(f,m,!1,t)}}function f0(e,t){const{selected:n,required:r,onSelect:o}=e,[a,s]=Fr(n,o?n:void 0),i=o?n:a,{isSameDay:l}=t;return{selected:i,select:(d,h,m)=>{let w=d;return!r&&i&&i&&l(d,i)&&(w=void 0),o||s(w),o==null||o(w,d,h,m),w},isSelected:d=>i?l(i,d):!1}}function p0(e,t){const n=f0(e,t),r=i0(e,t),o=u0(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function Le(e,t){return e instanceof Ce&&e.timeZone===t?e:new Ce(e,t)}function fn(e,t,n){return Le(e,t)}function wd(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?fn(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?fn(r,t):r):Wr(e)?{...e,from:e.from?Le(e.from,t):e.from,to:e.to?Le(e.to,t):e.to}:va(e)?{before:fn(e.before,t),after:fn(e.after,t)}:ba(e)?{after:fn(e.after,t)}:ya(e)?{before:fn(e.before,t)}:e}function Ma(e,t,n){return e&&(Array.isArray(e)?e.map(r=>wd(r,t)):wd(e,t))}function h0(e){var qe;let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Le(t.today,n)),t.month&&(t.month=Le(t.month,n)),t.defaultMonth&&(t.defaultMonth=Le(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Le(t.startMonth,n)),t.endMonth&&(t.endMonth=Le(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Le(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=(qe=t.selected)==null?void 0:qe.map(oe=>Le(oe,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Le(t.selected.from,n):t.selected.from,to:t.selected.to?Le(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Ma(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Ma(t.hidden,n)),t.modifiers)){const oe={};Object.keys(t.modifiers).forEach(de=>{var ee;oe[de]=Ma((ee=t.modifiers)==null?void 0:ee[de],n)}),t.modifiers=oe}const{components:r,formatters:o,labels:a,dateLib:s,locale:i,classNames:l}=S.useMemo(()=>{const oe={...ed,...t.locale},de=t.broadcastCalendar?1:t.weekStartsOn,ee=t.noonSafe&&t.timeZone?Hw(t.timeZone,{weekStartsOn:de,locale:oe}):void 0,le=t.dateLib&&ee?{...ee,...t.dateLib}:t.dateLib??ee,X=new Ae({locale:oe,weekStartsOn:de,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},le);return{dateLib:X,components:Nw(t.components),formatters:Iw(t.formatters),labels:Lw(t.labels,X.options),locale:oe,classNames:{...Ew(),...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:s.today()});const{captionLayout:c,mode:f,navLayout:d,numberOfMonths:h=1,onDayBlur:m,onDayClick:w,onDayFocus:g,onDayKeyDown:v,onDayMouseEnter:y,onDayMouseLeave:b,onNextClick:x,onPrevClick:N,showWeekNumber:M,styles:C}=t,{formatCaption:E,formatDay:T,formatMonthDropdown:R,formatWeekNumber:F,formatWeekNumberHeader:H,formatWeekdayName:$,formatYearDropdown:j}=o,V=r0(t,s),{days:ne,months:W,navStart:G,navEnd:Y,previousMonth:P,nextMonth:U,goToMonth:te}=V,D=Cw(ne,t,G,Y,s),{isSelected:_,select:B,selected:A}=p0(t,s)??{},{blur:K,focused:I,isFocusTarget:z,moveFocus:J,setFocused:re}=s0(t,V,D,_??(()=>!1),s),{labelDayButton:ie,labelGridcell:se,labelGrid:xe,labelMonthDropdown:Ne,labelNav:it,labelPrevious:lt,labelNext:We,labelWeekday:mn,labelWeekNumber:Me,labelWeekNumberHeader:Ss,labelYearDropdown:Ns}=a,ke=S.useMemo(()=>zw(s,t.ISOWeek,t.broadcastCalendar,t.today),[s,t.ISOWeek,t.broadcastCalendar,t.today]),mt=f!==void 0||w!==void 0,Xn=S.useCallback(()=>{P&&(te(P),N==null||N(P))},[P,te,N]),Zn=S.useCallback(()=>{U&&(te(U),x==null||x(U))},[te,U,x]),gn=S.useCallback((oe,de)=>ee=>{ee.preventDefault(),ee.stopPropagation(),re(oe),!de.disabled&&(B==null||B(oe.date,de,ee),w==null||w(oe.date,de,ee))},[B,w,re]),Ms=S.useCallback((oe,de)=>ee=>{re(oe),g==null||g(oe.date,de,ee)},[g,re]),Xr=S.useCallback((oe,de)=>ee=>{K(),m==null||m(oe.date,de,ee)},[K,m]),Qn=S.useCallback((oe,de)=>ee=>{const le={ArrowLeft:[ee.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[ee.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[ee.shiftKey?"year":"week","after"],ArrowUp:[ee.shiftKey?"year":"week","before"],PageUp:[ee.shiftKey?"year":"month","before"],PageDown:[ee.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(le[ee.key]){ee.preventDefault(),ee.stopPropagation();const[X,Q]=le[ee.key];J(X,Q)}v==null||v(oe.date,de,ee)},[J,v,t.dir]),Dt=S.useCallback((oe,de)=>ee=>{y==null||y(oe.date,de,ee)},[y]),Zr=S.useCallback((oe,de)=>ee=>{b==null||b(oe.date,de,ee)},[b]),Tt=S.useCallback(oe=>de=>{const ee=Number(de.target.value),le=s.setMonth(s.startOfMonth(oe),ee);te(le)},[s,te]),Es=S.useCallback(oe=>de=>{const ee=Number(de.target.value),le=s.setYear(s.startOfMonth(oe),ee);te(le)},[s,te]),{className:ks,style:Qr}=S.useMemo(()=>({className:[l[q.Root],t.className].filter(Boolean).join(" "),style:{...C==null?void 0:C[q.Root],...t.style}}),[l,t.className,t.style,C]),Jr=Mw(t),eo=S.useRef(null);Kw(eo,!!t.animate,{classNames:l,months:W,focused:I,dateLib:s});const Jn={dayPickerProps:t,selected:A,select:B,isSelected:_,months:W,nextMonth:U,previousMonth:P,goToMonth:te,getModifiers:D,components:r,classNames:l,styles:C,labels:a,formatters:o};return S.createElement(nd.Provider,{value:Jn},S.createElement(r.Root,{rootRef:t.animate?eo:void 0,className:ks,style:Qr,dir:t.dir,id:t.id,lang:t.lang??i.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Jr},S.createElement(r.Months,{className:l[q.Months],style:C==null?void 0:C[q.Months]},!t.hideNavigation&&!d&&S.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[q.Nav],style:C==null?void 0:C[q.Nav],"aria-label":it(),onPreviousClick:Xn,onNextClick:Zn,previousMonth:P,nextMonth:U}),W.map((oe,de)=>S.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[q.Month],style:C==null?void 0:C[q.Month],key:de,displayIndex:de,calendarMonth:oe},d==="around"&&!t.hideNavigation&&de===0&&S.createElement(r.PreviousMonthButton,{type:"button",className:l[q.PreviousMonthButton],tabIndex:P?void 0:-1,"aria-disabled":P?void 0:!0,"aria-label":lt(P),onClick:Xn,"data-animated-button":t.animate?"true":void 0},S.createElement(r.Chevron,{disabled:P?void 0:!0,className:l[q.Chevron],orientation:t.dir==="rtl"?"right":"left"})),S.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[q.MonthCaption],style:C==null?void 0:C[q.MonthCaption],calendarMonth:oe,displayIndex:de},c!=null&&c.startsWith("dropdown")?S.createElement(r.DropdownNav,{className:l[q.Dropdowns],style:C==null?void 0:C[q.Dropdowns]},(()=>{const ee=c==="dropdown"||c==="dropdown-months"?S.createElement(r.MonthsDropdown,{key:"month",className:l[q.MonthsDropdown],"aria-label":Ne(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Tt(oe.date),options:Rw(oe.date,G,Y,o,s),style:C==null?void 0:C[q.Dropdown],value:s.getMonth(oe.date)}):S.createElement("span",{key:"month"},R(oe.date,s)),le=c==="dropdown"||c==="dropdown-years"?S.createElement(r.YearsDropdown,{key:"year",className:l[q.YearsDropdown],"aria-label":Ns(s.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Es(oe.date),options:Vw(G,Y,o,s,!!t.reverseYears),style:C==null?void 0:C[q.Dropdown],value:s.getYear(oe.date)}):S.createElement("span",{key:"year"},j(oe.date,s));return s.getMonthYearOrder()==="year-first"?[le,ee]:[ee,le]})(),S.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(oe.date,s.options,s))):S.createElement(r.CaptionLabel,{className:l[q.CaptionLabel],role:"status","aria-live":"polite"},E(oe.date,s.options,s))),d==="around"&&!t.hideNavigation&&de===h-1&&S.createElement(r.NextMonthButton,{type:"button",className:l[q.NextMonthButton],tabIndex:U?void 0:-1,"aria-disabled":U?void 0:!0,"aria-label":We(U),onClick:Zn,"data-animated-button":t.animate?"true":void 0},S.createElement(r.Chevron,{disabled:U?void 0:!0,className:l[q.Chevron],orientation:t.dir==="rtl"?"left":"right"})),de===h-1&&d==="after"&&!t.hideNavigation&&S.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[q.Nav],style:C==null?void 0:C[q.Nav],"aria-label":it(),onPreviousClick:Xn,onNextClick:Zn,previousMonth:P,nextMonth:U}),S.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":xe(oe.date,s.options,s)||void 0,className:l[q.MonthGrid],style:C==null?void 0:C[q.MonthGrid]},!t.hideWeekdays&&S.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[q.Weekdays],style:C==null?void 0:C[q.Weekdays]},M&&S.createElement(r.WeekNumberHeader,{"aria-label":Ss(s.options),className:l[q.WeekNumberHeader],style:C==null?void 0:C[q.WeekNumberHeader],scope:"col"},H()),ke.map(ee=>S.createElement(r.Weekday,{"aria-label":mn(ee,s.options,s),className:l[q.Weekday],key:String(ee),style:C==null?void 0:C[q.Weekday],scope:"col"},$(ee,s.options,s)))),S.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[q.Weeks],style:C==null?void 0:C[q.Weeks]},oe.weeks.map(ee=>S.createElement(r.Week,{className:l[q.Week],key:ee.weekNumber,style:C==null?void 0:C[q.Week],week:ee},M&&S.createElement(r.WeekNumber,{week:ee,style:C==null?void 0:C[q.WeekNumber],"aria-label":Me(ee.weekNumber,{locale:i}),className:l[q.WeekNumber],scope:"row",role:"rowheader"},F(ee.weekNumber,s)),ee.days.map(le=>{const{date:X}=le,Q=D(le);if(Q[he.focused]=!Q.hidden&&!!(I!=null&&I.isEqualTo(le)),Q[je.selected]=(_==null?void 0:_(X))||Q.selected,Wr(A)){const{from:ge,to:Ee}=A;Q[je.range_start]=!!(ge&&Ee&&s.isSameDay(X,ge)),Q[je.range_end]=!!(ge&&Ee&&s.isSameDay(X,Ee)),Q[je.range_middle]=pt(A,X,!0,s)}const ye=Yw(Q,C,t.modifiersStyles),De=Sw(Q,l,t.modifiersClassNames),vn=!mt&&!Q.hidden?se(X,Q,s.options,s):void 0;return S.createElement(r.Day,{key:`${le.isoDate}_${le.displayMonthId}`,day:le,modifiers:Q,className:De.join(" "),style:ye,role:"gridcell","aria-selected":Q.selected||void 0,"aria-label":vn,"data-day":le.isoDate,"data-month":le.outside?le.dateMonthId:void 0,"data-selected":Q.selected||void 0,"data-disabled":Q.disabled||void 0,"data-hidden":Q.hidden||void 0,"data-outside":le.outside||void 0,"data-focused":Q.focused||void 0,"data-today":Q.today||void 0},!Q.hidden&&mt?S.createElement(r.DayButton,{className:l[q.DayButton],style:C==null?void 0:C[q.DayButton],type:"button",day:le,modifiers:Q,disabled:!Q.focused&&Q.disabled||void 0,"aria-disabled":Q.focused&&Q.disabled||void 0,tabIndex:z(le)?0:-1,"aria-label":ie(X,Q,s.options,s),onClick:gn(le,Q),onBlur:Xr(le,Q),onFocus:Ms(le,Q),onKeyDown:Qn(le,Q),onMouseEnter:Dt(le,Q),onMouseLeave:Zr(le,Q)},T(X,s.options,s)):!Q.hidden&&T(le.date,s.options,s))})))))))),t.footer&&S.createElement(r.Footer,{className:l[q.Footer],style:C==null?void 0:C[q.Footer],role:"status","aria-live":"polite"},t.footer)))}const xd=be(["w-full flex items-center gap-2","rounded-lg border border-border bg-background px-3 py-2 text-sm text-foreground","ring-offset-background","transition-[border-color,box-shadow,scale]","active:scale-[0.96]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{size:{sm:"h-8 text-xs",md:"h-10",lg:"h-11 text-base"},isError:{true:"border-destructive focus-visible:ring-destructive",false:""}},defaultVariants:{size:"md",isError:!1}}),Ea=u.forwardRef(({className:e,size:t,isError:n,placeholder:r,children:o,...a},s)=>p.jsxs("button",{ref:s,type:"button",className:O(xd({size:t,isError:n}),e),"aria-invalid":n||void 0,...a,children:[p.jsx(yh,{className:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}),p.jsx("span",{className:O("flex-1 truncate text-left",!o&&"text-muted-foreground"),children:o??r})]}));Ea.displayName="DatePickerTrigger";const ka=({className:e,classNames:t,...n})=>p.jsx(h0,{showOutsideDays:!0,className:O("p-3",e),classNames:{months:"relative flex gap-4",month:"flex flex-col gap-3",month_caption:"flex h-9 items-center justify-center",caption_label:"text-sm font-medium pointer-events-none",nav:"absolute inset-x-0 top-0 z-10 flex h-9 items-center justify-between",button_previous:O("inline-flex h-9 w-9 items-center justify-center rounded-md","text-muted-foreground hover:bg-accent hover:text-accent-foreground","transition-colors duration-100","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"),button_next:O("inline-flex h-9 w-9 items-center justify-center rounded-md","text-muted-foreground hover:bg-accent hover:text-accent-foreground","transition-colors duration-100","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"),month_grid:"w-full border-collapse",weekdays:"flex",weekday:"flex h-9 w-9 items-center justify-center text-xs font-normal text-muted-foreground",week:"mt-1 flex",day:"flex h-9 w-9 items-center justify-center p-0",day_button:O("h-9 w-9 rounded-md p-0 text-sm font-normal","transition-colors duration-100","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","aria-selected:opacity-100"),selected:"rounded-md bg-primary text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground",today:"rounded-md bg-accent text-accent-foreground",outside:"opacity-50 text-muted-foreground",disabled:"opacity-30 text-muted-foreground",hidden:"invisible",...t},components:{Chevron:({orientation:r})=>r==="left"?p.jsx(qs,{className:"size-4","aria-hidden":"true"}):p.jsx(uo,{className:"size-4","aria-hidden":"true"})},...n});ka.displayName="Calendar";const Cd=on;Cd.displayName="DatePickerRoot";const Sd=u.forwardRef(({className:e,align:t="start",...n},r)=>p.jsx(Wt,{ref:r,align:t,className:O("w-auto p-0",e),...n}));Sd.displayName="DatePickerContent";const Nd=u.forwardRef(({value:e,onValueChange:t,placeholder:n="Pick a date",formatStr:r="PPP",size:o,isError:a,disabled:s,className:i},l)=>{const[c,f]=u.useState(!1),d=e?un(e,r):void 0;return p.jsxs(on,{open:c,onOpenChange:f,children:[p.jsx(Ir,{asChild:!0,children:p.jsx(Ea,{ref:l,size:o,isError:a,disabled:s,className:i,placeholder:n,"aria-expanded":c,"aria-haspopup":"dialog",children:d})}),p.jsx(Wt,{className:"w-auto p-0",align:"start",children:p.jsx(ka,{mode:"single",selected:e,onSelect:h=>{t==null||t(h),f(!1)},defaultMonth:e})})]})});Nd.displayName="DatePicker";const Md=gl,Ed=Wg,kd=Fg,Dd=vl,Da=u.forwardRef(({className:e,...t},n)=>p.jsx(Io,{ref:n,className:O("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-dialog-overlay-in","data-[state=closed]:animate-dialog-overlay-out",e),...t}));Da.displayName=Io.displayName;const Ta=u.forwardRef(({className:e,children:t,dismissible:n=!0,onInteractOutside:r,onPointerDownOutside:o,onEscapeKeyDown:a,...s},i)=>p.jsxs(Dd,{children:[p.jsx(Da,{}),p.jsx(Wo,{ref:i,onInteractOutside:l=>{n||l.preventDefault(),r==null||r(l)},onPointerDownOutside:l=>{n||l.preventDefault(),o==null||o(l)},onEscapeKeyDown:l=>{n||l.preventDefault(),a==null||a(l)},className:O("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-full max-w-lg rounded-xl bg-background p-6","ring-1 ring-border/60 shadow-xl","data-[state=open]:animate-dialog-content-in","data-[state=closed]:animate-dialog-content-out",e),...s,children:t})]}));Ta.displayName=Wo.displayName;const Pa=({className:e,...t})=>p.jsx("div",{className:O("flex flex-col gap-1.5 mb-4",e),...t});Pa.displayName="DialogHeader";const Oa=({className:e,...t})=>p.jsx("div",{className:O("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end mt-6",e),...t});Oa.displayName="DialogFooter";const _a=u.forwardRef(({className:e,...t},n)=>p.jsx(bl,{ref:n,className:O("text-lg font-semibold leading-none text-balance",e),...t}));_a.displayName=bl.displayName;const Aa=u.forwardRef(({className:e,...t},n)=>p.jsx(yl,{ref:n,className:O("text-sm text-muted-foreground text-pretty",e),...t}));Aa.displayName=yl.displayName;const Td=({trigger:e,title:t,description:n,children:r,footer:o,contentClassName:a,dismissible:s=!0,...i})=>p.jsxs(Md,{...i,children:[e&&p.jsx(Ed,{asChild:!0,children:e}),p.jsxs(Ta,{className:a,dismissible:s,children:[s&&p.jsx(kd,{className:O("absolute right-4 top-4 rounded-md p-3 text-muted-foreground","transition-[color,background-color] duration-150","hover:bg-accent hover:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":"Close",children:p.jsx(Nh,{className:"size-4","aria-hidden":"true"})}),p.jsxs(Pa,{children:[p.jsx(_a,{children:t}),n&&p.jsx(Aa,{children:n})]}),r,o&&p.jsx(Oa,{children:o})]})]});Td.displayName="Dialog";var Ia="rovingFocusGroup.onEntryFocus",m0={bubbles:!1,cancelable:!0},Rn="RovingFocusGroup",[Wa,Pd,g0]=tr(Rn),[v0,$r]=Fe(Rn,[g0]),[b0,y0]=v0(Rn),Od=u.forwardRef((e,t)=>p.jsx(Wa.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Wa.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(w0,{...e,ref:t})})}));Od.displayName=Rn;var w0=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...d}=e,h=u.useRef(null),m=ce(t,h),w=bn(a),[g,v]=$e({prop:s,defaultProp:i??null,onChange:l,caller:Rn}),[y,b]=u.useState(!1),x=ze(c),N=Pd(n),M=u.useRef(!1),[C,E]=u.useState(0);return u.useEffect(()=>{const T=h.current;if(T)return T.addEventListener(Ia,x),()=>T.removeEventListener(Ia,x)},[x]),p.jsx(b0,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:g,onItemFocus:u.useCallback(T=>v(T),[v]),onItemShiftTab:u.useCallback(()=>b(!0),[]),onFocusableItemAdd:u.useCallback(()=>E(T=>T+1),[]),onFocusableItemRemove:u.useCallback(()=>E(T=>T-1),[]),children:p.jsx(Z.div,{tabIndex:y||C===0?-1:0,"data-orientation":r,...d,ref:m,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{M.current=!0}),onFocus:L(e.onFocus,T=>{const R=!M.current;if(T.target===T.currentTarget&&R&&!y){const F=new CustomEvent(Ia,m0);if(T.currentTarget.dispatchEvent(F),!F.defaultPrevented){const H=N().filter(W=>W.focusable),$=H.find(W=>W.active),j=H.find(W=>W.id===g),ne=[$,j,...H].filter(Boolean).map(W=>W.ref.current);Id(ne,f)}}M.current=!1}),onBlur:L(e.onBlur,()=>b(!1))})})}),_d="RovingFocusGroupItem",Ad=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...i}=e,l=me(),c=a||l,f=y0(_d,n),d=f.currentTabStopId===c,h=Pd(n),{onFocusableItemAdd:m,onFocusableItemRemove:w,currentTabStopId:g}=f;return u.useEffect(()=>{if(r)return m(),()=>w()},[r,m,w]),p.jsx(Wa.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:p.jsx(Z.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:L(e.onMouseDown,v=>{r?f.onItemFocus(c):v.preventDefault()}),onFocus:L(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:L(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=S0(v,f.orientation,f.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=h().filter(N=>N.focusable).map(N=>N.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const N=x.indexOf(v.currentTarget);x=f.loop?N0(x,N+1):x.slice(N+1)}setTimeout(()=>Id(x))}}),children:typeof s=="function"?s({isCurrentTabStop:d,hasTabStop:g!=null}):s})})});Ad.displayName=_d;var x0={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function C0(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function S0(e,t,n){const r=C0(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return x0[r]}function Id(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function N0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Wd=Od,Fd=Ad,Fa=["Enter"," "],M0=["ArrowDown","PageUp","Home"],$d=["ArrowUp","PageDown","End"],E0=[...M0,...$d],k0={ltr:[...Fa,"ArrowRight"],rtl:[...Fa,"ArrowLeft"]},D0={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Yn="Menu",[zn,T0,P0]=tr(Yn),[Bt,Bd]=Fe(Yn,[P0,Ct,$r]),Vn=Ct(),Ld=$r(),[Rd,Mt]=Bt(Yn),[O0,Hn]=Bt(Yn),Yd=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,i=Vn(t),[l,c]=u.useState(null),f=u.useRef(!1),d=ze(a),h=bn(o);return u.useEffect(()=>{const m=()=>{f.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>f.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),p.jsx(Dn,{...i,children:p.jsx(Rd,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:p.jsx(O0,{scope:t,onClose:u.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:h,modal:s,children:r})})})};Yd.displayName=Yn;var _0="MenuAnchor",$a=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vn(n);return p.jsx(Tn,{...o,...r,ref:t})});$a.displayName=_0;var Ba="MenuPortal",[A0,zd]=Bt(Ba,{forceMount:void 0}),Vd=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Mt(Ba,t);return p.jsx(A0,{scope:t,forceMount:n,children:p.jsx(Te,{present:n||a.open,children:p.jsx(jt,{asChild:!0,container:o,children:r})})})};Vd.displayName=Ba;var Re="MenuContent",[I0,La]=Bt(Re),Hd=u.forwardRef((e,t)=>{const n=zd(Re,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Mt(Re,e.__scopeMenu),s=Hn(Re,e.__scopeMenu);return p.jsx(zn.Provider,{scope:e.__scopeMenu,children:p.jsx(Te,{present:r||a.open,children:p.jsx(zn.Slot,{scope:e.__scopeMenu,children:s.modal?p.jsx(W0,{...o,ref:t}):p.jsx(F0,{...o,ref:t})})})})}),W0=u.forwardRef((e,t)=>{const n=Mt(Re,e.__scopeMenu),r=u.useRef(null),o=ce(t,r);return u.useEffect(()=>{const a=r.current;if(a)return gr(a)},[]),p.jsx(Ra,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),F0=u.forwardRef((e,t)=>{const n=Mt(Re,e.__scopeMenu);return p.jsx(Ra,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),$0=Pt("MenuContent.ScrollLock"),Ra=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:m,disableOutsideScroll:w,...g}=e,v=Mt(Re,n),y=Hn(Re,n),b=Vn(n),x=Ld(n),N=T0(n),[M,C]=u.useState(null),E=u.useRef(null),T=ce(t,E,v.onContentChange),R=u.useRef(0),F=u.useRef(""),H=u.useRef(0),$=u.useRef(null),j=u.useRef("right"),V=u.useRef(0),ne=w?Sn:u.Fragment,W=w?{as:$0,allowPinchZoom:!0}:void 0,G=P=>{var I,z;const U=F.current+P,te=N().filter(J=>!J.disabled),D=document.activeElement,_=(I=te.find(J=>J.ref.current===D))==null?void 0:I.textValue,B=te.map(J=>J.textValue),A=q0(B,U,_),K=(z=te.find(J=>J.textValue===A))==null?void 0:z.ref.current;(function J(re){F.current=re,window.clearTimeout(R.current),re!==""&&(R.current=window.setTimeout(()=>J(""),1e3))})(U),K&&setTimeout(()=>K.focus())};u.useEffect(()=>()=>window.clearTimeout(R.current),[]),lr();const Y=u.useCallback(P=>{var te,D;return j.current===((te=$.current)==null?void 0:te.side)&&Z0(P,(D=$.current)==null?void 0:D.area)},[]);return p.jsx(I0,{scope:n,searchRef:F,onItemEnter:u.useCallback(P=>{Y(P)&&P.preventDefault()},[Y]),onItemLeave:u.useCallback(P=>{var U;Y(P)||((U=E.current)==null||U.focus(),C(null))},[Y]),onTriggerLeave:u.useCallback(P=>{Y(P)&&P.preventDefault()},[Y]),pointerGraceTimerRef:H,onPointerGraceIntentChange:u.useCallback(P=>{$.current=P},[]),children:p.jsx(ne,{...W,children:p.jsx(Cn,{asChild:!0,trapped:o,onMountAutoFocus:L(a,P=>{var U;P.preventDefault(),(U=E.current)==null||U.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:p.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,onDismiss:m,children:p.jsx(Wd,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:M,onCurrentTabStopIdChange:C,onEntryFocus:L(l,P=>{y.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(Or,{role:"menu","aria-orientation":"vertical","data-state":lu(v.open),"data-radix-menu-content":"",dir:y.dir,...b,...g,ref:T,style:{outline:"none",...g.style},onKeyDown:L(g.onKeyDown,P=>{const te=P.target.closest("[data-radix-menu-content]")===P.currentTarget,D=P.ctrlKey||P.altKey||P.metaKey,_=P.key.length===1;te&&(P.key==="Tab"&&P.preventDefault(),!D&&_&&G(P.key));const B=E.current;if(P.target!==B||!E0.includes(P.key))return;P.preventDefault();const K=N().filter(I=>!I.disabled).map(I=>I.ref.current);$d.includes(P.key)&&K.reverse(),U0(K)}),onBlur:L(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(R.current),F.current="")}),onPointerMove:L(e.onPointerMove,jn(P=>{const U=P.target,te=V.current!==P.clientX;if(P.currentTarget.contains(U)&&te){const D=P.clientX>V.current?"right":"left";j.current=D,V.current=P.clientX}}))})})})})})})});Hd.displayName=Re;var B0="MenuGroup",Ya=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(Z.div,{role:"group",...r,ref:t})});Ya.displayName=B0;var L0="MenuLabel",Gd=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(Z.div,{...r,ref:t})});Gd.displayName=L0;var Br="MenuItem",jd="menu.itemSelect",Lr=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=u.useRef(null),s=Hn(Br,e.__scopeMenu),i=La(Br,e.__scopeMenu),l=ce(t,a),c=u.useRef(!1),f=()=>{const d=a.current;if(!n&&d){const h=new CustomEvent(jd,{bubbles:!0,cancelable:!0});d.addEventListener(jd,m=>r==null?void 0:r(m),{once:!0}),Os(d,h),h.defaultPrevented?c.current=!1:s.onClose()}};return p.jsx(Ud,{...o,ref:l,disabled:n,onClick:L(e.onClick,f),onPointerDown:d=>{var h;(h=e.onPointerDown)==null||h.call(e,d),c.current=!0},onPointerUp:L(e.onPointerUp,d=>{var h;c.current||(h=d.currentTarget)==null||h.click()}),onKeyDown:L(e.onKeyDown,d=>{const h=i.searchRef.current!=="";n||h&&d.key===" "||Fa.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Lr.displayName=Br;var Ud=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=La(Br,n),i=Ld(n),l=u.useRef(null),c=ce(t,l),[f,d]=u.useState(!1),[h,m]=u.useState("");return u.useEffect(()=>{const w=l.current;w&&m((w.textContent??"").trim())},[a.children]),p.jsx(zn.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:p.jsx(Fd,{asChild:!0,...i,focusable:!r,children:p.jsx(Z.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:L(e.onPointerMove,jn(w=>{r?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,jn(w=>s.onItemLeave(w))),onFocus:L(e.onFocus,()=>d(!0)),onBlur:L(e.onBlur,()=>d(!1))})})})}),R0="MenuCheckboxItem",Kd=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Jd,{scope:e.__scopeMenu,checked:n,children:p.jsx(Lr,{role:"menuitemcheckbox","aria-checked":Rr(n)?"mixed":n,...o,ref:t,"data-state":Ha(n),onSelect:L(o.onSelect,()=>r==null?void 0:r(Rr(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Kd.displayName=R0;var qd="MenuRadioGroup",[Y0,z0]=Bt(qd,{value:void 0,onValueChange:()=>{}}),Xd=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=ze(r);return p.jsx(Y0,{scope:e.__scopeMenu,value:n,onValueChange:a,children:p.jsx(Ya,{...o,ref:t})})});Xd.displayName=qd;var Zd="MenuRadioItem",Qd=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=z0(Zd,e.__scopeMenu),a=n===o.value;return p.jsx(Jd,{scope:e.__scopeMenu,checked:a,children:p.jsx(Lr,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Ha(a),onSelect:L(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Qd.displayName=Zd;var za="MenuItemIndicator",[Jd,V0]=Bt(za,{checked:!1}),eu=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=V0(za,n);return p.jsx(Te,{present:r||Rr(a.checked)||a.checked===!0,children:p.jsx(Z.span,{...o,ref:t,"data-state":Ha(a.checked)})})});eu.displayName=za;var H0="MenuSeparator",tu=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(Z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tu.displayName=H0;var G0="MenuArrow",nu=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vn(n);return p.jsx(_r,{...o,...r,ref:t})});nu.displayName=G0;var Va="MenuSub",[j0,ru]=Bt(Va),ou=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=Mt(Va,t),s=Vn(t),[i,l]=u.useState(null),[c,f]=u.useState(null),d=ze(o);return u.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),p.jsx(Dn,{...s,children:p.jsx(Rd,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:f,children:p.jsx(j0,{scope:t,contentId:me(),triggerId:me(),trigger:i,onTriggerChange:l,children:n})})})};ou.displayName=Va;var Gn="MenuSubTrigger",au=u.forwardRef((e,t)=>{const n=Mt(Gn,e.__scopeMenu),r=Hn(Gn,e.__scopeMenu),o=ru(Gn,e.__scopeMenu),a=La(Gn,e.__scopeMenu),s=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},f=u.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return u.useEffect(()=>f,[f]),u.useEffect(()=>{const d=i.current;return()=>{window.clearTimeout(d),l(null)}},[i,l]),p.jsx($a,{asChild:!0,...c,children:p.jsx(Ud,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":lu(n.open),...e,ref:Qe(t,o.onTriggerChange),onClick:d=>{var h;(h=e.onClick)==null||h.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,jn(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:L(e.onPointerLeave,jn(d=>{var m,w;f();const h=(m=n.content)==null?void 0:m.getBoundingClientRect();if(h){const g=(w=n.content)==null?void 0:w.dataset.side,v=g==="right",y=v?-5:5,b=h[v?"left":"right"],x=h[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:b,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:b,y:h.bottom}],side:g}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,d=>{var m;const h=a.searchRef.current!=="";e.disabled||h&&d.key===" "||k0[r.dir].includes(d.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),d.preventDefault())})})})});au.displayName=Gn;var su="MenuSubContent",iu=u.forwardRef((e,t)=>{const n=zd(Re,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Mt(Re,e.__scopeMenu),s=Hn(Re,e.__scopeMenu),i=ru(su,e.__scopeMenu),l=u.useRef(null),c=ce(t,l);return p.jsx(zn.Provider,{scope:e.__scopeMenu,children:p.jsx(Te,{present:r||a.open,children:p.jsx(zn.Slot,{scope:e.__scopeMenu,children:p.jsx(Ra,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;s.isUsingKeyboardRef.current&&((d=l.current)==null||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:L(e.onFocusOutside,f=>{f.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:L(e.onKeyDown,f=>{var m;const d=f.currentTarget.contains(f.target),h=D0[s.dir].includes(f.key);d&&h&&(a.onOpenChange(!1),(m=i.trigger)==null||m.focus(),f.preventDefault())})})})})})});iu.displayName=su;function lu(e){return e?"open":"closed"}function Rr(e){return e==="indeterminate"}function Ha(e){return Rr(e)?"indeterminate":e?"checked":"unchecked"}function U0(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function K0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function q0(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=K0(e,Math.max(a,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function X0(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,f=i.y,d=l.x,h=l.y;f>r!=h>r&&n<(d-c)*(r-f)/(h-f)+c&&(o=!o)}return o}function Z0(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return X0(n,t)}function jn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Q0=Yd,J0=$a,ex=Vd,tx=Hd,nx=Ya,rx=Gd,ox=Lr,ax=Kd,sx=Xd,ix=Qd,lx=eu,cx=tu,dx=nu,ux=ou,fx=au,px=iu,Yr="DropdownMenu",[hx]=Fe(Yr,[Bd]),Se=Bd(),[mx,cu]=hx(Yr),du=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,l=Se(t),c=u.useRef(null),[f,d]=$e({prop:o,defaultProp:a??!1,onChange:s,caller:Yr});return p.jsx(mx,{scope:t,triggerId:me(),triggerRef:c,contentId:me(),open:f,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(h=>!h),[d]),modal:i,children:p.jsx(Q0,{...l,open:f,onOpenChange:d,dir:r,modal:i,children:n})})};du.displayName=Yr;var uu="DropdownMenuTrigger",fu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=cu(uu,n),s=Se(n);return p.jsx(J0,{asChild:!0,...s,children:p.jsx(Z.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Qe(t,a.triggerRef),onPointerDown:L(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:L(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});fu.displayName=uu;var gx="DropdownMenuPortal",pu=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Se(t);return p.jsx(ex,{...r,...n})};pu.displayName=gx;var hu="DropdownMenuContent",mu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=cu(hu,n),a=Se(n),s=u.useRef(!1);return p.jsx(tx,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:L(e.onInteractOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,f=l.button===2||c;(!o.modal||f)&&(s.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)"}})});mu.displayName=hu;var vx="DropdownMenuGroup",gu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(nx,{...o,...r,ref:t})});gu.displayName=vx;var bx="DropdownMenuLabel",vu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(rx,{...o,...r,ref:t})});vu.displayName=bx;var yx="DropdownMenuItem",bu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(ox,{...o,...r,ref:t})});bu.displayName=yx;var wx="DropdownMenuCheckboxItem",yu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(ax,{...o,...r,ref:t})});yu.displayName=wx;var xx="DropdownMenuRadioGroup",wu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(sx,{...o,...r,ref:t})});wu.displayName=xx;var Cx="DropdownMenuRadioItem",xu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(ix,{...o,...r,ref:t})});xu.displayName=Cx;var Sx="DropdownMenuItemIndicator",Cu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(lx,{...o,...r,ref:t})});Cu.displayName=Sx;var Nx="DropdownMenuSeparator",Su=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(cx,{...o,...r,ref:t})});Su.displayName=Nx;var Mx="DropdownMenuArrow",Ex=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(dx,{...o,...r,ref:t})});Ex.displayName=Mx;var kx=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,s=Se(t),[i,l]=$e({prop:r,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return p.jsx(ux,{...s,open:i,onOpenChange:l,children:n})},Dx="DropdownMenuSubTrigger",Nu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(fx,{...o,...r,ref:t})});Nu.displayName=Dx;var Tx="DropdownMenuSubContent",Mu=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Se(n);return p.jsx(px,{...o,...r,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)"}})});Mu.displayName=Tx;var Px=du,Ox=fu,Eu=pu,ku=mu,_x=gu,Du=vu,Tu=bu,Pu=yu,Ax=wu,Ou=xu,_u=Cu,Au=Su,Ix=kx,Iu=Nu,Wu=Mu;const Fu=Px,$u=Ox,Wx=_x,Fx=Eu,$x=Ix,Bx=Ax,Ga=u.forwardRef(({className:e,sideOffset:t=6,...n},r)=>p.jsx(Eu,{children:p.jsx(ku,{ref:r,sideOffset:t,className:O("z-50 min-w-32 rounded-lg p-1","ring-1 ring-border/60 bg-background shadow-md","origin-(--radix-dropdown-menu-content-transform-origin)","data-[state=open]:animate-dropdown-in","data-[state=closed]:animate-dropdown-out",e),...n})}));Ga.displayName=ku.displayName;const ja=u.forwardRef(({className:e,inset:t,variant:n="default",...r},o)=>p.jsx(Tu,{ref:o,className:O("relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none","transition-colors duration-100","focus:bg-accent focus:text-accent-foreground","data-disabled:pointer-events-none data-disabled:opacity-50","[&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-muted-foreground",t&&"pl-8",n==="destructive"&&"text-destructive focus:bg-destructive/10 focus:text-destructive [&_svg]:text-destructive",e),...r}));ja.displayName=Tu.displayName;const Bu=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(Pu,{ref:o,className:O("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors duration-100","focus:bg-accent focus:text-accent-foreground","data-disabled:pointer-events-none data-disabled:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:p.jsx(_u,{children:p.jsx(yn,{className:"size-3.5"})})}),t]}));Bu.displayName=Pu.displayName;const Lu=u.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Ou,{ref:r,className:O("relative flex cursor-pointer select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none","transition-colors duration-100","focus:bg-accent focus:text-accent-foreground","data-disabled:pointer-events-none data-disabled:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:p.jsx(_u,{children:p.jsx(xh,{className:"size-2 fill-current"})})}),t]}));Lu.displayName=Ou.displayName;const Ua=u.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(Du,{ref:r,className:O("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));Ua.displayName=Du.displayName;const Ka=u.forwardRef(({className:e,...t},n)=>p.jsx(Au,{ref:n,className:O("-mx-1 my-1 h-px bg-border",e),...t}));Ka.displayName=Au.displayName;const Ru=u.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(Iu,{ref:o,className:O("flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none","transition-colors duration-100","focus:bg-accent data-[state=open]:bg-accent","[&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:text-muted-foreground",t&&"pl-8",e),...r,children:[n,p.jsx(uo,{className:"ml-auto"})]}));Ru.displayName=Iu.displayName;const Yu=u.forwardRef(({className:e,...t},n)=>p.jsx(Wu,{ref:n,className:O("z-50 min-w-32 rounded-lg p-1","ring-1 ring-border/60 bg-background shadow-md","data-[state=open]:animate-dropdown-in","data-[state=closed]:animate-dropdown-out",e),...t}));Yu.displayName=Wu.displayName;const zu=({trigger:e,items:t,side:n,align:r,sideOffset:o,contentClassName:a,...s})=>p.jsxs(Fu,{...s,children:[p.jsx($u,{asChild:!0,children:e}),p.jsx(Ga,{side:n,align:r,sideOffset:o,className:a,children:t.map((i,l)=>i.type==="separator"?p.jsx(Ka,{},l):i.type==="label"?p.jsx(Ua,{children:i.label},l):p.jsxs(ja,{disabled:i.disabled,variant:i.variant,onSelect:i.onSelect,children:[i.icon,i.label]},l))})]});zu.displayName="DropdownMenu";const Vu=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:O("flex flex-col gap-1.5",e),...t}));Vu.displayName="Field";const Hu=u.forwardRef(({className:e,required:t,children:n,...r},o)=>p.jsxs("label",{ref:o,className:O("text-sm font-medium leading-none text-foreground","peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r,children:[n,t&&p.jsx("span",{"aria-hidden":"true",className:"ml-0.5 text-destructive",children:"*"})]}));Hu.displayName="Label";const Gu=u.forwardRef(({className:e,isError:t,...n},r)=>p.jsx("p",{ref:r,className:O("text-xs",t?"text-destructive":"text-muted-foreground",e),...n}));Gu.displayName="FieldMessage";const ju=u.createContext({inGroup:!1}),Uu=be(["w-full rounded-md border border-input bg-background","text-foreground placeholder:text-muted-foreground","transition-[color,border-color,box-shadow]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50","read-only:bg-muted read-only:cursor-default","[&_svg]:pointer-events-none"],{variants:{size:{sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-11 px-4 text-base"}},defaultVariants:{size:"md"}}),Ku=u.forwardRef(({className:e,size:t,isError:n,icon:r,iconPosition:o="left",...a},s)=>{const{inGroup:i}=u.use(ju);return p.jsxs("div",{className:"relative w-full",children:[r&&o==="left"&&p.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground [&_svg]:size-4",children:r}),p.jsx("input",{ref:s,className:O(Uu({size:t}),i&&"border-0 rounded-none focus-visible:ring-0 focus-visible:ring-offset-0",n&&"border-destructive focus-visible:ring-destructive",r&&o==="left"&&"pl-9",r&&o==="right"&&"pr-9",e),"aria-invalid":n||void 0,...a}),r&&o==="right"&&p.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground [&_svg]:size-4",children:r})]})});Ku.displayName="Input";const qu=u.forwardRef(({className:e,isError:t,children:n,...r},o)=>p.jsx(ju,{value:{inGroup:!0,isError:t},children:p.jsx("div",{ref:o,"aria-invalid":t||void 0,className:O("flex items-stretch overflow-hidden","rounded-md border border-input bg-background","divide-x divide-border","transition-[color,border-color,box-shadow]","focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 ring-offset-background","has-[input:disabled]:opacity-50 has-[input:disabled]:pointer-events-none",t&&"border-destructive focus-within:ring-destructive",e),...r,children:n})}));qu.displayName="InputGroup";const Xu=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:O("flex shrink-0 items-center px-3","bg-muted text-muted-foreground text-sm select-none",e),...t}));Xu.displayName="InputAddon";const Zu=be(["w-full appearance-none rounded-md border border-input bg-background pr-9","text-foreground","transition-[color,border-color,box-shadow]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50"],{variants:{size:{sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-11 px-4 text-base"}},defaultVariants:{size:"md"}}),Qu=u.forwardRef(({className:e,size:t,isError:n,children:r,...o},a)=>p.jsxs("div",{className:"group relative w-full",children:[p.jsx("select",{ref:a,className:O(Zu({size:t}),n&&"border-destructive focus-visible:ring-destructive",e),"aria-invalid":n||void 0,...o,children:r}),p.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground group-has-[select:disabled]:opacity-50 [&_svg]:size-4",children:p.jsx(zt,{})})]}));Qu.displayName="NativeSelect";const qa=u.forwardRef(({className:e,...t},n)=>p.jsx("nav",{ref:n,"aria-label":"Pagination",className:O("flex items-center gap-1",e),...t}));qa.displayName="PaginationRoot";const Xa=["inline-flex items-center justify-center","size-10 rounded-md text-sm font-medium select-none tabular-nums","transition-[color,background-color,box-shadow] duration-150","active:scale-[0.96]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50"].join(" "),Za=u.forwardRef(({className:e,isActive:t,...n},r)=>p.jsx("button",{ref:r,"aria-current":t?"page":void 0,className:O(Xa,t?"bg-primary text-primary-foreground shadow-sm":"text-foreground hover:bg-accent hover:text-accent-foreground",e),...n}));Za.displayName="PaginationItem";const Qa=u.forwardRef(({className:e,...t},n)=>p.jsx("button",{ref:n,"aria-label":"Previous page",className:O(Xa,"text-foreground hover:bg-accent hover:text-accent-foreground",e),...t,children:p.jsx(qs,{className:"size-4"})}));Qa.displayName="PaginationPrev";const Ja=u.forwardRef(({className:e,...t},n)=>p.jsx("button",{ref:n,"aria-label":"Next page",className:O(Xa,"text-foreground hover:bg-accent hover:text-accent-foreground",e),...t,children:p.jsx(uo,{className:"size-4"})}));Ja.displayName="PaginationNext";const es=({className:e,...t})=>p.jsx("span",{"aria-hidden":"true",className:O("inline-flex size-9 items-center justify-center text-muted-foreground",e),...t,children:p.jsx(Ch,{className:"size-4"})});es.displayName="PaginationEllipsis";function Lx(e,t,n){const r=Math.max(e-n,1),o=Math.min(e+n,t),a=r>2,s=o<t-1;if(!a&&!s)return Array.from({length:t},(i,l)=>l+1);if(!a){const i=3+2*n;return i>=t?Array.from({length:t},(l,c)=>c+1):[...Array.from({length:i},(l,c)=>c+1),"ellipsis-right",t]}if(!s){const i=3+2*n,l=t-i+1;return l<=1?Array.from({length:t},(c,f)=>f+1):[1,"ellipsis-left",...Array.from({length:i},(c,f)=>l+f)]}return[1,"ellipsis-left",...Array.from({length:o-r+1},(i,l)=>r+l),"ellipsis-right",t]}const Ju=({page:e,totalPages:t,onPageChange:n,siblingCount:r=1,className:o,...a})=>{if(t<=1)return null;const s=Lx(e,t,r);return p.jsxs(qa,{className:o,...a,children:[p.jsx(Qa,{onClick:()=>n(e-1),disabled:e<=1}),s.map(i=>i==="ellipsis-left"||i==="ellipsis-right"?p.jsx(es,{},i):p.jsx(Za,{isActive:i===e,onClick:()=>n(i),children:i},i)),p.jsx(Ja,{onClick:()=>n(e+1),disabled:e>=t})]})};Ju.displayName="Pagination";const ef=u.forwardRef(({className:e,value:t,...n},r)=>{const o=t===void 0,a=o?0:Math.min(100,Math.max(0,t));return p.jsx("div",{ref:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o?void 0:a,className:O("relative h-2 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:o?p.jsx("div",{className:"absolute h-full w-1/2 animate-progress-indeterminate rounded-full bg-primary"}):p.jsx("div",{className:"h-full rounded-full bg-primary transition-[width] duration-300 ease-out",style:{width:`${a}%`}})})});ef.displayName="Progress";const ts=u.createContext({}),tf=be(["peer appearance-none rounded-full border border-input bg-background cursor-pointer","checked:bg-primary checked:border-primary","transition-[color,border-color,background-color,box-shadow]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50"],{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),Rx=be(["pointer-events-none absolute rounded-full bg-primary-foreground","opacity-0 transition-opacity","peer-checked:opacity-100 peer-disabled:opacity-30"],{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"}},defaultVariants:{size:"md"}}),nf=u.forwardRef(({className:e,size:t,isError:n,name:r,...o},a)=>{const s=u.use(ts);return p.jsxs("span",{className:"relative inline-flex shrink-0 items-center justify-center",children:[p.jsx("input",{type:"radio",ref:a,name:r??s.name,className:O(tf({size:t}),n&&"border-destructive",e),"aria-invalid":n||void 0,...o}),p.jsx("span",{"aria-hidden":"true",className:Rx({size:t})})]})});nf.displayName="Radio";const rf=be("flex",{variants:{orientation:{vertical:"flex-col gap-2",horizontal:"flex-row flex-wrap gap-4"}},defaultVariants:{orientation:"vertical"}}),of=u.forwardRef(({className:e,name:t,orientation:n,children:r,...o},a)=>p.jsx(ts,{value:{name:t},children:p.jsx("div",{ref:a,role:"radiogroup",className:O(rf({orientation:n}),e),...o,children:r})}));of.displayName="RadioGroup";function af(e,[t,n]){return Math.min(n,Math.max(t,e))}function Yx(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var sf=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"}),zx="VisuallyHidden",lf=u.forwardRef((e,t)=>p.jsx(Z.span,{...e,ref:t,style:{...sf,...e.style}}));lf.displayName=zx;var Vx=lf,Hx=[" ","Enter","ArrowUp","ArrowDown"],Gx=[" ","Enter"],Lt="Select",[zr,Vr,jx]=tr(Lt),[pn]=Fe(Lt,[jx,Ct]),Hr=Ct(),[Ux,Et]=pn(Lt),[Kx,qx]=pn(Lt),cf=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:l,dir:c,name:f,autoComplete:d,disabled:h,required:m,form:w}=e,g=Hr(t),[v,y]=u.useState(null),[b,x]=u.useState(null),[N,M]=u.useState(!1),C=bn(c),[E,T]=$e({prop:r,defaultProp:o??!1,onChange:a,caller:Lt}),[R,F]=$e({prop:s,defaultProp:i,onChange:l,caller:Lt}),H=u.useRef(null),$=v?w||!!v.closest("form"):!0,[j,V]=u.useState(new Set),ne=Array.from(j).map(W=>W.props.value).join(";");return p.jsx(Dn,{...g,children:p.jsxs(Ux,{required:m,scope:t,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:N,onValueNodeHasChildrenChange:M,contentId:me(),value:R,onValueChange:F,open:E,onOpenChange:T,dir:C,triggerPointerDownPosRef:H,disabled:h,children:[p.jsx(zr.Provider,{scope:t,children:p.jsx(Kx,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(W=>{V(G=>new Set(G).add(W))},[]),onNativeOptionRemove:u.useCallback(W=>{V(G=>{const Y=new Set(G);return Y.delete(W),Y})},[]),children:n})}),$?p.jsxs(Af,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:d,value:R,onChange:W=>F(W.target.value),disabled:h,form:w,children:[R===void 0?p.jsx("option",{value:""}):null,Array.from(j)]},ne):null]})})};cf.displayName=Lt;var df="SelectTrigger",uf=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Hr(n),s=Et(df,n),i=s.disabled||r,l=ce(t,s.onTriggerChange),c=Vr(n),f=u.useRef("touch"),[d,h,m]=Wf(g=>{const v=c().filter(x=>!x.disabled),y=v.find(x=>x.value===s.value),b=Ff(v,g,y);b!==void 0&&s.onValueChange(b.value)}),w=g=>{i||(s.onOpenChange(!0),m()),g&&(s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return p.jsx(Tn,{asChild:!0,...a,children:p.jsx(Z.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":If(s.value)?"":void 0,...o,ref:l,onClick:L(o.onClick,g=>{g.currentTarget.focus(),f.current!=="mouse"&&w(g)}),onPointerDown:L(o.onPointerDown,g=>{f.current=g.pointerType;const v=g.target;v.hasPointerCapture(g.pointerId)&&v.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(w(g),g.preventDefault())}),onKeyDown:L(o.onKeyDown,g=>{const v=d.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(v&&g.key===" ")&&Hx.includes(g.key)&&(w(),g.preventDefault())})})})});uf.displayName=df;var ff="SelectValue",pf=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...i}=e,l=Et(ff,n),{onValueNodeHasChildrenChange:c}=l,f=a!==void 0,d=ce(t,l.onValueNodeChange);return we(()=>{c(f)},[c,f]),p.jsx(Z.span,{...i,ref:d,style:{pointerEvents:"none"},children:If(l.value)?p.jsx(p.Fragment,{children:s}):a})});pf.displayName=ff;var Xx="SelectIcon",Zx=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(Z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Zx.displayName=Xx;var Qx="SelectPortal",hf=e=>p.jsx(jt,{asChild:!0,...e});hf.displayName=Qx;var Rt="SelectContent",mf=u.forwardRef((e,t)=>{const n=Et(Rt,e.__scopeSelect),[r,o]=u.useState();if(we(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?er.createPortal(p.jsx(gf,{scope:e.__scopeSelect,children:p.jsx(zr.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),a):null}return p.jsx(vf,{...e,ref:t})});mf.displayName=Rt;var Ke=10,[gf,kt]=pn(Rt),Jx="SelectContentImpl",eC=Pt("SelectContent.RemoveScroll"),vf=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:m,sticky:w,hideWhenDetached:g,avoidCollisions:v,...y}=e,b=Et(Rt,n),[x,N]=u.useState(null),[M,C]=u.useState(null),E=ce(t,I=>N(I)),[T,R]=u.useState(null),[F,H]=u.useState(null),$=Vr(n),[j,V]=u.useState(!1),ne=u.useRef(!1);u.useEffect(()=>{if(x)return gr(x)},[x]),lr();const W=u.useCallback(I=>{const[z,...J]=$().map(se=>se.ref.current),[re]=J.slice(-1),ie=document.activeElement;for(const se of I)if(se===ie||(se==null||se.scrollIntoView({block:"nearest"}),se===z&&M&&(M.scrollTop=0),se===re&&M&&(M.scrollTop=M.scrollHeight),se==null||se.focus(),document.activeElement!==ie))return},[$,M]),G=u.useCallback(()=>W([T,x]),[W,T,x]);u.useEffect(()=>{j&&G()},[j,G]);const{onOpenChange:Y,triggerPointerDownPosRef:P}=b;u.useEffect(()=>{if(x){let I={x:0,y:0};const z=re=>{var ie,se;I={x:Math.abs(Math.round(re.pageX)-(((ie=P.current)==null?void 0:ie.x)??0)),y:Math.abs(Math.round(re.pageY)-(((se=P.current)==null?void 0:se.y)??0))}},J=re=>{I.x<=10&&I.y<=10?re.preventDefault():x.contains(re.target)||Y(!1),document.removeEventListener("pointermove",z),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",z),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",z),document.removeEventListener("pointerup",J,{capture:!0})}}},[x,Y,P]),u.useEffect(()=>{const I=()=>Y(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[Y]);const[U,te]=Wf(I=>{const z=$().filter(ie=>!ie.disabled),J=z.find(ie=>ie.ref.current===document.activeElement),re=Ff(z,I,J);re&&setTimeout(()=>re.ref.current.focus())}),D=u.useCallback((I,z,J)=>{const re=!ne.current&&!J;(b.value!==void 0&&b.value===z||re)&&(R(I),re&&(ne.current=!0))},[b.value]),_=u.useCallback(()=>x==null?void 0:x.focus(),[x]),B=u.useCallback((I,z,J)=>{const re=!ne.current&&!J;(b.value!==void 0&&b.value===z||re)&&H(I)},[b.value]),A=r==="popper"?ns:bf,K=A===ns?{side:i,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:h,collisionPadding:m,sticky:w,hideWhenDetached:g,avoidCollisions:v}:{};return p.jsx(gf,{scope:n,content:x,viewport:M,onViewportChange:C,itemRefCallback:D,selectedItem:T,onItemLeave:_,itemTextRefCallback:B,focusSelectedItem:G,selectedItemText:F,position:r,isPositioned:j,searchRef:U,children:p.jsx(Sn,{as:eC,allowPinchZoom:!0,children:p.jsx(Cn,{asChild:!0,trapped:b.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:L(o,I=>{var z;(z=b.trigger)==null||z.focus({preventScroll:!0}),I.preventDefault()}),children:p.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:p.jsx(A,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:I=>I.preventDefault(),...y,...K,onPlaced:()=>V(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:L(y.onKeyDown,I=>{const z=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!z&&I.key.length===1&&te(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let re=$().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(I.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const ie=I.target,se=re.indexOf(ie);re=re.slice(se+1)}setTimeout(()=>W(re)),I.preventDefault()}})})})})})})});vf.displayName=Jx;var tC="SelectItemAlignedPosition",bf=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Et(Rt,n),s=kt(Rt,n),[i,l]=u.useState(null),[c,f]=u.useState(null),d=ce(t,E=>f(E)),h=Vr(n),m=u.useRef(!1),w=u.useRef(!0),{viewport:g,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=s,x=u.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&c&&g&&v&&y){const E=a.trigger.getBoundingClientRect(),T=c.getBoundingClientRect(),R=a.valueNode.getBoundingClientRect(),F=y.getBoundingClientRect();if(a.dir!=="rtl"){const ie=F.left-T.left,se=R.left-ie,xe=E.left-se,Ne=E.width+xe,it=Math.max(Ne,T.width),lt=window.innerWidth-Ke,We=af(se,[Ke,Math.max(Ke,lt-it)]);i.style.minWidth=Ne+"px",i.style.left=We+"px"}else{const ie=T.right-F.right,se=window.innerWidth-R.right-ie,xe=window.innerWidth-E.right-se,Ne=E.width+xe,it=Math.max(Ne,T.width),lt=window.innerWidth-Ke,We=af(se,[Ke,Math.max(Ke,lt-it)]);i.style.minWidth=Ne+"px",i.style.right=We+"px"}const H=h(),$=window.innerHeight-Ke*2,j=g.scrollHeight,V=window.getComputedStyle(c),ne=parseInt(V.borderTopWidth,10),W=parseInt(V.paddingTop,10),G=parseInt(V.borderBottomWidth,10),Y=parseInt(V.paddingBottom,10),P=ne+W+j+Y+G,U=Math.min(v.offsetHeight*5,P),te=window.getComputedStyle(g),D=parseInt(te.paddingTop,10),_=parseInt(te.paddingBottom,10),B=E.top+E.height/2-Ke,A=$-B,K=v.offsetHeight/2,I=v.offsetTop+K,z=ne+W+I,J=P-z;if(z<=B){const ie=H.length>0&&v===H[H.length-1].ref.current;i.style.bottom="0px";const se=c.clientHeight-g.offsetTop-g.offsetHeight,xe=Math.max(A,K+(ie?_:0)+se+G),Ne=z+xe;i.style.height=Ne+"px"}else{const ie=H.length>0&&v===H[0].ref.current;i.style.top="0px";const xe=Math.max(B,ne+g.offsetTop+(ie?D:0)+K)+J;i.style.height=xe+"px",g.scrollTop=z-B+g.offsetTop}i.style.margin=`${Ke}px 0`,i.style.minHeight=U+"px",i.style.maxHeight=$+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[h,a.trigger,a.valueNode,i,c,g,v,y,a.dir,r]);we(()=>x(),[x]);const[N,M]=u.useState();we(()=>{c&&M(window.getComputedStyle(c).zIndex)},[c]);const C=u.useCallback(E=>{E&&w.current===!0&&(x(),b==null||b(),w.current=!1)},[x,b]);return p.jsx(rC,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:m,onScrollButtonChange:C,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:p.jsx(Z.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});bf.displayName=tC;var nC="SelectPopperPosition",ns=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ke,...a}=e,s=Hr(n);return p.jsx(Or,{...s,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ns.displayName=nC;var[rC,rs]=pn(Rt,{}),os="SelectViewport",yf=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=kt(os,n),s=rs(os,n),i=ce(t,a.onViewportChange),l=u.useRef(0);return p.jsxs(p.Fragment,{children:[p.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:r}),p.jsx(zr.Slot,{scope:n,children:p.jsx(Z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:L(o.onScroll,c=>{const f=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=s;if(h!=null&&h.current&&d){const m=Math.abs(l.current-f.scrollTop);if(m>0){const w=window.innerHeight-Ke*2,g=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),y=Math.max(g,v);if(y<w){const b=y+m,x=Math.min(w,b),N=b-x;d.style.height=x+"px",d.style.bottom==="0px"&&(f.scrollTop=N>0?N:0,d.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});yf.displayName=os;var wf="SelectGroup",[oC,aC]=pn(wf),xf=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=me();return p.jsx(oC,{scope:n,id:o,children:p.jsx(Z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});xf.displayName=wf;var Cf="SelectLabel",Sf=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=aC(Cf,n);return p.jsx(Z.div,{id:o.id,...r,ref:t})});Sf.displayName=Cf;var Gr="SelectItem",[sC,Nf]=pn(Gr),Mf=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,i=Et(Gr,n),l=kt(Gr,n),c=i.value===r,[f,d]=u.useState(a??""),[h,m]=u.useState(!1),w=ce(t,b=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,b,r,o)}),g=me(),v=u.useRef("touch"),y=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")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 p.jsx(sC,{scope:n,value:r,disabled:o,textId:g,isSelected:c,onItemTextChange:u.useCallback(b=>{d(x=>x||((b==null?void 0:b.textContent)??"").trim())},[]),children:p.jsx(zr.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:p.jsx(Z.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:w,onFocus:L(s.onFocus,()=>m(!0)),onBlur:L(s.onBlur,()=>m(!1)),onClick:L(s.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:L(s.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:L(s.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:L(s.onPointerMove,b=>{var x;v.current=b.pointerType,o?(x=l.onItemLeave)==null||x.call(l):v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:L(s.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:L(s.onKeyDown,b=>{var N;((N=l.searchRef)==null?void 0:N.current)!==""&&b.key===" "||(Gx.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});Mf.displayName=Gr;var Un="SelectItemText",Ef=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=Et(Un,n),i=kt(Un,n),l=Nf(Un,n),c=qx(Un,n),[f,d]=u.useState(null),h=ce(t,y=>d(y),l.onItemTextChange,y=>{var b;return(b=i.itemTextRefCallback)==null?void 0:b.call(i,y,l.value,l.disabled)}),m=f==null?void 0:f.textContent,w=u.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=c;return we(()=>(g(w),()=>v(w)),[g,v,w]),p.jsxs(p.Fragment,{children:[p.jsx(Z.span,{id:l.textId,...a,ref:h}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?er.createPortal(a.children,s.valueNode):null]})});Ef.displayName=Un;var kf="SelectItemIndicator",Df=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Nf(kf,n).isSelected?p.jsx(Z.span,{"aria-hidden":!0,...r,ref:t}):null});Df.displayName=kf;var as="SelectScrollUpButton",Tf=u.forwardRef((e,t)=>{const n=kt(as,e.__scopeSelect),r=rs(as,e.__scopeSelect),[o,a]=u.useState(!1),s=ce(t,r.onScrollButtonChange);return we(()=>{if(n.viewport&&n.isPositioned){let i=function(){const c=l.scrollTop>0;a(c)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(Of,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});Tf.displayName=as;var ss="SelectScrollDownButton",Pf=u.forwardRef((e,t)=>{const n=kt(ss,e.__scopeSelect),r=rs(ss,e.__scopeSelect),[o,a]=u.useState(!1),s=ce(t,r.onScrollButtonChange);return we(()=>{if(n.viewport&&n.isPositioned){let i=function(){const c=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<c;a(f)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?p.jsx(Of,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});Pf.displayName=ss;var Of=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=kt("SelectScrollButton",n),s=u.useRef(null),i=Vr(n),l=u.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return u.useEffect(()=>()=>l(),[l]),we(()=>{var f;const c=i().find(d=>d.ref.current===document.activeElement);(f=c==null?void 0:c.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),p.jsx(Z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:L(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:L(o.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:L(o.onPointerLeave,()=>{l()})})}),iC="SelectSeparator",_f=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(Z.div,{"aria-hidden":!0,...r,ref:t})});_f.displayName=iC;var is="SelectArrow",lC=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Hr(n),a=Et(is,n),s=kt(is,n);return a.open&&s.position==="popper"?p.jsx(_r,{...o,...r,ref:t}):null});lC.displayName=is;var cC="SelectBubbleInput",Af=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),a=ce(r,o),s=Yx(t);return u.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==t&&f){const d=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(d)}},[s,t]),p.jsx(Z.select,{...n,style:{...sf,...n.style},ref:a,defaultValue:t})});Af.displayName=cC;function If(e){return e===""||e===void 0}function Wf(e){const t=ze(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(s=>{const i=n.current+s;t(i),(function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(i)},[t]),a=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Ff(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=dC(e,Math.max(a,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function dC(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var uC=cf,$f=uf,fC=pf,pC=hf,Bf=mf,hC=yf,mC=xf,Lf=Sf,Rf=Mf,gC=Ef,vC=Df,Yf=Tf,zf=Pf,Vf=_f;const Hf=be(["w-full flex items-center justify-between gap-2","rounded-lg border border-border bg-background px-3 py-2 text-sm text-foreground","ring-offset-background","transition-[border-color,box-shadow,scale]","active:scale-[0.96]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[placeholder]:text-muted-foreground"],{variants:{size:{sm:"h-8 text-xs",md:"h-10",lg:"h-11 text-base"},isError:{true:"border-destructive focus-visible:ring-destructive",false:""}},defaultVariants:{size:"md",isError:!1}}),Gf=uC,bC=mC,jf=fC,ls=u.forwardRef(({className:e,size:t,isError:n,children:r,...o},a)=>p.jsxs($f,{ref:a,className:O("group",Hf({size:t,isError:n}),e),"aria-invalid":n||void 0,...o,children:[r,p.jsx(zt,{className:"size-4 shrink-0 text-muted-foreground transition-[transform] duration-150 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ls.displayName=$f.displayName;const cs=u.forwardRef(({className:e,...t},n)=>p.jsx(Yf,{ref:n,className:O("flex cursor-default items-center justify-center py-1 text-muted-foreground",e),...t,children:p.jsx(Xs,{className:"size-4"})}));cs.displayName=Yf.displayName;const ds=u.forwardRef(({className:e,...t},n)=>p.jsx(zf,{ref:n,className:O("flex cursor-default items-center justify-center py-1 text-muted-foreground",e),...t,children:p.jsx(zt,{className:"size-4"})}));ds.displayName=zf.displayName;const us=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(pC,{children:p.jsxs(Bf,{ref:o,position:n,sideOffset:4,className:O("z-50 min-w-32 overflow-hidden rounded-lg ring-1 ring-border/60 bg-background text-foreground shadow-md","origin-(--radix-select-content-transform-origin)","data-[state=open]:animate-dropdown-in","data-[state=closed]:animate-dropdown-out",n==="popper"&&["data-[side=bottom]:translate-y-1","data-[side=top]:-translate-y-1"],e),...r,children:[p.jsx(cs,{}),p.jsx(hC,{className:"p-1",children:t}),p.jsx(ds,{})]})}));us.displayName=Bf.displayName;const Uf=u.forwardRef(({className:e,...t},n)=>p.jsx(Lf,{ref:n,className:O("px-2 py-1.5 text-xs font-semibold text-muted-foreground",e),...t}));Uf.displayName=Lf.displayName;const Kf=u.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Rf,{ref:r,className:O("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm","outline-none","transition-colors duration-100","focus:bg-accent focus:text-accent-foreground","data-disabled:pointer-events-none data-disabled:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex size-4 items-center justify-center",children:p.jsx(vC,{children:p.jsx(yn,{className:"size-4"})})}),p.jsx(gC,{children:t})]}));Kf.displayName=Rf.displayName;const qf=u.forwardRef(({className:e,...t},n)=>p.jsx(Vf,{ref:n,className:O("-mx-1 my-1 h-px bg-border",e),...t}));qf.displayName=Vf.displayName;const Xf=u.forwardRef(({placeholder:e,size:t,isError:n,disabled:r,className:o,children:a,...s},i)=>p.jsxs(Gf,{disabled:r,...s,children:[p.jsx(ls,{ref:i,size:t,isError:n,className:o,children:p.jsx(jf,{placeholder:e})}),p.jsx(us,{children:a})]}));Xf.displayName="Select";const Zf=u.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>p.jsx("div",{ref:o,role:n?"none":"separator","aria-orientation":n?void 0:t,className:O("shrink-0 bg-border",t==="horizontal"?"h-px w-full":"h-full w-px",e),...r}));Zf.displayName="Separator";const Qf=be(["rounded-full bg-input transition-[background-color]","peer-checked:bg-primary","peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-background","peer-disabled:opacity-50"],{variants:{size:{sm:"h-4 w-7",md:"h-5 w-9",lg:"h-6 w-11"}},defaultVariants:{size:"md"}}),yC=be(["absolute top-1/2 -translate-y-1/2 rounded-full bg-white shadow-sm","transition-[translate]","peer-disabled:opacity-50"],{variants:{size:{sm:"left-0.5 size-3 peer-checked:translate-x-3",md:"left-0.5 size-4 peer-checked:translate-x-4",lg:"left-0.5 size-5 peer-checked:translate-x-5"}},defaultVariants:{size:"md"}}),Jf=u.forwardRef(({className:e,size:t,isError:n,...r},o)=>p.jsxs("span",{className:"relative inline-flex shrink-0 items-center",children:[p.jsx("input",{type:"checkbox",role:"switch",ref:o,className:O("peer absolute inset-0 z-10 cursor-pointer opacity-0","disabled:cursor-not-allowed",e),"aria-invalid":n||void 0,...r}),p.jsx("span",{"aria-hidden":"true",className:O(Qf({size:t}),n&&"ring-2 ring-destructive ring-offset-2 ring-offset-background",n&&"peer-focus-visible:ring-destructive")}),p.jsx("span",{"aria-hidden":"true",className:yC({size:t})})]}));Jf.displayName="Switch";var jr="Tabs",[wC]=Fe(jr,[$r]),ep=$r(),[xC,fs]=wC(jr),tp=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:l="automatic",...c}=e,f=bn(i),[d,h]=$e({prop:r,onChange:o,defaultProp:a??"",caller:jr});return p.jsx(xC,{scope:n,baseId:me(),value:d,onValueChange:h,orientation:s,dir:f,activationMode:l,children:p.jsx(Z.div,{dir:f,"data-orientation":s,...c,ref:t})})});tp.displayName=jr;var np="TabsList",rp=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=fs(np,n),s=ep(n);return p.jsx(Wd,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:r,children:p.jsx(Z.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});rp.displayName=np;var op="TabsTrigger",ap=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,s=fs(op,n),i=ep(n),l=lp(s.baseId,r),c=cp(s.baseId,r),f=r===s.value;return p.jsx(Fd,{asChild:!0,...i,focusable:!o,active:f,children:p.jsx(Z.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...a,ref:t,onMouseDown:L(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?s.onValueChange(r):d.preventDefault()}),onKeyDown:L(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(r)}),onFocus:L(e.onFocus,()=>{const d=s.activationMode!=="manual";!f&&!o&&d&&s.onValueChange(r)})})})});ap.displayName=op;var sp="TabsContent",ip=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...s}=e,i=fs(sp,n),l=lp(i.baseId,r),c=cp(i.baseId,r),f=r===i.value,d=u.useRef(f);return u.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),p.jsx(Te,{present:o||f,children:({present:h})=>p.jsx(Z.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:h&&a})})});ip.displayName=sp;function lp(e,t){return`${e}-trigger-${t}`}function cp(e,t){return`${e}-content-${t}`}var dp=tp,up=rp,fp=ap,pp=ip;const ps=u.forwardRef(({className:e,...t},n)=>p.jsx(dp,{ref:n,className:O("group/tabs","data-[orientation=vertical]:flex data-[orientation=vertical]:flex-row data-[orientation=vertical]:gap-6",e),...t}));ps.displayName=dp.displayName;const hs=u.forwardRef(({className:e,...t},n)=>p.jsx(up,{ref:n,className:O("inline-flex items-center gap-1 rounded-lg bg-muted p-1","data-[orientation=vertical]:flex-col data-[orientation=vertical]:h-fit data-[orientation=vertical]:items-stretch",e),...t}));hs.displayName=up.displayName;const ms=u.forwardRef(({className:e,...t},n)=>p.jsx(fp,{ref:n,className:O("inline-flex items-center justify-center gap-2 whitespace-nowrap","rounded-sm px-3 py-1.5 text-sm font-medium","text-muted-foreground select-none outline-none","transition-[color,background-color,box-shadow] duration-150","hover:text-foreground","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-muted","disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm","data-[orientation=vertical]:justify-start","[&_svg]:size-4 [&_svg]:shrink-0",e),...t}));ms.displayName=fp.displayName;const gs=u.forwardRef(({className:e,...t},n)=>p.jsx(pp,{ref:n,className:O("mt-4 outline-none","group-data-[orientation=vertical]/tabs:mt-0 group-data-[orientation=vertical]/tabs:flex-1","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));gs.displayName=pp.displayName;const hp=({items:e,listClassName:t,className:n,...r})=>p.jsxs(ps,{className:n,...r,children:[p.jsx(hs,{className:t,children:e.map(({value:o,label:a,disabled:s,icon:i})=>p.jsxs(ms,{value:o,disabled:s,children:[i,a]},o))}),e.map(({value:o,content:a})=>p.jsx(gs,{value:o,children:a},o))]});hp.displayName="Tabs";const mp=be(["w-full rounded-md border border-input bg-background","text-foreground placeholder:text-muted-foreground","transition-[color,border-color,box-shadow]","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background","resize-y","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50","read-only:bg-muted read-only:cursor-default"],{variants:{size:{sm:"px-3 py-2 text-xs",md:"px-4 py-3 text-sm",lg:"px-4 py-4 text-base"}},defaultVariants:{size:"md"}}),gp=u.forwardRef(({className:e,size:t,isError:n,...r},o)=>p.jsx("textarea",{ref:o,className:O(mp({size:t}),n&&"border-destructive focus-visible:ring-destructive",e),"aria-invalid":n||void 0,...r}));gp.displayName="Textarea";function CC(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const SC=e=>{switch(e){case"success":return EC;case"info":return DC;case"warning":return kC;case"error":return TC;default:return null}},NC=Array(12).fill(0),MC=({visible:e,className:t})=>S.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},S.createElement("div",{className:"sonner-spinner"},NC.map((n,r)=>S.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),EC=S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},S.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),kC=S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},S.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),DC=S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},S.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),TC=S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},S.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),PC=S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},S.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),S.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),OC=()=>{const[e,t]=S.useState(document.hidden);return S.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let vs=1;class _C{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,a=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:vs++,s=this.toasts.find(l=>l.id===a),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),s?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...t,id:a,title:r}),{...l,...t,id:a,dismissible:i,title:r}):l):this.addToast({title:r,...o,dismissible:i,id:a}),a},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let a=r!==void 0,s;const i=o.then(async c=>{if(s=["resolve",c],S.isValidElement(c))a=!1,this.create({id:r,type:"default",message:c});else if(IC(c)&&!c.ok){a=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,w=typeof d=="object"&&!S.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:h,...w})}else if(c instanceof Error){a=!1;const d=typeof n.error=="function"?await n.error(c):n.error,h=typeof n.description=="function"?await n.description(c):n.description,w=typeof d=="object"&&!S.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:h,...w})}else if(n.success!==void 0){a=!1;const d=typeof n.success=="function"?await n.success(c):n.success,h=typeof n.description=="function"?await n.description(c):n.description,w=typeof d=="object"&&!S.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:h,...w})}}).catch(async c=>{if(s=["reject",c],n.error!==void 0){a=!1;const f=typeof n.error=="function"?await n.error(c):n.error,d=typeof n.description=="function"?await n.description(c):n.description,m=typeof f=="object"&&!S.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:d,...m})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,f)=>i.then(()=>s[0]==="reject"?f(s[1]):c(s[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||vs++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Pe=new _C,AC=(e,t)=>{const n=(t==null?void 0:t.id)||vs++;return Pe.addToast({title:e,...t,id:n}),n},IC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",WC=AC,FC=()=>Pe.toasts,$C=()=>Pe.getActiveToasts(),BC=Object.assign(WC,{success:Pe.success,info:Pe.info,warning:Pe.warning,error:Pe.error,custom:Pe.custom,message:Pe.message,promise:Pe.promise,dismiss:Pe.dismiss,loading:Pe.loading},{getHistory:FC,getToasts:$C});CC("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ur(e){return e.label!==void 0}const LC=3,RC="24px",YC="16px",vp=4e3,zC=356,VC=14,HC=45,GC=200;function st(...e){return e.filter(Boolean).join(" ")}function jC(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const UC=e=>{var t,n,r,o,a,s,i,l,c;const{invert:f,toast:d,unstyled:h,interacting:m,setHeights:w,visibleToasts:g,heights:v,index:y,toasts:b,expanded:x,removeToast:N,defaultRichColors:M,closeButton:C,style:E,cancelButtonStyle:T,actionButtonStyle:R,className:F="",descriptionClassName:H="",duration:$,position:j,gap:V,expandByDefault:ne,classNames:W,icons:G,closeButtonAriaLabel:Y="Close toast"}=e,[P,U]=S.useState(null),[te,D]=S.useState(null),[_,B]=S.useState(!1),[A,K]=S.useState(!1),[I,z]=S.useState(!1),[J,re]=S.useState(!1),[ie,se]=S.useState(!1),[xe,Ne]=S.useState(0),[it,lt]=S.useState(0),We=S.useRef(d.duration||$||vp),mn=S.useRef(null),Me=S.useRef(null),Ss=y===0,Ns=y+1<=g,ke=d.type,mt=d.dismissible!==!1,Xn=d.className||"",Zn=d.descriptionClassName||"",gn=S.useMemo(()=>v.findIndex(X=>X.toastId===d.id)||0,[v,d.id]),Ms=S.useMemo(()=>{var X;return(X=d.closeButton)!=null?X:C},[d.closeButton,C]),Xr=S.useMemo(()=>d.duration||$||vp,[d.duration,$]),Qn=S.useRef(0),Dt=S.useRef(0),Zr=S.useRef(0),Tt=S.useRef(null),[Es,ks]=j.split("-"),Qr=S.useMemo(()=>v.reduce((X,Q,ye)=>ye>=gn?X:X+Q.height,0),[v,gn]),Jr=OC(),eo=d.invert||f,Jn=ke==="loading";Dt.current=S.useMemo(()=>gn*V+Qr,[gn,Qr]),S.useEffect(()=>{We.current=Xr},[Xr]),S.useEffect(()=>{B(!0)},[]),S.useEffect(()=>{const X=Me.current;if(X){const Q=X.getBoundingClientRect().height;return lt(Q),w(ye=>[{toastId:d.id,height:Q,position:d.position},...ye]),()=>w(ye=>ye.filter(De=>De.toastId!==d.id))}},[w,d.id]),S.useLayoutEffect(()=>{if(!_)return;const X=Me.current,Q=X.style.height;X.style.height="auto";const ye=X.getBoundingClientRect().height;X.style.height=Q,lt(ye),w(De=>De.find(ge=>ge.toastId===d.id)?De.map(ge=>ge.toastId===d.id?{...ge,height:ye}:ge):[{toastId:d.id,height:ye,position:d.position},...De])},[_,d.title,d.description,w,d.id,d.jsx,d.action,d.cancel]);const qe=S.useCallback(()=>{K(!0),Ne(Dt.current),w(X=>X.filter(Q=>Q.toastId!==d.id)),setTimeout(()=>{N(d)},GC)},[d,N,w,Dt]);S.useEffect(()=>{if(d.promise&&ke==="loading"||d.duration===1/0||d.type==="loading")return;let X;return x||m||Jr?(()=>{if(Zr.current<Qn.current){const De=new Date().getTime()-Qn.current;We.current=We.current-De}Zr.current=new Date().getTime()})():(()=>{We.current!==1/0&&(Qn.current=new Date().getTime(),X=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),qe()},We.current))})(),()=>clearTimeout(X)},[x,m,d,ke,Jr,qe]),S.useEffect(()=>{d.delete&&(qe(),d.onDismiss==null||d.onDismiss.call(d,d))},[qe,d.delete]);function oe(){var X;if(G!=null&&G.loading){var Q;return S.createElement("div",{className:st(W==null?void 0:W.loader,d==null||(Q=d.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":ke==="loading"},G.loading)}return S.createElement(MC,{className:st(W==null?void 0:W.loader,d==null||(X=d.classNames)==null?void 0:X.loader),visible:ke==="loading"})}const de=d.icon||(G==null?void 0:G[ke])||SC(ke);var ee,le;return S.createElement("li",{tabIndex:0,ref:Me,className:st(F,Xn,W==null?void 0:W.toast,d==null||(t=d.classNames)==null?void 0:t.toast,W==null?void 0:W.default,W==null?void 0:W[ke],d==null||(n=d.classNames)==null?void 0:n[ke]),"data-sonner-toast":"","data-rich-colors":(ee=d.richColors)!=null?ee:M,"data-styled":!(d.jsx||d.unstyled||h),"data-mounted":_,"data-promise":!!d.promise,"data-swiped":ie,"data-removed":A,"data-visible":Ns,"data-y-position":Es,"data-x-position":ks,"data-index":y,"data-front":Ss,"data-swiping":I,"data-dismissible":mt,"data-type":ke,"data-invert":eo,"data-swipe-out":J,"data-swipe-direction":te,"data-expanded":!!(x||ne&&_),"data-testid":d.testId,style:{"--index":y,"--toasts-before":y,"--z-index":b.length-y,"--offset":`${A?xe:Dt.current}px`,"--initial-height":ne?"auto":`${it}px`,...E,...d.style},onDragEnd:()=>{z(!1),U(null),Tt.current=null},onPointerDown:X=>{X.button!==2&&(Jn||!mt||(mn.current=new Date,Ne(Dt.current),X.target.setPointerCapture(X.pointerId),X.target.tagName!=="BUTTON"&&(z(!0),Tt.current={x:X.clientX,y:X.clientY})))},onPointerUp:()=>{var X,Q,ye;if(J||!mt)return;Tt.current=null;const De=Number(((X=Me.current)==null?void 0:X.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vn=Number(((Q=Me.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ge=new Date().getTime()-((ye=mn.current)==null?void 0:ye.getTime()),Ee=P==="x"?De:vn,to=Math.abs(Ee)/ge;if(Math.abs(Ee)>=HC||to>.11){Ne(Dt.current),d.onDismiss==null||d.onDismiss.call(d,d),D(P==="x"?De>0?"right":"left":vn>0?"down":"up"),qe(),re(!0);return}else{var Xe,Ze;(Xe=Me.current)==null||Xe.style.setProperty("--swipe-amount-x","0px"),(Ze=Me.current)==null||Ze.style.setProperty("--swipe-amount-y","0px")}se(!1),z(!1),U(null)},onPointerMove:X=>{var Q,ye,De;if(!Tt.current||!mt||((Q=window.getSelection())==null?void 0:Q.toString().length)>0)return;const ge=X.clientY-Tt.current.y,Ee=X.clientX-Tt.current.x;var to;const Xe=(to=e.swipeDirections)!=null?to:jC(j);!P&&(Math.abs(Ee)>1||Math.abs(ge)>1)&&U(Math.abs(Ee)>Math.abs(ge)?"x":"y");let Ze={x:0,y:0};const _p=Yt=>1/(1.5+Math.abs(Yt)/20);if(P==="y"){if(Xe.includes("top")||Xe.includes("bottom"))if(Xe.includes("top")&&ge<0||Xe.includes("bottom")&&ge>0)Ze.y=ge;else{const Yt=ge*_p(ge);Ze.y=Math.abs(Yt)<Math.abs(ge)?Yt:ge}}else if(P==="x"&&(Xe.includes("left")||Xe.includes("right")))if(Xe.includes("left")&&Ee<0||Xe.includes("right")&&Ee>0)Ze.x=Ee;else{const Yt=Ee*_p(Ee);Ze.x=Math.abs(Yt)<Math.abs(Ee)?Yt:Ee}(Math.abs(Ze.x)>0||Math.abs(Ze.y)>0)&&se(!0),(ye=Me.current)==null||ye.style.setProperty("--swipe-amount-x",`${Ze.x}px`),(De=Me.current)==null||De.style.setProperty("--swipe-amount-y",`${Ze.y}px`)}},Ms&&!d.jsx&&ke!=="loading"?S.createElement("button",{"aria-label":Y,"data-disabled":Jn,"data-close-button":!0,onClick:Jn||!mt?()=>{}:()=>{qe(),d.onDismiss==null||d.onDismiss.call(d,d)},className:st(W==null?void 0:W.closeButton,d==null||(r=d.classNames)==null?void 0:r.closeButton)},(le=G==null?void 0:G.close)!=null?le:PC):null,(ke||d.icon||d.promise)&&d.icon!==null&&((G==null?void 0:G[ke])!==null||d.icon)?S.createElement("div",{"data-icon":"",className:st(W==null?void 0:W.icon,d==null||(o=d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||oe():null,d.type!=="loading"?de:null):null,S.createElement("div",{"data-content":"",className:st(W==null?void 0:W.content,d==null||(a=d.classNames)==null?void 0:a.content)},S.createElement("div",{"data-title":"",className:st(W==null?void 0:W.title,d==null||(s=d.classNames)==null?void 0:s.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?S.createElement("div",{"data-description":"",className:st(H,Zn,W==null?void 0:W.description,d==null||(i=d.classNames)==null?void 0:i.description)},typeof d.description=="function"?d.description():d.description):null),S.isValidElement(d.cancel)?d.cancel:d.cancel&&Ur(d.cancel)?S.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||T,onClick:X=>{Ur(d.cancel)&&mt&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,X),qe())},className:st(W==null?void 0:W.cancelButton,d==null||(l=d.classNames)==null?void 0:l.cancelButton)},d.cancel.label):null,S.isValidElement(d.action)?d.action:d.action&&Ur(d.action)?S.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||R,onClick:X=>{Ur(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,X),!X.defaultPrevented&&qe())},className:st(W==null?void 0:W.actionButton,d==null||(c=d.classNames)==null?void 0:c.actionButton)},d.action.label):null)};function bp(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function KC(e,t){const n={};return[e,t].forEach((r,o)=>{const a=o===1,s=a?"--mobile-offset":"--offset",i=a?YC:RC;function l(c){["top","right","bottom","left"].forEach(f=>{n[`${s}-${f}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${s}-${c}`]=i:n[`${s}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(i)}),n}const qC=S.forwardRef(function(t,n){const{id:r,invert:o,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:l,className:c,offset:f,mobileOffset:d,theme:h="light",richColors:m,duration:w,style:g,visibleToasts:v=LC,toastOptions:y,dir:b=bp(),gap:x=VC,icons:N,containerAriaLabel:M="Notifications"}=t,[C,E]=S.useState([]),T=S.useMemo(()=>r?C.filter(_=>_.toasterId===r):C.filter(_=>!_.toasterId),[C,r]),R=S.useMemo(()=>Array.from(new Set([a].concat(T.filter(_=>_.position).map(_=>_.position)))),[T,a]),[F,H]=S.useState([]),[$,j]=S.useState(!1),[V,ne]=S.useState(!1),[W,G]=S.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=S.useRef(null),P=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=S.useRef(null),te=S.useRef(!1),D=S.useCallback(_=>{E(B=>{var A;return(A=B.find(K=>K.id===_.id))!=null&&A.delete||Pe.dismiss(_.id),B.filter(({id:K})=>K!==_.id)})},[]);return S.useEffect(()=>Pe.subscribe(_=>{if(_.dismiss){requestAnimationFrame(()=>{E(B=>B.map(A=>A.id===_.id?{...A,delete:!0}:A))});return}setTimeout(()=>{no.flushSync(()=>{E(B=>{const A=B.findIndex(K=>K.id===_.id);return A!==-1?[...B.slice(0,A),{...B[A],..._},...B.slice(A+1)]:[_,...B]})})})}),[C]),S.useEffect(()=>{if(h!=="system"){G(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const _=window.matchMedia("(prefers-color-scheme: dark)");try{_.addEventListener("change",({matches:B})=>{G(B?"dark":"light")})}catch{_.addListener(({matches:A})=>{try{G(A?"dark":"light")}catch(K){console.error(K)}})}},[h]),S.useEffect(()=>{C.length<=1&&j(!1)},[C]),S.useEffect(()=>{const _=B=>{var A;if(s.every(z=>B[z]||B.code===z)){var I;j(!0),(I=Y.current)==null||I.focus()}B.code==="Escape"&&(document.activeElement===Y.current||(A=Y.current)!=null&&A.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[s]),S.useEffect(()=>{if(Y.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,te.current=!1)}},[Y.current]),S.createElement("section",{ref:n,"aria-label":`${M} ${P}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((_,B)=>{var A;const[K,I]=_.split("-");return T.length?S.createElement("ol",{key:_,dir:b==="auto"?bp():b,tabIndex:-1,ref:Y,className:c,"data-sonner-toaster":!0,"data-sonner-theme":W,"data-y-position":K,"data-x-position":I,style:{"--front-toast-height":`${((A=F[0])==null?void 0:A.height)||0}px`,"--width":`${zC}px`,"--gap":`${x}px`,...g,...KC(f,d)},onBlur:z=>{te.current&&!z.currentTarget.contains(z.relatedTarget)&&(te.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||te.current||(te.current=!0,U.current=z.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{V||j(!1)},onDragEnd:()=>j(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||ne(!0)},onPointerUp:()=>ne(!1)},T.filter(z=>!z.position&&B===0||z.position===_).map((z,J)=>{var re,ie;return S.createElement(UC,{key:z.id,icons:N,index:J,toast:z,defaultRichColors:m,duration:(re=y==null?void 0:y.duration)!=null?re:w,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:o,visibleToasts:v,closeButton:(ie=y==null?void 0:y.closeButton)!=null?ie:l,interacting:V,position:_,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:D,toasts:T.filter(se=>se.position==z.position),heights:F.filter(se=>se.position==z.position),setHeights:H,expandByDefault:i,gap:x,expanded:$,swipeDirections:t.swipeDirections})})):null}))}),yp=({...e})=>p.jsx(qC,{theme:"light",richColors:!0,position:"top-center",closeButton:!0,...e});yp.displayName="Toaster";var[Kr]=Fe("Tooltip",[Ct]),qr=Ct(),wp="TooltipProvider",XC=700,bs="tooltip.open",[ZC,ys]=Kr(wp),xp=e=>{const{__scopeTooltip:t,delayDuration:n=XC,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,s=u.useRef(!0),i=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),p.jsx(ZC,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:u.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:a})};xp.displayName=wp;var Kn="Tooltip",[QC,qn]=Kr(Kn),Cp=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,l=ys(Kn,e.__scopeTooltip),c=qr(t),[f,d]=u.useState(null),h=me(),m=u.useRef(0),w=s??l.disableHoverableContent,g=i??l.delayDuration,v=u.useRef(!1),[y,b]=$e({prop:r,defaultProp:o??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(bs))):l.onClose(),a==null||a(E)},caller:Kn}),x=u.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),N=u.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,b(!0)},[b]),M=u.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),C=u.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,b(!0),m.current=0},g)},[g,b]);return u.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),p.jsx(Dn,{...c,children:p.jsx(QC,{scope:t,contentId:h,open:y,stateAttribute:x,trigger:f,onTriggerChange:d,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?C():N()},[l.isOpenDelayedRef,C,N]),onTriggerLeave:u.useCallback(()=>{w?M():(window.clearTimeout(m.current),m.current=0)},[M,w]),onOpen:N,onClose:M,disableHoverableContent:w,children:n})})};Cp.displayName=Kn;var ws="TooltipTrigger",Sp=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=qn(ws,n),a=ys(ws,n),s=qr(n),i=u.useRef(null),l=ce(t,i,o.onTriggerChange),c=u.useRef(!1),f=u.useRef(!1),d=u.useCallback(()=>c.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),p.jsx(Tn,{asChild:!0,...s,children:p.jsx(Z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:L(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:L(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:L(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:L(e.onBlur,o.onClose),onClick:L(e.onClick,o.onClose)})})});Sp.displayName=ws;var xs="TooltipPortal",[JC,eS]=Kr(xs,{forceMount:void 0}),Np=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=qn(xs,t);return p.jsx(JC,{scope:t,forceMount:n,children:p.jsx(Te,{present:n||a.open,children:p.jsx(jt,{asChild:!0,container:o,children:r})})})};Np.displayName=xs;var hn="TooltipContent",Mp=u.forwardRef((e,t)=>{const n=eS(hn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=qn(hn,e.__scopeTooltip);return p.jsx(Te,{present:r||s.open,children:s.disableHoverableContent?p.jsx(Ep,{side:o,...a,ref:t}):p.jsx(tS,{side:o,...a,ref:t})})}),tS=u.forwardRef((e,t)=>{const n=qn(hn,e.__scopeTooltip),r=ys(hn,e.__scopeTooltip),o=u.useRef(null),a=ce(t,o),[s,i]=u.useState(null),{trigger:l,onClose:c}=n,f=o.current,{onPointerInTransitChange:d}=r,h=u.useCallback(()=>{i(null),d(!1)},[d]),m=u.useCallback((w,g)=>{const v=w.currentTarget,y={x:w.clientX,y:w.clientY},b=sS(y,v.getBoundingClientRect()),x=iS(y,b),N=lS(g.getBoundingClientRect()),M=dS([...x,...N]);i(M),d(!0)},[d]);return u.useEffect(()=>()=>h(),[h]),u.useEffect(()=>{if(l&&f){const w=v=>m(v,f),g=v=>m(v,l);return l.addEventListener("pointerleave",w),f.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",w),f.removeEventListener("pointerleave",g)}}},[l,f,m,h]),u.useEffect(()=>{if(s){const w=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},b=(l==null?void 0:l.contains(v))||(f==null?void 0:f.contains(v)),x=!cS(y,s);b?h():x&&(h(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,f,s,c,h]),p.jsx(Ep,{...e,ref:a})}),[nS,rS]=Kr(Kn,{isInside:!1}),oS=Fp("TooltipContent"),Ep=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,l=qn(hn,n),c=qr(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(bs,f),()=>document.removeEventListener(bs,f)),[f]),u.useEffect(()=>{if(l.trigger){const d=h=>{const m=h.target;m!=null&&m.contains(l.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,f]),p.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:p.jsxs(Or,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.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:[p.jsx(oS,{children:r}),p.jsx(nS,{scope:n,isInside:!0,children:p.jsx(Vx,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Mp.displayName=hn;var kp="TooltipArrow",aS=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=qr(n);return rS(kp,n).isInside?null:p.jsx(_r,{...o,...r,ref:t})});aS.displayName=kp;function sS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function iS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function lS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function cS(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],l=t[s],c=i.x,f=i.y,d=l.x,h=l.y;f>r!=h>r&&n<(d-c)*(r-f)/(h-f)+c&&(o=!o)}return o}function dS(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),uS(t)}function uS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var fS=xp,pS=Cp,hS=Sp,mS=Np,Dp=Mp;const gS=fS,Tp=pS,Pp=hS,Cs=u.forwardRef(({className:e,sideOffset:t=6,...n},r)=>p.jsx(mS,{children:p.jsx(Dp,{ref:r,sideOffset:t,className:O("z-50 overflow-hidden rounded-md bg-foreground px-3 py-1.5","text-xs text-background font-medium","origin-(--radix-tooltip-content-transform-origin)","data-[state=delayed-open]:animate-tooltip-in","data-[state=instant-open]:animate-tooltip-in","data-[state=closed]:animate-tooltip-out",e),...n})}));Cs.displayName=Dp.displayName;const Op=({content:e,children:t,side:n,align:r,sideOffset:o,...a})=>p.jsxs(Tp,{...a,children:[p.jsx(Pp,{asChild:!0,children:t}),p.jsx(Cs,{side:n,align:r,sideOffset:o,children:e})]});Op.displayName="Tooltip",k.Accordion=fi,k.AccordionContent=bo,k.AccordionItem=go,k.AccordionRoot=mo,k.AccordionTrigger=vo,k.Alert=hi,k.AlertDescription=gi,k.AlertTitle=mi,k.AspectRatio=yi,k.Avatar=xi,k.Badge=Si,k.Button=Mi,k.Calendar=ka,k.Checkbox=ki,k.ComboBox=Dc,k.ComboBoxContent=Cc,k.ComboBoxEmpty=Nc,k.ComboBoxGroup=Mc,k.ComboBoxItem=Sc,k.ComboBoxRoot=kc,k.ComboBoxSeparator=Ec,k.ComboBoxTrigger=oa,k.ComboBoxTriggerVariants=xc,k.DataTable=Oc,k.DatePicker=Nd,k.DatePickerContent=Sd,k.DatePickerRoot=Cd,k.DatePickerTrigger=Ea,k.Dialog=Td,k.DialogClose=kd,k.DialogContent=Ta,k.DialogDescription=Aa,k.DialogFooter=Oa,k.DialogHeader=Pa,k.DialogOverlay=Da,k.DialogPortal=Dd,k.DialogRoot=Md,k.DialogTitle=_a,k.DialogTrigger=Ed,k.DropdownMenu=zu,k.DropdownMenuCheckboxItem=Bu,k.DropdownMenuContent=Ga,k.DropdownMenuGroup=Wx,k.DropdownMenuItem=ja,k.DropdownMenuLabel=Ua,k.DropdownMenuPortal=Fx,k.DropdownMenuRadioGroup=Bx,k.DropdownMenuRadioItem=Lu,k.DropdownMenuRoot=Fu,k.DropdownMenuSeparator=Ka,k.DropdownMenuSub=$x,k.DropdownMenuSubContent=Yu,k.DropdownMenuSubTrigger=Ru,k.DropdownMenuTrigger=$u,k.Field=Vu,k.FieldMessage=Gu,k.Input=Ku,k.InputAddon=Xu,k.InputGroup=qu,k.Label=Hu,k.NativeSelect=Qu,k.Pagination=Ju,k.PaginationEllipsis=es,k.PaginationItem=Za,k.PaginationNext=Ja,k.PaginationPrev=Qa,k.PaginationRoot=qa,k.Popover=wc,k.PopoverAnchor=yb,k.PopoverClose=bb,k.PopoverContent=Wt,k.PopoverRoot=on,k.PopoverTrigger=Ir,k.Progress=ef,k.Radio=nf,k.RadioGroup=of,k.RadioGroupContext=ts,k.Select=Xf,k.SelectContent=us,k.SelectGroup=bC,k.SelectItem=Kf,k.SelectLabel=Uf,k.SelectRoot=Gf,k.SelectScrollDownButton=ds,k.SelectScrollUpButton=cs,k.SelectSeparator=qf,k.SelectTrigger=ls,k.SelectValue=jf,k.Separator=Zf,k.Skeleton=da,k.Switch=Jf,k.Table=sa,k.TableBody=la,k.TableCaption=Pc,k.TableCell=On,k.TableFooter=Tc,k.TableHead=ca,k.TableHeader=ia,k.TableRow=an,k.Tabs=hp,k.TabsContent=gs,k.TabsList=hs,k.TabsRoot=ps,k.TabsTrigger=ms,k.Textarea=gp,k.Toaster=yp,k.Tooltip=Op,k.TooltipContent=Cs,k.TooltipProvider=gS,k.TooltipRoot=Tp,k.TooltipTrigger=Pp,k.accordionContentVariants=di,k.accordionRootVariants=ui,k.accordionTriggerVariants=ci,k.alertVariants=pi,k.avatarVariants=wi,k.badgeVariants=Ci,k.buttonVariants=Ni,k.checkboxVariants=Ei,k.cn=O,k.datePickerTriggerVariants=xd,k.inputVariants=Uu,k.nativeSelectVariants=Zu,k.radioGroupVariants=rf,k.radioVariants=tf,k.selectTriggerVariants=Hf,k.switchTrackVariants=Qf,k.textareaVariants=mp,k.toast=BC,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})}));