1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1632],{86900:function(t,e,r){r.d(e,{z:function(){return o}});var s=r(87045),i=r(18238),n=r(21733),u=r(24112),a=r(16803),h=r(45345),c=r(84554),o=class extends u.l{constructor(t,e){super(),this.options=e,this.#t=t,this.#e=null,this.#r=(0,a.O)(),this.bindMethods(),this.setOptions(e)}#t;#s=void 0;#i=void 0;#n=void 0;#u;#a;#r;#e;#h;#c;#o;#l;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),l(this.#s,this.options)?this.#y():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#b(),this.#s.removeObserver(this)}setOptions(t){let e=this.options,r=this.#s;if(this.options=this.#t.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,h.Nc)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#m(),this.#s.setOptions(this.options),e._defaulted&&!(0,h.VS)(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&p(this.#s,r,this.options,e)&&this.#y(),this.updateResult(),s&&(this.#s!==r||(0,h.Nc)(this.options.enabled,this.#s)!==(0,h.Nc)(e.enabled,this.#s)||(0,h.KC)(this.options.staleTime,this.#s)!==(0,h.KC)(e.staleTime,this.#s))&&this.#Q();let i=this.#g();s&&(this.#s!==r||(0,h.Nc)(this.options.enabled,this.#s)!==(0,h.Nc)(e.enabled,this.#s)||i!==this.#p)&&this.#O(i)}getOptimisticResult(t){let e=this.#t.getQueryCache().build(this.#t,t),r=this.createResult(e,t);return(0,h.VS)(this.getCurrentResult(),r)||(this.#n=r,this.#a=this.options,this.#u=this.#s.state),r}getCurrentResult(){return this.#n}trackResult(t,e){return new Proxy(t,{get:(t,r)=>(this.trackProp(r),e?.(r),"promise"!==r||(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,r))})}trackProp(t){this.#f.add(t)}getCurrentQuery(){return this.#s}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#t.defaultQueryOptions(t),r=this.#t.getQueryCache().build(this.#t,e);return r.fetch().then(()=>this.createResult(r,e))}fetch(t){return this.#y({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#y(t){this.#m();let e=this.#s.fetch(this.options,t);return t?.throwOnError||(e=e.catch(h.ZT)),e}#Q(){this.#v();let t=(0,h.KC)(this.options.staleTime,this.#s);if(h.sk||this.#n.isStale||!(0,h.PN)(t))return;let e=(0,h.Kp)(this.#n.dataUpdatedAt,t);this.#l=c.mr.setTimeout(()=>{this.#n.isStale||this.updateResult()},e+1)}#g(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#O(t){this.#b(),this.#p=t,!h.sk&&!1!==(0,h.Nc)(this.options.enabled,this.#s)&&(0,h.PN)(this.#p)&&0!==this.#p&&(this.#d=c.mr.setInterval(()=>{(this.options.refetchIntervalInBackground||s.j.isFocused())&&this.#y()},this.#p))}#R(){this.#Q(),this.#O(this.#g())}#v(){this.#l&&(c.mr.clearTimeout(this.#l),this.#l=void 0)}#b(){this.#d&&(c.mr.clearInterval(this.#d),this.#d=void 0)}createResult(t,e){let r;let s=this.#s,i=this.options,u=this.#n,c=this.#u,o=this.#a,d=t!==s?t.state:this.#i,{state:y}=t,R={...y},v=!1;if(e._optimisticResults){let r=this.hasListeners(),u=!r&&l(t,e),a=r&&p(t,s,e,i);(u||a)&&(R={...R,...(0,n.z)(y.data,t.options)}),"isRestoring"===e._optimisticResults&&(R.fetchStatus="idle")}let{error:b,errorUpdatedAt:m,status:Q}=R;r=R.data;let g=!1;if(void 0!==e.placeholderData&&void 0===r&&"pending"===Q){let t;u?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(t=u.data,g=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#o?.state.data,this.#o):e.placeholderData,void 0!==t&&(Q="success",r=(0,h.oE)(u?.data,t,e),v=!0)}if(e.select&&void 0!==r&&!g){if(u&&r===c?.data&&e.select===this.#h)r=this.#c;else try{this.#h=e.select,r=e.select(r),r=(0,h.oE)(u?.data,r,e),this.#c=r,this.#e=null}catch(t){this.#e=t}}this.#e&&(b=this.#e,r=this.#c,m=Date.now(),Q="error");let O="fetching"===R.fetchStatus,I="pending"===Q,C="error"===Q,S=I&&O,T=void 0!==r,E={status:Q,fetchStatus:R.fetchStatus,isPending:I,isSuccess:"success"===Q,isError:C,isInitialLoading:S,isLoading:S,data:r,dataUpdatedAt:R.dataUpdatedAt,error:b,errorUpdatedAt:m,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdate
1Count:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>d.dataUpdateCount||R.errorUpdateCount>d.errorUpdateCount,isFetching:O,isRefetching:O&&!I,isLoadingError:C&&!T,isPaused:"paused"===R.fetchStatus,isPlaceholderData:v,isRefetchError:C&&T,isStale:f(t,e),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,h.Nc)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=t=>{"error"===E.status?t.reject(E.error):void 0!==E.data&&t.resolve(E.data)},r=()=>{e(this.#r=E.promise=(0,a.O)())},i=this.#r;switch(i.status){case"pending":t.queryHash===s.queryHash&&e(i);break;case"fulfilled":("error"===E.status||E.data!==i.value)&&r();break;case"rejected":("error"!==E.status||E.error!==i.reason)&&r()}}return E}updateResult(){let t=this.#n,e=this.createResult(this.#s,this.options);this.#u=this.#s.state,this.#a=this.options,void 0!==this.#u.data&&(this.#o=this.#s),(0,h.VS)(e,t)||(this.#n=e,this.#I({listeners:(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;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.#n).some(e=>this.#n[e]!==t[e]&&s.has(e))})()}))}#m(){let t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#s)return;let e=this.#s;this.#s=t,this.#i=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#R()}#I(t){i.Vr.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#t.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function l(t,e){return!1!==(0,h.Nc)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)||void 0!==t.state.data&&d(t,e,e.refetchOnMount)}function d(t,e,r){if(!1!==(0,h.Nc)(e.enabled,t)&&"static"!==(0,h.KC)(e.staleTime,t)){let s="function"==typeof r?r(t):r;return"always"===s||!1!==s&&f(t,e)}return!1}function p(t,e,r,s){return(t!==e||!1===(0,h.Nc)(s.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&f(t,r)}function f(t,e){return!1!==(0,h.Nc)(e.enabled,t)&&t.isStaleByTime((0,h.KC)(e.staleTime,t))}},14984:function(t,e,r){r.d(e,{S:function(){return n}});var s=r(2265),i=s.createContext(!1),n=()=>s.useContext(i);i.Provider},84147:function(t,e,r){let s;r.d(e,{_:function(){return u}});var i=r(2265);r(57437);var n=i.createContext((s=!1,{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s})),u=()=>i.useContext(n)},50674:function(t,e,r){r.d(e,{JN:function(){return u},KJ:function(){return a},pf:function(){return n}});var s=r(2265),i=r(45345),n=(t,e,r)=>{let s=(null==r?void 0:r.state.error)&&"function"==typeof t.throwOnError?(0,i.L3)(t.throwOnError,[r.state.error,r]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||s)&&!e.isReset()&&(t.retryOnMount=!1)},u=t=>{s.useEffect(()=>{t.clearReset()},[t])},a=t=>{let{result:e,errorResetBoundary:r,throwOnError:s,query:n,suspense:u}=t;return e.isError&&!r.isReset()&&!e.isFetching&&n&&(u&&void 0===e.data||(0,i.L3)(s,[e.error,n]))}},58386:function(t,e,r){r.d(e,{A8:function(){return s},SB:function(){return n},Z$:function(){return i},j8:function(){return u}});var s=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(t??1e3,1e3),r=t.staleTime;t.staleTime="function"==typeof r?(...t)=>e(r(...t)):e(r),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},i=(t,e)=>t.isLoading&&t.isFetching&&!e,n=(t,e)=>t?.suspense&&e.isPending,u=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()})},99285:function(t,e,r){r.d(e,{r:function(){return l}});var s=r(2265),i=r(18238),n=r(45345),u=r(29827),a=r(84147),h=r(50674),c=r(14984),o=r(58386);function l(t,e,r){var l,d,p,f;let y=(0,c.S)(),R=(0,a._)(),v=(0,u.NL)(r),b=v.defaultQueryOptions(t);null===(d=v.getDefaultOptions().queries)||void 0===d||null===(l=d._experimental_beforeQuery)||void 0===l||l.call(d,b);let m=v.getQueryCache().get(b.queryHash);b._optimisticResults=y?"isRestoring":"optimistic",(0,o.A8)(b),(0,h.pf)(b,R,m),(0,h.JN)(R);let Q=!v.getQueryCache().get(b.queryHash),[g]=s.useState(()=>new e(v,b)),O=g.getOptimisticResult(b),I=!y&&!1!==t.subscribed;if(s.useSyncExternalStore(s.useCallback(t=>{let e=I?g.subscribe(i.Vr.batchCalls(t)):n.ZT;return g.updateResult(),e},[g,I]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),s.useEffect(()=>{g.setOptions(b)},[b,g]),(0,o.SB)(b,O))throw(0,o.j8)(b,g,R);if((0,h.KJ)({result:O,errorResetBoundary:R,throwOnError:b.throwOnError,query:m,suspense:b.suspense}))throw O.error;if(null===(f=v.getDefaultOptions().queries)||void 0===f||null===(p=f._experimental_afterQuery)||void 0===p||p.call(f,b,O),b.experimental_prefetchInRender&&!n.sk&&(0,o.Z$)(O,y)){let t=Q?(0,o.j8)(b,g,R):null==m?void 0:m.promise;null==t||t.catch(n.ZT).finally(()=>{g.updateResult()})}return b.notifyOnChangeProps?O:g.trackResult(O)}},71632:function(t,e,r){r.d(e,{a:function(){return n}});var s=r(86900),i=r(99285);function n(t,e){return(0,i.r)(t,s.z,e)}}}]);
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.