1var bt=e=>{throw TypeError(e)};var $=(e,t,s)=>t.has(e)||bt("Cannot "+s);var i=(e,t,s)=>($(e,t,"read from private field"),s?s.call(e):t.get(e)),p=(e,t,s)=>t.has(e)?bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),u=(e,t,s,r)=>($(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s),f=(e,t,s)=>($(e,t,"access private method"),s);import{S as Tt,t as mt,w as R,y as q,x as z,p as tt,h as et,m as vt,B as Mt,D as X,i as xt,v as gt,q as Ct,z as Ot,E as Qt}from"./axiosConfig-DFKm4Hre.js";import{f as _t}from"./query-BeBT5m4y.js";import{w as C}from"./chunk-4N6VE7H7-DCXb7SYf.js";var v,n,W,m,Q,F,E,w,V,U,P,_,D,T,L,a,H,st,it,rt,nt,at,ot,ht,It,Et,Dt=(Et=class extends Tt{constructor(t,s){super();p(this,a);p(this,v);p(this,n);p(this,W);p(this,m);p(this,Q);p(this,F);p(this,E);p(this,w);p(this,V);p(this,U);p(this,P);p(this,_);p(this,D);p(this,T);p(this,L,new Set);this.options=s,u(this,v,t),u(this,w,null),u(this,E,mt()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(i(this,n).addObserver(this),Rt(i(this,n),this.options)?f(this,a,H).call(this):this.updateResult(),f(this,a,nt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ct(i(this,n),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ct(i(this,n),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,f(this,a,at).call(this),f(this,a,ot).call(this),i(this,n).removeObserver(this)}setOptions(t){const s=this.options,r=i(this,n);if(this.options=i(this,v).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof R(this.options.enabled,i(this,n))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");f(this,a,ht).call(this),i(this,n).setOptions(this.options),s._defaulted&&!q(this.options,s)&&i(this,v).getQueryCache().notify({type:"observerOptionsUpdated",query:i(this,n),observer:this});const o=this.hasListeners();o&&St(i(this,n),r,this.options,s)&&f(this,a,H).call(this),this.updateResult(),o&&(i(this,n)!==r||R(this.options.enabled,i(this,n))!==R(s.enabled,i(this,n))||z(this.options.staleTime,i(this,n))!==z(s.staleTime,i(this,n)))&&f(this,a,st).call(this);const h=f(this,a,it).call(this);o&&(i(this,n)!==r||R(this.options.enabled,i(this,n))!==R(s.enabled,i(this,n))||h!==i(this,T))&&f(this,a,rt).call(this,h)}getOptimisticResult(t){const s=i(this,v).getQueryCache().build(i(this,v),t),r=this.createResult(s,t);return Ut(this,r)&&(u(this,m,r),u(this,F,this.options),u(this,Q,i(this,n).state)),r}getCurrentResult(){return i(this,m)}trackResult(t,s){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),s==null||s(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&i(this,E).status==="pending"&&i(this,E).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(t){i(this,L).add(t)}getCurrentQuery(){return i(this,n)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=i(this,v).defaultQueryOptions(t),r=i(this,v).getQueryCache().build(i(this,v),s);return r.fetch().then(()=>this.createResult(r,s))}fetch(t){return f(this,a,H).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),i(this,m)))}createResult(t,s){var dt;const r=i(this,n),o=this.options,h=i(this,m),c=i(this,Q),S=i(this,F),N=t!==r?t.state:i(this,W),{state:b}=t;let l={...b},B=!1,d;if(s._optimisticResults){const g=this.hasListeners(),j=!g&&Rt(t,s),K=g&&St(t,r,s,o);(j||K)&&(l={...l,..._t(b.data,t.options)}),s._optimisticResults==="isRestoring"&&(l.fetchStatus="idle")}let{error:k,errorUpdatedAt:x,status:y}=l;d=l.data;let O=!1;if(s.placeholderData!==void 0&&d===void 0&&y==="pending"){let g;h!=null&&h.isPlaceholderData&&s.placeholderData===(S==null?void 0:S.placeholderData)?(g=h.data,O=!0):g=typeof s.placeholderData=="function"?s.placeholderData((dt=i(this,P))==null?void 0:dt.state.data,i(this,P)):s.placeholderData,g!==void 0&&(y="success",d=gt(h==null?void 0:h.data,g,s),B=!0)}if(s.select&&d!==void 0&&!O)if(h&&d===(c==null?void 0:c.data)&&s.select===i(this,V))d=i(this,U);else try{u(this,V,s.select),d=s.select(d),d=gt(h==null?void 0:h.data,d,s),u(this,U,d),u(this,w,null)}catch(g){u(this,w,g)}i(this,w)&&(k=i(this,w),d=i(this,U),x=Date.now(),y="error");const A=l.fetchStatus==="fetching",Y=y==="pending",Z=y==="error",lt=Y&&A,ft=d!==void 0,I={status:y,fetchStatus:l.fetchStatus,isPending:Y,isSuccess:y==="success",isError:Z,isInitialLoading:lt,isLoading:lt,data:d,dataUpdatedAt:l.dataUpdatedAt,error:k,errorUpdatedAt:x,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdate
1Count:l.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:l.dataUpdateCount>N.dataUpdateCount||l.errorUpdateCount>N.errorUpdateCount,isFetching:A,isRefetching:A&&!Y,isLoadingError:Z&&!ft,isPaused:l.fetchStatus==="paused",isPlaceholderData:B,isRefetchError:Z&&ft,isStale:ut(t,s),refetch:this.refetch,promise:i(this,E),isEnabled:R(s.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const g=I.data!==void 0,j=I.status==="error"&&!g,K=J=>{j?J.reject(I.error):g&&J.resolve(I.data)},pt=()=>{const J=u(this,E,I.promise=mt());K(J)},G=i(this,E);switch(G.status){case"pending":t.queryHash===r.queryHash&&K(G);break;case"fulfilled":(j||I.data!==G.value)&&pt();break;case"rejected":(!j||I.error!==G.reason)&&pt();break}}return I}updateResult(){const t=i(this,m),s=this.createResult(i(this,n),this.options);if(u(this,Q,i(this,n).state),u(this,F,this.options),i(this,Q).data!==void 0&&u(this,P,i(this,n)),q(s,t))return;u(this,m,s);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,h=typeof o=="function"?o():o;if(h==="all"||!h&&!i(this,L).size)return!0;const c=new Set(h??i(this,L));return this.options.throwOnError&&c.add("error"),Object.keys(i(this,m)).some(S=>{const M=S;return i(this,m)[M]!==t[M]&&c.has(M)})};f(this,a,It).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&f(this,a,nt).call(this)}},v=new WeakMap,n=new WeakMap,W=new WeakMap,m=new WeakMap,Q=new WeakMap,F=new WeakMap,E=new WeakMap,w=new WeakMap,V=new WeakMap,U=new WeakMap,P=new WeakMap,_=new WeakMap,D=new WeakMap,T=new WeakMap,L=new WeakMap,a=new WeakSet,H=function(t){f(this,a,ht).call(this);let s=i(this,n).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(tt)),s},st=function(){f(this,a,at).call(this);const t=z(this.options.staleTime,i(this,n));if(et.isServer()||i(this,m).isStale||!vt(t))return;const r=Mt(i(this,m).dataUpdatedAt,t)+1;u(this,_,X.setTimeout(()=>{i(this,m).isStale||this.updateResult()},r))},it=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(i(this,n)):this.options.refetchInterval)??!1},rt=function(t){f(this,a,ot).call(this),u(this,T,t),!(et.isServer()||R(this.options.enabled,i(this,n))===!1||!vt(i(this,T))||i(this,T)===0)&&u(this,D,X.setInterval(()=>{(this.options.refetchIntervalInBackground||xt.isFocused())&&f(this,a,H).call(this)},i(this,T)))},nt=function(){f(this,a,st).call(this),f(this,a,rt).call(this,f(this,a,it).call(this))},at=function(){i(this,_)!==void 0&&(X.clearTimeout(i(this,_)),u(this,_,void 0))},ot=function(){i(this,D)!==void 0&&(X.clearInterval(i(this,D)),u(this,D,void 0))},ht=function(){const t=i(this,v).getQueryCache().build(i(this,v),this.options);if(t===i(this,n))return;const s=i(this,n);u(this,n,t),u(this,W,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},It=function(t){Ct.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(i(this,m))}),i(this,v).getQueryCache().notify({query:i(this,n),type:"observerResultsUpdated"})})},Et);function Ft(e,t){return R(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&R(t.retryOnMount,e)===!1)}function Rt(e,t){return Ft(e,t)||e.state.data!==void 0&&ct(e,t,t.refetchOnMount)}function ct(e,t,s){if(R(t.enabled,e)!==!1&&z(t.staleTime,e)!=="static"){const r=typeof s=="function"?s(e):s;return r==="always"||r!==!1&&ut(e,t)}return!1}function St(e,t,s,r){return(e!==t||R(r.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&ut(e,s)}function ut(e,t){return R(t.enabled,e)!==!1&&e.isStaleByTime(z(t.staleTime,e))}function Ut(e,t){return!q(e.getCurrentResult(),t)}var wt=C.createContext(!1),Pt=()=>C.useContext(wt);wt.Provider;function Lt(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Nt=C.createContext(Lt()),Bt=()=>C.useContext(Nt),kt=(e,t,s)=>{const r=s!=null&&s.state.error&&typeof e.throwOnError=="function"?Ot(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},At=e=>{C.useEffect(()=>{e.clearReset()},[e])},jt=({result:e,errorResetBoundary:t,throwOnError:s,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Ot(s,[e.error,r])),Ht=e=>{if(e.suspense){const s=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>s(r(...o)):s(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},zt=(e,t)=>e.isLoading&&e.isFetching&&!t,Wt=(e,t)=>
1(e==null?void 0:e.suspense)&&t.isPending,yt=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function Vt(e,t,s){var d,k,x,y;const r=Pt(),o=Bt(),h=Qt(),c=h.defaultQueryOptions(e);(k=(d=h.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||k.call(d,c);const S=h.getQueryCache().get(c.queryHash),M=e.subscribed!==!1;c._optimisticResults=r?"isRestoring":M?"optimistic":void 0,Ht(c),kt(c,o,S),At(o);const N=!h.getQueryCache().get(c.queryHash),[b]=C.useState(()=>new t(h,c)),l=b.getOptimisticResult(c),B=!r&&M;if(C.useSyncExternalStore(C.useCallback(O=>{const A=B?b.subscribe(Ct.batchCalls(O)):tt;return b.updateResult(),A},[b,B]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),C.useEffect(()=>{b.setOptions(c)},[c,b]),Wt(c,l))throw yt(c,b,o);if(jt({result:l,errorResetBoundary:o,throwOnError:c.throwOnError,query:S,suspense:c.suspense}))throw l.error;if((y=(x=h.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||y.call(x,c,l),c.experimental_prefetchInRender&&!et.isServer()&&zt(l,r)){const O=N?yt(c,b,o):S==null?void 0:S.promise;O==null||O.catch(tt).finally(()=>{b.updateResult()})}return c.notifyOnChangeProps?l:b.trackResult(l)}function Zt(e,t){return Vt(e,Dt)}function $t(e){return e}export{$t as q,Zt as u};
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.