PageSourceSearch

https://projects.dev/_next/static/immutable/chunks/3-ckw5iuo0nhj.js

js projects.dev collected 2026-10-02 02:24:38 UTC 69,753 bytes, 10 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41895,e=>{"use strict";var t=e.i(78673),i=e.i(80204),r=e.i(70703),n=e.i(18566),s=e.i(71645);let l="u">typeof window?s.default.useLayoutEffect:s.default.useEffect,o=s.default.createContext(void 0);o.displayName="ClerkNextOptionsCtx";let a=()=>{let e=s.default.useContext(o);return null==e?void 0:e.value},u=e=>{let{children:t,options:i}=e;return s.default.createElement(o.Provider,{value:{value:i}},t)};var d=e.i(78424),h=e.i(47167),c=e.i(89831),p=e.i(62366),f=e.i(82524);let g=e=>{var t;let i=e.publishableKey||"pk_live_Y2xlcmsucHJvamVjdHMuZGV2JA",r=e.proxyUrl||h.default.env.NEXT_PUBLIC_CLERK_PROXY_URL||"",n=e.domain||"projects.dev";return{...e,publishableKey:i,__internal_clerkJSUrl:e.__internal_clerkJSUrl||h.default.env.NEXT_PUBLIC_CLERK_JS_URL,__internal_clerkJSVersion:e.__internal_clerkJSVersion||h.default.env.NEXT_PUBLIC_CLERK_JS_VERSION,__internal_clerkUIUrl:e.__internal_clerkUIUrl||h.default.env.NEXT_PUBLIC_CLERK_UI_URL,__internal_clerkUIVersion:e.__internal_clerkUIVersion||h.default.env.NEXT_PUBLIC_CLERK_UI_VERSION,prefetchUI:function(e){if(!1===e||"false"===h.default.env.NEXT_PUBLIC_CLERK_PREFETCH_UI)return!1}(e.prefetchUI),proxyUrl:r||(0,c.getAutoProxyUrlFromEnvironment)({hasDomain:!!n,hasProxyUrl:!!r,publishableKey:i}),domain:n,isSatellite:e.isSatellite||(0,p.isTruthy)(h.default.env.NEXT_PUBLIC_CLERK_IS_SATELLITE),signInUrl:e.signInUrl||h.default.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL||"",signUpUrl:e.signUpUrl||h.default.env.NEXT_PUBLIC_CLERK_SIGN_UP_URL||"",signInForceRedirectUrl:e.signInForceRedirectUrl||h.default.env.NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL||"",signUpForceRedirectUrl:e.signUpForceRedirectUrl||h.default.env.NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL||"",signInFallbackRedirectUrl:e.signInFallbackRedirectUrl||h.default.env.NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL||"",signUpFallbackRedirectUrl:e.signUpFallbackRedirectUrl||h.default.env.NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL||"",newSubscriptionRedirectUrl:e.newSubscriptionRedirectUrl||h.default.env.NEXT_PUBLIC_CLERK_CHECKOUT_CONTINUE_URL||"",telemetry:null!=(t=e.telemetry)?t:{disabled:(0,p.isTruthy)(h.default.env.NEXT_PUBLIC_CLERK_TELEMETRY_DISABLED),debug:(0,p.isTruthy)(h.default.env.NEXT_PUBLIC_CLERK_TELEMETRY_DEBUG)},sdkMetadata:f.SDK_METADATA,unsafe_disableDevelopmentModeConsoleWarning:(0,p.isTruthy)(h.default.env.NEXT_PUBLIC_CLERK_UNSAFE_DISABLE_DEVELOPMENT_MODE_CONSOLE_WARNING)}};e.i(30032);var m=e.i(84975),m=m,k=e.i(87947),_=e.i(22528);let C=()=>{var e,t;let i=(0,k.useClerk)(),{pagesRouter:r}=(0,_.usePagesRouter)();return null==(t=i.telemetry)||t.record((0,m.i)({router:r?"pages":"app",...(null==(e=null==globalThis?void 0:globalThis.next)?void 0:e.version)?{nextjsVersion:globalThis.next.version}:{}})),null};var S=e.i(95187);let b=(0,S.createServerReference)("003220f10022311ae527bb7152a8546d3a36987575",S.callServer,void 0,S.findSourceMapURL,"invalidateCacheAction");e.i(19658);var w=e.i(81127);function y(e){let{publishableKey:t,__internal_clerkJSUrl:i,__internal_clerkJSVersion:r,__internal_clerkUIUrl:n,__internal_clerkUIVersion:l,nonce:o,domain:a,proxyUrl:u,prefetchUI:d}=e,h={publishableKey:t,__internal_clerkJSUrl:i,__internal_clerkJSVersion:r,__internal_clerkUIUrl:n,__internal_clerkUIVersion:l,nonce:o,domain:a,proxyUrl:u};return s.default.createElement(s.default.Fragment,null,s.default.createElement("script",{src:(0,w.clerkJSScriptUrl)(h),"data-clerk-js-script":!0,async:!0,crossOrigin:"anonymous",...(0,w.buildClerkJSScriptAttributes)(h)}),!1!==d&&s.default.createElement("link",{rel:"preload",href:(0,w.clerkUIScriptUrl)(h),as:"script",crossOrigin:"anonymous",nonce:o}))}function v(){let{publishableKey:e,__internal_clerkJSUrl:t,__internal_clerkJSVersion:i,__internal_clerkUIUrl:r,__internal_clerkUIVersion:n,nonce:l,prefetchUI:o}=a(),{domain:u,proxyUrl:d}=(0,k.useClerk)();return e?s.default.createElement(y,{publishableKey:e,__internal_clerkJSUrl:t,__internal_clerkJSVersion:i,__internal_clerkUIUrl:r,__internal_clerkUIVersion:n,nonce:l,domain:u,proxyUrl:d,prefetchUI:o}):null}let j=e=>{var t;return null!=window.__clerk_internal_navigations||(window.__clerk_internal_navigations={}),null!=(t=window.__clerk_internal_navigations)[e]||(t[e]={}),window.__clerk_internal_navigations[e]},U=e=>{let{windowNav:t,routerNav:i,name:r}=e,[n,l]=(0,s.useTransition)();t&&(j(r).fun=(e,n)=>{var s,o;let a=j(r);return(null!=(o=null==(s=a.promisesBuffer)?void 0:s.length)?o:0)>0&&a.pendingDestination===e?new Promise(e=>{null!=a.promisesBuffer||(a.promisesBuffer=[]),a.promisesBuffer.push(e)}):(a.pendingDestination=e,new Promise(r=>{null!=a.promisesBuffer||(a.promisesBuffer=[]),a.promisesBuffer.push(r),l(()=>{var r;(null==(r=null==n?void 0:n.__internal_metadata)?void 0:r.navigationType)==="internal"?t(null,"",e):i(e)})}))});let o=()=>{var e;let t=j(r);
1null==(e=t.promisesBuffer)||e.forEach(e=>e()),t.promisesBuffer=[],t.pendingDestination=void 0};return(0,s.useEffect)(()=>(o(),o),[]),(0,s.useEffect)(()=>{n||o()},[n]),(0,s.useCallback)((e,t)=>j(r).fun(e,t),[])},P=(0,r.default)(()=>e.A(98943).then(e=>e.KeylessCreatorOrReader)),E=e=>{let i,r,{__internal_invokeMiddlewareOnAuthStateChange:o=!0,__internal_scriptsSlot:a,children:d}=e,h=(0,n.useRouter)(),c=(i=(0,n.useRouter)(),U({windowNav:"u">typeof window?window.history.pushState.bind(window.history):void 0,routerNav:i.push.bind(i),name:"push"})),p=(r=(0,n.useRouter)(),U({windowNav:"u">typeof window?window.history.replaceState.bind(window.history):void 0,routerNav:r.replace.bind(r),name:"replace"}));l(()=>{window.__internal_onBeforeSetActive=e=>new Promise(t=>{var i;let r=(null==(i=null==window?void 0:window.next)?void 0:i.version)||"";(r.startsWith("15")||r.startsWith("16"))&&"sign-out"===e?t():b().then(()=>t())}),window.__internal_onAfterSetActive=()=>{if(o)return h.refresh()}},[]);let f=g({...e,routerPush:c,routerReplace:p});return s.default.createElement(u,{options:f},s.default.createElement(t.InternalClerkProvider,{...f},s.default.createElement(C,null),null!=a?a:s.default.createElement(v,null),d))};e.s(["ClientClerkProvider",0,e=>{let{children:t,disableKeyless:r=!1,...n}=e,l=g(n).publishableKey;return a()?n.initialState?s.default.createElement(i.InitialStateProvider,{initialState:n.initialState},t):t:l||!d.canUseKeyless||r?s.default.createElement(E,{...n},t):s.default.createElement(P,null,s.default.createElement(E,{...n},t))}],41895)},27534,e=>{"use strict";e.i(19658);var t=e.i(75692),t=t,i=t,r=t,n=t,s=t,l=t,o=t,a=t,u=t,d=t,h=t,c=e.i(80204),p=t;e.i(78673);var f=t;e.s([],73483),e.i(73483);var t=t,i=t,r=t,n=t,s=t,l=t,o=t,a=t,u=t,d=t,h=t,p=t,f=t;e.s(["AuthenticateWithRedirectCallback",()=>t.r,"ClerkDegraded",()=>i.i,"ClerkFailed",()=>r.a,"ClerkLoaded",()=>n.o,"ClerkLoading",()=>s.s,"MultisessionAppSupport",()=>f.c,"RedirectToCreateOrganization",()=>l.l,"RedirectToOrganizationProfile",()=>o.u,"RedirectToSignIn",()=>a.d,"RedirectToSignUp",()=>u.f,"RedirectToTasks",()=>d.p,"RedirectToUserProfile",()=>h.m,"Show",()=>p.h,"UNSAFE_PortalProvider",()=>c.UNSAFE_PortalProvider],27534)},96136,e=>{"use strict";e.i(19658);var t=e.i(93873),i=e.i(87947),r=e.i(52367),r=r,n=e.i(49704),n=n,s=e.i(77509),s=s,l=e.i(2459),l=l,o=e.i(55448),o=o,a=e.i(72409),u=e.i(58416),u=u,d=e.i(92802),h=e.i(5364),c=r,p=e.i(76461),f=e.i(40394),f=f,g=e.i(80351),g=g;e.i(89514);var m=e.i(96672),m=m;e.i(39789);var k=m,_=m,C=e.i(13286),S=e.i(24955),S=S,b=m,w=m,y=m,v=m,S=S,b=m,w=m,y=m,v=m,k=m,_=m;e.s([],93819),e.i(93819);var r=r,n=n,s=s,l=l,o=o,u=u,c=r,f=f,g=g,S=S,b=m,w=m,y=m,v=m,k=m,_=m;e.s(["EmailLinkErrorCode",()=>k._,"EmailLinkErrorCodeStatus",()=>_.v,"isClerkAPIResponseError",()=>C.isClerkAPIResponseError,"isClerkRuntimeError",()=>S.n,"isEmailLinkError",()=>b.a,"isKnownError",()=>w.o,"isMetamaskError",()=>y.s,"isReverificationCancelledError",()=>v.d,"useAPIKeys",()=>g.o,"useAuth",()=>t.useAuth,"useClerk",()=>i.useClerk,"useEmailLink",()=>r.y,"useOAuthConsent",()=>n.c,"useOrganization",()=>s.l,"useOrganizationCreationDefaults",()=>o.u,"useOrganizationList",()=>l.d,"useReverification",()=>f.f,"useSession",()=>a.useSession,"useSessionList",()=>u.m,"useSignIn",()=>d.useSignIn,"useSignUp",()=>h.useSignUp,"useUser",()=>p.useUser,"useWaitlist",()=>c.v],96136)},58072,e=>{"use strict";var t=e.i(19658),i=e.i(52367),i=i,r=i,n=i,s=i,l=e.i(71645),o=e.i(78673);e.i(66090);var a=e.i(81720),a=a,u=e.i(72409),d=e.i(22528);function h(t,i,r=!0){let n=(()=>{let t=l.default.useRef(),{pagesRouter:i}=(0,d.usePagesRouter)();if(i)if(t.current)return t.current;else return t.current=i.pathname.replace(/\/\[\[\.\.\..*/,""),t.current;let r=e.r(18566).usePathname,n=e.r(18566).useParams,s=(r()||"").split("/").filter(Boolean),o=Object.values(n()||{}).filter(e=>Array.isArray(e)).flat(1/0);return t.current||(t.current=`/${s.slice(0,s.length-o.length).join("/")}`),t.current})(),s=(0,o.useRoutingProps)(t,i,{path:n});return((e,t,i,r=!0)=>{let n=l.default.useRef(0),{pagesRouter:s}=(0,d.usePagesRouter)(),{session:o,isLoaded:h}=(0,u.useSession)();(0,a.i)()||l.default.useEffect(()=>{if(!h||i&&"path"!==i||r&&!o)return;let l=new AbortController,a=()=>{let i=s?`${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: "${i}". Alternatively, you can update the <${e}/> component to use hash-based routing by setting the "routing" prop to "hash".
6
72. The <${e}/>
7 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/reference/nextjs/clerk-middleware#create-route-matcher
9`)};return s?s.pathname.match(/\[\[\.\.\..+]]/)||a():(async()=>{let t;if(n.current++,!(n.current>1)){try{let i=`${window.location.origin}${window.location.pathname}/${e}_clerk_catchall_check_${Date.now()}`;t=await fetch(i,{signal:l.signal})}catch{}(null==t?void 0:t.status)===404&&a()}})(),()=>{n.current>1&&l.abort()}},[h])})(t,n,s.routing,r),s}var c=i,p=i,f=i,g=i,m=i,k=i,_=i,C=i,S=i,b=i,w=i,y=i,v=i;let j=Object.assign(e=>l.default.createElement(s.L,{...h("UserProfile",e)}),{...s.L}),U=Object.assign(e=>l.default.createElement(i.D,{...h("OrganizationProfile",e)}),{...i.D}),P=e=>l.default.createElement(r.A,{...h("SignIn",e,!1)}),E=e=>l.default.createElement(n.j,{...h("SignUp",e,!1)});e.s(["OrganizationProfile",0,U,"SignIn",0,P,"SignUp",0,E,"UserProfile",0,j],89807),e.i(89807);var c=i,p=i,f=i,g=i,m=i,k=i,_=i,C=i,S=i,b=i,w=i,y=i,v=i;e.s(["APIKeys",()=>c.S,"CreateOrganization",()=>p.C,"GoogleOneTap",()=>f.w,"HandleSSOCallback",()=>t.HandleSSOCallback,"OAuthConsent",()=>g.T,"OrganizationList",()=>m.E,"OrganizationProfile",0,U,"OrganizationSwitcher",()=>k.O,"PricingTable",()=>_.k,"SignIn",0,P,"SignInButton",()=>t.SignInButton,"SignInWithMetamaskButton",()=>t.SignInWithMetamaskButton,"SignOutButton",()=>t.SignOutButton,"SignUp",0,E,"SignUpButton",()=>t.SignUpButton,"TaskChooseOrganization",()=>C.M,"TaskResetPassword",()=>S.N,"TaskSetupMFA",()=>b.P,"UserAvatar",()=>w.F,"UserButton",()=>y.I,"UserProfile",0,j,"Waitlist",()=>v.R],58072)},19658,49704,2459,40394,77509,58416,80351,21730,55448,89831,81127,75692,e=>{"use strict";var t=e.i(91297),i=e.i(52367),r=e.i(80204),r=r,n=r;e.s(["c",()=>n.useOAuthConsent],49704);var n=r,s=r;e.s(["d",()=>s.useOrganizationList],2459);var s=r,l=r;e.s(["f",()=>l.useReverification],40394);var l=r;e.i(12690);var o=r;e.s(["l",()=>o.useOrganization],77509);var o=r,a=r;e.s(["m",()=>a.useSessionList],58416);var a=r,u=r;e.s(["o",()=>u.useAPIKeys],80351);var u=r,d=r;e.s(["p",()=>d.useSession],21730);var d=r,h=e.i(48861),c=r;e.s(["u",()=>c.useOrganizationCreationDefaults],55448);var c=r,p=e.i(47167),f=e.i(71645),g=e.i(38297),m=e.i(24955),k=e.i(96672);let _={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},C=async e=>new Promise(t=>setTimeout(t,e)),S=(e,t)=>t?e*(1+Math.random()):e,b=async(e,t={})=>{var i;let r,n=0,{shouldRetry:s,initialDelay:l,maxDelayBetweenRetries:o,factor:a,retryImmediately:u,jitter:d,onBeforeRetry:h}={..._,...t},c=(i={initialDelay:l,maxDelayBetweenRetries:o,factor:a,jitter:d},r=0,async()=>{let e;await C((e=S(e=i.initialDelay*Math.pow(i.factor,r),i.jitter),Math.min(i.maxDelayBetweenRetries||e,e))),r++});for(;;)try{return await e()}catch(e){if(!s(e,++n))throw e;h&&await h(n),u&&1===n?await C(S(100,d)):await c()}};async function w(e="",t){let{async:i,defer:r,beforeLoad:n,crossOrigin:s,nonce:l}=t||{};return b(()=>new Promise((t,o)=>{e||o(Error("loadScript cannot be called without a src")),document&&document.body||o(Error("loadScript cannot be called when document does not exist"));let a=document.createElement("script");s&&a.setAttribute("crossorigin",s),a.async=i||!1,a.defer=r||!1,a.addEventListener("load",()=>{a.remove(),t(a)}),a.addEventListener("error",t=>{a.remove(),o(t.error??Error(`failed to load script: ${e}`))}),a.src=e,l&&(a.nonce=l),n?.(a),document.body.appendChild(a)}),{shouldRetry:(e,t)=>t<=5})}function y(e){var t;return!e||(t=e,/^http(s)?:\/\//.test(t||""))||v(e)}function v(e){return e.startsWith("/")}function j(e){return e?!v(e)||"u"<typeof window||!window.location?.origin?e:new URL(e,window.location.origin).toString():""}let U=[".vercel.app"];e.s(["getAutoProxyUrlFromEnvironment",0,function({publishableKey:e,hasDomain:t=!1,hasProxyUrl:i=!1,environment:r=void 0!==p.default&&p.default.env?p.default.env:{}}){var n;if(i||t||!(0,g.isProductionFromPublishableKey)(e)||"production"!==r.VERCEL_TARGET_ENV)return"";let s=r.VERCEL_PROJECT_PRODUCTION_URL;return s&&(n=function(e){if(e.startsWith("http://")||e.startsWith("https://"))try{return new URL(e).hostname}catch{return""}return e.split("/")[0]||""}(s),U.some(e=>n?.endsWith(e)))?"/__clerk":""},"isProxyUrlRelative",0,v,"isValidProxyUrl",0,y,"proxyUrlToAbsoluteURL",0,j],89831),e.i(43227),e.i(28684);let P=(e,t="6.22.0")=>{if(e)return e;let i=E(t);return i?"snapshot"===i?t:i:O(t)},E=e=>e.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/)?.[1],O=e=>e.trim().replace(/^v/,"").split(".")[0],{isDevOrStagingUrl:T}=(0,g.createDevOrStagingUrlCache)(),I=(0,k.y)({packageName:"@clerk/shared"});
9function A(e){return!("u"<typeof window)&&!!window[e]&&!!window[e]}let R=()=>A("Clerk"),L=()=>A("__internal_ClerkUICtor");function M(e){if("u"<typeof window||!window.performance)return!1;let t=performance.getEntriesByName(e,"resource");if(0===t.length)return!1;let i=t[t.length-1];if(0===i.transferSize&&0===i.decodedBodySize&&(0===i.responseEnd||i.responseEnd>0&&i.responseStart>0||"responseStatus"in i&&(i.responseStatus>=400||0===i.responseStatus)))return!0;return!1}let z=async e=>{let t=e?.scriptLoadTimeout??15e3,i=e=>new m.t("Failed to load Clerk JS"+(e?.message?`, ${e.message}`:""),{code:"failed_to_load_clerk_js",cause:e});if(R())return null;if(!e?.publishableKey)return I.throwMissingPublishableKeyError(),null;let r=x(e),n=document.querySelector("script[data-clerk-js-script]");if(n)if(M(r))n.remove();else try{return await V(t,R,i(),n),null}catch{n.remove()}let s=V(t,R,i());return w(r,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:K(W(e))}).catch(e=>{throw i(e)}),s},N=async e=>{let t=e?.scriptLoadTimeout??15e3,i=e=>new m.t("Failed to load Clerk UI"+(e?.message?`, ${e.message}`:""),{code:"failed_to_load_clerk_ui",cause:e});if(L())return null;if(!e?.publishableKey)return I.throwMissingPublishableKeyError(),null;let r=B(e),n=document.querySelector("script[data-clerk-ui-script]");if(n)if(M(r))n.remove();else try{return await V(t,L,i(),n),null}catch{n.remove()}let s=V(t,L,i());return w(r,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:K(F(e))}).catch(e=>{throw i(e)}),s},x=e=>{let{__internal_clerkJSUrl:t,__internal_clerkJSVersion:i,proxyUrl:r,domain:n,publishableKey:s}=e;if(t)return t;let l=P(i);return r&&v(r)?D(r,"clerk-js",l,"clerk.browser.js"):`https://${$({publishableKey:s,proxyUrl:r,domain:n})}/npm/@clerk/clerk-js@${l}/dist/clerk.browser.js`},B=e=>{let{__internal_clerkUIUrl:t,__internal_clerkUIVersion:i,proxyUrl:r,domain:n,publishableKey:s}=e;if(t)return t;let l=P(i,"1.23.0");return r&&v(r)?D(r,"ui",l,"ui.browser.js"):`https://${$({publishableKey:s,proxyUrl:r,domain:n})}/npm/@clerk/ui@${l}/dist/ui.browser.js`},W=e=>{let t={};return e.publishableKey&&(t["data-clerk-publishable-key"]=e.publishableKey),e.proxyUrl&&(t["data-clerk-proxy-url"]=e.proxyUrl),e.domain&&(t["data-clerk-domain"]=e.domain),e.nonce&&(t.nonce=e.nonce),t},F=e=>W(e),K=e=>t=>{for(let i in e)t.setAttribute(i,e[i])},D=(e,t,i,r)=>`${(e=>{for(;e.endsWith("/");)e=e.slice(0,-1);return e})(e)}/npm/@clerk/${t}@${i}/dist/${r}`,$=e=>{let t,{proxyUrl:i,domain:r,publishableKey:n}=e;if(i&&y(i)){let e=j(i);return v(e)?(0,g.parsePublishableKey)(n)?.frontendApi||"":e.replace(/http(s)?:\/\//,"")}if(!r||T((0,g.parsePublishableKey)(n)?.frontendApi||""))return(0,g.parsePublishableKey)(n)?.frontendApi||"";if(!r)return"";if(r.match(/^(clerk\.)+\w*$/))t=/(clerk\.)*(?=clerk\.)/;else{if(r.match(/\.clerk.accounts/))return r;t=/^(clerk\.)*/gi}return`clerk.${r.replace(t,"")}`};function V(e,t,i,r){return new Promise((n,s)=>{let l=!1,o=(e,t)=>{clearTimeout(e),clearInterval(t)};r?.addEventListener("error",()=>{o(u,d),s(i)});let a=()=>{!l&&t()&&(l=!0,o(u,d),n(null))},u=setTimeout(()=>{l||(l=!0,o(u,d),t()?n(null):s(i))},e);a();let d=setInterval(()=>{l?clearInterval(d):a()},100)})}function J(e){I.setPackageName({packageName:e})}e.s(["buildClerkJSScriptAttributes",0,W,"buildClerkJsScriptAttributes",0,W,"buildClerkUIScriptAttributes",0,F,"clerkJSScriptUrl",0,x,"clerkJsScriptUrl",0,x,"clerkUIScriptUrl",0,B,"loadClerkJSScript",0,z,"loadClerkUIScript",0,N,"setClerkJSLoadingErrorPackageName",0,J,"setClerkJsLoadingErrorPackageName",0,J],81127),e.i(66090);var G=e.i(89406),G=G,X=r,H=e.i(81720);let q=new Set,Y=(e,t,i)=>{let r=(0,H.a)()||(0,H.i)(),n=i??e;q.has(n)||r||(q.add(n),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release.
10${t}`))};var Q=e.i(59312);let Z=(e,t,i,r,n)=>{let{notify:s}=n||{},l=e.get(i);l||(l=[],e.set(i,l)),l.push(r),s&&t.has(i)&&r(t.get(i))},ee=(e,t,i)=>(e.get(t)||[]).map(e=>e(i)),et=(e,t,i)=>{let r=e.get(t);r&&(i?r.splice(r.indexOf(i)>>>0,1):e.set(t,[]))},ei="status",er=(0,i.z)(({clerk:e,...t})=>{let{client:i,session:r}=e,n=(i.signedInSessions?.length??0)>0;return f.default.useEffect(()=>{null===r&&n?e.redirectToAfterSignOut():e.redirectToSignIn(t)},[]),null},"RedirectToSignIn"),en=(0,i.z)(({clerk:e,...t})=>(f.default.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp"),es=(0,i.z)(({clerk:e,...t})=>(f.default.useEffect(()=>{e.redirectToTasks(t)},[]),null),"RedirectToTasks"),el=(0,i.z)(({clerk:e})=>(f.default.useEffect(()=>{Y("RedirectToUserProfile","Use the `redirectToUserProfile()` method instead."),e.redirectToUserProfile()},[]),null),"RedirectToUserProfile"),eo=(0,i.z)(({clerk:e})=>(f.default.useEffect(()=>{Y("RedirectToOrganizationProfile","Use the `redirectToOrganizationProfile()` method instead."),e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile"),ea=(0,i.z)(({clerk:e})=>(f.default.useEffect(()=>{Y("RedirectToCreateOrganization","Use the `redirectToCreateOrganization()` method instead."),e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization"),eu=(0,i.z)(({clerk:e,...t})=>(f.default.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback"),ed=()=>({pathRoot:"",attempts:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,message:null,status:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,reload(){throw Error("reload() called before Clerk is loaded")},__internal_toSnapshot:()=>({object:"verification",id:"",attempts:null,error:{code:"",message:""},expire_at:null,externalVerificationRedirectURL:null,nonce:null,message:null,status:null,strategy:null,verified_at_client:null})}),eh=()=>({...ed(),supportedStrategies:[],nextAction:"",reload(){throw Error("reload() called before Clerk is loaded")},__internal_toSnapshot(){return{...ed().__internal_toSnapshot(),next_action:this.nextAction,supported_strategies:this.supportedStrategies}}});var ec=class{constructor(e){this.isomorphicClerk=e,this.signInSignalProxy=this.buildSignInProxy(),this.signUpSignalProxy=this.buildSignUpProxy(),this.waitlistSignalProxy=this.buildWaitlistProxy()}signInSignal(){return this.signInSignalProxy}signUpSignal(){return this.signUpSignalProxy}waitlistSignal(){return this.waitlistSignalProxy}get __internal_waitlist(){return this.state.__internal_waitlist}checkoutSignal(e){return this.buildCheckoutProxy(e)}buildSignInProxy(){let e=this.gateProperty.bind(this),t=()=>this.client.signIn.__internal_future;return{errors:{fields:{identifier:null,password:null,code:null},raw:null,global:null},fetchStatus:"idle",signIn:{status:"needs_identifier",availableStrategies:[],get isTransferable(){return e(t,"isTransferable",!1)},get id(){return e(t,"id",void 0)}
10,get supportedFirstFactors(){return e(t,"supportedFirstFactors",[])},get supportedSecondFactors(){return e(t,"supportedSecondFactors",[])},get secondFactorVerification(){return e(t,"secondFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw Error("__internal_toSnapshot called before Clerk is loaded")}})},get identifier(){return e(t,"identifier",null)},get createdSessionId(){return e(t,"createdSessionId",null)},get userData(){return e(t,"userData",{})},get firstFactorVerification(){return e(t,"firstFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw Error("__internal_toSnapshot called before Clerk is loaded")}})},get canBeDiscarded(){return e(t,"canBeDiscarded",!1)},create:this.gateMethod(t,"create"),password:this.gateMethod(t,"password"),sso:this.gateMethod(t,"sso"),finalize:this.gateMethod(t,"finalize"),reset:this.gateMethod(t,"reset"),emailCode:this.wrapMethods(()=>t().emailCode,["sendCode","verifyCode"]),emailLink:this.wrapStruct(()=>t().emailLink,["sendLink","waitForVerification"],["verification"],{verification:null}),resetPasswordEmailCode:this.wrapMethods(()=>t().resetPasswordEmailCode,["sendCode","verifyCode","submitPassword"]),resetPasswordPhoneCode:this.wrapMethods(()=>t().resetPasswordPhoneCode,["sendCode","verifyCode","submitPassword"]),phoneCode:this.wrapMethods(()=>t().phoneCode,["sendCode","verifyCode"]),mfa:this.wrapMethods(()=>t().mfa,["sendPhoneCode","verifyPhoneCode","sendEmailCode","verifyEmailCode","verifyTOTP","verifyBackupCode"]),ticket:this.gateMethod(t,"ticket"),passkey:this.gateMethod(t,"passkey"),web3:this.gateMethod(t,"web3")}}}buildSignUpProxy(){let e=this.gateProperty.bind(this),t=this.gateMethod.bind(this),i=()=>this.client.signUp.__internal_future;return{errors:{fields:{firstName:null,lastName:null,emailAddress:null,phoneNumber:null,password:null,username:null,code:null,captcha:null,legalAccepted:null},raw:null,global:null},fetchStatus:"idle",signUp:{get id(){return e(i,"id",void 0)},get requiredFields(){return e(i,"requiredFields",[])},get optionalFields(){return e(i,"optionalFields",[])},get missingFields(){return e(i,"missingFields",[])},get username(){return e(i,"username",null)},get firstName(){return e(i,"firstName",null)},get lastName(){return e(i,"lastName",null)},get emailAddress(){return e(i,"emailAddress",null)},get phoneNumber(){return e(i,"phoneNumber",null)},get web3Wallet(){return e(i,"web3Wallet",null)},get hasPassword(){return e(i,"hasPassword",!1)},get unsafeMetadata(){return e(i,"unsafeMetadata",{})},get createdSessionId(){return e(i,"createdSessionId",null)},get createdUserId(){return e(i,"createdUserId",null)},get abandonAt(){return e(i,"abandonAt",null)},get legalAcceptedAt(){return e(i,"legalAcceptedAt",null)},get locale(){return e(i,"locale",null)},get status(){return e(i,"status","missing_requirements")},get unverifiedFields(){return e(i,"unverifiedFields",[])},get isTransferable(){return e(i,"isTransferable",!1)},get canBeDiscarded(){return e(i,"canBeDiscarded",!1)},create:t(i,"create"),update:t(i,"update"),sso:t(i,"sso"),password:t(i,"password"),ticket:t(i,"ticket"),web3:t(i,"web3"),finalize:t(i,"finalize"),reset:t(i,"reset"),verifications:this.wrapStruct(()=>i().verifications,["sendEmailCode","verifyEmailCode","sendEmailLink","waitForEmailLinkVerification","sendPhoneCode","verifyPhoneCode"],["emailAddress","phoneNumber","web3Wallet","externalAccount","emailLinkVerification"],{emailAddress:eh(),phoneNumber:eh(),web3Wallet:eh(),externalAccount:eh(),emailLinkVerification:null})}}}buildWaitlistProxy(){let e=this.gateProperty.bind(this),t=this.gateMethod.bind(this),i=()=>this.state.__internal_waitlist;return{errors:{fields:{emailAddress:null},raw:null,global:null},fetchStatus:"idle",waitlist:{pathRoot:"/waitlist",get id(){return e(i,"id","")},get createdAt(){return e(i,"createdAt",null)},get updatedAt(){return e(i,"updatedAt",null)},join:t(i,"join"),reload:t(i,"reload")}}}buildCheckoutProxy(e){let t=this.gateProperty.bind(this),i=()=>this.checkout(e),r=()=>i().checkout;return{errors:{raw:null,global:null},fetchStatus:"idle",checkout:{get status(){return t(r,"status","needs_initialization")},get externalClientSecret(){return t(r,"externalClientSecret",null)},get externalGatewayId(){return t(r,"externalGatewayId",null)},get paymentMethod(){return t(r,"paymentMethod",null)},get plan(){return t(r,"plan",null)},get planPeriod(){return t(r,"planPeriod",null)},get totals(){return t(r,"totals",null)},get isImmediatePlanChange(){return t(r,"isImmediatePlanChange",!1)},get freeTrialEndsAt(){return t(r,"freeTrialEndsAt",null)},get payer(){return t(r,"payer",null)},get planPeriodStart(){return t(r,"planPeriodStart",null)},get needsPaymentMethod(){return t(r,"needsPaymentMethod",null)},start:this.gateMethod(r,"start"),confirm:this.gateMethod(r,"confirm"),finalize:this.gateMethod(r,"finalize")}}}__internal_effect(e){throw Error("__internal_effect called before Clerk is loaded")}__internal_computed(e){throw Error("__internal_computed called before Clerk is loaded")}get state(){let e=this.isomorphicClerk.__internal_state;if(!e)throw Error("Clerk state not ready");return e}get client(){let e=this.isomorphicClerk.client;if(!e)throw Error("Clerk client not ready");return e}get checkout(){let e=this.isomorphicClerk.__experimental_checkout;if(!e)throw Error("Clerk checkout not ready");return e}gateProperty(e,t,i){return(0,Q.inBrowser)()&&this.isomorphicClerk.loaded?e()[t]:i}gateMethod(e,i){return async(...r)=>{if(!(0,Q.inBrowser)())return t.r.throw(`Attempted to call a method (${i}) that is not supported on the server.`);this.isomorphicClerk.loaded||await new Promise(e=>this.isomorphicClerk.addOnLoaded(e));let n=e();return n[i].apply(n,r)}}wrapMethods(e,t){return Object.fromEntries(t.map(t=>[t,this.gateMethod(e,t)]))}wrapStruct(e,t,i,r){let n={};for(let i of t)n[i]=this.gateMethod(e,i);for(let t of i)Object.defineProperty(n,t,{get:()=>this.gateProperty(e,t,r[t]),enumerable:!0});return n}};void 0===globalThis.__BUILD_DISABLE_RHC__&&(globalThis.__BUILD_DISABLE_RHC__=!1);let ep={name:"@clerk/react",version:"6.11.1",environment:"production"};var ef=class e{#e;#t;#i;#r;#n;#s;get publishableKey(){return this.#r}get loaded(){return this.clerkjs?.loaded||!1}get status(){return this.clerkjs?this.clerkjs?.status||(this.clerkjs.loaded?"ready":"loading"):this.#e}static #l;static getOrCreateInstance(t){return(0,Q.inBrowser)()&&this.#l&&(!t.Clerk||this.#l.Clerk===t.Clerk)&&this.#l.publishableKey===t.publishableKey||(this.#l=ne
10w e(t)),this.#l}static clearInstance(){this.#l=null}get domain(){return"u">typeof window&&window.location?(0,G.t)(this.#t,new URL(window.location.href),""):"function"==typeof this.#t?t.r.throw(i.Y):this.#t||""}get proxyUrl(){return"u">typeof window&&window.location?(0,G.t)(this.#i,new URL(window.location.href),""):"function"==typeof this.#i?t.r.throw(i.Y):this.#i||""}__internal_getOption(e){return this.clerkjs?.__internal_getOption?this.clerkjs?.__internal_getOption(e):this.options[e]}constructor(e){this.clerkjs=null,this.preopenOneTap=null,this.preopenUserVerification=null,this.preopenEnableOrganizationsPrompt=null,this.preopenSignIn=null,this.preopenCheckout=null,this.preopenPlanDetails=null,this.preopenSubscriptionDetails=null,this.preopenSignUp=null,this.preopenUserProfile=null,this.preopenOrganizationProfile=null,this.preopenCreateOrganization=null,this.preOpenWaitlist=null,this.premountSignInNodes=new Map,this.premountSignUpNodes=new Map,this.premountUserAvatarNodes=new Map,this.premountUserProfileNodes=new Map,this.premountUserButtonNodes=new Map,this.premountOrganizationProfileNodes=new Map,this.premountCreateOrganizationNodes=new Map,this.premountOrganizationSwitcherNodes=new Map,this.premountOrganizationListNodes=new Map,this.premountMethodCalls=new Map,this.premountWaitlistNodes=new Map,this.premountPricingTableNodes=new Map,this.premountAPIKeysNodes=new Map,this.premountConfigureSSONodes=new Map,this.premountOAuthConsentNodes=new Map,this.premountTaskChooseOrganizationNodes=new Map,this.premountTaskResetPasswordNodes=new Map,this.premountTaskSetupMFANodes=new Map,this.premountAddListenerCalls=new Map,this.loadedListeners=[],this.#e="loading",this.#n=(()=>{let e,t,i;return e=new Map,t=new Map,i=new Map,{on:(...i)=>Z(e,t,...i),prioritizedOn:(...e)=>Z(i,t,...e),emit:(r,n)=>{t.set(r,n),ee(i,r,n),ee(e,r,n)},off:(...t)=>et(e,...t),prioritizedOff:(...e)=>et(i,...e),internal:{retrieveListeners:t=>e.get(t)||[]}}})(),this.buildSignInUrl=e=>{let t=()=>this.clerkjs?.buildSignInUrl(e)||"";if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildSignInUrl",t)},this.buildSignUpUrl=e=>{let t=()=>this.clerkjs?.buildSignUpUrl(e)||"";if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildSignUpUrl",t)},this.buildAfterSignInUrl=(...e)=>{let t=()=>this.clerkjs?.buildAfterSignInUrl(...e)||"";if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildAfterSignInUrl",t)},this.buildAfterSignUpUrl=(...e)=>{let t=()=>this.clerkjs?.buildAfterSignUpUrl(...e)||"";if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildAfterSignUpUrl",t)},this.buildAfterSignOutUrl=()=>{let e=()=>this.clerkjs?.buildAfterSignOutUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildAfterSignOutUrl",e)},this.buildNewSubscriptionRedirectUrl=()=>{let e=()=>this.clerkjs?.buildNewSubscriptionRedirectUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildNewSubscriptionRedirectUrl",e)},this.buildAfterMultiSessionSingleSignOutUrl=()=>{let e=()=>this.clerkjs?.buildAfterMultiSessionSingleSignOutUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildAfterMultiSessionSingleSignOutUrl",e)},this.buildUserProfileUrl=()=>{let e=()=>this.clerkjs?.buildUserProfileUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildUserProfileUrl",e)},this.buildCreateOrganizationUrl=()=>{let e=()=>this.clerkjs?.buildCreateOrganizationUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildCreateOrganizationUrl",e)},this.buildOrganizationProfileUrl=()=>{let e=()=>this.clerkjs?.buildOrganizationProfileUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildOrganizationProfileUrl",e)},this.buildWaitlistUrl=()=>{let e=()=>this.clerkjs?.buildWaitlistUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildWaitlistUrl",e)},this.buildTasksUrl=()=>{let e=()=>this.clerkjs?.buildTasksUrl()||"";if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("buildTasksUrl",e)},this.buildUrlWithAuth=e=>{let t=()=>this.clerkjs?.buildUrlWithAuth(e)||"";if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("buildUrlWithAuth",t)},this.handleUnauthenticated=async()=>{let e=()=>this.clerkjs?.handleUnauthenticated();this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("handleUnauthenticated",e)},this.on=(...e)=>{if(this.clerkjs?.on)return this.clerkjs.on(...e);this.#n.on(...e)}
10,this.off=(...e)=>{if(this.clerkjs?.off)return this.clerkjs.off(...e);this.#n.off(...e)},this.addOnLoaded=e=>{this.loadedListeners.push(e),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>{this.loadedListeners.forEach(e=>e()),this.loadedListeners=[]},this.beforeLoad=e=>{if(!e)throw Error("Failed to hydrate latest Clerk JS")},this.replayInterceptedInvocations=e=>{if(!e)throw Error("Failed to hydrate latest Clerk JS");return this.clerkjs=e,this.premountMethodCalls.forEach(e=>e()),this.premountAddListenerCalls.forEach((t,i)=>{t.handlers.nativeUnsubscribe=e.addListener(i,t.options)}),this.#n.internal.retrieveListeners("status")?.forEach(e=>{this.on("status",e,{notify:!0})}),null!==this.preopenSignIn&&e.openSignIn(this.preopenSignIn),null!==this.preopenCheckout&&e.__internal_openCheckout(this.preopenCheckout),null!==this.preopenPlanDetails&&e.__internal_openPlanDetails(this.preopenPlanDetails),null!==this.preopenSubscriptionDetails&&e.__internal_openSubscriptionDetails(this.preopenSubscriptionDetails),null!==this.preopenSignUp&&e.openSignUp(this.preopenSignUp),null!==this.preopenUserProfile&&e.openUserProfile(this.preopenUserProfile),null!==this.preopenUserVerification&&e.__internal_openReverification(this.preopenUserVerification),null!==this.preopenOneTap&&e.openGoogleOneTap(this.preopenOneTap),null!==this.preopenOrganizationProfile&&e.openOrganizationProfile(this.preopenOrganizationProfile),null!==this.preopenCreateOrganization&&e.openCreateOrganization(this.preopenCreateOrganization),null!==this.preOpenWaitlist&&e.openWaitlist(this.preOpenWaitlist),this.preopenEnableOrganizationsPrompt&&e.__internal_openEnableOrganizationsPrompt(this.preopenEnableOrganizationsPrompt),this.premountSignInNodes.forEach((t,i)=>{e.mountSignIn(i,t)}),this.premountSignUpNodes.forEach((t,i)=>{e.mountSignUp(i,t)}),this.premountUserProfileNodes.forEach((t,i)=>{e.mountUserProfile(i,t)}),this.premountUserAvatarNodes.forEach((t,i)=>{e.mountUserAvatar(i,t)}),this.premountUserButtonNodes.forEach((t,i)=>{e.mountUserButton(i,t)}),this.premountOrganizationListNodes.forEach((t,i)=>{e.mountOrganizationList(i,t)}),this.premountWaitlistNodes.forEach((t,i)=>{e.mountWaitlist(i,t)}),this.premountPricingTableNodes.forEach((t,i)=>{e.mountPricingTable(i,t)}),this.premountAPIKeysNodes.forEach((t,i)=>{e.mountAPIKeys(i,t)}),this.premountConfigureSSONodes.forEach((t,i)=>{e.__internal_mountConfigureSSO(i,t)}),this.premountOAuthConsentNodes.forEach((t,i)=>{e.__internal_mountOAuthConsent(i,t)}),this.premountTaskChooseOrganizationNodes.forEach((t,i)=>{e.mountTaskChooseOrganization(i,t)}),this.premountTaskResetPasswordNodes.forEach((t,i)=>{e.mountTaskResetPassword(i,t)}),this.premountTaskSetupMFANodes.forEach((t,i)=>{e.mountTaskSetupMFA(i,t)}),void 0===this.clerkjs.status&&this.#n.emit(ei,"ready"),this.emitLoaded(),this.clerkjs},this.__experimental_checkout=(...e)=>this.loaded&&this.clerkjs?this.clerkjs.__experimental_checkout(...e):this.#s.checkoutSignal(...e),this.__internal_updateProps=async e=>{let t=await this.#o();if(t&&"__internal_updateProps"in t)return t.__internal_updateProps(e)},this.setActive=e=>this.clerkjs?this.clerkjs.setActive(e):Promise.reject(),this.openSignIn=e=>{this.clerkjs&&this.loaded?this.clerkjs.openSignIn(e):this.preopenSignIn=e},this.closeSignIn=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.__internal_openCheckout=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openCheckout(e):this.preopenCheckout=e},this.__internal_closeCheckout=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeCheckout():this.preopenCheckout=null},this.__internal_openPlanDetails=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openPlanDetails(e):this.preopenPlanDetails=e},this.__internal_closePlanDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closePlanDetails():this.preopenPlanDetails=null},this.__internal_openSubscriptionDetails=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openSubscriptionDetails(e):this.preopenSubscriptionDetails=e??null},this.__internal_closeSubscriptionDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeSubscriptionDetail
10s():this.preopenSubscriptionDetails=null},this.__internal_openReverification=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openReverification(e):this.preopenUserVerification=e},this.__internal_closeReverification=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeReverification():this.preopenUserVerification=null},this.__internal_openEnableOrganizationsPrompt=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openEnableOrganizationsPrompt(e):this.preopenEnableOrganizationsPrompt=e},this.__internal_closeEnableOrganizationsPrompt=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeEnableOrganizationsPrompt():this.preopenEnableOrganizationsPrompt=null},this.openGoogleOneTap=e=>{this.clerkjs&&this.loaded?this.clerkjs.openGoogleOneTap(e):this.preopenOneTap=e},this.closeGoogleOneTap=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.openUserProfile(e):this.preopenUserProfile=e},this.closeUserProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.openOrganizationProfile(e):this.preopenOrganizationProfile=e},this.closeOrganizationProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openCreateOrganization=e=>{this.clerkjs&&this.loaded?this.clerkjs.openCreateOrganization(e):this.preopenCreateOrganization=e},this.closeCreateOrganization=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openWaitlist=e=>{this.clerkjs&&this.loaded?this.clerkjs.openWaitlist(e):this.preOpenWaitlist=e},this.closeWaitlist=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeWaitlist():this.preOpenWaitlist=null},this.openSignUp=e=>{this.clerkjs&&this.loaded?this.clerkjs.openSignUp(e):this.preopenSignUp=e},this.closeSignUp=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignUp():this.preopenSignUp=null},this.mountSignIn=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignIn(e,t):this.premountSignInNodes.set(e,t)},this.unmountSignIn=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignIn(e):this.premountSignInNodes.delete(e)},this.mountSignUp=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignUp(e,t):this.premountSignUpNodes.set(e,t)},this.unmountSignUp=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignUp(e):this.premountSignUpNodes.delete(e)},this.mountUserAvatar=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserAvatar(e,t):this.premountUserAvatarNodes.set(e,t)},this.unmountUserAvatar=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserAvatar(e):this.premountUserAvatarNodes.delete(e)},this.mountUserProfile=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserProfile(e,t):this.premountUserProfileNodes.set(e,t)},this.unmountUserProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserProfile(e):this.premountUserProfileNodes.delete(e)},this.mountOrganizationProfile=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationProfile(e,t):this.premountOrganizationProfileNodes.set(e,t)},this.unmountOrganizationProfile=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationProfile(e):this.premountOrganizationProfileNodes.delete(e)},this.mountCreateOrganization=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountCreateOrganization(e,t):this.premountCreateOrganizationNodes.set(e,t)},this.unmountCreateOrganization=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountCreateOrganization(e):this.premountCreateOrganizationNodes.delete(e)},this.mountOrganizationSwitcher=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationSwitcher(e,t):this.premountOrganizationSwitcherNodes.set(e,t)},this.unmountOrganizationSwitcher=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationSwitcher(e):this.premountOrganizationSwitcherNodes.delete(e)},this.__experimental_prefetchOrganizationSwitcher=()=>{let e=()=>this.clerkjs?.__experimental_prefetchOrganizationSwitcher();this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("__experimental_prefetchOrganizationSwitcher",e)},this.mountOrganizationList=(e,t)=>
10{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationList(e,t):this.premountOrganizationListNodes.set(e,t)},this.unmountOrganizationList=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationList(e):this.premountOrganizationListNodes.delete(e)},this.mountUserButton=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserButton(e,t):this.premountUserButtonNodes.set(e,t)},this.unmountUserButton=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserButton(e):this.premountUserButtonNodes.delete(e)},this.mountWaitlist=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountWaitlist(e,t):this.premountWaitlistNodes.set(e,t)},this.unmountWaitlist=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountWaitlist(e):this.premountWaitlistNodes.delete(e)},this.mountPricingTable=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountPricingTable(e,t):this.premountPricingTableNodes.set(e,t)},this.unmountPricingTable=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountPricingTable(e):this.premountPricingTableNodes.delete(e)},this.mountAPIKeys=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountAPIKeys(e,t):this.premountAPIKeysNodes.set(e,t)},this.unmountAPIKeys=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountAPIKeys(e):this.premountAPIKeysNodes.delete(e)},this.__internal_mountConfigureSSO=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountConfigureSSO(e,t):this.premountConfigureSSONodes.set(e,t)},this.__internal_unmountConfigureSSO=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountConfigureSSO(e):this.premountConfigureSSONodes.delete(e)},this.__internal_mountOAuthConsent=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountOAuthConsent(e,t):this.premountOAuthConsentNodes.set(e,t)},this.__internal_unmountOAuthConsent=e=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountOAuthConsent(e):this.premountOAuthConsentNodes.delete(e)},this.mountOAuthConsent=(e,t)=>{this.__internal_mountOAuthConsent(e,t)},this.unmountOAuthConsent=e=>{this.__internal_unmountOAuthConsent(e)},this.mountTaskChooseOrganization=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskChooseOrganization(e,t):this.premountTaskChooseOrganizationNodes.set(e,t)},this.unmountTaskChooseOrganization=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskChooseOrganization(e):this.premountTaskChooseOrganizationNodes.delete(e)},this.mountTaskResetPassword=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskResetPassword(e,t):this.premountTaskResetPasswordNodes.set(e,t)},this.unmountTaskResetPassword=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskResetPassword(e):this.premountTaskResetPasswordNodes.delete(e)},this.mountTaskSetupMFA=(e,t)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskSetupMFA(e,t):this.premountTaskSetupMFANodes.set(e,t)},this.unmountTaskSetupMFA=e=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskSetupMFA(e):this.premountTaskSetupMFANodes.delete(e)},this.addListener=(e,t)=>{if(this.clerkjs)return this.clerkjs.addListener(e,t);{let i=()=>{let t=this.premountAddListenerCalls.get(e);t?.handlers&&(t?.handlers.nativeUnsubscribe?.(),this.premountAddListenerCalls.delete(e))};return this.premountAddListenerCalls.set(e,{options:t,handlers:{unsubscribe:i,nativeUnsubscribe:void 0}}),i}},this.navigate=e=>{let t=()=>this.clerkjs?.navigate(e);this.clerkjs&&this.loaded?t():this.premountMethodCalls.set("navigate",t)},this.redirectWithAuth=async(...e)=>{let t=()=>this.clerkjs?.redirectWithAuth(...e);return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectWithAuth",t)},this.redirectToSignIn=async e=>{let t=()=>this.clerkjs?.redirectToSignIn(e);return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectToSignIn",t)},this.redirectToSignUp=async e=>{let t=()=>this.clerkjs?.redirectToSignUp(e);return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectToSignUp",t)},this.redirectToUserProfile=async()=>{let e=()=>this.clerkjs?.redirectToUserProfile();return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToUserProfile",e)},this.redirectToAfterSignUp=()=>{let e=()=>this.clerkjs?.redirectToAfterSignUp();if(this.clerkjs&&this.loaded)return e();this.premountMethodCalls.set("redirectToAfterSignUp",e)},this.redirectToAfterSignIn=()=>{let e=()=>this.clerkjs?.redirectToAfterSignIn();this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("redirectToAfterSignIn",e)},this.redirectToAfterSignOut=()=>{let e=()=>this.clerkjs?.redirectToAfterSignOut();this.clerkjs&&this.loaded?e():this.premountMethodCalls.set("redirectToAfterSignOut",e)},this.redirectToOrganizationProfile=async()=>{let e=()=>this.clerkjs?.redirectToOrganizationProfile();return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToOrganizationProfile",e)},this.redirectToCreateOrganization=async()=>{let e=()=>this.clerkjs?.redirectToCreateOrganization();return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToCreateOrganization",e)},this.redirectToWaitlist=async()=>{let e=()=>this.clerkjs?.redirectToWaitlist();return this.clerkjs&&this.loaded?e():void this.premountMethodCalls.set("redirectToWaitlist",e)},this.redirectToTasks=async e=>{let t=()=>this.clerkjs?.redirectToTasks(e);return this.clerkjs&&this.loaded?t():void this.premountMethodCalls.set("redirectToTasks",t)},this.handleRedirectCallback=async e=>{let t=()=>this.clerkjs?.handleRedirectCallback(e);this.clerkjs&&this.loaded?t()?.catch(()=>{}):this.premountMethodCalls.set("handleRedirectCallback",t)},this.handleGoogleOneTapCallback=async(e,t)=>{let i=()=>this.clerkjs?.handleGoogleOneTapCallback(e,t);this.clerkjs&&this.loaded?i()?.catch(()=>{}):this.premountMethodCalls.set("handleGoogleOneTapCallback",i)},this.__internal_handleResourceCallback=async(e,t,i)=>{let r=()=>this.clerkjs?.__internal_handleResourceCallback(e,t,i);if(this.clerkjs&&this.loaded)return r();this.premountMethodCalls.set("__internal_handleResourceCallback",r)},this.handleEmailLinkVerification=async e=>{let t=()=>this.clerkjs?.handleEmailLinkVerification(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("handleEmailLinkVerification",t)},this.authenticateWithMetamask=async e=>{let t=()=>this.clerkjs?.authenticateWithMetamask(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithMetamask",t)},this.authenticateWithCoinbaseWallet=async e=>{let t=()=>this.clerkjs?.authenticateWithCoinbaseWallet(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithCoinbaseWallet",t)},this.authenticateWithBase=async e=>{let t=()=>this.clerkjs?.authenticateWithBase(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithBase",t)},this.authenticateWithOKXWallet=async e=>{let t=()=>this.clerkjs?.authenticateWithOKXWallet(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithOKXWallet",t)},this.authenticateWithSolana=async e=>{let t=()=>this.clerkjs?.authenticateWithSolana(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithSolana",t)},this.authenticateWithWeb3=async e=>{let t=()=>this.clerkjs?.authenticateWithWeb3(e);
10if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("authenticateWithWeb3",t)},this.authenticateWithGoogleOneTap=async e=>(await this.#o()).authenticateWithGoogleOneTap(e),this.__internal_loadStripeJs=async()=>(await this.#o()).__internal_loadStripeJs(),this.createOrganization=async e=>{let t=()=>this.clerkjs?.createOrganization(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("createOrganization",t)},this.getOrganization=async e=>{let t=()=>this.clerkjs?.getOrganization(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("getOrganization",t)},this.joinWaitlist=async e=>{let t=()=>this.clerkjs?.joinWaitlist(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("joinWaitlist",t)},this.signOut=async(...e)=>{let t=()=>this.clerkjs?.signOut(...e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("signOut",t)},this.__internal_attemptToEnableEnvironmentSetting=e=>{let t=()=>this.clerkjs?.__internal_attemptToEnableEnvironmentSetting(e);if(this.clerkjs&&this.loaded)return t();this.premountMethodCalls.set("__internal_attemptToEnableEnvironmentSetting",t)},this.#r=e?.publishableKey,this.#i=e?.proxyUrl,this.#t=e?.domain,this.options=e,this.Clerk=e?.Clerk||null,this.mode=(0,Q.inBrowser)()?"browser":"server",this.#s=new ec(this),this.options.sdkMetadata||(this.options.sdkMetadata=ep),this.#n.emit(ei,"loading"),this.#n.prioritizedOn(ei,e=>this.#e=e),this.#r&&this.options.experimental?.runtimeEnvironment==="headless"&&this.options.Clerk?this.loadHeadlessClerk():this.#r&&this.getEntryChunks()}loadHeadlessClerk(){let e=(0,i.V)(this.options.Clerk)?new this.options.Clerk(this.#r,{proxyUrl:this.proxyUrl,domain:this.domain}):this.options.Clerk;if(!e)return void this.#n.emit(ei,"error");let t=()=>{this.replayInterceptedInvocations(e)};e.loaded?t():e.load(this.options).then(()=>t()).catch(e=>{this.#n.emit(ei,"error"),this.emitLoaded()})}get sdkMetadata(){return this.clerkjs?.sdkMetadata||this.options.sdkMetadata||void 0}get instanceType(){return this.clerkjs?.instanceType}get frontendApi(){return this.clerkjs?.frontendApi||""}get isStandardBrowser(){return this.clerkjs?.isStandardBrowser||this.options.standardBrowser||!1}get isSatellite(){return"u">typeof window&&window.location?(0,G.t)(this.options.isSatellite,new URL(window.location.href),!1):"function"==typeof this.options.isSatellite&&t.r.throw(i.Y)}#o(){return new Promise(e=>{this.addOnLoaded(()=>e(this.clerkjs))})}async getEntryChunks(){if("browser"===this.mode&&!this.loaded){"u">typeof window&&(window.__clerk_publishable_key=this.#r,window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{let e=await this.getClerkJsEntryChunk();if(!e.loaded){this.beforeLoad(e);let t=!1!==this.options.standardBrowser&&!this.options.Clerk||this.options.ui?.ClerkUI?await this.getClerkUIEntryChunk():void 0;await e.load({...this.options,ui:{...this.options.ui,ClerkUI:t}})}e.loaded&&this.replayInterceptedInvocations(e)}catch(e){this.#n.emit(ei,"error"),console.error(e.stack||e.message||e);return}}}async getClerkJsEntryChunk(){if(this.options.Clerk&&!this.options.__internal_clerkJSUrl||__BUILD_DISABLE_RHC__||await z({...this.options,publishableKey:this.#r,proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),this.options.Clerk&&!this.options.__internal_clerkJSUrl&&(globalThis.Clerk=(0,i.V)(this.options.Clerk)?new this.options.Clerk(this.#r,{proxyUrl:this.proxyUrl,domain:this.domain}):this.options.Clerk),!globalThis.Clerk)throw Error("Failed to download latest ClerkJS. Contact [email protected].");return globalThis.Clerk}async getClerkUIEntryChunk(){let e=this.options.ui,t=!!this.options.__internal_clerkUIUrl;if(e?.ClerkUI&&!t)return e.ClerkUI;if((!e&&!1!==this.options.prefetchUI||t)&&!__BUILD_DISABLE_RHC__){if(await N({...this.options,publishableKey:this.#r,proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),!globalThis.__internal_ClerkUICtor)throw Error("Failed to download latest Clerk UI. Contact [email protected].");return globalThis.__internal_ClerkUICtor}}get version(){return this.clerkjs?.version}get uiVersion(){return this.clerkjs?.uiVersion}get client(){return this.clerkjs?this.clerkjs.client:void 0}get session(){return this.clerkjs?this.clerkjs.session:void 0}get user(){return this.clerkjs?this.clerkjs.user:void 0}get organization(){return this.clerkjs?this.clerkjs.organization:void 0}get telemetry(){return this.clerkjs?this.clerkjs.telemetry:void 0}get __internal_environment(){return this.clerkjs?this.clerkjs.__internal_environment:void 0}get isSignedIn(){return!!this.clerkjs&&this.clerkjs.isSignedIn}get billing(){return this.clerkjs?.billing}get __internal_state(){return this.loaded&&this.clerkjs?this.clerkjs.__internal_state:this.#s}get apiKeys(){return this.clerkjs?.apiKeys}get oauthApplication(){return this.clerkjs?.oauthApplication}__internal_setEnvironment(...e){this.clerkjs&&"__internal_setEnvironment"in this.clerkjs&&this.clerkjs.__internal_setEnvironment(e)}get __internal_lastEmittedResources(){return this.clerkjs?.__internal_lastEmittedResources}get __internal_hasOAuthTransport(){return this.clerkjs?.__internal_hasOAuthTransport||!1}get __internal_oauthTransport(){return this.clerkjs?.__internal_oauthTransport||null}};let eg=function(){try{var e,t;let i;return e=f.default.version,t=[[18,0,-1,0],[19,0,0,3],[19,1,1,4],[19,2,2,3],[19,3,3,0]],!!(i=function(e){let t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(!t)return null;let[,i,r,n]=t;return{major:parseInt(i,10),minor:parseInt(r,10),patch:parseInt(n,10)}}(e))&&function(e,t){let{major:i,minor:r,patch:n}=e;return t.some(([e,t,s,l])=>i===e&&(-1===s?r>t||r===t&&n>=l:r===s&&n>=l))}(i,t)}catch{return!1}}(),em=(0,i.B)(function(e){let{initialState:t,children:r,...n}=e,{isomorphicClerk:s,clerkStatus:l}=e_((0,i.H)(n));return f.default.createElement(X.ClerkContextProvider,{initialState:t,clerk:s,clerkStatus:l},r)},"ClerkProvider",i.q);em.displayName="ClerkProvider";let ek=eg?"shared":"",e_=e=>{let t=f.default.useMemo(()=>({clerkUIVariant:ek,...e}),[e]),i=f.default.useRef(ef.getOrCreateInstance(t)),[r,n]=f.default.useState(i.current.status);return f.default.useEffect(()=>{i.current.__internal_updateProps({appearance:e.appearance})},[e.appearance]),f.default.useEffect(()=>{i.current.__internal_updateProps({options:e})},[e.localization]),f.default.useEffect(()=>(i.current.on("status",n),()=>{i.current&&i.current.off("status",n),ef.clearInstance()}),[]),{isomorphicClerk:i.current,clerkStatus:r}};e.s(["a",0,({children:e})=>((0,t.t)("ClerkFailed"),"error"!==(0,t.n)().status)?null:e,"c",0,({children:e})=>{(0,t.t)("MultisessionAppSupport");let i=(0,X.__internal_useSessionBase)();return f.default.createElement(f.default.Fragment,{key:i?i.id:"no-users"},e)},"d",0,er,"f",0,en,"h",0,({children:e,fallback:r,treatPendingAsSignedOut:n,when:s})=>{var l,o;(0,t.t)("Show");let{has:a,isLoaded:u,userId:d}=(0,i.b)({treatPendingAsSignedOut:n});if(!u)return null;let h=r??null;return"signed-out"===s?d?h:e:d&&("signed-in"===s||(l=s,o=a,"function"==typeof l?l(o):o(l)))?e:h},"i",0,({children:e})=>((0,t.t)("ClerkDegraded"),"degraded"!==(0,t.n)().status)?null:e,"l",0,ea,"m",0,el,"n",0,eg,"o",0,({children:e})=>((0,t.t)("ClerkLoaded"),(0,t.n)().loaded)?e:null,"p",0,es,"r",0,eu,"s",0,({children:e})=>((0,t.t)("ClerkLoading"),"loading"!==(0,t.n)().status)?null:e,"t",0,em,"u",0,eo],75692);var eC=e.i(74080),eS=e.i(88014),eb=e.i(43476);if("u">typeof window&&!window.global&&(window.global=e.g),globalThis.__clerkSharedModules){let e=globalThis.__clerkSharedModules.react?.ver
10sion;e&&e!==f.version&&console.warn(`[@clerk/ui/register] React version mismatch detected. Already registered: ${e}, current import: ${f.version}. This may cause issues with the shared @clerk/ui variant.`)}else globalThis.__clerkSharedModules={react:f,"react-dom":eC,"react-dom/client":eS,"react/jsx-runtime":eb};let ew=(0,i.z)(({clerk:e,children:t,...r})=>{let{appearance:n,getContainer:s,component:l,signUpFallbackRedirectUrl:o,forceRedirectUrl:a,fallbackRedirectUrl:u,signUpForceRedirectUrl:d,mode:h,initialValues:c,withSignUp:p,oauthFlow:g,...m}=r;t=(0,i.W)(t,"Sign in");let k=(0,i.U)(t)("SignInButton"),_=async t=>{let r;return k&&"object"==typeof k&&"props"in k&&await (0,i.G)(k.props.onClick)(t),r={forceRedirectUrl:a,fallbackRedirectUrl:u,signUpFallbackRedirectUrl:o,signUpForceRedirectUrl:d,initialValues:c,withSignUp:p,oauthFlow:g},"modal"===h?e.openSignIn({...r,appearance:n,getContainer:s}):e.redirectToSignIn({...r,signInFallbackRedirectUrl:u,signInForceRedirectUrl:a})},C={...m,onClick:_};return f.default.cloneElement(k,C)},{component:"SignInButton",renderWhileLoading:!0}),ey=(0,i.z)(({clerk:e,children:t,...r})=>{let{redirectUrl:n,getContainer:s,component:l,...o}=r;t=(0,i.W)(t,"Sign in with Metamask");let a=(0,i.U)(t)("SignInWithMetamaskButton"),u=async()=>{!async function(){await e.authenticateWithMetamask({redirectUrl:n||void 0})}()},d=async e=>(await (0,i.G)(a.props.onClick)(e),u()),h={...o,onClick:d};return f.default.cloneElement(a,h)},{component:"SignInWithMetamask",renderWhileLoading:!0}),ev=(0,i.z)(({clerk:e,children:t,...r})=>{let{redirectUrl:n="/",sessionId:s,signOutOptions:l,getContainer:o,component:a,...u}=r;l&&Y("SignOutButton `signOutOptions`","Use the `redirectUrl` and `sessionId` props directly instead."),t=(0,i.W)(t,"Sign out");let d=(0,i.U)(t)("SignOutButton"),h=async t=>(await (0,i.G)(d.props.onClick)(t),e.signOut({redirectUrl:n,...void 0!==s&&{sessionId:s},...l})),c={...u,onClick:h};return f.default.cloneElement(d,c)},{component:"SignOutButton",renderWhileLoading:!0}),ej=(0,i.z)(({clerk:e,children:t,...r})=>{let{appearance:n,unsafeMetadata:s,getContainer:l,component:o,fallbackRedirectUrl:a,forceRedirectUrl:u,signInFallbackRedirectUrl:d,signInForceRedirectUrl:h,mode:c,initialValues:p,oauthFlow:g,...m}=r;t=(0,i.W)(t,"Sign up");let k=(0,i.U)(t)("SignUpButton"),_=async t=>{let r;return k&&"object"==typeof k&&"props"in k&&await (0,i.G)(k.props.onClick)(t),r={fallbackRedirectUrl:a,forceRedirectUrl:u,signInFallbackRedirectUrl:d,signInForceRedirectUrl:h,initialValues:p,oauthFlow:g},"modal"===c?e.openSignUp({...r,appearance:n,unsafeMetadata:s,getContainer:l}):e.redirectToSignUp({...r,signUpFallbackRedirectUrl:a,signUpForceRedirectUrl:u})},C={...m,onClick:_};return f.default.cloneElement(k,C)},{component:"SignUpButton",renderWhileLoading:!0});(0,t.i)({packageName:"@clerk/react"}),J("@clerk/react"),e.s(["HandleSSOCallback",0,function(e){let{navigateToApp:t,navigateToSignIn:r,navigateToSignUp:n}=e,s=(0,h.s)(),{signIn:l}=(0,i.g)(),{signUp:o}=(0,i._)(),a=(0,f.useRef)(!1);return(0,f.useEffect)(()=>{(async()=>{if(s.loaded&&!a.current){if(a.current=!0,"complete"===l.status)return await l.finalize({navigate:async(...e)=>{t(...e)}});if(o.isTransferable)return(await l.create({transfer:!0}),"complete"===l.status)?await l.finalize({navigate:async(...e)=>{t(...e)}}):r();if("needs_first_factor"===l.status&&!l.supportedFirstFactors?.every(e=>"enterprise_sso"===e.strategy))return r();if(l.isTransferable)return(await o.create({transfer:!0}),"complete"===o.status)?await o.finalize({navigate:async(...e)=>{t(...e)}}):n();if("complete"===o.status)return await o.finalize({navigate:async(...e)=>{t(...e)}});if("needs_second_factor"===l.status||"needs_new_password"===l.status)return r();if(l.existingSession||o.existingSession){let e=l.existingSession?.sessionId||o.existingSession?.sessionId;if(e)return await s.setActive({session:e,navigate:async(...e)=>t(...e)})}}})()},[s,s.loaded,l,o]),f.default.createElement("div",null,f.default.createElement("div",{id:"clerk-captcha"}))},"SignInButton",0,ew,"SignInWithMetamaskButton",0,ey,"SignOutButton",0,ev,"SignUpButton",0,ej],19658)},78673,e=>{"use strict";
10var t=e.i(91297),i=e.i(52367),r=e.i(75692);e.i(81127);var n=e.i(80204);e.i(38297),n.useOAuthConsent,i.T;let s=r.t;e.s(["InternalClerkProvider",0,s,"useRoutingProps",0,function(e,r,n){let s=r.path||n?.path;return"path"===(r.routing||n?.routing||"path")?s?{...n,...r,routing:"path"}:t.r.throw((0,i.J)(e)):r.path?t.r.throw((0,i.K)(e)):{...n,...r,path:void 0}}])},72409,e=>{"use strict";var t=e.i(21730);e.s(["useSession",()=>t.p])},90317,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={bindSnapshot:function(){return u},createAsyncLocalStorage:function(){return a},createSnapshot:function(){return d}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class l{disable(){throw s}getStore(){}run(){throw s}exit(){throw s}enterWith(){throw s}static bind(e){return e}}let o="u">typeof globalThis&&globalThis.AsyncLocalStorage;function a(){return o?new o:new l}function u(e){return o?o.bind(e):l.bind(e)}function d(){return o?o.snapshot():function(e,...t){return e(...t)}}},42344,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,e.r(90317).createAsyncLocalStorage)()},63599,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=e.r(42344)},9885,(e,t,i)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"encodeURIPath",{enumerable:!0,get:function(){return r}})},67585,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let r=e.r(32061);function n({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},52157,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"PreloadChunks",{enumerable:!0,get:function(){return a}});let r=e.r(43476),n=e.r(74080),s=e.r(63599),l=e.r(9885),o=e.r(43369);function a({moduleIds:e}){if("u">typeof window)return null;let t=s.workAsyncStorage.getStore();if(void 0===t)return null;let i=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;i.push(...e)}}if(0===i.length)return null;let u=(0,o.getAssetTokenQuery)();return(0,r.jsx)(r.Fragment,{children:i.map(e=>{let i=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:i,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(i,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},69093,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return u}});let r=e.r(43476),n=e.r(71645),s=e.r(67585),l=e.r(52157);function o(e){return{default:e&&"default"in e?e.default:e}}let a={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},u=function(e){let t={...a,...e},i=(0,n.lazy)(()=>t.loader().then(o)),u=t.loading;function d(e){let o=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,a=!t.ssr||!!t.loading,d=a?n.Suspense:n.Fragment,h=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(i,{...e})]}):(0,r.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(i,{...e})});return(0,r.jsx)(d,{...a?{fallback:o}:{},children:h})}return d.displayName="LoadableComponent",d}},70703,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return n}});let r=e.r(55682)._(e.r(69093));function n(e,t){let i={};"function"==typeof e&&(i.loader=e);let n={...i,...t};return(0,r.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
10dule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},65856,(e,t,i)=>{"use strict";e.i(47167),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return r}});let r=e.r(55682)._(e.r(71645)).default.createContext(null)},45061,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useRouter",{enumerable:!0,get:function(){return s}});let r=e.r(71645),n=e.r(65856);function s(){return(0,r.useContext)(n.RouterContext)}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},74041,(e,t,i)=>{t.exports=e.r(45061)},22528,e=>{"use strict";var t=e.i(74041);e.s(["usePagesRouter",0,()=>({pagesRouter:(0,t.useRouter)()})])},69944,e=>{"use strict";var t=e.i(43476),i=e.i(71645),r=e.i(47167),n=e.i(18566);function s(){return"u">typeof window}function l(){return"production"}function o(){return"development"===((s()?window.vam:l())||"production")}function a(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function u(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function d(e){return(0,i.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,i.useEffect)(()=>{!function(e={debug:!0},t){var i;if(!s())return;let{beforeSend:r,src:n,dataset:a}=function(e,t){var i,r;let n=e;if(t)try{n={...null==(i=JSON.parse(t))?void 0:i.analytics,...e}}catch{}!function(e="auto"){if("auto"===e){window.vam=l();return}window.vam=e}(n.mode);let s={sdkn:"@vercel/analytics"+(n.framework?`/${n.framework}`:""),sdkv:"2.0.1"};return n.disableAutoTrack&&(s.disableAutoTrack="1"),n.viewEndpoint&&(s.viewEndpoint=u(n.viewEndpoint)),n.eventEndpoint&&(s.eventEndpoint=u(n.eventEndpoint)),n.sessionEndpoint&&(s.sessionEndpoint=u(n.sessionEndpoint)),o()&&!1===n.debug&&(s.debug="false"),n.dsn&&(s.dsn=n.dsn),n.endpoint?s.endpoint=n.endpoint:n.basePath&&(s.endpoint=u(`${n.basePath}/insights`)),{beforeSend:n.beforeSend,src:(r=n).scriptSrc?u(r.scriptSrc):o()?"https://va.vercel-scripts.com/v1/script.debug.js":r.basePath?u(`${r.basePath}/insights/script.js`):"/_vercel/insights/script.js",dataset:s}}(e,t);if(window.va||(window.va=function(...e){window.vaq||(window.vaq=[]),window.vaq.push(e)}),r&&(null==(i=window.va)||i.call(window,"beforeSend",r)),document.head.querySelector(`script[src*="${n}"]`))return;let d=document.createElement("script");for(let[e,t]of(d.src=n,Object.entries(a)))d.dataset[e]=t;d.defer=!0,d.onerror=()=>{let e=o()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${n}. ${e}`)},document.head.appendChild(d)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e},e.configString??function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,i.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var i;null==(i=window.va)||i.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function h(e){let t,s,l,{route:o,path:u}=(t=(0,n.useParams)(),s=(0,n.useSearchParams)(),l=(0,n.usePathname)(),t?{route:function(e,t){if(!e||!t)return e;let i=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=a(r);e.test(i)&&(i=i.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=a(r.join("/"));e.test(i)&&(i=i.replace(e,`/[...${t}]`))}return i}catch{return e}}(l,Object.keys(t).length?t:Object.fromEntries(s.entries())),path:l}:{route:null,path:l});return i.default.createElement(d,{path:u,route:o,...e,basePath:function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
10(),configString:function(){if(void 0!==r.default&&void 0!==r.default.env)return'{"analytics":{"scriptSrc":"8940cd369852f4f8/script.js","viewEndpoint":"8940cd369852f4f8/view","eventEndpoint":"8940cd369852f4f8/event","sessionEndpoint":"8940cd369852f4f8/session"},"speedInsights":{"scriptSrc":"58796ea71cba81f3/script.js","endpoint":"58796ea71cba81f3/vitals"}}'}(),framework:"next"})}function c(e){return i.default.createElement(i.Suspense,{fallback:null},i.default.createElement(h,{...e}))}e.s(["ProxyAwareAnalytics",0,function(){let[e,r]=(0,i.useState)(null);return((0,i.useEffect)(()=>{var e;r(!((e=window.location.hostname).endsWith(".vercel.app")||"localhost"===e))},[]),null===e)?null:e?(0,t.jsx)(c,{scriptSrc:"/leaderboard/_vercel/insights/script.js",endpoint:"/leaderboard/_vercel/insights"}):(0,t.jsx)(c,{})}],69944)}]);

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.