1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75696,e=>{"use strict";var t=e.i(61745),s=e.i(43476);function r({locale:e,...r}){if(!e)throw Error(void 0);return(0,s.jsx)(t.IntlProvider,{locale:e,...r})}e.s(["default",()=>r])},50898,e=>{"use strict";let t,s,r,i,n,a;var o=e.i(43476);e.i(47167);var u={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},l=new class{#e=u;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},c="u"<typeof window||"Deno"in globalThis;function h(){}function d(e,t){return"function"==typeof e?e(t):e}function f(e,t){let{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:a,stale:o}=e;if(a){if(r){if(t.queryHash!==m(a,t.options))return!1}else if(!g(t.queryKey,a))return!1}if("all"!==s){let e=t.isActive();if("active"===s&&!e||"inactive"===s&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!i||i===t.state.fetchStatus)&&(!n||!!n(t))}function p(e,t){let{exact:s,status:r,predicate:i,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(s){if(y(t.options.mutationKey)!==y(n))return!1}else if(!g(t.options.mutationKey,n))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))}function m(e,t){return(t?.queryKeyHashFn||y)(e)}function y(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,s)=>(e[s]=t[s],e),{}):t)}function g(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(s=>g(e[s],t[s]))}var v=Object.prototype.hasOwnProperty;function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!x(e))return!1;let t=e.constructor;if(void 0===t)return!0;let s=t.prototype;return!!x(s)&&!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function j(e,t,s=0){let r=[...e,t];return s&&r.length>s?r.slice(1):r}function O(e,t,s=0){let r=[t,...e];return s&&r.length>s?r.slice(0,-1):r}var P=Symbol();function C(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==P?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}var S=(t=[],s=0,r=e=>{e()},i=e=>{e()},n=function(e){setTimeout(e,0)},{batch:e=>{let a;s++;try{a=e()}finally{let e;--s||(e=t,t=[],e.length&&n(()=>{i(()=>{e.forEach(e=>{r(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{s?t.push(e):n(()=>{r(e)})},setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{n=e}}),_=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},E=new class extends _{#s;#r;#i;constructor(){super(),this.#i=e=>{if(!c&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#i=e,this.#r?.(),this.#r=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#s!==e&&(this.#s=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#s?this.#s:globalThis.document?.visibilityState!=="hidden"}},k=new class extends _{#n=!0;#r;#i;constructor(){super(),this.#i=e=>{if(!c&&window.addEventListener){let t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#r||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#i=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}
1setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};function q(e){return Math.min(1e3*2**e,3e4)}function T(e){return(e??"online")!=="online"||k.isOnline()}var A=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function M(e){let t,s=!1,r=0,i=function(){let e,t,s=new Promise((s,r)=>{e=s,t=r});function r(e){Object.assign(s,e),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},s.reject=e=>{r({status:"rejected",reason:e}),t(e)},s}(),n=()=>E.isFocused()&&("always"===e.networkMode||k.isOnline())&&e.canRun(),a=()=>T(e.networkMode)&&e.canRun(),o=e=>{"pending"===i.status&&(t?.(),i.resolve(e))},u=e=>{"pending"===i.status&&(t?.(),i.reject(e))},h=()=>new Promise(s=>{t=e=>{("pending"!==i.status||n())&&s(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===i.status&&e.onContinue?.()}),d=()=>{let t;if("pending"!==i.status)return;let a=0===r?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(o).catch(t=>{if("pending"!==i.status)return;let a=e.retry??3*!c,o=e.retryDelay??q,f="function"==typeof o?o(r,t):o,p=!0===a||"number"==typeof a&&r<a||"function"==typeof a&&a(r,t);s||!p?u(t):(r++,e.onFail?.(r,t),new Promise(e=>{l.setTimeout(e,f)}).then(()=>n()?void 0:h()).then(()=>{s?u(t):d()}))})};return{promise:i,status:()=>i.status,cancel:t=>{if("pending"===i.status){let s=new A(t);u(s),e.onCancel?.(s)}},continue:()=>(t?.(),i),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1},canStart:a,start:()=>(a()?d():h().then(d),i)}}var F=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#a=l.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(c?1/0:3e5))}clearGcTimeout(){this.#a&&(l.clearTimeout(this.#a),this.#a=void 0)}},I=class extends F{#o;#u;#l;#c;#h;#d;#f;constructor(e){super(),this.#f=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.client,this.#l=this.#c.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=L(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#h?.promise}setOptions(e){if(this.options={...this.#d,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=L(this.options);void 0!==e.data&&(this.setState(R(e.data,e.dataUpdatedAt)),this.#o=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(e,t){var s,r;let i=(s=this.state.data,"function"==typeof(r=this.options).structuralSharing?r.structuralSharing(s,e):!1!==r.structuralSharing?function e(t,s,r=0){if(t===s)return t;if(r>500)return s;let i=b(t)&&b(s);if(!i&&!(w(t)&&w(s)))return s;let n=(i?t:Object.keys(t)).length,a=i?s:Object.keys(s),o=a.length,u=i?Array(o):{},l=0;for(let c=0;c<o;c++){let o=i?c:a[c],h=t[o],d=s[o];if(h===d){u[o]=h,(i?c<n:v.call(t,o))&&l++;continue}if(null===h||null===d||"object"!=typeof h||"object"!=typeof d){u[o]=d;continue}let f=e(h,d,r+1);u[o]=f,f===h&&l++}return n===o&&l===n?t:u}(s,e):e);return this.#p({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#h?.promise;return this.#h?.cancel(e),t?t.then(h).catch(h):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some(e=>{var t;return!1!==(t=e.options.enabled,"function"==typeof t?t(this):t)})}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===P||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===d(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||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#l.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.#h&&(this.#f?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,t){let s;if("idle"!==this.state.fetchStatus&&this.#h?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,r.signal)}
vendor: 6,723 bytes, line 1
1)},n=()=>{let e,s=C(this.options,t),r=(i(e={client:this.#c,queryKey:this.queryKey,meta:this.meta}),e);return(this.#f=!1,this.options.persister)?this.options.persister(s,r,this):s(r)},a=(i(s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:n}),s);this.options.behavior?.onFetch(a,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#p({type:"fetch",meta:a.fetchOptions?.meta}),this.#h=M({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof A&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#h.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#l.config.onSuccess?.(e,this),this.#l.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof A){if(e.silent)return this.#h.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#l.config.onError?.(e,this),this.#l.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(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":var s;return{...t,...(s=t.data,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:T(this.options.networkMode)?"fetching":"paused",...void 0===s&&{error:null,status:"pending"}}),fetchMeta:e.meta??null};case"success":let r={...t,...R(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?r:void 0,r;case"error":let i=e.error;return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),S.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:e})})}};function R(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function L(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,s=void 0!==t,r=s?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var D=class extends _{constructor(e={}){super(),this.config=e,this.#m=new Map}#m;build(e,t,s){let r=t.queryKey,i=t.queryHash??m(r,t),n=this.get(i);return n||(n=new I({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(r)}),this.add(n)),n}add(e){this.#m.has(e.queryHash)||(this.#m.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#m.get(e.queryHash);t&&(e.destroy(),t===e&&this.#m.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){S.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#m.get(e)}getAll(){return[...this.#m.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>f(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>f(e,t)):t}notify(e){S.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){S.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){S.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},N=class extends F{#c;#y;#g;#h;constructor(e){super(),this.#c=e.client,this.mutationId=e.mutationId,this.#g=e.mutationCache,this.#y=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#y.includes(e)||(this.#y.push(e),this.clearGcTimeout(),this.#g.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#y=this.#y.filter(t=>t!==e),this.scheduleGc(),this.#g.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#y.length||("pending"===this.state.status?this.scheduleGc():this.#g.remove(this))}continue(){return this.#h?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#p({type:"continue"})},s={client:this.#c,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#h=M({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#g.canRun(this)});let r="pending"===this.state.status,i=!this.#h.canStart();try{if(r)t();else{this.#p({type:"pending",variables:e,isPaused:i}),this.#g.config.onMutate&&await this.#g.config.onMutate(e,this,s);let t=await this.options.onMutate?.(e,s);t!==this.state.context&&this.#p({type:"pending",context:t,variables:e,isPaused:i})}let n=await this.#h.start();return await this.#g.config.onSuccess?.(n,e,this.state.context,this,s),await this.options.onSuccess?.(n,e,this.state.context,s),await this.#g.config.onSettled?.(n,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(n,null,e,this.state.context,s),this.#p({type:"success",data:n}),n}catch(t){try{await this.#g.config.onError?.(t,e,this.state.context,this,s)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,s)}catch(e){Promise.reject(e)}try{await this.#g.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,s)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,s)}catch(e){Promise.reject(e)}throw this.#p({type:"error",error:t}),t}finally{this.#g.runNext(this)}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),S.batch(()=>{this.#y.forEach(t=>{t.onMutationUpdate(e)}),this.#g.notify({mutation:this,type:"updated",action:e})})}},H=class extends _{constructor(e={}){super(),this.config=e,this.#v=new Set,this.#b=new Map,this.#w=0}#v;#b;#w;build(e,t,s){let r=new N({client:e,mutationCache:this,mutationId:++this.#w,options:e.defaultMutationOptions(t),state:s});return this.add(r),r}add(e){this.#v.add(e);let t=Q(e);if("string"==typeof t){let s=this.#b.get(t);s?s.push(e):this.#b.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#v.delete(e)){let t=Q(e);if("string"==typeof t){let s=this.#b.get(t);if(s)if(s.length>1){let t=s.indexOf(e);-1!==t&&s.splice(t,1)}else s[0]===e&&this.#b.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=Q(e);if("string"!=typeof t)return!0;{let s=this.#b.get(t),r=s?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=Q(e);if("string"!=typeof t)return Promise.resolve();{let s=this.#b.get(t)?.find(t=>
vendor: 4,231 bytes, line 1
1t!==e&&t.state.isPaused);return s?.continue()??Promise.resolve()}}clear(){S.batch(()=>{this.#v.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#v.clear(),this.#b.clear()})}getAll(){return Array.from(this.#v)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>p(t,e))}findAll(e={}){return this.getAll().filter(t=>p(e,t))}notify(e){S.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return S.batch(()=>Promise.all(e.map(e=>e.continue().catch(h))))}};function Q(e){return e.options.scope?.id}function K(e){return{onFetch:(t,s)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,n=t.state.data?.pages||[],a=t.state.data?.pageParams||[],o={pages:[],pageParams:[]},u=0,l=async()=>{let s=!1,l=C(t.options,t.fetchOptions),c=async(e,r,i)=>{if(s)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);let n=(()=>{var e,n;let a,o,u={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?"backward":"forward",meta:t.options.meta};return e=()=>t.signal,n=()=>s=!0,o=!1,Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(a??=e(),o||(o=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),u})(),a=await l(n),{maxPages:o}=t.options,u=i?O:j;return{pages:u(e.pages,a,o),pageParams:u(e.pageParams,r,o)}};if(i&&n.length){let e="backward"===i,t={pages:n,pageParams:a},s=(e?function(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}:U)(r,t);o=await c(t,s,e)}else{let t=e??n.length;do{let e=0===u?a[0]??r.initialPageParam:U(r,o);if(u>0&&null==e)break;o=await c(o,e),u++}while(u<t)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=l}}}function U(e,{pages:t,pageParams:s}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,s[r],s):void 0}var $=class{#x;#g;#d;#j;#O;#P;#C;#S;constructor(e={}){this.#x=e.queryCache||new D,this.#g=e.mutationCache||new H,this.#d=e.defaultOptions||{},this.#j=new Map,this.#O=new Map,this.#P=0}mount(){this.#P++,1===this.#P&&(this.#C=E.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#x.onFocus())}),this.#S=k.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#x.onOnline())}))}unmount(){this.#P--,0===this.#P&&(this.#C?.(),this.#C=void 0,this.#S?.(),this.#S=void 0)}isFetching(e){return this.#x.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#g.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#x.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),s=this.#x.build(this,t),r=s.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(d(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#x.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,s){let r=this.defaultQueryOptions({queryKey:e}),i=this.#x.get(r.queryHash),n=i?.state.data,a="function"==typeof t?t(n):t;if(void 0!==a)return this.#x.build(this,r).setData(a,{...s,manual:!0})}setQueriesData(e,t,s){return S.batch(()=>this.#x.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,s)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#x.get(t.queryHash)?.state}removeQueries(e){let t=this.#x;S.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let s=this.#x;return S.batch(()=>(s.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let s={revert:!0,...t};return Promise.all(S.batch(()=>this.#x.findAll(e).map(e=>e.cancel(s)))).then(h).catch(h)}invalidateQueries(e,t={}){return S.batch(()=>(this.#x.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 s={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(S.batch(()=>this.#x.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,s);return s.throwOnError||(t=t.catch(h)),"paused"===e.state.fetchStatus?Promise.resolve():t}
1))).then(h)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let s=this.#x.build(this,t);return s.isStaleByTime(d(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(h).catch(h)}fetchInfiniteQuery(e){return e.behavior=K(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(h).catch(h)}ensureInfiniteQueryData(e){return e.behavior=K(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return k.isOnline()?this.#g.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#x}getMutationCache(){return this.#g}getDefaultOptions(){return this.#d}setDefaultOptions(e){this.#d=e}setQueryDefaults(e,t){this.#j.set(y(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#j.values()],s={};return t.forEach(t=>{g(e,t.queryKey)&&Object.assign(s,t.defaultOptions)}),s}setMutationDefaults(e,t){this.#O.set(y(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#O.values()],s={};return t.forEach(t=>{g(e,t.mutationKey)&&Object.assign(s,t.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#d.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=m(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===P&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#d.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#x.clear(),this.#g.clear()}},G=e.i(71645),z=G.createContext(void 0),B=({client:e,children:t})=>(G.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,o.jsx)(z.Provider,{value:e,children:t}));function Y({children:e}){let[t]=(0,G.useState)(()=>new $({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}}));return(0,o.jsx)(B,{client:t,children:e})}e.s(["QueryProvider",()=>Y],50898)},91976,e=>{"use strict";var t=e.i(43476),s=e.i(44705),r=e.i(482),i=e.i(19455),n=e.i(75157),a=e.i(57688),o=e.i(48148),u=e.i(61745);let l=(0,e.i(75254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);function c(){let e=(0,u.useLocale)(),r=(0,s.usePathname)(),i=(0,s.useRouter)();return(0,t.jsxs)("button",{onClick:()=>{i.replace(r,{locale:"en"===e?"es":"en"})},className:"flex items-center gap-1.5 rounded-md px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",title:"en"===e?"Cambiar a español":"Switch to English",children:[(0,t.jsx)(l,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"hidden sm:inline uppercase",children:"en"===e?"ES":"EN"})]})}function h(){let e=(0,s.usePathname)(),{user:n,loading:u,signOut:l}=(0,r.useAuth)(),h=(0,o.useTranslations)("nav"),m=(0,o.useTranslations)("common"),y=e.startsWith("/dashboard")||e.startsWith("/admin");return(0,t.jsxs)("header",{className:"sticky top-0 z-50 w-full border-b border-border bg-background/80 backdrop-blur-md",children:[(0,t.jsxs)("div",{className:"mx-auto flex h-16 max-w-[1400px] items-center justify-between px-6 sm:px-8 lg:px-12",children:[(0,t.jsxs)(s.Link,{href:n?"/dashboard":"/",className:"flex items-center gap-2",children:[(0,t.jsx)(a.default,{src:"/logo.svg",alt:m("slidePanda"),width:32,height:32}),(0,t.jsx)("span",{className:"text-xl font-bold tracking-tight",children:m("slidePanda")})]}),(0,t.jsx)("nav",{className:"hidden items-center gap-1 md:flex",children:y?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{href:"/dashboard",active:"/dashboard"===e,children:h("redesign")}),(0,t.jsx)(d,{href:"/dashboard/history",active:"/dashboard/history"===e,children:h("history")}),(0,t.jsx)(d,{href:"/dashboard/billing",active:"/dashboard/billing"===e,children:h("billing")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{href:"/#how-it-works",children:h("howItWorks")}),(0,t.jsx)(f,{href:"/#examples",children:h("examples")}),(0,t.jsx)(f,{href:"/#faq",children:h("faq")})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,t.jsx)(c,{}),u?(0,t.jsx)("div",{className:"h-9 w-20 animate-pulse rounded-md bg-muted"}):n?(0,t.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[!y&&(0,t.jsx)(i.Button,{asChild:!0,variant:"ghost",size:"sm",className:"hidden sm:inline-flex",children:(0,t.jsx)(s.Link,{href:"/dashboard",children:h("dashboard")})}),(0,t.jsx)(i.Button,{variant:"outline",size:"sm",onClick:l,children:h("signOut")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Button,{asChild:!0,variant:"ghost",size:"sm",className:"hidden sm:inline-flex",children:(0,t.jsx)(s.Link,{href:"/auth/login",children:h("signIn")})}),(0,t.jsx)(i.Button,{asChild:!0,size:"sm",children:(0,t.jsx)(s.Link,{href:"/auth/signup",children:h("getStartedFree")})})]})]})]}),y&&(0,t.jsxs)("nav",{className:"flex items-center gap-1 border-t border-border bg-muted/50 px-4 sm:px-6 md:hidden",children:[(0,t.jsx)(p,{href:"/dashboard",active:"/dashboard"===e,children:h("redesign")}),(0,t.jsx)(p,{href:"/dashboard/history",active:"/dashboard/history"===e,children:h("history")}),(0,t.jsx)(p,{href:"/dashboard/billing",active:"/dashboard/billing"===e,children:h("billing")})]})]})}function d({href:e,active:r,children:i}){return(0,t.jsx)(s.Link,{href:e,className:(0,n.cn)("rounded-md px-3 py-2 text-sm font-medium transition-colors",r?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:i})}function f({href:e,children:s}){return(0,t.jsx)("a",{href:e,className:"rounded-md px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:s})}function p({href:e,active:r,children:i}){return(0,t.jsx)(s.Link,{href:e,className:(0,n.cn)("flex-1 py-2.5 text-center text-xs font-medium transition-colors",r?"border-b-2 border-foreground text-foreground":"text-muted-foreground"),children:i})}e.s(["Navbar",()=>h],91976)},44604,e=>{"use strict";var t=e.i(43476),s=e.i(44705),r=e.i(48148);function i(){let e=(0,r.useTranslations)("footer"),i=(0,r.useTranslations)("common");return(0,t.jsx)("footer",{className:"border-t border-border bg-muted/50",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-6xl flex-col items-center justify-between gap-4 px-4 py-8 sm:flex-row sm:px-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold",children:i("slidePanda")}),(0,t.jsxs)("span",{className:"text-sm text-muted-foreground",children:["© ",new Date().getFullYear()]})]}),(0,t.jsxs)("nav",{className:"flex items-center gap-6",children:[(0,t.jsx)(s.Link,{href:"/privacy",className:"text-sm text-muted-foreground transition-colors hover:text-foreground",children:e("privacyPolicy")}),(0,t.jsx)(s.Link,{href:"/terms",className:"text-sm text-muted-foreground transition-colors hover:text-foreground",children:e("termsOfService")}),(0,t.jsx)(s.Link,{href:"/contact",className:"text-sm text-muted-foreground transition-colors hover:text-foreground",children:e("contactUs")})]})]})})}e.s(["Footer",()=>i])},18429,e=>{"use strict";var t=e.i(43476),s=e.i(23287),s=s,r=e.i(75254);let i=(0,r.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var n=e.i(17521),n=n;let a=(0,r.default)("octagon-x",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),o=(0,r.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var u=e.i(71645),l=(e,t,s,r,i,n,a,o)=>{let u=document.documentElement,l=["light","dark"];function c(t){var s;
1(Array.isArray(e)?e:[e]).forEach(e=>{let s="class"===e,r=s&&n?i.map(e=>n[e]||e):i;s?(u.classList.remove(...r),u.classList.add(n&&n[t]?n[t]:t)):u.setAttribute(e,t)}),s=t,o&&l.includes(s)&&(u.style.colorScheme=s)}if(r)c(r);else try{let e=localStorage.getItem(t)||s,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(r)}catch(e){}},c=u.createContext(void 0),h={setTheme:e=>{},themes:[]};u.memo(({forcedTheme:e,storageKey:t,attribute:s,enableSystem:r,enableColorScheme:i,defaultTheme:n,value:a,themes:o,nonce:c,scriptProps:h})=>{let d=JSON.stringify([s,t,n,e,o,a,r,i]).slice(1,-1);return u.createElement("script",{...h,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${l.toString()})(${d})`}})});var d=e.i(46696);let f=({...e})=>{var r;let{theme:l="system"}=null!=(r=u.useContext(c))?r:h;return(0,t.jsx)(d.Toaster,{theme:l,className:"toaster group",icons:{success:(0,t.jsx)(s.default,{className:"size-4"}),info:(0,t.jsx)(i,{className:"size-4"}),warning:(0,t.jsx)(o,{className:"size-4"}),error:(0,t.jsx)(a,{className:"size-4"}),loading:(0,t.jsx)(n.default,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...e})};e.s(["Toaster",()=>f],18429)},61316,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=function({html:e,height:t=null,width:s=null,children:n,dataNtpc:a=""}){return(0,i.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${a}`}})},[a]),(0,r.jsxs)(r.Fragment,{children:[n,e?(0,r.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=s?`${s}px`:"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:e}}):null]})};let r=e.r(43476),i=e.r(71645)},8341,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return n}};for(var i in r)Object.defineProperty(s,i,{enumerable:!0,get:r[i]});let n="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},79520,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r={default:function(){return b},handleClientScriptLoad:function(){return y},initScriptLoader:function(){return g}};for(var i in r)Object.defineProperty(s,i,{enumerable:!0,get:r[i]});let n=e.r(55682),a=e.r(90809),o=e.r(43476),u=n._(e.r(74080)),l=a._(e.r(71645)),c=e.r(42732),h=e.r(22737),d=e.r(8341),f=new Map,p=new Set,m=e=>{let{src:t,id:s,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:n,children:a="",strategy:o="afterInteractive",onError:l,stylesheets:c}=e,d=s||t;if(d&&p.has(d))return;if(f.has(t)){p.add(d),f.get(t).then(r,l);return}let m=()=>{i&&i(),p.add(d)},y=document.createElement("script"),g=new Promise((e,t)=>{y.addEventListener("load",function(t){e(),r&&r.call(this,t),m()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});n?(y.innerHTML=n.__html||"",m()):a?(y.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",m()):t&&(y.src=t,f.set(t,g)),(0,h.setAttributesFromProps)(y,e),"worker"===o&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",o),c&&(e=>{if(u.default.preinit)return e.forEach(e=>{u.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let s=document.createElement("link");s.type="text/css",s.rel="stylesheet",s.href=e,t.appendChild(s)})}})(c),document.body.appendChild(y)};function y(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>m(e))}):m(e)}function g(e){e.forEach(y),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEac
1h(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function v(e){let{id:t,src:s="",onLoad:r=()=>{},onReady:i=null,strategy:n="afterInteractive",onError:a,stylesheets:h,...f}=e,{updateScripts:y,scripts:g,getIsSsr:v,appDir:b,nonce:w}=(0,l.useContext)(c.HeadManagerContext);w=f.nonce||w;let x=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e=t||s;x.current||(i&&e&&p.has(e)&&i(),x.current=!0)},[i,t,s]);let j=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{if(!j.current){if("afterInteractive"===n)m(e);else"lazyOnload"===n&&("complete"===document.readyState?(0,d.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>m(e))}));j.current=!0}},[e,n]),("beforeInteractive"===n||"worker"===n)&&(y?(g[n]=(g[n]||[]).concat([{id:t,src:s,onLoad:r,onReady:i,onError:a,...f,nonce:w}]),y(g)):v&&v()?p.add(t||s):v&&!v()&&m({...e,nonce:w})),b){if(h&&h.forEach(e=>{u.default.preinit(e,{as:"style"})}),"beforeInteractive"===n)if(!s)return f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...f,id:t}])})`}});else return u.default.preload(s,f.integrity?{as:"script",integrity:f.integrity,nonce:w,crossOrigin:f.crossOrigin}:{as:"script",nonce:w,crossOrigin:f.crossOrigin}),(0,o.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([s,{...f,id:t}])})`}});"afterInteractive"===n&&s&&u.default.preload(s,f.integrity?{as:"script",integrity:f.integrity,nonce:w,crossOrigin:f.crossOrigin}:{as:"script",nonce:w,crossOrigin:f.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let b=v;("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)},3303,(e,t,s)=>{t.exports=e.r(79520)},19598,(e,t,s)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0}),s.sendGTMEvent=void 0,s.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:s,dataLayerName:r="dataLayer",auth:u,preview:l,dataLayer:c,nonce:h}=e;o=r;let d=new URL(s||"https://www.googletagmanager.com/gtm.js");return t&&d.searchParams.set("id",t),"dataLayer"!==r&&d.searchParams.set("l",r),u&&d.searchParams.set("gtm_auth",u),l&&(d.searchParams.set("gtm_preview",l),d.searchParams.set("gtm_cookies_win","x")),(0,n.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` 2 (function(w,l){ 3 w[l]=w[l]||[]; 4 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 5 ${c?`w[l].push(${JSON.stringify(c)})`:""} 6 })(window,'${r}');`},nonce:h}),(0,i.jsx)(a.default,{id:"_next-gtm","data-ntpc":"GTM",src:d.href,nonce:h})]})};let i=e.r(43476),n=e.r(71645),a=r(e.r(3303)),o="dataLayer";s.sendGTMEvent=(e,t)=>{let s=t||o;window[s]=window[s]||[],window[s].push(e)}},54576,(e,t,s)=>{"use strict";let r;var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(s,"__esModule",{value:!0}),s.GoogleAnalytics=function(e){let{gaId:t,debugMode:s,dataLayerName:i="dataLayer",nonce:u}=e;return void 0===r&&(r=i),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` 7 window['${i}'] = window['${i}'] || []; 8 function gtag(){window['${i}'].push(arguments);} 9 gtag('js', new Date()); 10 11 gtag('config', '${t}' ${s?",{ 'debug_mode': true }":""});`},nonce:u}),(0,n.jsx)(o.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:u})]})},s.sendGAEvent=function(){void 0===r?console.warn("@next/third-parties: GA has not been initialized"):window[r]?window[r].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${r} does not exist`)};
11let n=e.r(43476),a=e.r(71645),o=i(e.r(3303))},57215,e=>{"use strict";var t=e.i(47167),s=e.i(71645),r=e.i(18566);function i(){return false}function n(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function a(e){(0,s.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let r=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(r.current)e.route&&r.current(e.route);else{let s=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let s=e.scriptSrc?e.scriptSrc:i()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${s}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let r=document.createElement("script");return r.src=s,r.defer=!0,r.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),r.dataset.sdkv="1.3.1",e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),i()&&!1===e.debug&&(r.dataset.debug="false"),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${s}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});s&&(r.current=s.setRoute)}},[e.route]),null}function o(e){let i=(()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)()||new URLSearchParams,s=(0,r.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!s||!i)return s;let a=s;try{let e=Object.entries(i);for(let[t,s]of e)if(!Array.isArray(s)){let e=n(s);e.test(a)&&(a=a.replace(e,`/[${t}]`))}for(let[t,s]of e)if(Array.isArray(s)){let e=n(s.join("/"));e.test(a)&&(a=a.replace(e,`/[...${t}]`))}return a}catch(e){return s}})();return s.default.createElement(a,{route:i,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}function u(e){return s.default.createElement(s.Suspense,{fallback:null},s.default.createElement(o,{...e}))}e.s(["SpeedInsights",()=>u])},44636,e=>{"use strict";e.i(47167);var t=e.i(43476),s=e.i(4570),r=e.i(71645),i=(0,r.createContext)({client:s.default,bootstrap:void 0});function n(e){var t,n,a=e.children,o=e.client,u=e.apiKey,l=e.options,c=(0,r.useRef)(null),h=(0,r.useMemo)(function(){return o?(u&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),l&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),o):(u||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),s.default)},[o,u,JSON.stringify(l)]);return(0,r.useEffect)(function(){if(!o){var e=c.current;e?(u!==e.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),l&&!function e(t,s,r){if(void 0===r&&(r=new WeakMap),t===s)return!0;if("object"!=typeof t||null===t||"object"!=typeof s||null===s)return!1;if(r.has(t)&&r.get(t)===s)return!0;r.set(t,s);var i=Object.keys(t),n=Object.keys(s);if(i.length!==n.length)return!1;for(var a=0;a<i.length;a++){var o=i[a];if(!n.includes(o)||!e(t[o],s[o],r))return!1}return!0}(l,e.options)&&s.default.set_config(l)):(s.default.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),s.default.init(u,l)),c.current={apiKey:u,options:null!=l?l:{}}}},[o,u,JSON.stringify(l)]),r.default.createElement(i.Provider,{value:{client:h,bootstrap:null!=(t=null==l?void 0:l.bootstrap)?t:null==(n=null==o?void 0:o.config)?void 0:n.bootstrap}},a)}var a=function(e){return"function"==typeof e}
11,o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)};"function"==typeof SuppressedError&&SuppressedError;var u={componentStack:null,exceptionEvent:null,error:null},l=r.default.Component;if("function"!=typeof l&&null!==l)throw TypeError("Class extends value "+String(l)+" is not a constructor or null");function c(){this.constructor=h}function h(e){var t=l.call(this,e)||this;return t.state=u,t}o(h,l),h.prototype=null===l?Object.create(l):(c.prototype=l.prototype,new c),h.prototype.componentDidCatch=function(e,t){var s,r=this.props.additionalProperties;a(r)?s=r(e):"object"==typeof r&&(s=r);var i=this.context.client.captureException(e,s),n=t.componentStack;this.setState({error:e,componentStack:null!=n?n:null,exceptionEvent:i})},h.prototype.render=function(){var e=this.props,t=e.children,s=e.fallback,i=this.state;if(null==i.componentStack)return a(t)?t():t;var n=a(s)?r.default.createElement(s,{error:i.error,componentStack:i.componentStack,exceptionEvent:i.exceptionEvent}):s;return r.default.isValidElement(n)?n:(console.warn("[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."),r.default.createElement(r.default.Fragment,null))},h.contextType=i;var d=e.i(11795);function f({children:e}){return(0,r.useEffect)(()=>{s.default.init("phc_HhehdXrY4aHvPhi56vOS0mHEiowY7xsZuAidCi02VqS",{api_host:"https://us.i.posthog.com",capture_pageview:!0,capture_pageleave:!0,capture_performance:!0,autocapture:!0,session_recording:{recordCrossOriginIframes:!0}}),(0,d.createClient)().auth.getUser().then(({data:{user:e}})=>{e&&s.default.identify(e.id,{email:e.email,created_at:e.created_at})})},[]),(0,t.jsx)(n,{client:s.default,children:e})}e.s(["PostHogProvider",()=>f],44636)}]);
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.