PageSourceSearch

https://myka.ng/assets/vendor-state-BsBVN-fX.js

js myka.ng collected 2026-10-09 22:41:15 UTC 73,412 bytes, 1 lines download raw bytes

vendor: 26,637 bytes, line 1
1import{r as O,j as Ar,g as kr,c as jr}from"./vendor-react-DfYGAhtm.js";var H=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Nr=class extends H{#e;#t;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},it=new Nr,Ur={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Qr=class{#e=Ur;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},q=new Qr;function zr(e){setTimeout(e,0)}var Lr=typeof window>"u"||"Deno"in globalThis;function x(){}function qr(e,t){return typeof e=="function"?e(t):e}function Le(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Q(e,t){return typeof e=="function"?e(t):e}function F(e,t){return typeof e=="function"?e(t):e}function gt(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(n){if(t.queryHash!==ot(o,t.options))return!1}else if(!X(t.queryKey,o))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function bt(e,t){const{exact:r,status:n,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(K(t.options.mutationKey)!==K(i))return!1}else if(!X(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function ot(e,t){return(t?.queryKeyHashFn||K)(e)}function K(e){return JSON.stringify(e,(t,r)=>qe(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function X(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>X(e[r],t[r])):!1}var Kr=Object.prototype.hasOwnProperty;function Zt(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=St(e)&&St(t);if(!n&&!(qe(e)&&qe(t)))return t;const i=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),a=o.length,u=n?new Array(a):{};let l=0;for(let c=0;c<a;c++){const f=n?c:o[c],h=e[f],d=t[f];if(h===d){u[f]=h,(n?c<i:Kr.call(e,f))&&l++;continue}if(h===null||d===null||typeof h!="object"||typeof d!="object"){u[f]=d;continue}const p=Zt(h,d,r+1);u[f]=p,p===h&&l++}return i===a&&l===i?e:u}function ge(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function St(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function qe(e){if(!wt(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!wt(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function wt(e){return Object.prototype.toString.call(e)==="[object Object]"}function Wr(e){return new Promise(t=>{q.setTimeout(t,e)})}function Ke(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Zt(e,t):t}function $r(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function Br(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var at=Symbol();function er(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===at?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ut(e,t){return typeof e=="function"?e(...t):!!e}function Hr(e,t,r){let n=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),n||(n=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}var Y=(()=>{let e=()=>Lr;return{isServer(){return e()},setIsServer(t){e=t}}})();function We(){let e,t;const r=new Promise((s,i)=>{e=s,t=i});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}var Gr=zr;function Vr(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=Gr;const i=a=>{t?e.push(a):s(()=>{r(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(u=>{r(u)})})})};return{batch:a=>{let u;t++;try{u=a()}finally{t--,t||o()}return u},batchCalls:a=>(...u)=>{i(()=>{a(...u)})},schedule:i,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var C=Vr(),Xr=class extends H{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},be=new Xr;function Yr(e){return Math.min(1e3*2**e,3e4)}function tr(e){return(e??"online")==="online"?be.isOnline():!0}var $e=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function rr(e){let t=!1,r=0,n;const s=We(),i=()=>s.status!=="pending",o=y=>{if(!i()){const m=new $e(y);h(m),e.onCancel?.(m)}},a=()=>{t=!0},u=()=>{t=!1},l=()=>it.isFocused()&&(e.networkMode==="always"||be.isOnline())&&e.canRun(),c=()=>tr(e.networkMode)&&e.canRun(),f=y=>{i()||(n?.(),s.resolve(y))},h=y=>{i()||(n?.(),s.reject(y))},d=()=>new Promise(y=>{n=m=>{(i()||l())&&y(m)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),p=()=>{if(i())return;let y;const m=r===0?e.initialPromise:void 0;try{y=m??e.fn()}catch(S){y=Promise.reject(S)}Promise.resolve(y).then(f).catch(S=>{if(i())return;const P=e.retry??(Y.isServer()?0:3),g=e.retryDelay??Yr,v=typeof g=="function"?g(r,S):g,b=P===!0||typeof P=="number"&&r<P||typeof P=="function"&&P(r,S);if(t||!b){h(S);return}r++,e.onFail?.(r,S),Wr(v).then(()=>l()?void 0:d()).then(()=>{t?h(S):p()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(n?.(),s),cancelRetry:a,continueRetry:u,canStart:c,start:()=>(c()?p():d().then(p),s)}}var nr=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Le(this.gcTime)&&(this.#e=q.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Y.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&(q.clearTimeout(this.#e),this.#e=void 0)}},Jr=class extends nr{#e;#t;#r;#s;#n;#i;#o;constructor(e){super(),this.#o=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#r=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=_t(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=_t(this.options);t.data!==void 0&&(this.setState(Pt(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=Ke(this.state.data,e,this.options);return this.#u({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#u({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(x).catch(x):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>F(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===at||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Q(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Jt(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#o||this.#a()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#a(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(u=>u.options.queryFn);a&&this.setOptions(a.options)}const r=new AbortController,n=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},s=()=>{const a=er(this.options,t),l=(()=>{const c={client:this.#s,queryKey:this.queryKey,meta:this.meta};return n(c),c})();return this.#o=!1,this.options.persister?this.options.persister(a,l,this):a(l)},o=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:s};return n(a),a})();this.options.behavior?.onFetch(o,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#u({type:"fetch",meta:o.fetchOptions?.meta}),this.#n=rr({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:a=>{a instanceof $e&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(a,u)=>{this.#u({type:"failed",failureCount:a,error:u})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const a=await this.#n.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#r.config.onSuccess?.(a,this),this.#r.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof $e){if(a.silent)return this.#n.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#u({type:"error",error:a}),this.#r.config.onError?.(a,this),this.#r.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#u(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...sr(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...Pt(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case"error":const s=e.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),C.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function sr(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tr(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Pt(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function _t(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ir=class extends H{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#o=We(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#r=void 0;#s=void 0;#n;#i;#o;#a;#u;#d;#p;#l;#f;#c;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ot(this.#t,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Be(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Be(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof F(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#P(),this.#t.setOptions(this.options),t._defaulted&&!ge(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&Rt(this.#t,r,this.options,t)&&this.#h(),this.updateResult(),n&&(this.#t!==r||F(this.options.enabled,this.#t)!==F(t.enabled,this.#t)||Q(this.options.staleTime,this.#t)!==Q(t.staleTime,this.#t))&&this.#v();const s=this.#m();n&&(this.#t!==r||F(this.options.enabled,this.#t)!==F(t.enabled,this.#t)||s!==this.#c)&&this.#g(s)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return en(this,r)&&(this.#s=r,this.#i=this.options,this.#n=this.#t.state),r}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(e){this.#y.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#h(e){this.#P();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(x)),t}#v(){this.#S();const e=Q(this.options.staleTime,this.#t);if(Y.isServer()||this.#s.isStale||!Le(e))return;const r=Jt(this.#s.dataUpdatedAt,e)+1;this.#l=q.setTimeout(()=>{this.#s.isStale||this.updateResult()},r)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(e){this.#w(),this.#c=e,!(Y.isServer()||F(this.options.enabled,this.#t)===!1||!Le(this.#c)||this.#c===0)&&(this.#f=q.setInterval(()=>{(this.options.refetchIntervalInBackground||it.isFocused())&&this.#h()},this.#c))}#b(){this.#v(),this.#g(this.#m())}#S(){this.#l&&(q.clearTimeout(this.#l),this.#l=void 0)}#w(){this.#f&&(q.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const r=this.#t,n=this.options,s=this.#s,i=this.#n,o=this.#i,u=e!==r?e.state:this.#r,{state:l}=e;let c={...l},f=!1,h;if(t._optimisticResults){const _=this.hasListeners(),M=!_&&Ot(e,t),L=_&&Rt(e,r,t,n);(M||L)&&(c={...c,...sr(l.data,e.options)}),t._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:d,errorUpdatedAt:p,status:y}=c;h=c.data;let m=!1;if(t.placeholderData!==void 0&&h===void 0&&y==="pending"){let _;s?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(_=s.data,m=!0):_=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,_!==void 0&&(y="success",h=Ke(s?.data,_,t),f=!0)}if(t.select&&h!==void 0&&!m)if(s&&h===i?.data&&t.select===this.#u)h=this.#d;else try{this.#u=t.select,h=t.select(h),h=Ke(s?.data,h,t),this.#d=h,this.#a=null}catch(_){this.#a=_}this.#a&&(d=this.#a,h=this.#d,p=Date.now(),y="error");const S=c.fetchStatus==="fetching",P=y==="pending",g=y==="error",v=P&&S,b=h!==void 0,R={status:y,fetchStatus:c.fetchStatus,isPending:P,isSuccess:y==="success",isError:g,isInitialLoading:v,isLoading:v,data:h,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!P,isLoadingError:g&&!b,isPaused:c.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:g&&b,isStale:ct(e,t),refetch:this.refetch,promise:this.#o,isEnabled:F(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const _=R.data!==void 0,M=R.status==="error"&&!_,L=se=>{M?se.reject(R.error):_&&se.resolve(R.data)},re=()=>{const se=this.#o=R.promise=We();L(se)},ne=this.#o;switch(ne.status){case"pending":e.queryHash===r.queryHash&&L(ne);break;case"fulfilled":(M||R.data!==ne.value)&&re();break;case"rejected":(!M||R.error!==ne.reason)&&re();break}}return R}updateResult(){const e=this.#s,t=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#i=this.options,this.#n.data!==void 0&&(this.#p=this.#t),ge(t,e))return;this.#s=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,s=typeof n=="function"?n():n;if(s==="all"||!s&&!this.#y.size)return!0;const i=new Set(s??this.#y);return this.options.throwOnError&&i.add("error"),Object.keys(this.#s).some(o=>{const a=o;return this.#s[a]!==e[a]&&i.has(a)})};this.#_({listeners:r()})}#P(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(e){C.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#s)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Zr(e,t){return F(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ot(e,t){return Zr(e,t)||e.state.data!==void 0&&Be(e,t,t.refetchOnMount)}function Be(e,t,r){if(F(t.enabled,e)!==!1&&Q(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&ct(e,t)}return!1}function Rt(e,t,r,n){return(e!==t||F(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&ct(e,r)}function ct(e,t){return F(t.enabled,e)!==!1&&e.isStaleByTime(Q(t.staleTime,e))}function en(e,t){return!ge(e.getCurrentResult(),t)}function Se(e){return{onFetch:(t,r)=>{const n=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},u=0;const l=async()=>{let c=!1;const f=p=>{Hr(p,()=>t.signal,()=>c=!0)},h=er(t.options,t.fetchOptions),d=async(p,y,m)=>{if(c)return Promise.reject();if(y==null&&p.pages.length)return Promise.resolve(p);const P=(()=>{const w={client:t.client,queryKey:t.queryKey,pageParam:y,direction:m?"backward":"forward",meta:t.options.meta};return f(w),w})(),g=await h(P),{maxPages:v}=t.options,b=m?Br:$r;return{pages:b(p.pages,g,v),pageParams:b(p.pageParams,y,v)}};if(s&&i.length){const p=s==="backward",y=p?or:He,m={pages:i,pageParams:o},S=y(n,m);a=await d(m,S,p)}else{const p=e??i.length;do{const y=u===0?o[0]??n.initialPageParam:He(n,a);if(u>0&&y==null)break;a=await d(a,y),u++}while(u<p)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=l}}}function He(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function or(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function tn(e,t){return t?He(e,t)!=null:!1}function rn(e,t){return!t||!e.getPreviousPageParam?!1:or(e,t)!=null}var nn=class extends ir{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Se()})}getOptimisticResult(e){return e.behavior=Se(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,n=super.createResult(e,t),{isFetching:s,isRefetching:i,isError:o,isRefetchError:a}=n,u=r.fetchMeta?.fetchMore?.direction,l=o&&u==="forward",c=s&&u==="forward",f=o&&u==="backward",h=s&&u==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:tn(t,r.data),hasPreviousPage:rn(t,r.data),isFetchNextPageError:l,isFetchingNextPage:c,isFetchPreviousPageError:f,isFetchingPreviousPage:h,isRefetchError:a&&!l&&!f,isRefetching:i&&!c&&!h}}},sn=class extends nr{#e;#t;#r;#s;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||ar(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=rr({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#n({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n=this.state.status==="pending",s=!this.#s.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:s}),this.#r.config.onMutate&&await this.#r.config.onMutate(e,this,r);const o=await this.options.onMutate?.(e,r);o!==this.state.context&&this.#n({type:"pending",context:o,variables:e,isPaused:s})}const i=await this.#s.start();return await this.#r.config.onSuccess?.(i,e,this.state.context,this,r),await this.options.onSuccess?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,e,this.state.context,r),this.#n({type:"success",data:i}),i}catch(i){try{await this.#r.config.onError?.(i,e,this.state.context,this,r)}catch(o){Promise.reject(o)}try{await this.options.onError?.(i,e,this.state.context,r)}catch(o){Promise.reject(o)}try{await this.#r.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r)}catch(o){Promise.reject(o)}try{await this.options.onSettled?.(void 0,i,e,this.state.context,r)}catch(o){Promise.reject(o)}throw this.#n({type:"error",error:i}),i}finally{this.#r.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),C.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function ar(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var on=class extends H{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,r){const n=new sn({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#e.add(e);const t=ie(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=ie(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ie(e);if(typeof t=="string"){const n=this.#t.get(t)?.find(s=>
vendor: 4,703 bytes, line 1
1s.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=ie(e);return typeof t=="string"?this.#t.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){C.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>bt(t,r))}findAll(e={}){return this.getAll().filter(t=>bt(e,t))}notify(e){C.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return C.batch(()=>Promise.all(e.map(t=>t.continue().catch(x))))}};function ie(e){return e.options.scope?.id}var an=class extends H{#e;#t=void 0;#r;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),ge(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&K(t.mutationKey)!==K(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#i()}mutate(e,t){return this.#s=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){const e=this.#r?.state??ar();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#i(e){C.batch(()=>{if(this.#s&&this.hasListeners()){const t=this.#t.variables,r=this.#t.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,n)}catch(s){Promise.reject(s)}try{this.#s.onSettled?.(e.data,null,t,r,n)}catch(s){Promise.reject(s)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,n)}catch(s){Promise.reject(s)}try{this.#s.onSettled?.(void 0,e.error,t,r,n)}catch(s){Promise.reject(s)}}}this.listeners.forEach(t=>{t(this.#t)})})}},un=class extends H{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const n=t.queryKey,s=t.queryHash??ot(n,t);let i=this.get(s);return i||(i=new Jr({client:e,queryKey:n,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){C.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>gt(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>gt(e,r)):t}notify(e){C.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){C.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){C.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},hi=class{#e;#t;#r;#s;#n;#i;#o;#a;constructor(e={}){this.#e=e.queryCache||new un,this.#t=e.mutationCache||new on,this.#r=e.defaultOptions||{},this.#s=new Map,this.#n=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=it.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=be.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Q(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(n.queryHash)?.state.data,o=qr(t,i);if(o!==void 0)return this.#e.build(this,n).setData(o,{...r,manual:!0})}
vendor: 6,443 bytes, line 1
1setQueriesData(e,t,r){return C.batch(()=>this.#e.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;C.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return C.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=C.batch(()=>this.#e.findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(x).catch(x)}invalidateQueries(e,t={}){return C.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=C.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,r);return r.throwOnError||(i=i.catch(x)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(x)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(Q(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(x).catch(x)}fetchInfiniteQuery(e){return e.behavior=Se(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(x).catch(x)}ensureInfiniteQueryData(e){return e.behavior=Se(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return be.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#s.set(K(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#s.values()],r={};return t.forEach(n=>{X(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set(K(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{X(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ot(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===at&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ur=O.createContext(void 0),cr=e=>{const t=O.useContext(ur);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},di=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Ar.jsx(ur.Provider,{value:e,children:t})),lr=O.createContext(!1),cn=()=>O.useContext(lr);lr.Provider;function ln(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var fn=O.createContext(ln()),hn=()=>O.useContext(fn),dn=(e,t,r)=>{const n=r?.state.error&&typeof e.throwOnError=="function"?ut(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},pn=e=>{O.useEffect(()=>{e.clearReset()},[e])},yn=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||ut(r,[e.error,n])),vn=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...s)=>r(n(...s)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},mn=(e,t)=>e.isLoading&&e.isFetching&&!t,gn=(e,t)=>e?.suspense&&t.isPending,Ct=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function fr(e,t,r){const n=cn(),s=hn(),i=cr(),o=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(o);const a=i.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",vn(o),dn(o,s,a),pn(s);const u=!i.getQueryCache().get(o.queryHash),[l]=O.useState(()=>new t(i,o)),c=l.getOptimisticResult(o),f=!n&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(h=>{const d=f?l.subscribe(C.batchCalls(h)):x;return l.updateResult(),d},[l,f]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(o)},[o,l]),gn(o,c))throw Ct(o,l,s);if(yn({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:a,suspense:o.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(o,c),o.experimental_prefetchInRender&&!Y.isServer()&&mn(c,n)&&(u?Ct(o,l,s):a?.promise)?.catch(x).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?c:l.trackResult(c)}function pi(e,t){return fr(e,ir)}function yi(e,t){const r=cr(),[n]=O.useState(()=>new an(r,e));O.useEffect(()=>{n.setOptions(e)},[n,e]);const s=O.useSyncExternalStore(O.useCallback(o=>n.subscribe(C.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=O.useCallback((o,a)=>{n.mutate(o,a).catch(x)},[n]);if(s.error&&ut(n.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}function vi(e,t){return fr(e,nn)}function E(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bn=typeof Symbol=="function"&&Symbol.observable||"@@observable",Et=bn,je=()=>Math.random().toString(36).substring(7).split("").join("."),Sn={INIT:`@@redux/INIT${je()}`,REPLACE:`@@redux/REPLACE${je()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${je()}`},we=Sn;function lt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ft(e,t,r){if(typeof e!="function")throw new Error(E(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(E(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(E(1));return r(ft)(e,t)}let n=e,s=t,i=new Map,o=i,a=0,u=!1;
vendor: 4,825 bytes, line 1
1function l(){o===i&&(o=new Map,i.forEach((m,S)=>{o.set(S,m)}))}function c(){if(u)throw new Error(E(3));return s}function f(m){if(typeof m!="function")throw new Error(E(4));if(u)throw new Error(E(5));let S=!0;l();const P=a++;return o.set(P,m),function(){if(S){if(u)throw new Error(E(6));S=!1,l(),o.delete(P),i=null}}}function h(m){if(!lt(m))throw new Error(E(7));if(typeof m.type>"u")throw new Error(E(8));if(typeof m.type!="string")throw new Error(E(17));if(u)throw new Error(E(9));try{u=!0,s=n(s,m)}finally{u=!1}return(i=o).forEach(P=>{P()}),m}function d(m){if(typeof m!="function")throw new Error(E(10));n=m,h({type:we.REPLACE})}function p(){const m=f;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(E(11));function P(){const v=S;v.next&&v.next(c())}return P(),{unsubscribe:m(P)}},[Et](){return this}}}return h({type:we.INIT}),{dispatch:h,subscribe:f,getState:c,replaceReducer:d,[Et]:p}}function wn(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:we.INIT})>"u")throw new Error(E(12));if(typeof r(void 0,{type:we.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(E(13))})}function Pn(e){const t=Object.keys(e),r={};for(let i=0;i<t.length;i++){const o=t[i];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let s;try{wn(r)}catch(i){s=i}return function(o={},a){if(s)throw s;let u=!1;const l={};for(let c=0;c<n.length;c++){const f=n[c],h=r[f],d=o[f],p=h(d,a);if(typeof p>"u")throw a&&a.type,new Error(E(14));l[f]=p,u=u||p!==d}return u=u||n.length!==Object.keys(o).length,u?l:o}}function Pe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function _n(...e){return t=>(r,n)=>{const s=t(r,n);let i=()=>{throw new Error(E(15))};const o={getState:s.getState,dispatch:(u,...l)=>i(u,...l)},a=e.map(u=>u(o));return i=Pe(...a)(s.dispatch),{...s,dispatch:i}}}function On(e){return lt(e)&&"type"in e&&typeof e.type=="string"}var hr=Symbol.for("immer-nothing"),Mt=Symbol.for("immer-draftable"),I=Symbol.for("immer-state");function D(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var T=Object,B=T.getPrototypeOf,_e="constructor",xe="prototype",Ge="configurable",Oe="enumerable",he="writable",J="value",U=e=>!!e&&!!e[I];function A(e){return e?dr(e)||Te(e)||!!e[Mt]||!!e[_e]?.[Mt]||Fe(e)||De(e):!1}var Rn=T[xe][_e].toString(),xt=new WeakMap;function dr(e){if(!e||!ht(e))return!1;const t=B(e);if(t===null||t===T[xe])return!0;const r=T.hasOwnProperty.call(t,_e)&&t[_e];if(r===Object)return!0;if(!$(r))return!1;let n=xt.get(r);return n===void 0&&(n=Function.toString.call(r),xt.set(r,n)),n===Rn}function Ie(e,t,r=!0){te(e)===0?(r?Reflect.ownKeys(e):T.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((n,s)=>t(s,n,e))}function te(e){const t=e[I];return t?t.type_:Te(e)?1:Fe(e)?2:De(e)?3:0}var It=(e,t,r=te(e))=>r===2?e.has(t):T[xe].hasOwnProperty.call(e,t),Ve=(e,t,r=te(e))=>r===2?e.get(t):e[t],Re=(e,t,r,n=te(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function Cn(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Te=Array.isArray,Fe=e=>e instanceof Map,De=e=>e instanceof Set,ht=e=>typeof e=="object",$=e=>typeof e=="function",Ne=e=>typeof e=="boolean";function En(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var j=e=>e.copy_||e.base_,dt=e=>e.modified_?e.copy_:e.base_;function Xe(e,t){if(Fe(e))return new Map(e);if(De(e))return new Set(e);if(Te(e))return Array[xe].slice.call(e);const r=dr(e);if(t===!0||t==="class_only"&&!r){const n=T.getOwnPropertyDescriptors(e);delete n[I];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){const o=s[i],a=n[o];a[he]===!1&&(a[he]=!0,a[Ge]=!0),(a.get||a.set)&&(n[o]={[Ge]:!0,[he]:!0,[Oe]:a[Oe],[J]:e[o]})}return T.create(B(e),n)}else{const n=B(e);if(n!==null&&r)return{...e};const s=T.create(n);return T.assign(s,e)}}function pt(e,t=!1){return Ae(e)||U(e)||!A(e)||(te(e)>1&&T.defineProperties(e,{set:oe,add:oe,clear:oe,delete:oe}),T.freeze(e),t&&Ie(e,(r,n)=>{pt(n,!0)},!1)),e}function Mn(){D(2)}var oe={[J]:Mn};function Ae(e){return e===null||!ht(e)?!0:T.isFrozen(e)}var Ce="MapSet",Ye="Patches",Tt="ArrayMethods",pr={};function W(e){const t=pr[e];return t||D(0,e),t}var Ft=e=>!!pr[e],Z,yr=()=>Z,xn=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ft(Ce)?W(Ce):void 0,arrayMethodsPlugin_:Ft(Tt)?W(Tt):void 0});function Dt(e,t){t&&(e.patchPlugin_=W(Ye),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Je(e){Ze(e),e.drafts_.forEach(In),e.drafts_=null}function Ze(e){e===Z&&(Z=e.parent_)}var At=e=>Z=xn(Z,e);function In(e){const t=e[I];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function kt(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[I].modified_&&(Je(t),D(4)),A(e)&&(e=jt(t,e));const{patchPlugin_:s}
vendor: 4,439 bytes, line 1
1=t;s&&s.generateReplacementPatches_(r[I].base_,e,t)}else e=jt(t,r);return Tn(t,e,!0),Je(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==hr?e:void 0}function jt(e,t){if(Ae(t))return t;const r=t[I];if(!r)return Ee(t,e.handledSet_,e);if(!ke(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);gr(r,e)}return r.copy_}function Tn(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pt(t,r)}function vr(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ke=(e,t)=>e.scope_===t,Fn=[];function mr(e,t,r,n){const s=j(e),i=e.type_;if(n!==void 0&&Ve(s,n,i)===t){Re(s,n,r,i);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;Ie(s,(u,l)=>{if(U(l)){const c=a.get(l)||[];c.push(u),a.set(l,c)}})}const o=e.draftLocations_.get(t)??Fn;for(const a of o)Re(s,a,r,i)}function Dn(e,t,r){e.callbacks_.push(function(s){const i=t;if(!i||!ke(i,s))return;s.mapSetPlugin_?.fixSetContents(i);const o=dt(i);mr(e,i.draft_??i,o,r),gr(i,s)})}function gr(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const s=n.getPath(e);s&&n.generatePatches_(e,s,t)}vr(e)}}function An(e,t,r){const{scope_:n}=e;if(U(r)){const s=r[I];ke(s,n)&&s.callbacks_.push(function(){de(e);const o=dt(s);mr(e,r,o,t)})}else A(r)&&e.callbacks_.push(function(){const i=j(e);e.type_===3?i.has(r)&&Ee(r,n.handledSet_,n):Ve(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ee(Ve(e.copy_,t,e.type_),n.handledSet_,n)})}function Ee(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||U(e)||t.has(e)||!A(e)||Ae(e)||(t.add(e),Ie(e,(n,s)=>{if(U(s)){const i=s[I];if(ke(i,r)){const o=dt(i);Re(e,n,o,e.type_),vr(i)}}else A(s)&&Ee(s,t,r)})),e}function kn(e,t){const r=Te(e),n={type_:r?1:0,scope_:t?t.scope_:yr(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let s=n,i=Me;r&&(s=[n],i=ee);const{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,[a,n]}var Me={get(e,t){if(t===I)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const s=j(e);if(!It(s,t,e.type_))return jn(e,s,t);const i=s[t];if(e.finalized_||!A(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&En(t))return i;if(i===Ue(e.base_,t)){de(e);const o=e.type_===1?+t:t,a=tt(e.scope_,i,e,o);return e.copy_[o]=a}return i},has(e,t){return t in j(e)},ownKeys(e){return Reflect.ownKeys(j(e))},set(e,t,r){const n=br(j(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const s=Ue(j(e),t),i=s?.[I];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(Cn(r,s)&&(r!==void 0||It(e.base_,t,e.type_)))return!0;de(e),et(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),An(e,t,r)),!0},deleteProperty(e,t){return de(e),Ue(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),et(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=j(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[he]:!0,[Ge]:e.type_!==1||t!=="length",[Oe]:n[Oe],[J]:r[t]}},defineProperty(){D(11)},getPrototypeOf(e){return B(e.base_)},setPrototypeOf(){D(12)}},ee={};for(let e in Me){let t=Me[e];ee[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ee.deleteProperty=function(e,t){return ee.set.call(this,e,t,void 0)};ee.set=function(e,t,r){return Me.set.call(this,e[0],t,r,e[0])};function Ue(e,t){const r=e[I];return(r?j(r):e)[t]}function jn(e,t,r){const n=br(t,r);return n?J in n?n[J]:n.get?.call(e.draft_):void 0}function br(e,t){if(!(t in e))return;let r=B(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=B(r)}}function et(e){e.modified_||(e.modified_=!0,e.parent_&&et(e.parent_))}function de(e){e.copy_||(e.assigned_=new Map,e.copy_=Xe(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Nn=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if($(t)&&!$(r)){const i=r;r=t;const o=this;return function(u=i,...l){return o.produce(u,c=>r.call(this,c,...l))}}$(r)||D(6),n!==void 0&&!$(n)&&D(7);let s;if(A(t)){const i=At(this),o=tt(i,t,void 0);let a=!0;
1try{s=r(o),a=!1}finally{a?Je(i):Ze(i)}return Dt(i,n),kt(s,i)}else if(!t||!ht(t)){if(s=r(t),s===void 0&&(s=t),s===hr&&(s=void 0),this.autoFreeze_&&pt(s,!0),n){const i=[],o=[];W(Ye).generateReplacementPatches_(t,s,{patches_:i,inversePatches_:o}),n(i,o)}return s}else D(1,t)},this.produceWithPatches=(t,r)=>{if($(t))return(o,...a)=>this.produceWithPatches(o,u=>t(u,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},Ne(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ne(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ne(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){A(e)||D(8),U(e)&&(e=Un(e));const t=At(this),r=tt(t,e,void 0);return r[I].isManual_=!0,Ze(t),r}finishDraft(e,t){const r=e&&e[I];(!r||!r.isManual_)&&D(9);const{scope_:n}=r;return Dt(n,t),kt(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));const n=W(Ye).applyPatches_;return U(e)?n(e,t):this.produce(e,s=>n(s,t))}};function tt(e,t,r,n){const[s,i]=Fe(t)?W(Ce).proxyMap_(t,r):De(t)?W(Ce).proxySet_(t,r):kn(t,r);return(r?.scope_??yr()).drafts_.push(s),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Dn(r,i,n):i.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:l}=u;i.modified_&&l&&l.generatePatches_(i,[],u)}),s}function Un(e){return U(e)||D(10,e),Sr(e)}function Sr(e){if(!A(e)||Ae(e))return e;const t=e[I];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Xe(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Xe(e,!0);return Ie(r,(s,i)=>{Re(r,s,Sr(i))},n),t&&(t.finalized_=!1),r}var Qn=new Nn,wr=Qn.produce;function zn(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Ln(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function qn(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Nt=e=>Array.isArray(e)?e:[e];function Kn(e){const t=Array.isArray(e[0])?e[0]:e;return qn(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Wn(e,t){const r=[],{length:n}=e;for(let s=0;s<n;s++)r.push(e[s].apply(null,t));return r}var $n=class{constructor(e){this.value=e}deref(){return this.value}},Bn=typeof WeakRef<"u"?WeakRef:$n,Hn=0,Ut=1;function ae(){return{s:Hn,v:void 0,o:null,p:null}}function Pr(e,t={}){let r=ae();const{resultEqualityCheck:n}=t;let s,i=0;function o(){let a=r;const{length:u}=arguments;for(let f=0,h=u;f<h;f++){const d=arguments[f];if(typeof d=="function"||typeof d=="object"&&d!==null){let p=a.o;p===null&&(a.o=p=new WeakMap);const y=p.get(d);y===void 0?(a=ae(),p.set(d,a)):a=y}else{let p=a.p;p===null&&(a.p=p=new Map);const y=p.get(d);y===void 0?(a=ae(),p.set(d,a)):a=y}}const l=a;let c;if(a.s===Ut)c=a.v;else if(c=e.apply(null,arguments),i++,n){const f=s?.deref?.()??s;f!=null&&n(f,c)&&(c=f,i!==0&&i--),s=typeof c=="object"&&c!==null||typeof c=="function"?new Bn(c):c}return l.s=Ut,l.v=c,c}return o.clearCache=()=>{r=ae(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function Gn(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...s)=>{let i=0,o=0,a,u={},l=s.pop();typeof l=="object"&&(u=l,l=s.pop()),zn(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const c={...r,...u},{memoize:f,memoizeOptions:h=[],argsMemoize:d=Pr,argsMemoizeOptions:p=[]}=c,y=Nt(h),m=Nt(p),S=Kn(s),P=f(function(){return i++,l.apply(null,arguments)},...y),g=d(function(){o++;const b=Wn(S,arguments);
1return a=P.apply(null,b),a},...m);return Object.assign(g,{resultFunc:l,memoizedResultFunc:P,dependencies:S,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:d})};return Object.assign(n,{withTypes:()=>n}),n}var Vn=Gn(Pr),Xn=Object.assign((e,t=Vn)=>{Ln(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((o,a,u)=>(o[r[u]]=a,o),{}))},{withTypes:()=>Xn});function _r(e){return({dispatch:r,getState:n})=>s=>i=>typeof i=="function"?i(r,n,e):s(i)}var Yn=_r(),Jn=_r,Zn=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pe:Pe.apply(null,arguments)};function Qt(e,t){function r(...n){if(t){let s=t(...n);if(!s)throw new Error(N(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>On(n)&&n.type===e,r}var Or=class V extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,V.prototype)}static get[Symbol.species](){return V}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new V(...t[0].concat(this)):new V(...t.concat(this))}};function zt(e){return A(e)?wr(e,()=>{}):e}function ue(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function es(e){return typeof e=="boolean"}var ts=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=t??{};let o=new Or;return r&&(es(r)?o.push(Yn):o.push(Jn(r.extraArgument))),o},rs="RTK_autoBatch",Lt=e=>t=>{setTimeout(t,e)},ns=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let s=!0,i=!1,o=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Lt(10):e.type==="callback"?e.queueNotification:Lt(e.timeout),l=()=>{o=!1,i&&(i=!1,a.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>s&&c(),h=n.subscribe(f);return a.add(c),()=>{h(),a.delete(c)}},dispatch(c){try{return s=!c?.meta?.[rs],i=!s,i&&(o||(o=!0,u(l))),n.dispatch(c)}finally{s=!0}}})},ss=e=>function(r){const{autoBatch:n=!0}=r??{};let s=new Or(e);return n&&s.push(ns(typeof n=="object"?n:void 0)),s};function mi(e){const t=ts(),{reducer:r=void 0,middleware:n,devTools:s=!0,preloadedState:i=void 0,enhancers:o=void 0}=e||{};let a;if(typeof r=="function")a=r;else if(lt(r))a=Pn(r);else throw new Error(N(1));let u;typeof n=="function"?u=n(t):u=t();let l=Pe;s&&(l=Zn({trace:!1,...typeof s=="object"&&s}));const c=_n(...u),f=ss(c);let h=typeof o=="function"?o(f):f();const d=l(...h);return ft(a,i,d)}function Rr(e){const t={},r=[];let n;const s={addCase(i,o){const a=typeof i=="string"?i:i.type;if(!a)throw new Error(N(28));if(a in t)throw new Error(N(29));return t[a]=o,s},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),s},addMatcher(i,o){return r.push({matcher:i,reducer:o}),s},addDefaultCase(i){return n=i,s}};return e(s),[t,r,n]}function is(e){return typeof e=="function"}function os(e,t){let[r,n,s]=Rr(t),i;if(is(e))i=()=>zt(e());else{const a=zt(e);i=()=>a}function o(a=i(),u){let l=[r[u.type],...n.filter(({matcher:c})=>c(u)).map(({reducer:c})=>c)];return l.filter(c=>!!c).length===0&&(l=[s]),l.reduce((c,f)=>{if(f)if(U(c)){const d=f(c,u);return d===void 0?c:d}else{if(A(c))return wr(c,h=>f(h,u));{const h=f(c,u);if(h===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return c},a)}return o.getInitialState=i,o}var as=Symbol.for("rtk-slice-createasyncthunk");function us(e,t){return`${e}/${t}`}function cs({creators:e}={}){const t=e?.asyncThunk?.[as];return function(n){const{name:s,reducerPath:i=s}=n;if(!s)throw new Error(N(11));const o=(typeof n.reducers=="function"?n.reducers(fs()):n.reducers)||{},a=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(g,v){const b=typeof g=="string"?g:g.type;if(!b)throw new Error(N(12));if(b in u.sliceCaseReducersByType)throw new Error(N(13));return u.sliceCaseReducersByType[b]=v,l},addMatcher(g,v){return u.sliceMatchers.push({matcher:g,reducer:v}),l},exposeAction(g,v){return u.actionCreators[g]=v,l},exposeCaseReducer(g,v){return u.sliceCaseReducersByName[g]=v,l}};a.forEach(g=>{const v=o[g],b={reducerName:g,type:us(s,g),createNotation:typeof n.reducers=="function"};ds(v)?ys(b,v,l,t):hs(b,v,l)});function c(){const[g={},v=[],b=void 0]=typeof n.extraReducers=="function"?Rr(n.extraReducers):[n.extraReducers],w={...g,...u.sliceCaseReducersByType};return os(n.initialState,R=>{for(let _ in w)R.addCase(_,w[_]);for(let _ of u.sliceMatchers)R.addMatcher(_.matcher,_.reducer);for(let _ of v)R.addMatcher(_.matcher,_.reducer);b&&R.addDefaultCase(b)})}const f=g=>g,h=new Map,d=new WeakMap;let p;function y(g,v){return p||(p=c()),p(g,v)}function m(){return p||(p=c()),p.getInitialState()}function S(g,v=!1){function b(R){let _=R[g];return typeof _>"u"&&v&&(_=ue(d,b,m)),_}function w(R=f){const _=ue(h,v,()=>new WeakMap);return ue(_,R,()=>{const M={};for(const[L,re]of Object.entries(n.selectors??{}))M[L]=ls(re,R,()=>ue(d,R,m),v);return M})}return{reducerPath:g,getSelectors:w,get selectors(){return w(b)},selectSlice:b}}const P={name:s,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:m,...S(i),injectInto(g,{reducerPath:v,...b}={}){const w=v??i;return g.inject({reducerPath:w,reducer:y},b),{...P,...S(w,!0)}}};return P}}function ls(e,t,r,n){function s(i,...o){let a=t(i);return typeof a>"u"&&n&&(a=r()),e(a,...o)}return s.unwrapped=e,s}var gi=cs();function fs(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}
1[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function hs({type:e,reducerName:t,createNotation:r},n,s){let i,o;if("reducer"in n){if(r&&!ps(n))throw new Error(N(17));i=n.reducer,o=n.prepare}else i=n;s.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?Qt(e,o):Qt(e))}function ds(e){return e._reducerDefinitionType==="asyncThunk"}function ps(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ys({type:e,reducerName:t},r,n,s){if(!s)throw new Error(N(18));const{payloadCreator:i,fulfilled:o,pending:a,rejected:u,settled:l,options:c}=r,f=s(e,i,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),a&&n.addCase(f.pending,a),u&&n.addCase(f.rejected,u),l&&n.addMatcher(f.settled,l),n.exposeCaseReducer(t,{fulfilled:o||ce,pending:a||ce,rejected:u||ce,settled:l||ce})}function ce(){}function N(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var yt="persist:",Cr="persist/FLUSH",vt="persist/REHYDRATE",Er="persist/PAUSE",Mr="persist/PERSIST",xr="persist/PURGE",Ir="persist/REGISTER",vs=-1;function pe(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pe=function(r){return typeof r}:pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},pe(e)}function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function ms(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qt(r,!0).forEach(function(n){gs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bs(e,t,r,n){n.debug;var s=ms({},r);return e&&pe(e)==="object"&&Object.keys(e).forEach(function(i){i!=="_persist"&&t[i]===r[i]&&(s[i]=e[i])}),s}function Ss(e){var t=e.blacklist||null,r=e.whitelist||null,n=e.transforms||[],s=e.throttle||0,i="".concat(e.keyPrefix!==void 0?e.keyPrefix:yt).concat(e.key),o=e.storage,a;e.serialize===!1?a=function(b){return b}:typeof e.serialize=="function"?a=e.serialize:a=ws;var u=e.writeFailHandler||null,l={},c={},f=[],h=null,d=null,p=function(b){Object.keys(b).forEach(function(w){S(w)&&l[w]!==b[w]&&f.indexOf(w)===-1&&f.push(w)}),Object.keys(l).forEach(function(w){b[w]===void 0&&S(w)&&f.indexOf(w)===-1&&l[w]!==void 0&&f.push(w)}),h===null&&(h=setInterval(y,s)),l=b};function y(){if(f.length===0){h&&clearInterval(h),h=null;return}var v=f.shift(),b=n.reduce(function(w,R){return R.in(w,v,l)},l[v]);if(b!==void 0)try{c[v]=a(b)}catch(w){console.error("redux-persist/createPersistoid: error serializing state",w)}else delete c[v];f.length===0&&m()}function m(){Object.keys(c).forEach(function(v){l[v]===void 0&&delete c[v]}),d=o.setItem(i,a(c)).catch(P)}function S(v){return!(r&&r.indexOf(v)===-1&&v!=="_persist"||t&&t.indexOf(v)!==-1)}function P(v){u&&u(v)}var g=function(){for(;f.length!==0;)y();return d||Promise.resolve()};return{update:p,flush:g}}function ws(e){return JSON.stringify(e)}function Ps(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:yt).concat(e.key),n=e.storage;e.debug;var s;return e.deserialize===!1?s=function(o){return o}:typeof e.deserialize=="function"?s=e.deserialize:s=_s,n.getItem(r).then(function(i){if(i)try{var o={},a=s(i);return Object.keys(a).forEach(function(u){o[u]=t.reduceRight(function(l,c){return c.out(l,u,a)},s(a[u]))}),o}catch(u){throw u}else return})}function _s(e){return JSON.parse(e)}function Os(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:yt).concat(e.key);return t.removeItem(r,Rs)}function Rs(e){}function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 4,327 bytes, line 1
1t%2?Kt(r,!0).forEach(function(n){Cs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kt(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Es(e,t){if(e==null)return{};var r=Ms(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ms(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i<n.length;i++)s=n[i],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}var xs=5e3;function bi(e,t){var r=e.version!==void 0?e.version:vs;e.debug;var n=e.stateReconciler===void 0?bs:e.stateReconciler,s=e.getStoredState||Ps,i=e.timeout!==void 0?e.timeout:xs,o=null,a=!1,u=!0,l=function(f){return f._persist.rehydrated&&o&&!u&&o.update(f),f};return function(c,f){var h=c||{},d=h._persist,p=Es(h,["_persist"]),y=p;if(f.type===Mr){var m=!1,S=function(_,M){m||(f.rehydrate(e.key,_,M),m=!0)};if(i&&setTimeout(function(){!m&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),u=!1,o||(o=Ss(e)),d)return k({},t(y,f),{_persist:d});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),s(e).then(function(R){var _=e.migrate||function(M,L){return Promise.resolve(M)};_(R,r).then(function(M){S(M)},function(M){S(void 0,M)})},function(R){S(void 0,R)}),k({},t(y,f),{_persist:{version:r,rehydrated:!1}})}else{if(f.type===xr)return a=!0,f.result(Os(e)),k({},t(y,f),{_persist:d});if(f.type===Cr)return f.result(o&&o.flush()),k({},t(y,f),{_persist:d});if(f.type===Er)u=!0;else if(f.type===vt){if(a)return k({},y,{_persist:k({},d,{rehydrated:!0})});if(f.key===e.key){var P=t(y,f),g=f.payload,v=n!==!1&&g!==void 0?n(g,c,P,e):P,b=k({},v,{_persist:k({},d,{rehydrated:!0})});return l(b)}}}if(!d)return t(c,f);var w=t(y,f);return w===y?c:l(k({},w,{_persist:d}))}}function Wt(e){return Fs(e)||Ts(e)||Is()}function Is(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Ts(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Fs(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function $t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$t(r,!0).forEach(function(n){Ds(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ds(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Tr={registry:[],bootstrapped:!1},As=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tr,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Ir:return rt({},t,{registry:[].concat(Wt(t.registry),[r.key])});case vt:var n=t.registry.indexOf(r.key),s=Wt(t.registry);return s.splice(n,1),rt({},t,{registry:s,bootstrapped:s.length===0});default:return t}};function Si(e,t,r){var n=ft(As,Tr,void 0),s=function(u){n.dispatch({type:Ir,key:u})},i=function(u,l,c){var f={type:vt,payload:l,err:c,key:u};e.dispatch(f),n.dispatch(f)},o=rt({},n,{purge:function(){var u=[];return e.dispatch({type:xr,result:function(c){u.push(c)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Cr,result:function(c){u.push(c)}}),Promise.all(u)},pause:function(){e.dispatch({type:Er})},persist:function(){e.dispatch({type:Mr,register:s,rehydrate:i})}});return o.persist(),o}var G={},le={},fe={},Bt;function ks(){if(Bt)return fe;
1Bt=1,fe.__esModule=!0,fe.default=s;function e(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(a){return typeof a}:e=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(i)}function t(){}var r={getItem:t,setItem:t,removeItem:t};function n(i){if((typeof self>"u"?"undefined":e(self))!=="object"||!(i in self))return!1;try{var o=self[i],a="redux-persist ".concat(i," test");o.setItem(a,"test"),o.getItem(a),o.removeItem(a)}catch{return!1}return!0}function s(i){var o="".concat(i,"Storage");return n(o)?self[o]:r}return fe}var Ht;function js(){if(Ht)return le;Ht=1,le.__esModule=!0,le.default=r;var e=t(ks());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){var s=(0,e.default)(n);return{getItem:function(o){return new Promise(function(a,u){a(s.getItem(o))})},setItem:function(o,a){return new Promise(function(u,l){u(s.setItem(o,a))})},removeItem:function(o){return new Promise(function(a,u){a(s.removeItem(o))})}}}return le}var Gt;function Ns(){if(Gt)return G;Gt=1,G.__esModule=!0,G.default=void 0;var e=t(js());function t(n){return n&&n.__esModule?n:{default:n}}var r=(0,e.default)("local");return G.default=r,G}var Us=Ns();const wi=kr(Us);var Qe={exports:{}},ze={};var Vt;function Qs(){if(Vt)return ze;Vt=1;var e=jr();function t(u,l){return u===l&&(u!==0||1/u===1/l)||u!==u&&l!==l}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,s=e.useRef,i=e.useEffect,o=e.useMemo,a=e.useDebugValue;return ze.useSyncExternalStoreWithSelector=function(u,l,c,f,h){var d=s(null);if(d.current===null){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=o(function(){function m(b){if(!S){if(S=!0,P=b,b=f(b),h!==void 0&&p.hasValue){var w=p.value;if(h(w,b))return g=w}return g=b}if(w=g,r(P,b))return w;var R=f(b);return h!==void 0&&h(w,R)?(P=b,w):(P=b,g=R)}var S=!1,P,g,v=c===void 0?null:c;return[function(){return m(l())},v===null?void 0:function(){return m(v())}]},[l,c,f,h]);var y=n(u,d[0],d[1]);return i(function(){p.hasValue=!0,p.value=y},[y]),a(y),y},ze}var Xt;function zs(){return Xt||(Xt=1,Qe.exports=Qs()),Qe.exports}var Ls=zs();function qs(e){e()}function Ks(){let e=null,t=null;return{clear(){e=null,t=null},notify(){qs(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const s=t={callback:r,next:null,prev:t};return s.prev?s.prev.next=s:e=s,function(){!n||e===null||(n=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:e=s.next)}}}}var Yt={notify(){},get:()=>[]};function Ws(e,t){let r,n=Yt,s=0,i=!1;function o(y){c();const m=n.subscribe(y);let S=!1;return()=>{S||(S=!0,m(),f())}}function a(){n.notify()}function u(){p.onStateChange&&p.onStateChange()}function l(){return i}function c(){s++,r||(r=e.subscribe(u),n=Ks())}function f(){s--,r&&s===0&&(r(),r=void 0,n.clear(),n=Yt)}function h(){i||(i=!0,c())}function d(){i&&(i=!1,f())}const p={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:l,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return p}var $s=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Bs=$s(),Hs=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Gs=Hs(),Vs=()=>Bs||Gs?O.useLayoutEffect:O.useEffect,Xs=Vs(),Ys=Symbol.for("react-redux-context"),Js=typeof globalThis<"u"?globalThis:{};function Zs(){if(!O.createContext)return{};const e=Js[Ys]??=new Map;let t=e.get(O.createContext);return t||(t=O.createContext(null),e.set(O.createContext,t)),t}var z=Zs();function ei(e){const{children:t,context:r,serverState:n,store:s}=e,i=O.useMemo(()=>{const u=Ws(s);return{store:s,subscription:u,getServerState:n?()=>n:void 0}},[s,n]),o=O.useMemo(()=>s.getState(),[s]);Xs(()=>{const{subscription:u}=i;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==s.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[i,o]);const a=r||z;return O.createElement(a.Provider,{value:i},t)}var Pi=ei;function mt(e=z){return function(){return O.useContext(e)}}var Fr=mt();function Dr(e=z){const t=e===z?Fr:mt(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var ti=Dr();function ri(e=z){const t=e===z?ti:Dr(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var _i=ri(),ni=(e,t)=>e===t;function si(e=z){const t=e===z?Fr:mt(e),r=(n,s={})=>{const{equalityFn:i=ni}=typeof s=="function"?{equalityFn:s}:s,o=t(),{store:a,subscription:u,getServerState:l}=o;O.useRef(!0);const c=O.useCallback({[n.name](h){return n(h)}}[n.name],[n]),f=Ls.useSyncExternalStoreWithSelector(u.addNestedSub,a.getState,l||a.getState,c,i);return O.useDebugValue(f),f};return Object.assign(r,{withTypes:()=>r}),r}var Oi=si();function ye(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ye=function(r){return typeof r}:ye=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ye(e)}function ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ai(e,t,r){return t&&oi(e.prototype,t),e}function ui(e,t){return t&&(ye(t)==="object"||typeof t=="function")?t:ve(e)}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},nt(e)}function ve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ci(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}
vendor: 1,424 bytes, line 1
1),t&&st(e,t)}function st(e,t){return st=Object.setPrototypeOf||function(n,s){return n.__proto__=s,n},st(e,t)}function me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var li=(function(e){ci(t,e);function t(){var r,n;ii(this,t);for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return n=ui(this,(r=nt(t)).call.apply(r,[this].concat(i))),me(ve(n),"state",{bootstrapped:!1}),me(ve(n),"_unsubscribe",void 0),me(ve(n),"handlePersistorState",function(){var a=n.props.persistor,u=a.getState(),l=u.bootstrapped;l&&(n.props.onBeforeLift?Promise.resolve(n.props.onBeforeLift()).finally(function(){return n.setState({bootstrapped:!0})}):n.setState({bootstrapped:!0}),n._unsubscribe&&n._unsubscribe())}),n}return ai(t,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t})(O.PureComponent);me(li,"defaultProps",{children:null,loading:null});export{Pi as P,hi as Q,Pn as a,mi as b,gi as c,Si as d,Oi as e,pi as f,cr as g,yi as h,di as i,li as j,vi as k,bi as p,wi as s,_i 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.