1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6708],{1681:(t,e,s)=>{s.d(e,{t:()=>i});var r=s(98216);let i=new class extends r.Q{#t=!0;#e;#s;constructor(){super(),this.#s=t=>{if("u">typeof window&&window.addEventListener){let e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#s=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#t}}},5858:(t,e,s)=>{s.d(e,{Cp:()=>y,EN:()=>f,F$:()=>p,GU:()=>F,MK:()=>l,S$:()=>i,ZM:()=>T,ZZ:()=>Q,Zw:()=>a,d2:()=>c,f8:()=>m,gn:()=>o,hT:()=>C,j3:()=>u,lQ:()=>n,nJ:()=>d,nU:()=>h,ox:()=>I,pl:()=>O,y9:()=>w,yy:()=>S});var r=s(83599);let i="u"<typeof window||"Deno"in globalThis;function n(){}function a(t,e){return"function"==typeof t?t(e):t}function o(t){return"number"==typeof t&&t>=0&&t!==1/0}function u(t,e){return Math.max(t+(e||0)-Date.now(),0)}function c(t,e){return"function"==typeof t?t(e):t}function h(t,e){return"function"==typeof t?t(e):t}function l(t,e){let{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==p(a,e.options))return!1}else if(!y(e.queryKey,a))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&(!i||i===e.state.fetchStatus)&&(!n||!!n(e))}function d(t,e){let{exact:s,status:r,predicate:i,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(s){if(f(e.options.mutationKey)!==f(n))return!1}else if(!y(e.options.mutationKey,n))return!1}return(!r||e.state.status===r)&&(!i||!!i(e))}function p(t,e){return(e?.queryKeyHashFn||f)(t)}function f(t){return JSON.stringify(t,(t,e)=>g(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function y(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(Array.isArray(t)&&Array.isArray(e)){for(let s=0;s<e.length;s++)if(!y(t[s],e[s]))return!1;return!0}for(let s of Object.keys(e))if(!y(t[s],e[s]))return!1;return!0}return!1}let v=Object.prototype.hasOwnProperty;function m(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function b(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!R(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!R(s)&&!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype}function R(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t){return new Promise(e=>{r.zs.setTimeout(e,t)})}function O(t,e,s){return"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?function t(e,s,r=0){if(e===s)return e;if(r>500)return s;let i=b(e)&&b(s);if(!i&&!(g(e)&&g(s)))return s;let n=(i?e:Object.keys(e)).length,a=i?s:Object.keys(s),o=a.length,u=i?Array(o):{},c=0;for(let h=0;h<o;h++){let o=i?h:a[h],l=e[o],d=s[o];if(l===d){u[o]=l,(i?h<n:v.call(e,o))&&c++;continue}if(null===l||null===d||"object"!=typeof l||"object"!=typeof d){u[o]=d;continue}let p=t(l,d,r+1);u[o]=p,p===l&&c++}return n===o&&c===n?e:u}(t,e):e}function w(t,e,s=0){let r=[...t,e];return s&&r.length>s?r.slice(1):r}function Q(t,e,s=0){let r=[e,...t];return s&&r.length>s?r.slice(0,-1):r}let C=Symbol();function T(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==C?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))}function F(t,e){return"function"==typeof t?t(...e):!!t}function I(t,e,s){let r,i=!1;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(r??=e(),i||(i=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),t}},9846:(t,e,s)=>{s.d(e,{II:()=>h,cc:()=>c,v_:()=>u});var r=s(5858),i=s(20297),n=s(20562),a=s(1681);function o(t){return Math.min(1e3*2**t,3e4)}function u(t){return(t??"online")!=="online"||a.t.isOnline()}
1var c=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function h(t){let e,s,h,l=!1,d=0,p="pending",f=new Promise((t,e)=>{s=t,h=e});f.catch(r.lQ);let y=()=>n.m.isFocused()&&("always"===t.networkMode||a.t.isOnline())&&t.canRun(),v=()=>u(t.networkMode)&&t.canRun(),m=t=>{"pending"===p&&(e?.(),p="resolved",s(t))},b=t=>{"pending"===p&&(e?.(),p="rejected",h(t))},g=()=>new Promise(s=>{e=t=>{("pending"!==p||y())&&s(t)},t.onPause?.()}).then(()=>{e=void 0,"pending"===p&&t.onContinue?.()}),R=()=>{let e;if("pending"!==p)return;let s=0===d?t.initialPromise:void 0;try{e=s??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(m).catch(e=>{if("pending"!==p)return;let s=t.retry??3*!i.H.isServer(),n=t.retryDelay??o,a="function"==typeof n?n(d,e):n,u=!0===s||"number"==typeof s&&d<s||"function"==typeof s&&s(d,e);l||!u?b(e):(d++,t.onFail?.(d,e),(0,r.yy)(a).then(()=>y()?void 0:g()).then(()=>{l?b(e):R()}))})};return{promise:f,status:()=>p,cancel:e=>{if("pending"===p){let s=new c(e);b(s),t.onCancel?.(s)}},continue:()=>(e?.(),f),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:v,start:()=>(v()?R():g().then(R),f)}}},20297:(t,e,s)=>{let r;s.d(e,{H:()=>n});var i=s(5858);let n=(r=()=>i.S$,{isServer:()=>r(),setIsServer(t){r=t}})},20562:(t,e,s)=>{s.d(e,{m:()=>i});var r=s(98216);let i=new class extends r.Q{#r;#e;#s;constructor(){super(),this.#s=t=>{if("u">typeof window&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#s=t,this.#e?.(),this.#e=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#r!==t&&(this.#r=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#r?this.#r:globalThis.document?.visibilityState!=="hidden"}}},26708:(t,e,s)=>{s.d(e,{I:()=>n});var r=s(38764),i=s(29753);function n(t,e){return(0,r.t)(t,i.$,e)}},29753:(t,e,s)=>{s.d(e,{$:()=>h});var r=s(83599),i=s(5858),n=s(20297),a=s(98216),o=s(20562),u=s(31967),c=s(65531),h=class extends a.Q{#i;#n=void 0;#a=void 0;#o=void 0;#u;#c;#h;#l;#d;#p;#f;#y;#v;#m=new Set;constructor(t,e){super(),this.options=e,this.#i=t,this.#h=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#n.addObserver(this),l(this.#n,this.options)?this.#b():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#n,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#n,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#R(),this.#S(),this.#n.removeObserver(this)}setOptions(t){let e=this.options,s=this.#n;if(this.options=this.#i.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,i.nU)(this.options.enabled,this.#n))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#n.setOptions(this.options),e._defaulted&&!(0,i.f8)(this.options,e)&&this.#i.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#n,observer:this});let r=this.hasListeners();r&&p(this.#n,s,this.options,e)&&this.#b(),this.updateResult(),r&&(this.#n!==s||(0,i.nU)(this.options.enabled,this.#n)!==(0,i.nU)(e.enabled,this.#n)||(0,i.d2)(this.options.staleTime,this.#n)!==(0,i.d2)(e.staleTime,this.#n))&&this.#w();let n=this.#Q();r&&(this.#n!==s||(0,i.nU)(this.options.enabled,this.#n)!==(0,i.nU)(e.enabled,this.#n)||n!==this.#v)&&this.#C(n)}getOptimisticResult(t){var e,s;let r=this.#i.getQueryCache().build(this.#i,t),n=this.createResult(r,t);return e=this,s=n,(0,i.f8)(e.getCurrentResult(),s)||(this.#o=n,this.#c=this.options,this.#u=this.#n.state),n}getCurrentResult(){return this.#o}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),e?.(s),Reflect.get(t,s))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#n}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e,s=this.#i.defaultQueryOptions(t),r=this.#i.getQueryCache().build(this.#i,s),i=()=>{},n=new Promise(t=>{e=t,i=this.#i.getQueryCache().subscribe(e=>{"updated"===e.type&&e.query.queryHash===r.queryHash&&void 0!==r.state.data&&(i(),t(this.createResult(r,s)))})});return Promise.race([r.fetch().then(()=>{let t=this.createResult(r,s);return e?.(t),t}).finally(()=>{i()}),n])}fetch(t){return this.#b({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#b(t){this.#O();let e=this.#n.fetch(this.options,t);return t?.throwOnError||(e=e.catch(i.lQ)),e}#w(){this.#R();let t=(0,i.d2)(this.options.staleTime,this.#n);if(n.H.isServer()||this.#o.isStale||!(0,i.gn)(t))return;let e=(0,i.j3)(this.#o.dataUpdatedAt,t)+1;this.#f=r.zs.setTimeout(()=>{this.#o.isStale||this.updateResult()},e)}#Q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#n):this.options.refetchInterval)??!1}#C(t){this.#S(),this.#v=t,!n.H.isServer()&&!1!==(0,i.nU)(this.options.enabled,this.#n)&&(0,i.gn)(this.#v)&&0!==this.#v&&(this.#y=r.zs.setInterval(()=>
1{(this.options.refetchIntervalInBackground||o.m.isFocused())&&this.#b()},this.#v))}#g(){this.#w(),this.#C(this.#Q())}#R(){void 0!==this.#f&&(r.zs.clearTimeout(this.#f),this.#f=void 0)}#S(){void 0!==this.#y&&(r.zs.clearInterval(this.#y),this.#y=void 0)}createResult(t,e){let s,r=this.#n,n=this.options,a=this.#o,o=this.#u,u=this.#c,h=t!==r?t.state:this.#a,{state:d}=t,y={...d},v=!1;if(e._optimisticResults){let s=this.hasListeners(),i=!s&&l(t,e),a=s&&p(t,r,e,n);(i||a)&&(y={...y,...(0,c.k)(d.data,t.options)}),"isRestoring"===e._optimisticResults&&(y.fetchStatus="idle")}let{error:m,errorUpdatedAt:b,status:g}=y;s=y.data;let R=!1;if(void 0!==e.placeholderData&&void 0===s&&"pending"===g){let t;a?.isPlaceholderData&&e.placeholderData===u?.placeholderData?(t=a.data,R=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#p?.state.data,this.#p):e.placeholderData,void 0!==t&&(g="success",s=(0,i.pl)(a?.data,t,e),v=!0)}if(e.select&&void 0!==s&&!R)if(a&&s===o?.data&&e.select===this.#l)s=this.#d;else try{this.#l=e.select,s=e.select(s),s=(0,i.pl)(a?.data,s,e),this.#d=s,this.#h=null}catch(t){this.#h=t}else void 0===s&&(this.#h=null);this.#h&&(m=this.#h,s=this.#d,b=Date.now(),g="error",v=!1);let S="fetching"===y.fetchStatus,O="pending"===g,w="error"===g,Q=O&&S,C=void 0!==s;return{status:g,fetchStatus:y.fetchStatus,isPending:O,isSuccess:"success"===g,isError:w,isInitialLoading:Q,isLoading:Q,data:s,dataUpdatedAt:y.dataUpdatedAt,error:m,errorUpdatedAt:b,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:S,isRefetching:S&&!O,isLoadingError:w&&!C,isPaused:"paused"===y.fetchStatus,isPlaceholderData:v,isRefetchError:w&&C,isStale:f(t,e),refetch:this.refetch,isEnabled:!1!==(0,i.nU)(e.enabled,t)}}updateResult(){let t=this.#o,e=this.createResult(this.#n,this.options);if(this.#u=this.#n.state,this.#c=this.options,void 0!==this.#u.data&&(this.#p=this.#n),(0,i.f8)(e,t))return;this.#o=e;let s=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!this.#m.size)return!0;let r=new Set(s??this.#m);return this.options.throwOnError&&r.add("error"),Object.keys(this.#o).some(e=>this.#o[e]!==t[e]&&r.has(e))};this.#T({listeners:s()})}#O(){let t=this.#i.getQueryCache().build(this.#i,this.options);if(t===this.#n)return;let e=this.#n;this.#n=t,this.#a=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#T(t){u.jG.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#i.getQueryCache().notify({query:this.#n,type:"observerResultsUpdated"})})}};function l(t,e){return!1!==(0,i.nU)(e.enabled,t)&&void 0===t.state.data&&("error"!==t.state.status||!1!==(0,i.nU)(e.retryOnMount,t))||void 0!==t.state.data&&d(t,e,e.refetchOnMount)}function d(t,e,s){if(!1!==(0,i.nU)(e.enabled,t)&&"static"!==(0,i.d2)(e.staleTime,t)){let r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&f(t,e)}return!1}function p(t,e,s,r){return(t!==e||!1===(0,i.nU)(r.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&f(t,s)}function f(t,e){return!1!==(0,i.nU)(e.enabled,t)&&t.isStaleByTime((0,i.d2)(e.staleTime,t))}},31967:(t,e,s)=>{let r,i,n,a,o,u;s.d(e,{jG:()=>h});let c=s(83599).Zq,h=(r=[],i=0,n=t=>{t()},a=t=>{t()},o=c,{batch:t=>{let e;i++;try{e=t()}finally{let t;--i||(t=r,r=[],t.length&&o(()=>{a(()=>{t.forEach(t=>{n(t)})})}))}return e},batchCalls:t=>(...e)=>{u(()=>{t(...e)})},schedule:u=t=>{i?r.push(t):o(()=>{n(t)})},setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{a=t},setScheduler:t=>{o=t}})},35625:(t,e,s)=>{s.d(e,{Ht:()=>o,jE:()=>a});var r=s(12115),i=s(95155);let n=r.createContext(void 0),a=t=>{let e=r.useContext(n);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},o=({client:t,children:e})=>(r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(n.Provider,{value:t,children:e}))},38764:(t,e,s)=>{let r;s.d(e,{t:()=>h});var i=s(35625),n=s(12115);let a=n.createContext(!1);a.Provider,s(95155);let o=n.createContext((r=!1,{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}));var u=s(5858),c=s(31967);function h(t,e,s){let r,h=n.useContext(a),l=n.useContext(o),d=(0,i.jE)(s),p=d.defaultQueryOptions(t),f=d.getQueryCache().get(p.queryHash),y=!1!==t.subscribed;if(p._optimisticResults=h?"isRestoring":y?"optimistic":void 0,p.suspense){let t=t=>"static"===t?t:Math.max(t??1e3,1e3),e=p.staleTime;p.staleTime="function"==typeof e?(...s)=>t(e(...s)):t(e),"number"==typeof p.gcTime&&(p.gcTime=Math.max(p.gcTime,1e3))}r=f?.state.error&&"function"==typeof p.throwOnError?(0,u.GU)(p.throwOnError,[f.state.error,f]):p.throwOnError,(p.suspense||r)&&!l.isReset()&&(p.retryOnMount=!1),n.useEffect(()=>{l.clearReset()},[l]);let[v]=n.useState(()=>new e(d,p)),m=v.getOptimisticResult(p),b=!h&&y;if(n.useSyncExternalStore(n.useCallback(t=>{let e=b?v.subscribe(c.jG.batchCalls(t)):u.lQ;return v.updateResult(),e},[v,b]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),n.useEffect(()=>{v.setOptions(p)},[p,v]),p?.suspense&&m.isPending)throw v.fetchOptimistic(p).catch(()=>{l.clearReset()});if((({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&void 0===t.data||(0,u.GU)(s,[t.error,r])))({result:m,errorResetBoundary:l,throwOnError:p.throwOnError,query:f,suspense:p.suspense}))throw m.error;return p.notifyOnChangeProps?m:v.trackResult(m)}},50890:(t,e,s)=>{s.d(e,{PL:()=>i,RQ:()=>u,rB:()=>o});var r=s(5858);function i(t){return{onFetch:(e,s)=>
1{let i=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,u=e.state.data?.pages||[],c=e.state.data?.pageParams||[],h={pages:[],pageParams:[]},l=0,d=async()=>{let s=!1,d=(0,r.ZM)(e.options,e.fetchOptions),p=async(t,i,n)=>{let a;if(s)return Promise.reject(e.signal.reason);if(null==i&&t.pages.length)return Promise.resolve(t);let o=(a={client:e.client,queryKey:e.queryKey,pageParam:i,direction:n?"backward":"forward",meta:e.options.meta},(0,r.ox)(a,()=>e.signal,()=>s=!0),a),u=await d(o),{maxPages:c}=e.options,h=n?r.ZZ:r.y9;return{pages:h(t.pages,u,c),pageParams:h(t.pageParams,i,c)}};if(o&&u.length){let t="backward"===o,e=t?a:n,s={pages:u,pageParams:c};h=await p(s,e(i,s),t)}else{let e=t??u.length;do{let t=0===l?c[0]??i.initialPageParam:n(i,h);if(l>0&&null==t)break;h=await p(h,t),l++}while(l<e)}return h};e.options.persister?e.fetchFn=()=>e.options.persister?.(d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=d}}}function n(t,{pages:e,pageParams:s}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}function a(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}function o(t,e){return!!e&&null!=n(t,e)}function u(t,e){return!!e&&!!t.getPreviousPageParam&&null!=a(t,e)}},65531:(t,e,s)=>{s.d(e,{X:()=>u,k:()=>c});var r=s(5858),i=s(31967),n=s(9846),a=s(99190),o=s(50890),u=class extends a.k{#F;#I;#P;#E;#i;#U;#q;#j;constructor(t){super(),this.#j=!1,this.#q=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#E=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#I=l(this.options),this.state=t.state??this.#I,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#F}get promise(){return this.#U?.promise}setOptions(t){if(this.options={...this.#q,...t},t?._type&&(this.#F=t._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=l(this.options);void 0!==t.data&&(this.setState(h(t.data,t.dataUpdatedAt)),this.#I=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#E.remove(this)}setData(t,e){let s=(0,r.pl)(this.state.data,t,this.options);return this.#k({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t){this.#k({type:"setState",state:t})}cancel(t){let e=this.#U?.promise;return this.#U?.cancel(t),e?e.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#I}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>!1!==(0,r.nU)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.hT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,r.d2)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,r.j3)(this.state.dataUpdatedAt,t))}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#U?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#U?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#E.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){let e=this.observers.indexOf(t);-1!==e&&(this.observers.splice(e,1),this.observers.length||(this.#U&&(this.#j||this.#D()?this.#U.cancel({revert:!0}):this.#U.cancelRetry()),this.scheduleGc()),this.#E.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#D(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#k({type:"invalidate"})}async fetch(t,e){let s;if("idle"!==this.state.fetchStatus&&this.#U?.status()!=="rejected"){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#U)return this.#U.continueRetry(),this.#U.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let i=new AbortController,a=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#j=!0,i.signal)}
1)},u=()=>{let t,s=(0,r.ZM)(this.options,e),i=(a(t={client:this.#i,queryKey:this.queryKey,meta:this.meta}),t);return(this.#j=!1,this.options.persister)?this.options.persister(s,i,this):s(i)},c=(a(s={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:u}),s);("infinite"===this.#F?(0,o.PL)(this.options.pages):this.options.behavior)?.onFetch(c,this),this.#P=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#k({type:"fetch",meta:c.fetchOptions?.meta});let h=this.#U=(0,n.II)({initialPromise:e?.initialPromise,fn:c.fetchFn,onCancel:t=>{t instanceof n.cc&&t.revert&&this.setState({...this.#P,fetchStatus:"idle"}),i.abort()},onFail:(t,e)=>{this.#k({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#k({type:"pause"})},onContinue:()=>{this.#k({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let t=await h.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#E.config.onSuccess?.(t,this),this.#E.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof n.cc){if(t.silent)return this.#U.promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#k({type:"error",error:t}),this.#E.config.onError?.(t,this),this.#E.config.onSettled?.(this.state.data,t,this),t}finally{this.#U===h&&(this.#U=void 0),this.scheduleGc()}}#k(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...c(e.data,this.options),fetchMeta:t.meta??null};case"success":let s={...e,...h(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#P=t.manual?s:void 0,s;case"error":let r=t.error;return{...e,error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),i.jG.batch(()=>{this.observers.slice().forEach(t=>{t.onQueryUpdate()}),this.#E.notify({query:this,type:"updated",action:t})})}};function c(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.v_)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function h(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function l(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,r=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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"}}},83599:(t,e,s)=>{s.d(e,{Zq:()=>n,zs:()=>i});let r={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},i=new class{#x=r;#A=!1;setTimeoutProvider(t){this.#x=t}setTimeout(t,e){return this.#x.setTimeout(t,e)}clearTimeout(t){this.#x.clearTimeout(t)}setInterval(t,e){return this.#x.setInterval(t,e)}clearInterval(t){this.#x.clearInterval(t)}};function n(t){setTimeout(t,0)}},98216:(t,e,s)=>{s.d(e,{Q:()=>r});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},99190:(t,e,s)=>{s.d(e,{k:()=>a});var r=s(83599),i=s(5858),n=s(20297),a=class{#L;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.gn)(this.gcTime)&&(this.#L=r.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(n.H.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#L&&(r.zs.clearTimeout(this.#L),this.#L=void 0)}}}}]);
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.