1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,233525,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},305836,e=>{"use strict";var t=e.i(843476);e.i(650989);var i=e.i(931067),r=e.i(505926),n=e.i(954402),a=e.i(435488),s=e.i(454679),o=e.i(417112),u=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,i.default)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,r.isValidTimeout)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){e.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var i,n,a=this.state.data,s=(0,r.functionalUpdate)(e,a);return(null==(i=(n=this.options).isDataEqual)?void 0:i.call(n,a,s))?s=a:!1!==this.options.structuralSharing&&(s=(0,r.replaceEqualDeep)(a,s)),this.dispatch({data:s,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),s},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,i=this.promise;return null==(t=this.retryer)||t.cancel(e),i?i.then(r.noop).catch(r.noop):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,r.timeUntilStale)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var i,n,a,u,c,l,d=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var h=this.observers.find(function(e){return e.options.queryFn});h&&this.setOptions(h.options)}var f=(0,r.ensureQueryKeyArray)(this.queryKey),p=(0,r.getAbortController)(),m={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(m,"signal",{enumerable:!0,get:function(){if(p)return d.abort
1SignalConsumed=!0,p.signal}});var g={fetchOptions:t,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return d.options.queryFn?(d.abortSignalConsumed=!1,d.options.queryFn(m)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(u=this.options.behavior)?void 0:u.onFetch)&&(null==(n=this.options.behavior)||n.onFetch(g)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(c=g.fetchOptions)?void 0:c.meta)||this.dispatch({type:"fetch",meta:null==(a=g.fetchOptions)?void 0:a.meta}),this.retryer=new o.Retryer({fn:g.fetchFn,abort:null==p||null==(l=p.abort)?void 0:l.bind(p),onSuccess:function(e){d.setData(e),null==d.cache.config.onSuccess||d.cache.config.onSuccess(e,d),0===d.cacheTime&&d.optionalRemove()},onError:function(e){(0,o.isCancelledError)(e)&&e.silent||d.dispatch({type:"error",error:e}),(0,o.isCancelledError)(e)||(null==d.cache.config.onError||d.cache.config.onError(e,d),(0,s.getLogger)().error(e)),0===d.cacheTime&&d.optionalRemove()},onFail:function(){d.dispatch({type:"failed"})},onPause:function(){d.dispatch({type:"pause"})},onContinue:function(){d.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.notifyManager.batch(function(){t.observers.forEach(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:"queryUpdated",action:e})})},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,i=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var r,n;switch(t.type){case"failed":return(0,i.default)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,i.default)({},e,{isPaused:!0});case"continue":return(0,i.default)({},e,{isPaused:!1});case"fetch":return(0,i.default)({},e,{fetchFailureCount:0,fetchMeta:null!=(r=t.meta)?r:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,i.default)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(n=t.dataUpdatedAt)?n:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var a=t.error;if((0,o.isCancelledError)(a)&&a.revert&&this.revertState)return(0,i.default)({},this.revertState);return(0,i.default)({},e,{error:a,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,i.default)({},e,{isInvalidated:!0});case"setState":return(0,i.default)({},e,t.state);default:return e}},e}(),c=e.i(294452),l=function(e){function t(t){var i;return(i=e.call(this)||this).config=t||{},i.queries=[],i.queriesMap={},i}(0,n.default)(t,e);var i=t.prototype;return i.build=function(e,t,i){var n,a=t.queryKey,s=null!=(n=t.queryHash)?n:(0,r.hashQueryKeyByOptions)(a,t),o=this.get(s);return o||(o=new u({cache:this,queryKey:a,queryHash:s,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(a),meta:t.meta}),this.add(o)),o},i.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},i.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},i.clear=function(){var e=this;a.notifyManager.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},i.get=function(e){return this.queriesMap[e]},i.getAll=function(){return this.queries},i.find=function(e,t){var i=(0,r.parseFilterArgs)(e,t)[0];return void 0===i.exact&&(i.exact=!0),this.queries.find(function(e){return(0,r.matchQuery)(i,e)})},i.findAll=function(e,t){var i=(0,r.parseFilterArgs)(e,t)[0];return Object.keys(i).length>0?this.queries.filter(function(e){return(0,r.matchQuery)(i,e)}):this.queries},i.notify=function(e){var t=this;
1a.notifyManager.batch(function(){t.listeners.forEach(function(t){t(e)})})},i.onFocus=function(){var e=this;a.notifyManager.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},i.onOnline=function(){var e=this;a.notifyManager.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(c.Subscribable),d=e.i(157647),h=function(e){function t(t){var i;return(i=e.call(this)||this).config=t||{},i.mutations=[],i.mutationId=0,i}(0,n.default)(t,e);var i=t.prototype;return i.build=function(e,t,i){var r=new d.Mutation({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:i,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},i.add=function(e){this.mutations.push(e),this.notify(e)},i.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},i.clear=function(){var e=this;a.notifyManager.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},i.getAll=function(){return this.mutations},i.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return(0,r.matchMutation)(e,t)})},i.findAll=function(e){return this.mutations.filter(function(t){return(0,r.matchMutation)(e,t)})},i.notify=function(e){var t=this;a.notifyManager.batch(function(){t.listeners.forEach(function(t){t(e)})})},i.onFocus=function(){this.resumePausedMutations()},i.onOnline=function(){this.resumePausedMutations()},i.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPau
1sed});return a.notifyManager.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(r.noop)})},Promise.resolve())})},t}(c.Subscribable),f=e.i(525085),p=e.i(920019),m=e.i(207147),g=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new l,this.mutationCache=e.mutationCache||new h,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=f.focusManager.subscribe(function(){f.focusManager.isFocused()&&p.onlineManager.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=p.onlineManager.subscribe(function(){f.focusManager.isFocused()&&p.onlineManager.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var i=(0,r.parseFilterArgs)(e,t)[0];return i.fetching=!0,this.queryCache.findAll(i).length},t.isMutating=function(e){return this.mutationCache.findAll((0,i.default)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var i;return null==(i=this.queryCache.find(e,t))?void 0:i.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,i){var n=(0,r.parseQueryArgs)(e),a=this.defaultQueryOptions(n);return this.queryCache.build(this,a).setData(t,i)},t.setQueriesData=function(e,t,i){var r=this;return a.notifyManager.batch(function(){return r.getQueryCache().findAll(e).map(function(e){var n=e.queryKey;return[n,r.setQueryData(n,t,i)]})})},t.getQueryState=function(e,t){var i;return null==(i=this.queryCache.find(e,t))?void 0:i.state},t.removeQueries=function(e,t){var i=(0,r.parseFilterArgs)(e,t)[0],n=this.queryCache;a.notifyManager.batch(function(){n.findAll(i).forEach(function(e){n.remove(e)})})},t.resetQueries=function(e,t,n){var s=this,o=(0,r.parseFilterArgs)(e,t,n),u=o[0],c=o[1],l=this.queryCache,d=(0,i.default)({},u,{active:!0});return a.notifyManager.batch(function(){return l.findAll(u).forEach(function(e){e.reset()}),s.refetchQueries(d,c)})},t.cancelQueries=function(e,t,i){var n=this,s=(0,r.parseFilterArgs)(e,t,i),o=s[0],u=s[1],c=void 0===u?{}:u;return void 0===c.revert&&(c.revert=!0),Promise.all(a.notifyManager.batch(function(){return n.queryCache.findAll(o).map(function(e){return e.cancel(c)})})).then(r.noop).catch(r.noop)},t.invalidateQueries=function(e,t,n){var s,o,u,c=this,l=(0,r.parseFilterArgs)(e,t,n),d=l[0],h=l[1],f=(0,i.default)({},d,{active:null==(s=null!=(o=d.refetchActive)?o:d.active)||s,inactive:null!=(u=d.refetchInactive)&&u});return a.notifyManager.batch(function(){return c.queryCache.findAll(d).forEach(function(e){e.invalidate()}),c.refetchQueries(f,h)})},t.refetchQueries=function(e,t,n){var s=this,o=(0,r.parseFilterArgs)(e,t,n),u=o[0],c=o[1],l=Promise.all(a.notifyManager.batch(function(){return s.queryCache.findAll(u).map(function(e){return e.fetch(void 0,(0,i.default)({},c,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))})})).then(r.noop);return(null==c?void 0:c.throwOnError)||(l=l.catch(r.noop)),l},t.fetchQuery=function(e,t,i){var n=(0,r.parseQueryArgs)(e,t,i),a=this.defaultQueryOptions(n);void 0===a.retry&&(a.retry=!1);var s=this.queryCache.build(this,a);return s.isStaleByTime(a.staleTime)?s.fetch(a):Promise.resolve(s.state.data)},t.prefetchQuery=function(e,t,i){return this.fetchQuery(e,t,i).then(r.noop).catch(r.noop)},t.fetchInfiniteQuery=function(e,t,i){var n=(0,r.parseQueryArgs)(e,t,i);return n.behavior=(0,m.infiniteQueryBehavior)(),this.fetchQuery(n)},t.prefetchInfiniteQuery=function(e,t,i){return this.fetchInfiniteQuery(e,t,i).then(r.noop).catch(r.noop)},t.cancelMutations=function(){var e=this;return Promise.all(a.notifyManager.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})})).then(r.noop).catch(r.noop)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var i=this.queryDefaults.find(function(t){return(0,r.hashQueryKey)(e)===(0,r.hashQueryKey)(t.queryKey)});i?i.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return(0,r.partialMatchKey)(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var i=this.mutationDefaults.find(function(t){return(0,r.hashQueryKey)(e)===(0,r.hashQueryKey)(t.mutationKey)});i?i.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return(0,r.partialMatchKey)(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,i.default)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,r.hashQueryKeyByOptions)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,i.default)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),y=e.i(188700);let v=new g;e.s(["default",0,({children:e})=>(0,t.jsx)(y.QueryClientProvider,{client:v,children:e})],305836)},268782,e=>{"use strict";var t=e.i(95187),i=(0,t.createServerReference)("602c1df65eeef386bd3429efbe8399d5301d136448",t.callServer,void 0,t.findSourceMapURL,"createCookie");e.s(["createCookie",()=>i])},98919,e=>{"use strict";let t=(0,e.i(475254).default)("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
1y:"oel41y"}]]);e.s(["Shield",()=>t],98919)},136794,e=>{"use strict";var t=e.i(95187),i=(0,t.createServerReference)("404e43d0eb740529708a02917fecda550daf3bf551",t.callServer,void 0,t.findSourceMapURL,"validateGoogleReviewerUserCode");e.s(["validateGoogleReviewerUserCode",()=>i])},24008,e=>{"use strict";var t=e.i(271645),i=e.i(431908),r=e.i(617310),n=e.i(901760),a=e.i(721552),s=e.i(170319);e.s(["default",0,function(){let{getAppCookies:e}=(0,i.useAppCookies)(),{setState:o}=(0,n.useCookiesPolicyBannerStore)(e=>e),u=(0,t.useRef)(null);return{didUserAcceptCookiesPolicy:e(["didUserAcceptCookiesPolicy"]).didUserAcceptCookiesPolicy,getDidUserAcceptCookiesPolicy:function(t,i){u.current&&s.toast.dismiss(u.current);let{didUserAcceptCookiesPolicy:n}=e(["didUserAcceptCookiesPolicy"]);return t&&!n?(u.current=(0,r.presentInfoToast)(i,a.DEFAULT_TEXT_SZ,{autoClose:4e3}),o({isDisplayed:!0}),!1):!!n}}}])},321179,e=>{"use strict";var t=e.i(95187),i=(0,t.createServerReference)("7ff29348558d80dac86bb33ace6078af1d8f060771",t.callServer,void 0,t.findSourceMapURL,"redirectClient");e.s(["redirectClient",()=>i])},531278,325099,e=>{"use strict";let t=(0,e.i(475254).default)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],531278);var i=e.i(95187),r=(0,i.createServerReference)("408726815269458bbabbe62b316d08d12457970598",i.callServer,void 0,i.findSourceMapURL,"verifyAccountSignInRecaptcha");e.s(["verifyAccountSignInRecaptcha",()=>r],325099)},492566,e=>{"use strict";var t=e.i(843476),i=e.i(617310),r=e.i(13642),n=e.i(32638),a=e.i(258078),s=e.i(170319),o=e.i(251574),u=e.i(869262);let[,c]=(0,i.getVersionReleaseStrNumAndNameOfLandingPg)();e.s(["default",0,({children:e,className:i="",isFootbarDisplayed:l=!0,canShowNavElements:d=!0,isNavBarDisplayedOnTop:h=!0,isNavBarDisplayedOnSide:f,menuClassName:p,navClassName:m,mobileLogoContainerClassName:g,sideNavTriggerVariant:y,canToastBeDisplayed:v})=>{if(h&&f)throw Error("Navbar must be either on the top or on the side.");return(0,t.jsxs)("div",{className:i,children:[h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("nav",{className:"fixed top-0 w-full bg-white/80 backdrop-blur-sm z-50 border-b hidden sm:block",children:(0,t.jsx)(n.default,{appVersionName:c,isNavbarDisplayedOnTop:!0,canShowNavElements:d})}),(0,t.jsx)(a.default,{appVersionName:c,menuClassName:p,navClassName:m,mobileLogoContainerClassName:g,sideNavTriggerVariant:y})]}),f&&(0,t.jsx)(a.default,{appVersionName:c,menuClassName:p,navClassName:m,mobileLogoContainerClassName:g,sideNavTriggerVariant:y}),e,v&&(0,t.jsx)(s.ToastContainer,{style:{zIndex:1e6},toastStyle:{zIndex:1e6}}),(0,t.jsx)(o.default,{}),l&&(0,t.jsx)(r.default,{}),(0,t.jsx)(u.default,{})]})}])},594542,e=>{"use strict";let t,i,r;var n=e.i(843476),a=e.i(492566);e.i(247167);var s=e.i(515288),o=e.i(600193),u=e.i(457077),c=e.i(98919),l=e.i(271645),d=e.i(249172),h=e.i(136794),f=e.i(519455),p=e.i(431908),m=e.i(24008),g=e.i(901760),y=e.i(975157),v=e.i(721552),b=e.i(617310),C=e.i(531278),x=e.i(657688),w=e.i(346944),S=e.i(170319);let A=(t=v.APP_COLOR_PURPLE.replace(/^rgb\(/,"rgba(").replace(/\)$/,", 0.62)"),i=v.APP_COLOR_BLUE.replace(/1\)$/,"0.45)"),r=v.DEFAULT_THEME.primary.replace(/1\)$/,"0.26)"),`0 0 22px ${t}, 0 10px 38px -8px ${i}, 0 0 32px ${r}`),[,O]=(0,b.getVersionReleaseStrNumAndNameOfLandingPg)(),q=({onBeforeOAuthRedirect:e,_isRedirecting:t,rediretUriPath:i})=>{let[r,a]=t,[u,c]=(0,l.useState)(!1),{presentErrorToast:q}=(0,o.useErrorToast)(),{getDidUserAcceptCookiesPolicy:k}=(0,m.default)(),{setAppCookies:M}=(0,p.useAppCookies)(),U=(0,g.useUserChosenPlanStore)((0,w.useShallow)(e=>e.userCode)),T=(0,l.useCallback)(async t=>{if(t.preventDefault(),a(!0),!k(!0,"Please accept our cookies policy to sign in."))return void setTimeout(()=>a(!1),300);if("pre-launch"===O&&!U){q("Sorry weren't not allowing user to sign up at this moment. Please try again when we officially launch."),setTimeout(()=>a(!1),300);return}let r="pre-launch-google-reviewable"===O&&!!U&&await (0,h.validateGoogleReviewerUserCode)(U);if("pre-launch-google-reviewable"===O&&!r){q("Sorry weren't not allowing user to sign up at this moment. Please try again when we officially launch."),setTimeout(()=>a(!1),300);return}if(e&&!await e())return void a(!1);(0,b.setLocalStorageItem)("authType","signIn"),U&&M("userCode",U);let n=(0,d.createAuthUrl)(i)?.href;if(!n){console.error("No auth url was created."),a(!1);return}setTimeout(()=>{a(!1),window.location.href=n,(0,b.removeLocalStorageItem)("aboutUser")},300)},[O,k,q,M,U,e]);return(0,l.useEffect)(()=>{let e=(0,b.getSessionStorageItem)("displayToastMsg");if(e){S.toast.success((0,n.jsx)("span",{className:"text-sm",children:e}),{autoClose:9e3,position:"top-center"}),(0,b.removeSessionStorageItem)("displayToastMsg");return}},[]),(0,n.jsxs)(s.Card,{className:"relative w-full overflow-hidden border border-border bg-card shadow-sm sm:w-[450px] before:pointer-events-none before:absolute before:inset-x-0 before:top-0 before:z-10 before:h-1 before:bg-gradient-to-r before:from-[rgba(209,127,247,1)] before:to-[rgba(157,214,252,1)]",children:[(0,n.jsxs)(s.CardHeader,{className:"space-y-2 border-b border-border px-6 pb-5 pt-8 text-center",children:[(0,n.jsxs)(s.CardTitle,{className:(0,y.mergeTailwindClasses)(v.APP_COLOR_GRADIENT,"bg-clip-text text-3xl font-bold tracking-tight text-transparent"),children:[v.APP_NAME," Login"]}),(0,n.jsxs)(s.CardDescription,{className:"mx-auto max-w-[370px] text-base leading-snug text-muted-foreground flex flex-col",children:[(0,n.jsx)("span",{className:"mt-1",children:"Log in with Google to sign up or view your account."}),(0,n.jsx)("span",{className:"mt-4 mb-2",children:"Click the button below â¬ï¸."})]})]}),(0,n.jsx)(s.CardContent,{className:"flex flex-col gap-3 px-6 py-6",children:(0,n.jsx)(f.Button,{type:"button",variant:"outline",disabled:r,onClick:T,"aria-busy":r,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),style:{boxShadow:r||u?void 0:A},className:(0,y.mergeTailwindClasses)("h-12 w-full rounded-md border border-input bg-background font-medium transition-[box-shadow,background-color] duration-300 ease-out","hover:bg-muted/60","focus-visible:ring-2 focus-visible:ring-[rgba(209,127,247,0.45)] focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-60",!u&&!r&&"motion-safe:animate-account-cta-float motion-reduce:animate-none"),children:(0,n.jsx)("span",{className:"flex w-full items-center justify-center gap-3",children:r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C.Loader2,{className:"h-5 w-5 shrink-0 animate-spin text-[rgba(209,127,247,1)]","aria-hidden":!0}),(0,n.jsx)("span",{className:"text-foreground",children:"Loadingâ¦"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.default,{src:"https://www.gstatic.
1com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",width:20,height:20,className:"shrink-0","aria-hidden":!0}),(0,n.jsx)("span",{className:"text-foreground",children:"Get started with Google"})]})})})})]})};var k=e.i(95187),M=(0,k.createServerReference)("40404818a2699ef7969c4d45702558ddd79d6d9d34",k.callServer,void 0,k.findSourceMapURL,"getUserAuthTokens"),U=e.i(268782),T=e.i(325099),R=e.i(321179);e.i(650989);var F=e.i(188700),N=e.i(353142);async function _(e){console.log("tokenRetrievalResult, yo there: ",e),console.log("tokenRetrievalResult.auth_tokens.expires_at typeof: ",typeof e.auth_tokens.expires_at),console.log("tokenRetrievalResult.auth_tokens.expires_at: ",e.auth_tokens.expires_at);let t=0;if(e.session_id&&(await (0,U.createCookie)(["sessionId",e.session_id]),t+=1),e.auth_tokens.expires_at){let i=1e3*e.auth_tokens.expires_at;await (0,U.createCookie)(["expiresAt",i.toString()]),t+=1}return(e.auth_tokens.access&&(await (0,U.createCookie)(["access",e.auth_tokens.access]),t+=1),e.auth_tokens.refresh&&(await (0,U.createCookie)(["refresh",e.auth_tokens.refresh]),t+=1),e.user?.email&&(await (0,U.createCookie)(["email",e.user.email]),t+=1),e.user?.given_name&&await (0,U.createCookie)(["givenName",e.user.given_name]),e.pic?(await (0,U.createCookie)(["userImg",e.pic]),t+=1):e.user?.picture&&(await (0,U.createCookie)(["userImg",e.user.picture]),t+=1),console.log("tokenRetrievalResult.guest_user_id: ",e.guest_user_id),e.guest_user_id?(await (0,U.createCookie)(["guestUserId",e.guest_user_id]),await (0,U.createCookie)(["isUserGuest",!0]),t+=1):e.user_id&&(await (0,U.createCookie)(["userId",e.user_id]),t+=1),7!==t)?{wasCookiesSetSuccessful:!1}:{wasCookiesSetSuccessful:!0}}let j=()=>{let{presentErrorToast:e,toastIdRef:t}=(0,o.useErrorToast)(),[i,r]=(0,l.useState)(""),[a,d]=(0,l.useState)(!1),{Captcha:h,ref:f,executeVerificationAsync:p}=(0,u.default)({isDisabled:a}),m=(0,l.useRef)(null);(0,F.useQuery)({refetchOnWindowFocus:!1,staleTime:1/0,queryFn:async()=>{let i=new URL(window.location.href).searchParams.get("code");if(console.log("Attempting to find code from URL search parameters for sign-in flow:",i),!i)return console.log("No authorization code found in URL search parameters during sign-in."),null;t.current&&S.toast.dismiss(t.current);try{d(!0),m.current&&S.toast.dismiss(m.current),m.current=(0,b.presentInfoToast)("Signing you in, please wait...",void 0,{autoClose:!1,onClose(){m.current=null},className:"rounded-lg text-sm",position:"top-center",theme:"colored",style:{zIndex:1e7}}),console.log("Signed in! Redirect will occur after successful token retrieval..."),await (0,b.pause)(400);let e=await M({code:i,auth_token_retrieval_type:"retrieveInitialAccessToken",auth_url_redirect_type:"signIn"});console.log("Token retrieval result received in SignInUI.tsx after requesting tokens from external app server:",e);let t={wasCookiesSetSuccessful:!1};if(e&&"auth_tokens"in e&&(console.log("User authenticated. Setting cookies and proceeding with sign-in flow..."),t=await _(e)),m.current&&S.toast.dismiss(m.current),t.wasCookiesSetSuccessful&&(e?.is_user_guest||e?.guest_user_id)){console.log("User is a guest and cookies have been set successfully. Redirecting to onboarding step 2..."),await (0,R.redirectClient)("/onboarding?step=2");return}if(t.wasCookiesSetSuccessful){console.log("User is a guest and cookies have been set successfully. Redirecting to onboarding step 2..."),await (0,R.redirectClient)("/profile");return}throw new N.CustomClientError("authFailed","Authentication failed. Please try again.",!0)}catch(n){console.log("err in SignInUI.tsx queryFn catch:",n);let{errType:t,message:i,willShowContactSupportTxtInToast:r}=n??{};console.error("Error type:",t),m.current&&S.toast.dismiss(m.current),e(i??"",void 0,r),console.error("An error has occurred within SignInUI.tsx"),console.error("An error has occurred within the 'queryFn': ",n)}finally{d(!1)}}});let g=(0,l.useCallback)(async()=>{let t=await p();if(!t)return e("Please confirm that you're not a robot ð¤."),r("text-red-500"),setTimeout(()=>{r("")},2e3),!1;let{isValid:i}=await (0,T.verifyAccountSignInRecaptcha)(t);return!!i||(f.current?.reset(),e("Security verification failed. Please try signing in again."),!1)},[p,e]),y=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=!!(0,b.getSessionStorageItem)("wasSignOutSuccessful");y.current&&S.toast.dismiss(y.current),e&&(y.current=(0,b.presentInfoToast)("You have successfully signed out. See you next time! ð","text-sm"),(0,b.removeSessionStorageItem)("wasSignOutSuccessful"))},[]),(0,n.jsxs)("div",{id:"account-guest-sign-in",className:"flex w-full max-w-md flex-col items-stretch sm:max-w-[450px]",children:[(0,n.jsx)(q,{onBeforeOAuthRedirect:g,_isRedirecting:[a,d],rediretUriPath:"login"}),h?(0,n.jsxs)(s.Card,{className:"relative mt-4 w-full overflow-hidden border border-border bg-card/90 shadow-sm backdrop-blur-sm before:pointer-events-none before:absolute before:inset-x-0 before:top-0 before:z-10 before:h-1 before:bg-gradient-to-r before:from-[rgba(209,127,247,1)] before:to-[rgba(157,214,252,1)]","aria-labelledby":"account-sign-in-security-heading",children:[(0,n.jsxs)(s.CardHeader,{className:"space-y-1 px-5 pb-2 pt-5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,n.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-border/80 bg-muted/40","aria-hidden":!0,
1children:(0,n.jsx)(c.Shield,{className:"h-4 w-4 text-[rgba(209,127,247,0.95)]"})}),(0,n.jsx)(s.CardTitle,{id:"account-sign-in-security-heading",className:`text-lg font-semibold tracking-tight ${i}`,children:"Bot protection"})]}),(0,n.jsxs)(s.CardDescription,{className:"pl-[2.875rem] text-sm leading-relaxed text-muted-foreground",children:["Check the box below, then use"," ",(0,n.jsx)("span",{className:"font-medium text-foreground/90",children:"Get started with Google"}),". Google may show an additional image challenge after you check the box."]})]}),(0,n.jsx)(s.CardContent,{className:"flex flex-col items-center px-5 pb-5 pt-0 sm:items-start",children:(0,n.jsx)("div",{className:"flex w-full max-w-full items-center justify-center rounded-md border border-dashed border-border/70 bg-muted/25 px-3 py-4 sm:justify-start",children:h})})]}):null]})};var D=(0,k.createServerReference)("00023cbe39e2542093777a2ffd3f61e8a19afc9035",k.callServer,void 0,k.findSourceMapURL,"getUserLoginStatus"),P=e.i(618566);let I=()=>{let e=(0,P.useRouter)(),t=(0,l.useRef)(!1);return(0,l.useEffect)(()=>{let i=!0;return async function(){try{let{userLoginStatus:r}=await D();("loggedInAsGuest"===r||"loggedInHasAccount"===r)&&i&&!t.current&&(t.current=!0,e.replace("/onboarding"))}catch(e){console.error("An error has occurred within SignInAuthGate.tsx"),console.error("An error has occurred within 'checkIsUserAuthenticated': ",e)}}(),()=>{i=!1}},[e]),null};var Q=e.i(305836);e.s(["default",0,()=>(0,n.jsxs)(a.default,{isFootbarDisplayed:!0,isNavBarDisplayedOnTop:!1,isNavBarDisplayedOnSide:!0,menuClassName:"block sm:block",navClassName:"sm:block h-auto min-h-[4.5rem] py-2 !bg-white/90 !backdrop-blur-sm border-b border-gray-200/80 shadow-sm sm:!bg-transparent sm:!backdrop-blur-none sm:border-0 sm:shadow-none sm:ring-0",mobileLogoContainerClassName:"hidden",sideNavTriggerVariant:"accountSettings",children:[(0,n.jsx)(I,{}),(0,n.jsx)("div",{className:"relative flex min-h-screen w-full flex-col items-center pt-3 overflow-x-hidden bg-gradient-to-r from-[rgba(209,127,247,0.1)] to-[rgba(157,214,252,0.1)] px-4 pt-[5.5rem] pb-20 sm:px-6 sm:pt-24 sm:pb-24",children:(0,n.jsx)(Q.default,{children:(0,n.jsx)(j,{})})}),(0,n.jsx)(S.ToastContainer,{style:{zIndex:1e6},toastStyle:{zIndex:1e6}})]})],594542)}]);
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.