PageSourceSearch

https://app.smartutr.com/_next/static/chunks/741-01df726869442d02.js

js smartutr.com collected 2026-10-04 07:44:01 UTC 61,943 bytes, 9 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[741],{34492:function(e,t,n){/**
2 * @license React
3 * use-sync-external-store-shim.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var r=n(2265),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return a(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},10554:function(e,t,n){e.exports=n(34492)},6106:function(e,t,n){n.d(t,{Vo:function(){return C},vn:function(){return es},a7:function(){return X},qI:function(){return Z},iz:function(){return j},Cv:function(){return ee},gM:function(){return eo},yB:function(){return ei},N1:function(){return et},C2:function(){return en},sO:function(){return er},CH:function(){return Q},tj:function(){return H},iv:function(){return P},wE:function(){return w},Gl:function(){return N},oG:function(){return x},E7:function(){return A},RM:function(){return f},RE:function(){return D},YJ:function(){return S},tF:function(){return z},KQ:function(){return U},Gv:function(){return W},Rl:function(){return T},ej:function(){return R},JM:function(){return g},qq:function(){return M},aC:function(){return q},cL:function(){return h.cL},E2:function(){return J},o8:function(){return h.o8},eW:function(){return h.eW},kP:function(){return h.kP},xo:function(){return h.xo},zq:function(){return K},QS:function(){return G},aF:function(){return h.aF},Mp:function(){return I},ge:function(){return L},r0:function(){return Y}});var r,i,o,s,a=n(68351),l=n(92955);async function u(e="",t){let{async:n,defer:r,beforeLoad:i,crossOrigin:o}=t||{};return new Promise((t,s)=>{e||s("loadScript cannot be called without a src"),document&&document.body||s("loadScript cannot be called when document does not exist");let a=document.createElement("script");o&&a.setAttribute("crossorigin",o),a.async=n||!1,a.defer=r||!1,a.addEventListener("load",()=>{a.remove(),t(a)}),a.addEventListener("error",()=>{a.remove(),s()}),a.src=e,null==i||i(a),document.body.appendChild(a)})}function c(e){return e.startsWith("/")}n(18924);var d=n(2265),h=n(21822),p=n(46179);n(6914),n(25566),new WeakMap,new WeakMap,new WeakSet,new WeakSet,new WeakSet,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakSet,new WeakSet,new WeakSet,new WeakSet,new WeakSet,new WeakSet,new WeakSet;var f=(0,a.t5)({packageName:"@clerk/clerk-react"});function g(e){f.setMessages(e).setPackageName(e)}var{isDevOrStagingUrl:m}=(0,l.MY)(),v=(e,t="5.1.0")=>{if(e)return e;let n=k(t);return n?"snapshot"===n?"5.4.0":n:b(t)},k=e=>{var t;return null==(t=e.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/))?void 0:t[1]},b=e=>e.trim().replace(/^v/,"").split(".")[0],y="Clerk: Failed to load Clerk",S=e=>{let{publishableKey:t}=e;t||f.throwMissingPublishableKeyError();let n=document.querySelector("script[data-clerk-js-script]");return n?new Promise((e,t)=>{n.addEventListener("load",()=>{e(n)}),n.addEventListener("error",()=>{t(y)})}):u(w(e),{async:!0,crossOrigin:"anonymous",beforeLoad:O(e)}).catch(()=>{throw Error(y)})},w=e=>{var t,n;let{clerkJSUrl:r,clerkJSVariant:i,clerkJSVersion:o,proxyUrl:s,domain:a,publishableKey:u}=e;if(r)return r;let d="";d=s&&(!s||/^http(s)?:\/\//.test(s||"")||c(s))?(s?c(s)?new URL(s,window.location.origin).toString():s:"").replace(/http(s)?:\/\//,""):a&&!m((null==(t=(0,l.nQ)(u))?void 0:t.frontendApi)||"")?function(e){let t;if(!e)return"";if(e.match(/^(clerk\.)+\w*$/))t=/(clerk\.)*(?=clerk\.)/;
9else{if(e.match(/\.clerk.accounts/))return e;t=/^(clerk\.)*/gi}let n=e.replace(t,"");return`clerk.${n}`}(a):(null==(n=(0,l.nQ)(u))?void 0:n.frontendApi)||"";let h=i?`${i.replace(/\.+$/,"")}.`:"",p=v(o);return`https://${d}/npm/@clerk/clerk-js@${p}/dist/clerk.${h}browser.js`},P=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),t},O=e=>t=>{let n=P(e);for(let e in n)t.setAttribute(e,n[e])},[C,E]=(0,h.uH)("AuthContext"),j=h.b5,_=h.rI,U="You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.",z=e=>`You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`,M="Unsupported usage of isSatellite, domain or proxyUrl. The usage of isSatellite, domain or proxyUrl as function is not supported in non-browser environments.",L="<UserProfile.Page /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",I="<UserProfile.Link /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",R="<OrganizationProfile.Page /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",T="<OrganizationProfile.Link /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",A=e=>`<${e} /> can only accept <${e}.Page /> and <${e}.Link /> as its children. Any other provided component will be ignored.`,x=e=>`Missing props. <${e}.Page /> component requires the following props: url, label, labelIcon, alongside with children to be rendered inside the page.`,N=e=>`Missing props. <${e}.Link /> component requires the following props: url, label and labelIcon.`,W=e=>`The <${e}/> component uses path-based routing by default unless a different routing strategy is provided using the \`routing\` prop. When path-based routing is used, you need to provide the path where the component is mounted on by using the \`path\` prop. Example: <${e} path={'/my-path'} />`,D=e=>`The \`path\` prop will only be respected when the Clerk component uses path-based routing. To resolve this error, pass \`routing='path'\` to the <${e}/> component, or drop the \`path\` prop to switch to hash-based routing. For more details please refer to our docs: https://clerk.com/docs`,F=e=>{(0,h.Rm)(()=>{f.throwMissingClerkProviderError({source:e})})},V=e=>new Promise(t=>{e.loaded&&t(),e.addOnLoaded(t)}),$=e=>async t=>(await V(e),e.session)?e.session.getToken(t):null,B=e=>async(...t)=>(await V(e),e.signOut(...t)),q=()=>{F("useAuth");let{sessionId:e,userId:t,actor:n,orgId:r,orgRole:i,orgSlug:o,orgPermissions:s}=E(),a=_(),l=(0,d.useCallback)($(a),[a]),u=(0,d.useCallback)(B(a),[a]),c=(0,d.useCallback)(e=>((null==e?void 0:e.permission)||(null==e?void 0:e.role)||f.throw('Missing parameters. `has` from `useAuth` requires a permission or role key to be passed. Example usage: `has({permission: "org:posts:edit"`'),!!r&&!!t&&!!i&&!!s&&(e.permission?s.includes(e.permission):!!e.role&&i===e.role)),[r,i,t,s]);return void 0===e&&void 0===t?{isLoaded:!1,isSignedIn:void 0,sessionId:e,userId:t,actor:void 0,orgId:void 0,orgRole:void 0,orgSlug:void 0,has:void 0,signOut:u,getToken:l}:null===e&&null===t?{isLoaded:!0,isSignedIn:!1,sessionId:e,userId:t,actor:null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:u,getToken:l}:e&&t&&r&&i?{isLoaded:!0,isSignedIn:!0,sessionId:e,userId:t,actor:n||null,orgId:r,orgRole:i,orgSlug:o||null,has:c,signOut:u,getToken:l}:e&&t&&!r?{isLoaded:!0,isSignedIn:!0,sessionId:e,userId:t,actor:n||null,orgId:null,orgRole:null,orgSlug:null,has:()=>!1,signOut:u,getToken:l}:f.throw("Invalid state. Feel free to submit a bug or reach out to support here: https://clerk.com/support")};function J(e){let{startEmailLinkFlow:t,cancelEmailLinkFlow:n}=d.useMemo(()=>e.createEmailLinkFlow(),[e]);return d.useEffect(()=>n,[]),{startEmailLinkFlow:t,cancelEmailLinkFlow:n}}var K=()=>{var e;F("useSignIn");let t=_(),n=(0,h.sX)();return(null==(e=t.telemetry)||e.record((0,p.J)("useSignIn")),n)?{isLoaded:!0,signIn:n.signIn,setActive:t.setActive}
9:{isLoaded:!1,signIn:void 0,setActive:void 0}},G=()=>{var e;F("useSignUp");let t=_(),n=(0,h.sX)();return(null==(e=t.telemetry)||e.record((0,p.J)("useSignUp")),n)?{isLoaded:!0,signUp:n.signUp,setActive:t.setActive}:{isLoaded:!1,signUp:void 0,setActive:void 0}},Y=(e,t)=>{t=t||e.displayName||e.name||"Component",e.displayName=t;let n=n=>{F(t||"withClerk");let r=_();return r.loaded?d.createElement(e,{...n,clerk:r}):null};return n.displayName=`withClerk(${t})`,n},Q=({children:e})=>{F("SignedIn");let{userId:t}=E();return t?d.createElement(d.Fragment,null,e):null},H=({children:e})=>{F("SignedOut");let{userId:t}=E();return null===t?d.createElement(d.Fragment,null,e):null},X=({children:e})=>(F("ClerkLoaded"),_().loaded)?d.createElement(d.Fragment,null,e):null,Z=({children:e})=>(F("ClerkLoading"),_().loaded)?null:d.createElement(d.Fragment,null,e),ee=({children:e,fallback:t,...n})=>{F("Protect");let{isLoaded:r,has:i,userId:o}=q();if(!r)return null;let s=d.createElement(d.Fragment,null,null!=t?t:null),a=d.createElement(d.Fragment,null,e);return o?"function"==typeof n.condition?n.condition(i)?a:s:n.role||n.permission?i(n)?a:s:a:s},et=Y(({clerk:e,...t})=>{let{client:n,session:r}=e,i=n.activeSessions&&n.activeSessions.length>0;return d.useEffect(()=>{null===r&&i?e.redirectToAfterSignOut():e.redirectToSignIn(t)},[]),null},"RedirectToSignIn"),en=Y(({clerk:e,...t})=>(d.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp"),er=Y(({clerk:e})=>(d.useEffect(()=>{e.redirectToUserProfile()},[]),null),"RedirectToUserProfile"),ei=Y(({clerk:e})=>(d.useEffect(()=>{e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile"),eo=Y(({clerk:e})=>(d.useEffect(()=>{e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization"),es=Y(({clerk:e,...t})=>(d.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback")},10741:function(e,t,n){n.d(t,{vn:function(){return l.vn},a7:function(){return l.a7},qI:function(){return l.qI},El:function(){return eo},Gp:function(){return B},Bg:function(){return J},A:function(){return $},Li:function(){return q},Cv:function(){return l.Cv},gM:function(){return l.gM},yB:function(){return l.yB},N1:function(){return l.N1},C2:function(){return l.C2},sO:function(){return l.sO},cL:function(){return T},$d:function(){return G},qu:function(){return H},AM:function(){return Q},Mo:function(){return A},gX:function(){return Y},CH:function(){return l.CH},tj:function(){return l.tj},l8:function(){return D},Iw:function(){return W},pl:function(){return K},aC:function(){return l.aC},ll:function(){return l.cL},E2:function(){return l.E2},o8:function(){return l.o8},eW:function(){return l.eW},kP:function(){return l.kP},xo:function(){return l.xo},zq:function(){return l.zq},QS:function(){return l.QS},aF:function(){return l.aF}});var r,i,o,s,a,l=n(6106),u=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},c=(e,t,n)=>(u(e,t,"read from private field"),n?n.call(e):t.get(e)),d=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},h=(e,t,n,r)=>(u(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),p=n(96262),f=n(21822),g=n(2265),m=n(54887),v=n(92955),k=n(290);function b(e,t,n){return"function"==typeof e?e(t):void 0!==e?e:void 0!==n?n:void 0}n(18924),"undefined"==typeof window||window.global||(window.global="undefined"==typeof global?window:global);var y=e=>t=>{try{return g.Children.only(e)}catch(e){return l.RM.throw((0,l.tF)(t))}},S=(e,t)=>(e||(e=t),"string"==typeof e&&(e=g.createElement("button",null,e)),e),w=e=>(...t)=>{if(e&&"function"==typeof e)return e(...t)},P=new Map,O=e=>{let t=Array(e.length).fill(null),[n,r]=(0,g.useState)(t);return e.map((e,t)=>({id:e.id,mount:e=>r(n=>n.map((n,r)=>r===t?e:n)),unmount:()=>r(e=>e.map((e,n)=>n===t?null:e)),portal:()=>g.createElement(g.Fragment,null,n[t]?(0,m.createPortal)(e.component,n[t]):null)}))},C=(e,t)=>!!e&&g.isValidElement(e)&&(null==e?void 0:e.type)===t,E=e=>_({children:e,reorderItemsLabels:["account","security"],LinkComponent:N,PageComponent:x,componentName:"UserProfile"}),j=e=>_({children:e,reorderItemsLabels:["general","members"],LinkComponent:V,PageComponent:F,componentName:"OrganizationProfile"}),_=({children:e,LinkComponent:t,PageComponent:n,reorderItemsLabels:r,componentName:i})=>{let o=[];
9g.Children.forEach(e,e=>{if(!C(e,n)&&!C(e,t)){e&&(0,p.yJ)((0,l.E7)(i));return}let{props:s}=e,{children:a,label:u,url:c,labelIcon:d}=s;if(C(e,n)){if(U(s,r))o.push({label:u});else if(z(s))o.push({label:u,labelIcon:d,children:a,url:c});else{(0,p.yJ)((0,l.oG)(i));return}}if(C(e,t)){if(M(s))o.push({label:u,labelIcon:d,url:c});else{(0,p.yJ)((0,l.Gl)(i));return}}});let s=[],a=[],u=[];o.forEach((e,t)=>{if(z(e)){s.push({component:e.children,id:t}),a.push({component:e.labelIcon,id:t});return}M(e)&&u.push({component:e.labelIcon,id:t})});let c=O(s),d=O(a),h=O(u),f=[],m=[];return o.forEach((e,t)=>{if(U(e,r)){f.push({label:e.label});return}if(z(e)){let{portal:n,mount:r,unmount:i}=c.find(e=>e.id===t),{portal:o,mount:s,unmount:a}=d.find(e=>e.id===t);f.push({label:e.label,url:e.url,mount:r,unmount:i,mountIcon:s,unmountIcon:a}),m.push(n),m.push(o);return}if(M(e)){let{portal:n,mount:r,unmount:i}=h.find(e=>e.id===t);f.push({label:e.label,url:e.url,mountIcon:r,unmountIcon:i}),m.push(n);return}}),{customPages:f,customPagesPortals:m}},U=(e,t)=>{let{children:n,label:r,url:i,labelIcon:o}=e;return!n&&!i&&!o&&t.some(e=>e===r)},z=e=>{let{children:t,label:n,url:r,labelIcon:i}=e;return!!t&&!!r&&!!i&&!!n},M=e=>{let{children:t,label:n,url:r,labelIcon:i}=e;return!t&&!!r&&!!i&&!!n},L=e=>"mount"in e,I=e=>"open"in e,R=class extends g.PureComponent{constructor(){super(...arguments),this.portalRef=g.createRef()}componentDidUpdate(e){var t,n;if(!L(e)||!L(this.props))return;let r=(0,p.zu)(e.props,"customPages","children"),i=(0,p.zu)(this.props.props,"customPages","children"),o=(null==(t=r.customPages)?void 0:t.length)!==(null==(n=i.customPages)?void 0:n.length);(!(0,f.c1)(r,i)||o)&&this.props.updateProps({node:this.portalRef.current,props:this.props.props})}componentDidMount(){this.portalRef.current&&(L(this.props)&&this.props.mount(this.portalRef.current,this.props.props),I(this.props)&&this.props.open(this.props.props))}componentWillUnmount(){this.portalRef.current&&(L(this.props)&&this.props.unmount(this.portalRef.current),I(this.props)&&this.props.close())}render(){var e,t;return g.createElement(g.Fragment,null,g.createElement("div",{ref:this.portalRef}),L(this.props)&&(null==(t=null==(e=this.props)?void 0:e.customPagesPortals)?void 0:t.map((e,t)=>(0,g.createElement)(e,{key:t}
9))))}},T=(0,l.r0)(({clerk:e,...t})=>g.createElement(R,{mount:e.mountSignIn,unmount:e.unmountSignIn,updateProps:e.__unstable__updateProps,props:t}),"SignIn"),A=(0,l.r0)(({clerk:e,...t})=>g.createElement(R,{mount:e.mountSignUp,unmount:e.unmountSignUp,updateProps:e.__unstable__updateProps,props:t}),"SignUp");function x({children:e}){return(0,p.yJ)(l.ge),g.createElement(g.Fragment,null,e)}function N({children:e}){return(0,p.yJ)(l.Mp),g.createElement(g.Fragment,null,e)}var W=Object.assign((0,l.r0)(({clerk:e,...t})=>{let{customPages:n,customPagesPortals:r}=E(t.children);return g.createElement(R,{mount:e.mountUserProfile,unmount:e.unmountUserProfile,updateProps:e.__unstable__updateProps,props:{...t,customPages:n},customPagesPortals:r})},"UserProfile"),{Page:x,Link:N}),D=Object.assign((0,l.r0)(({clerk:e,...t})=>{let{customPages:n,customPagesPortals:r}=E(t.children),i=Object.assign(t.userProfileProps||{},{customPages:n});return g.createElement(R,{mount:e.mountUserButton,unmount:e.unmountUserButton,updateProps:e.__unstable__updateProps,props:{...t,userProfileProps:i},customPagesPortals:r})},"UserButton"),{UserProfilePage:x,UserProfileLink:N});function F({children:e}){return(0,p.yJ)(l.ej),g.createElement(g.Fragment,null,e)}function V({children:e}){return(0,p.yJ)(l.Rl),g.createElement(g.Fragment,null,e)}var $=Object.assign((0,l.r0)(({clerk:e,...t})=>{let{customPages:n,customPagesPortals:r}=j(t.children);return g.createElement(R,{mount:e.mountOrganizationProfile,unmount:e.unmountOrganizationProfile,updateProps:e.__unstable__updateProps,props:{...t,customPages:n},customPagesPortals:r})},"OrganizationProfile"),{Page:F,Link:V}),B=(0,l.r0)(({clerk:e,...t})=>g.createElement(R,{mount:e.mountCreateOrganization,unmount:e.unmountCreateOrganization,updateProps:e.__unstable__updateProps,props:t}),"CreateOrganization"),q=Object.assign((0,l.r0)(({clerk:e,...t})=>{let{customPages:n,customPagesPortals:r}=j(t.children),i=Object.assign(t.organizationProfileProps||{},{customPages:n});return g.createElement(R,{mount:e.mountOrganizationSwitcher,unmount:e.unmountOrganizationSwitcher,updateProps:e.__unstable__updateProps,props:{...t,organizationProfileProps:i},customPagesPortals:r})},"OrganizationSwitcher"),{OrganizationProfilePage:F,OrganizationProfileLink:V}),J=(0,l.r0)(({clerk:e,...t})=>g.createElement(R,{mount:e.mountOrganizationList,unmount:e.unmountOrganizationList,updateProps:e.__unstable__updateProps,props:t}),"OrganizationList"),K=(0,l.r0)(({clerk:e,...t})=>g.createElement(R,{open:e.__experimental_openGoogleOneTap,close:e.__experimental_closeGoogleOneTap,props:t}),"OneTap"),G=(0,l.r0)(({clerk:e,children:t,...n})=>{let{signUpFallbackRedirectUrl:r,forceRedirectUrl:i,fallbackRedirectUrl:o,signUpForceRedirectUrl:s,mode:a,...l}=n,u=y(t=S(t,"Sign in"))("SignInButton"),c=()=>{let t={signUpFallbackRedirectUrl:r,signUpForceRedirectUrl:s,signInForceRedirectUrl:i,signInFallbackRedirectUrl:o};return"modal"===a?e.openSignIn(t):e.redirectToSignIn(t)},d=async e=>(await w(u.props.onClick)(e),c()),h={...l,onClick:d};return g.cloneElement(u,h)},"SignInButton"),Y=(0,l.r0)(({clerk:e,children:t,...n})=>{let{fallbackRedirectUrl:r,forceRedirectUrl:i,signInFallbackRedirectUrl:o,signInForceRedirectUrl:s,mode:a,unsafeMetadata:l,...u}=n,c=y(t=S(t,"Sign up"))("SignUpButton"),d=()=>{let t={signUpFallbackRedirectUrl:r,signUpForceRedirectUrl:i,signInFallbackRedirectUrl:o,signInForceRedirectUrl:s,unsafeMetadata:l};return"modal"===a?e.openSignUp(t):e.redirectToSignUp(t)},h=async e=>(await w(c.props.onClick)(e),d()),p={...u,onClick:h};return g.cloneElement(c,p)},"SignUpButton"),Q=(0,l.r0)(({clerk:e,children:t,...n})=>{let{redirectUrl:r="/",signOutOptions:i,...o}=n,s=y(t=S(t,"Sign out"))("SignOutButton"),a=()=>e.signOut({redirectUrl:r}),l=async e=>(await w(s.props.onClick)(e),a()),u={...o,onClick:l};return g.cloneElement(s,u)},"SignOutButton"),H=(0,l.r0)(({clerk:e,children:t,...n})=>{let{redirectUrl:r,...i}=n,o=y(t=S(t,"Sign in with Metamask"))("SignInWithMetamaskButton"),s=async()=>{!async function(){await e.authenticateWithMetamask({redirectUrl:r||void 0})}()},a=async e=>(await w(o.props.onClick)(e),s()),l={...i,onClick:a};return g.cloneElement(o,l)},"SignInWithMetamask"),X={name:"@clerk/clerk-react",version:"5.1.0",environment:"production"},Z=class e{constructor(e){this.clerkjs=null,this.preopenOneTap=null,this.preopenSignIn=null,this.preopenSignUp=null,this.preopenUserProfile=null,this.preopenOrganizationProfile=null,this.preopenCreateOrganization=null,this.premountSign
9InNodes=new Map,this.premountSignUpNodes=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.loadedListeners=[],d(this,r,!1),d(this,i,void 0),d(this,o,void 0),d(this,s,void 0),this.buildSignInUrl=e=>{let t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildSignInUrl(e))||""};if(this.clerkjs&&c(this,r))return t();this.premountMethodCalls.set("buildSignInUrl",t)},this.buildSignUpUrl=e=>{let t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildSignUpUrl(e))||""};if(this.clerkjs&&c(this,r))return t();this.premountMethodCalls.set("buildSignUpUrl",t)},this.buildAfterSignInUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildAfterSignInUrl())||""};if(this.clerkjs&&c(this,r))return e();this.premountMethodCalls.set("buildAfterSignInUrl",e)},this.buildAfterSignUpUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildAfterSignUpUrl())||""};if(this.clerkjs&&c(this,r))return e();this.premountMethodCalls.set("buildAfterSignUpUrl",e)},this.buildAfterSignOutUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildAfterSignOutUrl())||""};if(this.clerkjs&&c(this,r))return e();this.premountMethodCalls.set("buildAfterSignOutUrl",e)},this.buildUserProfileUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildUserProfileUrl())||""};if(this.clerkjs&&c(this,r))return e();this.premountMethodCalls.set("buildUserProfileUrl",e)},this.buildCreateOrganizationUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildCreateOrganizationUrl())||""};if(this.clerkjs&&c(this,r))return e();this.premountMethodCalls.set("buildCreateOrganizationUrl",e)},this.buildOrganizationProfileUrl=()=>{let e=()=>{var e;return(null==(e=this.clerkjs)?void 0:e.buildOrganizationProfileUrl())||""};if(this.clerkjs&&c(this,r))return e();this.premountMethodCalls.set("buildOrganizationProfileUrl",e)},this.buildUrlWithAuth=e=>{let t=()=>{var t;return(null==(t=this.clerkjs)?void 0:t.buildUrlWithAuth(e))||""};if(this.clerkjs&&c(this,r))return t();this.premountMethodCalls.set("buildUrlWithAuth",t)},this.handleUnauthenticated=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.handleUnauthenticated()};this.clerkjs&&c(this,r)?e():this.premountMethodCalls.set("handleUnauthenticated",e)},this.addOnLoaded=e=>{this.loadedListeners.push(e),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>{this.loadedListeners.forEach(e=>e()),this.loadedListeners=[]},this.hydrateClerkJS=e=>{if(!e)throw Error("Failed to hydrate latest Clerk JS");return this.clerkjs=e,this.premountMethodCalls.forEach(e=>e()),null!==this.preopenSignIn&&e.openSignIn(this.preopenSignIn),null!==this.preopenSignUp&&e.openSignUp(this.preopenSignUp),null!==this.preopenUserProfile&&e.openUserProfile(this.preopenUserProfile),null!==this.preopenOneTap&&e.__experimental_openGoogleOneTap(this.preopenOneTap),null!==this.preopenOrganizationProfile&&e.openOrganizationProfile(this.preopenOrganizationProfile),null!==this.preopenCreateOrganization&&e.openCreateOrganization(this.preopenCreateOrganization),this.premountSignInNodes.forEach((t,n)=>{e.mountSignIn(n,t)}),this.premountSignUpNodes.forEach((t,n)=>{e.mountSignUp(n,t)}),this.premountUserProfileNodes.forEach((t,n)=>{e.mountUserProfile(n,t)}),this.premountUserButtonNodes.forEach((t,n)=>{e.mountUserButton(n,t)}),this.premountOrganizationListNodes.forEach((t,n)=>{e.mountOrganizationList(n,t)}),h(this,r,!0),this.emitLoaded(),this.clerkjs},this.__unstable__updateProps=e=>{this.clerkjs&&"__unstable__updateProps"in this.clerkjs&&this.clerkjs.__unstable__updateProps(e)},this.setActive=({session:e,organization:t,beforeEmit:n})=>this.clerkjs?this.clerkjs.setActive({session:e,organization:t,beforeEmit:n}):Promise.reject(),this.openSignIn=e=>{this.clerkjs&&c(this,r)?this.clerkjs.openSignIn(e):this.preopenSignIn=e},this.closeSignIn=()=>{this.clerkjs&&c(this,r)?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.__experimental_openGoogleOneTap=e=>{this.clerkjs&&c(this,r)?this.clerkjs.__experimental_openGoogleOneTap(e):this.preopenOneTap=e},this.__experimental_closeGoogleOneTap=()=>{this.clerkjs&&c(this,r)?this.clerkjs.__experimental_closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=e=>{this.clerkjs&&c(this,r)?this.clerkjs.openUserProfile(e):this.preopenUserProfile=e},this.closeUserProfile=()=>{this.clerkjs&&c(this,r)?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=e=>{this.clerkjs&&c(this,r)?this.clerkjs.openOrganizationProfile(e):this.preopenOrganizationProfile=e},this.closeOrganizationProfile=()=>{this.clerkjs&&c(this,r)?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openCreateOrganization=e=>{this.clerkjs&&c(this,r)?this.clerkjs.openCreateOrganization(e):this.preopenCreateOrganization=e},this.closeCreateOrganization=()=>{this.clerkjs&&c(this,r)?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openSignUp=e=>{this.clerkjs&&c(this,r)?this.clerkjs.openSignUp(e):this.preopenSignUp=e},this.closeSignUp=()=>{this.clerkjs&&c(this,r)?this.clerkjs.closeSignUp():this.preopenSignUp=null}
9,this.mountSignIn=(e,t)=>{this.clerkjs&&c(this,r)?this.clerkjs.mountSignIn(e,t):this.premountSignInNodes.set(e,t)},this.unmountSignIn=e=>{this.clerkjs&&c(this,r)?this.clerkjs.unmountSignIn(e):this.premountSignInNodes.delete(e)},this.mountSignUp=(e,t)=>{this.clerkjs&&c(this,r)?this.clerkjs.mountSignUp(e,t):this.premountSignUpNodes.set(e,t)},this.unmountSignUp=e=>{this.clerkjs&&c(this,r)?this.clerkjs.unmountSignUp(e):this.premountSignUpNodes.delete(e)},this.mountUserProfile=(e,t)=>{this.clerkjs&&c(this,r)?this.clerkjs.mountUserProfile(e,t):this.premountUserProfileNodes.set(e,t)},this.unmountUserProfile=e=>{this.clerkjs&&c(this,r)?this.clerkjs.unmountUserProfile(e):this.premountUserProfileNodes.delete(e)},this.mountOrganizationProfile=(e,t)=>{this.clerkjs&&c(this,r)?this.clerkjs.mountOrganizationProfile(e,t):this.premountOrganizationProfileNodes.set(e,t)},this.unmountOrganizationProfile=e=>{this.clerkjs&&c(this,r)?this.clerkjs.unmountOrganizationProfile(e):this.premountOrganizationProfileNodes.delete(e)},this.mountCreateOrganization=(e,t)=>{this.clerkjs&&c(this,r)?this.clerkjs.mountCreateOrganization(e,t):this.premountCreateOrganizationNodes.set(e,t)},this.unmountCreateOrganization=e=>{this.clerkjs&&c(this,r)?this.clerkjs.unmountCreateOrganization(e):this.premountCreateOrganizationNodes.delete(e)},this.mountOrganizationSwitcher=(e,t)=>{this.clerkjs&&c(this,r)?this.clerkjs.mountOrganizationSwitcher(e,t):this.premountOrganizationSwitcherNodes.set(e,t)},this.unmountOrganizationSwitcher=e=>{this.clerkjs&&c(this,r)?this.clerkjs.unmountOrganizationSwitcher(e):this.premountOrganizationSwitcherNodes.delete(e)},this.mountOrganizationList=(e,t)=>{this.clerkjs&&c(this,r)?this.clerkjs.mountOrganizationList(e,t):this.premountOrganizationListNodes.set(e,t)},this.unmountOrganizationList=e=>{this.clerkjs&&c(this,r)?this.clerkjs.unmountOrganizationList(e):this.premountOrganizationListNodes.delete(e)},this.mountUserButton=(e,t)=>{this.clerkjs&&c(this,r)?this.clerkjs.mountUserButton(e,t):this.premountUserButtonNodes.set(e,t)},this.unmountUserButton=e=>{this.clerkjs&&c(this,r)?this.clerkjs.unmountUserButton(e):this.premountUserButtonNodes.delete(e)},this.addListener=e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.addListener(e)};return this.clerkjs?t():(this.premountMethodCalls.set("addListener",t),()=>this.premountMethodCalls.delete("addListener"))},this.navigate=e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.navigate(e)};this.clerkjs&&c(this,r)?t():this.premountMethodCalls.set("navigate",t)},this.redirectWithAuth=async(...e)=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectWithAuth(...e)};if(this.clerkjs&&c(this,r))return t();this.premountMethodCalls.set("redirectWithAuth",t)},this.redirectToSignIn=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectToSignIn(e)};if(this.clerkjs&&c(this,r))return t();this.premountMethodCalls.set("redirectToSignIn",t)},this.redirectToSignUp=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.redirectToSignUp(e)};if(this.clerkjs&&c(this,r))return t();this.premountMethodCalls.set("redirectToSignUp",t)},this.redirectToUserProfile=async()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToUserProfile()};if(this.clerkjs&&c(this,r))return e();this.premountMethodCalls.set("redirectToUserProfile",e)},this.redirectToAfterSignUp=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToAfterSignUp()};if(this.clerkjs&&c(this,r))return e();this.premountMethodCalls.set("redirectToAfterSignUp",e)},this.redirectToAfterSignIn=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToAfterSignIn()};this.clerkjs&&c(this,r)?e():this.premountMethodCalls.set("redirectToAfterSignIn",e)},this.redirectToAfterSignOut=()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToAfterSignOut()};this.clerkjs&&c(this,r)?e():this.premountMethodCalls.set("redirectToAfterSignOut",e)},this.redirectToOrganizationProfile=async()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToOrganizationProfile()};if(this.clerkjs&&c(this,r))return e();this.premountMethodCalls.set("redirectToOrganizationProfile",e)},this.redirectToCreateOrganization=async()=>{let e=()=>{var e;return null==(e=this.clerkjs)?void 0:e.redirectToCreateOrganization()};if(this.clerkjs&&c(this,r))return e();this.premountMethodCalls.set("redirectToCreateOrganization",e)},this.handleRedirectCallback=e=>{var t;let n=()=>{var t;return null==(t=this.clerkjs)?void 0:t.handleRedirectCallback(e)};this.clerkjs&&c(this,r)?null==(t=n())||t.catch(()=>{}):this.premountMethodCalls.set("handleRedirectCallback",n)},this.handleEmailLinkVerification=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.handleEmailLinkVerification(e)};if(this.clerkjs&&c(this,r))return t();this.premountMethodCalls.set("handleEmailLinkVerification",t)},this.authenticateWithMetamask=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.authenticateWithMetamask(e)};if(this.clerkjs&&c(this,r))return t();this.premountMethodCalls.set("authenticateWithMetamask",t)},this.createOrganization=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.createOrganization(e)};if(this.clerkjs&&c(this,r))return t();this.premountMethodCalls.set("createOrganization",t)},this.getOrganization=async e=>{let t=()=>{var t;return null==(t=this.clerkjs)?void 0:t.getOrganization(e)};if(this.clerkjs&&c(this,r))return t();this.premountMethodCalls.set("getOrganization",t)},this.signOut=async(e,t)=>{let n=()=>{var n;return null==(n=this.clerkjs)?void 0:n.signOut(e,t)};if(this.clerkjs&&c(this,r))return n();this.premountMethodCalls.set("signOut",n)};let{Clerk:t=null,publishableKey:n}=e||{};h(this,s,n),h(this,o,null==e?void 0:e.proxyUrl),h(this,i,null==e?void 0:e.domain),this.options=e,this.Clerk=t,this.mode=(0,k._f)()?"browser":"server",this.options.sdkMetadata||(this.options.sdkMetadata=X),this.loadClerkJS()}get publishableKey(){return c(this,s)}get loaded(){return c(this,r)}static getOrCreateInstance(t){return(0,k._f)()&&c(this,a)&&(!t.Clerk||c(this,a).Clerk===t.Clerk)||h(this,a,new e(t)),c(this,a)}static clearInstance(){h(this,a,null)}get domain(){return"undefined"!=typeof window&&window.location?b(c(this,i),new URL(window.location.href),""):"function"==typeof c(this,i)?l.RM.throw(l.qq):c(this,i)||""}get proxyUrl(){return"undefined"!=typeof window&&window.location?b(c(this,o),new URL(window.location.href),""):"function"==typeof c(this,o)?l.RM.throw(l.qq):c(this,o)||""}get sdkMetadata(){var e;return(null==(e=this.clerkjs)?void 0:e.sdkMetadata)||this.options.sdkMetadata||void 0}get instanceType(){var e;return null==(e=this.clerkjs)?void 0:e.instanceType}get frontendApi(){var e;return(null==(e=this.clerkjs)?void 0:e.frontendApi)||""}get isStandardBrowser(){var e;return(null==(e=this.clerkjs)?void 0:e.isStandardBrowser)||this.options.standardBrowser||!1}get isSatellite(){return"undefined"!=typeof window&&window.location?b(this.options.isSatellite,new URL(window.location.href),!1):"function"==typeof this.options.isSatellite&&l.RM.throw(l.qq)}async loadClerkJS(){var e,t;if(!("browser"!==this.mode||c(this,r))){"undefined"!=typeof window&&(window.__clerk_publishable_key=c(this,s),window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{if(this.Clerk){let e;(t=this.Clerk,"function"==typeof t)?(e=new this.Clerk(c(this,s),{proxyUrl:this.proxyUrl,domain:this.domain}),await e.load(this.options)):(e=this.Clerk).loaded||await e.load(this.options),global.Clerk=e}else{if(global.Clerk||await (0,l.YJ)({...this.options,publishableKey:c(this,s),proxyUrl:this.proxyUrl,domain:this.domain}),!global.Clerk)throw Error("Failed to download latest ClerkJS. Contact [email protected].");await global.Clerk.load(this.options)}if(null==(e=global.Clerk)?void 0:e.loaded)return this.hydrateClerkJS(global.Clerk);return}catch(e){console.error(e.stack||e.message||e);return}}}get version(){var e;return null==(e=this.clerkjs)?void 0:e.version}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 __unstable__environment(){return this.clerkjs?this.clerkjs.__unstable__environment:void 0}__unstable__setEnvironment(...e){this.clerkjs&&"__unstable__setEnvironment"in this.clerkjs&&this.clerkjs.__unstable__setEnvironment(e)}};r=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap,d(Z,a=new WeakMap,void 0);
9var ee=(e,t,n)=>!e&&n?et(n):en(t),et=e=>{let t=e.userId,n=e.user,r=e.sessionId,i=e.session,o=e.organization,s=e.orgId,a=e.orgRole;return{userId:t,user:n,sessionId:r,session:i,organization:o,orgId:s,orgRole:a,orgPermissions:e.orgPermissions,orgSlug:e.orgSlug,actor:e.actor}},en=e=>{var t;let n=e.user?e.user.id:e.user,r=e.user,i=e.session?e.session.id:e.session,o=e.session,s=null==o?void 0:o.actor,a=e.organization,l=e.organization?e.organization.id:e.organization,u=null==a?void 0:a.slug,c=a?null==(t=null==r?void 0:r.organizationMemberships)?void 0:t.find(e=>e.organization.id===l):a,d=c?c.permissions:c;return{userId:n,user:r,sessionId:i,session:o,organization:a,orgId:l,orgRole:c?c.role:c,orgSlug:u,orgPermissions:d,actor:s}};function er(e){let{isomorphicClerkOptions:t,initialState:n,children:r}=e,{isomorphicClerk:i,loaded:o}=ei(t),[s,a]=g.useState({client:i.client,session:i.session,user:i.user,organization:i.organization});g.useEffect(()=>i.addListener(e=>a({...e})),[]);let u=ee(o,s,n),c=g.useMemo(()=>({value:i}),[o]),d=g.useMemo(()=>({value:s.client}),[s.client]),{sessionId:h,session:p,userId:m,user:v,orgId:k,actor:b,organization:y,orgRole:S,orgSlug:w,orgPermissions:P}=u,O=g.useMemo(()=>({value:{sessionId:h,userId:m,actor:b,orgId:k,orgRole:S,orgSlug:w,orgPermissions:P}}),[h,m,b,k,S,w]),C=g.useMemo(()=>({value:v}),[m,v]),E=g.useMemo(()=>({value:p}),[h,p]),j=g.useMemo(()=>({value:{organization:y}}),[k,y]);return g.createElement(l.iz.Provider,{value:c},g.createElement(f.RY.Provider,{value:d},g.createElement(f.B3.Provider,{value:E},g.createElement(f.f0,{...j.value},g.createElement(l.Vo.Provider,{value:O},g.createElement(f.St.Provider,{value:C},r))))))}var ei=e=>{let[t,n]=g.useState(!1),r=g.useMemo(()=>Z.getOrCreateInstance(e),[]);return g.useEffect(()=>{r.__unstable__updateProps({appearance:e.appearance})},[e.appearance]),g.useEffect(()=>{r.__unstable__updateProps({options:e})},[e.localization]),g.useEffect(()=>{r.addOnLoaded(()=>n(!0))},[]),g.useEffect(()=>()=>{Z.clearInstance()},[]),{isomorphicClerk:r,loaded:t}},eo=function(e,t,n){let r=e.displayName||e.name||t||"Component",i=r=>(!function(e,t,n=1){g.useEffect(()=>{let r=P.get(e)||0;return r==n?l.RM.throw(t):(P.set(e,r+1),()=>{P.set(e,(P.get(e)||1)-1)})},[])}(t,n),g.createElement(e,{...r}));return i.displayName=`withMaxAllowedInstancesGuard(${r})`,i}(function(e){let{initialState:t,children:n,...r}=e,{publishableKey:i="",Clerk:o}=r;return o||(i?i&&!(0,v.x9)(i)&&l.RM.throwInvalidPublishableKeyError({key:i}):l.RM.throwMissingPublishableKeyError()),g.createElement(er,{initialState:t,isomorphicClerkOptions:r},n)},"ClerkProvider",l.KQ);eo.displayName="ClerkProvider",(0,l.JM)({packageName:"@clerk/clerk-react"})},6914:function(e,t,n){n.d(t,{fQ:function(){return i}});var r=e=>{let t=n=>{if(!n)return n;if(Array.isArray(n))return n.map(e=>"object"==typeof e||Array.isArray(e)?t(e):e);let r={...n};for(let n of Object.keys(r)){let i=e(n.toString());i!==n&&(r[i]=r[n],delete r[n]),"object"==typeof r[i]&&(r[i]=t(r[i]))}return r};return t};function i(e){if("boolean"==typeof e)return e;if(null==e)return!1;if("string"==typeof e){if("true"===e.toLowerCase())return!0;if("false"===e.toLowerCase())return!1}let t=parseInt(e,10);return!isNaN(t)&&t>0}r(function(e){return e?e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`):""}),r(function(e){return e?e.replace(/([-_][a-z])/g,e=>e.toUpperCase().replace(/-|_/,"")):""})},290:function(e,t,n){function r(){return"undefined"!=typeof window}n.d(t,{_f:function(){return r}}),RegExp("bot|spider|crawl|APIs-Google|AdsBot|Googlebot|mediapartners|Google Favicon|FeedFetcher|Google-Read-Aloud|DuplexWeb-Google|googleweblight|bing|yandex|baidu|duckduck|yahoo|ecosia|ia_archiver|facebook|instagram|pinterest|reddit|slack|twitter|whatsapp|youtube|semrush","i")},64742:function(e,t,n){n.d(t,{t5:function(){return i}});var r=Object.freeze({InvalidProxyUrlErrorMessage:"The proxyUrl passed to Clerk is invali
9d. The expected value for proxyUrl is an absolute URL or a relative path with a leading '/'. (key={{url}})",InvalidPublishableKeyErrorMessage:"The publishableKey passed to Clerk is invalid. You can get your Publishable key at https://dashboard.clerk.com/last-active?path=api-keys. (key={{key}})",MissingPublishableKeyErrorMessage:"Missing publishableKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingSecretKeyErrorMessage:"Missing secretKey. You can get your key at https://dashboard.clerk.com/last-active?path=api-keys.",MissingClerkProvider:"{{source}} can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider"});function i({packageName:e,customMessages:t}){let n=e,i={...r,...t};function o(e,t){if(!t)return`${n}: ${e}`;let r=e;for(let n of e.matchAll(/{{([a-zA-Z0-9-_]+)}}/g)){let e=(t[n[1]]||"").toString();r=r.replace(`{{${n[1]}}}`,e)}return`${n}: ${r}`}return{setPackageName({packageName:e}){return"string"==typeof e&&(n=e),this},setMessages({customMessages:e}){return Object.assign(i,e||{}),this},throwInvalidPublishableKeyError(e){throw Error(o(i.InvalidPublishableKeyErrorMessage,e))},throwInvalidProxyUrl(e){throw Error(o(i.InvalidProxyUrlErrorMessage,e))},throwMissingPublishableKeyError(){throw Error(o(i.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw Error(o(i.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(e){throw Error(o(i.MissingClerkProvider,e))},throw(e){throw Error(o(e))}}}},46179:function(e,t,n){n.d(t,{J:function(){return r}});function r(e,t){return{event:"METHOD_CALLED",payload:{method:e,...t}}}},18924:function(e,t,n){n.d(t,{U9:function(){return p},ac:function(){return d},qx:function(){return h},r2:function(){return a},yA:function(){return u}});var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l=(e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of o(t))s.call(e,l)||l===n||r(e,l,{get:()=>t[l],enumerable:!(a=i(t,l))||a.enumerable});return e},u=(e,t,n)=>(l(e,t,"default"),n&&l(n,t,"default")),c=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},d=(e,t,n)=>(c(e,t,"read from private field"),n?n.call(e):t.get(e)),h=(e,t,n,r)=>(c(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),p=(e,t,n)=>(c(e,t,"access private method"),n)},40505:function(e,t,n){n.d(t,{Fo:function(){return a},Iq:function(){return l},Xv:function(){return u},cM:function(){return s},iF:function(){return o},mv:function(){return r},vO:function(){return i}});var r=[".lcl.dev",".lclstage.dev",".lclclerk.com"],i=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],o=[".lcl.dev","lclstage.dev",".lclclerk.com",".accounts.lclclerk.com"],s=[".accountsstage.dev"],a="https://api.lclclerk.com",l="https://api.clerkstage.dev",u="https://api.clerk.com"},69372:function(e,t,n){n.d(t,{MY:function(){return l},x9:function(){return a},nQ:function(){return s}});var r=e=>"undefined"!=typeof atob&&"function"==typeof atob?atob(e):"undefined"!=typeof global&&global.Buffer?new global.Buffer(e,"base64").toString():e,i=n(40505),o="pk_live_";function s(e,t={}){if(!(e=e||"")||!a(e)){if(t.fatal)throw Error("Publishable key not valid.");return null}let n=e.startsWith(o)?"production":"development",i=r(e.split("_")[2]);return i=i.slice(0,-1),t.proxyUrl?i=t.proxyUrl:"development"!==n&&t.domain&&(i=`clerk.${t.domain}`),{instanceType:n,frontendApi:i}}function a(e){let t=(e=e||"").startsWith(o)||e.startsWith("pk_test_"),n=r(e.split("_")[2]||"").endsWith("$");return t&&n}function l(){let e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;let n="string"==typeof t?t:t.hostname,r=e.get(n);return void 0===r&&(r=i.vO.some(e=>n.endsWith(e)),e.set(n,r)),r}}}},68351:function(e,t,n){n.d(t,{t5:function(){return r.t5}});var r=n(64742);n(18924)},96262:function(e,t,n){n.d(t,{rx:function(){return o},yJ:function(){return s},zu:function(){return r}});var r=(e,...t)=>{let n={...e};for(let e of t)delete n[e];return n};n(6914),n(64742),Object.freeze({"image/png":"png","image/jpeg":"jpg","
9image/gif":"gif","image/webp":"webp","image/x-icon":"ico","image/vnd.microsoft.icon":"ico"}),n(290);var i=()=>!1,o=()=>{try{return!0}catch(e){}return!1};n(18924);var s=e=>{i()&&console.error(`Clerk: ${e}`)}},92955:function(e,t,n){n.d(t,{MY:function(){return r.MY},nQ:function(){return r.nQ},x9:function(){return r.x9}});var r=n(69372);n(18924)},21822:function(e,t,n){let r,i;n.d(t,{b5:function(){return ef},RY:function(){return ek},f0:function(){return eO},B3:function(){return ey},St:function(){return em},uH:function(){return eh},c1:function(){return eF},Rm:function(){return eC},cL:function(){return ex},rI:function(){return eg},sX:function(){return eb},o8:function(){return eM},eW:function(){return eI},kP:function(){return eR},xo:function(){return eT},aF:function(){return eA}});var o={};n.r(o),n.d(o,{SWRConfig:function(){return es},default:function(){return ea},mutate:function(){return J},preload:function(){return ee},unstable_serialize:function(){return er},useSWRConfig:function(){return Z}});var s=n(46179),a=n(18924),l=n(2265),u=n(10554);let c=()=>{},d=c(),h=Object,p=e=>e===d,f=e=>"function"==typeof e,g=(e,t)=>({...e,...t}),m=e=>f(e.then),v=new WeakMap,k=0,b=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(h(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=v.get(e))return t;if(t=++k+"~",v.set(e,t),i==Array){for(n=0,t="@";n<e.length;n++)t+=b(e[n])+",";v.set(e,t)}if(i==h){t="#";let r=h.keys(e).sort();for(;!p(n=r.pop());
9)p(e[n])||(t+=n+":"+b(e[n])+",");v.set(e,t)}}return t},y=new WeakMap,S={},w={},P="undefined",O=typeof window!=P,C=typeof document!=P,E=()=>O&&typeof window.requestAnimationFrame!=P,j=(e,t)=>{let n=y.get(e);return[()=>!p(t)&&e.get(t)||S,r=>{if(!p(t)){let i=e.get(t);t in w||(w[t]=i),n[5](t,g(i,r),i||S)}},n[6],()=>!p(t)&&t in w?w[t]:!p(t)&&e.get(t)||S]},_=!0,[U,z]=O&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[c,c],M={initFocus:e=>(C&&document.addEventListener("visibilitychange",e),U("focus",e),()=>{C&&document.removeEventListener("visibilitychange",e),z("focus",e)}),initReconnect:e=>{let t=()=>{_=!0,e()},n=()=>{_=!1};return U("online",t),U("offline",n),()=>{z("online",t),z("offline",n)}}},L=!l.useId,I=!O||"Deno"in window,R=e=>E()?window.requestAnimationFrame(e):setTimeout(e,1),T=I?l.useEffect:l.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,x=!I&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),N=e=>{if(f(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?b(e):"",t]},W=0,D=()=>++W;var F={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function V(...e){let[t,n,r,i]=e,o=g({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,a=o.rollbackOnError,l=o.optimisticData,u=!1!==o.revalidate,c=e=>"function"==typeof a?a(e):!1!==a,h=o.throwOnError;
9if(f(n)){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(v))}return v(n);async function v(n){let i;let[o]=N(n);if(!o)return;let[a,g]=j(t,o),[v,k,b,S]=y.get(t),w=v[o],P=()=>u&&(delete b[o],delete S[o],w&&w[0])?w[0](2).then(()=>a().data):a().data;if(e.length<3)return P();let O=r,C=D();k[o]=[C,0];let E=!p(l),_=a(),U=_.data,z=_._c,M=p(z)?U:z;if(E&&g({data:l=f(l)?l(M,U):l,_c:M}),f(O))try{O=O(M)}catch(e){i=e}if(O&&m(O)){if(O=await O.catch(e=>{i=e}),C!==k[o][0]){if(i)throw i;return O}i&&E&&c(i)&&(s=!0,g({data:O=M,_c:d}))}s&&!i&&(f(s)&&(O=s(O,M)),g({data:O,error:d,_c:d})),k[o][1]=D();let L=await P();if(g({_c:d}),i){if(h)throw i;return}return s?L:O}}let $=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},B=(e,t)=>{if(!y.has(e)){let n=g(M,t),r={},i=V.bind(d,e),o=c,s={},a=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},u=()=>{if(!y.has(e)&&(y.set(e,[r,{},{},{},i,l,a]),!I)){let t=n.initFocus(setTimeout.bind(d,$.bind(d,r,0))),i=n.initReconnect(setTimeout.bind(d,$.bind(d,r,1)));o=()=>{t&&t(),i&&i(),y.delete(e)}}};return u(),[e,i,u,o]}return[e,y.get(e)[4]]},[q,J]=B(new Map),K=g({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,s=i.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;(p(o)||!(s>o))&&setTimeout(r,a,i)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:x?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:x?5e3:3e3,compare:(e,t)=>b(e)==b(t),isPaused:()=>!1,cache:q,mutate:J,fallback:{}},{isOnline:()=>_,isVisible:()=>{let e=C&&document.visibilityState;return p(e)||"hidden"!==e}}),G=(e,t)=>{let n=g(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:s}=t;r&&o&&(n.use=r.concat(o)),i&&s&&(n.fallback=g(i,s))}return n},Y=(0,l.createContext)({}),Q=O&&window.__SWR_DEVTOOLS_USE__,H=Q?window.__SWR_DEVTOOLS_USE__:[],X=e=>f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Z=()=>g(K,(0,l.useContext)(Y)),ee=(e,t)=>{let[n,r]=N(e),[,,,i]=y.get(q);if(i[n])return i[n];let o=t(r);return i[n]=o,o},et=H.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=N(t),[,,,i]=y.get(q),o=i[r];return p(o)?n(...e):(delete i[r],o)});return e(t,i,r)}),en=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};Q&&(window.__SWR_DEVTOOLS_REACT__=l);let er=e=>N(e)[0],ei=l.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),eo={dedupe:!0},es=h.defineProperty(e=>{let{value:t}=e,n=(0,l.useContext)(Y),r=f(t),i=(0,l.useMemo)(()=>r?t(n):t,[r,n,t]),o=(0,l.useMemo)(()=>r?i:G(n,i),[r,n,i]),s=i&&i.provider,a=(0,l.useRef)(d);s&&!a.current&&(a.current=B(s(o.cache||q),i));let u=a.current;return u&&(o.cache=u[0],o.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,l.createElement)(Y.Provider,g(e,{value:o}))},"defaultValue",{value:K}),ea=(r=(e,t,n)=>{let{cache:r,compare:i,suspense:o,fallbackData:s,revalidateOnMount:a,revalidateIfStale:c,refreshInterval:h,refreshWhenHidden:m,refreshWhenOffline:v,keepPreviousData:k}=n,[b,S,w,P]=y.get(r),[O,C]=N(e),E=(0,l.useRef)(!1),_=(0,l.useRef)(!1),U=(0,l.useRef)(O),z=(0,l.useRef)(t),M=(0,l.useRef)(n),A=()=>M.current,x=()=>A().isVisible()&&A().isOnline(),[W,$,B,q]=j(r,O),J=(0,l.useRef)({}).current,K=p(s)?n.fallback[O]:s,G=(e,t)=>{for(let n in J)if("data"===n){if(!i(e[n],t[n])&&(!p(e[n])||!i(es,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},Y=(0,l.useMemo)(()=>{let e=!!O&&!!t&&(p(a)?!A().isPaused()&&!o&&(!!p(c)||c):a),n=t=>{let n=g(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=W(),i=q(),s=n(r),l=r===i?s:n(i),u=s;return[()=>{let e=n(W());return G(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>l]},[r,O]),Q=(0,u.useSyncExternalStore)((0,l.useCallback)(e=>B(O,(t,n)=>{G(n,t)||e()}),[r,O]),Y[0],Y[1]),H=!E.current,X=b[O]&&b[O].length>0,Z=Q.data,ee=p(Z)?K:Z,et=Q.error,er=(0,l.useRef)(ee),es=k?p(Z)?er.current:Z:ee,ea=(!X||!!
9p(et))&&(H&&!p(a)?a:!A().isPaused()&&(o?!p(ee)&&c:p(ee)||c)),el=!!(O&&t&&H&&ea),eu=p(Q.isValidating)?el:Q.isValidating,ec=p(Q.isLoading)?el:Q.isLoading,ed=(0,l.useCallback)(async e=>{let t,r;let o=z.current;if(!O||!o||_.current||A().isPaused())return!1;let s=!0,a=e||{},l=!w[O]||!a.dedupe,u=()=>L?!_.current&&O===U.current&&E.current:O===U.current,c={isValidating:!1,isLoading:!1},h=()=>{$(c)},g=()=>{let e=w[O];e&&e[1]===r&&delete w[O]},m={isValidating:!0};p(W().data)&&(m.isLoading=!0);try{if(l&&($(m),n.loadingTimeout&&p(W().data)&&setTimeout(()=>{s&&u()&&A().onLoadingSlow(O,n)},n.loadingTimeout),w[O]=[o(C),D()]),[t,r]=w[O],t=await t,l&&setTimeout(g,n.dedupingInterval),!w[O]||w[O][1]!==r)return l&&u()&&A().onDiscarded(O),!1;c.error=d;let e=S[O];if(!p(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return h(),l&&u()&&A().onDiscarded(O),!1;let a=W().data;c.data=i(a,t)?a:t,l&&u()&&A().onSuccess(t,O,n)}catch(n){g();let e=A(),{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=n,l&&u()&&(e.onError(n,O,e),(!0===t||f(t)&&t(n))&&x()&&e.onErrorRetry(n,O,e,e=>{let t=b[O];t&&t[0]&&t[0](F.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,h(),!0},[O,r]),eh=(0,l.useCallback)((...e)=>V(r,U.current,...e),[]);if(T(()=>{z.current=t,M.current=n,p(Z)||(er.current=Z)}),T(()=>{if(!O)return;let e=ed.bind(d,eo),t=0,n=en(O,b,(n,r={})=>{if(n==F.FOCUS_EVENT){let n=Date.now();A().revalidateOnFocus&&n>t&&x()&&(t=n+A().focusThrottleInterval,e())}else if(n==F.RECONNECT_EVENT)A().revalidateOnReconnect&&x()&&e();else if(n==F.MUTATE_EVENT)return ed();else if(n==F.ERROR_REVALIDATE_EVENT)return ed(r)});return _.current=!1,U.current=O,E.current=!0,$({_k:C}),ea&&(p(ee)||I?e():R(e)),()=>{_.current=!0,n()}},[O]),T(()=>{let e;function t(){let t=f(h)?h(W().data):h;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!W().error&&(m||A().isVisible())&&(v||A().isOnline())?ed(eo).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[h,m,v,O]),(0,l.useDebugValue)(es),o&&p(ee)&&O){if(!L&&I)throw Error("Fallback data is required when using suspense in SSR.");z.current=t,M.current=n,_.current=!1;let e=P[O];if(p(e)||ei(eh(e)),p(et)){let e=ed(eo);p(es)||(e.status="fulfilled",e.value=!0),ei(e)}else throw et}return{mutate:eh,get data(){return J.data=!0,es},get error(){return J.error=!0,et},get isValidating(){return J.isValidating=!0,eu},get isLoading(){return J.isLoading=!0,ec}}},function(...e){let t=Z(),[n,i,o]=X(e),s=G(t,o),a=r,{use:l}=s,u=(l||[]).concat(et);for(let e=u.length;e--;)a=u[e](a);return a(n,i||s.fetcher||null,s)}),el=e=>N(e?e(0,null):null)[0],eu=Promise.resolve(),ec=(i=e=>(t,n,r)=>{let i;let o=(0,l.useRef)(!1),{cache:s,initialSize:a=1,revalidateAll:c=!1,persistSize:h=!1,revalidateFirstPage:g=!0,revalidateOnMount:m=!1,parallel:v=!1}=r;try{(i=el(t))&&(i="$inf$"+i)}catch(e){}let[k,b,y]=j(s,i),S=(0,l.useCallback)(()=>p(k()._l)?a:k()._l,[s,i,a]);(0,u.useSyncExternalStore)((0,l.useCallback)(e=>i?y(i,()=>{e()}):()=>{},[s,i]),S,S);let w=(0,l.useCallback)(()=>{let e=k()._l;return p(e)?a:e},[i,a]),P=(0,l.useRef)(w());T(()=>{if(!o.current){o.current=!0;return}i&&b({_l:h?P.current:w()})},[i,s]);let O=m&&!o.current,C=e(i,async e=>{let i=k()._i,o=[],a=w(),[l]=j(s,e),u=l().data,h=[],f=null;for(let e=0;e<a;++e){let[a,l]=N(t(e,v?null:f));if(!a)break;let[d,m]=j(s,a),k=d().data,b=c||i||p(k)||g&&!e&&!p(u)||O||u&&!p(u[e])&&!r.compare(u[e],k);if(n&&b){let t=async()=>{m({data:k=await n(l),_k:l}),o[e]=k};v?h.push(t):await t()}else o[e]=k;v||(f=k)}return v&&await Promise.all(h.map(e=>e())),b({_i:d}),o},r),E=(0,l.useCallback)(function(e,t){let n="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==n.revalidate;return i?(r&&(p(e)?b({_i:!0}):b({_i:!1})),arguments.length?C.mutate(e,{...n,revalidate:r}):C.mutate()):eu},[i,s]),_=(0,l.useCallback)(e=>{let n;if(!i)return eu;let[,r]=j(s,i);if(f(e)?n=e(w()):"number"==typeof e&&(n=e),"number"!=typeof n)return eu;r({_l:n}),P.current=n;let o=[],[a]=j(s,i),l=null;for(let e=0;e<n;++e){let[n]=N(t(e,l)),[r]=j(s,n),i=n?r().data:d;if(p(i))return E(a().data);o.push(i),l=i}return E(o)},[i,s,E,w]);return{size:w(),setSize:_,mutate:E,get data(){return C.data},get error(){return C.error},get isValidating(){return C.isValidating},get isLoading(){return C.isLoading}}},(...e)=>{let[t,n,r]=X(e),o=(r.use||[]).concat(i);return ea(t,n,{...r,use:o})});function ed(e,t){if(!e)throw"string"==typeof t?Error(t):Error(`${t.displayName} not found`)}var eh=(e,t)=>{let{assertCtxFn:n=ed}=t||{},r=l.createContext(void 0);return r.displayName=e,[r,()=>{let t=l.useContext(r);return n(t,`${e} not found`),t.value},()=>{let e=l.useContext(r);return e?e.value:{}}]},ep={};(0,a.r2)(ep,{SWRConfig:()=>
9es,useSWR:()=>ea,useSWRInfinite:()=>ec}),(0,a.yA)(ep,o);var[ef,eg]=eh("ClerkInstanceContext"),[em,ev]=eh("UserContext"),[ek,eb]=eh("ClientContext"),[ey,eS]=eh("SessionContext"),[ew,eP]=eh("OrganizationContext"),eO=({children:e,organization:t,swrConfig:n})=>l.createElement(es,{value:n},l.createElement(ew.Provider,{value:{value:{organization:t}}},e));function eC(e){if(!l.useContext(ef)){if("function"==typeof e){e();return}throw Error(`${e} can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider`)}}function eE(e,t){let n=new Set(Object.keys(t)),r={};for(let t of Object.keys(e))n.has(t)||(r[t]=e[t]);return r}var ej=(e,t)=>{var n,r,i;let o="boolean"==typeof e&&e,s=(0,l.useRef)(o?t.initialPage:null!=(n=null==e?void 0:e.initialPage)?n:t.initialPage),a=(0,l.useRef)(o?t.pageSize:null!=(r=null==e?void 0:e.pageSize)?r:t.pageSize),u={};for(let n of Object.keys(t))u[n]=o?t[n]:null!=(i=null==e?void 0:e[n])?i:t[n];return{...u,initialPage:s.current,pageSize:a.current}},e_={dedupingInterval:6e4,focusThrottleInterval:12e4},eU=(e,t,n,r)=>{var i,o,s,a,u,c,d;let[h,p]=(0,l.useState)(null!=(i=e.initialPage)?i:1),f=(0,l.useRef)(null!=(o=e.initialPage)?o:1),g=(0,l.useRef)(null!=(s=e.pageSize)?s:10),m=null==(a=n.enabled)||a,v=null!=(u=n.infinite)&&u,k=null!=(c=n.keepPreviousData)&&c,b={...r,...e,initialPage:h,pageSize:g.current},{data:y,isValidating:S,isLoading:w,error:P,mutate:O}=ea(!v&&t&&m?b:null,e=>{let n=eE(e,r);return null==t?void 0:t(n)},{keepPreviousData:k,...e_}),{data:C,isLoading:E,isValidating:j,error:_,size:U,setSize:z,mutate:M}=ec(t=>v&&m?{...e,...r,initialPage:f.current+t,pageSize:g.current}:null,e=>{let n=eE(e,r);return null==t?void 0:t(n)},e_),L=(0,l.useMemo)(()=>v?U:h,[v,U,h]),I=(0,l.useCallback)(e=>{if(v){z(e);return}return p(e)},[z]),R=(0,l.useMemo)(()=>{var e,t;return v?null!=(e=null==C?void 0:C.map(e=>null==e?void 0:e.data).flat())?e:[]:null!=(t=null==y?void 0:y.data)?t:[]},[v,y,C]),T=(0,l.useMemo)(()=>{var e,t;return v?(null==(e=null==C?void 0:C[(null==C?void 0:C.length)-1])?void 0:e.total_count)||0:null!=(t=null==y?void 0:y.total_count)?t:0},[v,y,C]),A=v?E:w,x=v?j:S,N=null!=(d=v?_:P)?d:null,W=(0,l.useCallback)(()=>{I(e=>Math.max(0,e+1))},[I]),D=(0,l.useCallback)(()=>{I(e=>Math.max(0,e-1))},[I]),F=(f.current-1)*g.current,V=Math.ceil((T-F)/g.current),$=T-F*g.current>L*g.current,B=(L-1)*g.current>F*g.current,q=v?e=>M(e,{revalidate:!1}):e=>O(e,{revalidate:!1});return{data:R,count:T,error:N,isLoading:A,isFetching:x,isError:!!N,page:L,pageCount:V,fetchPage:I,fetchNext:W,fetchPrevious:D,hasNextPage:$,hasPreviousPage:B,revalidate:v?()=>M():()=>O(),setData:q}},ez={data:void 0,count:void 0,error:void 0,isLoading:!1,isFetching:!1,isError:!1,page:void 0,pageCount:void 0,fetchPage:void 0,fetchNext:void 0,fetchPrevious:void 0,hasNextPage:!1,hasPreviousPage:!1,revalidate:void 0,setData:void 0},eM=e=>{var t,n,r;let{domains:i,membershipRequests:o,memberships:a,invitations:l}=e||{};eC("useOrganization");let{organization:u}=eP(),c=eS(),d=ej(i,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,enrollmentMode:void 0}),h=ej(o,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),p=ej(a,{initialPage:1,pageSize:10,role:void 0,keepPreviousData:!1,infinite:!1}),f=ej(l,{initialPage:1,pageSize:10,status:["pending"],keepPreviousData:!1,infinite:!1}),g=eg();null==(t=g.telemetry)||t.record((0,s.J)("useOrganization"));let m=void 0===i?void 0:{initialPage:d.initialPage,pageSize:d.pageSize,enrollmentMode:d.enrollmentMode},v=void 0===o?void 0:{initialPage:h.initialPage,pageSize:h.pageSize,status:h.status},k=void 0===a?void 0:{initialPage:p.initialPage,pageSize:p.pageSize,role:p.role},b=void 0===l?void 0:{initialPage:f.initialPage,pageSize:f.pageSize,status:f.status},y=eU({...m},null==u?void 0:u.getDomains,{keepPreviousData:d.keepPreviousData,infinite:d.infinite,enabled:!!m},{type:"domains",organizationId:null==u?void 0:u.id}),S=eU({...v},null==u?void 0:u.getMembershipRequests,{keepPreviousData:h.keepPreviousData,infinite:h.infinite,enabled:!!v},{type:"membershipRequests",organizationId:null==u?void 0:u.id}),w=eU(k||{},null==u?void 0:u.getMemberships,{keepPreviousData:p.keepPreviousData,infinite:p.infinite,enabled:!!k},{type:"members",organizationId:null==u?void 0:u.id}),P=eU({...b},null==u?void 0:u.getInvitations,{keepPreviousData:f.keepPreviousData,infinite:f.infinite,enabled:!!b},{type:"invitations",organizationId:null==u?void 0:u.id});return void 0===u?{isLoaded:!1,organization:void 0,membership:void 0,domains:ez,membershipRequests:ez,memberships:ez,invitations:ez}:null===u?{isLoaded:!0,organization:null,membership:null,domains:null,membershipRequests:null,memberships:null,invitations:null}:!g.loaded&&u?{isLoaded:!0,organization:u,membership:void 0,domains:ez,membershipRequests:ez,memberships:ez,invitations:ez}:{isLoaded:g.loaded,organization:u,membership:(n=c.user.organizationMemberships,r=u.id,n.find(e=>e.organization.id===r)),domains:y,membershipRequests:S,memberships:w,invitations:P}},eL={data:void 0,count:void 0,error:void 0,isLoading:!1,isFetching:!1,isError:!1,page:void 0,pageCount:void 0,fetchPage:void 0,fetchNext:void 0,fetchPrevious:void 0,hasNextPage:!1,hasPreviousPage:!1,revalidate:void 0,setData:void 0},eI=e=>{var t;let{userMemberships:n,userInvitations:r,userSuggestions:i}=e||{};eC("useOrganizationList");let o=ej(n,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1}),a=ej(r,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),l=ej(i,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),u=eg(),c=ev();null==(t=u.telemetry)||t.record((0,s.J)("useOrganizationList"));let d=void 0===n?void 0:{initialPage:o.initialPage,pageSize:o.pageSize},h=void 0===r?void 0:{initialPage:a.initialPage,pageSize:a.pageSize,status:a.status},p=void 0===i?void 0:{initialPage:l.initialPage,pageSize:l.pageSize,status:l.status},f=!!(u.loaded&&c),g=eU(d||{},null==c?void 0:c.getOrganizationMemberships,{keepPreviousData:o.keepPreviousData,infinite:o.infinite,enabled:!!d},{type:"userMemberships",userId:null==c?void 0:c.id}),m=eU({...h},null==c?void 0:c.getOrganizationInvitations,{keepPreviousData:a.keepPreviousData,infinite:a.infinite,enabled:!!h},{type:"userInvitations",userId:null==c?void 0:c.id}),v=eU({...p},null==c?void 0:c.getOrganizationSuggestions,{keepPreviousData:l.keepPreviousData,infinite:l.infinite,enabled:!!p},{type:"userSuggestions",userId:null==c?void 0:c.id});return f?{isLoaded:f,setActive:u.setActive,createOrganization:u.createOrganization,userMemberships:g,userInvitations:m,userSuggestions:v}
9:{isLoaded:!1,createOrganization:void 0,setActive:void 0,userMemberships:eL,userInvitations:eL,userSuggestions:eL}};"undefined"!=typeof window?l.useLayoutEffect:l.useEffect;var eR=()=>{eC("useSession");let e=eS();return void 0===e?{isLoaded:!1,isSignedIn:void 0,session:void 0}:null===e?{isLoaded:!0,isSignedIn:!1,session:null}:{isLoaded:!0,isSignedIn:!0,session:e}},eT=()=>{eC("useSessionList");let e=eg(),t=eb();return t?{isLoaded:!0,sessions:t.sessions,setActive:e.setActive}:{isLoaded:!1,sessions:void 0,setActive:void 0}};function eA(){eC("useUser");let e=ev();return void 0===e?{isLoaded:!1,isSignedIn:void 0,user:void 0}:null===e?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:e}}var ex=()=>(eC("useClerk"),eg()),eN=Object.prototype.hasOwnProperty;function eW(e,t,n){for(n of e.keys())if(eD(n,t))return n}function eD(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&eD(e[r],t[r]););return -1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if((i=r)&&"object"==typeof i&&!(i=eW(t,i))||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if((i=r[0])&&"object"==typeof i&&!(i=eW(t,i))||!eD(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!n||"object"==typeof e){for(n in r=0,e)if(eN.call(e,n)&&++r&&!eN.call(t,n)||!(n in t)||!eD(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}var eF=eD}}]);

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.