1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41109,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#e=t;#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)}};function s(e){setTimeout(e,0)}e.s(["systemSetTimeoutZero",()=>s,"timeoutManager",()=>r])},956314,e=>{"use strict";var t=e.i(41109),r="undefined"==typeof window||"Deno"in globalThis;function s(){}function i(e,t){return"function"==typeof e?e(t):e}function n(e){return"number"==typeof e&&e>=0&&e!==1/0}function a(e,t){return Math.max(e+(t||0)-Date.now(),0)}function o(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:r="all",exact:s,fetchStatus:i,predicate:n,queryKey:a,stale:o}=e;if(a){if(s){if(t.queryHash!==h(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!i||i===t.state.fetchStatus)&&(!n||!!n(t))}function l(e,t){let{exact:r,status:s,predicate:i,mutationKey:n}=e;if(n){if(!t.options.mutationKey)return!1;if(r){if(d(t.options.mutationKey)!==d(n))return!1}else if(!p(t.options.mutationKey,n))return!1}return(!s||t.state.status===s)&&(!i||!!i(t))}function h(e,t){return(t?.queryKeyHashFn||d)(e)}function d(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>p(e[r],t[r]))}var f=Object.prototype.hasOwnProperty;function y(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!m(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!m(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function m(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e){return new Promise(r=>{t.timeoutManager.setTimeout(r,e)})}function R(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r,s=0){if(t===r)return t;if(s>500)return r;let i=v(t)&&v(r);if(!i&&!(b(t)&&b(r)))return r;let n=(i?t:Object.keys(t)).length,a=i?r:Object.keys(r),o=a.length,u=i?Array(o):{},c=0;for(let l=0;l<o;l++){let o=i?l:a[l],h=t[o],d=r[o];if(h===d){u[o]=h,(i?l<n:f.call(t,o))&&c++;continue}if(null===h||null===d||"object"!=typeof h||"object"!=typeof d){u[o]=d;continue}let p=e(h,d,s+1);u[o]=p,p===h&&c++}return n===o&&c===n?t:u}(e,t):t}function S(e,t,r=0){let s=[...e,t];return r&&s.length>r?s.slice(1):s}function T(e,t,r=0){let s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var O=Symbol();function E(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==O?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function w(e,t){return"function"==typeof e?e(...t):!!e}function C(e,t,r){let s,i=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),i||(i=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}e.s(["addConsumeAwareSignal",()=>C,"addToEnd",()=>S,"addToStart",()=>T,"ensureQueryFn",()=>E,"functionalUpdate",()=>i,"hashKey",()=>d,"hashQueryKeyByOptions",()=>h,"isServer",()=>r,"isValidTimeout",()=>n,"matchMutation",()=>l,"matchQuery",()=>c,"noop",()=>s,"partialMatchKey",()=>p,"replaceData",()=>R,"resolveEnabled",()=>u,"resolveStaleTime",()=>o,"shallowEqualObjects",()=>y,"shouldThrowError",()=>w,"skipToken",()=>O,"sleep",()=>g,"timeUntilStale",()=>a])},981858,e=>{"use strict";var t=e.i(956314);function r(){let e,t,r=new Promise((r,s)=>{e=r,t=s});function s(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{s({status:"fulfilled",value:t}),e(t)},r.reject=e=>{s({status:"rejected",reason:e}),t(e)},r}function s(e){let r;if(e.then(e=>(r=e,e),t.noop)?.catch(t.noop),void 0!==r)return{data:r}}e.s(["pendingThenable",()=>
1r,"tryResolveSync",()=>s])},830878,e=>{"use strict";var t=e.i(150221),r=t.createContext(!1),s=()=>t.useContext(r),i=r.Provider;e.s(["IsRestoringProvider",()=>i,"useIsRestoring",()=>s])},35258,e=>{"use strict";var t=e.i(150221),r=e.i(789735),s=t.createContext(void 0),i=e=>{let r=t.useContext(s);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r},n=({client:e,children:i})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(s.Provider,{value:e,children:i}));e.s(["QueryClientProvider",()=>n,"useQueryClient",()=>i])},486105,460504,e=>{"use strict";var t=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.s(["Subscribable",()=>t],460504);var r=new class extends t{#r;#s;#i;constructor(){super(),this.#i=e=>{if("undefined"!=typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#s||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(e){this.#i=e,this.#s?.(),this.#s=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",()=>r],486105)},469313,e=>{"use strict";let t;var r=e.i(956314),s=(t=()=>r.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",()=>s])},613649,e=>{"use strict";let t,r,s,i,n,a;var o=e.i(41109).systemSetTimeoutZero,u=(t=[],r=0,s=e=>{e()},i=e=>{e()},n=o,{batch:e=>{let a;r++;try{a=e()}finally{let e;--r||(e=t,t=[],e.length&&n(()=>{i(()=>{e.forEach(e=>{s(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{r?t.push(e):n(()=>{s(e)})},setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{n=e}});e.s(["notifyManager",()=>u])},857886,e=>{"use strict";var t=e.i(460504),r=new class extends t.Subscribable{#n=!0;#s;#i;constructor(){super(),this.#i=e=>{if("undefined"!=typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#s||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(e){this.#i=e,this.#s?.(),this.#s=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};e.s(["onlineManager",()=>r])},329755,e=>{"use strict";var t=e.i(486105),r=e.i(857886),s=e.i(981858),i=e.i(469313),n=e.i(956314);function a(e){return Math.min(1e3*2**e,3e4)}function o(e){return(e??"online")!=="online"||r.onlineManager.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){let c,l=!1,h=0,d=(0,s.pendingThenable)(),p=()=>t.focusManager.isFocused()&&("always"===e.networkMode||r.onlineManager.isOnline())&&e.canRun(),f=()=>o(e.networkMode)&&e.canRun(),y=e=>{"pending"===d.status&&(c?.(),d.resolve(e))},v=e=>{"pending"===d.status&&(c?.(),d.reject(e))},b=()=>new Promise(t=>{c=e=>{("pending"!==d.status||p())&&t(e)},e.onPause?.()}).then(()=>{c=void 0,"pending"===d.status&&e.onContinue?.()}),m=()=>{let t;if("pending"!==d.status)return;let r=0===h?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(y).catch(t=>{if("pending"!==d.status)return;let r=e.retry??3*!i.environmentManager.isServer(),s=e.retryDelay??a,o="function"==typeof s?s(h,t):s,u=!0===r||"number"==typeof r&&h<r||"function"==typeof r&&r(h,t);l||!u?v(t):(h++,e.onFail?.(h,t),(0,n.sleep)(o).then(()=>
1p()?void 0:b()).then(()=>{l?v(t):m()}))})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let r=new u(t);v(r),e.onCancel?.(r)}},continue:()=>(c?.(),d),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:f,start:()=>(f()?m():b().then(m),d)}}e.s(["CancelledError",()=>u,"canFetch",()=>o,"createRetryer",()=>c])},119049,e=>{"use strict";var t=e.i(41109),r=e.i(469313),s=e.i(956314),i=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,s.isValidTimeout)(this.gcTime)&&(this.#a=t.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&(t.timeoutManager.clearTimeout(this.#a),this.#a=void 0)}};e.s(["Removable",()=>i])},256724,133498,e=>{"use strict";var t=e.i(486105),r=e.i(469313),s=e.i(613649);e.i(230836);var i=e.i(956314),n=e.i(329755),a=e.i(119049),o=class extends a.Removable{#o;#u;#c;#l;#h;#d;#p;constructor(e){super(),this.#p=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#l=e.client,this.#c=this.#l.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(c(e.data,e.dataUpdatedAt)),this.#o=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){let r=(0,i.replaceData)(this.state.data,e,this.options);return this.#f({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#f({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#h?.promise;return this.#h?.cancel(e),t?t.then(i.noop).catch(i.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#o}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,i.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===i.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,i.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,i.timeUntilStale)(this.state.dataUpdatedAt,e))}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.#c.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.#p||this.#y()?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#y(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}async fetch(e,t){let r;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 s=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,s.signal)}
1)},o=()=>{let e,r=(0,i.ensureQueryFn)(this.options,t),s=(a(e={client:this.#l,queryKey:this.queryKey,meta:this.meta}),e);return(this.#p=!1,this.options.persister)?this.options.persister(r,s,this):r(s)},u=(a(r={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:o}),r);this.options.behavior?.onFetch(u,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#f({type:"fetch",meta:u.fetchOptions?.meta}),this.#h=(0,n.createRetryer)({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:e=>{e instanceof n.CancelledError&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),s.abort()},onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.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.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof n.CancelledError){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.#f({type:"error",error:e}),this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#f(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,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...c(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 s=e.error;return{...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),s.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function c(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,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",()=>o,"fetchState",()=>u],133498);var h=e.i(460504),d=e.i(981858),p=e.i(41109),f=class extends h.Subscribable{constructor(e,t){super(),this.options=t,this.#l=e,this.#v=null,this.#b=(0,d.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#l;#m=void 0;#g=void 0;#R=void 0;#S;#T;#b;#v;#O;#E;#w;#C;#Q;#I;#F=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#m.addObserver(this),y(this.#m,this.options)?this.#M():this.updateResult(),this.#P())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return v(this.#m,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return v(this.#m,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#U(),this.#D(),this.#m.removeObserver(this)}setOptions(e){let t=this.options,r=this.#m;if(this.options=this.#l.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,i.resolveEnabled)(this.options.enabled,this.#m))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#m.setOptions(this.options),t._defaulted&&!(0,i.shallowEqualObjects)(this.options,t)&&this.#l.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#m,observer:this});let s=this.hasListeners();s&&b(this.#m,r,this.options,t)&&this.#M(),this.updateResult(),s&&(this.#m!==r||(0,i.resolveEnabled)(this.options.enabled,this.#m)!==(0,i.resolveEnabled)(t.enabled,this.#m)||(0,i.resolveStaleTime)(this.options.staleTime,this.#m)!==(0,i.resolveStaleTime)(t.staleTime,this.#m))&&this.#q();let n=this.#k();s&&(this.#m!==r||(0,i.resolveEnabled)(this.options.enabled,this.#m)!==(0,i.resolveEnabled)(t.enabled,this.#m)||n!==this.#I)&&this.#x(n)}getOptimisticResult(e){var t,r;let s=this.#l.getQueryCache().build(this.#l,e),n=this.createResult(s,e);return t=this,r=n,(0,i.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#R=n,this.#T=this.options,this.#S=this.#m.state),n}getCurrentResult(){return this.#R}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#b.status||this.#b.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#F.add(e)}getCurrentQuery(){return this.#m}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#l.defaultQueryOptions(e),r=this.#l.getQueryCache().build(this.#l,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#M({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#R))}#M(e){this.#j();let t=this.#m.fetch(this.options,e);return e?.throwOnError||(t=t.catch(i.noop)),t}#q(){this.#U();let e=(0,i.resolveStaleTime)(this.options.staleTime,this.#m);if(r.environmentManager.isServer()||this.#R.isStale||!(0,i.isValidTimeout)(e))return;let t=(0,i.timeUntilStale)(this.#R.dataUpdatedAt,e);this.#C=p.timeoutManager.setTimeout(()=>{this.#R.isStale||this.updateResult()},t+1)}#k(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#m):this.options.refetchInterval)??!1}#x(e){this.#D(),this.#I=e,!r.environmentManager.isServer()&&!1!==(0,i.resolveEnabled)(this.options.enabled,this.#m)&&(0,i.isValidTimeout)(this.#I)&&0!==this.#I&&(this.#Q=p.timeoutManager.setInterval(()=>
1{(this.options.refetchIntervalInBackground||t.focusManager.isFocused())&&this.#M()},this.#I))}#P(){this.#q(),this.#x(this.#k())}#U(){void 0!==this.#C&&(p.timeoutManager.clearTimeout(this.#C),this.#C=void 0)}#D(){void 0!==this.#Q&&(p.timeoutManager.clearInterval(this.#Q),this.#Q=void 0)}createResult(e,t){let r,s=this.#m,n=this.options,a=this.#R,o=this.#S,c=this.#T,l=e!==s?e.state:this.#g,{state:h}=e,p={...h},f=!1;if(t._optimisticResults){let r=this.hasListeners(),i=!r&&y(e,t),a=r&&b(e,s,t,n);(i||a)&&(p={...p,...u(h.data,e.options)}),"isRestoring"===t._optimisticResults&&(p.fetchStatus="idle")}let{error:v,errorUpdatedAt:g,status:R}=p;r=p.data;let S=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===R){let e;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=a.data,S=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#w?.state.data,this.#w):t.placeholderData,void 0!==e&&(R="success",r=(0,i.replaceData)(a?.data,e,t),f=!0)}if(t.select&&void 0!==r&&!S)if(a&&r===o?.data&&t.select===this.#O)r=this.#E;else try{this.#O=t.select,r=t.select(r),r=(0,i.replaceData)(a?.data,r,t),this.#E=r,this.#v=null}catch(e){this.#v=e}this.#v&&(v=this.#v,r=this.#E,g=Date.now(),R="error");let T="fetching"===p.fetchStatus,O="pending"===R,E="error"===R,w=O&&T,C=void 0!==r,Q={status:R,fetchStatus:p.fetchStatus,isPending:O,isSuccess:"success"===R,isError:E,isInitialLoading:w,isLoading:w,data:r,dataUpdatedAt:p.dataUpdatedAt,error:v,errorUpdatedAt:g,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:T,isRefetching:T&&!O,isLoadingError:E&&!C,isPaused:"paused"===p.fetchStatus,isPlaceholderData:f,isRefetchError:E&&C,isStale:m(e,t),refetch:this.refetch,promise:this.#b,isEnabled:!1!==(0,i.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==Q.data,r="error"===Q.status&&!t,i=e=>{r?e.reject(Q.error):t&&e.resolve(Q.data)},n=()=>{i(this.#b=Q.promise=(0,d.pendingThenable)())},a=this.#b;switch(a.status){case"pending":e.queryHash===s.queryHash&&i(a);break;case"fulfilled":(r||Q.data!==a.value)&&n();break;case"rejected":r&&Q.error===a.reason||n()}}return Q}updateResult(){let e=this.#R,t=this.createResult(this.#m,this.options);if(this.#S=this.#m.state,this.#T=this.options,void 0!==this.#S.data&&(this.#w=this.#m),(0,i.shallowEqualObjects)(t,e))return;this.#R=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#F.size)return!0;let s=new Set(r??this.#F);return this.options.throwOnError&&s.add("error"),Object.keys(this.#R).some(t=>this.#R[t]!==e[t]&&s.has(t))};this.#A({listeners:r()})}#j(){let e=this.#l.getQueryCache().build(this.#l,this.options);if(e===this.#m)return;let t=this.#m;this.#m=e,this.#g=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#P()}#A(e){s.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#R)}),this.#l.getQueryCache().notify({query:this.#m,type:"observerResultsUpdated"})})}};function y(e,t){return!1!==(0,i.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&v(e,t,t.refetchOnMount)}function v(e,t,r){if(!1!==(0,i.resolveEnabled)(t.enabled,e)&&"static"!==(0,i.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&m(e,t)}return!1}function b(e,t,r,s){return(e!==t||!1===(0,i.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&m(e,r)}function m(e,t){return!1!==(0,i.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,i.resolveStaleTime)(t.staleTime,e))}e.s(["QueryObserver",()=>f],256724)},326636,953792,e=>{"use strict";let t;var r=e.i(150221);e.i(789735);var s=r.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),i=()=>r.useContext(s);e.s(["useQueryErrorResetBoundary",()=>i],326636);var n=e.i(956314),a=(e,t,r)=>{let s=r?.state.error&&"function"==typeof e.throwOnError?(0,n.shouldThrowError)(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&!t.isReset()&&(e.retryOn
1Mount=!1)},o=e=>{r.useEffect(()=>{e.clearReset()},[e])},u=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,n.shouldThrowError)(r,[e.error,s]));e.s(["ensurePreventErrorBoundaryRetry",()=>a,"getHasError",()=>u,"useClearResetErrorBoundary",()=>o],953792)},112057,e=>{"use strict";var t=e.i(256724);e.i(230836);var r=e.i(150221),s=e.i(469313),i=e.i(956314),n=e.i(613649),a=e.i(35258),o=e.i(326636),u=e.i(953792),c=e.i(830878),l=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function h(e,h){return function(e,t,h){let d=(0,c.useIsRestoring)(),p=(0,o.useQueryErrorResetBoundary)(),f=(0,a.useQueryClient)(h),y=f.defaultQueryOptions(e);f.getDefaultOptions().queries?._experimental_beforeQuery?.(y);let v=f.getQueryCache().get(y.queryHash);y._optimisticResults=d?"isRestoring":"optimistic";if(y.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=y.staleTime;y.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof y.gcTime&&(y.gcTime=Math.max(y.gcTime,1e3))}(0,u.ensurePreventErrorBoundaryRetry)(y,p,v),(0,u.useClearResetErrorBoundary)(p);let b=!f.getQueryCache().get(y.queryHash),[m]=r.useState(()=>new t(f,y)),g=m.getOptimisticResult(y),R=!d&&!1!==e.subscribed;if(r.useSyncExternalStore(r.useCallback(e=>{let t=R?m.subscribe(n.notifyManager.batchCalls(e)):i.noop;return m.updateResult(),t},[m,R]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),r.useEffect(()=>{m.setOptions(y)},[y,m]),y?.suspense&&g.isPending)throw l(y,m,p);if((0,u.getHasError)({result:g,errorResetBoundary:p,throwOnError:y.throwOnError,query:v,suspense:y.suspense}))throw g.error;if(f.getDefaultOptions().queries?._experimental_afterQuery?.(y,g),y.experimental_prefetchInRender&&!s.environmentManager.isServer()&&g.isLoading&&g.isFetching&&!d){let e=b?l(y,m,p):v?.promise;e?.catch(i.noop).finally(()=>{m.updateResult()})}return y.notifyOnChangeProps?g:m.trackResult(g)}(e,t.QueryObserver,h)}e.s(["useQuery",()=>h],112057)}]);
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.