1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[299],{7617:(e,t,r)=>{r.d(t,{UC:()=>ey,C1:()=>ew,q7:()=>eh,N_:()=>eg,B8:()=>ev,bL:()=>ep,l9:()=>em,LM:()=>ex});var n=r(11180),o=r(62493),a=r(36104),i=r(54435),l=r(72248),u=r(91309),s=r(50318),c=r(63225),d=r(72882),f=r(20417),p=r(80449),v=r(5883),h=r(45925),m=r(12017),g=r(95296),w=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),y=n.forwardRef((e,t)=>(0,g.jsx)(l.sG.span,{...e,ref:t,style:{...w,...e.style}}));y.displayName="VisuallyHidden";var x="NavigationMenu",[b,R,C]=(0,p.N)(x),[j,M,E]=(0,p.N)(x),[N,D]=(0,a.A)(x,[C,E]),[S,A]=N(x),[I,k]=N(x),P=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:o,onValueChange:a,defaultValue:i,delayDuration:d=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:v,...h}=e,[m,w]=n.useState(null),y=(0,s.s)(t,e=>w(e)),b=(0,c.jH)(v),R=n.useRef(0),C=n.useRef(0),j=n.useRef(0),[M,E]=n.useState(!0),[N,D]=(0,u.i)({prop:o,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(j.current),t&&E(!1)):(window.clearTimeout(j.current),j.current=window.setTimeout(()=>E(!0),f)),null==a||a(e)},defaultProp:null!=i?i:"",caller:x}),S=n.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>D(""),150)},[D]),A=n.useCallback(e=>{window.clearTimeout(C.current),D(e)},[D]),I=n.useCallback(e=>{N===e?window.clearTimeout(C.current):R.current=window.setTimeout(()=>{window.clearTimeout(C.current),D(e)},d)},[N,D,d]);return n.useEffect(()=>()=>{window.clearTimeout(R.current),window.clearTimeout(C.current),window.clearTimeout(j.current)},[]),(0,g.jsx)(K,{scope:r,isRootMenu:!0,value:N,dir:b,orientation:p,rootNavigationMenu:m,onTriggerEnter:e=>{window.clearTimeout(R.current),M?I(e):A(e)},onTriggerLeave:()=>{window.clearTimeout(R.current),S()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:S,onItemSelect:e=>{D(t=>t===e?"":e)},onItemDismiss:()=>D(""),children:(0,g.jsx)(l.sG.nav,{"aria-label":"Main","data-orientation":p,dir:b,...h,ref:y})})});P.displayName=x;var T="NavigationMenuSub";n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,c=A(T,r),[d,f]=(0,u.i)({prop:n,onChange:o,defaultProp:null!=a?a:"",caller:T});return(0,g.jsx)(K,{scope:r,isRootMenu:!1,value:d,dir:c.dir,orientation:i,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,g.jsx)(l.sG.div,{"data-orientation":i,...s,ref:t})})}).displayName=T;var K=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:o,dir:a,orientation:i,children:l,value:u,onItemSelect:s,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:v,onContentLeave:h}=e,[w,y]=n.useState(null),[x,R]=n.useState(new Map),[C,j]=n.useState(null);return(0,g.jsx)(S,{scope:t,isRootMenu:r,rootNavigationMenu:o,value:u,previousValue:function(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(u),baseId:(0,f.B)(),dir:a,orientation:i,viewport:w,onViewportChange:y,indicatorTrack:C,onIndicatorTrackChange:j,onTriggerEnter:(0,m.c)(d),onTriggerLeave:(0,m.c)(p),onContentEnter:(0,m.c)(v),onContentLeave:(0,m.c)(h),onItemSelect:(0,m.c)(s),onItemDismiss:(0,m.c)(c),onViewportContentChange:n.useCallback((e,t)=>{R(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:n.useCallback(e=>{R(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,g.jsx)(b.Provider,{scope:t,children:(0,g.jsx)(I,{scope:t,items:x,children:l})})})},_="NavigationMenuList",O=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=A(_,r),a=(0,g.jsx)(l.sG.ul,{"data-orientation":o.orientation,...n,ref:t});return(0,g.jsx)(l.sG.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,g.jsx)(b.Slot,{scope:r,children:o.isRootMenu?(0,g.jsx)(en,{asChild:!0,children:a}):a})})});O.displayName=_;var L="NavigationMenuItem",[F,G]=N(L),z=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:o,...a}=e,i=(0,f.B)(),u=n.useRef(null),s=n.useRef(null),c=n.useRef(null),d=n.useRef(()=>{}),p=n.useRef(!1),v=n.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(u.current){d.current();let t=ei(u.current);t.length&&el("start"===e?t:t.reverse())}},[]),h=n.useCallback(()=>
1{if(u.current){let e=ei(u.current);e.length&&(d.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,g.jsx)(F,{scope:r,value:o||i||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:u,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:h,onContentFocusOutside:h,children:(0,g.jsx)(l.sG.li,{...a,ref:t})})});z.displayName=L;var V="NavigationMenuTrigger",U=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,disabled:o,...a}=e,u=A(V,e.__scopeNavigationMenu),c=G(V,e.__scopeNavigationMenu),d=n.useRef(null),f=(0,s.s)(d,c.triggerRef,t),p=ec(u.baseId,c.value),v=ed(u.baseId,c.value),h=n.useRef(!1),m=n.useRef(!1),w=c.value===u.value;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(b.ItemSlot,{scope:r,value:c.value,children:(0,g.jsx)(ea,{asChild:!0,children:(0,g.jsx)(l.sG.button,{id:p,disabled:o,"data-disabled":o?"":void 0,"data-state":es(w),"aria-expanded":w,"aria-controls":v,...a,ref:f,onPointerEnter:(0,i.mK)(e.onPointerEnter,()=>{m.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,i.mK)(e.onPointerMove,ef(()=>{o||m.current||c.wasEscapeCloseRef.current||h.current||(u.onTriggerEnter(c.value),h.current=!0)})),onPointerLeave:(0,i.mK)(e.onPointerLeave,ef(()=>{o||(u.onTriggerLeave(),h.current=!1)})),onClick:(0,i.mK)(e.onClick,()=>{u.onItemSelect(c.value),m.current=w}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===u.dir?"ArrowLeft":"ArrowRight"}[u.orientation];w&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),w&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(y,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,r=e.relatedTarget,n=r===d.current,o=null==t?void 0:t.contains(r);(n||!o)&&c.onFocusProxyEnter(n?"start":"end")}}),u.viewport&&(0,g.jsx)("span",{"aria-owns":v})]})]})});U.displayName=V;var B="navigationMenu.linkSelect",H=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,active:n,onSelect:o,...a}=e;return(0,g.jsx)(ea,{asChild:!0,children:(0,g.jsx)(l.sG.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...a,ref:t,onClick:(0,i.mK)(e.onClick,e=>{let t=e.target,r=new CustomEvent(B,{bubbles:!0,cancelable:!0});if(t.addEventListener(B,e=>null==o?void 0:o(e),{once:!0}),(0,l.hO)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(X,{bubbles:!0,cancelable:!0});(0,l.hO)(t,e)}},{checkForDefaultPrevented:!1})})})});H.displayName="NavigationMenuLink";var W="NavigationMenuIndicator",q=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=A(W,e.__scopeNavigationMenu),i=!!a.value;return a.indicatorTrack?o.createPortal((0,g.jsx)(d.C,{present:r||i,children:(0,g.jsx)(Y,{...n,ref:t})}),a.indicatorTrack):null});q.displayName=W;var Y=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...o}=e,a=A(W,r),i=R(r),[u,s]=n.useState(null),[c,d]=n.useState(null),f="horizontal"===a.orientation,p=!!a.value;n.useEffect(()=>{var e;let t=null==(e=i().find(e=>e.value===a.value))?void 0:e.ref.current;t&&s(t)},[i,a.value]);let v=()=>{u&&d({size:f?u.offsetWidth:u.offsetHeight,offset:f?u.offsetLeft:u.offsetTop})};return eu(u,v),eu(a.indicatorTrack,v),c?(0,g.jsx)(l.sG.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":a.orientation,...o,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:"translateX(".concat(c.offset,"px)")}:{top:0,height:c.size+"px",transform:"translateY(".concat(c.offset,"px)")},...o.style}}):null}),Z="NavigationMenuContent",$=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=A(Z,e.__scopeNavigationMenu),a=G(Z,e.__scopeNavigationMenu),l=(0,s.s)(a.contentRef,t),u=a.value===o.value,c={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...n};return o.viewport?(0,g.jsx)(J,{forceMount:r,...c,ref:l}):(0,g.jsx)(d.C,{present:r||u,children:(0,g.jsx)(Q,{"data-state":es(u),...c,ref:l,onPointerEnter:(0,i.mK)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,i.mK)(e.onPointerLeave,ef(o.onContentLeave)),style:{pointerEvents:!u&&o.isRootMenu?"none":void 0,...c.style}})})});$.displayName=Z;var J=n.forwardRef((e,t)=>
1{let{onViewportContentChange:r,onViewportContentRemove:n}=A(Z,e.__scopeNavigationMenu);return(0,h.N)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,h.N)(()=>()=>n(e.value),[e.value,n]),null}),X="navigationMenu.rootContentDismiss",Q=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,value:o,triggerRef:a,focusProxyRef:l,wasEscapeCloseRef:u,onRootContentClose:c,onContentFocusOutside:d,...f}=e,p=A(Z,r),h=n.useRef(null),m=(0,s.s)(h,t),w=ec(p.baseId,o),y=ed(p.baseId,o),x=R(r),b=n.useRef(null),{onItemDismiss:C}=p;n.useEffect(()=>{let e=h.current;if(p.isRootMenu&&e){let t=()=>{var t;C(),c(),e.contains(document.activeElement)&&(null==(t=a.current)||t.focus())};return e.addEventListener(X,t),()=>e.removeEventListener(X,t)}},[p.isRootMenu,e.value,a,C,c]);let j=n.useMemo(()=>{let e=x().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),r=e.indexOf(p.previousValue),n=o===p.value,a=r===e.indexOf(o);if(!n&&!a)return b.current;let i=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(a&&-1!==t)return t>r?"to-start":"to-end"}return null})();return b.current=i,i},[p.previousValue,p.value,p.dir,x,o]);return(0,g.jsx)(en,{asChild:!0,children:(0,g.jsx)(v.qW,{id:y,"aria-labelledby":w,"data-motion":j,"data-orientation":p.orientation,...f,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(X,{bubbles:!0,cancelable:!0});null==(e=h.current)||e.dispatchEvent(t)},onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{var t;d();let r=e.target;(null==(t=p.rootNavigationMenu)?void 0:t.contains(r))&&e.preventDefault()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{var t;let r=e.target,n=x().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(r)}),o=p.isRootMenu&&(null==(t=p.viewport)?void 0:t.contains(r));(n||o||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ei(e.currentTarget),n=document.activeElement,o=t.findIndex(e=>e===n);if(el(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length)))e.preventDefault();else{var r;null==(r=l.current)||r.focus()}}}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{u.current=!0})})})}),ee="NavigationMenuViewport",et=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=!!A(ee,e.__scopeNavigationMenu).value;return(0,g.jsx)(d.C,{present:r||o,children:(0,g.jsx)(er,{...n,ref:t})})});et.displayName=ee;var er=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,children:o,...a}=e,u=A(ee,r),c=(0,s.s)(t,u.onViewportChange),f=k(Z,e.__scopeNavigationMenu),[p,v]=n.useState(null),[h,m]=n.useState(null),w=p?(null==p?void 0:p.width)+"px":void 0,y=p?(null==p?void 0:p.height)+"px":void 0,x=!!u.value,b=x?u.value:u.previousValue;return eu(h,()=>{h&&v({width:h.offsetWidth,height:h.offsetHeight})}),(0,g.jsx)(l.sG.div,{"data-state":es(x),"data-orientation":u.orientation,...a,ref:c,style:{pointerEvents:!x&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":y,...a.style},onPointerEnter:(0,i.mK)(e.onPointerEnter,u.onContentEnter),onPointerLeave:(0,i.mK)(e.onPointerLeave,ef(u.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:r,forceMount:n,...o}]=e,a=b===t;return(0,g.jsx)(d.C,{present:n||a,children:(0,g.jsx)(Q,{...o,ref:(0,s.t)(r,e=>{a&&e&&m(e)})})},t)})})}),en=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=A("FocusGroup",r);return(0,g.jsx)(j.Provider,{scope:r,children:(0,g.jsx)(j.Slot,{scope:r,children:(0,g.jsx)(l.sG.div,{dir:o.dir,...n,ref:t})})})}),eo=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ea=n.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=M(r),a=A("FocusGroupItem",r);return(0,g.jsx)(j.ItemSlot,{scope:r,children:(0,g.jsx)(l.sG.button,{...n,ref:t,onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if(["Home","End",...eo].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),eo.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>el(t)),e.preventDefault()}})})})});function ei(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function el(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function eu(e,t){let r=(0,m.c)(t);(0,h.N)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function es(e){return e?"open":"closed"}function ec(e,t){return"".concat(e,"-trigger-").concat(t)}function ed(e,t){return"".concat(e,"-content-").concat(t)}function ef(e){return t=>
1"mouse"===t.pointerType?e(t):void 0}var ep=P,ev=O,eh=z,em=U,eg=H,ew=q,ey=$,ex=et},13065:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(64454).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},14299:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(64454).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},17891:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(64454).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},27159:(e,t,r)=>{r.d(t,{UC:()=>K,VY:()=>F,ZD:()=>O,ZL:()=>P,bL:()=>I,hE:()=>L,hJ:()=>T,l9:()=>k,rc:()=>_});var n=r(11180),o=r(36104),a=r(50318),i=r(75344),l=r(54435),u=r(97182),s=r(95296),c="AlertDialog",[d,f]=(0,o.A)(c,[i.Hs]),p=(0,i.Hs)(),v=e=>{let{__scopeAlertDialog:t,...r}=e,n=p(t);return(0,s.jsx)(i.bL,{...n,...r,modal:!0})};v.displayName=c;var h=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=p(r);return(0,s.jsx)(i.l9,{...o,...n,ref:t})});h.displayName="AlertDialogTrigger";var m=e=>{let{__scopeAlertDialog:t,...r}=e,n=p(t);return(0,s.jsx)(i.ZL,{...n,...r})};m.displayName="AlertDialogPortal";var g=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=p(r);return(0,s.jsx)(i.hJ,{...o,...n,ref:t})});g.displayName="AlertDialogOverlay";var w="AlertDialogContent",[y,x]=d(w),b=(0,u.Dc)("AlertDialogContent"),R=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:o,...u}=e,c=p(r),d=n.useRef(null),f=(0,a.s)(t,d),v=n.useRef(null);return(0,s.jsx)(i.G$,{contentName:w,titleName:C,docsSlug:"alert-dialog",children:(0,s.jsx)(y,{scope:r,cancelRef:v,children:(0,s.jsxs)(i.UC,{role:"alertdialog",...c,...u,ref:f,onOpenAutoFocus:(0,l.mK)(u.onOpenAutoFocus,e=>{var t;e.preventDefault(),null==(t=v.current)||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,s.jsx)(b,{children:o}),(0,s.jsx)(A,{contentRef:d})]})})})});R.displayName=w;var C="AlertDialogTitle",j=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=p(r);return(0,s.jsx)(i.hE,{...o,...n,ref:t})});j.displayName=C;var M="AlertDialogDescription",E=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=p(r);return(0,s.jsx)(i.VY,{...o,...n,ref:t})});E.displayName=M;var N=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,o=p(r);return(0,s.jsx)(i.bm,{...o,...n,ref:t})});N.displayName="AlertDialogAction";var D="AlertDialogCancel",S=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=x(D,r),l=p(r),u=(0,a.s)(t,o);return(0,s.jsx)(i.bm,{...l,...n,ref:u})});S.displayName=D;var A=e=>{let{contentRef:t}=e,r="`".concat(w,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(w,"` by passing a `").concat(M,"` 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(w,"`. 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 n.useEffect(()=>{var e;document.getElementById(null==(e=t.current)?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},I=v,k=h,P=m,T=g,K=R,_=N,O=S,L=j,F=E},27367:(e,t,r)=>{var n=r(11180),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,i=n.useEffect,l=n.useLayoutEffect,u=n.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return l(function(){o.value=r,o.getSnapshot=t,s(o)&&c({inst:o})},[e,r,t]),i(function(){return s(o)&&c({inst:o}),e(function(){s(o)&&c({inst:o})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},29278:(e,t,r)=>{r.d(t,{H_:()=>tf,UC:()=>tu,YJ:()=>ts,q7:()=>td,VF:()=>th,JU:()=>tc,ZL:()=>tl,z6:()=>tp,hN:()=>tv,bL:()=>ta,wv:()=>tm,Pb:()=>tg,G5:()=>ty,ZP:()=>tw,l9:()=>ti});var n=r(11180),o=r(54435),a=r(50318),i=r(36104),l=r(91309),u=r(72248),s=r(80449),c=r(63225),d=r(5883),f=r(7759),p=r(31820),v=r(20417),h=r(34262),m=r(15104),g=r(72882),w=r(12017),y=r(95296),x="rovingFocusGroup.onEntryFocus",b={bubbles:!1,cancelable:!0},R="RovingFocusGroup",[C,j,M]=(0,s.N)(R),[E,N]=(0,i.A)(R,[M]),[D,S]=E(R),A=n.forwardRef((e,t)=>
1(0,y.jsx)(C.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,y.jsx)(C.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,y.jsx)(I,{...e,ref:t})})}));A.displayName=R;var I=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:v,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...g}=e,C=n.useRef(null),M=(0,a.s)(t,C),E=(0,c.jH)(d),[N,S]=(0,l.i)({prop:f,defaultProp:null!=p?p:null,onChange:v,caller:R}),[A,I]=n.useState(!1),k=(0,w.c)(h),P=j(r),T=n.useRef(!1),[_,O]=n.useState(0);return n.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(x,k),()=>e.removeEventListener(x,k)},[k]),(0,y.jsx)(D,{scope:r,orientation:i,dir:E,loop:s,currentTabStopId:N,onItemFocus:n.useCallback(e=>S(e),[S]),onItemShiftTab:n.useCallback(()=>I(!0),[]),onFocusableItemAdd:n.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>O(e=>e-1),[]),children:(0,y.jsx)(u.sG.div,{tabIndex:A||0===_?-1:0,"data-orientation":i,...g,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(x,b);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);K([e.find(e=>e.active),e.find(e=>e.id===N),...e].filter(Boolean).map(e=>e.ref.current),m)}}T.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>I(!1))})})}),k="RovingFocusGroupItem",P=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:i=!1,tabStopId:l,children:s,...c}=e,d=(0,v.B)(),f=l||d,p=S(k,r),h=p.currentTabStopId===f,m=j(r),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:x}=p;return n.useEffect(()=>{if(a)return g(),()=>w()},[a,g,w]),(0,y.jsx)(C.ItemSlot,{scope:r,id:f,focusable:a,active:i,children:(0,y.jsx)(u.sG.span,{tabIndex:h?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{a?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return T[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=p.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>K(r))}}),children:"function"==typeof s?s({isCurrentTabStop:h,hasTabStop:null!=x}):s})})});P.displayName=k;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function K(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var _=r(97182),O=r(2679),L=r(21270),F=["Enter"," "],G=["ArrowUp","PageDown","End"],z=["ArrowDown","PageUp","Home",...G],V={ltr:[...F,"ArrowRight"],rtl:[...F,"ArrowLeft"]},U={ltr:["ArrowLeft"],rtl:["ArrowRight"]},B="Menu",[H,W,q]=(0,s.N)(B),[Y,Z]=(0,i.A)(B,[q,h.Bk,N]),$=(0,h.Bk)(),J=N(),[X,Q]=Y(B),[ee,et]=Y(B),er=e=>{let{__scopeMenu:t,open:r=!1,children:o,dir:a,onOpenChange:i,modal:l=!0}=e,u=$(t),[s,d]=n.useState(null),f=n.useRef(!1),p=(0,w.c)(i),v=(0,c.jH)(a);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,y.jsx)(h.bL,{...u,children:(0,y.jsx)(X,{scope:t,open:r,onOpenChange:p,content:s,onContentChange:d,children:(0,y.jsx)(ee,{scope:t,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:v,modal:l,children:o})})})};er.displayName=B;var en=n.forwardRef((e,t)=>
1{let{__scopeMenu:r,...n}=e,o=$(r);return(0,y.jsx)(h.Mz,{...o,...n,ref:t})});en.displayName="MenuAnchor";var eo="MenuPortal",[ea,ei]=Y(eo,{forceMount:void 0}),el=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=Q(eo,t);return(0,y.jsx)(ea,{scope:t,forceMount:r,children:(0,y.jsx)(g.C,{present:r||a.open,children:(0,y.jsx)(m.Z,{asChild:!0,container:o,children:n})})})};el.displayName=eo;var eu="MenuContent",[es,ec]=Y(eu),ed=n.forwardRef((e,t)=>{let r=ei(eu,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Q(eu,e.__scopeMenu),i=et(eu,e.__scopeMenu);return(0,y.jsx)(H.Provider,{scope:e.__scopeMenu,children:(0,y.jsx)(g.C,{present:n||a.open,children:(0,y.jsx)(H.Slot,{scope:e.__scopeMenu,children:i.modal?(0,y.jsx)(ef,{...o,ref:t}):(0,y.jsx)(ep,{...o,ref:t})})})})}),ef=n.forwardRef((e,t)=>{let r=Q(eu,e.__scopeMenu),i=n.useRef(null),l=(0,a.s)(t,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,O.Eq)(e)},[]),(0,y.jsx)(eh,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ep=n.forwardRef((e,t)=>{let r=Q(eu,e.__scopeMenu);return(0,y.jsx)(eh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),ev=(0,_.TL)("MenuContent.ScrollLock"),eh=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:i=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:v,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:x,onDismiss:b,disableOutsideScroll:R,...C}=e,j=Q(eu,r),M=et(eu,r),E=$(r),N=J(r),D=W(r),[S,I]=n.useState(null),k=n.useRef(null),P=(0,a.s)(t,k,j.onContentChange),T=n.useRef(0),K=n.useRef(""),_=n.useRef(0),O=n.useRef(null),F=n.useRef("right"),V=n.useRef(0),U=R?L.A:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(T.current),[]),(0,f.Oh)();let B=n.useCallback(e=>{var t,r;return F.current===(null==(t=O.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e],l=t[a],u=i.x,s=i.y,c=l.x,d=l.y;s>n!=d>n&&r<(c-u)*(n-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(r=O.current)?void 0:r.area)},[]);return(0,y.jsx)(es,{scope:r,searchRef:K,onItemEnter:n.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:n.useCallback(e=>{var t;B(e)||(null==(t=k.current)||t.focus(),I(null))},[B]),onTriggerLeave:n.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:_,onPointerGraceIntentChange:n.useCallback(e=>{O.current=e},[]),children:(0,y.jsx)(U,{...R?{as:ev,allowPinchZoom:!0}:void 0,children:(0,y.jsx)(p.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.mK)(u,e=>{var t;e.preventDefault(),null==(t=k.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,y.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:x,onDismiss:b,children:(0,y.jsx)(A,{asChild:!0,...N,dir:M.dir,orientation:"vertical",loop:i,currentTabStopId:S,onCurrentTabStopIdChange:I,onEntryFocus:(0,o.mK)(v,e=>{M.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,y.jsx)(h.UC,{role:"menu","aria-orientation":"vertical","data-state":eU(j.open),"data-radix-menu-content":"",dir:M.dir,...E,...C,ref:P,style:{outline:"none",...C.style},onKeyDown:(0,o.mK)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&(e=>{var t,r;let n=K.current+e,o=D().filter(e=>!e.disabled),a=document.activeElement,i=null==(t=o.find(e=>
1e.ref.current===a))?void 0:t.textValue,l=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,i=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(i=i.filter(e=>e!==r));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}(o.map(e=>e.textValue),n,i),u=null==(r=o.find(e=>e.textValue===l))?void 0:r.ref.current;!function e(t){K.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())})(e.key));let o=k.current;if(e.target!==o||!z.includes(e.key))return;e.preventDefault();let a=D().filter(e=>!e.disabled).map(e=>e.ref.current);G.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,o.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),K.current="")}),onPointerMove:(0,o.mK)(e.onPointerMove,eW(e=>{let t=e.target,r=V.current!==e.clientX;e.currentTarget.contains(t)&&r&&(F.current=e.clientX>V.current?"right":"left",V.current=e.clientX)}))})})})})})})});ed.displayName=eu;var em=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,y.jsx)(u.sG.div,{role:"group",...n,ref:t})});em.displayName="MenuGroup";var eg=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,y.jsx)(u.sG.div,{...n,ref:t})});eg.displayName="MenuLabel";var ew="MenuItem",ey="menu.itemSelect",ex=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:i,...l}=e,s=n.useRef(null),c=et(ew,e.__scopeMenu),d=ec(ew,e.__scopeMenu),f=(0,a.s)(t,s),p=n.useRef(!1);return(0,y.jsx)(eb,{...l,ref:f,disabled:r,onClick:(0,o.mK)(e.onClick,()=>{let e=s.current;if(!r&&e){let t=new CustomEvent(ey,{bubbles:!0,cancelable:!0});e.addEventListener(ey,e=>null==i?void 0:i(e),{once:!0}),(0,u.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),p.current=!0},onPointerUp:(0,o.mK)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;r||t&&" "===e.key||F.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ex.displayName=ew;var eb=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:i=!1,textValue:l,...s}=e,c=ec(ew,r),d=J(r),f=n.useRef(null),p=(0,a.s)(t,f),[v,h]=n.useState(!1),[m,g]=n.useState("");return n.useEffect(()=>{let e=f.current;if(e){var t;g((null!=(t=e.textContent)?t:"").trim())}},[s.children]),(0,y.jsx)(H.ItemSlot,{scope:r,disabled:i,textValue:null!=l?l:m,children:(0,y.jsx)(P,{asChild:!0,...d,focusable:!i,children:(0,y.jsx)(u.sG.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:p,onPointerMove:(0,o.mK)(e.onPointerMove,eW(e=>{i?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,eW(e=>c.onItemLeave(e))),onFocus:(0,o.mK)(e.onFocus,()=>h(!0)),onBlur:(0,o.mK)(e.onBlur,()=>h(!1))})})})}),eR=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...a}=e;return(0,y.jsx)(eA,{scope:e.__scopeMenu,checked:r,children:(0,y.jsx)(ex,{role:"menuitemcheckbox","aria-checked":eB(r)?"mixed":r,...a,ref:t,"data-state":eH(r),onSelect:(0,o.mK)(a.onSelect,()=>null==n?void 0:n(!!eB(r)||!r),{checkForDefaultPrevented:!1})})})});eR.displayName="MenuCheckboxItem";var eC="MenuRadioGroup",[ej,eM]=Y(eC,{value:void 0,onValueChange:()=>{}}),eE=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,a=(0,w.c)(n);return(0,y.jsx)(ej,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,y.jsx)(em,{...o,ref:t})})});eE.displayName=eC;var eN="MenuRadioItem",eD=n.forwardRef((e,t)=>{let{value:r,...n}=e,a=eM(eN,e.__scopeMenu),i=r===a.value;return(0,y.jsx)(eA,{scope:e.__scopeMenu,checked:i,children:(0,y.jsx)(ex,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":eH(i),onSelect:(0,o.mK)(n.onSelect,()=>{var e;return null==(e=a.onValueChange)?void 0:e.call(a,r)}
1,{checkForDefaultPrevented:!1})})})});eD.displayName=eN;var eS="MenuItemIndicator",[eA,eI]=Y(eS,{checked:!1}),ek=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,a=eI(eS,r);return(0,y.jsx)(g.C,{present:n||eB(a.checked)||!0===a.checked,children:(0,y.jsx)(u.sG.span,{...o,ref:t,"data-state":eH(a.checked)})})});ek.displayName=eS;var eP=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,y.jsx)(u.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eP.displayName="MenuSeparator";var eT=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=$(r);return(0,y.jsx)(h.i3,{...o,...n,ref:t})});eT.displayName="MenuArrow";var eK="MenuSub",[e_,eO]=Y(eK),eL=e=>{let{__scopeMenu:t,children:r,open:o=!1,onOpenChange:a}=e,i=Q(eK,t),l=$(t),[u,s]=n.useState(null),[c,d]=n.useState(null),f=(0,w.c)(a);return n.useEffect(()=>(!1===i.open&&f(!1),()=>f(!1)),[i.open,f]),(0,y.jsx)(h.bL,{...l,children:(0,y.jsx)(X,{scope:t,open:o,onOpenChange:f,content:c,onContentChange:d,children:(0,y.jsx)(e_,{scope:t,contentId:(0,v.B)(),triggerId:(0,v.B)(),trigger:u,onTriggerChange:s,children:r})})})};eL.displayName=eK;var eF="MenuSubTrigger",eG=n.forwardRef((e,t)=>{let r=Q(eF,e.__scopeMenu),i=et(eF,e.__scopeMenu),l=eO(eF,e.__scopeMenu),u=ec(eF,e.__scopeMenu),s=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,y.jsx)(en,{asChild:!0,...f,children:(0,y.jsx)(eb,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":eU(r.open),...e,ref:(0,a.t)(t,l.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,o.mK)(e.onPointerMove,eW(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,eW(e=>{var t,n;p();let o=null==(t=r.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(n=r.content)?void 0:n.dataset.side,a="right"===t,i=o[a?"left":"right"],l=o[a?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:i,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.mK)(e.onKeyDown,t=>{let n=""!==u.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&V[i.dir].includes(t.key)){var o;r.onOpenChange(!0),null==(o=r.content)||o.focus(),t.preventDefault()}})})})});eG.displayName=eF;var ez="MenuSubContent",eV=n.forwardRef((e,t)=>{let r=ei(eu,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,u=Q(eu,e.__scopeMenu),s=et(eu,e.__scopeMenu),c=eO(ez,e.__scopeMenu),d=n.useRef(null),f=(0,a.s)(t,d);return(0,y.jsx)(H.Provider,{scope:e.__scopeMenu,children:(0,y.jsx)(g.C,{present:i||u.open,children:(0,y.jsx)(H.Slot,{scope:e.__scopeMenu,children:(0,y.jsx)(eh,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:f,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.mK)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=U[s.dir].includes(e.key);if(t&&r){var n;u.onOpenChange(!1),null==(n=c.trigger)||n.focus(),e.preventDefault()}})})})})})});function eU(e){return e?"open":"closed"}function eB(e){return"indeterminate"===e}function eH(e){return eB(e)?"indeterminate":e?"checked":"unchecked"}function eW(e){return t=>
1"mouse"===t.pointerType?e(t):void 0}eV.displayName=ez;var eq="DropdownMenu",[eY,eZ]=(0,i.A)(eq,[Z]),e$=Z(),[eJ,eX]=eY(eq),eQ=e=>{let{__scopeDropdownMenu:t,children:r,dir:o,open:a,defaultOpen:i,onOpenChange:u,modal:s=!0}=e,c=e$(t),d=n.useRef(null),[f,p]=(0,l.i)({prop:a,defaultProp:null!=i&&i,onChange:u,caller:eq});return(0,y.jsx)(eJ,{scope:t,triggerId:(0,v.B)(),triggerRef:d,contentId:(0,v.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,y.jsx)(er,{...c,open:f,onOpenChange:p,dir:o,modal:s,children:r})})};eQ.displayName=eq;var e0="DropdownMenuTrigger",e1=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,l=eX(e0,r),s=e$(r);return(0,y.jsx)(en,{asChild:!0,...s,children:(0,y.jsx)(u.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...i,ref:(0,a.t)(t,l.triggerRef),onPointerDown:(0,o.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});e1.displayName=e0;var e2=e=>{let{__scopeDropdownMenu:t,...r}=e,n=e$(t);return(0,y.jsx)(el,{...n,...r})};e2.displayName="DropdownMenuPortal";var e9="DropdownMenuContent",e4=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,i=eX(e9,r),l=e$(r),u=n.useRef(!1);return(0,y.jsx)(ed,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...a,ref:t,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=i.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!i.modal||n)&&(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)"}})});e4.displayName=e9;var e5=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(em,{...o,...n,ref:t})});e5.displayName="DropdownMenuGroup";var e3=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(eg,{...o,...n,ref:t})});e3.displayName="DropdownMenuLabel";var e6=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(ex,{...o,...n,ref:t})});e6.displayName="DropdownMenuItem";var e7=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(eR,{...o,...n,ref:t})});e7.displayName="DropdownMenuCheckboxItem";var e8=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(eE,{...o,...n,ref:t})});e8.displayName="DropdownMenuRadioGroup";var te=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(eD,{...o,...n,ref:t})});te.displayName="DropdownMenuRadioItem";var tt=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(ek,{...o,...n,ref:t})});tt.displayName="DropdownMenuItemIndicator";var tr=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(eP,{...o,...n,ref:t})});tr.displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(eT,{...o,...n,ref:t})}).displayName="DropdownMenuArrow";var tn=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(eG,{...o,...n,ref:t})});tn.displayName="DropdownMenuSubTrigger";var to=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e$(r);return(0,y.jsx)(eV,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});to.displayName="DropdownMenuSubContent";var ta=eQ,ti=e1,tl=e2,tu=e4,ts=e5,tc=e3,td=e6,tf=e7,tp=e8,tv=te,th=tt,tm=tr,tg=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,i=e$(t),[u,s]=(0,l.i)({prop:n,defaultProp:null!=a&&a,onChange:o,caller:"DropdownMenuSub"});return(0,y.jsx)(eL,{...i,open:u,onOpenChange:s,children:r})},tw=tn,ty=to},37835:(e,t,r)=>{r.d(t,{v:()=>i});var n=r(11180);let o=e=>{let t,r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,a={setState:n,getState:o,getInitialState:()=>i,subscribe:e=>(r.add(e),()=>r.delete(e))},i=t=e(n,o,a);return a},a=e=>{let t=(e=>e?o(e):o)(e),r=e=>(function(e,t=e=>e){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},i=e=>e?a(e):a},53230:(e,t,r)=>{r.d(t,{H4:()=>C,_V:()=>R,bL:()=>b});var n=r(11180),o=r(95296),a=r(12017),i=r(45925),l=r(44990),u=r(57328);function s(){return()=>{}}var c="Avatar",[d,f]=function(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return a.scopeName=e,[function(t,a){let i=n.createContext(a);i.displayName=t+"Context";let l=r.length;r=[...r,a];let u=t=>{let{scope:r,children:a,...u}=t,s=r?.[e]?.[l]||i,c=n.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:a})};return u.displayName=t+"Provider",[u,function(r,o){let u=o?.[e]?.[l]||i,s=n.useContext(u);if(s)return s;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>
1{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(a,...t)]}(c),[p,v]=d(c),h=n.forwardRef((e,t)=>{let{__scopeAvatar:r,...a}=e,[i,u]=n.useState("idle");return(0,o.jsx)(p,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:u,children:(0,o.jsx)(l.sG.span,{...a,ref:t})})});h.displayName=c;var m="AvatarImage",g=n.forwardRef((e,t)=>{let{__scopeAvatar:r,src:c,onLoadingStatusChange:d=()=>{},...f}=e,p=v(m,r),h=function(e,t){let{referrerPolicy:r,crossOrigin:o}=t,a=(0,u.useSyncExternalStore)(s,()=>!0,()=>!1),l=n.useRef(null),c=a?(l.current||(l.current=new window.Image),l.current):null,[d,f]=n.useState(()=>x(c,e));return(0,i.N)(()=>{f(x(c,e))},[c,e]),(0,i.N)(()=>{let e=e=>()=>{f(e)};if(!c)return;let t=e("loaded"),n=e("error");return c.addEventListener("load",t),c.addEventListener("error",n),r&&(c.referrerPolicy=r),"string"==typeof o&&(c.crossOrigin=o),()=>{c.removeEventListener("load",t),c.removeEventListener("error",n)}},[c,o,r]),d}(c,f),g=(0,a.c)(e=>{d(e),p.onImageLoadingStatusChange(e)});return(0,i.N)(()=>{"idle"!==h&&g(h)},[h,g]),"loaded"===h?(0,o.jsx)(l.sG.img,{...f,ref:t,src:c}):null});g.displayName=m;var w="AvatarFallback",y=n.forwardRef((e,t)=>{let{__scopeAvatar:r,delayMs:a,...i}=e,u=v(w,r),[s,c]=n.useState(void 0===a);return n.useEffect(()=>{if(void 0!==a){let e=window.setTimeout(()=>c(!0),a);return()=>window.clearTimeout(e)}},[a]),s&&"loaded"!==u.imageLoadingStatus?(0,o.jsx)(l.sG.span,{...i,ref:t}):null});function x(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}y.displayName=w;var b=h,R=g,C=y},57328:(e,t,r)=>{e.exports=r(27367)},63225:(e,t,r)=>{r.d(t,{jH:()=>a});var n=r(11180);r(95296);var o=n.createContext(void 0);function a(e){let t=n.useContext(o);return e||t||"ltr"}},66247:(e,t,r)=>{var n=r(30767);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},79927:(e,t,r)=>{function n(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var n;let o=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(n=r.getItem(e))?n:null;return a instanceof Promise?a.then(o):o(a)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)}}r.d(t,{KU:()=>n,Zr:()=>a});let o=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>o(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>o(t)(e)}}},a=(e,t)=>(r,a,i)=>{let l,u={storage:n(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1,c=0,d=new Set,f=new Set,p=u.storage;if(!p)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),r(...e)},a,i);let v=()=>{let e=u.partialize({...a()});return p.setItem(u.name,{state:e,version:u.version})},h=i.setState;i.setState=(e,t)=>(h(e,t),v());let m=e((...e)=>(r(...e),v()),a,i);i.getInitialState=()=>m;let g=()=>{var e,t;if(!p)return;let n=++c;s=!1,d.forEach(e=>{var t;return e(null!=(t=a())?t:m)});let i=(null==(t=u.onRehydrateStorage)?void 0:t.call(u,null!=(e=a())?e:m))||void 0;return o(p.getItem.bind(p))(u.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===u.version)return[!1,e.state];else{if(u.migrate){let t=u.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;if(n!==c)return;let[o,i]=e;if(r(l=u.merge(i,null!=(t=a())?t:m),!0),o)return v()}).then(()=>{n===c&&(null==i||i(l,void 0),l=a(),s=!0,f.forEach(e=>e(l)))}).catch(e=>{n===c&&(null==i||i(void 0,e))})};return i.persist={setOptions:e=>{u={...u,...e},e.storage&&(p=e.storage)},clearStorage:()=>{null==p||p.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:e=>(d.add(e),()=>{d.delete(e)}),onFinishHydration:e=>(f.add(e),()=>{f.delete(e)})},u.skipHydration||g(),l||m}},80449:(e,t,r)=>{function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function o(e,t){var r=n(e,t,"get");return r.get?r.get.call(e):r.value}function a(e,t,r){var o=n(e,t,"set");if(o.set)o.set.call(e,r);else{if(!o.writable)throw TypeError("attempted to set read only private field");o.value=r}return r}r.d(t,{N:()=>f});var i,l=r(11180),u=r(36104),s=r(50318),c=r(97182),d=r(95296);function f(e){let t=e+"CollectionProvider",[r,n]=(0,u.A)(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{let{scope:t,children:r}=e,n=l.useRef(null),a=l.useRef(new Map).current;return(0,d.jsx)(o,{scope:t,itemMap:a,collectionRef:n,children:r})};i.displayName=t;let f=e+"CollectionSlot",p=(0,c.TL)(f),v=l.forwardRef((e,t)=>
1{let{scope:r,children:n}=e,o=a(f,r),i=(0,s.s)(t,o.collectionRef);return(0,d.jsx)(p,{ref:i,children:n})});v.displayName=f;let h=e+"CollectionItemSlot",m="data-radix-collection-item",g=(0,c.TL)(h),w=l.forwardRef((e,t)=>{let{scope:r,children:n,...o}=e,i=l.useRef(null),u=(0,s.s)(t,i),c=a(h,r);return l.useEffect(()=>(c.itemMap.set(i,{ref:i,...o}),()=>void c.itemMap.delete(i))),(0,d.jsx)(g,{...{[m]:""},ref:u,children:n})});return w.displayName=h,[{Provider:i,Slot:v,ItemSlot:w},function(t){let r=a(e+"CollectionConsumer",t);return l.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var p=new WeakMap;function v(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=h(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}(e,t);return -1===r?void 0:e[r]}function h(e){return e!=e||0===e?0:Math.trunc(e)}i=new WeakMap,class e extends Map{set(e,t){return p.get(this)&&(this.has(e)?o(this,i)[o(this,i).indexOf(e)]=e:o(this,i).push(e)),super.set(e,t),this}insert(e,t,r){let n,a=this.has(t),l=o(this,i).length,u=h(e),s=u>=0?u:l+u,c=s<0||s>=l?-1:s;if(c===this.size||a&&c===this.size-1||-1===c)return this.set(t,r),this;let d=this.size+ +!a;u<0&&s++;let f=[...o(this,i)],p=!1;for(let e=s;e<d;e++)if(s===e){let o=f[e];f[e]===t&&(o=f[e+1]),a&&this.delete(t),n=this.get(o),this.set(t,r)}else{p||f[e-1]!==t||(p=!0);let r=f[p?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=o(this,i).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=o(this,i).indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=o(this,i).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=o(this,i).indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return a(this,i,[]),super.clear()}delete(e){let t=super.delete(e);return t&&o(this,i).splice(o(this,i).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=v(o(this,i),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=v(o(this,i),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return o(this,i).indexOf(e)}keyAt(e){return v(o(this,i),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,a=0,i=null!=o?o:this.at(0);for(let e of this)i=0===a&&1===t.length?e:Reflect.apply(n,this,[i,e,a,this]),a++;return i}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,o]=t,a=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);a=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[a,r,e,this])}return a}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let o=[...this.entries()];return o.splice(...r),new e(o)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,i,{writable:!0,value:void 0}),a(this,i,[...super.keys()]),p.set(this,!0)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.