PageSourceSearch

https://www.trtarabi.com/_next/static/chunks/5472-7e4efaca207ea50f.js

js trtarabi.com collected 2026-10-02 11:00:16 UTC 9,161 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5472],{69114:function(t,e,r){r.d(e,{z:function(){return c}});var s=r(22069),i=r(67602),n=r(93095),u=r(54315),a=r(82709),h=r(69504),c=class extends u.l{constructor(t,e){super(),this.options=e,this.#t=t,this.#e=null,this.#r=(0,a.O)(),this.options.experimental_prefetchInRender||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled")),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),o(this.#s,this.options)?this.#y():this.updateResult(),this.#R())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return l(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l(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.#Q(),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&&d(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.#m();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.#I(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),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.#Q();let e=this.#s.fetch(this.options,t);return t?.throwOnError||(e=e.catch(h.ZT)),e}#m(){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=setTimeout(()=>{this.#n.isStale||this.updateResult()},e+1)}#g(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#I(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=setInterval(()=>{(this.options.refetchIntervalInBackground||s.j.isFocused())&&this.#y()},this.#p))}#R(){this.#m(),this.#I(this.#g())}#v(){this.#l&&(clearTimeout(this.#l),this.#l=void 0)}#b(){this.#d&&(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,l=this.#a,f=t!==s?t.state:this.#i,{state:y}=t,R={...y},v=!1;if(e._optimisticResults){let r=this.hasListeners(),u=!r&&o(t,e),a=r&&d(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:Q,status:m}=R;r=R.data;let g=!1;if(void 0!==e.placeholderData&&void 0===r&&"pending"===m){let t;u?.isPlaceholderData&&e.placeholderData===l?.placeholderData?(t=u.data,g=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#o?.state.data,this.#o):e.placeholderData,void 0!==t&&(m="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,Q=Date.now(),m="error");let I="fetching"===R.fetchStatus,C="pending"===m,O="error"===m,T=C&&I,S=void 0!==r,E={status:m,fetchStatus:R.fetchStatus,isPending:C,isSuccess:"success"===m,isError:O,isInitialLoading:T,isLoading:T,data:r,dataUpdatedAt:R.dataUpdatedAt,error:b,errorUpdatedAt:Q,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdate
1Count:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>f.dataUpdateCount||R.errorUpdateCount>f.errorUpdateCount,isFetching:I,isRefetching:I&&!C,isLoadingError:O&&!S,isPaused:"paused"===R.fetchStatus,isPlaceholderData:v,isRefetchError:O&&S,isStale:p(t,e),refetch:this.refetch,promise:this.#r};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.#C({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))})()}))}#Q(){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()}#C(t){i.Vr.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#t.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function o(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&&l(t,e,e.refetchOnMount)}function l(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&&p(t,e)}return!1}function d(t,e,r,s){return(t!==e||!1===(0,h.Nc)(s.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&p(t,r)}function p(t,e){return!1!==(0,h.Nc)(e.enabled,t)&&t.isStaleByTime((0,h.KC)(e.staleTime,t))}},50230:function(t,e,r){let s;r.d(e,{r:function(){return Q}});var i=r(83641),n=r(67602),u=r(69504),a=r(20226);r(74023);var h=i.createContext((s=!1,{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s})),c=()=>i.useContext(h),o=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&!e.isReset()&&(t.retryOnMount=!1)},l=t=>{i.useEffect(()=>{t.clearReset()},[t])},d=t=>{let{result:e,errorResetBoundary:r,throwOnError:s,query:i,suspense:n}=t;return e.isError&&!r.isReset()&&!e.isFetching&&i&&(n&&void 0===e.data||(0,u.L3)(s,[e.error,i]))},p=i.createContext(!1),f=()=>i.useContext(p);p.Provider;var y=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(null!=t?t:1e3,1e3),r=t.staleTime;t.staleTime="function"==typeof r?function(){for(var t=arguments.length,s=Array(t),i=0;i<t;i++)s[i]=arguments[i];return e(r(...s))}:e(r),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},R=(t,e)=>t.isLoading&&t.isFetching&&!e,v=(t,e)=>(null==t?void 0:t.suspense)&&e.isPending,b=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function Q(t,e,r){var s,h,p,Q,m;let g=f(),I=c(),C=(0,a.NL)(r),O=C.defaultQueryOptions(t);null===(h=C.getDefaultOptions().queries)||void 0===h||null===(s=h._experimental_beforeQuery)||void 0===s||s.call(h,O),O._optimisticResults=g?"isRestoring":"optimistic",y(O),o(O,I),l(I);let T=!C.getQueryCache().get(O.queryHash),[S]=i.useState(()=>new e(C,O)),E=S.getOptimisticResult(O),x=!g&&!1!==t.subscribed;if(i.useSyncExternalStore(i.useCallback(t=>{let e=x?S.subscribe(n.Vr.batchCalls(t)):u.ZT;return S.updateResult(),e},[S,x]),()=>S.getCurrentResult(),()=>S.getCurrentResult()),i.useEffect(()=>{S.setOptions(O)},[O,S]),v(O,E))throw b(O,S,I);if(d({result:E,errorResetBoundary:I,throwOnError:O.throwOnError,query:C.getQueryCache().get(O.queryHash),suspense:O.suspense}))throw E.error;if(null===(Q=C.getDefaultOptions().queries)||void 0===Q||null===(p=Q._experimental_afterQuery)||void 0===p||p.call(Q,O,E),O.experimental_prefetchInRender&&!u.sk&&R(E,g)){let t=T?b(O,S,I):null===(m=C.getQueryCache().get(O.queryHash))||void 0===m?void 0:m.promise;null==t||t.catch(u.ZT).finally(()=>{S.updateResult()})}return O.notifyOnChangeProps?E:S.trackResult(E)}},35472:function(t,e,r){r.d(e,{a:function(){return n}});
1var s=r(69114),i=r(50230);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.