"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[438],{44867:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("CircleDollarSign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]])},56935:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},45188:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},69373:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("Haze",[["path",{d:"m5.2 6.2 1.4 1.4",key:"17imol"}],["path",{d:"M2 13h2",key:"13gyu8"}],["path",{d:"M20 13h2",key:"16rner"}],["path",{d:"m17.4 7.6 1.4-1.4",key:"t4xlah"}],["path",{d:"M22 17H2",key:"1gtaj3"}],["path",{d:"M22 21H2",key:"1gy6en"}],["path",{d:"M16 13a4 4 0 0 0-8 0",key:"1dyczq"}],["path",{d:"M12 5V2.5",key:"1vytko"}]])},23402:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("Library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]])},66588:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},92513:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},33907:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},6649:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},10883:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},52022:function(e,n,r){r.d(n,{Z:function(){return t}});/** * @license lucide-react v0.439.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let t=(0,r(78030).Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},87138:function(e,n,r){r.d(n,{default:function(){return o.a}});var t=r(231),o=r.n(t)},1255:function(e,n,r){r.d(n,{Z:function(){return b}});var t=r(22988),o=r(23950),a=r(2265),i=a.useLayoutEffect,u=function(e){var n=a.useRef(e);return i(function(){n.current=e}),n},l=function(e,n){if("function"==typeof e){e(n);return}e.current=n},d=function(e,n){var r=(0,a.useRef)();return(0,a.useCallback)(function(t){e.current=t,r.current&&l(r.current,null),r.current=n,n&&l(n,t)},[n])},c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},s=function(e){Object.keys(c).forEach(function(n){e.style.setProperty(n,c[n],"important")})},f=null,p=function(e,n){var r=e.scrollHeight;return"border-box"===n.sizingStyle.boxSizing?r+n.borderSize:r-n.paddingSize},h=function(){},v=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],g=!!document.documentElement.currentStyle,y=function(e){var n=window.getComputedStyle(e);if(null===n)return null;var r=v.reduce(function(e,r){return e[r]=n[r],e},{}),t=r.boxSizing;if(""===t)return null;g&&"border-box"===t&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),a=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:a}};function m(e,n,r){var t=u(r);a.useLayoutEffect(function(){var r=function(e){return t.current(e)};if(e)return e.addEventListener(n,r),function(){return e.removeEventListener(n,r)}},[])}var x=function(e){m(window,"resize",e)},w=function(e){m(document.fonts,"loadingdone",e)},M=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],b=a.forwardRef(function(e,n){var r=e.cacheMeasurements,i=e.maxRows,u=e.minRows,l=e.onChange,c=void 0===l?h:l,v=e.onHeightChange,g=void 0===v?h:v,m=(0,o.Z)(e,M),b=void 0!==m.value,k=a.useRef(null),C=d(k,n),R=a.useRef(0),j=a.useRef(),D=function(){var e,n,t,o,a,l,d,c,h,v,m,x=k.current,w=r&&j.current?j.current:y(x);if(w){j.current=w;var M=(e=x.value||x.placeholder||"x",void 0===(n=u)&&(n=1),void 0===(t=i)&&(t=1/0),f||((f=document.createElement("textarea")).setAttribute("tabindex","-1"),f.setAttribute("aria-hidden","true"),s(f)),null===f.parentNode&&document.body.appendChild(f),o=w.paddingSize,a=w.borderSize,d=(l=w.sizingStyle).boxSizing,Object.keys(l).forEach(function(e){f.style[e]=l[e]}),s(f),f.value=e,c=p(f,w),f.value=e,c=p(f,w),f.value="x",v=(h=f.scrollHeight-o)*n,"border-box"===d&&(v=v+o+a),c=Math.max(v,c),m=h*t,"border-box"===d&&(m=m+o+a),[c=Math.min(m,c),h]),b=M[0],C=M[1];R.current!==b&&(R.current=b,x.style.setProperty("height",b+"px","important"),g(b,{rowHeight:C}))}};return a.useLayoutEffect(D),x(D),w(D),a.createElement("textarea",(0,t.Z)({},m,{onChange:function(e){b||D(),c(e)},ref:C}))})},22988:function(e,n,r){r.d(n,{Z:function(){return t}});function t(){return(t=Object.assign?Object.assign.bind():function(e){for(var n=1;n{let{__scopeAlertDialog:n,...r}=e,t=p(n);return(0,d.jsx)(i.fC,{...t,...r,modal:!0})};h.displayName=c;var v=t.forwardRef((e,n)=>{let{__scopeAlertDialog:r,...t}=e,o=p(r);return(0,d.jsx)(i.xz,{...o,...t,ref:n})});v.displayName="AlertDialogTrigger";var g=e=>{let{__scopeAlertDialog:n,...r}=e,t=p(n);return(0,d.jsx)(i.h_,{...t,...r})};g.displayName="AlertDialogPortal";var y=t.forwardRef((e,n)=>{let{__scopeAlertDialog:r,...t}=e,o=p(r);return(0,d.jsx)(i.aV,{...o,...t,ref:n})});y.displayName="AlertDialogOverlay";var m="AlertDialogContent",[x,w]=s(m),M=t.forwardRef((e,n)=>{let{__scopeAlertDialog:r,children:o,...c}=e,s=p(r),f=t.useRef(null),h=(0,a.e)(n,f),v=t.useRef(null);return(0,d.jsx)(i.jm,{contentName:m,titleName:b,docsSlug:"alert-dialog",children:(0,d.jsx)(x,{scope:r,cancelRef:v,children:(0,d.jsxs)(i.VY,{role:"alertdialog",...s,...c,ref:h,onOpenAutoFocus:(0,u.M)(c.onOpenAutoFocus,e=>{var n;e.preventDefault(),null===(n=v.current)||void 0===n||n.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,d.jsx)(l.A4,{children:o}),(0,d.jsx)(P,{contentRef:f})]})})})});M.displayName=m;var b="AlertDialogTitle",k=t.forwardRef((e,n)=>{let{__scopeAlertDialog:r,...t}=e,o=p(r);return(0,d.jsx)(i.Dx,{...o,...t,ref:n})});k.displayName=b;var C="AlertDialogDescription",R=t.forwardRef((e,n)=>{let{__scopeAlertDialog:r,...t}=e,o=p(r);return(0,d.jsx)(i.dk,{...o,...t,ref:n})});R.displayName=C;var j=t.forwardRef((e,n)=>{let{__scopeAlertDialog:r,...t}=e,o=p(r);return(0,d.jsx)(i.x8,{...o,...t,ref:n})});j.displayName="AlertDialogAction";var D="AlertDialogCancel",_=t.forwardRef((e,n)=>{let{__scopeAlertDialog:r,...t}=e,{cancelRef:o}=w(D,r),u=p(r),l=(0,a.e)(n,o);return(0,d.jsx)(i.x8,{...u,...t,ref:l})});_.displayName=D;var P=e=>{let{contentRef:n}=e,r="`".concat(m,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(m,"` by passing a `").concat(C,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, 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 `").concat(m,"`. 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.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return t.useEffect(()=>{var e;document.getElementById(null===(e=n.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,n]),null},S=h,E=v,N=g,T=y,I=M,O=j,A=_,F=k,L=R},81622:function(e,n,r){r.d(n,{VY:function(){return eB},ck:function(){return eU},Uv:function(){return eH},fC:function(){return eK},xz:function(){return eW}});var t=r(2265),o=r(78149),a=r(1584),i=r(98324),u=r(91715),l=r(25171),d=r(90976),c=r(87513),s=r(53938),f=r(20589),p=r(80467),h=r(53201),v=r(25510),g=r(7715),y=r(31383),m=r(53398),x=r(71538),w=r(75137),M=r(78369),b=r(49418),k=r(57437),C=["Enter"," "],R=["ArrowUp","PageDown","End"],j=["ArrowDown","PageUp","Home",...R],D={ltr:[...C,"ArrowRight"],rtl:[...C,"ArrowLeft"]},_={ltr:["ArrowLeft"],rtl:["ArrowRight"]},P="Menu",[S,E,N]=(0,d.B)(P),[T,I]=(0,i.b)(P,[N,v.D7,m.Pc]),O=(0,v.D7)(),A=(0,m.Pc)(),[F,L]=T(P),[z,Z]=T(P),V=e=>{let{__scopeMenu:n,open:r=!1,children:o,dir:a,onOpenChange:i,modal:u=!0}=e,l=O(n),[d,s]=t.useState(null),f=t.useRef(!1),p=(0,w.W)(i),h=(0,c.gm)(a);return t.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}},[]),(0,k.jsx)(v.fC,{...l,children:(0,k.jsx)(F,{scope:n,open:r,onOpenChange:p,content:d,onContentChange:s,children:(0,k.jsx)(z,{scope:n,onClose:t.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:u,children:o})})})};V.displayName=P;var K=t.forwardRef((e,n)=>{let{__scopeMenu:r,...t}=e,o=O(r);return(0,k.jsx)(v.ee,{...o,...t,ref:n})});K.displayName="MenuAnchor";var W="MenuPortal",[H,B]=T(W,{forceMount:void 0}),U=e=>{let{__scopeMenu:n,forceMount:r,children:t,container:o}=e,a=L(W,n);return(0,k.jsx)(H,{scope:n,forceMount:r,children:(0,k.jsx)(y.z,{present:r||a.open,children:(0,k.jsx)(g.h,{asChild:!0,container:o,children:t})})})};U.displayName=W;var G="MenuContent",[q,Y]=T(G),X=t.forwardRef((e,n)=>{let r=B(G,e.__scopeMenu),{forceMount:t=r.forceMount,...o}=e,a=L(G,e.__scopeMenu),i=Z(G,e.__scopeMenu);return(0,k.jsx)(S.Provider,{scope:e.__scopeMenu,children:(0,k.jsx)(y.z,{present:t||a.open,children:(0,k.jsx)(S.Slot,{scope:e.__scopeMenu,children:i.modal?(0,k.jsx)($,{...o,ref:n}):(0,k.jsx)(J,{...o,ref:n})})})})}),$=t.forwardRef((e,n)=>{let r=L(G,e.__scopeMenu),i=t.useRef(null),u=(0,a.e)(n,i);return t.useEffect(()=>{let e=i.current;if(e)return(0,M.Ry)(e)},[]),(0,k.jsx)(Q,{...e,ref:u,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),J=t.forwardRef((e,n)=>{let r=L(G,e.__scopeMenu);return(0,k.jsx)(Q,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Q=t.forwardRef((e,n)=>{let{__scopeMenu:r,loop:i=!1,trapFocus:u,onOpenAutoFocus:l,onCloseAutoFocus:d,disableOutsidePointerEvents:c,onEntryFocus:h,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:M,onDismiss:C,disableOutsideScroll:D,..._}=e,P=L(G,r),S=Z(G,r),N=O(r),T=A(r),I=E(r),[F,z]=t.useState(null),V=t.useRef(null),K=(0,a.e)(n,V,P.onContentChange),W=t.useRef(0),H=t.useRef(""),B=t.useRef(0),U=t.useRef(null),Y=t.useRef("right"),X=t.useRef(0),$=D?b.Z:t.Fragment,J=D?{as:x.g7,allowPinchZoom:!0}:void 0,Q=e=>{var n,r;let t=H.current+e,o=I().filter(e=>!e.disabled),a=document.activeElement,i=null===(n=o.find(e=>e.ref.current===a))||void 0===n?void 0:n.textValue,u=function(e,n,r){var t;let o=n.length>1&&Array.from(n).every(e=>e===n[0])?n[0]:n,a=(t=Math.max(r?e.indexOf(r):-1,0),e.map((n,r)=>e[(t+r)%e.length]));1===o.length&&(a=a.filter(e=>e!==r));let i=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==r?i:void 0}(o.map(e=>e.textValue),t,i),l=null===(r=o.find(e=>e.textValue===u))||void 0===r?void 0:r.ref.current;!function e(n){H.current=n,window.clearTimeout(W.current),""!==n&&(W.current=window.setTimeout(()=>e(""),1e3))}(t),l&&setTimeout(()=>l.focus())};t.useEffect(()=>()=>window.clearTimeout(W.current),[]),(0,f.EW)();let ee=t.useCallback(e=>{var n,r,t;return Y.current===(null===(n=U.current)||void 0===n?void 0:n.side)&&!!(t=null===(r=U.current)||void 0===r?void 0:r.area)&&function(e,n){let{x:r,y:t}=e,o=!1;for(let e=0,a=n.length-1;et!=d>t&&r<(l-i)*(t-u)/(d-u)+i&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)},[]);return(0,k.jsx)(q,{scope:r,searchRef:H,onItemEnter:t.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:t.useCallback(e=>{var n;ee(e)||(null===(n=V.current)||void 0===n||n.focus(),z(null))},[ee]),onTriggerLeave:t.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:B,onPointerGraceIntentChange:t.useCallback(e=>{U.current=e},[]),children:(0,k.jsx)($,{...J,children:(0,k.jsx)(p.M,{asChild:!0,trapped:u,onMountAutoFocus:(0,o.M)(l,e=>{var n;e.preventDefault(),null===(n=V.current)||void 0===n||n.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,k.jsx)(s.XB,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:M,onDismiss:C,children:(0,k.jsx)(m.fC,{asChild:!0,...T,dir:S.dir,orientation:"vertical",loop:i,currentTabStopId:F,onCurrentTabStopIdChange:z,onEntryFocus:(0,o.M)(h,e=>{S.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,k.jsx)(v.VY,{role:"menu","aria-orientation":"vertical","data-state":eR(P.open),"data-radix-menu-content":"",dir:S.dir,...N,..._,ref:K,style:{outline:"none",..._.style},onKeyDown:(0,o.M)(_.onKeyDown,e=>{let n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,t=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&t&&Q(e.key));let o=V.current;if(e.target!==o||!j.includes(e.key))return;e.preventDefault();let a=I().filter(e=>!e.disabled).map(e=>e.ref.current);R.includes(e.key)&&a.reverse(),function(e){let n=document.activeElement;for(let r of e)if(r===n||(r.focus(),document.activeElement!==n))return}(a)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(W.current),H.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,e_(e=>{let n=e.target,r=X.current!==e.clientX;if(e.currentTarget.contains(n)&&r){let n=e.clientX>X.current?"right":"left";Y.current=n,X.current=e.clientX}}))})})})})})})});X.displayName=G;var ee=t.forwardRef((e,n)=>{let{__scopeMenu:r,...t}=e;return(0,k.jsx)(l.WV.div,{role:"group",...t,ref:n})});ee.displayName="MenuGroup";var en=t.forwardRef((e,n)=>{let{__scopeMenu:r,...t}=e;return(0,k.jsx)(l.WV.div,{...t,ref:n})});en.displayName="MenuLabel";var er="MenuItem",et="menu.itemSelect",eo=t.forwardRef((e,n)=>{let{disabled:r=!1,onSelect:i,...u}=e,d=t.useRef(null),c=Z(er,e.__scopeMenu),s=Y(er,e.__scopeMenu),f=(0,a.e)(n,d),p=t.useRef(!1);return(0,k.jsx)(ea,{...u,ref:f,disabled:r,onClick:(0,o.M)(e.onClick,()=>{let e=d.current;if(!r&&e){let n=new CustomEvent(et,{bubbles:!0,cancelable:!0});e.addEventListener(et,e=>null==i?void 0:i(e),{once:!0}),(0,l.jH)(e,n),n.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:n=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,n),p.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{var n;p.current||null===(n=e.currentTarget)||void 0===n||n.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let n=""!==s.searchRef.current;!r&&(!n||" "!==e.key)&&C.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eo.displayName=er;var ea=t.forwardRef((e,n)=>{let{__scopeMenu:r,disabled:i=!1,textValue:u,...d}=e,c=Y(er,r),s=A(r),f=t.useRef(null),p=(0,a.e)(n,f),[h,v]=t.useState(!1),[g,y]=t.useState("");return t.useEffect(()=>{let e=f.current;if(e){var n;y((null!==(n=e.textContent)&&void 0!==n?n:"").trim())}},[d.children]),(0,k.jsx)(S.ItemSlot,{scope:r,disabled:i,textValue:null!=u?u:g,children:(0,k.jsx)(m.ck,{asChild:!0,...s,focusable:!i,children:(0,k.jsx)(l.WV.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...d,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,e_(e=>{i?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,e_(e=>c.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>v(!0)),onBlur:(0,o.M)(e.onBlur,()=>v(!1))})})})}),ei=t.forwardRef((e,n)=>{let{checked:r=!1,onCheckedChange:t,...a}=e;return(0,k.jsx)(eh,{scope:e.__scopeMenu,checked:r,children:(0,k.jsx)(eo,{role:"menuitemcheckbox","aria-checked":ej(r)?"mixed":r,...a,ref:n,"data-state":eD(r),onSelect:(0,o.M)(a.onSelect,()=>null==t?void 0:t(!!ej(r)||!r),{checkForDefaultPrevented:!1})})})});ei.displayName="MenuCheckboxItem";var eu="MenuRadioGroup",[el,ed]=T(eu,{value:void 0,onValueChange:()=>{}}),ec=t.forwardRef((e,n)=>{let{value:r,onValueChange:t,...o}=e,a=(0,w.W)(t);return(0,k.jsx)(el,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,k.jsx)(ee,{...o,ref:n})})});ec.displayName=eu;var es="MenuRadioItem",ef=t.forwardRef((e,n)=>{let{value:r,...t}=e,a=ed(es,e.__scopeMenu),i=r===a.value;return(0,k.jsx)(eh,{scope:e.__scopeMenu,checked:i,children:(0,k.jsx)(eo,{role:"menuitemradio","aria-checked":i,...t,ref:n,"data-state":eD(i),onSelect:(0,o.M)(t.onSelect,()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,r)},{checkForDefaultPrevented:!1})})})});ef.displayName=es;var ep="MenuItemIndicator",[eh,ev]=T(ep,{checked:!1}),eg=t.forwardRef((e,n)=>{let{__scopeMenu:r,forceMount:t,...o}=e,a=ev(ep,r);return(0,k.jsx)(y.z,{present:t||ej(a.checked)||!0===a.checked,children:(0,k.jsx)(l.WV.span,{...o,ref:n,"data-state":eD(a.checked)})})});eg.displayName=ep;var ey=t.forwardRef((e,n)=>{let{__scopeMenu:r,...t}=e;return(0,k.jsx)(l.WV.div,{role:"separator","aria-orientation":"horizontal",...t,ref:n})});ey.displayName="MenuSeparator";var em=t.forwardRef((e,n)=>{let{__scopeMenu:r,...t}=e,o=O(r);return(0,k.jsx)(v.Eh,{...o,...t,ref:n})});em.displayName="MenuArrow";var[ex,ew]=T("MenuSub"),eM="MenuSubTrigger",eb=t.forwardRef((e,n)=>{let r=L(eM,e.__scopeMenu),i=Z(eM,e.__scopeMenu),u=ew(eM,e.__scopeMenu),l=Y(eM,e.__scopeMenu),d=t.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:s}=l,f={__scopeMenu:e.__scopeMenu},p=t.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return t.useEffect(()=>p,[p]),t.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),s(null)}},[c,s]),(0,k.jsx)(K,{asChild:!0,...f,children:(0,k.jsx)(ea,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":u.contentId,"data-state":eR(r.open),...e,ref:(0,a.F)(n,u.onTriggerChange),onClick:n=>{var t;null===(t=e.onClick)||void 0===t||t.call(e,n),e.disabled||n.defaultPrevented||(n.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,e_(n=>{l.onItemEnter(n),n.defaultPrevented||e.disabled||r.open||d.current||(l.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,e_(e=>{var n,t;p();let o=null===(n=r.content)||void 0===n?void 0:n.getBoundingClientRect();if(o){let n=null===(t=r.content)||void 0===t?void 0:t.dataset.side,a="right"===n,i=o[a?"left":"right"],u=o[a?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:i,y:o.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,n=>{let t=""!==l.searchRef.current;if(!e.disabled&&(!t||" "!==n.key)&&D[i.dir].includes(n.key)){var o;r.onOpenChange(!0),null===(o=r.content)||void 0===o||o.focus(),n.preventDefault()}})})})});eb.displayName=eM;var ek="MenuSubContent",eC=t.forwardRef((e,n)=>{let r=B(G,e.__scopeMenu),{forceMount:i=r.forceMount,...u}=e,l=L(G,e.__scopeMenu),d=Z(G,e.__scopeMenu),c=ew(ek,e.__scopeMenu),s=t.useRef(null),f=(0,a.e)(n,s);return(0,k.jsx)(S.Provider,{scope:e.__scopeMenu,children:(0,k.jsx)(y.z,{present:i||l.open,children:(0,k.jsx)(S.Slot,{scope:e.__scopeMenu,children:(0,k.jsx)(Q,{id:c.contentId,"aria-labelledby":c.triggerId,...u,ref:f,align:"start",side:"rtl"===d.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var n;d.isUsingKeyboardRef.current&&(null===(n=s.current)||void 0===n||n.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{d.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let n=e.currentTarget.contains(e.target),r=_[d.dir].includes(e.key);if(n&&r){var t;l.onOpenChange(!1),null===(t=c.trigger)||void 0===t||t.focus(),e.preventDefault()}})})})})})});function eR(e){return e?"open":"closed"}function ej(e){return"indeterminate"===e}function eD(e){return ej(e)?"indeterminate":e?"checked":"unchecked"}function e_(e){return n=>"mouse"===n.pointerType?e(n):void 0}eC.displayName=ek;var eP="DropdownMenu",[eS,eE]=(0,i.b)(eP,[I]),eN=I(),[eT,eI]=eS(eP),eO=e=>{let{__scopeDropdownMenu:n,children:r,dir:o,open:a,defaultOpen:i,onOpenChange:l,modal:d=!0}=e,c=eN(n),s=t.useRef(null),[f=!1,p]=(0,u.T)({prop:a,defaultProp:i,onChange:l});return(0,k.jsx)(eT,{scope:n,triggerId:(0,h.M)(),triggerRef:s,contentId:(0,h.M)(),open:f,onOpenChange:p,onOpenToggle:t.useCallback(()=>p(e=>!e),[p]),modal:d,children:(0,k.jsx)(V,{...c,open:f,onOpenChange:p,dir:o,modal:d,children:r})})};eO.displayName=eP;var eA="DropdownMenuTrigger",eF=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,disabled:t=!1,...i}=e,u=eI(eA,r),d=eN(r);return(0,k.jsx)(K,{asChild:!0,...d,children:(0,k.jsx)(l.WV.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...i,ref:(0,a.F)(n,u.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{t||0!==e.button||!1!==e.ctrlKey||(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!t&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eF.displayName=eA;var eL=e=>{let{__scopeDropdownMenu:n,...r}=e,t=eN(n);return(0,k.jsx)(U,{...t,...r})};eL.displayName="DropdownMenuPortal";var ez="DropdownMenuContent",eZ=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...a}=e,i=eI(ez,r),u=eN(r),l=t.useRef(!1);return(0,k.jsx)(X,{id:i.contentId,"aria-labelledby":i.triggerId,...u,...a,ref:n,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var n;l.current||null===(n=i.triggerRef.current)||void 0===n||n.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let n=e.detail.originalEvent,r=0===n.button&&!0===n.ctrlKey,t=2===n.button||r;(!i.modal||t)&&(l.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)"}})});eZ.displayName=ez,t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(ee,{...o,...t,ref:n})}).displayName="DropdownMenuGroup",t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(en,{...o,...t,ref:n})}).displayName="DropdownMenuLabel";var eV=t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(eo,{...o,...t,ref:n})});eV.displayName="DropdownMenuItem",t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(ei,{...o,...t,ref:n})}).displayName="DropdownMenuCheckboxItem",t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(ec,{...o,...t,ref:n})}).displayName="DropdownMenuRadioGroup",t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(ef,{...o,...t,ref:n})}).displayName="DropdownMenuRadioItem",t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(eg,{...o,...t,ref:n})}).displayName="DropdownMenuItemIndicator",t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(ey,{...o,...t,ref:n})}).displayName="DropdownMenuSeparator",t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(em,{...o,...t,ref:n})}).displayName="DropdownMenuArrow",t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(eb,{...o,...t,ref:n})}).displayName="DropdownMenuSubTrigger",t.forwardRef((e,n)=>{let{__scopeDropdownMenu:r,...t}=e,o=eN(r);return(0,k.jsx)(eC,{...o,...t,ref:n,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)"}})}).displayName="DropdownMenuSubContent";var eK=eO,eW=eF,eH=eL,eB=eZ,eU=eV},79512:function(e,n,r){r.d(n,{F:function(){return i}});var t=r(2265),o=t.createContext(void 0),a={setTheme:e=>{},themes:[]},i=()=>{var e;return null!=(e=t.useContext(o))?e:a}}}]);