1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f60b9e6c-5944-d1fb-dbb9-abd565597224")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,118299,e=>{"use strict";var t=e.i(362201);let r=t.object({code:t.string().optional(),message:t.string(),timestamp:t.string(),path:t.string()});e.s(["handle",0,(e,t={})=>{let{throwOnError:s=!0,schema:i}=t;return Object.assign(async(t,n)=>{let a,o=await e(t,n);try{a=await o.json()}catch(e){if(s)throw Error(e instanceof Error?e.message:"Something went wrong. Please try again later.");return null}if(!o.ok){if(s){let e,t=Error((e=a,r.safeParse(e).success)?a.message:"Something went wrong. Please try again later.");throw t.digest=`api-error:${o.status}`,t}return null}if(i){let e=i.safeParse(a);if(!e.success){if(s)throw e.error;return null}return e.data}return a},{__responseType:{}})}])},232402,524386,e=>{"use strict";e.i(247167);var t=e.i(271645);let r=function(){try{let e="nuqs-localStorage-test";if("u"<typeof localStorage)return!1;localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;return localStorage.removeItem(e),t&&(localStorage.getItem("debug")||"").includes("nuqs")}catch{return!1}}();function s(e,...t){if(!r)return;let i=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let r=t.shift();return"%O"===e&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}(e,...t);performance.mark(i);try{console.log(e,...t)}catch{console.log(i)}}function i(e,...t){r&&console.warn(e,...t)}let n={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function a(e){return`[nuqs] ${n[e]} 3 See https://nuqs.dev/NUQS-${e}`}function o(e){if(0===e.size)return"";let t=[];for(let[r,s]of e.entries()){let e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${s.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+t.join("&")}let u=(0,t.createContext)({useAdapter(){throw Error(a(404))}});function l(e){return({children:r,defaultOptions:s,processUrlSearchParams:i,...n})=>(0,t.createElement)(u.Provider,{...n,value:{useAdapter:e,defaultOptions:s,processUrlSearchParams:i}},r)}function c(e){let r=(0,t.useContext)(u);if(!("useAdapter"in r))throw Error(a(404));return r.useAdapter(e)}u.displayName="NuqsAdapterContext",r&&"u">typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==u&&console.error(a(303)),window.__NuqsAdapterContext=u);let d=()=>(0,t.useContext)(u).defaultOptions,h=()=>(0,t.useContext)(u).processUrlSearchParams;function m(e){return{method:"throttle",timeMs:e}}function p(e){return{method:"debounce",timeMs:e}}e.s(["createAdapterProvider",()=>l,"debug",()=>s,"error",()=>a,"renderQueryString",()=>o,"useAdapter",()=>c,"useAdapterDefaultOptions",()=>d,"useAdapterProcessUrlSearchParams",()=>h,"warn",()=>i],524386);let f=m(function(){if("u"<typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}());function y(e){return null===e||Array.isArray(e)&&0===e.length}function g(e,t,r){if("string"==typeof e)r.set(t,e);
3else{for(let s of(r.delete(t),e))r.append(t,s);r.has(t)||r.set(t,"")}return r}function v(){let e=new Map;return{on(t,r){let s=e.get(t)||[];return s.push(r),e.set(t,s),()=>this.off(t,r)},off(t,r){let s=e.get(t);s&&e.set(t,s.filter(e=>e!==r))},emit(t,r){e.get(t)?.forEach(e=>e(r))}}}function b(e,t,r){let s=setTimeout(function(){e(),r.removeEventListener("abort",i)},t);function i(){clearTimeout(s),r.removeEventListener("abort",i)}r.addEventListener("abort",i)}function S(){let e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},r=()=>{};return{promise:new e((e,s)=>{t=e,r=s}),resolve:t,reject:r}}function q(){return new URLSearchParams(location.search)}var O=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=f.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:r},i=f.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),s("[nuqs gtq] Enqueueing %s=%s %O",e,t,r),this.updateMap.set(e,t),"push"===r.history&&(this.options.history="push"),r.scroll&&(this.options.scroll=!0),!1===r.
3shallow&&(this.options.shallow=!1),r.startTransition&&this.transitions.add(r.startTransition),(!Number.isFinite(this.timeMs)||i>this.timeMs)&&(this.timeMs=i)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=q}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=q,rateLimitFactor:t=1,...r},i){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return s("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=S();let n=()=>{this.lastFlushedAt=performance.now();let[t,s]=this.applyPendingUpdates({...r,autoResetQueueOnUpdate:r.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},i);null===s?(this.resolvers.resolve(t),this.resetQueueOnNextPush=!0):this.resolvers.reject(t),this.resolvers=null},a=()=>{let e=performance.now()-this.lastFlushedAt,r=this.timeMs,i=t*Math.max(0,r-e);s("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",i,r,t),0===i?n():b(n,i,this.controller.signal)};return b(a,0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){let e=Array.from(this.updateMap.keys());return s("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=f.timeMs,e}applyPendingUpdates(e,t){let{updateUrl:r,getSearchParamsSnapshot:i}=e,n=i();if(s("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,n.toString()),0===this.updateMap.size)return[n,null];let o=Array.from(this.updateMap.entries()),u={...this.options},l=Array.from(this.transitions);for(let[t,r]of(e.autoResetQueueOnUpdate&&this.reset(),s("[nuqs gtq] Flushing queue %O with options %O",o,u),o))null===r?n.delete(t):n=g(r,t,n);t&&(n=t(n));try{return!function(e,t){let r=t;for(let t=e.length-1;t>=0;t--){let s=e[t];if(!s)continue;let i=r;r=()=>s(i)}r()}(l,()=>{r(n,u)}),[n,null]}catch(e){return console.error(a(429),o.map(([e])=>e).join(),e),[n,e]}}};let C=new O;var E=class{callback;resolvers=S();controller=new AbortController;queuedValue=void 0;constructor(e){this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,b(()=>{let t=this.resolvers;try{s("[nuqs dq] Flushing debounce queue",e);let r=this.callback(e);s("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=S(),r.then(e=>t.resolve(e)).catch(e=>t.reject(e))}catch(e){this.queuedValue=void 0,t.reject(e)}},t,this.controller.signal),this.resolvers.promise}};let w=new class{throttleQueue;queues=new Map;queuedQuerySync=v();constructor(e=new O){this.throttleQueue=e}useQueuedQueries(e){var r,s;let i,n,a;return r=(e,t)=>this.queuedQuerySync.on(e,t),s=e=>this.getQueuedQuery(e),i=(0,t.useCallback)(()=>{let t=Object.fromEntries(e.map(e=>[e,s(e)]));return[JSON.stringify(t),t]},[e.join(","),s]),null===(n=(0,t.useRef)(null)).current&&(n.current=i()),a=(0,t.useCallback)(t=>{let s=e.map(e=>r(e,t));return()=>s.forEach(e=>e())},[e.join(","),r]),(0,t.useSyncExternalStore)(a,()=>{let[e,t]=i();return n.current[0]===e?n.current[1]:(n.current=[e,t],t)},()=>n.current[1])}push(e,t,r){if(!Number.isFinite(t))return Promise.resolve((r.getSearchParamsSnapshot??q)());let i=e.key;if(!this.queues.has(i)){s("[nuqs dqc] Creating debounce queue for `%s`",i);let e=new E(e=>(this.throttleQueue.push(e),this.throttleQueue.flush(r).finally(()=>{this.queues.get(e.key)?.queuedValue===void 0&&(s("[nuqs dqc] Cleaning up empty queue for `%s`",e.key),this.queues.delete(e.key)),this.queuedQuerySync.emit(e.key)})));this.queues.set(i,e)}s("[nuqs dqc] Enqueueing debounce update %O",e);let n=this.queues.get(i).push(e,t);return this.queuedQuerySync.emit(i),n}abort(e){let t=this.queues.get(e);return t?(s("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),e=>(e.then(t.resolvers.resolve,t.resolvers.reject),e)):e=>e}abortAll(){for(let[e,t]of this.queues.entries())s("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){let t=this.queues.get(e)?.queuedValue?.query;return void 0!==t?t:this.throttleQueue.getQueuedQuery(e)}}(C);e.s(["createEmitter",()=>v,"debounce",()=>p,"debounceController",()=>w,"defaultRateLimit",()=>f,"globalThrottleQueue",()=>C,"isAbsentFromUrl",()=>y,"throttle",()=>m,"write",()=>g],232402)},933818,e=>{"use strict";function t(e){return e}e.s(["queryOptions",()=>t])},486637,145366,592845,513285,13766,e=>{"use strict";var t=e.i(362201);let r={APPLE:"apple",GOOGLE:"google",GITHUB:"github"},s={...r,PASSWORD:"password",MAGIC_LINK:"magicLink",EMAIL_OTP:"emailOtp",ANONYMOUS:"anonymous",PASSKEY:"passkey"};t.object({providers:t.object({[s.PASSWORD]:t.boolean(),[s.MAGIC_LINK]:t.boolean(),[s.EMAIL_OTP]:t.boolean(),[s.ANONYMOUS]:t.boolean(),[s.PASSKEY]:t.boolean().optional(),oAuth:t.array(t.enum(r))})});let i={USER:"user",ADMIN:"admin"},n={MEMBER:"member",ADMIN:"admin",OWNER:"owner"},a={PENDING:"pending",ACCEPTED:"accepted",CANCELED:"canceled",REJECTED:"rejected"};e.s(["AuthProvider",()=>s,"InvitationStatus",()=>a,"MemberRole",()=>n,"SocialProvider",()=>r,"UserRole",()=>i],145366),e.i(292929),e.i(189858),n.MEMBER,n.ADMIN,n.OWNER,e.s(["hasAdminPermission",0,e=>e.role?.split(",").includes(i.ADMIN)??!1],592845);let o=t.object({email:t.email().max(254)}),u=t.string().min(8),l=t.object({password:u}),c=t.object({code:t.string().min(6).max(6)}),d=t.object({code:t.string().min(11).max(11)}),h=t.object({trustDevice:t.boolean().optional()}),m=t.object({name:t.string().min(2).max(32).optional(),role:t.enum(i).optional(),image:t.url().optional()});t.object({...l.shape,newPassword:u}),t.object({...o.shape,...l.shape}),t.object({...o.shape,...l.shape,rememberMe:t.boolean().optional().default(!0)});let p=t.object({...o.shape,otp:t.string().min(6).max(6)});t.object({...c.shape,...h.shape}),t.object({...d.shape,...h.shape});let f=t.object({name:t.string().min(2).max(32)}),y=t.object({name:t.string().min(2).max(32).optional(),slug:t.string().optional(),logo:t.string().optional()});t.object({email:t.email().max(254),role:t.enum(n)});let g=t.object({role:t.enum(n).optional()});t.object({reason:t.string().min(1).max(1e3).optional(),expiresIn:t.date().optional().refine(e=>!e||e>new Date)}),e.s(["createOrganizationSchema",()=>f,"emailOtpLoginSchema",()=>p,"emailSchema",()=>o,"forgotPasswordSchema",()=>o,"magicLinkLoginSchema",()=>o,"updateMemberSchema",()=>g,"updateOrganizationSchema",()=>y,"updatePasswordSchema",()=>l,"updateUserSchema",()=>m],513285);let v=["gmail.com","yahoo.com","hotmail.com","outlook.com","icloud.com","aol.com","live.com","msn.com","comcast.net","me.com"];function b(e){let t=e.trim().toLowerCase(),r=t.lastIndexOf("@");if(-1===r||r===t.length-1)return null;let s=t.slice(r+1);if(!s.includes(".")||v.includes(s))return null;let i=null,n=1/0;for(let e of v){let t=function(e,t){let r=Array.from({length:t.length+1},(e,t)=>t);for(let s=1;s<=e.length;s++){let i=[s];for(let n=1;n<=t.length;
3n++){let a=r[n-1]??0,o=r[n]??0,u=i[n-1]??0;i[n]=e[s-1]===t[n-1]?a:1+Math.min(a,o,u)}r=i}return r[t.length]??0}(s,e);t>0&&t<=2&&t<n&&(i=e,n=t)}return i?`${t.slice(0,r+1)}${i}`:null}e.s(["suggestEmailDomainFix",()=>b],13766),e.s([],486637)},286491,e=>{"use strict";var t=e.i(619273),r=e.i(540143),s=e.i(936553),i=e.i(88587),n=class extends i.Removable{#e;#t;#r;#s;#i;#n;#a;constructor(e){super(),this.#a=!1,this.#n=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#r=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=u(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#n,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=u(this.options);void 0!==e.data&&(this.setState(o(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#r.remove(this)}setData(e,r){let s=(0,t.replaceData)(this.state.data,e,this.options);return this.#o({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){let r=this.#i?.promise;return this.#i?.cancel(e),r?r.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#a?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,r){let i;if("idle"!==this.state.fetchStatus&&this.#i?.status()!=="rejected"){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},o=()=>{let e,s=(0,t.ensureQueryFn)(this.options,r),i=(a(e={client:this.#s,queryKey:this.queryKey,meta:this.meta}),e);return(this.#a=!1,this.options.persister)?this.options.persister(s,i,this):s(i)},u=(a(i={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o}),i);this.options.behavior?.onFetch(u,this),this.#t=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#i=(0,s.createRetryer)({initialPromise:r?.initialPromise,fn:u.fetchFn,onCancel:e=>{e instanceof s.CancelledError&&e.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof s.CancelledError){if(e.silent)return this.#i.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#o({type:"error",error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#o(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...a(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...o(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":let s=e.error;
3return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function a(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function o(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function u(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,s=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",()=>n,"fetchState",()=>a])},707689,e=>{"use strict";var t=e.i(271645),r=e.i(588721);function s(e){return`[decoration] ${e} failed and was hidden â the page rendered without it. This section is invisible to readers when it breaks, so this event is the only signal that it did.`}class i extends t.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e,t){let{name:i}=this.props;if(!(0,r.isConfigured)())throw console.error(s(i),e,t.componentStack),e;try{let n;console.error(s(i),e,t.componentStack),(0,r.captureException)((n=e instanceof Error?e:Error(`${s(i)} ${String(e)}`),n.name=`DecorationFailed:${i}`,n))}catch{throw e}}render(){return this.state.failed?null:this.props.children}}e.s(["DecorativeBoundary",()=>i],707689)},114256,e=>{"use strict";var t=e.i(750365);let r={name:"Tucson Foodie",url:t.default.NEXT_PUBLIC_URL,locale:t.default.NEXT_PUBLIC_DEFAULT_LOCALE,theme:{mode:t.default.NEXT_PUBLIC_THEME_MODE,color:t.default.NEXT_PUBLIC_THEME_COLOR}};e.s(["appConfig",0,r])},667585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let s=e.r(132061);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new s.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},652157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return u}});let s=e.r(843476),i=e.r(174080),n=e.r(563599),a=e.r(309885),o=e.r(543369);function u({moduleIds:e}){if("u">typeof window)return null;let t=n.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let s=t.reactLoadableManifest;for(let t of e){if(!s[t])continue;let e=s[t].files;r.push(...e)}}if(0===r.length)return null;let u=(0,o.getDeploymentIdQueryOrEmptyString)();return(0,s.jsx)(s.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,s.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},869093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let s=e.r(843476),i=e.r(271645),n=e.r(667585),a=e.r(652157);function o(e){return{default:e&&"default"in e?e.default:e}}let u={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},l=function(e){let t={...u,...e},r=(0,i.lazy)(()=>t.loader().then(o)),l=t.loading;function c(e){let o=l?(0,s.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,u=!t.ssr||!!t.loading,c=u?i.Suspense:i.Fragment,d=t.ssr?(0,s.jsxs)(s.Fragment,{children:["u"<typeof window?(0,s.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(n.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(c,{...u?{fallback:o}:{},children:d})}return c.displayName="LoadableComponent",c}},770703,(e,t,r)=>{"use strict";
3Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let s=e.r(563141)._(e.r(869093));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,s.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},363178,e=>{"use strict";var t=e.i(271645),r=(e,t,r,s,i,n,a,o)=>{let u=document.documentElement,l=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,s=r&&n?i.map(e=>n[e]||e):i;r?(u.classList.remove(...s),u.classList.add(n&&n[t]?n[t]:t)):u.setAttribute(e,t)}),r=t,o&&l.includes(r)&&(u.style.colorScheme=r)}if(s)c(s);else try{let e=localStorage.getItem(t)||r,s=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(s)}catch(e){}},s=["light","dark"],i="(prefers-color-scheme: dark)",n="u"<typeof window,a=t.createContext(void 0),o={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=t.useContext(a))?e:o},l=e=>t.useContext(a)?t.createElement(t.Fragment,null,e.children):t.createElement(d,{...e}),c=["light","dark"],d=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:u="theme",themes:l=c,defaultTheme:d=n?"system":"light",attribute:y="data-theme",value:g,children:v,nonce:b,scriptProps:S})=>{let[q,O]=t.useState(()=>m(u,d)),[C,E]=t.useState(()=>"system"===q?f():q),w=g?Object.values(g):l,P=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&n&&(t=f());let i=g?g[t]:t,a=r?p(b):null,u=document.documentElement,l=e=>{"class"===e?(u.classList.remove(...w),i&&u.classList.add(i)):e.startsWith("data-")&&(i?u.setAttribute(e,i):u.removeAttribute(e))};if(Array.isArray(y)?y.forEach(l):l(y),o){let e=s.includes(d)?d:null,r=s.includes(t)?t:e;u.style.colorScheme=r}null==a||a()},[b]),A=t.useCallback(e=>{let t="function"==typeof e?e(q):e;O(t);try{localStorage.setItem(u,t)}catch(e){}},[q]),M=t.useCallback(t=>{E(f(t)),"system"===q&&n&&!e&&P("system")},[q,e]);t.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(M),M(e),()=>e.removeListener(M)},[M]),t.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?O(e.newValue):A(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[A]),t.useEffect(()=>{P(null!=e?e:q)},[e,q]);let R=t.useMemo(()=>({theme:q,setTheme:A,forcedTheme:e,resolvedTheme:"system"===q?C:q,themes:n?[...l,"system"]:l,systemTheme:n?C:void 0}),[q,A,e,C,n,l]);return t.createElement(a.Provider,{value:R},t.createElement(h,{forcedTheme:e,storageKey:u,attribute:y,enableSystem:n,enableColorScheme:o,defaultTheme:d,value:g,themes:l,nonce:b,scriptProps:S}),v)},h=t.memo(({forcedTheme:e,storageKey:s,attribute:i,enableSystem:n,enableColorScheme:a,defaultTheme:o,value:u,themes:l,nonce:c,scriptProps:d})=>{let h=JSON.stringify([i,s,o,e,l,u,n,a]).slice(1,-1);return t.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${h}
3)`}})}),m=(e,t)=>{let r;if(!n){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},p=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light");e.s(["ThemeProvider",()=>l,"useTheme",()=>u])},284910,e=>{"use strict";let t,r,s,i;var n,a=e.i(843476),o=e.i(363178),u=e.i(271645);let l=e=>{let t,r=new Set,s=(e,s)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=s?s:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,n={setState:s,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(s,i,n);return n},c=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>c(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>c(t)(e)}}};var d=e.i(114256);e.i(89905);var h=e.i(75796);let m=d.appConfig.theme.mode===h.ThemeMode.SYSTEM?h.ThemeMode.LIGHT:d.appConfig.theme.mode,p=(s=(n=(t=e=>({config:d.appConfig.theme,setConfig:t=>e({config:t})}
3),r={name:"theme-config"},(e,s,i)=>{let n,a={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var t;let s=e=>null===e?null:JSON.parse(e,void 0),i=null!=(t=r.getItem(e))?t:null;return i instanceof Promise?i.then(s):s(i)},setItem:(e,t)=>r.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>r.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...r},o=!1,u=new Set,l=new Set,d=a.storage;if(!d)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),e(...t)},s,i);let h=()=>{let e=a.partialize({...s()});return d.setItem(a.name,{state:e,version:a.version})},m=i.setState;i.setState=(e,t)=>(m(e,t),h());let p=t((...t)=>(e(...t),h()),s,i);i.getInitialState=()=>p;let f=()=>{var t,r;if(!d)return;o=!1,u.forEach(e=>{var t;return e(null!=(t=s())?t:p)});let i=(null==(r=a.onRehydrateStorage)?void 0:r.call(a,null!=(t=s())?t:p))||void 0;return c(d.getItem.bind(d))(a.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===a.version)return[!1,e.state];else{if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(t=>{var r;let[i,o]=t;if(e(n=a.merge(o,null!=(r=s())?r:p),!0),i)return h()}).then(()=>{null==i||i(n,void 0),n=s(),o=!0,l.forEach(e=>e(n))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>f(),hasHydrated:()=>o,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||f(),n||p}))?l(n):l,Object.assign(i=e=>(function(e,t=e=>e){let r=u.default.useSyncExternalStore(e.subscribe,u.default.useCallback(()=>t(e.getState()),[e,t]),u.default.useCallback(()=>t(e.getInitialState()),[e,t]));return u.default.useDebugValue(r),r})(s,e),s),i),f=(0,u.memo)(({children:e})=>{let t=p(e=>e.config);return(0,u.useEffect)(()=>{document.body.dataset.theme=t.color},[t.color]),(0,a.jsx)(o.ThemeProvider,{attribute:"class",defaultTheme:m,enableSystem:!1,disableTransitionOnChange:!0,children:e})});f.displayName="ThemeProvider",e.s(["ThemeProvider",0,f,"useThemeConfig",0,p],284910)},372775,e=>{"use strict";var t=e.i(793803),r=e.i(619273);function s(e){return e}function i(e){return"success"===e.state.status}function n(e,i,n){if("object"!=typeof i||null===i)return;let a=e.getMutationCache(),o=e.getQueryCache(),u=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??s,l=i.mutations||[],c=i.queries||[];l.forEach(({state:t,...r})=>{a.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...r},t)}),c.forEach(({queryKey:s,state:i,queryHash:a,meta:l,promise:c,dehydratedAt:d})=>{let h=c?(0,t.tryResolveSync)(c):void 0,m=void 0===i.data?h?.data:i.data,p=void 0===m?m:u(m),f=o.get(a),y=f?.state.status==="pending",g=f?.state.fetchStatus==="fetching";if(f){let e=h&&void 0!==d&&d>f.state.dataUpdatedAt;if(i.dataUpdatedAt>f.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=i;f.setState({...t,data:p})}}else f=o.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:s,queryHash:a,meta:l},{...i,data:p,fetchStatus:"idle",status:void 0!==p?"success":i.status});c&&!y&&!g&&(void 0===d||d>f.state.dataUpdatedAt)&&f.fetch(void 0,{initialPromise:Promise.resolve(c).then(u)}).catch(r.noop)})}e.s(["defaultShouldDehydrateQuery",()=>i,"hydrate",()=>n])},752681,e=>{"use strict";var t=e.i(13348),r=e.i(933818);e.i(376386);var s=e.i(752358),i=e.i(862429),n=e.i(118299),a=e.i(421522),o=e.i(319778);let u="admin",l={users:{get:({id:e})=>(0,r.queryOptions)({queryKey:[u,"users",e],queryFn:()=>o.authClient.admin.getUser({query:{id:e},fetchOptions:{throw:!0}})}),getAccounts:({id:e,...t})=>({queryKey:[u,"users",e,"accounts",t],queryFn:()=>(0,n.handle)(a.api.admin.users[":id"].accounts.$get,{schema:i.getUserAccountsResponseSchema}
3)({query:t,param:{id:e}})}),getSubscriptions:({id:e,...t})=>({queryKey:[u,"users",e,"subscriptions",t],queryFn:()=>(0,n.handle)(a.api.admin.users[":id"].subscriptions.$get,{schema:i.getUserSubscriptionsResponseSchema})({query:t,param:{id:e}})}),getOrders:({id:e,...t})=>({queryKey:[u,"users",e,"orders",t],queryFn:()=>(0,n.handle)(a.api.admin.users[":id"].orders.$get,{schema:i.getUserOrdersResponseSchema})({query:t,param:{id:e}})}),getMemberships:({id:e,...t})=>(0,r.queryOptions)({queryKey:[u,"users",e,"memberships",t],queryFn:()=>(0,n.handle)(a.api.admin.users[":id"].memberships.$get,{schema:i.getUserMembershipsResponseSchema})({query:t,param:{id:e}})}),getInvitations:({id:e,...t})=>(0,r.queryOptions)({queryKey:[u,"users",e,"invitations",t],queryFn:()=>(0,n.handle)(a.api.admin.users[":id"].invitations.$get,{schema:i.getUserInvitationsResponseSchema})({query:t,param:{id:e}})}),getSessions:({id:e})=>(0,r.queryOptions)({queryKey:[u,"users",e,"sessions"],queryFn:()=>o.authClient.admin.listUserSessions({userId:e,fetchOptions:{throw:!0}})})},organizations:{get:({id:e})=>(0,r.queryOptions)({queryKey:[u,"organizations",e],queryFn:()=>(0,n.handle)(a.api.admin.organizations[":id"].$get,{schema:i.getOrganizationResponseSchema})({param:{id:e}})}),getMembers:({id:e,...t})=>(0,r.queryOptions)({queryKey:[...l.organizations.get({id:e}).queryKey,"members",t],queryFn:()=>(0,n.handle)(a.api.admin.organizations[":id"].members.$get,{schema:s.getMembersResponseSchema})({query:t,param:{id:e}})}),getInvitations:({id:e,...t})=>(0,r.queryOptions)({queryKey:[...l.organizations.get({id:e}).queryKey,"invitations",t],queryFn:()=>(0,n.handle)(a.api.admin.organizations[":id"].invitations.$get,{schema:s.getInvitationsResponseSchema})({query:t,param:{id:e}})})}},c={users:{stopImpersonating:(0,t.mutationOptions)({mutationKey:[u,"users","impersonate","stop"],mutationFn:()=>o.authClient.admin.stopImpersonating()}),update:(0,t.mutationOptions)({mutationKey:[u,"users","update"],mutationFn:e=>o.authClient.admin.updateUser(e)}),setPassword:(0,t.mutationOptions)({mutationKey:[u,"users","setPassword"],mutationFn:e=>o.authClient.admin.setUserPassword(e)}),accounts:{delete:(0,t.mutationOptions)({mutationKey:[u,"users","accounts","delete"],mutationFn:e=>(0,n.handle)(a.api.admin.users[":id"].accounts[":accountId"].$delete)({param:e})})},sessions:{revoke:(0,t.mutationOptions)({mutationKey:[u,"users","sessions","revoke"],mutationFn:e=>o.authClient.admin.revokeUserSession(e)}),revokeAll:(0,t.mutationOptions)({mutationKey:[u,"users","sessions","revokeAll"],mutationFn:e=>o.authClient.admin.revokeUserSessions(e)})}},organizations:{delete:(0,t.mutationOptions)({mutationKey:[u,"organizations","delete"],mutationFn:e=>(0,n.handle)(a.api.admin.organizations[":id"].$delete)({param:e})}),update:(0,t.mutationOptions)({mutationKey:[u,"organizations","update"],mutationFn:({id:e,...t})=>(0,n.handle)(a.api.admin.organizations[":id"].$patch)({param:{id:e},json:t})}),members:{remove:(0,t.mutationOptions)({mutationKey:[u,"organizations","members","remove"],mutationFn:e=>(0,n.handle)(a.api.admin.organizations[":id"].members[":memberId"].$delete)({param:e})}),update:(0,t.mutationOptions)({mutationKey:[u,"organizations","members","update"],mutationFn:({id:e,memberId:t,...r})=>(0,n.handle)(a.api.admin.organizations[":id"].members[":memberId"].$patch)({param:{id:e,memberId:t},json:r})})},invitations:{delete:(0,t.mutationOptions)({mutationKey:[u,"organizations","invitations","delete"],mutationFn:e=>(0,n.handle)(a.api.admin.organizations[":id"].invitations[":invitationId"].$delete)({param:e})})}}};e.s(["admin",0,{queries:l,mutations:c}])},335198,e=>{"use strict";let t={en:{postingRestricted:"Posting is turned off for your account. You can still use your perks and RSVP. Questions? Email [email protected].",useRemoved:"Your Tucson Foodie membership has been cancelled, so this isn't available. Questions? Email [email protected].",signInRemoved:"This account can't sign in. If you think that's a mistake, email [email protected].",rejoinRemoved:"We can't start a membership for this account. Email [email protected] if you have questions."},es:{postingRestricted:"Las publicaciones están desactivadas para tu cuenta. Aún puedes usar tus beneficios y confirmar asistencia. ¿Preguntas? Escribe a [email protected].",useRemoved:"Tu membresÃa de Tucson Foodie fue cancelada, asà que esto no está disponible. ¿Preguntas? Escribe a [email protected].",signInRemoved:"Esta cuenta no puede iniciar sesión. Si crees que es un error, escribe a [email protected].",rejoinRemoved:"No podemos iniciar una membresÃa para esta cuenta. Escribe a [email protected] si tienes preguntas."}};function r(e){let t=e.trim();return"member_removed"===t?"rejoinRemoved":/\bTF001\b/.test(t)?"useRemoved":/^member_restricted$|\bTF002\b/.test(t)?"postingRestricted":/^user_banned$|user is banned/i.test(t)?"signInRemoved":null}function s(e,i,n="other"){let a=function(e){if(null==e)return null;if("string"==typeof e)return r(e);if("object"!=typeof e)return null;let t="string"==typeof e.code?e.code:null;if("TF001"===t)return"useRemoved";if("TF002"===t)return"postingRestricted";if("user_banned"===t)return"signInRemoved";if("member_removed"===t)return"rejoinRemoved";if("string"==typeof e.error){let t=r(e.error);if(t)return t}return"string"==typeof e.message?r(e.message):null}(e);return a?("join"===n&&("useRemoved"===a||"rejoinRemoved"===a)?a="rejoinRemoved":"other"===n&&"rejoinRemoved"===a&&(a="useRemoved"),t[i?.toLowerCase().startsWith("es")?"es":"en"][a]):null}e.s(["memberRestrictionText",()=>s])},12985,e=>{"use strict";var t=e.i(524386),r=e.i(232402);function s(){(0,t.debug)("[nuqs] Aborting queues"),r.debounceController.abortAll(),r.globalThrottleQueue.abort().forEac
3h(e=>r.debounceController.queuedQuerySync.emit(e))}var i=e.i(271645),n=e.i(618566);let a=0;function o(){a=0,s()}function u(){--a<=0&&(a=0,queueMicrotask(s))}function l(){return(0,i.useEffect)(()=>(!function(){var e;if(e="next/app","u"<typeof history||(history.nuqs?.version&&"0.0.0-inject-version-here"!==history.nuqs.version?(console.error((0,t.error)(409),history.nuqs.version,"0.0.0-inject-version-here",e),!0):!!history.nuqs?.adapters?.includes(e)))return;let r=history.replaceState,s=history.pushState;history.replaceState=function(e,t,s){return u(),r.call(history,e,t,s)},history.pushState=function(e,t,r){return u(),s.call(history,e,t,r)},history.nuqs=history.nuqs??{version:"0.0.0-inject-version-here",adapters:[]},history.nuqs.adapters.push("next/app")}(),window.addEventListener("popstate",o),()=>window.removeEventListener("popstate",o)),[]),null}let c=(0,t.createAdapterProvider)(function(){let e=(0,n.useRouter)(),r=(0,n.useSearchParams)(),[s,o]=(0,i.useOptimistic)(r);return{searchParams:s,updateUrl:(0,i.useCallback)((r,s)=>{(0,i.startTransition)(()=>{s.shallow||o(r);let i=function(e){let{origin:r,pathname:s,hash:i}=location;return r+s+(0,t.renderQueryString)(e)+i}(r);(0,t.debug)("[nuqs next/app] Updating url: %s",i);let n="push"===s.history?history.pushState:history.replaceState;a=3,n.call(history,null,"",i),s.scroll&&window.scrollTo(0,0),s.shallow||e.replace(i,{scroll:!1})})},[]),rateLimitFactor:3,autoResetQueueOnUpdate:!1}});function d({children:e,...t}){return(0,i.createElement)(c,{...t,children:[(0,i.createElement)(i.Suspense,{key:"nuqs-adapter-suspense-navspy",children:(0,i.createElement)(l)}),e]})}e.s(["NuqsAdapter",()=>d],12985)},450753,e=>{"use strict";let t;e.i(247167);var r=e.i(843476),s=e.i(912598);e.i(770703);var i=e.i(619273),n=e.i(286491),a=e.i(540143),o=e.i(915823),u=class extends o.Subscribable{constructor(e={}){super(),this.config=e,this.#u=new Map}#u;build(e,t,r){let s=t.queryKey,a=t.queryHash??(0,i.hashQueryKeyByOptions)(s,t),o=this.get(a);return o||(o=new n.Query({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){this.#u.has(e.queryHash)||(this.#u.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#u.get(e.queryHash);t&&(e.destroy(),t===e&&this.#u.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){a.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#u.get(e)}getAll(){return[...this.#u.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,i.matchQuery)(e,t)):t}notify(e){a.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){a.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){a.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=e.i(114272),c=o,d=class extends c.Subscribable{constructor(e={}){super(),this.config=e,this.#l=new Set,this.#c=new Map,this.#d=0}#l;#c;#d;build(e,t,r){let s=new l.Mutation({client:e,mutationCache:this,mutationId:++this.#d,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#l.add(e);let t=h(e);if("string"==typeof t){let r=this.#c.get(t);r?r.push(e):this.#c.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#l.delete(e)){let t=h(e);if("string"==typeof t){let r=this.#c.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#c.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=h(e);if("string"!=typeof t)return!0;{let r=this.#c.get(t),s=r?.find(e=>"pending"===e.state.status);return!s||s===e}}runNext(e){let t=h(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#c.get(t)?.find(t=>
3t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){a.notifyManager.batch(()=>{this.#l.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#l.clear(),this.#c.clear()})}getAll(){return Array.from(this.#l)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,i.matchMutation)(e,t))}notify(e){a.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return a.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(i.noop))))}};function h(e){return e.options.scope?.id}var m=e.i(175555),p=e.i(814448);function f(e){return{onFetch:(t,r)=>{let s=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],u={pages:[],pageParams:[]},l=0,c=async()=>{let r=!1,c=(0,i.ensureQueryFn)(t.options,t.fetchOptions),d=async(e,s,n)=>{let a;if(r)return Promise.reject();if(null==s&&e.pages.length)return Promise.resolve(e);let o=(a={client:t.client,queryKey:t.queryKey,pageParam:s,direction:n?"backward":"forward",meta:t.options.meta},(0,i.addConsumeAwareSignal)(a,()=>t.signal,()=>r=!0),a),u=await c(o),{maxPages:l}=t.options,d=n?i.addToStart:i.addToEnd;return{pages:d(e.pages,u,l),pageParams:d(e.pageParams,s,l)}};if(n&&a.length){let e="backward"===n,t={pages:a,pageParams:o},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:y)(s,t);u=await d(t,r,e)}else{let t=e??a.length;do{let e=0===l?o[0]??s.initialPageParam:y(s,u);if(l>0&&null==e)break;u=await d(u,e),l++}while(l<t)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function y(e,{pages:t,pageParams:r}){let s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}var g=class{#h;#m;#n;#p;#f;#y;#g;#v;constructor(e={}){this.#h=e.queryCache||new u,this.#m=e.mutationCache||new d,this.#n=e.defaultOptions||{},this.#p=new Map,this.#f=new Map,this.#y=0}mount(){this.#y++,1===this.#y&&(this.#g=m.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#h.onFocus())}),this.#v=p.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#h.onOnline())}))}unmount(){this.#y--,0===this.#y&&(this.#g?.(),this.#g=void 0,this.#v?.(),this.#v=void 0)}isFetching(e){return this.#h.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#m.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#h.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#h.build(this,t),s=r.state.data;return void 0===s?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,i.resolveStaleTime)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#h.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let s=this.defaultQueryOptions({queryKey:e}),n=this.#h.get(s.queryHash),a=n?.state.data,o=(0,i.functionalUpdate)(t,a);if(void 0!==o)return this.#h.build(this,s).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return a.notifyManager.batch(()=>this.#h.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#h.get(t.queryHash)?.state}removeQueries(e){let t=this.#h;a.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#h;return a.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(a.notifyManager.batch(()=>this.#h.findAll(e).map(e=>e.cancel(r)))).then(i.noop).catch(i.noop)}invalidateQueries(e,t={}){return a.notifyManager.batch(()=>(this.#h.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(a.notifyManager.batch(()=>this.#h.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(i.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}
3))).then(i.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#h.build(this,t);return r.isStaleByTime((0,i.resolveStaleTime)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i.noop).catch(i.noop)}fetchInfiniteQuery(e){return e.behavior=f(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i.noop).catch(i.noop)}ensureInfiniteQueryData(e){return e.behavior=f(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return p.onlineManager.isOnline()?this.#m.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#h}getMutationCache(){return this.#m}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#p.set((0,i.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#p.values()],r={};return t.forEach(t=>{(0,i.partialMatchKey)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#f.set((0,i.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#f.values()],r={};return t.forEach(t=>{(0,i.partialMatchKey)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,i.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===i.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#h.clear(),this.#m.clear()}},v=e.i(372775),b=e.i(846696);e.i(921688);var S=e.i(151149),q=e.i(335198);let O=()=>null,C=()=>t??=new g({defaultOptions:{queries:{staleTime:6e4},dehydrate:{shouldDehydrateQuery:e=>(0,v.defaultShouldDehydrateQuery)(e)||"pending"===e.state.status},mutations:{onError:e=>{"error"in e&&(e=e.error),S.logger.error(e);let t=(0,q.memberRestrictionText)(e,"u"<typeof document?void 0:document.documentElement.lang);b.toast.error(t??e.message)}}}});function E(e){let t=C();return(0,r.jsxs)(s.QueryClientProvider,{client:t,children:[e.children,(0,r.jsx)(O,{})]})}e.s(["QueryClientProvider",()=>E,"getQueryClient",0,C],450753)},793877,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(855361),i=e.i(319778);e.s(["AnalyticsProvider",0,({children:e})=>{let n=i.authClient.useSession();return(0,r.useEffect)(()=>{if(!n.isPending)if(n.data?.user){let{id:e,email:t,name:r}=n.data.user;(0,s.identify)(e,{...t&&{email:t},...r&&{name:r}})}else(0,s.reset)()},[n]),(0,t.jsx)(s.Provider,{children:e})}])},727902,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(588721),i=e.i(319778);e.s(["MonitoringProvider",0,({children:e})=>{let n=i.authClient.useSession();return(0,r.useEffect)(()=>{n.isPending||(0,s.identify)(n.data?.user??null)},[n]),(0,t.jsx)(t.Fragment,{children:e})}])},380203,e=>{"use strict";var t=e.i(843476),r=e.i(363178),s=e.i(846696);e.i(89905);var i=e.i(75796);let n=({...e})=>{let{theme:n=i.ThemeMode.SYSTEM}=(0,r.useTheme)();return(0,t.jsx)(s.Toaster,{theme:n,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};e.s(["Toaster",()=>n])},639056,e=>{"use strict";var t=e.i(843476),r=e.i(954616),s=e.i(618566),i=e.i(271645);e.i(257620);var n=e.i(186459),a=e.i(115838),o=e.i(527825),u=e.i(308630),l=e.i(319778),c=e.i(752681);e.s(["ImpersonatingBanner",0,()=>{let{t:e}=(0,n.useTranslation)("common"),d=l.authClient.useSession(),h=(0,s.useRouter)(),m=d.data?.user.id,p=!!d.data?.session.impersonatedBy,f=(0,r.useMutation)({...c.admin.mutations.users.stopImpersonating,onSuccess:()=>{d.refetch(),h.replace(m?u.pathsConfig.admin.users.user(m):u.pathsConfig.admin.users.index)}});return((0,i.useEffect)(()=>{p?(document.body.style.setProperty("--banner-height","2.5rem"),document.body.style.paddingTop="2.5rem"):(document.body.style.removeProperty("--banner-height"),document.body.style.paddingTop="0")},[p]),p)?(0,t.jsxs)("div",{className:"bg-primary fixed top-0 left-0 z-50 flex h-10 w-full items-center justify-center gap-2 px-4",children:[(0,t.jsxs)("span",{className:"text-primary-foreground truncate text-sm",children:[e("impersonating")," ",(0,t.jsx)("span",{className:"font-medium",children:d.data.user.email})]}),(0,t.jsx)(a.Button,{variant:"outline",onClick:()=>f.mutate(),disabled:f.isPending,size:"sm",className:"h-6 px-2 text-xs",children:f.isPending?(0,t.jsx)(o.Icons.Loader2,{className:"size-3 animate-spin"}):"End"})]}):null}])},15377,e=>{"use strict";var t=e.i(618566),r=e.i(271645),s=e.i(890057),i=e.i(741269);let n=["background","background-color","background-image"],a="data-tf-ad-suppressed",o="data-tf-ad-height-released",u='iframe, div[id^="google_ads_iframe"]',l=(e,t,r)=>
3e.style.setProperty(t,r,"important"),c=(e,t,r)=>e.style.getPropertyValue(t)===r&&"important"===e.style.getPropertyPriority(t),d=e=>c(e,"display","none")&&c(e,"pointer-events","none");function h(e=document){let t=0;return e.querySelectorAll(i.AD_CHROME_SELECTOR).forEach(r=>{r===e.body||r===e.documentElement||!r.closest(s.ADS_EXCLUSION_ZONE_SELECTOR)||r.hasAttribute(a)&&d(r)||(r.setAttribute(a,""),l(r,"display","none"),l(r,"pointer-events","none"),t+=1)}),t}function m(e=document){let t=e.querySelector(`.${s.ARTICLE_BODY_CLASS}`);if(!t)return 0;let r=e.defaultView,n=0;return e.querySelectorAll(i.AD_CHROME_SELECTOR).forEach(s=>{if(s===e.body||s===e.documentElement)return;let o=s.compareDocumentPosition(t);if((o&Node.DOCUMENT_POSITION_FOLLOWING)==0||(o&Node.DOCUMENT_POSITION_CONTAINED_BY)!=0)return;let u=r?.getComputedStyle(s).position;"fixed"===u||"sticky"===u||"absolute"===u||(0,i.isNamedFloatingUnit)(s)||s.hasAttribute(a)&&d(s)||(s.setAttribute(a,""),l(s,"display","none"),l(s,"pointer-events","none"),n+=1)}),n}function p(e=document){let t=0;return e.querySelectorAll('div[id^="AdThrive_"]').forEach(e=>{if(e.hasAttribute(o))return;let r=Number.parseFloat(e.style.minHeight);if(!Number.isFinite(r)||r<=0||!e.querySelector(u))return;let s=e.style.minHeight;e.style.minHeight="0px";let i=e.scrollHeight;e.style.minHeight=s,r-i<64||(e.setAttribute(o,""),t+=1)}),t}function f(e=document){let t=!1;for(let r of[e.documentElement,e.body])for(let e of n)r.style.getPropertyValue(e)&&(r.style.removeProperty(e),t=!0);return t}function y(){let e=(0,t.usePathname)(),n=!(0,s.isRaptiveDisabledPath)((0,s.stripLocaleFromPath)(e));return(0,r.useEffect)(()=>{if(!n)return;let e=()=>{h(),m(),p()};e(),f();let t=new MutationObserver(t=>{for(let r of t){if("attributes"===r.type){let t=r.target;if(!(t instanceof HTMLElement)||!t.hasAttribute(a)||d(t))continue;e();return}for(let t of r.addedNodes)if(t instanceof Element&&(t.closest(s.ADS_EXCLUSION_ZONE_SELECTOR)||t.matches(i.AD_CHROME_SELECTOR)||t.matches(u)))return void e()}});t.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style"]});let r=new MutationObserver(()=>{f()}),o={attributes:!0,attributeFilter:["style"]};return r.observe(document.documentElement,o),r.observe(document.body,o),()=>{t.disconnect(),r.disconnect()}},[n]),null}e.s(["AdDomGuard",()=>y,"hideAdsAboveArticleBody",()=>m,"hideAdsInExclusionZones",()=>h,"releaseSettledAdReservations",()=>p,"stripAdPageBackground",()=>f])},765959,e=>{"use strict";var t=e.i(843476),r=e.i(618566),s=e.i(3303),i=e.i(271645),n=e.i(890057);function a(){let e=(0,r.usePathname)(),[a,o]=(0,i.useState)(!1),u=!(0,n.isRaptiveDisabledPath)((0,n.stripLocaleFromPath)(e));return((0,i.useEffect)(()=>{u&&o(!0)},[u]),u||a)?(0,t.jsx)(s.default,{id:"ads-boot",src:"/boot.js",strategy:"afterInteractive","data-no-optimize":"1","data-cfasync":"false"}):null}e.s(["AdsBoot",()=>a])},658453,e=>{"use strict";var t=e.i(618566),r=e.i(271645),s=e.i(890057),i=e.i(741269);function n(){let e=(0,t.usePathname)(),n=(0,s.stripLocaleFromPath)(e),a=(0,s.isRaptiveNoFloatingPath)(n);return(0,i.useRaptiveFloatingChromeHidden)(a),(0,r.useEffect)(()=>{let e=(0,s.isRaptiveDisabledPath)(n),t=null!==document.querySelector("[data-tf-suppress-ads]"),r=e||t;if(document.body.classList.toggle(s.RAPTIVE_DISABLE_ALL_CLASS,r),document.body.classList.toggle(s.RAPTIVE_DISABLE_VIDEO_CLASS,a),document.body.classList.toggle(s.SRW_BODY_CLASS,a),!r||!window.__tfAdsBooted)return;let o=()=>{document.querySelectorAll(i.AD_CHROME_SELECTOR).forEach(e=>{e!==document.body&&e.remove()})};o();let u=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)if(e instanceof Element&&(e.matches(i.AD_CHROME_SELECTOR)||e.querySelector(i.AD_CHROME_SELECTOR)))return void o()});return u.observe(document.body,{childList:!0,subtree:!0}),()=>u.disconnect()},[n,a]),null}e.s(["RaptiveRouteGuard",()=>n])},105910,e=>{"use strict";var t=e.i(271645);let r="tf.chunk_reload_guard.v1",s=[/Failed to fetch dynamically imported module/i,/error loading dynamically imported module/i,/Importing a module script failed/i],i=(e,t)=>!!("string"==typeof e&&s.some(t=>t.test(e)))&&!!(()=>
3{if((()=>{try{if("u"<typeof sessionStorage)return!0;return"1"===sessionStorage.getItem(r)}catch{return!0}})())return!1;try{sessionStorage.setItem(r,"1")}catch{}return!0})()&&(t(),!0),n=e=>e instanceof Error?e.message:void 0;function a(){return(0,t.useEffect)(()=>{let e=()=>window.location.reload(),t=t=>{i(n(t.error)??t.message,e)},r=t=>{let r=t.reason;i(n(r)??("string"==typeof r?r:void 0),e)};return window.addEventListener("error",t),window.addEventListener("unhandledrejection",r),()=>{window.removeEventListener("error",t),window.removeEventListener("unhandledrejection",r)}},[]),null}e.s(["ChunkReloadGuard",()=>a],105910)}]); 4 5//# debugId=f60b9e6c-5944-d1fb-dbb9-abd565597224 6//# sourceMappingURL=d515e6878fd8eb0b.js.map
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.