1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2356],{84910:function(e,t,n){"use strict";n.r(t),n.d(t,{KeylessCookieSync:function(){return a}});var r=n(88779),o=n(58496),i=n(65655);function a(e){var t;let a=(null==(t=(0,r.useSelectedLayoutSegments)()[0])?void 0:t.startsWith("/_not-found"))||!1;return(0,o.useEffect)(()=>{i.h&&!a&&n.e(7925).then(n.bind(n,67925)).then(t=>t.syncKeylessConfigAction({...e,returnUrl:window.location.href}))},[a]),e.children}},43269:function(e,t,n){"use strict";n.d(t,{PromisifiedAuthProvider:function(){return s},y:function(){return l}});var r=n(34651),o=n(75208),i=n(86423),a=n(58496);let u=a.createContext(null);function s(e){let{authPromise:t,children:n}=e;return a.createElement(u.Provider,{value:t},n)}function l(){let e=(0,i.useRouter)(),t=a.useContext(u),n=t;return(t&&"then"in t&&(n=a.use(t)),"undefined"!=typeof window)?(0,r.aC)(n):e?(0,r.aC)():(0,o.aw)(n)}},73072:function(e,t,n){"use strict";n.d(t,{AuthenticateWithRedirectCallback:function(){return r.vn},ClerkLoaded:function(){return r.a7},ClerkLoading:function(){return r.qI},RedirectToCreateOrganization:function(){return r.gM},RedirectToOrganizationProfile:function(){return r.yB},RedirectToSignIn:function(){return r.N1},RedirectToSignUp:function(){return r.C2},RedirectToUserProfile:function(){return r.sO}});var r=n(34651);n(75208)},94626:function(e,t,n){"use strict";n.d(t,{useAuth:function(){return o.y},useClerk:function(){return r.ll},useEmailLink:function(){return r.E2},useOrganization:function(){return r.o8},useOrganizationList:function(){return r.eW},useReverification:function(){return r.WZ},useSession:function(){return r.kP},useSessionList:function(){return r.xo},useSignIn:function(){return r.zq},useSignUp:function(){return r.QS},useUser:function(){return r.aF}});var r=n(34651);n(84153);var o=n(43269)},53333:function(e,t,n){"use strict";n.d(t,{CreateOrganization:function(){return r.Gp},GoogleOneTap:function(){return r.Kb},OrganizationList:function(){return r.Bg},OrganizationProfile:function(){return v},OrganizationSwitcher:function(){return r.Li},SignIn:function(){return h},SignInButton:function(){return r.$d},SignInWithMetamaskButton:function(){return r.qu},SignOutButton:function(){return r.AM},SignUp:function(){return p},SignUpButton:function(){return r.gX},UserButton:function(){return r.l8},UserProfile:function(){return f},Waitlist:function(){return r.yk}});var r=n(34651),o=n(58496),i=n(75208),a=n(41394),u=n(86423);let s=()=>({pagesRouter:(0,u.useRouter)()}),l=(e,t,n,i=!0)=>{let u=o.useRef(0),{pagesRouter:l}=s(),{session:c,isLoaded:d}=(0,r.kP)();(0,a.rx)()||o.useEffect(()=>{if(!d||n&&"path"!==n||i&&!c)return;let r=new AbortController,o=()=>{let n=l?`${t}/[[...index]].tsx`:`${t}/[[...rest]]/page.tsx`;throw Error(` 2Clerk: The <${e}/> component is not configured correctly. The most likely reasons for this error are: 3 41. The "${t}" route is not a catch-all route. 5It is recommended to convert this route to a catch-all route, eg: "${n}". Alternatively, you can update the <${e}/> component to use hash-based routing by setting the "routing" prop to "hash". 6 72. The <${e}/> component is mounted in a catch-all route, but all routes under "${t}" are protected by the middleware. 8To resolve this, ensure that the middleware does not protect the catch-all route or any of its children. If you are using the "createRouteMatcher" helper, consider adding "(.*)" to the end of the route pattern, eg: "${t}(.*)". For more information, see: https://clerk.com/docs/references/nextjs/clerk-middleware#create-route-matcher 9`)};return l?l.pathname.match(/\[\[\.\.\..+]]/)||o():(async()=>{let t;if(u.current++,!(u.current>1)){try{let n=`${window.location.origin}${window.location.pathname}/${e}_clerk_catchall_check_${Date.now()}`;t=await fetch(n,{signal:r.signal})}catch{}(null==t?void 0:t.status)===404&&o()}})(),()=>{u.current>1&&r.abort()}},[d])},c=()=>{let e=o.useRef(),{pagesRouter:t}=s();if(t)return e.current||(e.current=t.pathname.replace(/\/\[\[\.\.\..*/,"")),e.current;let r=n(88779).usePathname,i=n(88779).useParams,a=(r()||"").split("/").filter(Boolean),u=Object.values(i()||{}).filter(e=>Array.isArray(e)).flat(1/0);return e.current||(e.current=`/${a.slice(0,a.length-u.length).join("/")}`),e.current};function d(e,t,n=!0){let r=c(),o=(0,i.EJ)(e,t,{path:r});return l(e,r,o.routing,n),o}let f=Object.assign(e=>o.createElement(r.Iw,{...d("UserProfile",e)}),{...r.Iw}),v=Object.assign(e=>o.createElement(r.A,{...d("OrganizationProfile",e)}),{...r.A}),h=e=>o.createElement(r.cL,{...d("SignIn",e,!1)}),p=e=>o.createElement(r.Mo,{...d("SignUp",e,!1)})},25818:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},20016:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("chart-no-axes-combined",[["path",{d:"M12 16v5",key:"zza2cw"}],["path",{d:"M16 14v7",key:"1g90b9"}],["path",{d:"M20 10v11",key:"1iqoj0"}
9],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15",key:"1fw8x9"}],["path",{d:"M4 18v3",key:"1yp0dc"}],["path",{d:"M8 14v7",key:"n3cwzv"}]])},23505:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},50849:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},58251:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("landmark",[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]])},77374:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]])},53116:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]])},23462:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("square-arrow-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m12 8-4 4 4 4",key:"15vm53"}],["path",{d:"M16 12H8",key:"1fr5h0"}]])},98318:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},88706:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(84520).Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},1022:function(e){e.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},92878:function(e){e.exports={style:{fontFamily:"'__geistMono_c3aa02', '__geistMono_Fallback_c3aa02'"},className:"__className_c3aa02",variable:"__variable_c3aa02"}},13552:function(e){e.exports={style:{fontFamily:"'__geistSans_1e4310', '__geistSans_Fallback_1e4310'"},className:"__className_1e4310",variable:"__variable_1e4310"}},41692:function(e,t,n){"use strict";n.d(t,{VY:function(){return eC},z$:function(){return eM},ck:function(){return eE},rU:function(){return ek},aV:function(){return eb},fC:function(){return ey},xz:function(){return ex},l_:function(){return eR}});var r,o=n(58496),i=n(81720),a=n(6340),u=n(39513),s=n(7871),l=n(16560),c=n(68075),d=n(98981),f=n(14317),v=n(43162),h=n(52320),p=n(32622),m=n(88331),g=n(83890),w="dismissableLayer.update",y=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),b=o.forwardRef((e,t)=>{var n,i;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:v,onDismiss:h,...b}=e,k=o.useContext(y),[M,C]=o.useState(null),R=null!==(i=null==M?void 0:M.ownerDocument)&&void 0!==i?i:null===(n=globalThis)||void 0===n?void 0:n.document,[,_]=o.useState({}),T=(0,c.e)(t,e=>C(e)),P=Array.from(k.layers),[j]=[...k.layersWithOutsidePointerEventsDisabled].slice(-1),L=P.indexOf(j),N=M?P.indexOf(M):-1,S=k.layersWithOutsidePointerEventsDisabled.size>0,D=N>=L,I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,p.W)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){x("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...k.branches].some(e=>e.contains(t));!D||n||(null==d||d(e),null==v||v(e),e.defaultPrevented||null==h||h())},R),O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,p.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&x("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...k.branches].some(e=>e.contains(t))||(null==f||f(e),null==v||v(e),e.defaultPrevented||null==h||h())},R);return(0,m.e)(e=>{N!==k.layers.size-1||(null==l||l(e),!e.defaultPrevented&&h&&(e.preventDefault(),h()))},R),o.useEffect(()=>{if(M)return a&&(0===k.layersWithOutsidePointerEventsDisabled.size&&(r=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),k.layersWithOutsidePointerEventsDisabled.add(M)),k.layers.add(M),E(),()=>{a&&1===k.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=r)}},[M,R,a,k]),o.useEffect(()=>()=>{M&&(k.layers.delete(M),k.layersWithOutsidePointerEventsDisabled.delete(M),E())},[M,k]),o.useEffect(()=>{let e=()=>_({});return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,g.jsx)(s.WV.div,{...b,ref:T,style:{pointerEvents:S?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,u.M)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,u.M)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,u.M)(e.onPointerDownCapture,I.onPointerDownCapture)})});function E(){let e=new CustomEvent(w);document.dispatchEvent(e)}function x(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,s.jH)(i,a):i.dispatchEvent(a)}b.displayName="DismissableLayer",o.forwardRef((e,t)=>
9{let n=o.useContext(y),r=o.useRef(null),i=(0,c.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,g.jsx)(s.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var k=n(50940),M=n(92906),C=n(36803),R="NavigationMenu",[_,T,P]=(0,h.B)(R),[j,L,N]=(0,h.B)(R),[S,D]=(0,a.b)(R,[P,N]),[I,O]=S(R),[W,A]=S(R),F=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:i,defaultValue:a,delayDuration:u=200,skipDelayDuration:f=300,orientation:v="horizontal",dir:h,...p}=e,[m,w]=o.useState(null),y=(0,c.e)(t,e=>w(e)),b=(0,d.gm)(h),E=o.useRef(0),x=o.useRef(0),k=o.useRef(0),[M,C]=o.useState(!0),[R="",_]=(0,l.T)({prop:r,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(k.current),t&&C(!1)):(window.clearTimeout(k.current),k.current=window.setTimeout(()=>C(!0),f)),null==i||i(e)},defaultProp:a}),T=o.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>_(""),150)},[_]),P=o.useCallback(e=>{window.clearTimeout(x.current),_(e)},[_]),j=o.useCallback(e=>{R===e?window.clearTimeout(x.current):E.current=window.setTimeout(()=>{window.clearTimeout(x.current),_(e)},u)},[R,_,u]);return o.useEffect(()=>()=>{window.clearTimeout(E.current),window.clearTimeout(x.current),window.clearTimeout(k.current)},[]),(0,g.jsx)(V,{scope:n,isRootMenu:!0,value:R,dir:b,orientation:v,rootNavigationMenu:m,onTriggerEnter:e=>{window.clearTimeout(E.current),M?j(e):P(e)},onTriggerLeave:()=>{window.clearTimeout(E.current),T()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:T,onItemSelect:e=>{_(t=>t===e?"":e)},onItemDismiss:()=>_(""),children:(0,g.jsx)(s.WV.nav,{"aria-label":"Main","data-orientation":v,dir:b,...p,ref:y})})});F.displayName=R;var z="NavigationMenuSub";o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",...u}=e,c=O(z,n),[d="",f]=(0,l.T)({prop:r,onChange:o,defaultProp:i});return(0,g.jsx)(V,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:a,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,g.jsx)(s.WV.div,{"data-orientation":a,...u,ref:t})})}).displayName=z;var V=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:a,children:u,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:h,onContentLeave:m}
9=e,[w,y]=o.useState(null),[b,E]=o.useState(new Map),[x,M]=o.useState(null);return(0,g.jsx)(I,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:(0,k.D)(s),baseId:(0,v.M)(),dir:i,orientation:a,viewport:w,onViewportChange:y,indicatorTrack:x,onIndicatorTrackChange:M,onTriggerEnter:(0,p.W)(d),onTriggerLeave:(0,p.W)(f),onContentEnter:(0,p.W)(h),onContentLeave:(0,p.W)(m),onItemSelect:(0,p.W)(l),onItemDismiss:(0,p.W)(c),onViewportContentChange:o.useCallback((e,t)=>{E(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:o.useCallback(e=>{E(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,g.jsx)(_.Provider,{scope:t,children:(0,g.jsx)(W,{scope:t,items:b,children:u})})})},Z="NavigationMenuList",K=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=O(Z,n),i=(0,g.jsx)(s.WV.ul,{"data-orientation":o.orientation,...r,ref:t});return(0,g.jsx)(s.WV.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,g.jsx)(_.Slot,{scope:n,children:o.isRootMenu?(0,g.jsx)(el,{asChild:!0,children:i}):i})})});K.displayName=Z;var U="NavigationMenuItem",[$,B]=S(U),H=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,...i}=e,a=(0,v.M)(),u=o.useRef(null),l=o.useRef(null),c=o.useRef(null),d=o.useRef(()=>{}),f=o.useRef(!1),h=o.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(u.current){d.current();let t=ef(u.current);t.length&&ev("start"===e?t:t.reverse())}},[]),p=o.useCallback(()=>{if(u.current){let e=ef(u.current);e.length&&(d.current=(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)})}))}},[]);return(0,g.jsx)($,{scope:n,value:r||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:l,contentRef:u,focusProxyRef:c,wasEscapeCloseRef:f,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:(0,g.jsx)(s.WV.li,{...i,ref:t})})});H.displayName=U;var q="NavigationMenuTrigger",G=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:r,...i}=e,a=O(q,e.__scopeNavigationMenu),l=B(q,e.__scopeNavigationMenu),d=o.useRef(null),f=(0,c.e)(d,l.triggerRef,t),v=em(a.baseId,l.value),h=eg(a.baseId,l.value),p=o.useRef(!1),m=o.useRef(!1),w=l.value===a.value;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(_.ItemSlot,{scope:n,value:l.value,children:(0,g.jsx)(ed,{asChild:!0,children:(0,g.jsx)(s.WV.button,{id:v,disabled:r,"data-disabled":r?"":void 0,"data-state":ep(w),"aria-expanded":w,"aria-controls":h,...i,ref:f,onPointerEnter:(0,u.M)(e.onPointerEnter,()=>{m.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:(0,u.M)(e.onPointerMove,ew(()=>{r||m.current||l.wasEscapeCloseRef.current||p.current||(a.onTriggerEnter(l.value),p.current=!0)})),onPointerLeave:(0,u.M)(e.onPointerLeave,ew(()=>{r||(a.onTriggerLeave(),p.current=!1)})),onClick:(0,u.M)(e.onClick,()=>{a.onItemSelect(l.value),m.current=w}),onKeyDown:(0,u.M)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===a.dir?"ArrowLeft":"ArrowRight"}[a.orientation];w&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),w&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(C.f,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,n=e.relatedTarget,r=n===d.current,o=null==t?void 0:t.contains(n);(r||!o)&&l.onFocusProxyEnter(r?"start":"end")}}),a.viewport&&(0,g.jsx)("span",{"aria-owns":h})]})]})});G.displayName=q;var Y="navigationMenu.linkSelect",X=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return(0,g.jsx)(ed,{asChild:!0,children:(0,g.jsx)(s.WV.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:(0,u.M)(e.onClick,e=>{let t=e.target,n=new CustomEvent(Y,{bubbles:!0,cancelable:!0});if(t.addEventListener(Y,e=>null==o?void 0:o(e),{once:!0}),(0,s.jH)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(eo,{bubbles:!0,cancelable:!0});(0,s.jH)(t,e)}},{checkForDefaultPrevented:!1})})})});X.displayName="NavigationMenuLink";var J="NavigationMenuIndicator",Q=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=O(J,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?i.createPortal((0,g.jsx)(f.z,{present:n||a,children:(0,g.jsx)(ee,{...r,ref:t})}),o.indicatorTrack):null});Q.displayName=J;var ee=o.forwardRef((e,t)=>
9{let{__scopeNavigationMenu:n,...r}=e,i=O(J,n),a=T(n),[u,l]=o.useState(null),[c,d]=o.useState(null),f="horizontal"===i.orientation,v=!!i.value;o.useEffect(()=>{var e;let t=null===(e=a().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&l(t)},[a,i.value]);let h=()=>{u&&d({size:f?u.offsetWidth:u.offsetHeight,offset:f?u.offsetLeft:u.offsetTop})};return eh(u,h),eh(i.indicatorTrack,h),c?(0,g.jsx)(s.WV.div,{"aria-hidden":!0,"data-state":v?"visible":"hidden","data-orientation":i.orientation,...r,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)")},...r.style}}):null}),et="NavigationMenuContent",en=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=O(et,e.__scopeNavigationMenu),i=B(et,e.__scopeNavigationMenu),a=(0,c.e)(i.contentRef,t),s=i.value===o.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?(0,g.jsx)(er,{forceMount:n,...l,ref:a}):(0,g.jsx)(f.z,{present:n||s,children:(0,g.jsx)(ei,{"data-state":ep(s),...l,ref:a,onPointerEnter:(0,u.M)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,u.M)(e.onPointerLeave,ew(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});en.displayName=et;var er=o.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=O(et,e.__scopeNavigationMenu);return(0,M.b)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,M.b)(()=>()=>r(e.value),[e.value,r]),null}),eo="navigationMenu.rootContentDismiss",ei=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:l,onContentFocusOutside:d,...f}=e,v=O(et,n),h=o.useRef(null),p=(0,c.e)(h,t),m=em(v.baseId,r),w=eg(v.baseId,r),y=T(n),E=o.useRef(null),{onItemDismiss:x}=v;o.useEffect(()=>{let e=h.current;if(v.isRootMenu&&e){let t=()=>{var t;x(),l(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(eo,t),()=>e.removeEventListener(eo,t)}},[v.isRootMenu,e.value,i,x,l]);let k=o.useMemo(()=>{let e=y().map(e=>e.value);"rtl"===v.dir&&e.reverse();let t=e.indexOf(v.value),n=e.indexOf(v.previousValue),o=r===v.value,i=n===e.indexOf(r);if(!o&&!i)return E.current;let a=(()=>{if(t!==n){if(o&&-1!==n)return t>n?"from-end":"from-start";if(i&&-1!==t)return t>n?"to-start":"to-end"}return null})();return E.current=a,a},[v.previousValue,v.value,v.dir,y,r]);return(0,g.jsx)(el,{asChild:!0,children:(0,g.jsx)(b,{id:w,"aria-labelledby":m,"data-motion":k,"data-orientation":v.orientation,...f,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(eo,{bubbles:!0,cancelable:!0});null===(e=h.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:(0,u.M)(e.onFocusOutside,e=>{var t;d();let n=e.target;(null===(t=v.rootNavigationMenu)||void 0===t?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:(0,u.M)(e.onPointerDownOutside,e=>{var t;let n=e.target,r=y().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),o=v.isRootMenu&&(null===(t=v.viewport)||void 0===t?void 0:t.contains(n));(r||o||!v.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,u.M)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ef(e.currentTarget),r=document.activeElement,o=t.findIndex(e=>e===r);if(ev(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length)))e.preventDefault();else{var n;null===(n=a.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:(0,u.M)(e.onEscapeKeyDown,e=>{s.current=!0})})})}),ea="NavigationMenuViewport",eu=o.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=!!O(ea,e.__scopeNavigationMenu).value;return(0,g.jsx)(f.z,{present:n||o,children:(0,g.jsx)(es,{...r,ref:t})})});eu.displayName=ea;var es=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,a=O(ea,n),l=(0,c.e)(t,a.onViewportChange),d=A(et,e.__scopeNavigationMenu),[v,h]=o.useState(null),[p,m]=o.useState(null),w=v?(null==v?void 0:v.width)+"px":void 0,y=v?(null==v?void 0:v.height)+"px":void 0,b=!!a.value,E=b?a.value:a.previousValue;return eh(p,()=>{p&&h({width:p.offsetWidth,height:p.offsetHeight})}),(0,g.jsx)(s.WV.div,{"data-state":ep(b),"data-orientation":a.orientation,...i,ref:l,style:{pointerEvents:!b&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":y,...i.style},onPointerEnter:(0,u.M)(e.onPointerEnter,a.onContentEnter),onPointerLeave:(0,u.M)(e.onPointerLeave,ew(a.onContentLeave)),children:Array.from(d.items).map(e=>{let[t,{ref:n,forceMount:r,...o}]=e,i=E===t;return(0,g.jsx)(f.z,{present:r||i,children:(0,g.jsx)(ei,{...o,ref:(0,c.F)(n,e=>{i&&e&&m(e)})})},t)})})}),el=o.forwardRef((e,t)=>
9{let{__scopeNavigationMenu:n,...r}=e,o=O("FocusGroup",n);return(0,g.jsx)(j.Provider,{scope:n,children:(0,g.jsx)(j.Slot,{scope:n,children:(0,g.jsx)(s.WV.div,{dir:o.dir,...r,ref:t})})})}),ec=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ed=o.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=L(n),i=O("FocusGroupItem",n);return(0,g.jsx)(j.ItemSlot,{scope:n,children:(0,g.jsx)(s.WV.button,{...r,ref:t,onKeyDown:(0,u.M)(e.onKeyDown,e=>{if(["Home","End",...ec].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===i.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ec.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>ev(t)),e.preventDefault()}})})})});function ef(e){let t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}function ev(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function eh(e,t){let n=(0,p.W)(t);(0,M.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function ep(e){return e?"open":"closed"}function em(e,t){return"".concat(e,"-trigger-").concat(t)}function eg(e,t){return"".concat(e,"-content-").concat(t)}function ew(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ey=F,eb=K,eE=H,ex=G,ek=X,eM=Q,eC=en,eR=eu},50940:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(58496);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},36803:function(e,t,n){"use strict";n.d(t,{T:function(){return a},f:function(){return u}});var r=n(58496),o=n(7871),i=n(83890),a=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var u=a}}]);
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.