1import{u as m,a as d,e as R,b,c as Q,s as C,f as p,g as O,w as E,Q as w}from"./queryOptions-Cb5y-593.js";import{r as a}from"./client-BLZHgAOY.js";import{u as S,n as q,c as y,d as x}from"./QueryClientProvider-bRoAus1h.js";function _(n,o,f){const i=m(),u=d(),s=S(f),e=s.defaultQueryOptions(n);s.getDefaultOptions().queries?._experimental_beforeQuery?.(e),e._optimisticResults=i?"isRestoring":"optimistic",R(e),b(e,u),Q(u);const h=!s.getQueryCache().get(e.queryHash),[r]=a.useState(()=>new o(s,e)),t=r.getOptimisticResult(e),c=!i&&n.subscribed!==!1;if(a.useSyncExternalStore(a.useCallback(l=>{const g=c?r.subscribe(q.batchCalls(l)):y;return r.updateResult(),g},[r,c]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a.useEffect(()=>{r.setOptions(e)},[e,r]),C(e,t))throw p(e,r,u);if(O({result:t,errorResetBoundary:u,throwOnError:e.throwOnError,query:s.getQueryCache().get(e.queryHash),suspense:e.suspense}))throw t.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(e,t),e.experimental_prefetchInRender&&!x&&E(t,i)&&(h?p(e,r,u):s.getQueryCache().get(e.queryHash)?.promise)?.catch(y).finally(()=>{r.updateResult()}),e.notifyOnChangeProps?t:r.trackResult(t)}function k(n,o){return _(n,w,o)}export{_ as a,k 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.