lizaui 8.0.0 → 8.0.1

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../chunks/textarea-D9X4fUkV.js"),r=require("../chunks/jsx-runtime-BjzqJBtL.js"),G=require("react"),b=require("../chunks/utils-CxdrMFeI.js"),Wa=require("../chunks/label-error-B8Rq-HGY.js"),k=require("../chunks/index-6ER8bShj.js"),I=require("../chunks/select-DGSPwoy8.js"),U=require("../chunks/index-BydcKEwP.js"),cn=require("../chunks/index-nwdlcB7h.js"),bt=require("../chunks/scroll-area-B0mWCpSW.js"),Ya=require("react-dom"),Ee=require("../chunks/button-DFrxQHAW.js");function Xa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=Xa(G);var Za="Label",un=i.forwardRef((e,t)=>r.jsxRuntimeExports.jsx(c.Primitive.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));un.displayName=Za;var Ja=un;function Qa({className:e,...t}){return r.jsxRuntimeExports.jsx(Ja,{"data-slot":"label",className:b.cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}var et="rovingFocusGroup.onEntryFocus",es={bubbles:!1,cancelable:!0},we="RovingFocusGroup",[it,ln,ts]=I.createCollection(we),[ns,ae]=c.createContextScope(we,[ts]),[os,rs]=ns(we),dn=i.forwardRef((e,t)=>r.jsxRuntimeExports.jsx(it.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsxRuntimeExports.jsx(it.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsxRuntimeExports.jsx(as,{...e,ref:t})})}));dn.displayName=we;var as=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:a=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:d=!1,...p}=e,v=i.useRef(null),g=k.useComposedRefs(t,v),x=U.useDirection(s),[h,E]=c.useControllableState({prop:u,defaultProp:l??null,onChange:m,caller:we}),[j,M]=i.useState(!1),C=c.useCallbackRef(f),y=ln(n),_=i.useRef(!1),[S,T]=i.useState(0);return i.useEffect(()=>{const $=v.current;if($)return $.addEventListener(et,C),()=>$.removeEventListener(et,C)},[C]),r.jsxRuntimeExports.jsx(os,{scope:n,orientation:o,dir:x,loop:a,currentTabStopId:h,onItemFocus:i.useCallback($=>E($),[E]),onItemShiftTab:i.useCallback(()=>M(!0),[]),onFocusableItemAdd:i.useCallback(()=>T($=>$+1),[]),onFocusableItemRemove:i.useCallback(()=>T($=>$-1),[]),children:r.jsxRuntimeExports.jsx(c.Primitive.div,{tabIndex:j||S===0?-1:0,"data-orientation":o,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:c.composeEventHandlers(e.onMouseDown,()=>{_.current=!0}),onFocus:c.composeEventHandlers(e.onFocus,$=>{const L=!_.current;if($.target===$.currentTarget&&L&&!j){const F=new CustomEvent(et,es);if($.currentTarget.dispatchEvent(F),!F.defaultPrevented){const B=y().filter(q=>q.focusable),Q=B.find(q=>q.active),ce=B.find(q=>q.id===h),ee=[Q,ce,...B].filter(Boolean).map(q=>q.ref.current);fn(ee,d)}}_.current=!1}),onBlur:c.composeEventHandlers(e.onBlur,()=>M(!1))})})}),pn="RovingFocusGroupItem",mn=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:s,children:u,...l}=e,m=c.useId(),f=s||m,d=rs(pn,n),p=d.currentTabStopId===f,v=ln(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:h}=d;return i.useEffect(()=>{if(o)return g(),()=>x()},[o,g,x]),r.jsxRuntimeExports.jsx(it.ItemSlot,{scope:n,id:f,focusable:o,active:a,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:c.composeEventHandlers(e.onMouseDown,E=>{o?d.onItemFocus(f):E.preventDefault()}),onFocus:c.composeEventHandlers(e.onFocus,()=>d.onItemFocus(f)),onKeyDown:c.composeEventHandlers(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){d.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const j=cs(E,d.orientation,d.dir);if(j!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let C=v().filter(y=>y.focusable).map(y=>y.ref.current);if(j==="last")C.reverse();else if(j==="prev"||j==="next"){j==="prev"&&C.reverse();const y=C.indexOf(E.currentTarget);C=d.loop?us(C,y+1):C.slice(y+1)}setTimeout(()=>fn(C))}}),children:typeof u=="function"?u({isCurrentTabStop:p,hasTabStop:h!=null}):u})})});mn.displayName=pn;var ss={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function is(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cs(e,t,n){const o=is(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return ss[o]}function fn(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function us(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var He=dn,Ge=mn,ct=["Enter"," "],ls=["ArrowDown","PageUp","Home"],xn=["ArrowUp","PageDown","End"],ds=[...ls,...xn],ps={ltr:[...ct,"ArrowRight"],rtl:[...ct,"ArrowLeft"]},ms={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Me="Menu",[je,fs,xs]=I.createCollection(Me),[le,Et]=c.createContextScope(Me,[xs,I.createPopperScope,ae]),Se=I.createPopperScope(),vn=ae(),[gn,se]=le(Me),[vs,ye]=le(Me),Rn=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:a,onOpenChange:s,modal:u=!0}=e,l=Se(t),[m,f]=i.useState(null),d=i.useRef(!1),p=c.useCallbackRef(s),v=U.useDirection(a);return i.useEffect(()=>{const g=()=>{d.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>d.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),r.jsxRuntimeExports.jsx(I.Root2,{...l,children:r.jsxRuntimeExports.jsx(gn,{scope:t,open:n,onOpenChange:p,content:m,onContentChange:f,children:r.jsxRuntimeExports.jsx(vs,{scope:t,onClose:i.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:v,modal:u,children:o})})})};Rn.displayName=Me;var gs="MenuAnchor",jt=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,a=Se(n);return r.jsxRuntimeExports.jsx(I.Anchor,{...a,...o,ref:t})});jt.displayName=gs;var Ct="MenuPortal",[Rs,hn]=le(Ct,{forceMount:void 0}),bn=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:a}=e,s=se(Ct,t);return r.jsxRuntimeExports.jsx(Rs,{scope:t,forceMount:n,children:r.jsxRuntimeExports.jsx(c.Presence,{present:n||s.open,children:r.jsxRuntimeExports.jsx(c.Portal,{asChild:!0,container:a,children:o})})})};bn.displayName=Ct;var W="MenuContent",[hs,wt]=le(W),En=i.forwardRef((e,t)=>{const n=hn(W,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,s=se(W,e.__scopeMenu),u=ye(W,e.__scopeMenu);return r.jsxRuntimeExports.jsx(je.Provider,{scope:e.__scopeMenu,children:r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:r.jsxRuntimeExports.jsx(je.Slot,{scope:e.__scopeMenu,children:u.modal?r.jsxRuntimeExports.jsx(bs,{...a,ref:t}):r.jsxRuntimeExports.jsx(Es,{...a,ref:t})})})})}),bs=i.forwardRef((e,t)=>{const n=se(W,e.__scopeMenu),o=i.useRef(null),a=k.useComposedRefs(t,o);return i.useEffect(()=>{const s=o.current;if(s)return c.hideOthers(s)},[]),r.jsxRuntimeExports.jsx(Mt,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:c.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Es=i.forwardRef((e,t)=>{const n=se(W,e.__scopeMenu);return r.jsxRuntimeExports.jsx(Mt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),js=k.createSlot("MenuContent.ScrollLock"),Mt=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEntryFocus:m,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:v,onDismiss:g,disableOutsideScroll:x,...h}=e,E=se(W,n),j=ye(W,n),M=Se(n),C=vn(n),y=fs(n),[_,S]=i.useState(null),T=i.useRef(null),$=k.useComposedRefs(t,T,E.onContentChange),L=i.useRef(0),F=i.useRef(""),B=i.useRef(0),Q=i.useRef(null),ce=i.useRef("right"),X=i.useRef(0),ee=x?c.ReactRemoveScroll:i.Fragment,q=x?{as:js,allowPinchZoom:!0}:void 0,Re=N=>{const ne=F.current+N,J=y().filter(A=>!A.disabled),R=document.activeElement,P=J.find(A=>A.ref.current===R)?.textValue,D=J.map(A=>A.textValue),w=Ts(D,ne,P),O=J.find(A=>A.textValue===w)?.ref.current;(function A(H){F.current=H,window.clearTimeout(L.current),H!==""&&(L.current=window.setTimeout(()=>A(""),1e3))})(ne),O&&setTimeout(()=>O.focus())};i.useEffect(()=>()=>window.clearTimeout(L.current),[]),c.useFocusGuards();const te=i.useCallback(N=>ce.current===Q.current?.side&&ks(N,Q.current?.area),[]);return r.jsxRuntimeExports.jsx(hs,{scope:n,searchRef:F,onItemEnter:i.useCallback(N=>{te(N)&&N.preventDefault()},[te]),onItemLeave:i.useCallback(N=>{te(N)||(T.current?.focus(),S(null))},[te]),onTriggerLeave:i.useCallback(N=>{te(N)&&N.preventDefault()},[te]),pointerGraceTimerRef:B,onPointerGraceIntentChange:i.useCallback(N=>{Q.current=N},[]),children:r.jsxRuntimeExports.jsx(ee,{...q,children:r.jsxRuntimeExports.jsx(c.FocusScope,{asChild:!0,trapped:a,onMountAutoFocus:c.composeEventHandlers(s,N=>{N.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:r.jsxRuntimeExports.jsx(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:v,onDismiss:g,children:r.jsxRuntimeExports.jsx(He,{asChild:!0,...C,dir:j.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:S,onEntryFocus:c.composeEventHandlers(m,N=>{j.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:r.jsxRuntimeExports.jsx(I.Content,{role:"menu","aria-orientation":"vertical","data-state":Ln(E.open),"data-radix-menu-content":"",dir:j.dir,...M,...h,ref:$,style:{outline:"none",...h.style},onKeyDown:c.composeEventHandlers(h.onKeyDown,N=>{const J=N.target.closest("[data-radix-menu-content]")===N.currentTarget,R=N.ctrlKey||N.altKey||N.metaKey,P=N.key.length===1;J&&(N.key==="Tab"&&N.preventDefault(),!R&&P&&Re(N.key));const D=T.current;if(N.target!==D||!ds.includes(N.key))return;N.preventDefault();const O=y().filter(A=>!A.disabled).map(A=>A.ref.current);xn.includes(N.key)&&O.reverse(),As(O)}),onBlur:c.composeEventHandlers(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(L.current),F.current="")}),onPointerMove:c.composeEventHandlers(e.onPointerMove,Ce(N=>{const ne=N.target,J=X.current!==N.clientX;if(N.currentTarget.contains(ne)&&J){const R=N.clientX>X.current?"right":"left";ce.current=R,X.current=N.clientX}}))})})})})})})});En.displayName=W;var Cs="MenuGroup",St=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"group",...o,ref:t})});St.displayName=Cs;var ws="MenuLabel",jn=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsxRuntimeExports.jsx(c.Primitive.div,{...o,ref:t})});jn.displayName=ws;var Te="MenuItem",Zt="menu.itemSelect",Ke=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...a}=e,s=i.useRef(null),u=ye(Te,e.__scopeMenu),l=wt(Te,e.__scopeMenu),m=k.useComposedRefs(t,s),f=i.useRef(!1),d=()=>{const p=s.current;if(!n&&p){const v=new CustomEvent(Zt,{bubbles:!0,cancelable:!0});p.addEventListener(Zt,g=>o?.(g),{once:!0}),c.dispatchDiscreteCustomEvent(p,v),v.defaultPrevented?f.current=!1:u.onClose()}};return r.jsxRuntimeExports.jsx(Cn,{...a,ref:m,disabled:n,onClick:c.composeEventHandlers(e.onClick,d),onPointerDown:p=>{e.onPointerDown?.(p),f.current=!0},onPointerUp:c.composeEventHandlers(e.onPointerUp,p=>{f.current||p.currentTarget?.click()}),onKeyDown:c.composeEventHandlers(e.onKeyDown,p=>{const v=l.searchRef.current!=="";n||v&&p.key===" "||ct.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Ke.displayName=Te;var Cn=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:a,...s}=e,u=wt(Te,n),l=vn(n),m=i.useRef(null),f=k.useComposedRefs(t,m),[d,p]=i.useState(!1),[v,g]=i.useState("");return i.useEffect(()=>{const x=m.current;x&&g((x.textContent??"").trim())},[s.children]),r.jsxRuntimeExports.jsx(je.ItemSlot,{scope:n,disabled:o,textValue:a??v,children:r.jsxRuntimeExports.jsx(Ge,{asChild:!0,...l,focusable:!o,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:f,onPointerMove:c.composeEventHandlers(e.onPointerMove,Ce(x=>{o?u.onItemLeave(x):(u.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,Ce(x=>u.onItemLeave(x))),onFocus:c.composeEventHandlers(e.onFocus,()=>p(!0)),onBlur:c.composeEventHandlers(e.onBlur,()=>p(!1))})})})}),Ms="MenuCheckboxItem",wn=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...a}=e;return r.jsxRuntimeExports.jsx(Pn,{scope:e.__scopeMenu,checked:n,children:r.jsxRuntimeExports.jsx(Ke,{role:"menuitemcheckbox","aria-checked":Oe(n)?"mixed":n,...a,ref:t,"data-state":Pt(n),onSelect:c.composeEventHandlers(a.onSelect,()=>o?.(Oe(n)?!0:!n),{checkForDefaultPrevented:!1})})})});wn.displayName=Ms;var Mn="MenuRadioGroup",[Ss,ys]=le(Mn,{value:void 0,onValueChange:()=>{}}),Sn=i.forwardRef((e,t)=>{const{value:n,onValueChange:o,...a}=e,s=c.useCallbackRef(o);return r.jsxRuntimeExports.jsx(Ss,{scope:e.__scopeMenu,value:n,onValueChange:s,children:r.jsxRuntimeExports.jsx(St,{...a,ref:t})})});Sn.displayName=Mn;var yn="MenuRadioItem",_n=i.forwardRef((e,t)=>{const{value:n,...o}=e,a=ys(yn,e.__scopeMenu),s=n===a.value;return r.jsxRuntimeExports.jsx(Pn,{scope:e.__scopeMenu,checked:s,children:r.jsxRuntimeExports.jsx(Ke,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Pt(s),onSelect:c.composeEventHandlers(o.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});_n.displayName=yn;var yt="MenuItemIndicator",[Pn,_s]=le(yt,{checked:!1}),Nn=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...a}=e,s=_s(yt,n);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||Oe(s.checked)||s.checked===!0,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{...a,ref:t,"data-state":Pt(s.checked)})})});Nn.displayName=yt;var Ps="MenuSeparator",In=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});In.displayName=Ps;var Ns="MenuArrow",An=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,a=Se(n);return r.jsxRuntimeExports.jsx(I.Arrow,{...a,...o,ref:t})});An.displayName=Ns;var _t="MenuSub",[Is,Dn]=le(_t),Tn=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:a}=e,s=se(_t,t),u=Se(t),[l,m]=i.useState(null),[f,d]=i.useState(null),p=c.useCallbackRef(a);return i.useEffect(()=>(s.open===!1&&p(!1),()=>p(!1)),[s.open,p]),r.jsxRuntimeExports.jsx(I.Root2,{...u,children:r.jsxRuntimeExports.jsx(gn,{scope:t,open:o,onOpenChange:p,content:f,onContentChange:d,children:r.jsxRuntimeExports.jsx(Is,{scope:t,contentId:c.useId(),triggerId:c.useId(),trigger:l,onTriggerChange:m,children:n})})})};Tn.displayName=_t;var be="MenuSubTrigger",On=i.forwardRef((e,t)=>{const n=se(be,e.__scopeMenu),o=ye(be,e.__scopeMenu),a=Dn(be,e.__scopeMenu),s=wt(be,e.__scopeMenu),u=i.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:m}=s,f={__scopeMenu:e.__scopeMenu},d=i.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return i.useEffect(()=>d,[d]),i.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),m(null)}},[l,m]),r.jsxRuntimeExports.jsx(jt,{asChild:!0,...f,children:r.jsxRuntimeExports.jsx(Cn,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":Ln(n.open),...e,ref:k.composeRefs(t,a.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:c.composeEventHandlers(e.onPointerMove,Ce(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,Ce(p=>{d();const v=n.content?.getBoundingClientRect();if(v){const g=n.content?.dataset.side,x=g==="right",h=x?-5:5,E=v[x?"left":"right"],j=v[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+h,y:p.clientY},{x:E,y:v.top},{x:j,y:v.top},{x:j,y:v.bottom},{x:E,y:v.bottom}],side:g}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:c.composeEventHandlers(e.onKeyDown,p=>{const v=s.searchRef.current!=="";e.disabled||v&&p.key===" "||ps[o.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});On.displayName=be;var kn="MenuSubContent",$n=i.forwardRef((e,t)=>{const n=hn(W,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,s=se(W,e.__scopeMenu),u=ye(W,e.__scopeMenu),l=Dn(kn,e.__scopeMenu),m=i.useRef(null),f=k.useComposedRefs(t,m);return r.jsxRuntimeExports.jsx(je.Provider,{scope:e.__scopeMenu,children:r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:r.jsxRuntimeExports.jsx(je.Slot,{scope:e.__scopeMenu,children:r.jsxRuntimeExports.jsx(Mt,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:f,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{u.isUsingKeyboardRef.current&&m.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:c.composeEventHandlers(e.onFocusOutside,d=>{d.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:c.composeEventHandlers(e.onEscapeKeyDown,d=>{u.onClose(),d.preventDefault()}),onKeyDown:c.composeEventHandlers(e.onKeyDown,d=>{const p=d.currentTarget.contains(d.target),v=ms[u.dir].includes(d.key);p&&v&&(s.onOpenChange(!1),l.trigger?.focus(),d.preventDefault())})})})})})});$n.displayName=kn;function Ln(e){return e?"open":"closed"}function Oe(e){return e==="indeterminate"}function Pt(e){return Oe(e)?"indeterminate":e?"checked":"unchecked"}function As(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ds(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Ts(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let u=Ds(e,Math.max(s,0));a.length===1&&(u=u.filter(f=>f!==n));const m=u.find(f=>f.toLowerCase().startsWith(a.toLowerCase()));return m!==n?m:void 0}function Os(e,t){const{x:n,y:o}=e;let a=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const l=t[s],m=t[u],f=l.x,d=l.y,p=m.x,v=m.y;d>o!=v>o&&n<(p-f)*(o-d)/(v-d)+f&&(a=!a)}return a}function ks(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Os(n,t)}function Ce(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Fn=Rn,Hn=jt,Gn=bn,Kn=En,zn=St,Vn=jn,Un=Ke,Bn=wn,qn=Sn,Wn=_n,Yn=Nn,Xn=In,Zn=An,Jn=Tn,Qn=On,eo=$n,ze="DropdownMenu",[$s,hp]=c.createContextScope(ze,[Et]),K=Et(),[Ls,to]=$s(ze),no=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:a,defaultOpen:s,onOpenChange:u,modal:l=!0}=e,m=K(t),f=i.useRef(null),[d,p]=c.useControllableState({prop:a,defaultProp:s??!1,onChange:u,caller:ze});return r.jsxRuntimeExports.jsx(Ls,{scope:t,triggerId:c.useId(),triggerRef:f,contentId:c.useId(),open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(v=>!v),[p]),modal:l,children:r.jsxRuntimeExports.jsx(Fn,{...m,open:d,onOpenChange:p,dir:o,modal:l,children:n})})};no.displayName=ze;var oo="DropdownMenuTrigger",ro=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...a}=e,s=to(oo,n),u=K(n);return r.jsxRuntimeExports.jsx(Hn,{asChild:!0,...u,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:k.composeRefs(t,s.triggerRef),onPointerDown:c.composeEventHandlers(e.onPointerDown,l=>{!o&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:c.composeEventHandlers(e.onKeyDown,l=>{o||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});ro.displayName=oo;var Fs="DropdownMenuPortal",ao=e=>{const{__scopeDropdownMenu:t,...n}=e,o=K(t);return r.jsxRuntimeExports.jsx(Gn,{...o,...n})};ao.displayName=Fs;var so="DropdownMenuContent",io=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=to(so,n),s=K(n),u=i.useRef(!1);return r.jsxRuntimeExports.jsx(Kn,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:c.composeEventHandlers(e.onCloseAutoFocus,l=>{u.current||a.triggerRef.current?.focus(),u.current=!1,l.preventDefault()}),onInteractOutside:c.composeEventHandlers(e.onInteractOutside,l=>{const m=l.detail.originalEvent,f=m.button===0&&m.ctrlKey===!0,d=m.button===2||f;(!a.modal||d)&&(u.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)"}})});io.displayName=so;var Hs="DropdownMenuGroup",co=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(zn,{...a,...o,ref:t})});co.displayName=Hs;var Gs="DropdownMenuLabel",uo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Vn,{...a,...o,ref:t})});uo.displayName=Gs;var Ks="DropdownMenuItem",lo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Un,{...a,...o,ref:t})});lo.displayName=Ks;var zs="DropdownMenuCheckboxItem",po=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Bn,{...a,...o,ref:t})});po.displayName=zs;var Vs="DropdownMenuRadioGroup",mo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(qn,{...a,...o,ref:t})});mo.displayName=Vs;var Us="DropdownMenuRadioItem",fo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Wn,{...a,...o,ref:t})});fo.displayName=Us;var Bs="DropdownMenuItemIndicator",xo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Yn,{...a,...o,ref:t})});xo.displayName=Bs;var qs="DropdownMenuSeparator",vo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Xn,{...a,...o,ref:t})});vo.displayName=qs;var Ws="DropdownMenuArrow",Ys=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Zn,{...a,...o,ref:t})});Ys.displayName=Ws;var Xs=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:a,defaultOpen:s}=e,u=K(t),[l,m]=c.useControllableState({prop:o,defaultProp:s??!1,onChange:a,caller:"DropdownMenuSub"});return r.jsxRuntimeExports.jsx(Jn,{...u,open:l,onOpenChange:m,children:n})},Zs="DropdownMenuSubTrigger",go=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Qn,{...a,...o,ref:t})});go.displayName=Zs;var Js="DropdownMenuSubContent",Ro=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(eo,{...a,...o,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)"}})});Ro.displayName=Js;var Qs=no,ei=ro,ho=ao,ti=io,ni=co,oi=uo,ri=lo,ai=po,si=mo,ii=fo,bo=xo,ci=vo,ui=Xs,li=go,di=Ro;const pi=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Eo=U.createLucideIcon("chevron-right",pi);const mi=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Nt=U.createLucideIcon("circle",mi);const fi=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],xi=U.createLucideIcon("grip-vertical",fi);const vi=[["path",{d:"M5 12h14",key:"1ays0h"}]],gi=U.createLucideIcon("minus",vi);function Ri({...e}){return r.jsxRuntimeExports.jsx(Qs,{"data-slot":"dropdown-menu",...e})}function hi({...e}){return r.jsxRuntimeExports.jsx(ho,{"data-slot":"dropdown-menu-portal",...e})}function bi({...e}){return r.jsxRuntimeExports.jsx(ei,{"data-slot":"dropdown-menu-trigger",...e})}function Ei({className:e,sideOffset:t=4,...n}){return r.jsxRuntimeExports.jsx(ho,{children:r.jsxRuntimeExports.jsx(ti,{"data-slot":"dropdown-menu-content",sideOffset:t,className:b.cn("bg-content1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-medium",e),...n})})}function ji({...e}){return r.jsxRuntimeExports.jsx(ni,{"data-slot":"dropdown-menu-group",...e})}function Ci({className:e,inset:t,variant:n="default",...o}){return r.jsxRuntimeExports.jsx(ri,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:b.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function wi({className:e,children:t,checked:n,...o}){return r.jsxRuntimeExports.jsxs(ai,{"data-slot":"dropdown-menu-checkbox-item",className:b.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...o,children:[r.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(bo,{children:r.jsxRuntimeExports.jsx(U.Check,{className:"size-4"})})}),t]})}function Mi({...e}){return r.jsxRuntimeExports.jsx(si,{"data-slot":"dropdown-menu-radio-group",...e})}function Si({className:e,children:t,...n}){return r.jsxRuntimeExports.jsxs(ii,{"data-slot":"dropdown-menu-radio-item",className:b.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(bo,{children:r.jsxRuntimeExports.jsx(Nt,{className:"size-2 fill-current"})})}),t]})}function yi({className:e,inset:t,...n}){return r.jsxRuntimeExports.jsx(oi,{"data-slot":"dropdown-menu-label","data-inset":t,className:b.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function _i({className:e,...t}){return r.jsxRuntimeExports.jsx(ci,{"data-slot":"dropdown-menu-separator",className:b.cn("bg-border -mx-1 my-1 h-px",e),...t})}function Pi({className:e,...t}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:b.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function Ni({...e}){return r.jsxRuntimeExports.jsx(ui,{"data-slot":"dropdown-menu-sub",...e})}function Ii({className:e,inset:t,children:n,...o}){return r.jsxRuntimeExports.jsxs(li,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:b.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...o,children:[n,r.jsxRuntimeExports.jsx(Eo,{className:"ml-auto size-4"})]})}function Ai({className:e,...t}){return r.jsxRuntimeExports.jsx(di,{"data-slot":"dropdown-menu-sub-content",className:b.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var Ve="Tabs",[Di,bp]=c.createContextScope(Ve,[ae]),jo=ae(),[Ti,It]=Di(Ve),Co=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:a,defaultValue:s,orientation:u="horizontal",dir:l,activationMode:m="automatic",...f}=e,d=U.useDirection(l),[p,v]=c.useControllableState({prop:o,onChange:a,defaultProp:s??"",caller:Ve});return r.jsxRuntimeExports.jsx(Ti,{scope:n,baseId:c.useId(),value:p,onValueChange:v,orientation:u,dir:d,activationMode:m,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{dir:d,"data-orientation":u,...f,ref:t})})});Co.displayName=Ve;var wo="TabsList",Mo=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...a}=e,s=It(wo,n),u=jo(n);return r.jsxRuntimeExports.jsx(He,{asChild:!0,...u,orientation:s.orientation,dir:s.dir,loop:o,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"tablist","aria-orientation":s.orientation,...a,ref:t})})});Mo.displayName=wo;var So="TabsTrigger",yo=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:a=!1,...s}=e,u=It(So,n),l=jo(n),m=No(u.baseId,o),f=Io(u.baseId,o),d=o===u.value;return r.jsxRuntimeExports.jsx(Ge,{asChild:!0,...l,focusable:!a,active:d,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":f,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:m,...s,ref:t,onMouseDown:c.composeEventHandlers(e.onMouseDown,p=>{!a&&p.button===0&&p.ctrlKey===!1?u.onValueChange(o):p.preventDefault()}),onKeyDown:c.composeEventHandlers(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&u.onValueChange(o)}),onFocus:c.composeEventHandlers(e.onFocus,()=>{const p=u.activationMode!=="manual";!d&&!a&&p&&u.onValueChange(o)})})})});yo.displayName=So;var _o="TabsContent",Po=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:a,children:s,...u}=e,l=It(_o,n),m=No(l.baseId,o),f=Io(l.baseId,o),d=o===l.value,p=i.useRef(d);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),r.jsxRuntimeExports.jsx(c.Presence,{present:a||d,children:({present:v})=>r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&s})})});Po.displayName=_o;function No(e,t){return`${e}-trigger-${t}`}function Io(e,t){return`${e}-content-${t}`}var Oi=Co,ki=Mo,$i=yo,Li=Po;function Fi({className:e,...t}){return r.jsxRuntimeExports.jsx(Oi,{"data-slot":"tabs",className:b.cn("flex flex-col gap-2",e),...t})}function Hi({className:e,...t}){return r.jsxRuntimeExports.jsx(ki,{"data-slot":"tabs-list",className:b.cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Gi({className:e,...t}){return r.jsxRuntimeExports.jsx($i,{"data-slot":"tabs-trigger",className:b.cn("data-[state=active]:bg-content1 dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Ki({className:e,...t}){return r.jsxRuntimeExports.jsx(Li,{"data-slot":"tabs-content",className:b.cn("flex-1 outline-none",e),...t})}function zi({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:b.cn("bg-accent animate-pulse rounded-md",e),...t})}function Vi({className:e,...t}){return r.jsxRuntimeExports.jsx(c.PanelGroup,{"data-slot":"resizable-panel-group",className:b.cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}function Ui({...e}){return r.jsxRuntimeExports.jsx(c.Panel,{"data-slot":"resizable-panel",...e})}function Bi({withHandle:e,className:t,...n}){return r.jsxRuntimeExports.jsx(c.PanelResizeHandle,{"data-slot":"resizable-handle",className:b.cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&r.jsxRuntimeExports.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:r.jsxRuntimeExports.jsx(xi,{className:"size-2.5"})})})}var Ae={exports:{}},tt={};var Jt;function qi(){if(Jt)return tt;Jt=1;var e=G;function t(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,a=e.useEffect,s=e.useLayoutEffect,u=e.useDebugValue;function l(p,v){var g=v(),x=o({inst:{value:g,getSnapshot:v}}),h=x[0].inst,E=x[1];return s(function(){h.value=g,h.getSnapshot=v,m(h)&&E({inst:h})},[p,g,v]),a(function(){return m(h)&&E({inst:h}),p(function(){m(h)&&E({inst:h})})},[p]),u(g),g}function m(p){var v=p.getSnapshot;p=p.value;try{var g=v();return!n(p,g)}catch{return!0}}function f(p,v){return v()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:l;return tt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,tt}var nt={};var Qt;function Wi(){return Qt||(Qt=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}function t(g,x){d||a.startTransition===void 0||(d=!0);var h=x();if(!p){var E=x();s(h,E)||(p=!0)}E=u({inst:{value:h,getSnapshot:x}});var j=E[0].inst,M=E[1];return m(function(){j.value=h,j.getSnapshot=x,n(j)&&M({inst:j})},[g,h,x]),l(function(){return n(j)&&M({inst:j}),g(function(){n(j)&&M({inst:j})})},[g]),f(h),h}function n(g){var x=g.getSnapshot;g=g.value;try{var h=x();return!s(g,h)}catch{return!0}}function o(g,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=G,s=typeof Object.is=="function"?Object.is:e,u=a.useState,l=a.useEffect,m=a.useLayoutEffect,f=a.useDebugValue,d=!1,p=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;nt.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),nt}var en;function Yi(){return en||(en=1,process.env.NODE_ENV==="production"?Ae.exports=qi():Ae.exports=Wi()),Ae.exports}var Xi=Yi();function Zi(){return Xi.useSyncExternalStore(Ji,()=>!0,()=>!1)}function Ji(){return()=>{}}var At="Avatar",[Qi,Ep]=c.createContextScope(At),[ec,Ao]=Qi(At),Do=i.forwardRef((e,t)=>{const{__scopeAvatar:n,...o}=e,[a,s]=i.useState("idle");return r.jsxRuntimeExports.jsx(ec,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:s,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{...o,ref:t})})});Do.displayName=At;var To="AvatarImage",Oo=i.forwardRef((e,t)=>{const{__scopeAvatar:n,src:o,onLoadingStatusChange:a=()=>{},...s}=e,u=Ao(To,n),l=tc(o,s),m=c.useCallbackRef(f=>{a(f),u.onImageLoadingStatusChange(f)});return c.useLayoutEffect2(()=>{l!=="idle"&&m(l)},[l,m]),l==="loaded"?r.jsxRuntimeExports.jsx(c.Primitive.img,{...s,ref:t,src:o}):null});Oo.displayName=To;var ko="AvatarFallback",$o=i.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:o,...a}=e,s=Ao(ko,n),[u,l]=i.useState(o===void 0);return i.useEffect(()=>{if(o!==void 0){const m=window.setTimeout(()=>l(!0),o);return()=>window.clearTimeout(m)}},[o]),u&&s.imageLoadingStatus!=="loaded"?r.jsxRuntimeExports.jsx(c.Primitive.span,{...a,ref:t}):null});$o.displayName=ko;function tn(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function tc(e,{referrerPolicy:t,crossOrigin:n}){const o=Zi(),a=i.useRef(null),s=o?(a.current||(a.current=new window.Image),a.current):null,[u,l]=i.useState(()=>tn(s,e));return c.useLayoutEffect2(()=>{l(tn(s,e))},[s,e]),c.useLayoutEffect2(()=>{const m=p=>()=>{l(p)};if(!s)return;const f=m("loaded"),d=m("error");return s.addEventListener("load",f),s.addEventListener("error",d),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",f),s.removeEventListener("error",d)}},[s,n,t]),u}var nc=Do,oc=Oo,rc=$o;const ac=cn.cva("flex relative justify-center items-center box-border overflow-hidden align-middle z-0 outline-none data-[focus-visible=true]:z-10 data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-focus data-[focus-visible=true]:outline-offset-2 text-tiny text-default-foreground rounded-full",{variants:{color:{primary:"bg-primary ring-primary text-primary-foreground",secondary:"bg-secondary ring-secondary text-secondary-foreground",success:"bg-success ring-success text-success-foreground",warning:"bg-warning ring-warning text-warning-foreground",danger:"bg-danger ring-danger text-danger-foreground",default:"bg-default ring-default text-default-foreground"},isBordered:{true:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark",false:""},size:{sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12"}},defaultVariants:{color:"default",isBordered:!1,size:"md"}});function sc({className:e,color:t="default",isBordered:n=!1,size:o="md",...a}){return r.jsxRuntimeExports.jsx(nc,{"data-slot":"avatar",asChild:!0,children:r.jsxRuntimeExports.jsx("span",{tabIndex:-1,"data-slot":"avatar",className:b.cn(ac({color:t,isBordered:n,size:o}),e),...a})})}function ic({className:e,...t}){return r.jsxRuntimeExports.jsx(oc,{"data-slot":"avatar-image",className:b.cn("aspect-square size-full",e),...t})}function cc({className:e,...t}){return r.jsxRuntimeExports.jsx(rc,{"data-slot":"avatar-fallback",className:b.cn(" flex size-full items-center justify-center rounded-full",e),...t})}var Ue="Popover",[Lo,jp]=c.createContextScope(Ue,[I.createPopperScope]),_e=I.createPopperScope(),[uc,ie]=Lo(Ue),Fo=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:a,onOpenChange:s,modal:u=!1}=e,l=_e(t),m=i.useRef(null),[f,d]=i.useState(!1),[p,v]=c.useControllableState({prop:o,defaultProp:a??!1,onChange:s,caller:Ue});return r.jsxRuntimeExports.jsx(I.Root2,{...l,children:r.jsxRuntimeExports.jsx(uc,{scope:t,contentId:c.useId(),triggerRef:m,open:p,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(g=>!g),[v]),hasCustomAnchor:f,onCustomAnchorAdd:i.useCallback(()=>d(!0),[]),onCustomAnchorRemove:i.useCallback(()=>d(!1),[]),modal:u,children:n})})};Fo.displayName=Ue;var Ho="PopoverAnchor",Go=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=ie(Ho,n),s=_e(n),{onCustomAnchorAdd:u,onCustomAnchorRemove:l}=a;return i.useEffect(()=>(u(),()=>l()),[u,l]),r.jsxRuntimeExports.jsx(I.Anchor,{...s,...o,ref:t})});Go.displayName=Ho;var Ko="PopoverTrigger",zo=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=ie(Ko,n),s=_e(n),u=k.useComposedRefs(t,a.triggerRef),l=r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Wo(a.open),...o,ref:u,onClick:c.composeEventHandlers(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:r.jsxRuntimeExports.jsx(I.Anchor,{asChild:!0,...s,children:l})});zo.displayName=Ko;var Dt="PopoverPortal",[lc,dc]=Lo(Dt,{forceMount:void 0}),Vo=e=>{const{__scopePopover:t,forceMount:n,children:o,container:a}=e,s=ie(Dt,t);return r.jsxRuntimeExports.jsx(lc,{scope:t,forceMount:n,children:r.jsxRuntimeExports.jsx(c.Presence,{present:n||s.open,children:r.jsxRuntimeExports.jsx(c.Portal,{asChild:!0,container:a,children:o})})})};Vo.displayName=Dt;var ve="PopoverContent",Uo=i.forwardRef((e,t)=>{const n=dc(ve,e.__scopePopover),{forceMount:o=n.forceMount,...a}=e,s=ie(ve,e.__scopePopover);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:s.modal?r.jsxRuntimeExports.jsx(mc,{...a,ref:t}):r.jsxRuntimeExports.jsx(fc,{...a,ref:t})})});Uo.displayName=ve;var pc=k.createSlot("PopoverContent.RemoveScroll"),mc=i.forwardRef((e,t)=>{const n=ie(ve,e.__scopePopover),o=i.useRef(null),a=k.useComposedRefs(t,o),s=i.useRef(!1);return i.useEffect(()=>{const u=o.current;if(u)return c.hideOthers(u)},[]),r.jsxRuntimeExports.jsx(c.ReactRemoveScroll,{as:pc,allowPinchZoom:!0,children:r.jsxRuntimeExports.jsx(Bo,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c.composeEventHandlers(e.onCloseAutoFocus,u=>{u.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:c.composeEventHandlers(e.onPointerDownOutside,u=>{const l=u.detail.originalEvent,m=l.button===0&&l.ctrlKey===!0,f=l.button===2||m;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:c.composeEventHandlers(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),fc=i.forwardRef((e,t)=>{const n=ie(ve,e.__scopePopover),o=i.useRef(!1),a=i.useRef(!1);return r.jsxRuntimeExports.jsx(Bo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=s.target;n.triggerRef.current?.contains(u)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),Bo=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEscapeKeyDown:l,onPointerDownOutside:m,onFocusOutside:f,onInteractOutside:d,...p}=e,v=ie(ve,n),g=_e(n);return c.useFocusGuards(),r.jsxRuntimeExports.jsx(c.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:r.jsxRuntimeExports.jsx(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:m,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:r.jsxRuntimeExports.jsx(I.Content,{"data-state":Wo(v.open),role:"dialog",id:v.contentId,...g,...p,ref:t,style:{...p.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)"}})})})}),qo="PopoverClose",xc=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=ie(qo,n);return r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",...o,ref:t,onClick:c.composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});xc.displayName=qo;var vc="PopoverArrow",gc=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=_e(n);return r.jsxRuntimeExports.jsx(I.Arrow,{...a,...o,ref:t})});gc.displayName=vc;function Wo(e){return e?"open":"closed"}var Rc=Fo,hc=Go,bc=zo,Ec=Vo,jc=Uo;function Cc({...e}){return r.jsxRuntimeExports.jsx(Rc,{"data-slot":"popover",...e})}function wc({...e}){return r.jsxRuntimeExports.jsx(bc,{"data-slot":"popover-trigger",...e})}function Mc({className:e,align:t="center",sideOffset:n=4,...o}){return r.jsxRuntimeExports.jsx(Ec,{children:r.jsxRuntimeExports.jsx(jc,{"data-slot":"popover-content",align:t,sideOffset:n,className:b.cn("bg-content1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md shadow-medium outline-hidden",e),...o})})}function Sc({...e}){return r.jsxRuntimeExports.jsx(hc,{"data-slot":"popover-anchor",...e})}var nn=1,yc=.9,_c=.8,Pc=.17,ot=.1,rt=.999,Nc=.9999,Ic=.99,Ac=/[\\\/_+.#"@\[\(\{&]/,Dc=/[\\\/_+.#"@\[\(\{&]/g,Tc=/[\s-]/,Yo=/[\s-]/g;function ut(e,t,n,o,a,s,u){if(s===t.length)return a===e.length?nn:Ic;var l=`${a},${s}`;if(u[l]!==void 0)return u[l];for(var m=o.charAt(s),f=n.indexOf(m,a),d=0,p,v,g,x;f>=0;)p=ut(e,t,n,o,f+1,s+1,u),p>d&&(f===a?p*=nn:Ac.test(e.charAt(f-1))?(p*=_c,g=e.slice(a,f-1).match(Dc),g&&a>0&&(p*=Math.pow(rt,g.length))):Tc.test(e.charAt(f-1))?(p*=yc,x=e.slice(a,f-1).match(Yo),x&&a>0&&(p*=Math.pow(rt,x.length))):(p*=Pc,a>0&&(p*=Math.pow(rt,f-a))),e.charAt(f)!==t.charAt(s)&&(p*=Nc)),(p<ot&&n.charAt(f-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&n.charAt(f-1)!==o.charAt(s))&&(v=ut(e,t,n,o,f+1,s+2,u),v*ot>p&&(p=v*ot)),p>d&&(d=p),f=n.indexOf(m,f+1);return u[l]=d,d}function on(e){return e.toLowerCase().replace(Yo," ")}function Oc(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ut(e,t,on(e),on(t),0,0,{})}var he='[cmdk-group=""]',at='[cmdk-group-items=""]',kc='[cmdk-group-heading=""]',Xo='[cmdk-item=""]',rn=`${Xo}:not([aria-disabled="true"])`,lt="cmdk-item-select",me="data-value",$c=(e,t,n)=>Oc(e,t,n),Zo=i.createContext(void 0),Pe=()=>i.useContext(Zo),Jo=i.createContext(void 0),Tt=()=>i.useContext(Jo),Qo=i.createContext(void 0),er=i.forwardRef((e,t)=>{let n=fe(()=>{var R,P;return{search:"",value:(P=(R=e.value)!=null?R:e.defaultValue)!=null?P:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=fe(()=>new Set),a=fe(()=>new Map),s=fe(()=>new Map),u=fe(()=>new Set),l=tr(e),{label:m,children:f,value:d,onValueChange:p,filter:v,shouldFilter:g,loop:x,disablePointerSelection:h=!1,vimBindings:E=!0,...j}=e,M=c.useId(),C=c.useId(),y=c.useId(),_=i.useRef(null),S=Wc();ue(()=>{if(d!==void 0){let R=d.trim();n.current.value=R,T.emit()}},[d]),ue(()=>{S(6,ce)},[]);let T=i.useMemo(()=>({subscribe:R=>(u.current.add(R),()=>u.current.delete(R)),snapshot:()=>n.current,setState:(R,P,D)=>{var w,O,A,H;if(!Object.is(n.current[R],P)){if(n.current[R]=P,R==="search")Q(),F(),S(1,B);else if(R==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let V=document.getElementById(y);V?V.focus():(w=document.getElementById(M))==null||w.focus()}if(S(7,()=>{var V;n.current.selectedItemId=(V=X())==null?void 0:V.id,T.emit()}),D||S(5,ce),((O=l.current)==null?void 0:O.value)!==void 0){let V=P??"";(H=(A=l.current).onValueChange)==null||H.call(A,V);return}}T.emit()}},emit:()=>{u.current.forEach(R=>R())}}),[]),$=i.useMemo(()=>({value:(R,P,D)=>{var w;P!==((w=s.current.get(R))==null?void 0:w.value)&&(s.current.set(R,{value:P,keywords:D}),n.current.filtered.items.set(R,L(P,D)),S(2,()=>{F(),T.emit()}))},item:(R,P)=>(o.current.add(R),P&&(a.current.has(P)?a.current.get(P).add(R):a.current.set(P,new Set([R]))),S(3,()=>{Q(),F(),n.current.value||B(),T.emit()}),()=>{s.current.delete(R),o.current.delete(R),n.current.filtered.items.delete(R);let D=X();S(4,()=>{Q(),D?.getAttribute("id")===R&&B(),T.emit()})}),group:R=>(a.current.has(R)||a.current.set(R,new Set),()=>{s.current.delete(R),a.current.delete(R)}),filter:()=>l.current.shouldFilter,label:m||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:M,inputId:y,labelId:C,listInnerRef:_}),[]);function L(R,P){var D,w;let O=(w=(D=l.current)==null?void 0:D.filter)!=null?w:$c;return R?O(R,n.current.search,P):0}function F(){if(!n.current.search||l.current.shouldFilter===!1)return;let R=n.current.filtered.items,P=[];n.current.filtered.groups.forEach(w=>{let O=a.current.get(w),A=0;O.forEach(H=>{let V=R.get(H);A=Math.max(V,A)}),P.push([w,A])});let D=_.current;ee().sort((w,O)=>{var A,H;let V=w.getAttribute("id"),Ie=O.getAttribute("id");return((A=R.get(Ie))!=null?A:0)-((H=R.get(V))!=null?H:0)}).forEach(w=>{let O=w.closest(at);O?O.appendChild(w.parentElement===O?w:w.closest(`${at} > *`)):D.appendChild(w.parentElement===D?w:w.closest(`${at} > *`))}),P.sort((w,O)=>O[1]-w[1]).forEach(w=>{var O;let A=(O=_.current)==null?void 0:O.querySelector(`${he}[${me}="${encodeURIComponent(w[0])}"]`);A?.parentElement.appendChild(A)})}function B(){let R=ee().find(D=>D.getAttribute("aria-disabled")!=="true"),P=R?.getAttribute(me);T.setState("value",P||void 0)}function Q(){var R,P,D,w;if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=o.current.size;return}n.current.filtered.groups=new Set;let O=0;for(let A of o.current){let H=(P=(R=s.current.get(A))==null?void 0:R.value)!=null?P:"",V=(w=(D=s.current.get(A))==null?void 0:D.keywords)!=null?w:[],Ie=L(H,V);n.current.filtered.items.set(A,Ie),Ie>0&&O++}for(let[A,H]of a.current)for(let V of H)if(n.current.filtered.items.get(V)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=O}function ce(){var R,P,D;let w=X();w&&(((R=w.parentElement)==null?void 0:R.firstChild)===w&&((D=(P=w.closest(he))==null?void 0:P.querySelector(kc))==null||D.scrollIntoView({block:"nearest"})),w.scrollIntoView({block:"nearest"}))}function X(){var R;return(R=_.current)==null?void 0:R.querySelector(`${Xo}[aria-selected="true"]`)}function ee(){var R;return Array.from(((R=_.current)==null?void 0:R.querySelectorAll(rn))||[])}function q(R){let P=ee()[R];P&&T.setState("value",P.getAttribute(me))}function Re(R){var P;let D=X(),w=ee(),O=w.findIndex(H=>H===D),A=w[O+R];(P=l.current)!=null&&P.loop&&(A=O+R<0?w[w.length-1]:O+R===w.length?w[0]:w[O+R]),A&&T.setState("value",A.getAttribute(me))}function te(R){let P=X(),D=P?.closest(he),w;for(;D&&!w;)D=R>0?Bc(D,he):qc(D,he),w=D?.querySelector(rn);w?T.setState("value",w.getAttribute(me)):Re(R)}let N=()=>q(ee().length-1),ne=R=>{R.preventDefault(),R.metaKey?N():R.altKey?te(1):Re(1)},J=R=>{R.preventDefault(),R.metaKey?q(0):R.altKey?te(-1):Re(-1)};return i.createElement(c.Primitive.div,{ref:t,tabIndex:-1,...j,"cmdk-root":"",onKeyDown:R=>{var P;(P=j.onKeyDown)==null||P.call(j,R);let D=R.nativeEvent.isComposing||R.keyCode===229;if(!(R.defaultPrevented||D))switch(R.key){case"n":case"j":{E&&R.ctrlKey&&ne(R);break}case"ArrowDown":{ne(R);break}case"p":case"k":{E&&R.ctrlKey&&J(R);break}case"ArrowUp":{J(R);break}case"Home":{R.preventDefault(),q(0);break}case"End":{R.preventDefault(),N();break}case"Enter":{R.preventDefault();let w=X();if(w){let O=new Event(lt);w.dispatchEvent(O)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:$.inputId,id:$.labelId,style:Xc},m),Be(e,R=>i.createElement(Jo.Provider,{value:T},i.createElement(Zo.Provider,{value:$},R))))}),Lc=i.forwardRef((e,t)=>{var n,o;let a=c.useId(),s=i.useRef(null),u=i.useContext(Qo),l=Pe(),m=tr(e),f=(o=(n=m.current)==null?void 0:n.forceMount)!=null?o:u?.forceMount;ue(()=>{if(!f)return l.item(a,u?.id)},[f]);let d=nr(a,s,[e.value,e.children,s],e.keywords),p=Tt(),v=re(S=>S.value&&S.value===d.current),g=re(S=>f||l.filter()===!1?!0:S.search?S.filtered.items.get(a)>0:!0);i.useEffect(()=>{let S=s.current;if(!(!S||e.disabled))return S.addEventListener(lt,x),()=>S.removeEventListener(lt,x)},[g,e.onSelect,e.disabled]);function x(){var S,T;h(),(T=(S=m.current).onSelect)==null||T.call(S,d.current)}function h(){p.setState("value",d.current,!0)}if(!g)return null;let{disabled:E,value:j,onSelect:M,forceMount:C,keywords:y,..._}=e;return i.createElement(c.Primitive.div,{ref:k.composeRefs(s,t),..._,id:a,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!v,"data-disabled":!!E,"data-selected":!!v,onPointerMove:E||l.getDisablePointerSelection()?void 0:h,onClick:E?void 0:x},e.children)}),Fc=i.forwardRef((e,t)=>{let{heading:n,children:o,forceMount:a,...s}=e,u=c.useId(),l=i.useRef(null),m=i.useRef(null),f=c.useId(),d=Pe(),p=re(g=>a||d.filter()===!1?!0:g.search?g.filtered.groups.has(u):!0);ue(()=>d.group(u),[]),nr(u,l,[e.value,e.heading,m]);let v=i.useMemo(()=>({id:u,forceMount:a}),[a]);return i.createElement(c.Primitive.div,{ref:k.composeRefs(l,t),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},n&&i.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),Be(e,g=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},i.createElement(Qo.Provider,{value:v},g))))}),Hc=i.forwardRef((e,t)=>{let{alwaysRender:n,...o}=e,a=i.useRef(null),s=re(u=>!u.search);return!n&&!s?null:i.createElement(c.Primitive.div,{ref:k.composeRefs(a,t),...o,"cmdk-separator":"",role:"separator"})}),Gc=i.forwardRef((e,t)=>{let{onValueChange:n,...o}=e,a=e.value!=null,s=Tt(),u=re(f=>f.search),l=re(f=>f.selectedItemId),m=Pe();return i.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),i.createElement(c.Primitive.input,{ref:t,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":m.listId,"aria-labelledby":m.labelId,"aria-activedescendant":l,id:m.inputId,type:"text",value:a?e.value:u,onChange:f=>{a||s.setState("search",f.target.value),n?.(f.target.value)}})}),Kc=i.forwardRef((e,t)=>{let{children:n,label:o="Suggestions",...a}=e,s=i.useRef(null),u=i.useRef(null),l=re(f=>f.selectedItemId),m=Pe();return i.useEffect(()=>{if(u.current&&s.current){let f=u.current,d=s.current,p,v=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let g=f.offsetHeight;d.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return v.observe(f),()=>{cancelAnimationFrame(p),v.unobserve(f)}}},[]),i.createElement(c.Primitive.div,{ref:k.composeRefs(s,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":o,id:m.listId},Be(e,f=>i.createElement("div",{ref:k.composeRefs(u,m.listInnerRef),"cmdk-list-sizer":""},f)))}),zc=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,overlayClassName:a,contentClassName:s,container:u,...l}=e;return i.createElement(c.Root,{open:n,onOpenChange:o},i.createElement(c.Portal$1,{container:u},i.createElement(c.Overlay,{"cmdk-overlay":"",className:a}),i.createElement(c.Content,{"aria-label":e.label,"cmdk-dialog":"",className:s},i.createElement(er,{ref:t,...l}))))}),Vc=i.forwardRef((e,t)=>re(n=>n.filtered.count===0)?i.createElement(c.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Uc=i.forwardRef((e,t)=>{let{progress:n,children:o,label:a="Loading...",...s}=e;return i.createElement(c.Primitive.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Be(e,u=>i.createElement("div",{"aria-hidden":!0},u)))}),de=Object.assign(er,{List:Kc,Item:Lc,Input:Gc,Group:Fc,Separator:Hc,Dialog:zc,Empty:Vc,Loading:Uc});function Bc(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function qc(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function tr(e){let t=i.useRef(e);return ue(()=>{t.current=e}),t}var ue=typeof window>"u"?i.useEffect:i.useLayoutEffect;function fe(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function re(e){let t=Tt(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function nr(e,t,n,o=[]){let a=i.useRef(),s=Pe();return ue(()=>{var u;let l=(()=>{var f;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(f=d.current.textContent)==null?void 0:f.trim():a.current}})(),m=o.map(f=>f.trim());s.value(e,l,m),(u=t.current)==null||u.setAttribute(me,l),a.current=l}),a}var Wc=()=>{let[e,t]=i.useState(),n=fe(()=>new Map);return ue(()=>{n.current.forEach(o=>o()),n.current=new Map},[e]),(o,a)=>{n.current.set(o,a),t({})}};function Yc(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Be({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(Yc(t),{ref:t.ref},n(t.props.children)):n(t)}var Xc={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function or({className:e,...t}){return r.jsxRuntimeExports.jsx(de,{"data-slot":"command",className:b.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Zc({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:o,showCloseButton:a=!0,...s}){return r.jsxRuntimeExports.jsxs(c.Dialog,{...s,children:[r.jsxRuntimeExports.jsxs(c.DialogHeader,{className:"sr-only",children:[r.jsxRuntimeExports.jsx(c.DialogTitle,{children:e}),r.jsxRuntimeExports.jsx(c.DialogDescription,{children:t})]}),r.jsxRuntimeExports.jsx(c.DialogContent,{className:b.cn("overflow-hidden p-0",o),showCloseButton:a,children:r.jsxRuntimeExports.jsx(or,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function Jc({className:e,...t}){return r.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[r.jsxRuntimeExports.jsx(bt.Search,{className:"size-4 shrink-0 opacity-50"}),r.jsxRuntimeExports.jsx(de.Input,{"data-slot":"command-input",className:b.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Qc({className:e,...t}){return r.jsxRuntimeExports.jsx(de.List,{"data-slot":"command-list",className:b.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function eu({...e}){return r.jsxRuntimeExports.jsx(de.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function tu({className:e,...t}){return r.jsxRuntimeExports.jsx(de.Group,{"data-slot":"command-group",className:b.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function nu({className:e,...t}){return r.jsxRuntimeExports.jsx(de.Separator,{"data-slot":"command-separator",className:b.cn("bg-border -mx-1 h-px",e),...t})}function ou({className:e,...t}){return r.jsxRuntimeExports.jsx(de.Item,{"data-slot":"command-item",className:b.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function ru({className:e,...t}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:b.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}var qe="Collapsible",[au,rr]=c.createContextScope(qe),[su,Ot]=au(qe),ar=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:a,disabled:s,onOpenChange:u,...l}=e,[m,f]=c.useControllableState({prop:o,defaultProp:a??!1,onChange:u,caller:qe});return r.jsxRuntimeExports.jsx(su,{scope:n,disabled:s,contentId:c.useId(),open:m,onOpenToggle:i.useCallback(()=>f(d=>!d),[f]),children:r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-state":$t(m),"data-disabled":s?"":void 0,...l,ref:t})})});ar.displayName=qe;var sr="CollapsibleTrigger",ir=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,a=Ot(sr,n);return r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":$t(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...o,ref:t,onClick:c.composeEventHandlers(e.onClick,a.onOpenToggle)})});ir.displayName=sr;var kt="CollapsibleContent",cr=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=Ot(kt,e.__scopeCollapsible);return r.jsxRuntimeExports.jsx(c.Presence,{present:n||a.open,children:({present:s})=>r.jsxRuntimeExports.jsx(iu,{...o,ref:t,present:s})})});cr.displayName=kt;var iu=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:a,...s}=e,u=Ot(kt,n),[l,m]=i.useState(o),f=i.useRef(null),d=k.useComposedRefs(t,f),p=i.useRef(0),v=p.current,g=i.useRef(0),x=g.current,h=u.open||l,E=i.useRef(h),j=i.useRef(void 0);return i.useEffect(()=>{const M=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(M)},[]),c.useLayoutEffect2(()=>{const M=f.current;if(M){j.current=j.current||{transitionDuration:M.style.transitionDuration,animationName:M.style.animationName},M.style.transitionDuration="0s",M.style.animationName="none";const C=M.getBoundingClientRect();p.current=C.height,g.current=C.width,E.current||(M.style.transitionDuration=j.current.transitionDuration,M.style.animationName=j.current.animationName),m(o)}},[u.open,o]),r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-state":$t(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!h,...s,ref:d,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:h&&a})});function $t(e){return e?"open":"closed"}var cu=ar,uu=ir,lu=cr,Z="Accordion",du=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Lt,pu,mu]=I.createCollection(Z),[We,Cp]=c.createContextScope(Z,[mu,rr]),Ft=rr(),ur=G.forwardRef((e,t)=>{const{type:n,...o}=e,a=o,s=o;return r.jsxRuntimeExports.jsx(Lt.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsxRuntimeExports.jsx(gu,{...s,ref:t}):r.jsxRuntimeExports.jsx(vu,{...a,ref:t})})});ur.displayName=Z;var[lr,fu]=We(Z),[dr,xu]=We(Z,{collapsible:!1}),vu=G.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:a=()=>{},collapsible:s=!1,...u}=e,[l,m]=c.useControllableState({prop:n,defaultProp:o??"",onChange:a,caller:Z});return r.jsxRuntimeExports.jsx(lr,{scope:e.__scopeAccordion,value:G.useMemo(()=>l?[l]:[],[l]),onItemOpen:m,onItemClose:G.useCallback(()=>s&&m(""),[s,m]),children:r.jsxRuntimeExports.jsx(dr,{scope:e.__scopeAccordion,collapsible:s,children:r.jsxRuntimeExports.jsx(pr,{...u,ref:t})})})}),gu=G.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:a=()=>{},...s}=e,[u,l]=c.useControllableState({prop:n,defaultProp:o??[],onChange:a,caller:Z}),m=G.useCallback(d=>l((p=[])=>[...p,d]),[l]),f=G.useCallback(d=>l((p=[])=>p.filter(v=>v!==d)),[l]);return r.jsxRuntimeExports.jsx(lr,{scope:e.__scopeAccordion,value:u,onItemOpen:m,onItemClose:f,children:r.jsxRuntimeExports.jsx(dr,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsxRuntimeExports.jsx(pr,{...s,ref:t})})})}),[Ru,Ye]=We(Z),pr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:a,orientation:s="vertical",...u}=e,l=G.useRef(null),m=k.useComposedRefs(l,t),f=pu(n),p=U.useDirection(a)==="ltr",v=c.composeEventHandlers(e.onKeyDown,g=>{if(!du.includes(g.key))return;const x=g.target,h=f().filter($=>!$.ref.current?.disabled),E=h.findIndex($=>$.ref.current===x),j=h.length;if(E===-1)return;g.preventDefault();let M=E;const C=0,y=j-1,_=()=>{M=E+1,M>y&&(M=C)},S=()=>{M=E-1,M<C&&(M=y)};switch(g.key){case"Home":M=C;break;case"End":M=y;break;case"ArrowRight":s==="horizontal"&&(p?_():S());break;case"ArrowDown":s==="vertical"&&_();break;case"ArrowLeft":s==="horizontal"&&(p?S():_());break;case"ArrowUp":s==="vertical"&&S();break}const T=M%j;h[T].ref.current?.focus()});return r.jsxRuntimeExports.jsx(Ru,{scope:n,disabled:o,direction:a,orientation:s,children:r.jsxRuntimeExports.jsx(Lt.Slot,{scope:n,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{...u,"data-orientation":s,ref:m,onKeyDown:o?void 0:v})})})}),ke="AccordionItem",[hu,Ht]=We(ke),mr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...a}=e,s=Ye(ke,n),u=fu(ke,n),l=Ft(n),m=c.useId(),f=o&&u.value.includes(o)||!1,d=s.disabled||e.disabled;return r.jsxRuntimeExports.jsx(hu,{scope:n,open:f,disabled:d,triggerId:m,children:r.jsxRuntimeExports.jsx(cu,{"data-orientation":s.orientation,"data-state":hr(f),...l,...a,ref:t,disabled:d,open:f,onOpenChange:p=>{p?u.onItemOpen(o):u.onItemClose(o)}})})});mr.displayName=ke;var fr="AccordionHeader",xr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,a=Ye(Z,n),s=Ht(fr,n);return r.jsxRuntimeExports.jsx(c.Primitive.h3,{"data-orientation":a.orientation,"data-state":hr(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});xr.displayName=fr;var dt="AccordionTrigger",vr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,a=Ye(Z,n),s=Ht(dt,n),u=xu(dt,n),l=Ft(n);return r.jsxRuntimeExports.jsx(Lt.ItemSlot,{scope:n,children:r.jsxRuntimeExports.jsx(uu,{"aria-disabled":s.open&&!u.collapsible||void 0,"data-orientation":a.orientation,id:s.triggerId,...l,...o,ref:t})})});vr.displayName=dt;var gr="AccordionContent",Rr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,a=Ye(Z,n),s=Ht(gr,n),u=Ft(n);return r.jsxRuntimeExports.jsx(lu,{role:"region","aria-labelledby":s.triggerId,"data-orientation":a.orientation,...u,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Rr.displayName=gr;function hr(e){return e?"open":"closed"}var bu=ur,Eu=mr,ju=xr,Cu=vr,wu=Rr;function Mu({...e}){return r.jsxRuntimeExports.jsx(bu,{"data-slot":"accordion",...e})}function Su({className:e,...t}){return r.jsxRuntimeExports.jsx(Eu,{"data-slot":"accordion-item",className:b.cn("border-b last:border-b-0",e),...t})}function yu({className:e,children:t,...n}){return r.jsxRuntimeExports.jsx(ju,{className:"flex",children:r.jsxRuntimeExports.jsxs(Cu,{"data-slot":"accordion-trigger",className:b.cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,r.jsxRuntimeExports.jsx(U.ChevronDown,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function _u({className:e,children:t,...n}){return r.jsxRuntimeExports.jsx(wu,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:r.jsxRuntimeExports.jsx("div",{className:b.cn("pt-0 pb-4",e),children:t})})}var pe="NavigationMenu",[Gt,br,Pu]=I.createCollection(pe),[pt,Nu,Iu]=I.createCollection(pe),[Kt,wp]=c.createContextScope(pe,[Pu,Iu]),[Au,Y]=Kt(pe),[Du,Tu]=Kt(pe),Er=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:a,defaultValue:s,delayDuration:u=200,skipDelayDuration:l=300,orientation:m="horizontal",dir:f,...d}=e,[p,v]=i.useState(null),g=k.useComposedRefs(t,L=>v(L)),x=U.useDirection(f),h=i.useRef(0),E=i.useRef(0),j=i.useRef(0),[M,C]=i.useState(!0),[y,_]=c.useControllableState({prop:o,onChange:L=>{const F=L!=="",B=l>0;F?(window.clearTimeout(j.current),B&&C(!1)):(window.clearTimeout(j.current),j.current=window.setTimeout(()=>C(!0),l)),a?.(L)},defaultProp:s??"",caller:pe}),S=i.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>_(""),150)},[_]),T=i.useCallback(L=>{window.clearTimeout(E.current),_(L)},[_]),$=i.useCallback(L=>{y===L?window.clearTimeout(E.current):h.current=window.setTimeout(()=>{window.clearTimeout(E.current),_(L)},u)},[y,_,u]);return i.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(E.current),window.clearTimeout(j.current)},[]),r.jsxRuntimeExports.jsx(jr,{scope:n,isRootMenu:!0,value:y,dir:x,orientation:m,rootNavigationMenu:p,onTriggerEnter:L=>{window.clearTimeout(h.current),M?$(L):T(L)},onTriggerLeave:()=>{window.clearTimeout(h.current),S()},onContentEnter:()=>window.clearTimeout(E.current),onContentLeave:S,onItemSelect:L=>{_(F=>F===L?"":L)},onItemDismiss:()=>_(""),children:r.jsxRuntimeExports.jsx(c.Primitive.nav,{"aria-label":"Main","data-orientation":m,dir:x,...d,ref:g})})});Er.displayName=pe;var mt="NavigationMenuSub",Ou=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:a,defaultValue:s,orientation:u="horizontal",...l}=e,m=Y(mt,n),[f,d]=c.useControllableState({prop:o,onChange:a,defaultProp:s??"",caller:mt});return r.jsxRuntimeExports.jsx(jr,{scope:n,isRootMenu:!1,value:f,dir:m.dir,orientation:u,rootNavigationMenu:m.rootNavigationMenu,onTriggerEnter:p=>d(p),onItemSelect:p=>d(p),onItemDismiss:()=>d(""),children:r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-orientation":u,...l,ref:t})})});Ou.displayName=mt;var jr=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:o,dir:a,orientation:s,children:u,value:l,onItemSelect:m,onItemDismiss:f,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:v,onContentLeave:g}=e,[x,h]=i.useState(null),[E,j]=i.useState(new Map),[M,C]=i.useState(null);return r.jsxRuntimeExports.jsx(Au,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:l,previousValue:I.usePrevious(l),baseId:c.useId(),dir:a,orientation:s,viewport:x,onViewportChange:h,indicatorTrack:M,onIndicatorTrackChange:C,onTriggerEnter:c.useCallbackRef(d),onTriggerLeave:c.useCallbackRef(p),onContentEnter:c.useCallbackRef(v),onContentLeave:c.useCallbackRef(g),onItemSelect:c.useCallbackRef(m),onItemDismiss:c.useCallbackRef(f),onViewportContentChange:i.useCallback((y,_)=>{j(S=>(S.set(y,_),new Map(S)))},[]),onViewportContentRemove:i.useCallback(y=>{j(_=>_.has(y)?(_.delete(y),new Map(_)):_)},[]),children:r.jsxRuntimeExports.jsx(Gt.Provider,{scope:t,children:r.jsxRuntimeExports.jsx(Du,{scope:t,items:E,children:u})})})},Cr="NavigationMenuList",wr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Y(Cr,n),s=r.jsxRuntimeExports.jsx(c.Primitive.ul,{"data-orientation":a.orientation,...o,ref:t});return r.jsxRuntimeExports.jsx(c.Primitive.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:r.jsxRuntimeExports.jsx(Gt.Slot,{scope:n,children:a.isRootMenu?r.jsxRuntimeExports.jsx(Tr,{asChild:!0,children:s}):s})})});wr.displayName=Cr;var Mr="NavigationMenuItem",[ku,Sr]=Kt(Mr),yr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,...a}=e,s=c.useId(),u=o||s||"LEGACY_REACT_AUTO_VALUE",l=i.useRef(null),m=i.useRef(null),f=i.useRef(null),d=i.useRef(()=>{}),p=i.useRef(!1),v=i.useCallback((x="start")=>{if(l.current){d.current();const h=xt(l.current);h.length&&Ut(x==="start"?h:h.reverse())}},[]),g=i.useCallback(()=>{if(l.current){const x=xt(l.current);x.length&&(d.current=zu(x))}},[]);return r.jsxRuntimeExports.jsx(ku,{scope:n,value:u,triggerRef:m,contentRef:l,focusProxyRef:f,wasEscapeCloseRef:p,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:g,onContentFocusOutside:g,children:r.jsxRuntimeExports.jsx(c.Primitive.li,{...a,ref:t})})});yr.displayName=Mr;var ft="NavigationMenuTrigger",_r=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:o,...a}=e,s=Y(ft,e.__scopeNavigationMenu),u=Sr(ft,e.__scopeNavigationMenu),l=i.useRef(null),m=k.useComposedRefs(l,u.triggerRef,t),f=kr(s.baseId,u.value),d=$r(s.baseId,u.value),p=i.useRef(!1),v=i.useRef(!1),g=u.value===s.value;return r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[r.jsxRuntimeExports.jsx(Gt.ItemSlot,{scope:n,value:u.value,children:r.jsxRuntimeExports.jsx(Or,{asChild:!0,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{id:f,disabled:o,"data-disabled":o?"":void 0,"data-state":Bt(g),"aria-expanded":g,"aria-controls":d,...a,ref:m,onPointerEnter:c.composeEventHandlers(e.onPointerEnter,()=>{v.current=!1,u.wasEscapeCloseRef.current=!1}),onPointerMove:c.composeEventHandlers(e.onPointerMove,$e(()=>{o||v.current||u.wasEscapeCloseRef.current||p.current||(s.onTriggerEnter(u.value),p.current=!0)})),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,$e(()=>{o||(s.onTriggerLeave(),p.current=!1)})),onClick:c.composeEventHandlers(e.onClick,()=>{s.onItemSelect(u.value),v.current=g}),onKeyDown:c.composeEventHandlers(e.onKeyDown,x=>{const E={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];g&&x.key===E&&(u.onEntryKeyDown(),x.preventDefault())})})})}),g&&r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[r.jsxRuntimeExports.jsx(I.Root,{"aria-hidden":!0,tabIndex:0,ref:u.focusProxyRef,onFocus:x=>{const h=u.contentRef.current,E=x.relatedTarget,j=E===l.current,M=h?.contains(E);(j||!M)&&u.onFocusProxyEnter(j?"start":"end")}}),s.viewport&&r.jsxRuntimeExports.jsx("span",{"aria-owns":d})]})]})});_r.displayName=ft;var $u="NavigationMenuLink",an="navigationMenu.linkSelect",Pr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:o,onSelect:a,...s}=e;return r.jsxRuntimeExports.jsx(Or,{asChild:!0,children:r.jsxRuntimeExports.jsx(c.Primitive.a,{"data-active":o?"":void 0,"aria-current":o?"page":void 0,...s,ref:t,onClick:c.composeEventHandlers(e.onClick,u=>{const l=u.target,m=new CustomEvent(an,{bubbles:!0,cancelable:!0});if(l.addEventListener(an,f=>a?.(f),{once:!0}),c.dispatchDiscreteCustomEvent(l,m),!m.defaultPrevented&&!u.metaKey){const f=new CustomEvent(De,{bubbles:!0,cancelable:!0});c.dispatchDiscreteCustomEvent(l,f)}},{checkForDefaultPrevented:!1})})})});Pr.displayName=$u;var zt="NavigationMenuIndicator",Nr=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=Y(zt,e.__scopeNavigationMenu),s=!!a.value;return a.indicatorTrack?Ya.createPortal(r.jsxRuntimeExports.jsx(c.Presence,{present:n||s,children:r.jsxRuntimeExports.jsx(Lu,{...o,ref:t})}),a.indicatorTrack):null});Nr.displayName=zt;var Lu=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Y(zt,n),s=br(n),[u,l]=i.useState(null),[m,f]=i.useState(null),d=a.orientation==="horizontal",p=!!a.value;i.useEffect(()=>{const x=s().find(h=>h.value===a.value)?.ref.current;x&&l(x)},[s,a.value]);const v=()=>{u&&f({size:d?u.offsetWidth:u.offsetHeight,offset:d?u.offsetLeft:u.offsetTop})};return vt(u,v),vt(a.indicatorTrack,v),m?r.jsxRuntimeExports.jsx(c.Primitive.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":a.orientation,...o,ref:t,style:{position:"absolute",...d?{left:0,width:m.size+"px",transform:`translateX(${m.offset}px)`}:{top:0,height:m.size+"px",transform:`translateY(${m.offset}px)`},...o.style}}):null}),ge="NavigationMenuContent",Ir=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=Y(ge,e.__scopeNavigationMenu),s=Sr(ge,e.__scopeNavigationMenu),u=k.useComposedRefs(s.contentRef,t),l=s.value===a.value,m={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...o};return a.viewport?r.jsxRuntimeExports.jsx(Fu,{forceMount:n,...m,ref:u}):r.jsxRuntimeExports.jsx(c.Presence,{present:n||l,children:r.jsxRuntimeExports.jsx(Ar,{"data-state":Bt(l),...m,ref:u,onPointerEnter:c.composeEventHandlers(e.onPointerEnter,a.onContentEnter),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,$e(a.onContentLeave)),style:{pointerEvents:!l&&a.isRootMenu?"none":void 0,...m.style}})})});Ir.displayName=ge;var Fu=i.forwardRef((e,t)=>{const n=Y(ge,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:a}=n;return c.useLayoutEffect2(()=>{o(e.value,{ref:t,...e})},[e,t,o]),c.useLayoutEffect2(()=>()=>a(e.value),[e.value,a]),null}),De="navigationMenu.rootContentDismiss",Ar=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,triggerRef:a,focusProxyRef:s,wasEscapeCloseRef:u,onRootContentClose:l,onContentFocusOutside:m,...f}=e,d=Y(ge,n),p=i.useRef(null),v=k.useComposedRefs(p,t),g=kr(d.baseId,o),x=$r(d.baseId,o),h=br(n),E=i.useRef(null),{onItemDismiss:j}=d;i.useEffect(()=>{const C=p.current;if(d.isRootMenu&&C){const y=()=>{j(),l(),C.contains(document.activeElement)&&a.current?.focus()};return C.addEventListener(De,y),()=>C.removeEventListener(De,y)}},[d.isRootMenu,e.value,a,j,l]);const M=i.useMemo(()=>{const y=h().map(F=>F.value);d.dir==="rtl"&&y.reverse();const _=y.indexOf(d.value),S=y.indexOf(d.previousValue),T=o===d.value,$=S===y.indexOf(o);if(!T&&!$)return E.current;const L=(()=>{if(_!==S){if(T&&S!==-1)return _>S?"from-end":"from-start";if($&&_!==-1)return _>S?"to-start":"to-end"}return null})();return E.current=L,L},[d.previousValue,d.value,d.dir,h,o]);return r.jsxRuntimeExports.jsx(Tr,{asChild:!0,children:r.jsxRuntimeExports.jsx(c.DismissableLayer,{id:x,"aria-labelledby":g,"data-motion":M,"data-orientation":d.orientation,...f,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{const C=new Event(De,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(C)},onFocusOutside:c.composeEventHandlers(e.onFocusOutside,C=>{m();const y=C.target;d.rootNavigationMenu?.contains(y)&&C.preventDefault()}),onPointerDownOutside:c.composeEventHandlers(e.onPointerDownOutside,C=>{const y=C.target,_=h().some(T=>T.ref.current?.contains(y)),S=d.isRootMenu&&d.viewport?.contains(y);(_||S||!d.isRootMenu)&&C.preventDefault()}),onKeyDown:c.composeEventHandlers(e.onKeyDown,C=>{const y=C.altKey||C.ctrlKey||C.metaKey;if(C.key==="Tab"&&!y){const S=xt(C.currentTarget),T=document.activeElement,$=S.findIndex(B=>B===T),F=C.shiftKey?S.slice(0,$).reverse():S.slice($+1,S.length);Ut(F)?C.preventDefault():s.current?.focus()}}),onEscapeKeyDown:c.composeEventHandlers(e.onEscapeKeyDown,C=>{u.current=!0})})})}),Vt="NavigationMenuViewport",Dr=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,s=!!Y(Vt,e.__scopeNavigationMenu).value;return r.jsxRuntimeExports.jsx(c.Presence,{present:n||s,children:r.jsxRuntimeExports.jsx(Hu,{...o,ref:t})})});Dr.displayName=Vt;var Hu=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:o,...a}=e,s=Y(Vt,n),u=k.useComposedRefs(t,s.onViewportChange),l=Tu(ge,e.__scopeNavigationMenu),[m,f]=i.useState(null),[d,p]=i.useState(null),v=m?m?.width+"px":void 0,g=m?m?.height+"px":void 0,x=!!s.value,h=x?s.value:s.previousValue;return vt(d,()=>{d&&f({width:d.offsetWidth,height:d.offsetHeight})}),r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-state":Bt(x),"data-orientation":s.orientation,...a,ref:u,style:{pointerEvents:!x&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":g,...a.style},onPointerEnter:c.composeEventHandlers(e.onPointerEnter,s.onContentEnter),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,$e(s.onContentLeave)),children:Array.from(l.items).map(([j,{ref:M,forceMount:C,...y}])=>{const _=h===j;return r.jsxRuntimeExports.jsx(c.Presence,{present:C||_,children:r.jsxRuntimeExports.jsx(Ar,{...y,ref:k.composeRefs(M,S=>{_&&S&&p(S)})})},j)})})}),Gu="FocusGroup",Tr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Y(Gu,n);return r.jsxRuntimeExports.jsx(pt.Provider,{scope:n,children:r.jsxRuntimeExports.jsx(pt.Slot,{scope:n,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{dir:a.dir,...o,ref:t})})})}),sn=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Ku="FocusGroupItem",Or=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Nu(n),s=Y(Ku,n);return r.jsxRuntimeExports.jsx(pt.ItemSlot,{scope:n,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{...o,ref:t,onKeyDown:c.composeEventHandlers(e.onKeyDown,u=>{if(["Home","End",...sn].includes(u.key)){let m=a().map(p=>p.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(u.key)&&m.reverse(),sn.includes(u.key)){const p=m.indexOf(u.currentTarget);m=m.slice(p+1)}setTimeout(()=>Ut(m)),u.preventDefault()}})})})});function xt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ut(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function zu(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function vt(e,t){const n=c.useCallbackRef(t);c.useLayoutEffect2(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}function Bt(e){return e?"open":"closed"}function kr(e,t){return`${e}-trigger-${t}`}function $r(e,t){return`${e}-content-${t}`}function $e(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Vu=Er,Uu=wr,Bu=yr,qu=_r,Wu=Pr,Yu=Nr,Xu=Ir,Zu=Dr;function Ju({className:e,children:t,viewport:n=!0,...o}){return r.jsxRuntimeExports.jsxs(Vu,{"data-slot":"navigation-menu","data-viewport":n,className:b.cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...o,children:[t,n&&r.jsxRuntimeExports.jsx(Fr,{})]})}function Qu({className:e,...t}){return r.jsxRuntimeExports.jsx(Uu,{"data-slot":"navigation-menu-list",className:b.cn("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function el({className:e,...t}){return r.jsxRuntimeExports.jsx(Bu,{"data-slot":"navigation-menu-item",className:b.cn("relative",e),...t})}const Lr=cn.cva("group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function tl({className:e,children:t,...n}){return r.jsxRuntimeExports.jsxs(qu,{"data-slot":"navigation-menu-trigger",className:b.cn(Lr(),"group",e),...n,children:[t," ",r.jsxRuntimeExports.jsx(U.ChevronDown,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function nl({className:e,...t}){return r.jsxRuntimeExports.jsx(Xu,{"data-slot":"navigation-menu-content",className:b.cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:shadow-medium group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",e),...t})}function Fr({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{className:b.cn("absolute top-full left-0 isolate z-50 flex justify-center"),children:r.jsxRuntimeExports.jsx(Zu,{"data-slot":"navigation-menu-viewport",className:b.cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",e),...t})})}function ol({className:e,...t}){return r.jsxRuntimeExports.jsx(Wu,{"data-slot":"navigation-menu-link",className:b.cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 ",e),...t})}function rl({className:e,...t}){return r.jsxRuntimeExports.jsx(Yu,{"data-slot":"navigation-menu-indicator",className:b.cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden ",e),...t,children:r.jsxRuntimeExports.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})})}function al({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:b.cn("text-card-foreground flex flex-col gap-6 rounded-lg py-6 bg-content1 ",e),...t})}function sl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:b.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function il({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:b.cn("leading-none font-semibold",e),...t})}function cl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:b.cn("text-muted-foreground text-sm",e),...t})}function ul({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:b.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function ll({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:b.cn("px-6",e),...t})}function dl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:b.cn("flex items-center px-6 [.border-t]:pt-6",e),...t})}function pl({className:e,containerClassName:t,...n}){return r.jsxRuntimeExports.jsx(c.Lt,{"data-slot":"input-otp",containerClassName:b.cn("flex items-center gap-2 has-disabled:opacity-50",t),className:b.cn("disabled:cursor-not-allowed",e),...n})}function ml({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-group",className:b.cn("flex items-center",e),...t})}function fl({index:e,className:t,...n}){const o=i.useContext(c.jt),{char:a,hasFakeCaret:s,isActive:u}=o?.slots[e]??{};return r.jsxRuntimeExports.jsxs("div",{"data-slot":"input-otp-slot","data-active":u,className:b.cn("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...n,children:[a,s&&r.jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:r.jsxRuntimeExports.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function xl({...e}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:r.jsxRuntimeExports.jsx(gi,{})})}var vl="AspectRatio",Hr=i.forwardRef((e,t)=>{const{ratio:n=1/1,style:o,...a}=e;return r.jsxRuntimeExports.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:r.jsxRuntimeExports.jsx(c.Primitive.div,{...a,ref:t,style:{...o,position:"absolute",top:0,right:0,bottom:0,left:0}})})});Hr.displayName=vl;var gl=Hr;function Rl({...e}){return r.jsxRuntimeExports.jsx(gl,{"data-slot":"aspect-ratio",...e})}var qt="Radio",[hl,Gr]=c.createContextScope(qt),[bl,El]=hl(qt),Kr=i.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:a=!1,required:s,disabled:u,value:l="on",onCheck:m,form:f,...d}=e,[p,v]=i.useState(null),g=k.useComposedRefs(t,E=>v(E)),x=i.useRef(!1),h=p?f||!!p.closest("form"):!0;return r.jsxRuntimeExports.jsxs(bl,{scope:n,checked:a,disabled:u,children:[r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",role:"radio","aria-checked":a,"data-state":Br(a),"data-disabled":u?"":void 0,disabled:u,value:l,...d,ref:g,onClick:c.composeEventHandlers(e.onClick,E=>{a||m?.(),h&&(x.current=E.isPropagationStopped(),x.current||E.stopPropagation())})}),h&&r.jsxRuntimeExports.jsx(Ur,{control:p,bubbles:!x.current,name:o,value:l,checked:a,required:s,disabled:u,form:f,style:{transform:"translateX(-100%)"}})]})});Kr.displayName=qt;var zr="RadioIndicator",Vr=i.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...a}=e,s=El(zr,n);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.checked,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{"data-state":Br(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})})});Vr.displayName=zr;var jl="RadioBubbleInput",Ur=i.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:o=!0,...a},s)=>{const u=i.useRef(null),l=k.useComposedRefs(u,s),m=I.usePrevious(n),f=I.useSize(t);return i.useEffect(()=>{const d=u.current;if(!d)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(m!==n&&g){const x=new Event("click",{bubbles:o});g.call(d,n),d.dispatchEvent(x)}},[m,n,o]),r.jsxRuntimeExports.jsx(c.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:l,style:{...a.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Ur.displayName=jl;function Br(e){return e?"checked":"unchecked"}var Cl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xe="RadioGroup",[wl,Mp]=c.createContextScope(Xe,[ae,Gr]),qr=ae(),Wr=Gr(),[Ml,Sl]=wl(Xe),Yr=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:a,value:s,required:u=!1,disabled:l=!1,orientation:m,dir:f,loop:d=!0,onValueChange:p,...v}=e,g=qr(n),x=U.useDirection(f),[h,E]=c.useControllableState({prop:s,defaultProp:a??null,onChange:p,caller:Xe});return r.jsxRuntimeExports.jsx(Ml,{scope:n,name:o,required:u,disabled:l,value:h,onValueChange:E,children:r.jsxRuntimeExports.jsx(He,{asChild:!0,...g,orientation:m,dir:x,loop:d,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"radiogroup","aria-required":u,"aria-orientation":m,"data-disabled":l?"":void 0,dir:x,...v,ref:t})})})});Yr.displayName=Xe;var Xr="RadioGroupItem",Zr=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...a}=e,s=Sl(Xr,n),u=s.disabled||o,l=qr(n),m=Wr(n),f=i.useRef(null),d=k.useComposedRefs(t,f),p=s.value===a.value,v=i.useRef(!1);return i.useEffect(()=>{const g=h=>{Cl.includes(h.key)&&(v.current=!0)},x=()=>v.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",x)}},[]),r.jsxRuntimeExports.jsx(Ge,{asChild:!0,...l,focusable:!u,active:p,children:r.jsxRuntimeExports.jsx(Kr,{disabled:u,required:s.required,checked:p,...m,...a,name:s.name,ref:d,onCheck:()=>s.onValueChange(a.value),onKeyDown:c.composeEventHandlers(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:c.composeEventHandlers(a.onFocus,()=>{v.current&&f.current?.click()})})})});Zr.displayName=Xr;var yl="RadioGroupIndicator",Jr=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,a=Wr(n);return r.jsxRuntimeExports.jsx(Vr,{...a,...o,ref:t})});Jr.displayName=yl;var _l=Yr,Pl=Zr,Nl=Jr;function Il({className:e,...t}){return r.jsxRuntimeExports.jsx(_l,{"data-slot":"radio-group",className:b.cn("grid gap-3",e),...t})}function Al({className:e,...t}){return r.jsxRuntimeExports.jsx(Pl,{"data-slot":"radio-group-item",className:b.cn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:r.jsxRuntimeExports.jsx(Nl,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:r.jsxRuntimeExports.jsx(Nt,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}function Dl({...e}){return r.jsxRuntimeExports.jsx(c.Root,{"data-slot":"sheet",...e})}function Tl({...e}){return r.jsxRuntimeExports.jsx(c.Trigger,{"data-slot":"sheet-trigger",...e})}function Ol({...e}){return r.jsxRuntimeExports.jsx(c.Close,{"data-slot":"sheet-close",...e})}function kl({...e}){return r.jsxRuntimeExports.jsx(c.Portal$1,{"data-slot":"sheet-portal",...e})}function $l({className:e,backdrop:t,...n}){let o="";switch(t){case"transparent":o="bg-transparent";break;case"opaque":o="bg-black/50";break;case"blur":o="backdrop-blur-md backdrop-saturate-150 bg-overlay/30";break}return r.jsxRuntimeExports.jsx(c.Overlay,{"data-slot":"sheet-overlay",className:b.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",o,e),...n})}function Ll({className:e,children:t,side:n="right",backdrop:o="opaque",showCloseButton:a=!0,disabled:s=!1,...u}){return r.jsxRuntimeExports.jsxs(kl,{children:[r.jsxRuntimeExports.jsx($l,{backdrop:o}),r.jsxRuntimeExports.jsxs(c.Content,{"data-slot":"sheet-content",className:b.cn("bg-content1 data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto ",e),...u,children:[t,a&&r.jsxRuntimeExports.jsx(c.Close,{asChild:!0,className:"absolute top-3 right-4 focus:outline-hidden disabled:pointer-events-none",children:r.jsxRuntimeExports.jsx("div",{children:r.jsxRuntimeExports.jsxs(Ee.Button,{isIconOnly:!0,variant:"light",radius:"full","aria-label":"Close",disabled:s,className:"p-0 w-[36px] h-[36px] min-w-auto bg-default-100 hover:bg-default-200 text-default-500 hover:text-default-600 dark:bg-default-100 dark:hover:bg-default-200 dark:text-default-500 dark:hover:text-default-600 disabled:opacity-50 disabled:pointer-events-none",children:[r.jsxRuntimeExports.jsxs("svg",{width:"20",height:"20",fill:"currentColor",role:"img","aria-hidden":"true",children:[r.jsxRuntimeExports.jsx("path",{fill:"none",d:"M0 0h21v21H0z"}),r.jsxRuntimeExports.jsx("path",{d:"m12.12 10 4.07-4.06a1.5 1.5 0 1 0-2.11-2.12L10 7.88 5.94 3.81a1.5 1.5 0 1 0-2.12 2.12L7.88 10l-4.07 4.06a1.5 1.5 0 0 0 0 2.12 1.51 1.51 0 0 0 2.13 0L10 12.12l4.06 4.07a1.45 1.45 0 0 0 1.06.44 1.5 1.5 0 0 0 1.06-2.56Z"})]}),r.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})})})]})]})}function Fl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:b.cn("flex flex-col gap-1.5 p-4",e),...t})}function Hl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:b.cn("mt-auto flex flex-col gap-2 p-4",e),...t})}function Gl({className:e,...t}){return r.jsxRuntimeExports.jsx(c.Title,{"data-slot":"sheet-title",className:b.cn("text-foreground font-semibold",e),...t})}function Kl({className:e,...t}){return r.jsxRuntimeExports.jsx(c.Description,{"data-slot":"sheet-description",className:b.cn("text-muted-foreground text-sm",e),...t})}var Ne="Menubar",[gt,zl,Vl]=I.createCollection(Ne),[Qr,Sp]=c.createContextScope(Ne,[Vl,ae]),z=Et(),ea=ae(),[Ul,Wt]=Qr(Ne),ta=i.forwardRef((e,t)=>{const{__scopeMenubar:n,value:o,onValueChange:a,defaultValue:s,loop:u=!0,dir:l,...m}=e,f=U.useDirection(l),d=ea(n),[p,v]=c.useControllableState({prop:o,onChange:a,defaultProp:s??"",caller:Ne}),[g,x]=i.useState(null);return r.jsxRuntimeExports.jsx(Ul,{scope:n,value:p,onMenuOpen:i.useCallback(h=>{v(h),x(h)},[v]),onMenuClose:i.useCallback(()=>v(""),[v]),onMenuToggle:i.useCallback(h=>{v(E=>E?"":h),x(h)},[v]),dir:f,loop:u,children:r.jsxRuntimeExports.jsx(gt.Provider,{scope:n,children:r.jsxRuntimeExports.jsx(gt.Slot,{scope:n,children:r.jsxRuntimeExports.jsx(He,{asChild:!0,...d,orientation:"horizontal",loop:u,dir:f,currentTabStopId:g,onCurrentTabStopIdChange:x,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"menubar",...m,ref:t})})})})})});ta.displayName=Ne;var Yt="MenubarMenu",[Bl,na]=Qr(Yt),oa=e=>{const{__scopeMenubar:t,value:n,...o}=e,a=c.useId(),s=n||a||"LEGACY_REACT_AUTO_VALUE",u=Wt(Yt,t),l=z(t),m=i.useRef(null),f=i.useRef(!1),d=u.value===s;return i.useEffect(()=>{d||(f.current=!1)},[d]),r.jsxRuntimeExports.jsx(Bl,{scope:t,value:s,triggerId:c.useId(),triggerRef:m,contentId:c.useId(),wasKeyboardTriggerOpenRef:f,children:r.jsxRuntimeExports.jsx(Fn,{...l,open:d,onOpenChange:p=>{p||u.onMenuClose()},modal:!1,dir:u.dir,...o})})};oa.displayName=Yt;var Rt="MenubarTrigger",ra=i.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:o=!1,...a}=e,s=ea(n),u=z(n),l=Wt(Rt,n),m=na(Rt,n),f=i.useRef(null),d=k.useComposedRefs(t,f,m.triggerRef),[p,v]=i.useState(!1),g=l.value===m.value;return r.jsxRuntimeExports.jsx(gt.ItemSlot,{scope:n,value:m.value,disabled:o,children:r.jsxRuntimeExports.jsx(Ge,{asChild:!0,...s,focusable:!o,tabStopId:m.value,children:r.jsxRuntimeExports.jsx(Hn,{asChild:!0,...u,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",role:"menuitem",id:m.triggerId,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?m.contentId:void 0,"data-highlighted":p?"":void 0,"data-state":g?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:d,onPointerDown:c.composeEventHandlers(e.onPointerDown,x=>{!o&&x.button===0&&x.ctrlKey===!1&&(l.onMenuOpen(m.value),g||x.preventDefault())}),onPointerEnter:c.composeEventHandlers(e.onPointerEnter,()=>{!!l.value&&!g&&(l.onMenuOpen(m.value),f.current?.focus())}),onKeyDown:c.composeEventHandlers(e.onKeyDown,x=>{o||(["Enter"," "].includes(x.key)&&l.onMenuToggle(m.value),x.key==="ArrowDown"&&l.onMenuOpen(m.value),["Enter"," ","ArrowDown"].includes(x.key)&&(m.wasKeyboardTriggerOpenRef.current=!0,x.preventDefault()))}),onFocus:c.composeEventHandlers(e.onFocus,()=>v(!0)),onBlur:c.composeEventHandlers(e.onBlur,()=>v(!1))})})})})});ra.displayName=Rt;var ql="MenubarPortal",aa=e=>{const{__scopeMenubar:t,...n}=e,o=z(t);return r.jsxRuntimeExports.jsx(Gn,{...o,...n})};aa.displayName=ql;var ht="MenubarContent",sa=i.forwardRef((e,t)=>{const{__scopeMenubar:n,align:o="start",...a}=e,s=z(n),u=Wt(ht,n),l=na(ht,n),m=zl(n),f=i.useRef(!1);return r.jsxRuntimeExports.jsx(Kn,{id:l.contentId,"aria-labelledby":l.triggerId,"data-radix-menubar-content":"",...s,...a,ref:t,align:o,onCloseAutoFocus:c.composeEventHandlers(e.onCloseAutoFocus,d=>{!!!u.value&&!f.current&&l.triggerRef.current?.focus(),f.current=!1,d.preventDefault()}),onFocusOutside:c.composeEventHandlers(e.onFocusOutside,d=>{const p=d.target;m().some(g=>g.ref.current?.contains(p))&&d.preventDefault()}),onInteractOutside:c.composeEventHandlers(e.onInteractOutside,()=>{f.current=!0}),onEntryFocus:d=>{l.wasKeyboardTriggerOpenRef.current||d.preventDefault()},onKeyDown:c.composeEventHandlers(e.onKeyDown,d=>{if(["ArrowRight","ArrowLeft"].includes(d.key)){const p=d.target,v=p.hasAttribute("data-radix-menubar-subtrigger"),g=p.closest("[data-radix-menubar-content]")!==d.currentTarget,h=(u.dir==="rtl"?"ArrowRight":"ArrowLeft")===d.key;if(!h&&v||g&&h)return;let M=m().filter(_=>!_.disabled).map(_=>_.value);h&&M.reverse();const C=M.indexOf(l.value);M=u.loop?sd(M,C+1):M.slice(C+1);const[y]=M;y&&u.onMenuOpen(y)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});sa.displayName=ht;var Wl="MenubarGroup",ia=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(zn,{...a,...o,ref:t})});ia.displayName=Wl;var Yl="MenubarLabel",ca=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Vn,{...a,...o,ref:t})});ca.displayName=Yl;var Xl="MenubarItem",ua=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Un,{...a,...o,ref:t})});ua.displayName=Xl;var Zl="MenubarCheckboxItem",la=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Bn,{...a,...o,ref:t})});la.displayName=Zl;var Jl="MenubarRadioGroup",da=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(qn,{...a,...o,ref:t})});da.displayName=Jl;var Ql="MenubarRadioItem",pa=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Wn,{...a,...o,ref:t})});pa.displayName=Ql;var ed="MenubarItemIndicator",ma=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Yn,{...a,...o,ref:t})});ma.displayName=ed;var td="MenubarSeparator",fa=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Xn,{...a,...o,ref:t})});fa.displayName=td;var nd="MenubarArrow",od=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Zn,{...a,...o,ref:t})});od.displayName=nd;var xa="MenubarSub",va=e=>{const{__scopeMenubar:t,children:n,open:o,onOpenChange:a,defaultOpen:s}=e,u=z(t),[l,m]=c.useControllableState({prop:o,defaultProp:s??!1,onChange:a,caller:xa});return r.jsxRuntimeExports.jsx(Jn,{...u,open:l,onOpenChange:m,children:n})};va.displayName=xa;var rd="MenubarSubTrigger",ga=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Qn,{"data-radix-menubar-subtrigger":"",...a,...o,ref:t})});ga.displayName=rd;var ad="MenubarSubContent",Ra=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(eo,{...a,"data-radix-menubar-content":"",...o,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});Ra.displayName=ad;function sd(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var id=ta,cd=oa,ud=ra,ld=aa,dd=sa,pd=ia,md=ca,fd=ua,xd=la,vd=da,gd=pa,ha=ma,Rd=fa,hd=va,bd=ga,Ed=Ra;function jd({className:e,...t}){return r.jsxRuntimeExports.jsx(id,{"data-slot":"menubar",className:b.cn("bg-content1 flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...t})}function Cd({...e}){return r.jsxRuntimeExports.jsx(cd,{"data-slot":"menubar-menu",...e})}function wd({...e}){return r.jsxRuntimeExports.jsx(pd,{"data-slot":"menubar-group",...e})}function ba({...e}){return r.jsxRuntimeExports.jsx(ld,{"data-slot":"menubar-portal",...e})}function Md({...e}){return r.jsxRuntimeExports.jsx(vd,{"data-slot":"menubar-radio-group",...e})}function Sd({className:e,...t}){return r.jsxRuntimeExports.jsx(ud,{"data-slot":"menubar-trigger",className:b.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",e),...t})}function yd({className:e,align:t="start",alignOffset:n=-4,sideOffset:o=8,...a}){return r.jsxRuntimeExports.jsx(ba,{children:r.jsxRuntimeExports.jsx(dd,{"data-slot":"menubar-content",align:t,alignOffset:n,sideOffset:o,className:b.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...a})})}function _d({className:e,inset:t,variant:n="default",...o}){return r.jsxRuntimeExports.jsx(fd,{"data-slot":"menubar-item","data-inset":t,"data-variant":n,className:b.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function Pd({className:e,children:t,checked:n,...o}){return r.jsxRuntimeExports.jsxs(xd,{"data-slot":"menubar-checkbox-item",className:b.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...o,children:[r.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(ha,{children:r.jsxRuntimeExports.jsx(U.Check,{className:"size-4"})})}),t]})}function Nd({className:e,children:t,...n}){return r.jsxRuntimeExports.jsxs(gd,{"data-slot":"menubar-radio-item",className:b.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(ha,{children:r.jsxRuntimeExports.jsx(Nt,{className:"size-2 fill-current"})})}),t]})}function Id({className:e,inset:t,...n}){return r.jsxRuntimeExports.jsx(md,{"data-slot":"menubar-label","data-inset":t,className:b.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Ad({className:e,...t}){return r.jsxRuntimeExports.jsx(Rd,{"data-slot":"menubar-separator",className:b.cn("bg-border -mx-1 my-1 h-px",e),...t})}function Dd({className:e,...t}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"menubar-shortcut",className:b.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function Td({...e}){return r.jsxRuntimeExports.jsx(hd,{"data-slot":"menubar-sub",...e})}function Od({className:e,inset:t,children:n,...o}){return r.jsxRuntimeExports.jsxs(bd,{"data-slot":"menubar-sub-trigger","data-inset":t,className:b.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",e),...o,children:[n,r.jsxRuntimeExports.jsx(Eo,{className:"ml-auto h-4 w-4"})]})}function kd({className:e,...t}){return r.jsxRuntimeExports.jsx(Ed,{"data-slot":"menubar-sub-content",className:b.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var Ea="AlertDialog",[$d,yp]=c.createContextScope(Ea,[c.createDialogScope]),oe=c.createDialogScope(),ja=e=>{const{__scopeAlertDialog:t,...n}=e,o=oe(t);return r.jsxRuntimeExports.jsx(c.Root,{...o,...n,modal:!0})};ja.displayName=Ea;var Ld="AlertDialogTrigger",Ca=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Trigger,{...a,...o,ref:t})});Ca.displayName=Ld;var Fd="AlertDialogPortal",wa=e=>{const{__scopeAlertDialog:t,...n}=e,o=oe(t);return r.jsxRuntimeExports.jsx(c.Portal$1,{...o,...n})};wa.displayName=Fd;var Hd="AlertDialogOverlay",Ma=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Overlay,{...a,...o,ref:t})});Ma.displayName=Hd;var xe="AlertDialogContent",[Gd,Kd]=$d(xe),zd=k.createSlottable("AlertDialogContent"),Sa=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:o,...a}=e,s=oe(n),u=i.useRef(null),l=k.useComposedRefs(t,u),m=i.useRef(null);return r.jsxRuntimeExports.jsx(c.WarningProvider,{contentName:xe,titleName:ya,docsSlug:"alert-dialog",children:r.jsxRuntimeExports.jsx(Gd,{scope:n,cancelRef:m,children:r.jsxRuntimeExports.jsxs(c.Content,{role:"alertdialog",...s,...a,ref:l,onOpenAutoFocus:c.composeEventHandlers(a.onOpenAutoFocus,f=>{f.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[r.jsxRuntimeExports.jsx(zd,{children:o}),r.jsxRuntimeExports.jsx(Ud,{contentRef:u})]})})})});Sa.displayName=xe;var ya="AlertDialogTitle",_a=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Title,{...a,...o,ref:t})});_a.displayName=ya;var Pa="AlertDialogDescription",Na=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Description,{...a,...o,ref:t})});Na.displayName=Pa;var Vd="AlertDialogAction",Ia=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Close,{...a,...o,ref:t})});Ia.displayName=Vd;var Aa="AlertDialogCancel",Da=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:a}=Kd(Aa,n),s=oe(n),u=k.useComposedRefs(t,a);return r.jsxRuntimeExports.jsx(c.Close,{...s,...o,ref:u})});Da.displayName=Aa;var Ud=({contentRef:e})=>{const t=`\`${xe}\` requires a description for the component to be accessible for screen reader users.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../chunks/textarea-D9X4fUkV.js"),r=require("../chunks/jsx-runtime-BjzqJBtL.js"),G=require("react"),b=require("../chunks/utils-CxdrMFeI.js"),Wa=require("../chunks/label-error-B8Rq-HGY.js"),k=require("../chunks/index-6ER8bShj.js"),I=require("../chunks/select-DGSPwoy8.js"),U=require("../chunks/index-BydcKEwP.js"),cn=require("../chunks/index-nwdlcB7h.js"),bt=require("../chunks/scroll-area-B0mWCpSW.js"),Ya=require("react-dom"),Ee=require("../chunks/button-DFrxQHAW.js");function Xa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=Xa(G);var Za="Label",un=i.forwardRef((e,t)=>r.jsxRuntimeExports.jsx(c.Primitive.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));un.displayName=Za;var Ja=un;function Qa({className:e,...t}){return r.jsxRuntimeExports.jsx(Ja,{"data-slot":"label",className:b.cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}var et="rovingFocusGroup.onEntryFocus",es={bubbles:!1,cancelable:!0},we="RovingFocusGroup",[it,ln,ts]=I.createCollection(we),[ns,ae]=c.createContextScope(we,[ts]),[os,rs]=ns(we),dn=i.forwardRef((e,t)=>r.jsxRuntimeExports.jsx(it.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsxRuntimeExports.jsx(it.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsxRuntimeExports.jsx(as,{...e,ref:t})})}));dn.displayName=we;var as=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:a=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:m,onEntryFocus:f,preventScrollOnEntryFocus:d=!1,...p}=e,v=i.useRef(null),g=k.useComposedRefs(t,v),x=U.useDirection(s),[h,E]=c.useControllableState({prop:u,defaultProp:l??null,onChange:m,caller:we}),[j,M]=i.useState(!1),C=c.useCallbackRef(f),y=ln(n),_=i.useRef(!1),[S,T]=i.useState(0);return i.useEffect(()=>{const $=v.current;if($)return $.addEventListener(et,C),()=>$.removeEventListener(et,C)},[C]),r.jsxRuntimeExports.jsx(os,{scope:n,orientation:o,dir:x,loop:a,currentTabStopId:h,onItemFocus:i.useCallback($=>E($),[E]),onItemShiftTab:i.useCallback(()=>M(!0),[]),onFocusableItemAdd:i.useCallback(()=>T($=>$+1),[]),onFocusableItemRemove:i.useCallback(()=>T($=>$-1),[]),children:r.jsxRuntimeExports.jsx(c.Primitive.div,{tabIndex:j||S===0?-1:0,"data-orientation":o,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:c.composeEventHandlers(e.onMouseDown,()=>{_.current=!0}),onFocus:c.composeEventHandlers(e.onFocus,$=>{const L=!_.current;if($.target===$.currentTarget&&L&&!j){const F=new CustomEvent(et,es);if($.currentTarget.dispatchEvent(F),!F.defaultPrevented){const B=y().filter(q=>q.focusable),Q=B.find(q=>q.active),ce=B.find(q=>q.id===h),ee=[Q,ce,...B].filter(Boolean).map(q=>q.ref.current);fn(ee,d)}}_.current=!1}),onBlur:c.composeEventHandlers(e.onBlur,()=>M(!1))})})}),pn="RovingFocusGroupItem",mn=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:s,children:u,...l}=e,m=c.useId(),f=s||m,d=rs(pn,n),p=d.currentTabStopId===f,v=ln(n),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:h}=d;return i.useEffect(()=>{if(o)return g(),()=>x()},[o,g,x]),r.jsxRuntimeExports.jsx(it.ItemSlot,{scope:n,id:f,focusable:o,active:a,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:c.composeEventHandlers(e.onMouseDown,E=>{o?d.onItemFocus(f):E.preventDefault()}),onFocus:c.composeEventHandlers(e.onFocus,()=>d.onItemFocus(f)),onKeyDown:c.composeEventHandlers(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){d.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const j=cs(E,d.orientation,d.dir);if(j!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let C=v().filter(y=>y.focusable).map(y=>y.ref.current);if(j==="last")C.reverse();else if(j==="prev"||j==="next"){j==="prev"&&C.reverse();const y=C.indexOf(E.currentTarget);C=d.loop?us(C,y+1):C.slice(y+1)}setTimeout(()=>fn(C))}}),children:typeof u=="function"?u({isCurrentTabStop:p,hasTabStop:h!=null}):u})})});mn.displayName=pn;var ss={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function is(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cs(e,t,n){const o=is(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return ss[o]}function fn(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function us(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var He=dn,Ge=mn,ct=["Enter"," "],ls=["ArrowDown","PageUp","Home"],xn=["ArrowUp","PageDown","End"],ds=[...ls,...xn],ps={ltr:[...ct,"ArrowRight"],rtl:[...ct,"ArrowLeft"]},ms={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Me="Menu",[je,fs,xs]=I.createCollection(Me),[le,Et]=c.createContextScope(Me,[xs,I.createPopperScope,ae]),Se=I.createPopperScope(),vn=ae(),[gn,se]=le(Me),[vs,ye]=le(Me),Rn=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:a,onOpenChange:s,modal:u=!0}=e,l=Se(t),[m,f]=i.useState(null),d=i.useRef(!1),p=c.useCallbackRef(s),v=U.useDirection(a);return i.useEffect(()=>{const g=()=>{d.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>d.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),r.jsxRuntimeExports.jsx(I.Root2,{...l,children:r.jsxRuntimeExports.jsx(gn,{scope:t,open:n,onOpenChange:p,content:m,onContentChange:f,children:r.jsxRuntimeExports.jsx(vs,{scope:t,onClose:i.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:v,modal:u,children:o})})})};Rn.displayName=Me;var gs="MenuAnchor",jt=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,a=Se(n);return r.jsxRuntimeExports.jsx(I.Anchor,{...a,...o,ref:t})});jt.displayName=gs;var Ct="MenuPortal",[Rs,hn]=le(Ct,{forceMount:void 0}),bn=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:a}=e,s=se(Ct,t);return r.jsxRuntimeExports.jsx(Rs,{scope:t,forceMount:n,children:r.jsxRuntimeExports.jsx(c.Presence,{present:n||s.open,children:r.jsxRuntimeExports.jsx(c.Portal,{asChild:!0,container:a,children:o})})})};bn.displayName=Ct;var W="MenuContent",[hs,wt]=le(W),En=i.forwardRef((e,t)=>{const n=hn(W,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,s=se(W,e.__scopeMenu),u=ye(W,e.__scopeMenu);return r.jsxRuntimeExports.jsx(je.Provider,{scope:e.__scopeMenu,children:r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:r.jsxRuntimeExports.jsx(je.Slot,{scope:e.__scopeMenu,children:u.modal?r.jsxRuntimeExports.jsx(bs,{...a,ref:t}):r.jsxRuntimeExports.jsx(Es,{...a,ref:t})})})})}),bs=i.forwardRef((e,t)=>{const n=se(W,e.__scopeMenu),o=i.useRef(null),a=k.useComposedRefs(t,o);return i.useEffect(()=>{const s=o.current;if(s)return c.hideOthers(s)},[]),r.jsxRuntimeExports.jsx(Mt,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:c.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Es=i.forwardRef((e,t)=>{const n=se(W,e.__scopeMenu);return r.jsxRuntimeExports.jsx(Mt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),js=k.createSlot("MenuContent.ScrollLock"),Mt=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEntryFocus:m,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:v,onDismiss:g,disableOutsideScroll:x,...h}=e,E=se(W,n),j=ye(W,n),M=Se(n),C=vn(n),y=fs(n),[_,S]=i.useState(null),T=i.useRef(null),$=k.useComposedRefs(t,T,E.onContentChange),L=i.useRef(0),F=i.useRef(""),B=i.useRef(0),Q=i.useRef(null),ce=i.useRef("right"),X=i.useRef(0),ee=x?c.ReactRemoveScroll:i.Fragment,q=x?{as:js,allowPinchZoom:!0}:void 0,Re=N=>{const ne=F.current+N,J=y().filter(A=>!A.disabled),R=document.activeElement,P=J.find(A=>A.ref.current===R)?.textValue,D=J.map(A=>A.textValue),w=Ts(D,ne,P),O=J.find(A=>A.textValue===w)?.ref.current;(function A(H){F.current=H,window.clearTimeout(L.current),H!==""&&(L.current=window.setTimeout(()=>A(""),1e3))})(ne),O&&setTimeout(()=>O.focus())};i.useEffect(()=>()=>window.clearTimeout(L.current),[]),c.useFocusGuards();const te=i.useCallback(N=>ce.current===Q.current?.side&&ks(N,Q.current?.area),[]);return r.jsxRuntimeExports.jsx(hs,{scope:n,searchRef:F,onItemEnter:i.useCallback(N=>{te(N)&&N.preventDefault()},[te]),onItemLeave:i.useCallback(N=>{te(N)||(T.current?.focus(),S(null))},[te]),onTriggerLeave:i.useCallback(N=>{te(N)&&N.preventDefault()},[te]),pointerGraceTimerRef:B,onPointerGraceIntentChange:i.useCallback(N=>{Q.current=N},[]),children:r.jsxRuntimeExports.jsx(ee,{...q,children:r.jsxRuntimeExports.jsx(c.FocusScope,{asChild:!0,trapped:a,onMountAutoFocus:c.composeEventHandlers(s,N=>{N.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:r.jsxRuntimeExports.jsx(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:v,onDismiss:g,children:r.jsxRuntimeExports.jsx(He,{asChild:!0,...C,dir:j.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:S,onEntryFocus:c.composeEventHandlers(m,N=>{j.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:r.jsxRuntimeExports.jsx(I.Content,{role:"menu","aria-orientation":"vertical","data-state":Ln(E.open),"data-radix-menu-content":"",dir:j.dir,...M,...h,ref:$,style:{outline:"none",...h.style},onKeyDown:c.composeEventHandlers(h.onKeyDown,N=>{const J=N.target.closest("[data-radix-menu-content]")===N.currentTarget,R=N.ctrlKey||N.altKey||N.metaKey,P=N.key.length===1;J&&(N.key==="Tab"&&N.preventDefault(),!R&&P&&Re(N.key));const D=T.current;if(N.target!==D||!ds.includes(N.key))return;N.preventDefault();const O=y().filter(A=>!A.disabled).map(A=>A.ref.current);xn.includes(N.key)&&O.reverse(),As(O)}),onBlur:c.composeEventHandlers(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(L.current),F.current="")}),onPointerMove:c.composeEventHandlers(e.onPointerMove,Ce(N=>{const ne=N.target,J=X.current!==N.clientX;if(N.currentTarget.contains(ne)&&J){const R=N.clientX>X.current?"right":"left";ce.current=R,X.current=N.clientX}}))})})})})})})});En.displayName=W;var Cs="MenuGroup",St=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"group",...o,ref:t})});St.displayName=Cs;var ws="MenuLabel",jn=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsxRuntimeExports.jsx(c.Primitive.div,{...o,ref:t})});jn.displayName=ws;var Te="MenuItem",Zt="menu.itemSelect",Ke=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...a}=e,s=i.useRef(null),u=ye(Te,e.__scopeMenu),l=wt(Te,e.__scopeMenu),m=k.useComposedRefs(t,s),f=i.useRef(!1),d=()=>{const p=s.current;if(!n&&p){const v=new CustomEvent(Zt,{bubbles:!0,cancelable:!0});p.addEventListener(Zt,g=>o?.(g),{once:!0}),c.dispatchDiscreteCustomEvent(p,v),v.defaultPrevented?f.current=!1:u.onClose()}};return r.jsxRuntimeExports.jsx(Cn,{...a,ref:m,disabled:n,onClick:c.composeEventHandlers(e.onClick,d),onPointerDown:p=>{e.onPointerDown?.(p),f.current=!0},onPointerUp:c.composeEventHandlers(e.onPointerUp,p=>{f.current||p.currentTarget?.click()}),onKeyDown:c.composeEventHandlers(e.onKeyDown,p=>{const v=l.searchRef.current!=="";n||v&&p.key===" "||ct.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Ke.displayName=Te;var Cn=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:a,...s}=e,u=wt(Te,n),l=vn(n),m=i.useRef(null),f=k.useComposedRefs(t,m),[d,p]=i.useState(!1),[v,g]=i.useState("");return i.useEffect(()=>{const x=m.current;x&&g((x.textContent??"").trim())},[s.children]),r.jsxRuntimeExports.jsx(je.ItemSlot,{scope:n,disabled:o,textValue:a??v,children:r.jsxRuntimeExports.jsx(Ge,{asChild:!0,...l,focusable:!o,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:f,onPointerMove:c.composeEventHandlers(e.onPointerMove,Ce(x=>{o?u.onItemLeave(x):(u.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,Ce(x=>u.onItemLeave(x))),onFocus:c.composeEventHandlers(e.onFocus,()=>p(!0)),onBlur:c.composeEventHandlers(e.onBlur,()=>p(!1))})})})}),Ms="MenuCheckboxItem",wn=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...a}=e;return r.jsxRuntimeExports.jsx(Pn,{scope:e.__scopeMenu,checked:n,children:r.jsxRuntimeExports.jsx(Ke,{role:"menuitemcheckbox","aria-checked":Oe(n)?"mixed":n,...a,ref:t,"data-state":Pt(n),onSelect:c.composeEventHandlers(a.onSelect,()=>o?.(Oe(n)?!0:!n),{checkForDefaultPrevented:!1})})})});wn.displayName=Ms;var Mn="MenuRadioGroup",[Ss,ys]=le(Mn,{value:void 0,onValueChange:()=>{}}),Sn=i.forwardRef((e,t)=>{const{value:n,onValueChange:o,...a}=e,s=c.useCallbackRef(o);return r.jsxRuntimeExports.jsx(Ss,{scope:e.__scopeMenu,value:n,onValueChange:s,children:r.jsxRuntimeExports.jsx(St,{...a,ref:t})})});Sn.displayName=Mn;var yn="MenuRadioItem",_n=i.forwardRef((e,t)=>{const{value:n,...o}=e,a=ys(yn,e.__scopeMenu),s=n===a.value;return r.jsxRuntimeExports.jsx(Pn,{scope:e.__scopeMenu,checked:s,children:r.jsxRuntimeExports.jsx(Ke,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Pt(s),onSelect:c.composeEventHandlers(o.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});_n.displayName=yn;var yt="MenuItemIndicator",[Pn,_s]=le(yt,{checked:!1}),Nn=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...a}=e,s=_s(yt,n);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||Oe(s.checked)||s.checked===!0,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{...a,ref:t,"data-state":Pt(s.checked)})})});Nn.displayName=yt;var Ps="MenuSeparator",In=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});In.displayName=Ps;var Ns="MenuArrow",An=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,a=Se(n);return r.jsxRuntimeExports.jsx(I.Arrow,{...a,...o,ref:t})});An.displayName=Ns;var _t="MenuSub",[Is,Dn]=le(_t),Tn=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:a}=e,s=se(_t,t),u=Se(t),[l,m]=i.useState(null),[f,d]=i.useState(null),p=c.useCallbackRef(a);return i.useEffect(()=>(s.open===!1&&p(!1),()=>p(!1)),[s.open,p]),r.jsxRuntimeExports.jsx(I.Root2,{...u,children:r.jsxRuntimeExports.jsx(gn,{scope:t,open:o,onOpenChange:p,content:f,onContentChange:d,children:r.jsxRuntimeExports.jsx(Is,{scope:t,contentId:c.useId(),triggerId:c.useId(),trigger:l,onTriggerChange:m,children:n})})})};Tn.displayName=_t;var be="MenuSubTrigger",On=i.forwardRef((e,t)=>{const n=se(be,e.__scopeMenu),o=ye(be,e.__scopeMenu),a=Dn(be,e.__scopeMenu),s=wt(be,e.__scopeMenu),u=i.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:m}=s,f={__scopeMenu:e.__scopeMenu},d=i.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return i.useEffect(()=>d,[d]),i.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),m(null)}},[l,m]),r.jsxRuntimeExports.jsx(jt,{asChild:!0,...f,children:r.jsxRuntimeExports.jsx(Cn,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":Ln(n.open),...e,ref:k.composeRefs(t,a.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:c.composeEventHandlers(e.onPointerMove,Ce(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,Ce(p=>{d();const v=n.content?.getBoundingClientRect();if(v){const g=n.content?.dataset.side,x=g==="right",h=x?-5:5,E=v[x?"left":"right"],j=v[x?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+h,y:p.clientY},{x:E,y:v.top},{x:j,y:v.top},{x:j,y:v.bottom},{x:E,y:v.bottom}],side:g}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:c.composeEventHandlers(e.onKeyDown,p=>{const v=s.searchRef.current!=="";e.disabled||v&&p.key===" "||ps[o.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});On.displayName=be;var kn="MenuSubContent",$n=i.forwardRef((e,t)=>{const n=hn(W,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,s=se(W,e.__scopeMenu),u=ye(W,e.__scopeMenu),l=Dn(kn,e.__scopeMenu),m=i.useRef(null),f=k.useComposedRefs(t,m);return r.jsxRuntimeExports.jsx(je.Provider,{scope:e.__scopeMenu,children:r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:r.jsxRuntimeExports.jsx(je.Slot,{scope:e.__scopeMenu,children:r.jsxRuntimeExports.jsx(Mt,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:f,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{u.isUsingKeyboardRef.current&&m.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:c.composeEventHandlers(e.onFocusOutside,d=>{d.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:c.composeEventHandlers(e.onEscapeKeyDown,d=>{u.onClose(),d.preventDefault()}),onKeyDown:c.composeEventHandlers(e.onKeyDown,d=>{const p=d.currentTarget.contains(d.target),v=ms[u.dir].includes(d.key);p&&v&&(s.onOpenChange(!1),l.trigger?.focus(),d.preventDefault())})})})})})});$n.displayName=kn;function Ln(e){return e?"open":"closed"}function Oe(e){return e==="indeterminate"}function Pt(e){return Oe(e)?"indeterminate":e?"checked":"unchecked"}function As(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ds(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Ts(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let u=Ds(e,Math.max(s,0));a.length===1&&(u=u.filter(f=>f!==n));const m=u.find(f=>f.toLowerCase().startsWith(a.toLowerCase()));return m!==n?m:void 0}function Os(e,t){const{x:n,y:o}=e;let a=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const l=t[s],m=t[u],f=l.x,d=l.y,p=m.x,v=m.y;d>o!=v>o&&n<(p-f)*(o-d)/(v-d)+f&&(a=!a)}return a}function ks(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Os(n,t)}function Ce(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Fn=Rn,Hn=jt,Gn=bn,Kn=En,zn=St,Vn=jn,Un=Ke,Bn=wn,qn=Sn,Wn=_n,Yn=Nn,Xn=In,Zn=An,Jn=Tn,Qn=On,eo=$n,ze="DropdownMenu",[$s,hp]=c.createContextScope(ze,[Et]),K=Et(),[Ls,to]=$s(ze),no=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:a,defaultOpen:s,onOpenChange:u,modal:l=!0}=e,m=K(t),f=i.useRef(null),[d,p]=c.useControllableState({prop:a,defaultProp:s??!1,onChange:u,caller:ze});return r.jsxRuntimeExports.jsx(Ls,{scope:t,triggerId:c.useId(),triggerRef:f,contentId:c.useId(),open:d,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(v=>!v),[p]),modal:l,children:r.jsxRuntimeExports.jsx(Fn,{...m,open:d,onOpenChange:p,dir:o,modal:l,children:n})})};no.displayName=ze;var oo="DropdownMenuTrigger",ro=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...a}=e,s=to(oo,n),u=K(n);return r.jsxRuntimeExports.jsx(Hn,{asChild:!0,...u,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:k.composeRefs(t,s.triggerRef),onPointerDown:c.composeEventHandlers(e.onPointerDown,l=>{!o&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:c.composeEventHandlers(e.onKeyDown,l=>{o||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});ro.displayName=oo;var Fs="DropdownMenuPortal",ao=e=>{const{__scopeDropdownMenu:t,...n}=e,o=K(t);return r.jsxRuntimeExports.jsx(Gn,{...o,...n})};ao.displayName=Fs;var so="DropdownMenuContent",io=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=to(so,n),s=K(n),u=i.useRef(!1);return r.jsxRuntimeExports.jsx(Kn,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:c.composeEventHandlers(e.onCloseAutoFocus,l=>{u.current||a.triggerRef.current?.focus(),u.current=!1,l.preventDefault()}),onInteractOutside:c.composeEventHandlers(e.onInteractOutside,l=>{const m=l.detail.originalEvent,f=m.button===0&&m.ctrlKey===!0,d=m.button===2||f;(!a.modal||d)&&(u.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)"}})});io.displayName=so;var Hs="DropdownMenuGroup",co=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(zn,{...a,...o,ref:t})});co.displayName=Hs;var Gs="DropdownMenuLabel",uo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Vn,{...a,...o,ref:t})});uo.displayName=Gs;var Ks="DropdownMenuItem",lo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Un,{...a,...o,ref:t})});lo.displayName=Ks;var zs="DropdownMenuCheckboxItem",po=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Bn,{...a,...o,ref:t})});po.displayName=zs;var Vs="DropdownMenuRadioGroup",mo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(qn,{...a,...o,ref:t})});mo.displayName=Vs;var Us="DropdownMenuRadioItem",fo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Wn,{...a,...o,ref:t})});fo.displayName=Us;var Bs="DropdownMenuItemIndicator",xo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Yn,{...a,...o,ref:t})});xo.displayName=Bs;var qs="DropdownMenuSeparator",vo=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Xn,{...a,...o,ref:t})});vo.displayName=qs;var Ws="DropdownMenuArrow",Ys=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Zn,{...a,...o,ref:t})});Ys.displayName=Ws;var Xs=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:a,defaultOpen:s}=e,u=K(t),[l,m]=c.useControllableState({prop:o,defaultProp:s??!1,onChange:a,caller:"DropdownMenuSub"});return r.jsxRuntimeExports.jsx(Jn,{...u,open:l,onOpenChange:m,children:n})},Zs="DropdownMenuSubTrigger",go=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Qn,{...a,...o,ref:t})});go.displayName=Zs;var Js="DropdownMenuSubContent",Ro=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(eo,{...a,...o,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)"}})});Ro.displayName=Js;var Qs=no,ei=ro,ho=ao,ti=io,ni=co,oi=uo,ri=lo,ai=po,si=mo,ii=fo,bo=xo,ci=vo,ui=Xs,li=go,di=Ro;const pi=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Eo=U.createLucideIcon("chevron-right",pi);const mi=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Nt=U.createLucideIcon("circle",mi);const fi=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],xi=U.createLucideIcon("grip-vertical",fi);const vi=[["path",{d:"M5 12h14",key:"1ays0h"}]],gi=U.createLucideIcon("minus",vi);function Ri({...e}){return r.jsxRuntimeExports.jsx(Qs,{"data-slot":"dropdown-menu",...e})}function hi({...e}){return r.jsxRuntimeExports.jsx(ho,{"data-slot":"dropdown-menu-portal",...e})}function bi({...e}){return r.jsxRuntimeExports.jsx(ei,{"data-slot":"dropdown-menu-trigger",...e})}function Ei({className:e,sideOffset:t=4,...n}){return r.jsxRuntimeExports.jsx(ho,{children:r.jsxRuntimeExports.jsx(ti,{"data-slot":"dropdown-menu-content",sideOffset:t,className:b.cn("bg-content1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-medium",e),...n})})}function ji({...e}){return r.jsxRuntimeExports.jsx(ni,{"data-slot":"dropdown-menu-group",...e})}function Ci({className:e,inset:t,variant:n="default",...o}){return r.jsxRuntimeExports.jsx(ri,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:b.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function wi({className:e,children:t,checked:n,...o}){return r.jsxRuntimeExports.jsxs(ai,{"data-slot":"dropdown-menu-checkbox-item",className:b.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...o,children:[r.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(bo,{children:r.jsxRuntimeExports.jsx(U.Check,{className:"size-4"})})}),t]})}function Mi({...e}){return r.jsxRuntimeExports.jsx(si,{"data-slot":"dropdown-menu-radio-group",...e})}function Si({className:e,children:t,...n}){return r.jsxRuntimeExports.jsxs(ii,{"data-slot":"dropdown-menu-radio-item",className:b.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(bo,{children:r.jsxRuntimeExports.jsx(Nt,{className:"size-2 fill-current"})})}),t]})}function yi({className:e,inset:t,...n}){return r.jsxRuntimeExports.jsx(oi,{"data-slot":"dropdown-menu-label","data-inset":t,className:b.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function _i({className:e,...t}){return r.jsxRuntimeExports.jsx(ci,{"data-slot":"dropdown-menu-separator",className:b.cn("bg-border -mx-1 my-1 h-px",e),...t})}function Pi({className:e,...t}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:b.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function Ni({...e}){return r.jsxRuntimeExports.jsx(ui,{"data-slot":"dropdown-menu-sub",...e})}function Ii({className:e,inset:t,children:n,...o}){return r.jsxRuntimeExports.jsxs(li,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:b.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...o,children:[n,r.jsxRuntimeExports.jsx(Eo,{className:"ml-auto size-4"})]})}function Ai({className:e,...t}){return r.jsxRuntimeExports.jsx(di,{"data-slot":"dropdown-menu-sub-content",className:b.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var Ve="Tabs",[Di,bp]=c.createContextScope(Ve,[ae]),jo=ae(),[Ti,It]=Di(Ve),Co=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:a,defaultValue:s,orientation:u="horizontal",dir:l,activationMode:m="automatic",...f}=e,d=U.useDirection(l),[p,v]=c.useControllableState({prop:o,onChange:a,defaultProp:s??"",caller:Ve});return r.jsxRuntimeExports.jsx(Ti,{scope:n,baseId:c.useId(),value:p,onValueChange:v,orientation:u,dir:d,activationMode:m,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{dir:d,"data-orientation":u,...f,ref:t})})});Co.displayName=Ve;var wo="TabsList",Mo=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...a}=e,s=It(wo,n),u=jo(n);return r.jsxRuntimeExports.jsx(He,{asChild:!0,...u,orientation:s.orientation,dir:s.dir,loop:o,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"tablist","aria-orientation":s.orientation,...a,ref:t})})});Mo.displayName=wo;var So="TabsTrigger",yo=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:a=!1,...s}=e,u=It(So,n),l=jo(n),m=No(u.baseId,o),f=Io(u.baseId,o),d=o===u.value;return r.jsxRuntimeExports.jsx(Ge,{asChild:!0,...l,focusable:!a,active:d,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":f,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:m,...s,ref:t,onMouseDown:c.composeEventHandlers(e.onMouseDown,p=>{!a&&p.button===0&&p.ctrlKey===!1?u.onValueChange(o):p.preventDefault()}),onKeyDown:c.composeEventHandlers(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&u.onValueChange(o)}),onFocus:c.composeEventHandlers(e.onFocus,()=>{const p=u.activationMode!=="manual";!d&&!a&&p&&u.onValueChange(o)})})})});yo.displayName=So;var _o="TabsContent",Po=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:a,children:s,...u}=e,l=It(_o,n),m=No(l.baseId,o),f=Io(l.baseId,o),d=o===l.value,p=i.useRef(d);return i.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),r.jsxRuntimeExports.jsx(c.Presence,{present:a||d,children:({present:v})=>r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":m,hidden:!v,id:f,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&s})})});Po.displayName=_o;function No(e,t){return`${e}-trigger-${t}`}function Io(e,t){return`${e}-content-${t}`}var Oi=Co,ki=Mo,$i=yo,Li=Po;function Fi({className:e,...t}){return r.jsxRuntimeExports.jsx(Oi,{"data-slot":"tabs",className:b.cn("flex flex-col gap-2",e),...t})}function Hi({className:e,...t}){return r.jsxRuntimeExports.jsx(ki,{"data-slot":"tabs-list",className:b.cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Gi({className:e,...t}){return r.jsxRuntimeExports.jsx($i,{"data-slot":"tabs-trigger",className:b.cn("data-[state=active]:bg-content1 dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Ki({className:e,...t}){return r.jsxRuntimeExports.jsx(Li,{"data-slot":"tabs-content",className:b.cn("flex-1 outline-none",e),...t})}function zi({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:b.cn("bg-accent animate-pulse rounded-md",e),...t})}function Vi({className:e,...t}){return r.jsxRuntimeExports.jsx(c.PanelGroup,{"data-slot":"resizable-panel-group",className:b.cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}function Ui({...e}){return r.jsxRuntimeExports.jsx(c.Panel,{"data-slot":"resizable-panel",...e})}function Bi({withHandle:e,className:t,...n}){return r.jsxRuntimeExports.jsx(c.PanelResizeHandle,{"data-slot":"resizable-handle",className:b.cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&r.jsxRuntimeExports.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:r.jsxRuntimeExports.jsx(xi,{className:"size-2.5"})})})}var Ae={exports:{}},tt={};var Jt;function qi(){if(Jt)return tt;Jt=1;var e=G;function t(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,a=e.useEffect,s=e.useLayoutEffect,u=e.useDebugValue;function l(p,v){var g=v(),x=o({inst:{value:g,getSnapshot:v}}),h=x[0].inst,E=x[1];return s(function(){h.value=g,h.getSnapshot=v,m(h)&&E({inst:h})},[p,g,v]),a(function(){return m(h)&&E({inst:h}),p(function(){m(h)&&E({inst:h})})},[p]),u(g),g}function m(p){var v=p.getSnapshot;p=p.value;try{var g=v();return!n(p,g)}catch{return!0}}function f(p,v){return v()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:l;return tt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,tt}var nt={};var Qt;function Wi(){return Qt||(Qt=1,process.env.NODE_ENV!=="production"&&(function(){function e(g,x){return g===x&&(g!==0||1/g===1/x)||g!==g&&x!==x}function t(g,x){d||a.startTransition===void 0||(d=!0);var h=x();if(!p){var E=x();s(h,E)||(p=!0)}E=u({inst:{value:h,getSnapshot:x}});var j=E[0].inst,M=E[1];return m(function(){j.value=h,j.getSnapshot=x,n(j)&&M({inst:j})},[g,h,x]),l(function(){return n(j)&&M({inst:j}),g(function(){n(j)&&M({inst:j})})},[g]),f(h),h}function n(g){var x=g.getSnapshot;g=g.value;try{var h=x();return!s(g,h)}catch{return!0}}function o(g,x){return x()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=G,s=typeof Object.is=="function"?Object.is:e,u=a.useState,l=a.useEffect,m=a.useLayoutEffect,f=a.useDebugValue,d=!1,p=!1,v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;nt.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:v,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),nt}var en;function Yi(){return en||(en=1,process.env.NODE_ENV==="production"?Ae.exports=qi():Ae.exports=Wi()),Ae.exports}var Xi=Yi();function Zi(){return Xi.useSyncExternalStore(Ji,()=>!0,()=>!1)}function Ji(){return()=>{}}var At="Avatar",[Qi,Ep]=c.createContextScope(At),[ec,Ao]=Qi(At),Do=i.forwardRef((e,t)=>{const{__scopeAvatar:n,...o}=e,[a,s]=i.useState("idle");return r.jsxRuntimeExports.jsx(ec,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:s,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{...o,ref:t})})});Do.displayName=At;var To="AvatarImage",Oo=i.forwardRef((e,t)=>{const{__scopeAvatar:n,src:o,onLoadingStatusChange:a=()=>{},...s}=e,u=Ao(To,n),l=tc(o,s),m=c.useCallbackRef(f=>{a(f),u.onImageLoadingStatusChange(f)});return c.useLayoutEffect2(()=>{l!=="idle"&&m(l)},[l,m]),l==="loaded"?r.jsxRuntimeExports.jsx(c.Primitive.img,{...s,ref:t,src:o}):null});Oo.displayName=To;var ko="AvatarFallback",$o=i.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:o,...a}=e,s=Ao(ko,n),[u,l]=i.useState(o===void 0);return i.useEffect(()=>{if(o!==void 0){const m=window.setTimeout(()=>l(!0),o);return()=>window.clearTimeout(m)}},[o]),u&&s.imageLoadingStatus!=="loaded"?r.jsxRuntimeExports.jsx(c.Primitive.span,{...a,ref:t}):null});$o.displayName=ko;function tn(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function tc(e,{referrerPolicy:t,crossOrigin:n}){const o=Zi(),a=i.useRef(null),s=o?(a.current||(a.current=new window.Image),a.current):null,[u,l]=i.useState(()=>tn(s,e));return c.useLayoutEffect2(()=>{l(tn(s,e))},[s,e]),c.useLayoutEffect2(()=>{const m=p=>()=>{l(p)};if(!s)return;const f=m("loaded"),d=m("error");return s.addEventListener("load",f),s.addEventListener("error",d),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",f),s.removeEventListener("error",d)}},[s,n,t]),u}var nc=Do,oc=Oo,rc=$o;const ac=cn.cva("flex relative justify-center items-center box-border overflow-hidden align-middle z-0 outline-none data-[focus-visible=true]:z-10 data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-focus data-[focus-visible=true]:outline-offset-2 text-tiny text-default-foreground rounded-full",{variants:{color:{primary:"bg-primary ring-primary text-primary-foreground",secondary:"bg-secondary ring-secondary text-secondary-foreground",success:"bg-success ring-success text-success-foreground",warning:"bg-warning ring-warning text-warning-foreground",danger:"bg-danger ring-danger text-danger-foreground",default:"bg-default ring-default text-default-foreground"},isBordered:{true:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark",false:""},size:{sm:"w-8 h-8",md:"w-10 h-10",lg:"w-12 h-12"}},defaultVariants:{color:"default",isBordered:!1,size:"md"}});function sc({className:e,color:t="default",isBordered:n=!1,size:o="md",...a}){return r.jsxRuntimeExports.jsx(nc,{"data-slot":"avatar",asChild:!0,children:r.jsxRuntimeExports.jsx("span",{tabIndex:-1,"data-slot":"avatar",className:b.cn(ac({color:t,isBordered:n,size:o}),e),...a})})}function ic({className:e,...t}){return r.jsxRuntimeExports.jsx(oc,{"data-slot":"avatar-image",className:b.cn("aspect-square size-full object-cover",e),...t})}function cc({className:e,...t}){return r.jsxRuntimeExports.jsx(rc,{"data-slot":"avatar-fallback",className:b.cn(" flex size-full items-center justify-center rounded-full",e),...t})}var Ue="Popover",[Lo,jp]=c.createContextScope(Ue,[I.createPopperScope]),_e=I.createPopperScope(),[uc,ie]=Lo(Ue),Fo=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:a,onOpenChange:s,modal:u=!1}=e,l=_e(t),m=i.useRef(null),[f,d]=i.useState(!1),[p,v]=c.useControllableState({prop:o,defaultProp:a??!1,onChange:s,caller:Ue});return r.jsxRuntimeExports.jsx(I.Root2,{...l,children:r.jsxRuntimeExports.jsx(uc,{scope:t,contentId:c.useId(),triggerRef:m,open:p,onOpenChange:v,onOpenToggle:i.useCallback(()=>v(g=>!g),[v]),hasCustomAnchor:f,onCustomAnchorAdd:i.useCallback(()=>d(!0),[]),onCustomAnchorRemove:i.useCallback(()=>d(!1),[]),modal:u,children:n})})};Fo.displayName=Ue;var Ho="PopoverAnchor",Go=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=ie(Ho,n),s=_e(n),{onCustomAnchorAdd:u,onCustomAnchorRemove:l}=a;return i.useEffect(()=>(u(),()=>l()),[u,l]),r.jsxRuntimeExports.jsx(I.Anchor,{...s,...o,ref:t})});Go.displayName=Ho;var Ko="PopoverTrigger",zo=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=ie(Ko,n),s=_e(n),u=k.useComposedRefs(t,a.triggerRef),l=r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Wo(a.open),...o,ref:u,onClick:c.composeEventHandlers(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:r.jsxRuntimeExports.jsx(I.Anchor,{asChild:!0,...s,children:l})});zo.displayName=Ko;var Dt="PopoverPortal",[lc,dc]=Lo(Dt,{forceMount:void 0}),Vo=e=>{const{__scopePopover:t,forceMount:n,children:o,container:a}=e,s=ie(Dt,t);return r.jsxRuntimeExports.jsx(lc,{scope:t,forceMount:n,children:r.jsxRuntimeExports.jsx(c.Presence,{present:n||s.open,children:r.jsxRuntimeExports.jsx(c.Portal,{asChild:!0,container:a,children:o})})})};Vo.displayName=Dt;var ve="PopoverContent",Uo=i.forwardRef((e,t)=>{const n=dc(ve,e.__scopePopover),{forceMount:o=n.forceMount,...a}=e,s=ie(ve,e.__scopePopover);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:s.modal?r.jsxRuntimeExports.jsx(mc,{...a,ref:t}):r.jsxRuntimeExports.jsx(fc,{...a,ref:t})})});Uo.displayName=ve;var pc=k.createSlot("PopoverContent.RemoveScroll"),mc=i.forwardRef((e,t)=>{const n=ie(ve,e.__scopePopover),o=i.useRef(null),a=k.useComposedRefs(t,o),s=i.useRef(!1);return i.useEffect(()=>{const u=o.current;if(u)return c.hideOthers(u)},[]),r.jsxRuntimeExports.jsx(c.ReactRemoveScroll,{as:pc,allowPinchZoom:!0,children:r.jsxRuntimeExports.jsx(Bo,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:c.composeEventHandlers(e.onCloseAutoFocus,u=>{u.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:c.composeEventHandlers(e.onPointerDownOutside,u=>{const l=u.detail.originalEvent,m=l.button===0&&l.ctrlKey===!0,f=l.button===2||m;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:c.composeEventHandlers(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),fc=i.forwardRef((e,t)=>{const n=ie(ve,e.__scopePopover),o=i.useRef(!1),a=i.useRef(!1);return r.jsxRuntimeExports.jsx(Bo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=s.target;n.triggerRef.current?.contains(u)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),Bo=i.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEscapeKeyDown:l,onPointerDownOutside:m,onFocusOutside:f,onInteractOutside:d,...p}=e,v=ie(ve,n),g=_e(n);return c.useFocusGuards(),r.jsxRuntimeExports.jsx(c.FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:r.jsxRuntimeExports.jsx(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:m,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:r.jsxRuntimeExports.jsx(I.Content,{"data-state":Wo(v.open),role:"dialog",id:v.contentId,...g,...p,ref:t,style:{...p.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)"}})})})}),qo="PopoverClose",xc=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=ie(qo,n);return r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",...o,ref:t,onClick:c.composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});xc.displayName=qo;var vc="PopoverArrow",gc=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=_e(n);return r.jsxRuntimeExports.jsx(I.Arrow,{...a,...o,ref:t})});gc.displayName=vc;function Wo(e){return e?"open":"closed"}var Rc=Fo,hc=Go,bc=zo,Ec=Vo,jc=Uo;function Cc({...e}){return r.jsxRuntimeExports.jsx(Rc,{"data-slot":"popover",...e})}function wc({...e}){return r.jsxRuntimeExports.jsx(bc,{"data-slot":"popover-trigger",...e})}function Mc({className:e,align:t="center",sideOffset:n=4,...o}){return r.jsxRuntimeExports.jsx(Ec,{children:r.jsxRuntimeExports.jsx(jc,{"data-slot":"popover-content",align:t,sideOffset:n,className:b.cn("bg-content1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md shadow-medium outline-hidden",e),...o})})}function Sc({...e}){return r.jsxRuntimeExports.jsx(hc,{"data-slot":"popover-anchor",...e})}var nn=1,yc=.9,_c=.8,Pc=.17,ot=.1,rt=.999,Nc=.9999,Ic=.99,Ac=/[\\\/_+.#"@\[\(\{&]/,Dc=/[\\\/_+.#"@\[\(\{&]/g,Tc=/[\s-]/,Yo=/[\s-]/g;function ut(e,t,n,o,a,s,u){if(s===t.length)return a===e.length?nn:Ic;var l=`${a},${s}`;if(u[l]!==void 0)return u[l];for(var m=o.charAt(s),f=n.indexOf(m,a),d=0,p,v,g,x;f>=0;)p=ut(e,t,n,o,f+1,s+1,u),p>d&&(f===a?p*=nn:Ac.test(e.charAt(f-1))?(p*=_c,g=e.slice(a,f-1).match(Dc),g&&a>0&&(p*=Math.pow(rt,g.length))):Tc.test(e.charAt(f-1))?(p*=yc,x=e.slice(a,f-1).match(Yo),x&&a>0&&(p*=Math.pow(rt,x.length))):(p*=Pc,a>0&&(p*=Math.pow(rt,f-a))),e.charAt(f)!==t.charAt(s)&&(p*=Nc)),(p<ot&&n.charAt(f-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&n.charAt(f-1)!==o.charAt(s))&&(v=ut(e,t,n,o,f+1,s+2,u),v*ot>p&&(p=v*ot)),p>d&&(d=p),f=n.indexOf(m,f+1);return u[l]=d,d}function on(e){return e.toLowerCase().replace(Yo," ")}function Oc(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,ut(e,t,on(e),on(t),0,0,{})}var he='[cmdk-group=""]',at='[cmdk-group-items=""]',kc='[cmdk-group-heading=""]',Xo='[cmdk-item=""]',rn=`${Xo}:not([aria-disabled="true"])`,lt="cmdk-item-select",me="data-value",$c=(e,t,n)=>Oc(e,t,n),Zo=i.createContext(void 0),Pe=()=>i.useContext(Zo),Jo=i.createContext(void 0),Tt=()=>i.useContext(Jo),Qo=i.createContext(void 0),er=i.forwardRef((e,t)=>{let n=fe(()=>{var R,P;return{search:"",value:(P=(R=e.value)!=null?R:e.defaultValue)!=null?P:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=fe(()=>new Set),a=fe(()=>new Map),s=fe(()=>new Map),u=fe(()=>new Set),l=tr(e),{label:m,children:f,value:d,onValueChange:p,filter:v,shouldFilter:g,loop:x,disablePointerSelection:h=!1,vimBindings:E=!0,...j}=e,M=c.useId(),C=c.useId(),y=c.useId(),_=i.useRef(null),S=Wc();ue(()=>{if(d!==void 0){let R=d.trim();n.current.value=R,T.emit()}},[d]),ue(()=>{S(6,ce)},[]);let T=i.useMemo(()=>({subscribe:R=>(u.current.add(R),()=>u.current.delete(R)),snapshot:()=>n.current,setState:(R,P,D)=>{var w,O,A,H;if(!Object.is(n.current[R],P)){if(n.current[R]=P,R==="search")Q(),F(),S(1,B);else if(R==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let V=document.getElementById(y);V?V.focus():(w=document.getElementById(M))==null||w.focus()}if(S(7,()=>{var V;n.current.selectedItemId=(V=X())==null?void 0:V.id,T.emit()}),D||S(5,ce),((O=l.current)==null?void 0:O.value)!==void 0){let V=P??"";(H=(A=l.current).onValueChange)==null||H.call(A,V);return}}T.emit()}},emit:()=>{u.current.forEach(R=>R())}}),[]),$=i.useMemo(()=>({value:(R,P,D)=>{var w;P!==((w=s.current.get(R))==null?void 0:w.value)&&(s.current.set(R,{value:P,keywords:D}),n.current.filtered.items.set(R,L(P,D)),S(2,()=>{F(),T.emit()}))},item:(R,P)=>(o.current.add(R),P&&(a.current.has(P)?a.current.get(P).add(R):a.current.set(P,new Set([R]))),S(3,()=>{Q(),F(),n.current.value||B(),T.emit()}),()=>{s.current.delete(R),o.current.delete(R),n.current.filtered.items.delete(R);let D=X();S(4,()=>{Q(),D?.getAttribute("id")===R&&B(),T.emit()})}),group:R=>(a.current.has(R)||a.current.set(R,new Set),()=>{s.current.delete(R),a.current.delete(R)}),filter:()=>l.current.shouldFilter,label:m||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:M,inputId:y,labelId:C,listInnerRef:_}),[]);function L(R,P){var D,w;let O=(w=(D=l.current)==null?void 0:D.filter)!=null?w:$c;return R?O(R,n.current.search,P):0}function F(){if(!n.current.search||l.current.shouldFilter===!1)return;let R=n.current.filtered.items,P=[];n.current.filtered.groups.forEach(w=>{let O=a.current.get(w),A=0;O.forEach(H=>{let V=R.get(H);A=Math.max(V,A)}),P.push([w,A])});let D=_.current;ee().sort((w,O)=>{var A,H;let V=w.getAttribute("id"),Ie=O.getAttribute("id");return((A=R.get(Ie))!=null?A:0)-((H=R.get(V))!=null?H:0)}).forEach(w=>{let O=w.closest(at);O?O.appendChild(w.parentElement===O?w:w.closest(`${at} > *`)):D.appendChild(w.parentElement===D?w:w.closest(`${at} > *`))}),P.sort((w,O)=>O[1]-w[1]).forEach(w=>{var O;let A=(O=_.current)==null?void 0:O.querySelector(`${he}[${me}="${encodeURIComponent(w[0])}"]`);A?.parentElement.appendChild(A)})}function B(){let R=ee().find(D=>D.getAttribute("aria-disabled")!=="true"),P=R?.getAttribute(me);T.setState("value",P||void 0)}function Q(){var R,P,D,w;if(!n.current.search||l.current.shouldFilter===!1){n.current.filtered.count=o.current.size;return}n.current.filtered.groups=new Set;let O=0;for(let A of o.current){let H=(P=(R=s.current.get(A))==null?void 0:R.value)!=null?P:"",V=(w=(D=s.current.get(A))==null?void 0:D.keywords)!=null?w:[],Ie=L(H,V);n.current.filtered.items.set(A,Ie),Ie>0&&O++}for(let[A,H]of a.current)for(let V of H)if(n.current.filtered.items.get(V)>0){n.current.filtered.groups.add(A);break}n.current.filtered.count=O}function ce(){var R,P,D;let w=X();w&&(((R=w.parentElement)==null?void 0:R.firstChild)===w&&((D=(P=w.closest(he))==null?void 0:P.querySelector(kc))==null||D.scrollIntoView({block:"nearest"})),w.scrollIntoView({block:"nearest"}))}function X(){var R;return(R=_.current)==null?void 0:R.querySelector(`${Xo}[aria-selected="true"]`)}function ee(){var R;return Array.from(((R=_.current)==null?void 0:R.querySelectorAll(rn))||[])}function q(R){let P=ee()[R];P&&T.setState("value",P.getAttribute(me))}function Re(R){var P;let D=X(),w=ee(),O=w.findIndex(H=>H===D),A=w[O+R];(P=l.current)!=null&&P.loop&&(A=O+R<0?w[w.length-1]:O+R===w.length?w[0]:w[O+R]),A&&T.setState("value",A.getAttribute(me))}function te(R){let P=X(),D=P?.closest(he),w;for(;D&&!w;)D=R>0?Bc(D,he):qc(D,he),w=D?.querySelector(rn);w?T.setState("value",w.getAttribute(me)):Re(R)}let N=()=>q(ee().length-1),ne=R=>{R.preventDefault(),R.metaKey?N():R.altKey?te(1):Re(1)},J=R=>{R.preventDefault(),R.metaKey?q(0):R.altKey?te(-1):Re(-1)};return i.createElement(c.Primitive.div,{ref:t,tabIndex:-1,...j,"cmdk-root":"",onKeyDown:R=>{var P;(P=j.onKeyDown)==null||P.call(j,R);let D=R.nativeEvent.isComposing||R.keyCode===229;if(!(R.defaultPrevented||D))switch(R.key){case"n":case"j":{E&&R.ctrlKey&&ne(R);break}case"ArrowDown":{ne(R);break}case"p":case"k":{E&&R.ctrlKey&&J(R);break}case"ArrowUp":{J(R);break}case"Home":{R.preventDefault(),q(0);break}case"End":{R.preventDefault(),N();break}case"Enter":{R.preventDefault();let w=X();if(w){let O=new Event(lt);w.dispatchEvent(O)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:$.inputId,id:$.labelId,style:Xc},m),Be(e,R=>i.createElement(Jo.Provider,{value:T},i.createElement(Zo.Provider,{value:$},R))))}),Lc=i.forwardRef((e,t)=>{var n,o;let a=c.useId(),s=i.useRef(null),u=i.useContext(Qo),l=Pe(),m=tr(e),f=(o=(n=m.current)==null?void 0:n.forceMount)!=null?o:u?.forceMount;ue(()=>{if(!f)return l.item(a,u?.id)},[f]);let d=nr(a,s,[e.value,e.children,s],e.keywords),p=Tt(),v=re(S=>S.value&&S.value===d.current),g=re(S=>f||l.filter()===!1?!0:S.search?S.filtered.items.get(a)>0:!0);i.useEffect(()=>{let S=s.current;if(!(!S||e.disabled))return S.addEventListener(lt,x),()=>S.removeEventListener(lt,x)},[g,e.onSelect,e.disabled]);function x(){var S,T;h(),(T=(S=m.current).onSelect)==null||T.call(S,d.current)}function h(){p.setState("value",d.current,!0)}if(!g)return null;let{disabled:E,value:j,onSelect:M,forceMount:C,keywords:y,..._}=e;return i.createElement(c.Primitive.div,{ref:k.composeRefs(s,t),..._,id:a,"cmdk-item":"",role:"option","aria-disabled":!!E,"aria-selected":!!v,"data-disabled":!!E,"data-selected":!!v,onPointerMove:E||l.getDisablePointerSelection()?void 0:h,onClick:E?void 0:x},e.children)}),Fc=i.forwardRef((e,t)=>{let{heading:n,children:o,forceMount:a,...s}=e,u=c.useId(),l=i.useRef(null),m=i.useRef(null),f=c.useId(),d=Pe(),p=re(g=>a||d.filter()===!1?!0:g.search?g.filtered.groups.has(u):!0);ue(()=>d.group(u),[]),nr(u,l,[e.value,e.heading,m]);let v=i.useMemo(()=>({id:u,forceMount:a}),[a]);return i.createElement(c.Primitive.div,{ref:k.composeRefs(l,t),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},n&&i.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),Be(e,g=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},i.createElement(Qo.Provider,{value:v},g))))}),Hc=i.forwardRef((e,t)=>{let{alwaysRender:n,...o}=e,a=i.useRef(null),s=re(u=>!u.search);return!n&&!s?null:i.createElement(c.Primitive.div,{ref:k.composeRefs(a,t),...o,"cmdk-separator":"",role:"separator"})}),Gc=i.forwardRef((e,t)=>{let{onValueChange:n,...o}=e,a=e.value!=null,s=Tt(),u=re(f=>f.search),l=re(f=>f.selectedItemId),m=Pe();return i.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),i.createElement(c.Primitive.input,{ref:t,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":m.listId,"aria-labelledby":m.labelId,"aria-activedescendant":l,id:m.inputId,type:"text",value:a?e.value:u,onChange:f=>{a||s.setState("search",f.target.value),n?.(f.target.value)}})}),Kc=i.forwardRef((e,t)=>{let{children:n,label:o="Suggestions",...a}=e,s=i.useRef(null),u=i.useRef(null),l=re(f=>f.selectedItemId),m=Pe();return i.useEffect(()=>{if(u.current&&s.current){let f=u.current,d=s.current,p,v=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let g=f.offsetHeight;d.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return v.observe(f),()=>{cancelAnimationFrame(p),v.unobserve(f)}}},[]),i.createElement(c.Primitive.div,{ref:k.composeRefs(s,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":o,id:m.listId},Be(e,f=>i.createElement("div",{ref:k.composeRefs(u,m.listInnerRef),"cmdk-list-sizer":""},f)))}),zc=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,overlayClassName:a,contentClassName:s,container:u,...l}=e;return i.createElement(c.Root,{open:n,onOpenChange:o},i.createElement(c.Portal$1,{container:u},i.createElement(c.Overlay,{"cmdk-overlay":"",className:a}),i.createElement(c.Content,{"aria-label":e.label,"cmdk-dialog":"",className:s},i.createElement(er,{ref:t,...l}))))}),Vc=i.forwardRef((e,t)=>re(n=>n.filtered.count===0)?i.createElement(c.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Uc=i.forwardRef((e,t)=>{let{progress:n,children:o,label:a="Loading...",...s}=e;return i.createElement(c.Primitive.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Be(e,u=>i.createElement("div",{"aria-hidden":!0},u)))}),de=Object.assign(er,{List:Kc,Item:Lc,Input:Gc,Group:Fc,Separator:Hc,Dialog:zc,Empty:Vc,Loading:Uc});function Bc(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function qc(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function tr(e){let t=i.useRef(e);return ue(()=>{t.current=e}),t}var ue=typeof window>"u"?i.useEffect:i.useLayoutEffect;function fe(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function re(e){let t=Tt(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function nr(e,t,n,o=[]){let a=i.useRef(),s=Pe();return ue(()=>{var u;let l=(()=>{var f;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(f=d.current.textContent)==null?void 0:f.trim():a.current}})(),m=o.map(f=>f.trim());s.value(e,l,m),(u=t.current)==null||u.setAttribute(me,l),a.current=l}),a}var Wc=()=>{let[e,t]=i.useState(),n=fe(()=>new Map);return ue(()=>{n.current.forEach(o=>o()),n.current=new Map},[e]),(o,a)=>{n.current.set(o,a),t({})}};function Yc(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Be({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(Yc(t),{ref:t.ref},n(t.props.children)):n(t)}var Xc={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function or({className:e,...t}){return r.jsxRuntimeExports.jsx(de,{"data-slot":"command",className:b.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function Zc({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:o,showCloseButton:a=!0,...s}){return r.jsxRuntimeExports.jsxs(c.Dialog,{...s,children:[r.jsxRuntimeExports.jsxs(c.DialogHeader,{className:"sr-only",children:[r.jsxRuntimeExports.jsx(c.DialogTitle,{children:e}),r.jsxRuntimeExports.jsx(c.DialogDescription,{children:t})]}),r.jsxRuntimeExports.jsx(c.DialogContent,{className:b.cn("overflow-hidden p-0",o),showCloseButton:a,children:r.jsxRuntimeExports.jsx(or,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function Jc({className:e,...t}){return r.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[r.jsxRuntimeExports.jsx(bt.Search,{className:"size-4 shrink-0 opacity-50"}),r.jsxRuntimeExports.jsx(de.Input,{"data-slot":"command-input",className:b.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Qc({className:e,...t}){return r.jsxRuntimeExports.jsx(de.List,{"data-slot":"command-list",className:b.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function eu({...e}){return r.jsxRuntimeExports.jsx(de.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function tu({className:e,...t}){return r.jsxRuntimeExports.jsx(de.Group,{"data-slot":"command-group",className:b.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function nu({className:e,...t}){return r.jsxRuntimeExports.jsx(de.Separator,{"data-slot":"command-separator",className:b.cn("bg-border -mx-1 h-px",e),...t})}function ou({className:e,...t}){return r.jsxRuntimeExports.jsx(de.Item,{"data-slot":"command-item",className:b.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function ru({className:e,...t}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:b.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}var qe="Collapsible",[au,rr]=c.createContextScope(qe),[su,Ot]=au(qe),ar=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:a,disabled:s,onOpenChange:u,...l}=e,[m,f]=c.useControllableState({prop:o,defaultProp:a??!1,onChange:u,caller:qe});return r.jsxRuntimeExports.jsx(su,{scope:n,disabled:s,contentId:c.useId(),open:m,onOpenToggle:i.useCallback(()=>f(d=>!d),[f]),children:r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-state":$t(m),"data-disabled":s?"":void 0,...l,ref:t})})});ar.displayName=qe;var sr="CollapsibleTrigger",ir=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,a=Ot(sr,n);return r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":$t(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...o,ref:t,onClick:c.composeEventHandlers(e.onClick,a.onOpenToggle)})});ir.displayName=sr;var kt="CollapsibleContent",cr=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=Ot(kt,e.__scopeCollapsible);return r.jsxRuntimeExports.jsx(c.Presence,{present:n||a.open,children:({present:s})=>r.jsxRuntimeExports.jsx(iu,{...o,ref:t,present:s})})});cr.displayName=kt;var iu=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:a,...s}=e,u=Ot(kt,n),[l,m]=i.useState(o),f=i.useRef(null),d=k.useComposedRefs(t,f),p=i.useRef(0),v=p.current,g=i.useRef(0),x=g.current,h=u.open||l,E=i.useRef(h),j=i.useRef(void 0);return i.useEffect(()=>{const M=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(M)},[]),c.useLayoutEffect2(()=>{const M=f.current;if(M){j.current=j.current||{transitionDuration:M.style.transitionDuration,animationName:M.style.animationName},M.style.transitionDuration="0s",M.style.animationName="none";const C=M.getBoundingClientRect();p.current=C.height,g.current=C.width,E.current||(M.style.transitionDuration=j.current.transitionDuration,M.style.animationName=j.current.animationName),m(o)}},[u.open,o]),r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-state":$t(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!h,...s,ref:d,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:h&&a})});function $t(e){return e?"open":"closed"}var cu=ar,uu=ir,lu=cr,Z="Accordion",du=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Lt,pu,mu]=I.createCollection(Z),[We,Cp]=c.createContextScope(Z,[mu,rr]),Ft=rr(),ur=G.forwardRef((e,t)=>{const{type:n,...o}=e,a=o,s=o;return r.jsxRuntimeExports.jsx(Lt.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsxRuntimeExports.jsx(gu,{...s,ref:t}):r.jsxRuntimeExports.jsx(vu,{...a,ref:t})})});ur.displayName=Z;var[lr,fu]=We(Z),[dr,xu]=We(Z,{collapsible:!1}),vu=G.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:a=()=>{},collapsible:s=!1,...u}=e,[l,m]=c.useControllableState({prop:n,defaultProp:o??"",onChange:a,caller:Z});return r.jsxRuntimeExports.jsx(lr,{scope:e.__scopeAccordion,value:G.useMemo(()=>l?[l]:[],[l]),onItemOpen:m,onItemClose:G.useCallback(()=>s&&m(""),[s,m]),children:r.jsxRuntimeExports.jsx(dr,{scope:e.__scopeAccordion,collapsible:s,children:r.jsxRuntimeExports.jsx(pr,{...u,ref:t})})})}),gu=G.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:a=()=>{},...s}=e,[u,l]=c.useControllableState({prop:n,defaultProp:o??[],onChange:a,caller:Z}),m=G.useCallback(d=>l((p=[])=>[...p,d]),[l]),f=G.useCallback(d=>l((p=[])=>p.filter(v=>v!==d)),[l]);return r.jsxRuntimeExports.jsx(lr,{scope:e.__scopeAccordion,value:u,onItemOpen:m,onItemClose:f,children:r.jsxRuntimeExports.jsx(dr,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsxRuntimeExports.jsx(pr,{...s,ref:t})})})}),[Ru,Ye]=We(Z),pr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:a,orientation:s="vertical",...u}=e,l=G.useRef(null),m=k.useComposedRefs(l,t),f=pu(n),p=U.useDirection(a)==="ltr",v=c.composeEventHandlers(e.onKeyDown,g=>{if(!du.includes(g.key))return;const x=g.target,h=f().filter($=>!$.ref.current?.disabled),E=h.findIndex($=>$.ref.current===x),j=h.length;if(E===-1)return;g.preventDefault();let M=E;const C=0,y=j-1,_=()=>{M=E+1,M>y&&(M=C)},S=()=>{M=E-1,M<C&&(M=y)};switch(g.key){case"Home":M=C;break;case"End":M=y;break;case"ArrowRight":s==="horizontal"&&(p?_():S());break;case"ArrowDown":s==="vertical"&&_();break;case"ArrowLeft":s==="horizontal"&&(p?S():_());break;case"ArrowUp":s==="vertical"&&S();break}const T=M%j;h[T].ref.current?.focus()});return r.jsxRuntimeExports.jsx(Ru,{scope:n,disabled:o,direction:a,orientation:s,children:r.jsxRuntimeExports.jsx(Lt.Slot,{scope:n,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{...u,"data-orientation":s,ref:m,onKeyDown:o?void 0:v})})})}),ke="AccordionItem",[hu,Ht]=We(ke),mr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...a}=e,s=Ye(ke,n),u=fu(ke,n),l=Ft(n),m=c.useId(),f=o&&u.value.includes(o)||!1,d=s.disabled||e.disabled;return r.jsxRuntimeExports.jsx(hu,{scope:n,open:f,disabled:d,triggerId:m,children:r.jsxRuntimeExports.jsx(cu,{"data-orientation":s.orientation,"data-state":hr(f),...l,...a,ref:t,disabled:d,open:f,onOpenChange:p=>{p?u.onItemOpen(o):u.onItemClose(o)}})})});mr.displayName=ke;var fr="AccordionHeader",xr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,a=Ye(Z,n),s=Ht(fr,n);return r.jsxRuntimeExports.jsx(c.Primitive.h3,{"data-orientation":a.orientation,"data-state":hr(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});xr.displayName=fr;var dt="AccordionTrigger",vr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,a=Ye(Z,n),s=Ht(dt,n),u=xu(dt,n),l=Ft(n);return r.jsxRuntimeExports.jsx(Lt.ItemSlot,{scope:n,children:r.jsxRuntimeExports.jsx(uu,{"aria-disabled":s.open&&!u.collapsible||void 0,"data-orientation":a.orientation,id:s.triggerId,...l,...o,ref:t})})});vr.displayName=dt;var gr="AccordionContent",Rr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,a=Ye(Z,n),s=Ht(gr,n),u=Ft(n);return r.jsxRuntimeExports.jsx(lu,{role:"region","aria-labelledby":s.triggerId,"data-orientation":a.orientation,...u,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Rr.displayName=gr;function hr(e){return e?"open":"closed"}var bu=ur,Eu=mr,ju=xr,Cu=vr,wu=Rr;function Mu({...e}){return r.jsxRuntimeExports.jsx(bu,{"data-slot":"accordion",...e})}function Su({className:e,...t}){return r.jsxRuntimeExports.jsx(Eu,{"data-slot":"accordion-item",className:b.cn("border-b last:border-b-0",e),...t})}function yu({className:e,children:t,...n}){return r.jsxRuntimeExports.jsx(ju,{className:"flex",children:r.jsxRuntimeExports.jsxs(Cu,{"data-slot":"accordion-trigger",className:b.cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,r.jsxRuntimeExports.jsx(U.ChevronDown,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function _u({className:e,children:t,...n}){return r.jsxRuntimeExports.jsx(wu,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:r.jsxRuntimeExports.jsx("div",{className:b.cn("pt-0 pb-4",e),children:t})})}var pe="NavigationMenu",[Gt,br,Pu]=I.createCollection(pe),[pt,Nu,Iu]=I.createCollection(pe),[Kt,wp]=c.createContextScope(pe,[Pu,Iu]),[Au,Y]=Kt(pe),[Du,Tu]=Kt(pe),Er=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:a,defaultValue:s,delayDuration:u=200,skipDelayDuration:l=300,orientation:m="horizontal",dir:f,...d}=e,[p,v]=i.useState(null),g=k.useComposedRefs(t,L=>v(L)),x=U.useDirection(f),h=i.useRef(0),E=i.useRef(0),j=i.useRef(0),[M,C]=i.useState(!0),[y,_]=c.useControllableState({prop:o,onChange:L=>{const F=L!=="",B=l>0;F?(window.clearTimeout(j.current),B&&C(!1)):(window.clearTimeout(j.current),j.current=window.setTimeout(()=>C(!0),l)),a?.(L)},defaultProp:s??"",caller:pe}),S=i.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>_(""),150)},[_]),T=i.useCallback(L=>{window.clearTimeout(E.current),_(L)},[_]),$=i.useCallback(L=>{y===L?window.clearTimeout(E.current):h.current=window.setTimeout(()=>{window.clearTimeout(E.current),_(L)},u)},[y,_,u]);return i.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(E.current),window.clearTimeout(j.current)},[]),r.jsxRuntimeExports.jsx(jr,{scope:n,isRootMenu:!0,value:y,dir:x,orientation:m,rootNavigationMenu:p,onTriggerEnter:L=>{window.clearTimeout(h.current),M?$(L):T(L)},onTriggerLeave:()=>{window.clearTimeout(h.current),S()},onContentEnter:()=>window.clearTimeout(E.current),onContentLeave:S,onItemSelect:L=>{_(F=>F===L?"":L)},onItemDismiss:()=>_(""),children:r.jsxRuntimeExports.jsx(c.Primitive.nav,{"aria-label":"Main","data-orientation":m,dir:x,...d,ref:g})})});Er.displayName=pe;var mt="NavigationMenuSub",Ou=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:a,defaultValue:s,orientation:u="horizontal",...l}=e,m=Y(mt,n),[f,d]=c.useControllableState({prop:o,onChange:a,defaultProp:s??"",caller:mt});return r.jsxRuntimeExports.jsx(jr,{scope:n,isRootMenu:!1,value:f,dir:m.dir,orientation:u,rootNavigationMenu:m.rootNavigationMenu,onTriggerEnter:p=>d(p),onItemSelect:p=>d(p),onItemDismiss:()=>d(""),children:r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-orientation":u,...l,ref:t})})});Ou.displayName=mt;var jr=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:o,dir:a,orientation:s,children:u,value:l,onItemSelect:m,onItemDismiss:f,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:v,onContentLeave:g}=e,[x,h]=i.useState(null),[E,j]=i.useState(new Map),[M,C]=i.useState(null);return r.jsxRuntimeExports.jsx(Au,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:l,previousValue:I.usePrevious(l),baseId:c.useId(),dir:a,orientation:s,viewport:x,onViewportChange:h,indicatorTrack:M,onIndicatorTrackChange:C,onTriggerEnter:c.useCallbackRef(d),onTriggerLeave:c.useCallbackRef(p),onContentEnter:c.useCallbackRef(v),onContentLeave:c.useCallbackRef(g),onItemSelect:c.useCallbackRef(m),onItemDismiss:c.useCallbackRef(f),onViewportContentChange:i.useCallback((y,_)=>{j(S=>(S.set(y,_),new Map(S)))},[]),onViewportContentRemove:i.useCallback(y=>{j(_=>_.has(y)?(_.delete(y),new Map(_)):_)},[]),children:r.jsxRuntimeExports.jsx(Gt.Provider,{scope:t,children:r.jsxRuntimeExports.jsx(Du,{scope:t,items:E,children:u})})})},Cr="NavigationMenuList",wr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Y(Cr,n),s=r.jsxRuntimeExports.jsx(c.Primitive.ul,{"data-orientation":a.orientation,...o,ref:t});return r.jsxRuntimeExports.jsx(c.Primitive.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:r.jsxRuntimeExports.jsx(Gt.Slot,{scope:n,children:a.isRootMenu?r.jsxRuntimeExports.jsx(Tr,{asChild:!0,children:s}):s})})});wr.displayName=Cr;var Mr="NavigationMenuItem",[ku,Sr]=Kt(Mr),yr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,...a}=e,s=c.useId(),u=o||s||"LEGACY_REACT_AUTO_VALUE",l=i.useRef(null),m=i.useRef(null),f=i.useRef(null),d=i.useRef(()=>{}),p=i.useRef(!1),v=i.useCallback((x="start")=>{if(l.current){d.current();const h=xt(l.current);h.length&&Ut(x==="start"?h:h.reverse())}},[]),g=i.useCallback(()=>{if(l.current){const x=xt(l.current);x.length&&(d.current=zu(x))}},[]);return r.jsxRuntimeExports.jsx(ku,{scope:n,value:u,triggerRef:m,contentRef:l,focusProxyRef:f,wasEscapeCloseRef:p,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:g,onContentFocusOutside:g,children:r.jsxRuntimeExports.jsx(c.Primitive.li,{...a,ref:t})})});yr.displayName=Mr;var ft="NavigationMenuTrigger",_r=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:o,...a}=e,s=Y(ft,e.__scopeNavigationMenu),u=Sr(ft,e.__scopeNavigationMenu),l=i.useRef(null),m=k.useComposedRefs(l,u.triggerRef,t),f=kr(s.baseId,u.value),d=$r(s.baseId,u.value),p=i.useRef(!1),v=i.useRef(!1),g=u.value===s.value;return r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[r.jsxRuntimeExports.jsx(Gt.ItemSlot,{scope:n,value:u.value,children:r.jsxRuntimeExports.jsx(Or,{asChild:!0,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{id:f,disabled:o,"data-disabled":o?"":void 0,"data-state":Bt(g),"aria-expanded":g,"aria-controls":d,...a,ref:m,onPointerEnter:c.composeEventHandlers(e.onPointerEnter,()=>{v.current=!1,u.wasEscapeCloseRef.current=!1}),onPointerMove:c.composeEventHandlers(e.onPointerMove,$e(()=>{o||v.current||u.wasEscapeCloseRef.current||p.current||(s.onTriggerEnter(u.value),p.current=!0)})),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,$e(()=>{o||(s.onTriggerLeave(),p.current=!1)})),onClick:c.composeEventHandlers(e.onClick,()=>{s.onItemSelect(u.value),v.current=g}),onKeyDown:c.composeEventHandlers(e.onKeyDown,x=>{const E={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];g&&x.key===E&&(u.onEntryKeyDown(),x.preventDefault())})})})}),g&&r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[r.jsxRuntimeExports.jsx(I.Root,{"aria-hidden":!0,tabIndex:0,ref:u.focusProxyRef,onFocus:x=>{const h=u.contentRef.current,E=x.relatedTarget,j=E===l.current,M=h?.contains(E);(j||!M)&&u.onFocusProxyEnter(j?"start":"end")}}),s.viewport&&r.jsxRuntimeExports.jsx("span",{"aria-owns":d})]})]})});_r.displayName=ft;var $u="NavigationMenuLink",an="navigationMenu.linkSelect",Pr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:o,onSelect:a,...s}=e;return r.jsxRuntimeExports.jsx(Or,{asChild:!0,children:r.jsxRuntimeExports.jsx(c.Primitive.a,{"data-active":o?"":void 0,"aria-current":o?"page":void 0,...s,ref:t,onClick:c.composeEventHandlers(e.onClick,u=>{const l=u.target,m=new CustomEvent(an,{bubbles:!0,cancelable:!0});if(l.addEventListener(an,f=>a?.(f),{once:!0}),c.dispatchDiscreteCustomEvent(l,m),!m.defaultPrevented&&!u.metaKey){const f=new CustomEvent(De,{bubbles:!0,cancelable:!0});c.dispatchDiscreteCustomEvent(l,f)}},{checkForDefaultPrevented:!1})})})});Pr.displayName=$u;var zt="NavigationMenuIndicator",Nr=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=Y(zt,e.__scopeNavigationMenu),s=!!a.value;return a.indicatorTrack?Ya.createPortal(r.jsxRuntimeExports.jsx(c.Presence,{present:n||s,children:r.jsxRuntimeExports.jsx(Lu,{...o,ref:t})}),a.indicatorTrack):null});Nr.displayName=zt;var Lu=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Y(zt,n),s=br(n),[u,l]=i.useState(null),[m,f]=i.useState(null),d=a.orientation==="horizontal",p=!!a.value;i.useEffect(()=>{const x=s().find(h=>h.value===a.value)?.ref.current;x&&l(x)},[s,a.value]);const v=()=>{u&&f({size:d?u.offsetWidth:u.offsetHeight,offset:d?u.offsetLeft:u.offsetTop})};return vt(u,v),vt(a.indicatorTrack,v),m?r.jsxRuntimeExports.jsx(c.Primitive.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":a.orientation,...o,ref:t,style:{position:"absolute",...d?{left:0,width:m.size+"px",transform:`translateX(${m.offset}px)`}:{top:0,height:m.size+"px",transform:`translateY(${m.offset}px)`},...o.style}}):null}),ge="NavigationMenuContent",Ir=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=Y(ge,e.__scopeNavigationMenu),s=Sr(ge,e.__scopeNavigationMenu),u=k.useComposedRefs(s.contentRef,t),l=s.value===a.value,m={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...o};return a.viewport?r.jsxRuntimeExports.jsx(Fu,{forceMount:n,...m,ref:u}):r.jsxRuntimeExports.jsx(c.Presence,{present:n||l,children:r.jsxRuntimeExports.jsx(Ar,{"data-state":Bt(l),...m,ref:u,onPointerEnter:c.composeEventHandlers(e.onPointerEnter,a.onContentEnter),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,$e(a.onContentLeave)),style:{pointerEvents:!l&&a.isRootMenu?"none":void 0,...m.style}})})});Ir.displayName=ge;var Fu=i.forwardRef((e,t)=>{const n=Y(ge,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:a}=n;return c.useLayoutEffect2(()=>{o(e.value,{ref:t,...e})},[e,t,o]),c.useLayoutEffect2(()=>()=>a(e.value),[e.value,a]),null}),De="navigationMenu.rootContentDismiss",Ar=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,triggerRef:a,focusProxyRef:s,wasEscapeCloseRef:u,onRootContentClose:l,onContentFocusOutside:m,...f}=e,d=Y(ge,n),p=i.useRef(null),v=k.useComposedRefs(p,t),g=kr(d.baseId,o),x=$r(d.baseId,o),h=br(n),E=i.useRef(null),{onItemDismiss:j}=d;i.useEffect(()=>{const C=p.current;if(d.isRootMenu&&C){const y=()=>{j(),l(),C.contains(document.activeElement)&&a.current?.focus()};return C.addEventListener(De,y),()=>C.removeEventListener(De,y)}},[d.isRootMenu,e.value,a,j,l]);const M=i.useMemo(()=>{const y=h().map(F=>F.value);d.dir==="rtl"&&y.reverse();const _=y.indexOf(d.value),S=y.indexOf(d.previousValue),T=o===d.value,$=S===y.indexOf(o);if(!T&&!$)return E.current;const L=(()=>{if(_!==S){if(T&&S!==-1)return _>S?"from-end":"from-start";if($&&_!==-1)return _>S?"to-start":"to-end"}return null})();return E.current=L,L},[d.previousValue,d.value,d.dir,h,o]);return r.jsxRuntimeExports.jsx(Tr,{asChild:!0,children:r.jsxRuntimeExports.jsx(c.DismissableLayer,{id:x,"aria-labelledby":g,"data-motion":M,"data-orientation":d.orientation,...f,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{const C=new Event(De,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(C)},onFocusOutside:c.composeEventHandlers(e.onFocusOutside,C=>{m();const y=C.target;d.rootNavigationMenu?.contains(y)&&C.preventDefault()}),onPointerDownOutside:c.composeEventHandlers(e.onPointerDownOutside,C=>{const y=C.target,_=h().some(T=>T.ref.current?.contains(y)),S=d.isRootMenu&&d.viewport?.contains(y);(_||S||!d.isRootMenu)&&C.preventDefault()}),onKeyDown:c.composeEventHandlers(e.onKeyDown,C=>{const y=C.altKey||C.ctrlKey||C.metaKey;if(C.key==="Tab"&&!y){const S=xt(C.currentTarget),T=document.activeElement,$=S.findIndex(B=>B===T),F=C.shiftKey?S.slice(0,$).reverse():S.slice($+1,S.length);Ut(F)?C.preventDefault():s.current?.focus()}}),onEscapeKeyDown:c.composeEventHandlers(e.onEscapeKeyDown,C=>{u.current=!0})})})}),Vt="NavigationMenuViewport",Dr=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,s=!!Y(Vt,e.__scopeNavigationMenu).value;return r.jsxRuntimeExports.jsx(c.Presence,{present:n||s,children:r.jsxRuntimeExports.jsx(Hu,{...o,ref:t})})});Dr.displayName=Vt;var Hu=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:o,...a}=e,s=Y(Vt,n),u=k.useComposedRefs(t,s.onViewportChange),l=Tu(ge,e.__scopeNavigationMenu),[m,f]=i.useState(null),[d,p]=i.useState(null),v=m?m?.width+"px":void 0,g=m?m?.height+"px":void 0,x=!!s.value,h=x?s.value:s.previousValue;return vt(d,()=>{d&&f({width:d.offsetWidth,height:d.offsetHeight})}),r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-state":Bt(x),"data-orientation":s.orientation,...a,ref:u,style:{pointerEvents:!x&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":g,...a.style},onPointerEnter:c.composeEventHandlers(e.onPointerEnter,s.onContentEnter),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,$e(s.onContentLeave)),children:Array.from(l.items).map(([j,{ref:M,forceMount:C,...y}])=>{const _=h===j;return r.jsxRuntimeExports.jsx(c.Presence,{present:C||_,children:r.jsxRuntimeExports.jsx(Ar,{...y,ref:k.composeRefs(M,S=>{_&&S&&p(S)})})},j)})})}),Gu="FocusGroup",Tr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Y(Gu,n);return r.jsxRuntimeExports.jsx(pt.Provider,{scope:n,children:r.jsxRuntimeExports.jsx(pt.Slot,{scope:n,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{dir:a.dir,...o,ref:t})})})}),sn=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Ku="FocusGroupItem",Or=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Nu(n),s=Y(Ku,n);return r.jsxRuntimeExports.jsx(pt.ItemSlot,{scope:n,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{...o,ref:t,onKeyDown:c.composeEventHandlers(e.onKeyDown,u=>{if(["Home","End",...sn].includes(u.key)){let m=a().map(p=>p.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(u.key)&&m.reverse(),sn.includes(u.key)){const p=m.indexOf(u.currentTarget);m=m.slice(p+1)}setTimeout(()=>Ut(m)),u.preventDefault()}})})})});function xt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ut(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function zu(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function vt(e,t){const n=c.useCallbackRef(t);c.useLayoutEffect2(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}function Bt(e){return e?"open":"closed"}function kr(e,t){return`${e}-trigger-${t}`}function $r(e,t){return`${e}-content-${t}`}function $e(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Vu=Er,Uu=wr,Bu=yr,qu=_r,Wu=Pr,Yu=Nr,Xu=Ir,Zu=Dr;function Ju({className:e,children:t,viewport:n=!0,...o}){return r.jsxRuntimeExports.jsxs(Vu,{"data-slot":"navigation-menu","data-viewport":n,className:b.cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...o,children:[t,n&&r.jsxRuntimeExports.jsx(Fr,{})]})}function Qu({className:e,...t}){return r.jsxRuntimeExports.jsx(Uu,{"data-slot":"navigation-menu-list",className:b.cn("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function el({className:e,...t}){return r.jsxRuntimeExports.jsx(Bu,{"data-slot":"navigation-menu-item",className:b.cn("relative",e),...t})}const Lr=cn.cva("group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function tl({className:e,children:t,...n}){return r.jsxRuntimeExports.jsxs(qu,{"data-slot":"navigation-menu-trigger",className:b.cn(Lr(),"group",e),...n,children:[t," ",r.jsxRuntimeExports.jsx(U.ChevronDown,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function nl({className:e,...t}){return r.jsxRuntimeExports.jsx(Xu,{"data-slot":"navigation-menu-content",className:b.cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:shadow-medium group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",e),...t})}function Fr({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{className:b.cn("absolute top-full left-0 isolate z-50 flex justify-center"),children:r.jsxRuntimeExports.jsx(Zu,{"data-slot":"navigation-menu-viewport",className:b.cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",e),...t})})}function ol({className:e,...t}){return r.jsxRuntimeExports.jsx(Wu,{"data-slot":"navigation-menu-link",className:b.cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 ",e),...t})}function rl({className:e,...t}){return r.jsxRuntimeExports.jsx(Yu,{"data-slot":"navigation-menu-indicator",className:b.cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden ",e),...t,children:r.jsxRuntimeExports.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})})}function al({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:b.cn("text-card-foreground flex flex-col gap-6 rounded-lg py-6 bg-content1 ",e),...t})}function sl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:b.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function il({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:b.cn("leading-none font-semibold",e),...t})}function cl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:b.cn("text-muted-foreground text-sm",e),...t})}function ul({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:b.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function ll({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:b.cn("px-6",e),...t})}function dl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:b.cn("flex items-center px-6 [.border-t]:pt-6",e),...t})}function pl({className:e,containerClassName:t,...n}){return r.jsxRuntimeExports.jsx(c.Lt,{"data-slot":"input-otp",containerClassName:b.cn("flex items-center gap-2 has-disabled:opacity-50",t),className:b.cn("disabled:cursor-not-allowed",e),...n})}function ml({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-group",className:b.cn("flex items-center",e),...t})}function fl({index:e,className:t,...n}){const o=i.useContext(c.jt),{char:a,hasFakeCaret:s,isActive:u}=o?.slots[e]??{};return r.jsxRuntimeExports.jsxs("div",{"data-slot":"input-otp-slot","data-active":u,className:b.cn("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...n,children:[a,s&&r.jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:r.jsxRuntimeExports.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function xl({...e}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:r.jsxRuntimeExports.jsx(gi,{})})}var vl="AspectRatio",Hr=i.forwardRef((e,t)=>{const{ratio:n=1/1,style:o,...a}=e;return r.jsxRuntimeExports.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:r.jsxRuntimeExports.jsx(c.Primitive.div,{...a,ref:t,style:{...o,position:"absolute",top:0,right:0,bottom:0,left:0}})})});Hr.displayName=vl;var gl=Hr;function Rl({...e}){return r.jsxRuntimeExports.jsx(gl,{"data-slot":"aspect-ratio",...e})}var qt="Radio",[hl,Gr]=c.createContextScope(qt),[bl,El]=hl(qt),Kr=i.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:a=!1,required:s,disabled:u,value:l="on",onCheck:m,form:f,...d}=e,[p,v]=i.useState(null),g=k.useComposedRefs(t,E=>v(E)),x=i.useRef(!1),h=p?f||!!p.closest("form"):!0;return r.jsxRuntimeExports.jsxs(bl,{scope:n,checked:a,disabled:u,children:[r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",role:"radio","aria-checked":a,"data-state":Br(a),"data-disabled":u?"":void 0,disabled:u,value:l,...d,ref:g,onClick:c.composeEventHandlers(e.onClick,E=>{a||m?.(),h&&(x.current=E.isPropagationStopped(),x.current||E.stopPropagation())})}),h&&r.jsxRuntimeExports.jsx(Ur,{control:p,bubbles:!x.current,name:o,value:l,checked:a,required:s,disabled:u,form:f,style:{transform:"translateX(-100%)"}})]})});Kr.displayName=qt;var zr="RadioIndicator",Vr=i.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...a}=e,s=El(zr,n);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.checked,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{"data-state":Br(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})})});Vr.displayName=zr;var jl="RadioBubbleInput",Ur=i.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:o=!0,...a},s)=>{const u=i.useRef(null),l=k.useComposedRefs(u,s),m=I.usePrevious(n),f=I.useSize(t);return i.useEffect(()=>{const d=u.current;if(!d)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(m!==n&&g){const x=new Event("click",{bubbles:o});g.call(d,n),d.dispatchEvent(x)}},[m,n,o]),r.jsxRuntimeExports.jsx(c.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:l,style:{...a.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Ur.displayName=jl;function Br(e){return e?"checked":"unchecked"}var Cl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Xe="RadioGroup",[wl,Mp]=c.createContextScope(Xe,[ae,Gr]),qr=ae(),Wr=Gr(),[Ml,Sl]=wl(Xe),Yr=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:a,value:s,required:u=!1,disabled:l=!1,orientation:m,dir:f,loop:d=!0,onValueChange:p,...v}=e,g=qr(n),x=U.useDirection(f),[h,E]=c.useControllableState({prop:s,defaultProp:a??null,onChange:p,caller:Xe});return r.jsxRuntimeExports.jsx(Ml,{scope:n,name:o,required:u,disabled:l,value:h,onValueChange:E,children:r.jsxRuntimeExports.jsx(He,{asChild:!0,...g,orientation:m,dir:x,loop:d,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"radiogroup","aria-required":u,"aria-orientation":m,"data-disabled":l?"":void 0,dir:x,...v,ref:t})})})});Yr.displayName=Xe;var Xr="RadioGroupItem",Zr=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...a}=e,s=Sl(Xr,n),u=s.disabled||o,l=qr(n),m=Wr(n),f=i.useRef(null),d=k.useComposedRefs(t,f),p=s.value===a.value,v=i.useRef(!1);return i.useEffect(()=>{const g=h=>{Cl.includes(h.key)&&(v.current=!0)},x=()=>v.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",x)}},[]),r.jsxRuntimeExports.jsx(Ge,{asChild:!0,...l,focusable:!u,active:p,children:r.jsxRuntimeExports.jsx(Kr,{disabled:u,required:s.required,checked:p,...m,...a,name:s.name,ref:d,onCheck:()=>s.onValueChange(a.value),onKeyDown:c.composeEventHandlers(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:c.composeEventHandlers(a.onFocus,()=>{v.current&&f.current?.click()})})})});Zr.displayName=Xr;var yl="RadioGroupIndicator",Jr=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,a=Wr(n);return r.jsxRuntimeExports.jsx(Vr,{...a,...o,ref:t})});Jr.displayName=yl;var _l=Yr,Pl=Zr,Nl=Jr;function Il({className:e,...t}){return r.jsxRuntimeExports.jsx(_l,{"data-slot":"radio-group",className:b.cn("grid gap-3",e),...t})}function Al({className:e,...t}){return r.jsxRuntimeExports.jsx(Pl,{"data-slot":"radio-group-item",className:b.cn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:r.jsxRuntimeExports.jsx(Nl,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:r.jsxRuntimeExports.jsx(Nt,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}function Dl({...e}){return r.jsxRuntimeExports.jsx(c.Root,{"data-slot":"sheet",...e})}function Tl({...e}){return r.jsxRuntimeExports.jsx(c.Trigger,{"data-slot":"sheet-trigger",...e})}function Ol({...e}){return r.jsxRuntimeExports.jsx(c.Close,{"data-slot":"sheet-close",...e})}function kl({...e}){return r.jsxRuntimeExports.jsx(c.Portal$1,{"data-slot":"sheet-portal",...e})}function $l({className:e,backdrop:t,...n}){let o="";switch(t){case"transparent":o="bg-transparent";break;case"opaque":o="bg-black/50";break;case"blur":o="backdrop-blur-md backdrop-saturate-150 bg-overlay/30";break}return r.jsxRuntimeExports.jsx(c.Overlay,{"data-slot":"sheet-overlay",className:b.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",o,e),...n})}function Ll({className:e,children:t,side:n="right",backdrop:o="opaque",showCloseButton:a=!0,disabled:s=!1,...u}){return r.jsxRuntimeExports.jsxs(kl,{children:[r.jsxRuntimeExports.jsx($l,{backdrop:o}),r.jsxRuntimeExports.jsxs(c.Content,{"data-slot":"sheet-content",className:b.cn("bg-content1 data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto ",e),...u,children:[t,a&&r.jsxRuntimeExports.jsx(c.Close,{asChild:!0,className:"absolute top-3 right-4 focus:outline-hidden disabled:pointer-events-none",children:r.jsxRuntimeExports.jsx("div",{children:r.jsxRuntimeExports.jsxs(Ee.Button,{isIconOnly:!0,variant:"light",radius:"full","aria-label":"Close",disabled:s,className:"p-0 w-[36px] h-[36px] min-w-auto bg-default-100 hover:bg-default-200 text-default-500 hover:text-default-600 dark:bg-default-100 dark:hover:bg-default-200 dark:text-default-500 dark:hover:text-default-600 disabled:opacity-50 disabled:pointer-events-none",children:[r.jsxRuntimeExports.jsxs("svg",{width:"20",height:"20",fill:"currentColor",role:"img","aria-hidden":"true",children:[r.jsxRuntimeExports.jsx("path",{fill:"none",d:"M0 0h21v21H0z"}),r.jsxRuntimeExports.jsx("path",{d:"m12.12 10 4.07-4.06a1.5 1.5 0 1 0-2.11-2.12L10 7.88 5.94 3.81a1.5 1.5 0 1 0-2.12 2.12L7.88 10l-4.07 4.06a1.5 1.5 0 0 0 0 2.12 1.51 1.51 0 0 0 2.13 0L10 12.12l4.06 4.07a1.45 1.45 0 0 0 1.06.44 1.5 1.5 0 0 0 1.06-2.56Z"})]}),r.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})})})]})]})}function Fl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:b.cn("flex flex-col gap-1.5 p-4",e),...t})}function Hl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:b.cn("mt-auto flex flex-col gap-2 p-4",e),...t})}function Gl({className:e,...t}){return r.jsxRuntimeExports.jsx(c.Title,{"data-slot":"sheet-title",className:b.cn("text-foreground font-semibold",e),...t})}function Kl({className:e,...t}){return r.jsxRuntimeExports.jsx(c.Description,{"data-slot":"sheet-description",className:b.cn("text-muted-foreground text-sm",e),...t})}var Ne="Menubar",[gt,zl,Vl]=I.createCollection(Ne),[Qr,Sp]=c.createContextScope(Ne,[Vl,ae]),z=Et(),ea=ae(),[Ul,Wt]=Qr(Ne),ta=i.forwardRef((e,t)=>{const{__scopeMenubar:n,value:o,onValueChange:a,defaultValue:s,loop:u=!0,dir:l,...m}=e,f=U.useDirection(l),d=ea(n),[p,v]=c.useControllableState({prop:o,onChange:a,defaultProp:s??"",caller:Ne}),[g,x]=i.useState(null);return r.jsxRuntimeExports.jsx(Ul,{scope:n,value:p,onMenuOpen:i.useCallback(h=>{v(h),x(h)},[v]),onMenuClose:i.useCallback(()=>v(""),[v]),onMenuToggle:i.useCallback(h=>{v(E=>E?"":h),x(h)},[v]),dir:f,loop:u,children:r.jsxRuntimeExports.jsx(gt.Provider,{scope:n,children:r.jsxRuntimeExports.jsx(gt.Slot,{scope:n,children:r.jsxRuntimeExports.jsx(He,{asChild:!0,...d,orientation:"horizontal",loop:u,dir:f,currentTabStopId:g,onCurrentTabStopIdChange:x,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"menubar",...m,ref:t})})})})})});ta.displayName=Ne;var Yt="MenubarMenu",[Bl,na]=Qr(Yt),oa=e=>{const{__scopeMenubar:t,value:n,...o}=e,a=c.useId(),s=n||a||"LEGACY_REACT_AUTO_VALUE",u=Wt(Yt,t),l=z(t),m=i.useRef(null),f=i.useRef(!1),d=u.value===s;return i.useEffect(()=>{d||(f.current=!1)},[d]),r.jsxRuntimeExports.jsx(Bl,{scope:t,value:s,triggerId:c.useId(),triggerRef:m,contentId:c.useId(),wasKeyboardTriggerOpenRef:f,children:r.jsxRuntimeExports.jsx(Fn,{...l,open:d,onOpenChange:p=>{p||u.onMenuClose()},modal:!1,dir:u.dir,...o})})};oa.displayName=Yt;var Rt="MenubarTrigger",ra=i.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:o=!1,...a}=e,s=ea(n),u=z(n),l=Wt(Rt,n),m=na(Rt,n),f=i.useRef(null),d=k.useComposedRefs(t,f,m.triggerRef),[p,v]=i.useState(!1),g=l.value===m.value;return r.jsxRuntimeExports.jsx(gt.ItemSlot,{scope:n,value:m.value,disabled:o,children:r.jsxRuntimeExports.jsx(Ge,{asChild:!0,...s,focusable:!o,tabStopId:m.value,children:r.jsxRuntimeExports.jsx(Hn,{asChild:!0,...u,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",role:"menuitem",id:m.triggerId,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?m.contentId:void 0,"data-highlighted":p?"":void 0,"data-state":g?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:d,onPointerDown:c.composeEventHandlers(e.onPointerDown,x=>{!o&&x.button===0&&x.ctrlKey===!1&&(l.onMenuOpen(m.value),g||x.preventDefault())}),onPointerEnter:c.composeEventHandlers(e.onPointerEnter,()=>{!!l.value&&!g&&(l.onMenuOpen(m.value),f.current?.focus())}),onKeyDown:c.composeEventHandlers(e.onKeyDown,x=>{o||(["Enter"," "].includes(x.key)&&l.onMenuToggle(m.value),x.key==="ArrowDown"&&l.onMenuOpen(m.value),["Enter"," ","ArrowDown"].includes(x.key)&&(m.wasKeyboardTriggerOpenRef.current=!0,x.preventDefault()))}),onFocus:c.composeEventHandlers(e.onFocus,()=>v(!0)),onBlur:c.composeEventHandlers(e.onBlur,()=>v(!1))})})})})});ra.displayName=Rt;var ql="MenubarPortal",aa=e=>{const{__scopeMenubar:t,...n}=e,o=z(t);return r.jsxRuntimeExports.jsx(Gn,{...o,...n})};aa.displayName=ql;var ht="MenubarContent",sa=i.forwardRef((e,t)=>{const{__scopeMenubar:n,align:o="start",...a}=e,s=z(n),u=Wt(ht,n),l=na(ht,n),m=zl(n),f=i.useRef(!1);return r.jsxRuntimeExports.jsx(Kn,{id:l.contentId,"aria-labelledby":l.triggerId,"data-radix-menubar-content":"",...s,...a,ref:t,align:o,onCloseAutoFocus:c.composeEventHandlers(e.onCloseAutoFocus,d=>{!!!u.value&&!f.current&&l.triggerRef.current?.focus(),f.current=!1,d.preventDefault()}),onFocusOutside:c.composeEventHandlers(e.onFocusOutside,d=>{const p=d.target;m().some(g=>g.ref.current?.contains(p))&&d.preventDefault()}),onInteractOutside:c.composeEventHandlers(e.onInteractOutside,()=>{f.current=!0}),onEntryFocus:d=>{l.wasKeyboardTriggerOpenRef.current||d.preventDefault()},onKeyDown:c.composeEventHandlers(e.onKeyDown,d=>{if(["ArrowRight","ArrowLeft"].includes(d.key)){const p=d.target,v=p.hasAttribute("data-radix-menubar-subtrigger"),g=p.closest("[data-radix-menubar-content]")!==d.currentTarget,h=(u.dir==="rtl"?"ArrowRight":"ArrowLeft")===d.key;if(!h&&v||g&&h)return;let M=m().filter(_=>!_.disabled).map(_=>_.value);h&&M.reverse();const C=M.indexOf(l.value);M=u.loop?sd(M,C+1):M.slice(C+1);const[y]=M;y&&u.onMenuOpen(y)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});sa.displayName=ht;var Wl="MenubarGroup",ia=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(zn,{...a,...o,ref:t})});ia.displayName=Wl;var Yl="MenubarLabel",ca=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Vn,{...a,...o,ref:t})});ca.displayName=Yl;var Xl="MenubarItem",ua=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Un,{...a,...o,ref:t})});ua.displayName=Xl;var Zl="MenubarCheckboxItem",la=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Bn,{...a,...o,ref:t})});la.displayName=Zl;var Jl="MenubarRadioGroup",da=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(qn,{...a,...o,ref:t})});da.displayName=Jl;var Ql="MenubarRadioItem",pa=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Wn,{...a,...o,ref:t})});pa.displayName=Ql;var ed="MenubarItemIndicator",ma=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Yn,{...a,...o,ref:t})});ma.displayName=ed;var td="MenubarSeparator",fa=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Xn,{...a,...o,ref:t})});fa.displayName=td;var nd="MenubarArrow",od=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Zn,{...a,...o,ref:t})});od.displayName=nd;var xa="MenubarSub",va=e=>{const{__scopeMenubar:t,children:n,open:o,onOpenChange:a,defaultOpen:s}=e,u=z(t),[l,m]=c.useControllableState({prop:o,defaultProp:s??!1,onChange:a,caller:xa});return r.jsxRuntimeExports.jsx(Jn,{...u,open:l,onOpenChange:m,children:n})};va.displayName=xa;var rd="MenubarSubTrigger",ga=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Qn,{"data-radix-menubar-subtrigger":"",...a,...o,ref:t})});ga.displayName=rd;var ad="MenubarSubContent",Ra=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(eo,{...a,"data-radix-menubar-content":"",...o,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});Ra.displayName=ad;function sd(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var id=ta,cd=oa,ud=ra,ld=aa,dd=sa,pd=ia,md=ca,fd=ua,xd=la,vd=da,gd=pa,ha=ma,Rd=fa,hd=va,bd=ga,Ed=Ra;function jd({className:e,...t}){return r.jsxRuntimeExports.jsx(id,{"data-slot":"menubar",className:b.cn("bg-content1 flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...t})}function Cd({...e}){return r.jsxRuntimeExports.jsx(cd,{"data-slot":"menubar-menu",...e})}function wd({...e}){return r.jsxRuntimeExports.jsx(pd,{"data-slot":"menubar-group",...e})}function ba({...e}){return r.jsxRuntimeExports.jsx(ld,{"data-slot":"menubar-portal",...e})}function Md({...e}){return r.jsxRuntimeExports.jsx(vd,{"data-slot":"menubar-radio-group",...e})}function Sd({className:e,...t}){return r.jsxRuntimeExports.jsx(ud,{"data-slot":"menubar-trigger",className:b.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",e),...t})}function yd({className:e,align:t="start",alignOffset:n=-4,sideOffset:o=8,...a}){return r.jsxRuntimeExports.jsx(ba,{children:r.jsxRuntimeExports.jsx(dd,{"data-slot":"menubar-content",align:t,alignOffset:n,sideOffset:o,className:b.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...a})})}function _d({className:e,inset:t,variant:n="default",...o}){return r.jsxRuntimeExports.jsx(fd,{"data-slot":"menubar-item","data-inset":t,"data-variant":n,className:b.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function Pd({className:e,children:t,checked:n,...o}){return r.jsxRuntimeExports.jsxs(xd,{"data-slot":"menubar-checkbox-item",className:b.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:n,...o,children:[r.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(ha,{children:r.jsxRuntimeExports.jsx(U.Check,{className:"size-4"})})}),t]})}function Nd({className:e,children:t,...n}){return r.jsxRuntimeExports.jsxs(gd,{"data-slot":"menubar-radio-item",className:b.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:r.jsxRuntimeExports.jsx(ha,{children:r.jsxRuntimeExports.jsx(Nt,{className:"size-2 fill-current"})})}),t]})}function Id({className:e,inset:t,...n}){return r.jsxRuntimeExports.jsx(md,{"data-slot":"menubar-label","data-inset":t,className:b.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function Ad({className:e,...t}){return r.jsxRuntimeExports.jsx(Rd,{"data-slot":"menubar-separator",className:b.cn("bg-border -mx-1 my-1 h-px",e),...t})}function Dd({className:e,...t}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"menubar-shortcut",className:b.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function Td({...e}){return r.jsxRuntimeExports.jsx(hd,{"data-slot":"menubar-sub",...e})}function Od({className:e,inset:t,children:n,...o}){return r.jsxRuntimeExports.jsxs(bd,{"data-slot":"menubar-sub-trigger","data-inset":t,className:b.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",e),...o,children:[n,r.jsxRuntimeExports.jsx(Eo,{className:"ml-auto h-4 w-4"})]})}function kd({className:e,...t}){return r.jsxRuntimeExports.jsx(Ed,{"data-slot":"menubar-sub-content",className:b.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}var Ea="AlertDialog",[$d,yp]=c.createContextScope(Ea,[c.createDialogScope]),oe=c.createDialogScope(),ja=e=>{const{__scopeAlertDialog:t,...n}=e,o=oe(t);return r.jsxRuntimeExports.jsx(c.Root,{...o,...n,modal:!0})};ja.displayName=Ea;var Ld="AlertDialogTrigger",Ca=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Trigger,{...a,...o,ref:t})});Ca.displayName=Ld;var Fd="AlertDialogPortal",wa=e=>{const{__scopeAlertDialog:t,...n}=e,o=oe(t);return r.jsxRuntimeExports.jsx(c.Portal$1,{...o,...n})};wa.displayName=Fd;var Hd="AlertDialogOverlay",Ma=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Overlay,{...a,...o,ref:t})});Ma.displayName=Hd;var xe="AlertDialogContent",[Gd,Kd]=$d(xe),zd=k.createSlottable("AlertDialogContent"),Sa=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:o,...a}=e,s=oe(n),u=i.useRef(null),l=k.useComposedRefs(t,u),m=i.useRef(null);return r.jsxRuntimeExports.jsx(c.WarningProvider,{contentName:xe,titleName:ya,docsSlug:"alert-dialog",children:r.jsxRuntimeExports.jsx(Gd,{scope:n,cancelRef:m,children:r.jsxRuntimeExports.jsxs(c.Content,{role:"alertdialog",...s,...a,ref:l,onOpenAutoFocus:c.composeEventHandlers(a.onOpenAutoFocus,f=>{f.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[r.jsxRuntimeExports.jsx(zd,{children:o}),r.jsxRuntimeExports.jsx(Ud,{contentRef:u})]})})})});Sa.displayName=xe;var ya="AlertDialogTitle",_a=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Title,{...a,...o,ref:t})});_a.displayName=ya;var Pa="AlertDialogDescription",Na=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Description,{...a,...o,ref:t})});Na.displayName=Pa;var Vd="AlertDialogAction",Ia=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Close,{...a,...o,ref:t})});Ia.displayName=Vd;var Aa="AlertDialogCancel",Da=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:a}=Kd(Aa,n),s=oe(n),u=k.useComposedRefs(t,a);return r.jsxRuntimeExports.jsx(c.Close,{...s,...o,ref:u})});Da.displayName=Aa;var Ud=({contentRef:e})=>{const t=`\`${xe}\` requires a description for the component to be accessible for screen reader users.
2
2
 
3
3
  You can add a description to the \`${xe}\` by passing a \`${Pa}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
4