lizaui 8.0.6 → 8.0.8

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.
Files changed (97) hide show
  1. package/dist/button/index.cjs.js +1 -1
  2. package/dist/button/index.es.js +1 -1
  3. package/dist/calendar/index.cjs.js +10 -10
  4. package/dist/calendar/index.cjs.js.map +1 -1
  5. package/dist/calendar/index.es.js +1842 -1309
  6. package/dist/calendar/index.es.js.map +1 -1
  7. package/dist/checkbox/index.cjs.js +1 -1
  8. package/dist/checkbox/index.es.js +1 -1
  9. package/dist/chip/index.cjs.js +1 -1
  10. package/dist/chip/index.es.js +1 -1
  11. package/dist/chunks/{button-COC4E-Qv.js → button-CSuKvE1x.js} +4 -4
  12. package/dist/chunks/{button-COC4E-Qv.js.map → button-CSuKvE1x.js.map} +1 -1
  13. package/dist/chunks/{button-CGIs6rx_.js → button-OdZ6El_t.js} +2 -2
  14. package/dist/chunks/{button-CGIs6rx_.js.map → button-OdZ6El_t.js.map} +1 -1
  15. package/dist/chunks/{checkbox-C4O1CC2o.js → checkbox-BhW9i0pm.js} +3 -3
  16. package/dist/chunks/{checkbox-C4O1CC2o.js.map → checkbox-BhW9i0pm.js.map} +1 -1
  17. package/dist/chunks/{checkbox-C7iPXnsq.js → checkbox-CWDPVAn2.js} +2 -2
  18. package/dist/chunks/{checkbox-C7iPXnsq.js.map → checkbox-CWDPVAn2.js.map} +1 -1
  19. package/dist/chunks/{index-B_lLnyI9.js → index-6ER8bShj.js} +2 -2
  20. package/dist/chunks/{index-B_lLnyI9.js.map → index-6ER8bShj.js.map} +1 -1
  21. package/dist/chunks/index-BydcKEwP.js +2 -0
  22. package/dist/chunks/index-BydcKEwP.js.map +1 -0
  23. package/dist/chunks/{index-6UmdGTUS.js → index-Do-g2tEs.js} +2 -2
  24. package/dist/chunks/{index-6UmdGTUS.js.map → index-Do-g2tEs.js.map} +1 -1
  25. package/dist/chunks/index-VJ2Qvmen.js +87 -0
  26. package/dist/chunks/index-VJ2Qvmen.js.map +1 -0
  27. package/dist/chunks/jsx-runtime-BjzqJBtL.js +2 -0
  28. package/dist/chunks/{jsx-runtime-DZW6kfQG.js.map → jsx-runtime-BjzqJBtL.js.map} +1 -1
  29. package/dist/chunks/{jsx-runtime-Dk9ExdSX.js → jsx-runtime-Cl_4eDuT.js} +3 -2
  30. package/dist/chunks/{jsx-runtime-Dk9ExdSX.js.map → jsx-runtime-Cl_4eDuT.js.map} +1 -1
  31. package/dist/chunks/{label-error-wbavGDVw.js → label-error-Ax74Uy3M.js} +2 -2
  32. package/dist/chunks/{label-error-wbavGDVw.js.map → label-error-Ax74Uy3M.js.map} +1 -1
  33. package/dist/chunks/{label-error-Dg6_L7YY.js → label-error-DGQqDKTV.js} +2 -2
  34. package/dist/chunks/{label-error-Dg6_L7YY.js.map → label-error-DGQqDKTV.js.map} +1 -1
  35. package/dist/chunks/{ripple-DkVNrwwK.js → ripple-DMI95LHg.js} +2 -2
  36. package/dist/chunks/{ripple-DkVNrwwK.js.map → ripple-DMI95LHg.js.map} +1 -1
  37. package/dist/chunks/{ripple-S5nRL6TJ.js → ripple-DieNd7XQ.js} +2 -2
  38. package/dist/chunks/{ripple-S5nRL6TJ.js.map → ripple-DieNd7XQ.js.map} +1 -1
  39. package/dist/chunks/scroll-area-C8l3z7wv.js +2 -0
  40. package/dist/chunks/scroll-area-C8l3z7wv.js.map +1 -0
  41. package/dist/chunks/{scroll-area-CsOiTMG3.js → scroll-area-zt_z9PRo.js} +168 -163
  42. package/dist/chunks/scroll-area-zt_z9PRo.js.map +1 -0
  43. package/dist/chunks/select-CC7ump6t.js +2 -0
  44. package/dist/chunks/select-CC7ump6t.js.map +1 -0
  45. package/dist/chunks/{select-CJRY9hSL.js → select-qaP_vaF3.js} +181 -181
  46. package/dist/chunks/select-qaP_vaF3.js.map +1 -0
  47. package/dist/chunks/{styled-components.browser.esm-CxZkQVdi.js → styled-components.browser.esm-CAEXERbT.js} +2 -2
  48. package/dist/chunks/{styled-components.browser.esm-CxZkQVdi.js.map → styled-components.browser.esm-CAEXERbT.js.map} +1 -1
  49. package/dist/chunks/{styled-components.browser.esm-M-8MrVJR.js → styled-components.browser.esm-DwaG9BxE.js} +2 -2
  50. package/dist/chunks/{styled-components.browser.esm-M-8MrVJR.js.map → styled-components.browser.esm-DwaG9BxE.js.map} +1 -1
  51. package/dist/chunks/{textarea-COi5ngTN.js → textarea-BIy5pTb5.js} +5 -5
  52. package/dist/chunks/{textarea-COi5ngTN.js.map → textarea-BIy5pTb5.js.map} +1 -1
  53. package/dist/chunks/{textarea-99dejq_o.js → textarea-Cklud2kp.js} +2 -2
  54. package/dist/chunks/{textarea-99dejq_o.js.map → textarea-Cklud2kp.js.map} +1 -1
  55. package/dist/chunks/{tooltip-Bxodcuiq.js → tooltip-B-5G3VVC.js} +2 -2
  56. package/dist/chunks/{tooltip-Bxodcuiq.js.map → tooltip-B-5G3VVC.js.map} +1 -1
  57. package/dist/chunks/{tooltip-DWnKIv1c.js → tooltip-DGFz59KW.js} +2 -2
  58. package/dist/chunks/{tooltip-DWnKIv1c.js.map → tooltip-DGFz59KW.js.map} +1 -1
  59. package/dist/divider/index.cjs.js +1 -1
  60. package/dist/divider/index.es.js +2 -2
  61. package/dist/modal/index.cjs.js +1 -1
  62. package/dist/modal/index.es.js +2 -2
  63. package/dist/pagination/index.cjs.js +1 -1
  64. package/dist/pagination/index.cjs.js.map +1 -1
  65. package/dist/pagination/index.es.js +27 -28
  66. package/dist/pagination/index.es.js.map +1 -1
  67. package/dist/phone-input/index.cjs.js +1 -1
  68. package/dist/phone-input/index.cjs.js.map +1 -1
  69. package/dist/phone-input/index.es.js +16 -16
  70. package/dist/ripple/index.cjs.js +1 -1
  71. package/dist/ripple/index.es.js +1 -1
  72. package/dist/select-input/index.cjs.js +1 -1
  73. package/dist/select-input/index.es.js +3 -3
  74. package/dist/table/index.cjs.js +1 -1
  75. package/dist/table/index.es.js +3 -3
  76. package/dist/time-input/index.cjs.js +1 -1
  77. package/dist/time-input/index.cjs.js.map +1 -1
  78. package/dist/time-input/index.es.js +7 -8
  79. package/dist/time-input/index.es.js.map +1 -1
  80. package/dist/tooltip/index.cjs.js +1 -1
  81. package/dist/tooltip/index.es.js +1 -1
  82. package/dist/ui/index.cjs.js +4 -4
  83. package/dist/ui/index.cjs.js.map +1 -1
  84. package/dist/ui/index.es.js +1063 -1052
  85. package/dist/ui/index.es.js.map +1 -1
  86. package/package.json +1 -1
  87. package/dist/chunks/index-BD4EmzUR.js +0 -15
  88. package/dist/chunks/index-BD4EmzUR.js.map +0 -1
  89. package/dist/chunks/index-COBcVFMF.js +0 -2
  90. package/dist/chunks/index-COBcVFMF.js.map +0 -1
  91. package/dist/chunks/jsx-runtime-DZW6kfQG.js +0 -2
  92. package/dist/chunks/scroll-area--KGqTnx5.js +0 -2
  93. package/dist/chunks/scroll-area--KGqTnx5.js.map +0 -1
  94. package/dist/chunks/scroll-area-CsOiTMG3.js.map +0 -1
  95. package/dist/chunks/select-CJRY9hSL.js.map +0 -1
  96. package/dist/chunks/select-DCeDDexH.js +0 -2
  97. package/dist/chunks/select-DCeDDexH.js.map +0 -1
@@ -1,8 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../chunks/textarea-99dejq_o.js"),r=require("../chunks/jsx-runtime-DZW6kfQG.js"),G=require("react"),b=require("../chunks/utils-IjLH3w2e.js"),qa=require("../chunks/label-error-wbavGDVw.js"),k=require("../chunks/index-B_lLnyI9.js"),N=require("../chunks/select-DCeDDexH.js"),le=require("../chunks/index-COBcVFMF.js"),W=require("lucide-react"),sn=require("../chunks/index-BxK4T-v8.js"),Wa=require("react-dom"),cn=require("../chunks/scroll-area--KGqTnx5.js"),je=require("../chunks/button-CGIs6rx_.js");function Ya(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=Ya(G);var Xa="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=Xa;var Za=un;function Ja({className:e,...t}){return r.jsxRuntimeExports.jsx(Za,{"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 tt="rovingFocusGroup.onEntryFocus",Qa={bubbles:!1,cancelable:!0},Me="RovingFocusGroup",[ct,ln,es]=N.createCollection(Me),[ts,ae]=c.createContextScope(Me,[es]),[ns,os]=ts(Me),dn=i.forwardRef((e,t)=>r.jsxRuntimeExports.jsx(ct.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsxRuntimeExports.jsx(ct.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsxRuntimeExports.jsx(rs,{...e,ref:t})})}));dn.displayName=Me;var rs=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=le.useDirection(s),[h,E]=c.useControllableState({prop:u,defaultProp:l??null,onChange:m,caller:Me}),[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(tt,C),()=>$.removeEventListener(tt,C)},[C]),r.jsxRuntimeExports.jsx(ns,{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(tt,Qa);if($.currentTarget.dispatchEvent(F),!F.defaultPrevented){const U=y().filter(B=>B.focusable),Q=U.find(B=>B.active),ce=U.find(B=>B.id===h),ee=[Q,ce,...U].filter(Boolean).map(B=>B.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=os(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(ct.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=is(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?cs(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 as={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ss(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function is(e,t,n){const o=ss(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return as[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 cs(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Ge=dn,Ke=mn,ut=["Enter"," "],us=["ArrowDown","PageUp","Home"],xn=["ArrowUp","PageDown","End"],ls=[...us,...xn],ds={ltr:[...ut,"ArrowRight"],rtl:[...ut,"ArrowLeft"]},ps={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Se="Menu",[Ce,ms,fs]=N.createCollection(Se),[de,Et]=c.createContextScope(Se,[fs,N.createPopperScope,ae]),ye=N.createPopperScope(),vn=ae(),[gn,se]=de(Se),[xs,_e]=de(Se),Rn=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:a,onOpenChange:s,modal:u=!0}=e,l=ye(t),[m,f]=i.useState(null),d=i.useRef(!1),p=c.useCallbackRef(s),v=le.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(N.Root2,{...l,children:r.jsxRuntimeExports.jsx(gn,{scope:t,open:n,onOpenChange:p,content:m,onContentChange:f,children:r.jsxRuntimeExports.jsx(xs,{scope:t,onClose:i.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:v,modal:u,children:o})})})};Rn.displayName=Se;var vs="MenuAnchor",jt=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,a=ye(n);return r.jsxRuntimeExports.jsx(N.Anchor,{...a,...o,ref:t})});jt.displayName=vs;var Ct="MenuPortal",[gs,hn]=de(Ct,{forceMount:void 0}),bn=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:a}=e,s=se(Ct,t);return r.jsxRuntimeExports.jsx(gs,{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 q="MenuContent",[Rs,wt]=de(q),En=i.forwardRef((e,t)=>{const n=hn(q,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,s=se(q,e.__scopeMenu),u=_e(q,e.__scopeMenu);return r.jsxRuntimeExports.jsx(Ce.Provider,{scope:e.__scopeMenu,children:r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:r.jsxRuntimeExports.jsx(Ce.Slot,{scope:e.__scopeMenu,children:u.modal?r.jsxRuntimeExports.jsx(hs,{...a,ref:t}):r.jsxRuntimeExports.jsx(bs,{...a,ref:t})})})})}),hs=i.forwardRef((e,t)=>{const n=se(q,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)})}),bs=i.forwardRef((e,t)=>{const n=se(q,e.__scopeMenu);return r.jsxRuntimeExports.jsx(Mt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Es=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(q,n),j=_e(q,n),M=ye(n),C=vn(n),y=ms(n),[_,S]=i.useState(null),T=i.useRef(null),$=k.useComposedRefs(t,T,E.onContentChange),L=i.useRef(0),F=i.useRef(""),U=i.useRef(0),Q=i.useRef(null),ce=i.useRef("right"),X=i.useRef(0),ee=x?c.ReactRemoveScroll:i.Fragment,B=x?{as:Es,allowPinchZoom:!0}:void 0,he=I=>{const ne=F.current+I,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=Ds(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(I=>ce.current===Q.current?.side&&Os(I,Q.current?.area),[]);return r.jsxRuntimeExports.jsx(Rs,{scope:n,searchRef:F,onItemEnter:i.useCallback(I=>{te(I)&&I.preventDefault()},[te]),onItemLeave:i.useCallback(I=>{te(I)||(T.current?.focus(),S(null))},[te]),onTriggerLeave:i.useCallback(I=>{te(I)&&I.preventDefault()},[te]),pointerGraceTimerRef:U,onPointerGraceIntentChange:i.useCallback(I=>{Q.current=I},[]),children:r.jsxRuntimeExports.jsx(ee,{...B,children:r.jsxRuntimeExports.jsx(c.FocusScope,{asChild:!0,trapped:a,onMountAutoFocus:c.composeEventHandlers(s,I=>{I.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(Ge,{asChild:!0,...C,dir:j.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:S,onEntryFocus:c.composeEventHandlers(m,I=>{j.isUsingKeyboardRef.current||I.preventDefault()}),preventScrollOnEntryFocus:!0,children:r.jsxRuntimeExports.jsx(N.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,I=>{const J=I.target.closest("[data-radix-menu-content]")===I.currentTarget,R=I.ctrlKey||I.altKey||I.metaKey,P=I.key.length===1;J&&(I.key==="Tab"&&I.preventDefault(),!R&&P&&he(I.key));const D=T.current;if(I.target!==D||!ls.includes(I.key))return;I.preventDefault();const O=y().filter(A=>!A.disabled).map(A=>A.ref.current);xn.includes(I.key)&&O.reverse(),Ns(O)}),onBlur:c.composeEventHandlers(e.onBlur,I=>{I.currentTarget.contains(I.target)||(window.clearTimeout(L.current),F.current="")}),onPointerMove:c.composeEventHandlers(e.onPointerMove,we(I=>{const ne=I.target,J=X.current!==I.clientX;if(I.currentTarget.contains(ne)&&J){const R=I.clientX>X.current?"right":"left";ce.current=R,X.current=I.clientX}}))})})})})})})});En.displayName=q;var js="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=js;var Cs="MenuLabel",jn=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsxRuntimeExports.jsx(c.Primitive.div,{...o,ref:t})});jn.displayName=Cs;var Oe="MenuItem",Xt="menu.itemSelect",ze=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...a}=e,s=i.useRef(null),u=_e(Oe,e.__scopeMenu),l=wt(Oe,e.__scopeMenu),m=k.useComposedRefs(t,s),f=i.useRef(!1),d=()=>{const p=s.current;if(!n&&p){const v=new CustomEvent(Xt,{bubbles:!0,cancelable:!0});p.addEventListener(Xt,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===" "||ut.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});ze.displayName=Oe;var Cn=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:a,...s}=e,u=wt(Oe,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(Ce.ItemSlot,{scope:n,disabled:o,textValue:a??v,children:r.jsxRuntimeExports.jsx(Ke,{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,we(x=>{o?u.onItemLeave(x):(u.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,we(x=>u.onItemLeave(x))),onFocus:c.composeEventHandlers(e.onFocus,()=>p(!0)),onBlur:c.composeEventHandlers(e.onBlur,()=>p(!1))})})})}),ws="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(ze,{role:"menuitemcheckbox","aria-checked":ke(n)?"mixed":n,...a,ref:t,"data-state":Pt(n),onSelect:c.composeEventHandlers(a.onSelect,()=>o?.(ke(n)?!0:!n),{checkForDefaultPrevented:!1})})})});wn.displayName=ws;var Mn="MenuRadioGroup",[Ms,Ss]=de(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(Ms,{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=Ss(yn,e.__scopeMenu),s=n===a.value;return r.jsxRuntimeExports.jsx(Pn,{scope:e.__scopeMenu,checked:s,children:r.jsxRuntimeExports.jsx(ze,{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,ys]=de(yt,{checked:!1}),In=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...a}=e,s=ys(yt,n);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||ke(s.checked)||s.checked===!0,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{...a,ref:t,"data-state":Pt(s.checked)})})});In.displayName=yt;var _s="MenuSeparator",Nn=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsxRuntimeExports.jsx(c.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Nn.displayName=_s;var Ps="MenuArrow",An=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,a=ye(n);return r.jsxRuntimeExports.jsx(N.Arrow,{...a,...o,ref:t})});An.displayName=Ps;var _t="MenuSub",[Is,Dn]=de(_t),Tn=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:a}=e,s=se(_t,t),u=ye(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(N.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 Ee="MenuSubTrigger",On=i.forwardRef((e,t)=>{const n=se(Ee,e.__scopeMenu),o=_e(Ee,e.__scopeMenu),a=Dn(Ee,e.__scopeMenu),s=wt(Ee,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,we(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,we(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===" "||ds[o.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});On.displayName=Ee;var kn="MenuSubContent",$n=i.forwardRef((e,t)=>{const n=hn(q,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,s=se(q,e.__scopeMenu),u=_e(q,e.__scopeMenu),l=Dn(kn,e.__scopeMenu),m=i.useRef(null),f=k.useComposedRefs(t,m);return r.jsxRuntimeExports.jsx(Ce.Provider,{scope:e.__scopeMenu,children:r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:r.jsxRuntimeExports.jsx(Ce.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=ps[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 ke(e){return e==="indeterminate"}function Pt(e){return ke(e)?"indeterminate":e?"checked":"unchecked"}function Ns(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function As(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Ds(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=As(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 Ts(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 Os(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Ts(n,t)}function we(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Fn=Rn,Hn=jt,Gn=bn,Kn=En,zn=St,Vn=jn,Un=ze,Bn=wn,qn=Sn,Wn=_n,Yn=In,Xn=Nn,Zn=An,Jn=Tn,Qn=On,eo=$n,Ve="DropdownMenu",[ks,pp]=c.createContextScope(Ve,[Et]),K=Et(),[$s,to]=ks(Ve),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:Ve});return r.jsxRuntimeExports.jsx($s,{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=Ve;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 Ls="DropdownMenuPortal",ao=e=>{const{__scopeDropdownMenu:t,...n}=e,o=K(t);return r.jsxRuntimeExports.jsx(Gn,{...o,...n})};ao.displayName=Ls;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 Fs="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=Fs;var Hs="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=Hs;var Gs="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=Gs;var Ks="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=Ks;var zs="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=zs;var Vs="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=Vs;var Us="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=Us;var Bs="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=Bs;var qs="DropdownMenuArrow",Ws=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,a=K(n);return r.jsxRuntimeExports.jsx(Zn,{...a,...o,ref:t})});Ws.displayName=qs;var Ys=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})},Xs="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=Xs;var Zs="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=Zs;var Js=no,Qs=ro,ho=ao,ei=io,ti=co,ni=uo,oi=lo,ri=po,ai=mo,si=fo,bo=xo,ii=vo,ci=Ys,ui=go,li=Ro;function di({...e}){return r.jsxRuntimeExports.jsx(Js,{"data-slot":"dropdown-menu",...e})}function pi({...e}){return r.jsxRuntimeExports.jsx(ho,{"data-slot":"dropdown-menu-portal",...e})}function mi({...e}){return r.jsxRuntimeExports.jsx(Qs,{"data-slot":"dropdown-menu-trigger",...e})}function fi({className:e,sideOffset:t=4,...n}){return r.jsxRuntimeExports.jsx(ho,{children:r.jsxRuntimeExports.jsx(ei,{"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 xi({...e}){return r.jsxRuntimeExports.jsx(ti,{"data-slot":"dropdown-menu-group",...e})}function vi({className:e,inset:t,variant:n="default",...o}){return r.jsxRuntimeExports.jsx(oi,{"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 gi({className:e,children:t,checked:n,...o}){return r.jsxRuntimeExports.jsxs(ri,{"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(W.CheckIcon,{className:"size-4"})})}),t]})}function Ri({...e}){return r.jsxRuntimeExports.jsx(ai,{"data-slot":"dropdown-menu-radio-group",...e})}function hi({className:e,children:t,...n}){return r.jsxRuntimeExports.jsxs(si,{"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(W.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function bi({className:e,inset:t,...n}){return r.jsxRuntimeExports.jsx(ni,{"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 Ei({className:e,...t}){return r.jsxRuntimeExports.jsx(ii,{"data-slot":"dropdown-menu-separator",className:b.cn("bg-border -mx-1 my-1 h-px",e),...t})}function ji({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 Ci({...e}){return r.jsxRuntimeExports.jsx(ci,{"data-slot":"dropdown-menu-sub",...e})}function wi({className:e,inset:t,children:n,...o}){return r.jsxRuntimeExports.jsxs(ui,{"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(W.ChevronRightIcon,{className:"ml-auto size-4"})]})}function Mi({className:e,...t}){return r.jsxRuntimeExports.jsx(li,{"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 Ue="Tabs",[Si,mp]=c.createContextScope(Ue,[ae]),Eo=ae(),[yi,It]=Si(Ue),jo=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:a,defaultValue:s,orientation:u="horizontal",dir:l,activationMode:m="automatic",...f}=e,d=le.useDirection(l),[p,v]=c.useControllableState({prop:o,onChange:a,defaultProp:s??"",caller:Ue});return r.jsxRuntimeExports.jsx(yi,{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})})});jo.displayName=Ue;var Co="TabsList",wo=i.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...a}=e,s=It(Co,n),u=Eo(n);return r.jsxRuntimeExports.jsx(Ge,{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})})});wo.displayName=Co;var Mo="TabsTrigger",So=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:a=!1,...s}=e,u=It(Mo,n),l=Eo(n),m=Po(u.baseId,o),f=Io(u.baseId,o),d=o===u.value;return r.jsxRuntimeExports.jsx(Ke,{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)})})})});So.displayName=Mo;var yo="TabsContent",_o=i.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:a,children:s,...u}=e,l=It(yo,n),m=Po(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})})});_o.displayName=yo;function Po(e,t){return`${e}-trigger-${t}`}function Io(e,t){return`${e}-content-${t}`}var _i=jo,Pi=wo,Ii=So,Ni=_o;function Ai({className:e,...t}){return r.jsxRuntimeExports.jsx(_i,{"data-slot":"tabs",className:b.cn("flex flex-col gap-2",e),...t})}function Di({className:e,...t}){return r.jsxRuntimeExports.jsx(Pi,{"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 Ti({className:e,...t}){return r.jsxRuntimeExports.jsx(Ii,{"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 Oi({className:e,...t}){return r.jsxRuntimeExports.jsx(Ni,{"data-slot":"tabs-content",className:b.cn("flex-1 outline-none",e),...t})}function ki({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:b.cn("bg-accent animate-pulse rounded-md",e),...t})}function $i({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 Li({...e}){return r.jsxRuntimeExports.jsx(c.Panel,{"data-slot":"resizable-panel",...e})}function Fi({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(W.GripVerticalIcon,{className:"size-2.5"})})})}var De={exports:{}},nt={};var Zt;function Hi(){if(Zt)return nt;Zt=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 nt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,nt}var ot={};var Jt;function Gi(){return Jt||(Jt=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;ot.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())})()),ot}var Qt;function Ki(){return Qt||(Qt=1,process.env.NODE_ENV==="production"?De.exports=Hi():De.exports=Gi()),De.exports}var zi=Ki();function Vi(){return zi.useSyncExternalStore(Ui,()=>!0,()=>!1)}function Ui(){return()=>{}}var Nt="Avatar",[Bi,fp]=c.createContextScope(Nt),[qi,No]=Bi(Nt),Ao=i.forwardRef((e,t)=>{const{__scopeAvatar:n,...o}=e,[a,s]=i.useState("idle");return r.jsxRuntimeExports.jsx(qi,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:s,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{...o,ref:t})})});Ao.displayName=Nt;var Do="AvatarImage",To=i.forwardRef((e,t)=>{const{__scopeAvatar:n,src:o,onLoadingStatusChange:a=()=>{},...s}=e,u=No(Do,n),l=Wi(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});To.displayName=Do;var Oo="AvatarFallback",ko=i.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:o,...a}=e,s=No(Oo,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});ko.displayName=Oo;function en(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Wi(e,{referrerPolicy:t,crossOrigin:n}){const o=Vi(),a=i.useRef(null),s=o?(a.current||(a.current=new window.Image),a.current):null,[u,l]=i.useState(()=>en(s,e));return c.useLayoutEffect2(()=>{l(en(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 Yi=Ao,Xi=To,Zi=ko;const Ji=sn.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 Qi({className:e,color:t="default",isBordered:n=!1,size:o="md",...a}){return r.jsxRuntimeExports.jsx(Yi,{"data-slot":"avatar",asChild:!0,children:r.jsxRuntimeExports.jsx("span",{tabIndex:-1,"data-slot":"avatar",className:b.cn(Ji({color:t,isBordered:n,size:o}),e),...a})})}function ec({className:e,...t}){return r.jsxRuntimeExports.jsx(Xi,{"data-slot":"avatar-image",className:b.cn("aspect-square size-full object-cover",e),...t})}function tc({className:e,...t}){return r.jsxRuntimeExports.jsx(Zi,{"data-slot":"avatar-fallback",className:b.cn(" flex size-full items-center justify-center rounded-full",e),...t})}var Be="Popover",[$o,xp]=c.createContextScope(Be,[N.createPopperScope]),Pe=N.createPopperScope(),[nc,ie]=$o(Be),Lo=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:a,onOpenChange:s,modal:u=!1}=e,l=Pe(t),m=i.useRef(null),[f,d]=i.useState(!1),[p,v]=c.useControllableState({prop:o,defaultProp:a??!1,onChange:s,caller:Be});return r.jsxRuntimeExports.jsx(N.Root2,{...l,children:r.jsxRuntimeExports.jsx(nc,{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})})};Lo.displayName=Be;var Fo="PopoverAnchor",Ho=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=ie(Fo,n),s=Pe(n),{onCustomAnchorAdd:u,onCustomAnchorRemove:l}=a;return i.useEffect(()=>(u(),()=>l()),[u,l]),r.jsxRuntimeExports.jsx(N.Anchor,{...s,...o,ref:t})});Ho.displayName=Fo;var Go="PopoverTrigger",Ko=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=ie(Go,n),s=Pe(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":qo(a.open),...o,ref:u,onClick:c.composeEventHandlers(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?l:r.jsxRuntimeExports.jsx(N.Anchor,{asChild:!0,...s,children:l})});Ko.displayName=Go;var At="PopoverPortal",[oc,rc]=$o(At,{forceMount:void 0}),zo=e=>{const{__scopePopover:t,forceMount:n,children:o,container:a}=e,s=ie(At,t);return r.jsxRuntimeExports.jsx(oc,{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})})})};zo.displayName=At;var ge="PopoverContent",Vo=i.forwardRef((e,t)=>{const n=rc(ge,e.__scopePopover),{forceMount:o=n.forceMount,...a}=e,s=ie(ge,e.__scopePopover);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:s.modal?r.jsxRuntimeExports.jsx(sc,{...a,ref:t}):r.jsxRuntimeExports.jsx(ic,{...a,ref:t})})});Vo.displayName=ge;var ac=k.createSlot("PopoverContent.RemoveScroll"),sc=i.forwardRef((e,t)=>{const n=ie(ge,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:ac,allowPinchZoom:!0,children:r.jsxRuntimeExports.jsx(Uo,{...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})})})}),ic=i.forwardRef((e,t)=>{const n=ie(ge,e.__scopePopover),o=i.useRef(!1),a=i.useRef(!1);return r.jsxRuntimeExports.jsx(Uo,{...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()}})}),Uo=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(ge,n),g=Pe(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(N.Content,{"data-state":qo(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)"}})})})}),Bo="PopoverClose",cc=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=ie(Bo,n);return r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",...o,ref:t,onClick:c.composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});cc.displayName=Bo;var uc="PopoverArrow",lc=i.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,a=Pe(n);return r.jsxRuntimeExports.jsx(N.Arrow,{...a,...o,ref:t})});lc.displayName=uc;function qo(e){return e?"open":"closed"}var dc=Lo,pc=Ho,mc=Ko,fc=zo,xc=Vo;function vc({...e}){return r.jsxRuntimeExports.jsx(dc,{"data-slot":"popover",...e})}function gc({...e}){return r.jsxRuntimeExports.jsx(mc,{"data-slot":"popover-trigger",...e})}function Rc({className:e,align:t="center",sideOffset:n=4,...o}){return r.jsxRuntimeExports.jsx(fc,{children:r.jsxRuntimeExports.jsx(xc,{"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 hc({...e}){return r.jsxRuntimeExports.jsx(pc,{"data-slot":"popover-anchor",...e})}var tn=1,bc=.9,Ec=.8,jc=.17,rt=.1,at=.999,Cc=.9999,wc=.99,Mc=/[\\\/_+.#"@\[\(\{&]/,Sc=/[\\\/_+.#"@\[\(\{&]/g,yc=/[\s-]/,Wo=/[\s-]/g;function lt(e,t,n,o,a,s,u){if(s===t.length)return a===e.length?tn:wc;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=lt(e,t,n,o,f+1,s+1,u),p>d&&(f===a?p*=tn:Mc.test(e.charAt(f-1))?(p*=Ec,g=e.slice(a,f-1).match(Sc),g&&a>0&&(p*=Math.pow(at,g.length))):yc.test(e.charAt(f-1))?(p*=bc,x=e.slice(a,f-1).match(Wo),x&&a>0&&(p*=Math.pow(at,x.length))):(p*=jc,a>0&&(p*=Math.pow(at,f-a))),e.charAt(f)!==t.charAt(s)&&(p*=Cc)),(p<rt&&n.charAt(f-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&n.charAt(f-1)!==o.charAt(s))&&(v=lt(e,t,n,o,f+1,s+2,u),v*rt>p&&(p=v*rt)),p>d&&(d=p),f=n.indexOf(m,f+1);return u[l]=d,d}function nn(e){return e.toLowerCase().replace(Wo," ")}function _c(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,lt(e,t,nn(e),nn(t),0,0,{})}var be='[cmdk-group=""]',st='[cmdk-group-items=""]',Pc='[cmdk-group-heading=""]',Yo='[cmdk-item=""]',on=`${Yo}:not([aria-disabled="true"])`,dt="cmdk-item-select",fe="data-value",Ic=(e,t,n)=>_c(e,t,n),Xo=i.createContext(void 0),Ie=()=>i.useContext(Xo),Zo=i.createContext(void 0),Dt=()=>i.useContext(Zo),Jo=i.createContext(void 0),Qo=i.forwardRef((e,t)=>{let n=xe(()=>{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=xe(()=>new Set),a=xe(()=>new Map),s=xe(()=>new Map),u=xe(()=>new Set),l=er(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=Gc();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,U);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||U(),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&&U(),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:Ic;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"),Ae=O.getAttribute("id");return((A=R.get(Ae))!=null?A:0)-((H=R.get(V))!=null?H:0)}).forEach(w=>{let O=w.closest(st);O?O.appendChild(w.parentElement===O?w:w.closest(`${st} > *`)):D.appendChild(w.parentElement===D?w:w.closest(`${st} > *`))}),P.sort((w,O)=>O[1]-w[1]).forEach(w=>{var O;let A=(O=_.current)==null?void 0:O.querySelector(`${be}[${fe}="${encodeURIComponent(w[0])}"]`);A?.parentElement.appendChild(A)})}function U(){let R=ee().find(D=>D.getAttribute("aria-disabled")!=="true"),P=R?.getAttribute(fe);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:[],Ae=L(H,V);n.current.filtered.items.set(A,Ae),Ae>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(be))==null?void 0:P.querySelector(Pc))==null||D.scrollIntoView({block:"nearest"})),w.scrollIntoView({block:"nearest"}))}function X(){var R;return(R=_.current)==null?void 0:R.querySelector(`${Yo}[aria-selected="true"]`)}function ee(){var R;return Array.from(((R=_.current)==null?void 0:R.querySelectorAll(on))||[])}function B(R){let P=ee()[R];P&&T.setState("value",P.getAttribute(fe))}function he(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(fe))}function te(R){let P=X(),D=P?.closest(be),w;for(;D&&!w;)D=R>0?Fc(D,be):Hc(D,be),w=D?.querySelector(on);w?T.setState("value",w.getAttribute(fe)):he(R)}let I=()=>B(ee().length-1),ne=R=>{R.preventDefault(),R.metaKey?I():R.altKey?te(1):he(1)},J=R=>{R.preventDefault(),R.metaKey?B(0):R.altKey?te(-1):he(-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(),B(0);break}case"End":{R.preventDefault(),I();break}case"Enter":{R.preventDefault();let w=X();if(w){let O=new Event(dt);w.dispatchEvent(O)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:$.inputId,id:$.labelId,style:zc},m),qe(e,R=>i.createElement(Zo.Provider,{value:T},i.createElement(Xo.Provider,{value:$},R))))}),Nc=i.forwardRef((e,t)=>{var n,o;let a=c.useId(),s=i.useRef(null),u=i.useContext(Jo),l=Ie(),m=er(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=tr(a,s,[e.value,e.children,s],e.keywords),p=Dt(),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(dt,x),()=>S.removeEventListener(dt,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)}),Ac=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=Ie(),p=re(g=>a||d.filter()===!1?!0:g.search?g.filtered.groups.has(u):!0);ue(()=>d.group(u),[]),tr(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),qe(e,g=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},i.createElement(Jo.Provider,{value:v},g))))}),Dc=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"})}),Tc=i.forwardRef((e,t)=>{let{onValueChange:n,...o}=e,a=e.value!=null,s=Dt(),u=re(f=>f.search),l=re(f=>f.selectedItemId),m=Ie();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)}})}),Oc=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=Ie();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},qe(e,f=>i.createElement("div",{ref:k.composeRefs(u,m.listInnerRef),"cmdk-list-sizer":""},f)))}),kc=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(Qo,{ref:t,...l}))))}),$c=i.forwardRef((e,t)=>re(n=>n.filtered.count===0)?i.createElement(c.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Lc=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},qe(e,u=>i.createElement("div",{"aria-hidden":!0},u)))}),pe=Object.assign(Qo,{List:Oc,Item:Nc,Input:Tc,Group:Ac,Separator:Dc,Dialog:kc,Empty:$c,Loading:Lc});function Fc(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Hc(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function er(e){let t=i.useRef(e);return ue(()=>{t.current=e}),t}var ue=typeof window>"u"?i.useEffect:i.useLayoutEffect;function xe(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function re(e){let t=Dt(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function tr(e,t,n,o=[]){let a=i.useRef(),s=Ie();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(fe,l),a.current=l}),a}var Gc=()=>{let[e,t]=i.useState(),n=xe(()=>new Map);return ue(()=>{n.current.forEach(o=>o()),n.current=new Map},[e]),(o,a)=>{n.current.set(o,a),t({})}};function Kc(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function qe({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(Kc(t),{ref:t.ref},n(t.props.children)):n(t)}var zc={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function nr({className:e,...t}){return r.jsxRuntimeExports.jsx(pe,{"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 Vc({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(nr,{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 Uc({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(W.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),r.jsxRuntimeExports.jsx(pe.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 Bc({className:e,...t}){return r.jsxRuntimeExports.jsx(pe.List,{"data-slot":"command-list",className:b.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function qc({...e}){return r.jsxRuntimeExports.jsx(pe.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Wc({className:e,...t}){return r.jsxRuntimeExports.jsx(pe.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 Yc({className:e,...t}){return r.jsxRuntimeExports.jsx(pe.Separator,{"data-slot":"command-separator",className:b.cn("bg-border -mx-1 h-px",e),...t})}function Xc({className:e,...t}){return r.jsxRuntimeExports.jsx(pe.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 Zc({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 We="Collapsible",[Jc,or]=c.createContextScope(We),[Qc,Tt]=Jc(We),rr=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:We});return r.jsxRuntimeExports.jsx(Qc,{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":kt(m),"data-disabled":s?"":void 0,...l,ref:t})})});rr.displayName=We;var ar="CollapsibleTrigger",sr=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,a=Tt(ar,n);return r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":kt(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...o,ref:t,onClick:c.composeEventHandlers(e.onClick,a.onOpenToggle)})});sr.displayName=ar;var Ot="CollapsibleContent",ir=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=Tt(Ot,e.__scopeCollapsible);return r.jsxRuntimeExports.jsx(c.Presence,{present:n||a.open,children:({present:s})=>r.jsxRuntimeExports.jsx(eu,{...o,ref:t,present:s})})});ir.displayName=Ot;var eu=i.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:a,...s}=e,u=Tt(Ot,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":kt(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 kt(e){return e?"open":"closed"}var tu=rr,nu=sr,ou=ir,Z="Accordion",ru=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[$t,au,su]=N.createCollection(Z),[Ye,vp]=c.createContextScope(Z,[su,or]),Lt=or(),cr=G.forwardRef((e,t)=>{const{type:n,...o}=e,a=o,s=o;return r.jsxRuntimeExports.jsx($t.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?r.jsxRuntimeExports.jsx(lu,{...s,ref:t}):r.jsxRuntimeExports.jsx(uu,{...a,ref:t})})});cr.displayName=Z;var[ur,iu]=Ye(Z),[lr,cu]=Ye(Z,{collapsible:!1}),uu=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(ur,{scope:e.__scopeAccordion,value:G.useMemo(()=>l?[l]:[],[l]),onItemOpen:m,onItemClose:G.useCallback(()=>s&&m(""),[s,m]),children:r.jsxRuntimeExports.jsx(lr,{scope:e.__scopeAccordion,collapsible:s,children:r.jsxRuntimeExports.jsx(dr,{...u,ref:t})})})}),lu=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(ur,{scope:e.__scopeAccordion,value:u,onItemOpen:m,onItemClose:f,children:r.jsxRuntimeExports.jsx(lr,{scope:e.__scopeAccordion,collapsible:!0,children:r.jsxRuntimeExports.jsx(dr,{...s,ref:t})})})}),[du,Xe]=Ye(Z),dr=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=au(n),p=le.useDirection(a)==="ltr",v=c.composeEventHandlers(e.onKeyDown,g=>{if(!ru.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(du,{scope:n,disabled:o,direction:a,orientation:s,children:r.jsxRuntimeExports.jsx($t.Slot,{scope:n,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{...u,"data-orientation":s,ref:m,onKeyDown:o?void 0:v})})})}),$e="AccordionItem",[pu,Ft]=Ye($e),pr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...a}=e,s=Xe($e,n),u=iu($e,n),l=Lt(n),m=c.useId(),f=o&&u.value.includes(o)||!1,d=s.disabled||e.disabled;return r.jsxRuntimeExports.jsx(pu,{scope:n,open:f,disabled:d,triggerId:m,children:r.jsxRuntimeExports.jsx(tu,{"data-orientation":s.orientation,"data-state":Rr(f),...l,...a,ref:t,disabled:d,open:f,onOpenChange:p=>{p?u.onItemOpen(o):u.onItemClose(o)}})})});pr.displayName=$e;var mr="AccordionHeader",fr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,a=Xe(Z,n),s=Ft(mr,n);return r.jsxRuntimeExports.jsx(c.Primitive.h3,{"data-orientation":a.orientation,"data-state":Rr(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});fr.displayName=mr;var pt="AccordionTrigger",xr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,a=Xe(Z,n),s=Ft(pt,n),u=cu(pt,n),l=Lt(n);return r.jsxRuntimeExports.jsx($t.ItemSlot,{scope:n,children:r.jsxRuntimeExports.jsx(nu,{"aria-disabled":s.open&&!u.collapsible||void 0,"data-orientation":a.orientation,id:s.triggerId,...l,...o,ref:t})})});xr.displayName=pt;var vr="AccordionContent",gr=G.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,a=Xe(Z,n),s=Ft(vr,n),u=Lt(n);return r.jsxRuntimeExports.jsx(ou,{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}})});gr.displayName=vr;function Rr(e){return e?"open":"closed"}var mu=cr,fu=pr,xu=fr,vu=xr,gu=gr;function Ru({...e}){return r.jsxRuntimeExports.jsx(mu,{"data-slot":"accordion",...e})}function hu({className:e,...t}){return r.jsxRuntimeExports.jsx(fu,{"data-slot":"accordion-item",className:b.cn("border-b last:border-b-0",e),...t})}function bu({className:e,children:t,...n}){return r.jsxRuntimeExports.jsx(xu,{className:"flex",children:r.jsxRuntimeExports.jsxs(vu,{"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(W.ChevronDownIcon,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function Eu({className:e,children:t,...n}){return r.jsxRuntimeExports.jsx(gu,{"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 me="NavigationMenu",[Ht,hr,ju]=N.createCollection(me),[mt,Cu,wu]=N.createCollection(me),[Gt,gp]=c.createContextScope(me,[ju,wu]),[Mu,Y]=Gt(me),[Su,yu]=Gt(me),br=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=le.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!=="",U=l>0;F?(window.clearTimeout(j.current),U&&C(!1)):(window.clearTimeout(j.current),j.current=window.setTimeout(()=>C(!0),l)),a?.(L)},defaultProp:s??"",caller:me}),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(Er,{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})})});br.displayName=me;var ft="NavigationMenuSub",_u=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:a,defaultValue:s,orientation:u="horizontal",...l}=e,m=Y(ft,n),[f,d]=c.useControllableState({prop:o,onChange:a,defaultProp:s??"",caller:ft});return r.jsxRuntimeExports.jsx(Er,{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})})});_u.displayName=ft;var Er=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(Mu,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:l,previousValue:N.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(Ht.Provider,{scope:t,children:r.jsxRuntimeExports.jsx(Su,{scope:t,items:E,children:u})})})},jr="NavigationMenuList",Cr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Y(jr,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(Ht.Slot,{scope:n,children:a.isRootMenu?r.jsxRuntimeExports.jsx(Dr,{asChild:!0,children:s}):s})})});Cr.displayName=jr;var wr="NavigationMenuItem",[Pu,Mr]=Gt(wr),Sr=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=vt(l.current);h.length&&Vt(x==="start"?h:h.reverse())}},[]),g=i.useCallback(()=>{if(l.current){const x=vt(l.current);x.length&&(d.current=ku(x))}},[]);return r.jsxRuntimeExports.jsx(Pu,{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})})});Sr.displayName=wr;var xt="NavigationMenuTrigger",yr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:o,...a}=e,s=Y(xt,e.__scopeNavigationMenu),u=Mr(xt,e.__scopeNavigationMenu),l=i.useRef(null),m=k.useComposedRefs(l,u.triggerRef,t),f=Or(s.baseId,u.value),d=kr(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(Ht.ItemSlot,{scope:n,value:u.value,children:r.jsxRuntimeExports.jsx(Tr,{asChild:!0,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{id:f,disabled:o,"data-disabled":o?"":void 0,"data-state":Ut(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,Le(()=>{o||v.current||u.wasEscapeCloseRef.current||p.current||(s.onTriggerEnter(u.value),p.current=!0)})),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,Le(()=>{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(N.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})]})]})});yr.displayName=xt;var Iu="NavigationMenuLink",rn="navigationMenu.linkSelect",_r=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:o,onSelect:a,...s}=e;return r.jsxRuntimeExports.jsx(Tr,{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(rn,{bubbles:!0,cancelable:!0});if(l.addEventListener(rn,f=>a?.(f),{once:!0}),c.dispatchDiscreteCustomEvent(l,m),!m.defaultPrevented&&!u.metaKey){const f=new CustomEvent(Te,{bubbles:!0,cancelable:!0});c.dispatchDiscreteCustomEvent(l,f)}},{checkForDefaultPrevented:!1})})})});_r.displayName=Iu;var Kt="NavigationMenuIndicator",Pr=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=Y(Kt,e.__scopeNavigationMenu),s=!!a.value;return a.indicatorTrack?Wa.createPortal(r.jsxRuntimeExports.jsx(c.Presence,{present:n||s,children:r.jsxRuntimeExports.jsx(Nu,{...o,ref:t})}),a.indicatorTrack):null});Pr.displayName=Kt;var Nu=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Y(Kt,n),s=hr(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 gt(u,v),gt(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}),Re="NavigationMenuContent",Ir=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=Y(Re,e.__scopeNavigationMenu),s=Mr(Re,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(Au,{forceMount:n,...m,ref:u}):r.jsxRuntimeExports.jsx(c.Presence,{present:n||l,children:r.jsxRuntimeExports.jsx(Nr,{"data-state":Ut(l),...m,ref:u,onPointerEnter:c.composeEventHandlers(e.onPointerEnter,a.onContentEnter),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,Le(a.onContentLeave)),style:{pointerEvents:!l&&a.isRootMenu?"none":void 0,...m.style}})})});Ir.displayName=Re;var Au=i.forwardRef((e,t)=>{const n=Y(Re,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}),Te="navigationMenu.rootContentDismiss",Nr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,triggerRef:a,focusProxyRef:s,wasEscapeCloseRef:u,onRootContentClose:l,onContentFocusOutside:m,...f}=e,d=Y(Re,n),p=i.useRef(null),v=k.useComposedRefs(p,t),g=Or(d.baseId,o),x=kr(d.baseId,o),h=hr(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(Te,y),()=>C.removeEventListener(Te,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(Dr,{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(Te,{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=vt(C.currentTarget),T=document.activeElement,$=S.findIndex(U=>U===T),F=C.shiftKey?S.slice(0,$).reverse():S.slice($+1,S.length);Vt(F)?C.preventDefault():s.current?.focus()}}),onEscapeKeyDown:c.composeEventHandlers(e.onEscapeKeyDown,C=>{u.current=!0})})})}),zt="NavigationMenuViewport",Ar=i.forwardRef((e,t)=>{const{forceMount:n,...o}=e,s=!!Y(zt,e.__scopeNavigationMenu).value;return r.jsxRuntimeExports.jsx(c.Presence,{present:n||s,children:r.jsxRuntimeExports.jsx(Du,{...o,ref:t})})});Ar.displayName=zt;var Du=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:o,...a}=e,s=Y(zt,n),u=k.useComposedRefs(t,s.onViewportChange),l=yu(Re,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 gt(d,()=>{d&&f({width:d.offsetWidth,height:d.offsetHeight})}),r.jsxRuntimeExports.jsx(c.Primitive.div,{"data-state":Ut(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,Le(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(Nr,{...y,ref:k.composeRefs(M,S=>{_&&S&&p(S)})})},j)})})}),Tu="FocusGroup",Dr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Y(Tu,n);return r.jsxRuntimeExports.jsx(mt.Provider,{scope:n,children:r.jsxRuntimeExports.jsx(mt.Slot,{scope:n,children:r.jsxRuntimeExports.jsx(c.Primitive.div,{dir:a.dir,...o,ref:t})})})}),an=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Ou="FocusGroupItem",Tr=i.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,a=Cu(n),s=Y(Ou,n);return r.jsxRuntimeExports.jsx(mt.ItemSlot,{scope:n,children:r.jsxRuntimeExports.jsx(c.Primitive.button,{...o,ref:t,onKeyDown:c.composeEventHandlers(e.onKeyDown,u=>{if(["Home","End",...an].includes(u.key)){let m=a().map(p=>p.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(u.key)&&m.reverse(),an.includes(u.key)){const p=m.indexOf(u.currentTarget);m=m.slice(p+1)}setTimeout(()=>Vt(m)),u.preventDefault()}})})})});function vt(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 Vt(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function ku(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 gt(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 Ut(e){return e?"open":"closed"}function Or(e,t){return`${e}-trigger-${t}`}function kr(e,t){return`${e}-content-${t}`}function Le(e){return t=>t.pointerType==="mouse"?e(t):void 0}var $u=br,Lu=Cr,Fu=Sr,Hu=yr,Gu=_r,Ku=Pr,zu=Ir,Vu=Ar;function Uu({className:e,children:t,viewport:n=!0,...o}){return r.jsxRuntimeExports.jsxs($u,{"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(Lr,{})]})}function Bu({className:e,...t}){return r.jsxRuntimeExports.jsx(Lu,{"data-slot":"navigation-menu-list",className:b.cn("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function qu({className:e,...t}){return r.jsxRuntimeExports.jsx(Fu,{"data-slot":"navigation-menu-item",className:b.cn("relative",e),...t})}const $r=sn.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 Wu({className:e,children:t,...n}){return r.jsxRuntimeExports.jsxs(Hu,{"data-slot":"navigation-menu-trigger",className:b.cn($r(),"group",e),...n,children:[t," ",r.jsxRuntimeExports.jsx(W.ChevronDownIcon,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function Yu({className:e,...t}){return r.jsxRuntimeExports.jsx(zu,{"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 Lr({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(Vu,{"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 Xu({className:e,...t}){return r.jsxRuntimeExports.jsx(Gu,{"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 Zu({className:e,...t}){return r.jsxRuntimeExports.jsx(Ku,{"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 Ju({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 Qu({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 el({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:b.cn("leading-none font-semibold",e),...t})}function tl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:b.cn("text-muted-foreground text-sm",e),...t})}function nl({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 ol({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:b.cn("px-6",e),...t})}function rl({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 al({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 sl({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-group",className:b.cn("flex items-center",e),...t})}function il({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 cl({...e}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:r.jsxRuntimeExports.jsx(W.MinusIcon,{})})}var ul="AspectRatio",Fr=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}})})});Fr.displayName=ul;var ll=Fr;function dl({...e}){return r.jsxRuntimeExports.jsx(ll,{"data-slot":"aspect-ratio",...e})}var Bt="Radio",[pl,Hr]=c.createContextScope(Bt),[ml,fl]=pl(Bt),Gr=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(ml,{scope:n,checked:a,disabled:u,children:[r.jsxRuntimeExports.jsx(c.Primitive.button,{type:"button",role:"radio","aria-checked":a,"data-state":Ur(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(Vr,{control:p,bubbles:!x.current,name:o,value:l,checked:a,required:s,disabled:u,form:f,style:{transform:"translateX(-100%)"}})]})});Gr.displayName=Bt;var Kr="RadioIndicator",zr=i.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...a}=e,s=fl(Kr,n);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.checked,children:r.jsxRuntimeExports.jsx(c.Primitive.span,{"data-state":Ur(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})})});zr.displayName=Kr;var xl="RadioBubbleInput",Vr=i.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:o=!0,...a},s)=>{const u=i.useRef(null),l=k.useComposedRefs(u,s),m=N.usePrevious(n),f=N.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}})});Vr.displayName=xl;function Ur(e){return e?"checked":"unchecked"}var vl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ze="RadioGroup",[gl,Rp]=c.createContextScope(Ze,[ae,Hr]),Br=ae(),qr=Hr(),[Rl,hl]=gl(Ze),Wr=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=Br(n),x=le.useDirection(f),[h,E]=c.useControllableState({prop:s,defaultProp:a??null,onChange:p,caller:Ze});return r.jsxRuntimeExports.jsx(Rl,{scope:n,name:o,required:u,disabled:l,value:h,onValueChange:E,children:r.jsxRuntimeExports.jsx(Ge,{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})})})});Wr.displayName=Ze;var Yr="RadioGroupItem",Xr=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...a}=e,s=hl(Yr,n),u=s.disabled||o,l=Br(n),m=qr(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=>{vl.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(Ke,{asChild:!0,...l,focusable:!u,active:p,children:r.jsxRuntimeExports.jsx(Gr,{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()})})})});Xr.displayName=Yr;var bl="RadioGroupIndicator",Zr=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,a=qr(n);return r.jsxRuntimeExports.jsx(zr,{...a,...o,ref:t})});Zr.displayName=bl;var El=Wr,jl=Xr,Cl=Zr;function wl({className:e,...t}){return r.jsxRuntimeExports.jsx(El,{"data-slot":"radio-group",className:b.cn("grid gap-3",e),...t})}function Ml({className:e,...t}){return r.jsxRuntimeExports.jsx(jl,{"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(Cl,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:r.jsxRuntimeExports.jsx(W.CircleIcon,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}function Sl({...e}){return r.jsxRuntimeExports.jsx(c.Root,{"data-slot":"sheet",...e})}function yl({...e}){return r.jsxRuntimeExports.jsx(c.Trigger,{"data-slot":"sheet-trigger",...e})}function _l({...e}){return r.jsxRuntimeExports.jsx(c.Close,{"data-slot":"sheet-close",...e})}function Pl({...e}){return r.jsxRuntimeExports.jsx(c.Portal$1,{"data-slot":"sheet-portal",...e})}function Il({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 Nl({className:e,children:t,side:n="right",backdrop:o="opaque",showCloseButton:a=!0,disabled:s=!1,...u}){return r.jsxRuntimeExports.jsxs(Pl,{children:[r.jsxRuntimeExports.jsx(Il,{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(je.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 Al({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 Dl({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 Tl({className:e,...t}){return r.jsxRuntimeExports.jsx(c.Title,{"data-slot":"sheet-title",className:b.cn("text-foreground font-semibold",e),...t})}function Ol({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",[Rt,kl,$l]=N.createCollection(Ne),[Jr,hp]=c.createContextScope(Ne,[$l,ae]),z=Et(),Qr=ae(),[Ll,qt]=Jr(Ne),ea=i.forwardRef((e,t)=>{const{__scopeMenubar:n,value:o,onValueChange:a,defaultValue:s,loop:u=!0,dir:l,...m}=e,f=le.useDirection(l),d=Qr(n),[p,v]=c.useControllableState({prop:o,onChange:a,defaultProp:s??"",caller:Ne}),[g,x]=i.useState(null);return r.jsxRuntimeExports.jsx(Ll,{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(Rt.Provider,{scope:n,children:r.jsxRuntimeExports.jsx(Rt.Slot,{scope:n,children:r.jsxRuntimeExports.jsx(Ge,{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})})})})})});ea.displayName=Ne;var Wt="MenubarMenu",[Fl,ta]=Jr(Wt),na=e=>{const{__scopeMenubar:t,value:n,...o}=e,a=c.useId(),s=n||a||"LEGACY_REACT_AUTO_VALUE",u=qt(Wt,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(Fl,{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})})};na.displayName=Wt;var ht="MenubarTrigger",oa=i.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:o=!1,...a}=e,s=Qr(n),u=z(n),l=qt(ht,n),m=ta(ht,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(Rt.ItemSlot,{scope:n,value:m.value,disabled:o,children:r.jsxRuntimeExports.jsx(Ke,{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))})})})})});oa.displayName=ht;var Hl="MenubarPortal",ra=e=>{const{__scopeMenubar:t,...n}=e,o=z(t);return r.jsxRuntimeExports.jsx(Gn,{...o,...n})};ra.displayName=Hl;var bt="MenubarContent",aa=i.forwardRef((e,t)=>{const{__scopeMenubar:n,align:o="start",...a}=e,s=z(n),u=qt(bt,n),l=ta(bt,n),m=kl(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?Ql(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)"}})});aa.displayName=bt;var Gl="MenubarGroup",sa=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(zn,{...a,...o,ref:t})});sa.displayName=Gl;var Kl="MenubarLabel",ia=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Vn,{...a,...o,ref:t})});ia.displayName=Kl;var zl="MenubarItem",ca=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Un,{...a,...o,ref:t})});ca.displayName=zl;var Vl="MenubarCheckboxItem",ua=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Bn,{...a,...o,ref:t})});ua.displayName=Vl;var Ul="MenubarRadioGroup",la=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(qn,{...a,...o,ref:t})});la.displayName=Ul;var Bl="MenubarRadioItem",da=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Wn,{...a,...o,ref:t})});da.displayName=Bl;var ql="MenubarItemIndicator",pa=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Yn,{...a,...o,ref:t})});pa.displayName=ql;var Wl="MenubarSeparator",ma=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Xn,{...a,...o,ref:t})});ma.displayName=Wl;var Yl="MenubarArrow",Xl=i.forwardRef((e,t)=>{const{__scopeMenubar:n,...o}=e,a=z(n);return r.jsxRuntimeExports.jsx(Zn,{...a,...o,ref:t})});Xl.displayName=Yl;var fa="MenubarSub",xa=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:fa});return r.jsxRuntimeExports.jsx(Jn,{...u,open:l,onOpenChange:m,children:n})};xa.displayName=fa;var Zl="MenubarSubTrigger",va=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})});va.displayName=Zl;var Jl="MenubarSubContent",ga=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)"}})});ga.displayName=Jl;function Ql(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var ed=ea,td=na,nd=oa,od=ra,rd=aa,ad=sa,sd=ia,id=ca,cd=ua,ud=la,ld=da,Ra=pa,dd=ma,pd=xa,md=va,fd=ga;function xd({className:e,...t}){return r.jsxRuntimeExports.jsx(ed,{"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 vd({...e}){return r.jsxRuntimeExports.jsx(td,{"data-slot":"menubar-menu",...e})}function gd({...e}){return r.jsxRuntimeExports.jsx(ad,{"data-slot":"menubar-group",...e})}function ha({...e}){return r.jsxRuntimeExports.jsx(od,{"data-slot":"menubar-portal",...e})}function Rd({...e}){return r.jsxRuntimeExports.jsx(ud,{"data-slot":"menubar-radio-group",...e})}function hd({className:e,...t}){return r.jsxRuntimeExports.jsx(nd,{"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 bd({className:e,align:t="start",alignOffset:n=-4,sideOffset:o=8,...a}){return r.jsxRuntimeExports.jsx(ha,{children:r.jsxRuntimeExports.jsx(rd,{"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 Ed({className:e,inset:t,variant:n="default",...o}){return r.jsxRuntimeExports.jsx(id,{"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 jd({className:e,children:t,checked:n,...o}){return r.jsxRuntimeExports.jsxs(cd,{"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(Ra,{children:r.jsxRuntimeExports.jsx(W.CheckIcon,{className:"size-4"})})}),t]})}function Cd({className:e,children:t,...n}){return r.jsxRuntimeExports.jsxs(ld,{"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(Ra,{children:r.jsxRuntimeExports.jsx(W.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function wd({className:e,inset:t,...n}){return r.jsxRuntimeExports.jsx(sd,{"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 Md({className:e,...t}){return r.jsxRuntimeExports.jsx(dd,{"data-slot":"menubar-separator",className:b.cn("bg-border -mx-1 my-1 h-px",e),...t})}function Sd({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 yd({...e}){return r.jsxRuntimeExports.jsx(pd,{"data-slot":"menubar-sub",...e})}function _d({className:e,inset:t,children:n,...o}){return r.jsxRuntimeExports.jsxs(md,{"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(W.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]})}function Pd({className:e,...t}){return r.jsxRuntimeExports.jsx(fd,{"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 ba="AlertDialog",[Id,bp]=c.createContextScope(ba,[c.createDialogScope]),oe=c.createDialogScope(),Ea=e=>{const{__scopeAlertDialog:t,...n}=e,o=oe(t);return r.jsxRuntimeExports.jsx(c.Root,{...o,...n,modal:!0})};Ea.displayName=ba;var Nd="AlertDialogTrigger",ja=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Trigger,{...a,...o,ref:t})});ja.displayName=Nd;var Ad="AlertDialogPortal",Ca=e=>{const{__scopeAlertDialog:t,...n}=e,o=oe(t);return r.jsxRuntimeExports.jsx(c.Portal$1,{...o,...n})};Ca.displayName=Ad;var Dd="AlertDialogOverlay",wa=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Overlay,{...a,...o,ref:t})});wa.displayName=Dd;var ve="AlertDialogContent",[Td,Od]=Id(ve),kd=k.createSlottable("AlertDialogContent"),Ma=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:ve,titleName:Sa,docsSlug:"alert-dialog",children:r.jsxRuntimeExports.jsx(Td,{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(kd,{children:o}),r.jsxRuntimeExports.jsx(Ld,{contentRef:u})]})})})});Ma.displayName=ve;var Sa="AlertDialogTitle",ya=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Title,{...a,...o,ref:t})});ya.displayName=Sa;var _a="AlertDialogDescription",Pa=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,a=oe(n);return r.jsxRuntimeExports.jsx(c.Description,{...a,...o,ref:t})});Pa.displayName=_a;var $d="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=$d;var Na="AlertDialogCancel",Aa=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:a}=Od(Na,n),s=oe(n),u=k.useComposedRefs(t,a);return r.jsxRuntimeExports.jsx(c.Close,{...s,...o,ref:u})});Aa.displayName=Na;var Ld=({contentRef:e})=>{const t=`\`${ve}\` 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-Cklud2kp.js"),r=require("../chunks/jsx-runtime-BjzqJBtL.js"),G=require("react"),b=require("../chunks/utils-IjLH3w2e.js"),Wa=require("../chunks/label-error-Ax74Uy3M.js"),k=require("../chunks/index-6ER8bShj.js"),I=require("../chunks/select-CC7ump6t.js"),U=require("../chunks/index-BydcKEwP.js"),cn=require("../chunks/index-BxK4T-v8.js"),bt=require("../chunks/scroll-area-C8l3z7wv.js"),Ya=require("react-dom"),Ee=require("../chunks/button-OdZ6El_t.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
- You can add a description to the \`${ve}\` by passing a \`${_a}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
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
 
5
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ve}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
5
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${xe}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
6
6
 
7
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{const n=document.getElementById(e.current?.getAttribute("aria-describedby"))},[t,e]),null},Fd=Ea,Hd=ja,Gd=Ca,Kd=wa,zd=Ma,Vd=Ia,Ud=Aa,Bd=ya,qd=Pa;function Da({...e}){return r.jsxRuntimeExports.jsx(Fd,{"data-slot":"alert-dialog",...e})}function Wd({...e}){return r.jsxRuntimeExports.jsx(Hd,{"data-slot":"alert-dialog-trigger",...e})}function Ta({...e}){return r.jsxRuntimeExports.jsx(Gd,{"data-slot":"alert-dialog-portal",...e})}function Oa({className:e,...t}){return r.jsxRuntimeExports.jsx(Kd,{"data-slot":"alert-dialog-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",e),...t})}function ka({className:e,...t}){return r.jsxRuntimeExports.jsxs(Ta,{children:[r.jsxRuntimeExports.jsx(Oa,{}),r.jsxRuntimeExports.jsx(zd,{"data-slot":"alert-dialog-content",className:b.cn("bg-content1 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg p-6 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function $a({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-header",className:b.cn("flex flex-col gap-2 text-center sm:text-left",e),...t})}function La({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-footer",className:b.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Fa({className:e,...t}){return r.jsxRuntimeExports.jsx(Bd,{"data-slot":"alert-dialog-title",className:b.cn("text-lg font-semibold",e),...t})}function Ha({className:e,...t}){return r.jsxRuntimeExports.jsx(qd,{"data-slot":"alert-dialog-description",className:b.cn("text-muted-foreground text-sm",e),...t})}function Yd({className:e,...t}){return r.jsxRuntimeExports.jsx(Vd,{className:b.cn(je.button({color:"primary"}),e),...t})}function Xd({className:e,...t}){return r.jsxRuntimeExports.jsx(Ud,{className:b.cn(je.button({variant:"solid"}),e),...t})}const Zd=({isOpen:e,title:t,description:n,body:o,loading:a=!1,onConfirm:s,onCancel:u,onOpenChange:l,buttonCancelText:m="Cancelar",buttonConfirmText:f="Aceptar",colorButtonConfirm:d="primary",showButtonCancel:p=!0})=>r.jsxRuntimeExports.jsx(Da,{open:e,onOpenChange:v=>l?.(v),children:r.jsxRuntimeExports.jsxs(ka,{children:[r.jsxRuntimeExports.jsxs($a,{children:[t&&r.jsxRuntimeExports.jsx(Fa,{children:t}),n&&r.jsxRuntimeExports.jsx(Ha,{children:n}),o&&r.jsxRuntimeExports.jsx("div",{className:"w-full relative",children:o})]}),r.jsxRuntimeExports.jsxs(La,{children:[p&&r.jsxRuntimeExports.jsx(je.Button,{onClick:u,disabled:a,children:m}),r.jsxRuntimeExports.jsx(je.Button,{onClick:s,disabled:a,isLoading:a,color:d,children:f})]})]})});var it,Je="HoverCard",[Ga,Ep]=c.createContextScope(Je,[N.createPopperScope]),Qe=N.createPopperScope(),[Jd,et]=Ga(Je),Ka=e=>{const{__scopeHoverCard:t,children:n,open:o,defaultOpen:a,onOpenChange:s,openDelay:u=700,closeDelay:l=300}=e,m=Qe(t),f=i.useRef(0),d=i.useRef(0),p=i.useRef(!1),v=i.useRef(!1),[g,x]=c.useControllableState({prop:o,defaultProp:a??!1,onChange:s,caller:Je}),h=i.useCallback(()=>{clearTimeout(d.current),f.current=window.setTimeout(()=>x(!0),u)},[u,x]),E=i.useCallback(()=>{clearTimeout(f.current),!p.current&&!v.current&&(d.current=window.setTimeout(()=>x(!1),l))},[l,x]),j=i.useCallback(()=>x(!1),[x]);return i.useEffect(()=>()=>{clearTimeout(f.current),clearTimeout(d.current)},[]),r.jsxRuntimeExports.jsx(Jd,{scope:t,open:g,onOpenChange:x,onOpen:h,onClose:E,onDismiss:j,hasSelectionRef:p,isPointerDownOnContentRef:v,children:r.jsxRuntimeExports.jsx(N.Root2,{...m,children:n})})};Ka.displayName=Je;var za="HoverCardTrigger",Va=i.forwardRef((e,t)=>{const{__scopeHoverCard:n,...o}=e,a=et(za,n),s=Qe(n);return r.jsxRuntimeExports.jsx(N.Anchor,{asChild:!0,...s,children:r.jsxRuntimeExports.jsx(c.Primitive.a,{"data-state":a.open?"open":"closed",...o,ref:t,onPointerEnter:c.composeEventHandlers(e.onPointerEnter,He(a.onOpen)),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,He(a.onClose)),onFocus:c.composeEventHandlers(e.onFocus,a.onOpen),onBlur:c.composeEventHandlers(e.onBlur,a.onClose),onTouchStart:c.composeEventHandlers(e.onTouchStart,u=>u.preventDefault())})})});Va.displayName=za;var Yt="HoverCardPortal",[Qd,ep]=Ga(Yt,{forceMount:void 0}),Ua=e=>{const{__scopeHoverCard:t,forceMount:n,children:o,container:a}=e,s=et(Yt,t);return r.jsxRuntimeExports.jsx(Qd,{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})})})};Ua.displayName=Yt;var Fe="HoverCardContent",Ba=i.forwardRef((e,t)=>{const n=ep(Fe,e.__scopeHoverCard),{forceMount:o=n.forceMount,...a}=e,s=et(Fe,e.__scopeHoverCard);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:r.jsxRuntimeExports.jsx(tp,{"data-state":s.open?"open":"closed",...a,onPointerEnter:c.composeEventHandlers(e.onPointerEnter,He(s.onOpen)),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,He(s.onClose)),ref:t})})});Ba.displayName=Fe;var tp=i.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:u,...l}=e,m=et(Fe,n),f=Qe(n),d=i.useRef(null),p=k.useComposedRefs(t,d),[v,g]=i.useState(!1);return i.useEffect(()=>{if(v){const x=document.body;return it=x.style.userSelect||x.style.webkitUserSelect,x.style.userSelect="none",x.style.webkitUserSelect="none",()=>{x.style.userSelect=it,x.style.webkitUserSelect=it}}},[v]),i.useEffect(()=>{if(d.current){const x=()=>{g(!1),m.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(m.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",x),()=>{document.removeEventListener("pointerup",x),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!1}}},[m.isPointerDownOnContentRef,m.hasSelectionRef]),i.useEffect(()=>{d.current&&rp(d.current).forEach(h=>h.setAttribute("tabindex","-1"))}),r.jsxRuntimeExports.jsx(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:u,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c.composeEventHandlers(s,x=>{x.preventDefault()}),onDismiss:m.onDismiss,children:r.jsxRuntimeExports.jsx(N.Content,{...f,...l,onPointerDown:c.composeEventHandlers(l.onPointerDown,x=>{x.currentTarget.contains(x.target)&&g(!0),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!0}),ref:p,style:{...l.style,userSelect:v?"text":void 0,WebkitUserSelect:v?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),np="HoverCardArrow",op=i.forwardRef((e,t)=>{const{__scopeHoverCard:n,...o}=e,a=Qe(n);return r.jsxRuntimeExports.jsx(N.Arrow,{...a,...o,ref:t})});op.displayName=np;function He(e){return t=>t.pointerType==="touch"?void 0:e()}function rp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var ap=Ka,sp=Va,ip=Ua,cp=Ba;function up({...e}){return r.jsxRuntimeExports.jsx(ap,{"data-slot":"hover-card",...e})}function lp({...e}){return r.jsxRuntimeExports.jsx(sp,{"data-slot":"hover-card-trigger",...e})}function dp({className:e,align:t="center",sideOffset:n=4,...o}){return r.jsxRuntimeExports.jsx(ip,{"data-slot":"hover-card-portal",children:r.jsxRuntimeExports.jsx(cp,{"data-slot":"hover-card-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-64 origin-(--radix-hover-card-content-transform-origin) rounded-md p-4 shadow-medium outline-hidden",e),...o})})}exports.Badge=c.Badge;exports.Dialog=c.Dialog;exports.DialogClose=c.DialogClose;exports.DialogContent=c.DialogContent;exports.DialogDescription=c.DialogDescription;exports.DialogFooter=c.DialogFooter;exports.DialogHeader=c.DialogHeader;exports.DialogOverlay=c.DialogOverlay;exports.DialogPortal=c.DialogPortal;exports.DialogTitle=c.DialogTitle;exports.DialogTrigger=c.DialogTrigger;exports.Input=c.Input;exports.Switch=c.Switch;exports.Textarea=c.Textarea;exports.LabelError=qa.LabelError;exports.Select=N.Select;exports.SelectContent=N.SelectContent;exports.SelectGroup=N.SelectGroup;exports.SelectItem=N.SelectItem;exports.SelectLabel=N.SelectLabel;exports.SelectScrollDownButton=N.SelectScrollDownButton;exports.SelectScrollUpButton=N.SelectScrollUpButton;exports.SelectSeparator=N.SelectSeparator;exports.SelectTrigger=N.SelectTrigger;exports.SelectValue=N.SelectValue;exports.ScrollArea=cn.ScrollArea;exports.ScrollBar=cn.ScrollBar;exports.Accordion=Ru;exports.AccordionContent=Eu;exports.AccordionItem=hu;exports.AccordionTrigger=bu;exports.AlertConfirmation=Zd;exports.AlertDialog=Da;exports.AlertDialogAction=Yd;exports.AlertDialogCancel=Xd;exports.AlertDialogContent=ka;exports.AlertDialogDescription=Ha;exports.AlertDialogFooter=La;exports.AlertDialogHeader=$a;exports.AlertDialogOverlay=Oa;exports.AlertDialogPortal=Ta;exports.AlertDialogTitle=Fa;exports.AlertDialogTrigger=Wd;exports.AspectRatio=dl;exports.Avatar=Qi;exports.AvatarFallback=tc;exports.AvatarImage=ec;exports.Card=Ju;exports.CardAction=nl;exports.CardContent=ol;exports.CardDescription=tl;exports.CardFooter=rl;exports.CardHeader=Qu;exports.CardTitle=el;exports.Command=nr;exports.CommandDialog=Vc;exports.CommandEmpty=qc;exports.CommandGroup=Wc;exports.CommandInput=Uc;exports.CommandItem=Xc;exports.CommandList=Bc;exports.CommandSeparator=Yc;exports.CommandShortcut=Zc;exports.DropdownMenu=di;exports.DropdownMenuCheckboxItem=gi;exports.DropdownMenuContent=fi;exports.DropdownMenuGroup=xi;exports.DropdownMenuItem=vi;exports.DropdownMenuLabel=bi;exports.DropdownMenuPortal=pi;exports.DropdownMenuRadioGroup=Ri;exports.DropdownMenuRadioItem=hi;exports.DropdownMenuSeparator=Ei;exports.DropdownMenuShortcut=ji;exports.DropdownMenuSub=Ci;exports.DropdownMenuSubContent=Mi;exports.DropdownMenuSubTrigger=wi;exports.DropdownMenuTrigger=mi;exports.HoverCard=up;exports.HoverCardContent=dp;exports.HoverCardTrigger=lp;exports.InputOTP=al;exports.InputOTPGroup=sl;exports.InputOTPSeparator=cl;exports.InputOTPSlot=il;exports.Label=Ja;exports.Menubar=xd;exports.MenubarCheckboxItem=jd;exports.MenubarContent=bd;exports.MenubarGroup=gd;exports.MenubarItem=Ed;exports.MenubarLabel=wd;exports.MenubarMenu=vd;exports.MenubarPortal=ha;exports.MenubarRadioGroup=Rd;exports.MenubarRadioItem=Cd;exports.MenubarSeparator=Md;exports.MenubarShortcut=Sd;exports.MenubarSub=yd;exports.MenubarSubContent=Pd;exports.MenubarSubTrigger=_d;exports.MenubarTrigger=hd;exports.NavigationMenu=Uu;exports.NavigationMenuContent=Yu;exports.NavigationMenuIndicator=Zu;exports.NavigationMenuItem=qu;exports.NavigationMenuLink=Xu;exports.NavigationMenuList=Bu;exports.NavigationMenuTrigger=Wu;exports.NavigationMenuViewport=Lr;exports.Popover=vc;exports.PopoverAnchor=hc;exports.PopoverContent=Rc;exports.PopoverTrigger=gc;exports.RadioGroup=wl;exports.RadioGroupItem=Ml;exports.ResizableHandle=Fi;exports.ResizablePanel=Li;exports.ResizablePanelGroup=$i;exports.Sheet=Sl;exports.SheetClose=_l;exports.SheetContent=Nl;exports.SheetDescription=Ol;exports.SheetFooter=Dl;exports.SheetHeader=Al;exports.SheetTitle=Tl;exports.SheetTrigger=yl;exports.Skeleton=ki;exports.Tabs=Ai;exports.TabsContent=Oi;exports.TabsList=Di;exports.TabsTrigger=Ti;exports.navigationMenuTriggerStyle=$r;
7
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{const n=document.getElementById(e.current?.getAttribute("aria-describedby"))},[t,e]),null},Bd=ja,qd=Ca,Wd=wa,Yd=Ma,Xd=Sa,Zd=Ia,Jd=Da,Qd=_a,ep=Na;function Ta({...e}){return r.jsxRuntimeExports.jsx(Bd,{"data-slot":"alert-dialog",...e})}function tp({...e}){return r.jsxRuntimeExports.jsx(qd,{"data-slot":"alert-dialog-trigger",...e})}function Oa({...e}){return r.jsxRuntimeExports.jsx(Wd,{"data-slot":"alert-dialog-portal",...e})}function ka({className:e,...t}){return r.jsxRuntimeExports.jsx(Yd,{"data-slot":"alert-dialog-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",e),...t})}function $a({className:e,...t}){return r.jsxRuntimeExports.jsxs(Oa,{children:[r.jsxRuntimeExports.jsx(ka,{}),r.jsxRuntimeExports.jsx(Xd,{"data-slot":"alert-dialog-content",className:b.cn("bg-content1 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg p-6 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function La({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-header",className:b.cn("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Fa({className:e,...t}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-footer",className:b.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Ha({className:e,...t}){return r.jsxRuntimeExports.jsx(Qd,{"data-slot":"alert-dialog-title",className:b.cn("text-lg font-semibold",e),...t})}function Ga({className:e,...t}){return r.jsxRuntimeExports.jsx(ep,{"data-slot":"alert-dialog-description",className:b.cn("text-muted-foreground text-sm",e),...t})}function np({className:e,...t}){return r.jsxRuntimeExports.jsx(Zd,{className:b.cn(Ee.button({color:"primary"}),e),...t})}function op({className:e,...t}){return r.jsxRuntimeExports.jsx(Jd,{className:b.cn(Ee.button({variant:"solid"}),e),...t})}const rp=({isOpen:e,title:t,description:n,body:o,loading:a=!1,onConfirm:s,onCancel:u,onOpenChange:l,buttonCancelText:m="Cancelar",buttonConfirmText:f="Aceptar",colorButtonConfirm:d="primary",showButtonCancel:p=!0})=>r.jsxRuntimeExports.jsx(Ta,{open:e,onOpenChange:v=>l?.(v),children:r.jsxRuntimeExports.jsxs($a,{children:[r.jsxRuntimeExports.jsxs(La,{children:[t&&r.jsxRuntimeExports.jsx(Ha,{children:t}),n&&r.jsxRuntimeExports.jsx(Ga,{children:n}),o&&r.jsxRuntimeExports.jsx("div",{className:"w-full relative",children:o})]}),r.jsxRuntimeExports.jsxs(Fa,{children:[p&&r.jsxRuntimeExports.jsx(Ee.Button,{onClick:u,disabled:a,children:m}),r.jsxRuntimeExports.jsx(Ee.Button,{onClick:s,disabled:a,isLoading:a,color:d,children:f})]})]})});var st,Ze="HoverCard",[Ka,_p]=c.createContextScope(Ze,[I.createPopperScope]),Je=I.createPopperScope(),[ap,Qe]=Ka(Ze),za=e=>{const{__scopeHoverCard:t,children:n,open:o,defaultOpen:a,onOpenChange:s,openDelay:u=700,closeDelay:l=300}=e,m=Je(t),f=i.useRef(0),d=i.useRef(0),p=i.useRef(!1),v=i.useRef(!1),[g,x]=c.useControllableState({prop:o,defaultProp:a??!1,onChange:s,caller:Ze}),h=i.useCallback(()=>{clearTimeout(d.current),f.current=window.setTimeout(()=>x(!0),u)},[u,x]),E=i.useCallback(()=>{clearTimeout(f.current),!p.current&&!v.current&&(d.current=window.setTimeout(()=>x(!1),l))},[l,x]),j=i.useCallback(()=>x(!1),[x]);return i.useEffect(()=>()=>{clearTimeout(f.current),clearTimeout(d.current)},[]),r.jsxRuntimeExports.jsx(ap,{scope:t,open:g,onOpenChange:x,onOpen:h,onClose:E,onDismiss:j,hasSelectionRef:p,isPointerDownOnContentRef:v,children:r.jsxRuntimeExports.jsx(I.Root2,{...m,children:n})})};za.displayName=Ze;var Va="HoverCardTrigger",Ua=i.forwardRef((e,t)=>{const{__scopeHoverCard:n,...o}=e,a=Qe(Va,n),s=Je(n);return r.jsxRuntimeExports.jsx(I.Anchor,{asChild:!0,...s,children:r.jsxRuntimeExports.jsx(c.Primitive.a,{"data-state":a.open?"open":"closed",...o,ref:t,onPointerEnter:c.composeEventHandlers(e.onPointerEnter,Fe(a.onOpen)),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,Fe(a.onClose)),onFocus:c.composeEventHandlers(e.onFocus,a.onOpen),onBlur:c.composeEventHandlers(e.onBlur,a.onClose),onTouchStart:c.composeEventHandlers(e.onTouchStart,u=>u.preventDefault())})})});Ua.displayName=Va;var Xt="HoverCardPortal",[sp,ip]=Ka(Xt,{forceMount:void 0}),Ba=e=>{const{__scopeHoverCard:t,forceMount:n,children:o,container:a}=e,s=Qe(Xt,t);return r.jsxRuntimeExports.jsx(sp,{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})})})};Ba.displayName=Xt;var Le="HoverCardContent",qa=i.forwardRef((e,t)=>{const n=ip(Le,e.__scopeHoverCard),{forceMount:o=n.forceMount,...a}=e,s=Qe(Le,e.__scopeHoverCard);return r.jsxRuntimeExports.jsx(c.Presence,{present:o||s.open,children:r.jsxRuntimeExports.jsx(cp,{"data-state":s.open?"open":"closed",...a,onPointerEnter:c.composeEventHandlers(e.onPointerEnter,Fe(s.onOpen)),onPointerLeave:c.composeEventHandlers(e.onPointerLeave,Fe(s.onClose)),ref:t})})});qa.displayName=Le;var cp=i.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:u,...l}=e,m=Qe(Le,n),f=Je(n),d=i.useRef(null),p=k.useComposedRefs(t,d),[v,g]=i.useState(!1);return i.useEffect(()=>{if(v){const x=document.body;return st=x.style.userSelect||x.style.webkitUserSelect,x.style.userSelect="none",x.style.webkitUserSelect="none",()=>{x.style.userSelect=st,x.style.webkitUserSelect=st}}},[v]),i.useEffect(()=>{if(d.current){const x=()=>{g(!1),m.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(m.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",x),()=>{document.removeEventListener("pointerup",x),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!1}}},[m.isPointerDownOnContentRef,m.hasSelectionRef]),i.useEffect(()=>{d.current&&dp(d.current).forEach(h=>h.setAttribute("tabindex","-1"))}),r.jsxRuntimeExports.jsx(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:u,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c.composeEventHandlers(s,x=>{x.preventDefault()}),onDismiss:m.onDismiss,children:r.jsxRuntimeExports.jsx(I.Content,{...f,...l,onPointerDown:c.composeEventHandlers(l.onPointerDown,x=>{x.currentTarget.contains(x.target)&&g(!0),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!0}),ref:p,style:{...l.style,userSelect:v?"text":void 0,WebkitUserSelect:v?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),up="HoverCardArrow",lp=i.forwardRef((e,t)=>{const{__scopeHoverCard:n,...o}=e,a=Je(n);return r.jsxRuntimeExports.jsx(I.Arrow,{...a,...o,ref:t})});lp.displayName=up;function Fe(e){return t=>t.pointerType==="touch"?void 0:e()}function dp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var pp=za,mp=Ua,fp=Ba,xp=qa;function vp({...e}){return r.jsxRuntimeExports.jsx(pp,{"data-slot":"hover-card",...e})}function gp({...e}){return r.jsxRuntimeExports.jsx(mp,{"data-slot":"hover-card-trigger",...e})}function Rp({className:e,align:t="center",sideOffset:n=4,...o}){return r.jsxRuntimeExports.jsx(fp,{"data-slot":"hover-card-portal",children:r.jsxRuntimeExports.jsx(xp,{"data-slot":"hover-card-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-64 origin-(--radix-hover-card-content-transform-origin) rounded-md p-4 shadow-medium outline-hidden",e),...o})})}exports.Badge=c.Badge;exports.Dialog=c.Dialog;exports.DialogClose=c.DialogClose;exports.DialogContent=c.DialogContent;exports.DialogDescription=c.DialogDescription;exports.DialogFooter=c.DialogFooter;exports.DialogHeader=c.DialogHeader;exports.DialogOverlay=c.DialogOverlay;exports.DialogPortal=c.DialogPortal;exports.DialogTitle=c.DialogTitle;exports.DialogTrigger=c.DialogTrigger;exports.Input=c.Input;exports.Switch=c.Switch;exports.Textarea=c.Textarea;exports.LabelError=Wa.LabelError;exports.Select=I.Select;exports.SelectContent=I.SelectContent;exports.SelectGroup=I.SelectGroup;exports.SelectItem=I.SelectItem;exports.SelectLabel=I.SelectLabel;exports.SelectScrollDownButton=I.SelectScrollDownButton;exports.SelectScrollUpButton=I.SelectScrollUpButton;exports.SelectSeparator=I.SelectSeparator;exports.SelectTrigger=I.SelectTrigger;exports.SelectValue=I.SelectValue;exports.ScrollArea=bt.ScrollArea;exports.ScrollBar=bt.ScrollBar;exports.Accordion=Mu;exports.AccordionContent=_u;exports.AccordionItem=Su;exports.AccordionTrigger=yu;exports.AlertConfirmation=rp;exports.AlertDialog=Ta;exports.AlertDialogAction=np;exports.AlertDialogCancel=op;exports.AlertDialogContent=$a;exports.AlertDialogDescription=Ga;exports.AlertDialogFooter=Fa;exports.AlertDialogHeader=La;exports.AlertDialogOverlay=ka;exports.AlertDialogPortal=Oa;exports.AlertDialogTitle=Ha;exports.AlertDialogTrigger=tp;exports.AspectRatio=Rl;exports.Avatar=sc;exports.AvatarFallback=cc;exports.AvatarImage=ic;exports.Card=al;exports.CardAction=ul;exports.CardContent=ll;exports.CardDescription=cl;exports.CardFooter=dl;exports.CardHeader=sl;exports.CardTitle=il;exports.Command=or;exports.CommandDialog=Zc;exports.CommandEmpty=eu;exports.CommandGroup=tu;exports.CommandInput=Jc;exports.CommandItem=ou;exports.CommandList=Qc;exports.CommandSeparator=nu;exports.CommandShortcut=ru;exports.DropdownMenu=Ri;exports.DropdownMenuCheckboxItem=wi;exports.DropdownMenuContent=Ei;exports.DropdownMenuGroup=ji;exports.DropdownMenuItem=Ci;exports.DropdownMenuLabel=yi;exports.DropdownMenuPortal=hi;exports.DropdownMenuRadioGroup=Mi;exports.DropdownMenuRadioItem=Si;exports.DropdownMenuSeparator=_i;exports.DropdownMenuShortcut=Pi;exports.DropdownMenuSub=Ni;exports.DropdownMenuSubContent=Ai;exports.DropdownMenuSubTrigger=Ii;exports.DropdownMenuTrigger=bi;exports.HoverCard=vp;exports.HoverCardContent=Rp;exports.HoverCardTrigger=gp;exports.InputOTP=pl;exports.InputOTPGroup=ml;exports.InputOTPSeparator=xl;exports.InputOTPSlot=fl;exports.Label=Qa;exports.Menubar=jd;exports.MenubarCheckboxItem=Pd;exports.MenubarContent=yd;exports.MenubarGroup=wd;exports.MenubarItem=_d;exports.MenubarLabel=Id;exports.MenubarMenu=Cd;exports.MenubarPortal=ba;exports.MenubarRadioGroup=Md;exports.MenubarRadioItem=Nd;exports.MenubarSeparator=Ad;exports.MenubarShortcut=Dd;exports.MenubarSub=Td;exports.MenubarSubContent=kd;exports.MenubarSubTrigger=Od;exports.MenubarTrigger=Sd;exports.NavigationMenu=Ju;exports.NavigationMenuContent=nl;exports.NavigationMenuIndicator=rl;exports.NavigationMenuItem=el;exports.NavigationMenuLink=ol;exports.NavigationMenuList=Qu;exports.NavigationMenuTrigger=tl;exports.NavigationMenuViewport=Fr;exports.Popover=Cc;exports.PopoverAnchor=Sc;exports.PopoverContent=Mc;exports.PopoverTrigger=wc;exports.RadioGroup=Il;exports.RadioGroupItem=Al;exports.ResizableHandle=Bi;exports.ResizablePanel=Ui;exports.ResizablePanelGroup=Vi;exports.Sheet=Dl;exports.SheetClose=Ol;exports.SheetContent=Ll;exports.SheetDescription=Kl;exports.SheetFooter=Hl;exports.SheetHeader=Fl;exports.SheetTitle=Gl;exports.SheetTrigger=Tl;exports.Skeleton=zi;exports.Tabs=Fi;exports.TabsContent=Ki;exports.TabsList=Hi;exports.TabsTrigger=Gi;exports.navigationMenuTriggerStyle=Lr;
8
8
  //# sourceMappingURL=index.cjs.js.map