1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1239],{59475:(t,e,n)=>{"use strict";var r=Object.create,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,c=(t,e,n,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let o of s(e))a.call(t,o)||o===n||i(t,o,{get:()=>e[o],enumerable:!(r=u(e,o))||r.enumerable});return t},l={};((t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})})(l,{HTTPError:()=>h,QueryClientProvider:()=>v,useFetcher:()=>y}),t.exports=c(i({},"__esModule",{value:!0}),l),((t,e,n)=>(n=null!=t?r(o(t)):{},c(!e&&t&&t.__esModule?n:i(n,"default",{value:t,enumerable:!0}),t)))(n(12115));var h=class extends Error{constructor(t,e){super(),this.code=t,this.message=e,this.name="HTTPError"}},f=(0,n(12115).createContext)(void 0),d=n(95155),v=({fetcher:t,children:e})=>(0,d.jsx)(f.Provider,{value:t,children:e}),p=n(12115),y=()=>(0,p.useContext)(f)},41933:(t,e,n)=>{"use strict";var r=n(62673).Symbol;t.exports=r},43600:(t,e,n)=>{"use strict";var r=n(41933),i=n(8273),u=n(96798),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):u(t)}},34952:(t,e,n)=>{"use strict";var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8273:(t,e,n)=>{"use strict";var r=n(41933),i=Object.prototype,u=i.hasOwnProperty,s=i.toString,o=r?r.toStringTag:void 0;t.exports=function(t){var e=u.call(t,o),n=t[o];try{t[o]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[o]=n:delete t[o]),i}},96798:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},62673:(t,e,n)=>{"use strict";var r=n(34952),i="object"==typeof self&&self&&self.Object===Object&&self,u=r||i||Function("return this")();t.exports=u},95255:t=>{"use strict";t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},34480:t=>{"use strict";t.exports=function(t){return null!=t&&"object"==typeof t}},83480:(t,e,n)=>{"use strict";var r=n(43600),i=n(34480);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},4285:(t,e,n)=>{"use strict";n.d(e,{m:()=>s});var r=n(97757),i=n(51015),u=n(82135),s=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!u.S$&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},e}(0,r.A)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(function(t){"boolean"==typeof t?n.setFocused(t):n.onFocus()})},n.setFocused=function(t){this.focused=t,t&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(t){t()})},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},e}(i.Q))},53242:(t,e,n)=>{"use strict";n.d(e,{QueryClient:()=>r.E});var r=n(14753),i=n(94691);n.o(i,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useMutation")&&n.d(e,{useMutation:function(){return i.useMutation}}),n.o(i,"useQuery")&&n.d(e,{useQuery:function(){return i.useQuery}}),n.o(i,"useQueryClient")&&n.d(e,{useQueryClient:function(){return i.useQueryClient}})},19890:(t,e,n)=>{"use strict";n.d(e,{B:()=>u,t:()=>i});var r=console;function i(){return r}function u(t){r=t}},25261:(t,e,n)=>{"use strict";n.d(e,{$:()=>c,s:()=>a});var r=n(85407),i=n(19890),u=n(37390),s=n(49279),o=n(82135),a=function(){function t(t){this.options=(0,r.A)({},t.defaultOptions,t.options),this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.observers=[],this.state=t.state||c(),this.meta=t.meta}var e=t.prototype;return e.setState=function(t){this.dispatch({type:"setState",state:t})},e.addObserver=function(t){-1===this.observers.indexOf(t)&&this.observers.push(t)},e.removeObserver=function(t){this.observers=this.observers.filter(function(e){return e!==t})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(o.lQ).catch(o.lQ)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var t,e=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then(function(){null==e.mutationCache.config.onMutate||e.mutationCache.config.onMutate(e.state.variables,e)}).then(function(){return null==e.options.onMutate?void 0:e.options.onMutate(e.state.variables)}).then(function(t){t!==e.state.context&&e.dispatch({type:"loading",context:t,variables:e.state.variables})})),r.then(function(){return e.executeMutation()}).then(function(n){t=n,null==e.mutationCache.config.onSuccess||e.mutationCache.config.onSuccess(t,e.state.variables,e.state.context,e)}).then(function(){return null==e.options.onSuccess?void 0:e.options.onSuccess(t,e.state.variables,e.state.context)}).then(function(){return null==e.options.onSettled?void 0:e.options.onSettled(t,null,e.state.variables,e.state.context)}).then(function(){return e.dispatch({type:"success",data:t}),t}).catch(function(t){return null==e.mutationCache.config.onError||e.mutationCache.config.onError(t,e.state.variables,e.state.context,e),(0,i.t)().error(t),Promise.resolve().then(function(){return null==e.options.onError?void 0:e.options.onError(t,e.state.variables,e.state.context)}).then(function(){return null==e.options.onSettled?void 0:e.options.onSettled(void 0,t,e.state.variables,e.state.context)}).then(function(){throw e.dispatch({type:"error",error:t}),t})})},e.executeMutation=function(){var t,e=this;return this.retryer=new s.eJ({fn:function(){return e.options.mutationFn?e.options.mutationFn(e.state.variables):Promise.reject("No mutationFn found")},onFail:function(){e.dispatch({type:"failed"})},onPause:function(){e.dispatch({type:"pause"})},onContinue:function(){e.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(t){var e=this;this.state=function(t,e){switch(e.type){case"failed":return(0,r.A)({},t,{failureCount:t.failureCount+1});case"pause":return(0,r.A)({},t,{isPaused:!0});case"continue":return(0,r.A)({},t,{isPaused:!1});case"loading":return(0,r.A)({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return(0,r.A)({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.A)({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.A)({},t,e.state);default:return t}}
1(this.state,t),u.j.batch(function(){e.observers.forEach(function(e){e.onMutationUpdate(t)}),e.mutationCache.notify(e)})},t}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},37390:(t,e,n)=>{"use strict";n.d(e,{j:()=>i});var r=n(82135),i=new(function(){function t(){this.queue=[],this.transactions=0,this.notifyFn=function(t){t()},this.batchNotifyFn=function(t){t()}}var e=t.prototype;return e.batch=function(t){var e;this.transactions++;try{e=t()}finally{this.transactions--,this.transactions||this.flush()}return e},e.schedule=function(t){var e=this;this.transactions?this.queue.push(t):(0,r.G6)(function(){e.notifyFn(t)})},e.batchCalls=function(t){var e=this;return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.schedule(function(){t.apply(void 0,r)})}},e.flush=function(){var t=this,e=this.queue;this.queue=[],e.length&&(0,r.G6)(function(){t.batchNotifyFn(function(){e.forEach(function(e){t.notifyFn(e)})})})},e.setNotifyFunction=function(t){this.notifyFn=t},e.setBatchNotifyFunction=function(t){this.batchNotifyFn=t},t}())},66284:(t,e,n)=>{"use strict";n.d(e,{t:()=>s});var r=n(97757),i=n(51015),u=n(82135),s=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!u.S$&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},e}(0,r.A)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(function(t){"boolean"==typeof t?n.setOnline(t):n.onOnline()})},n.setOnline=function(t){this.online=t,t&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(t){t()})},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},e}(i.Q))},14753:(t,e,n)=>{"use strict";n.d(e,{E:()=>m});var r=n(85407),i=n(82135),u=n(97757),s=n(37390),o=n(19890),a=n(49279),c=function(){function t(t){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=t.meta,this.scheduleGc()}var e=t.prototype;return e.setOptions=function(t){var e;this.options=(0,r.A)({},this.defaultOptions,t),this.meta=null==t?void 0:t.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(e=this.options.cacheTime)?e:3e5)},e.setDefaultOptions=function(t){this.defaultOptions=t},e.scheduleGc=function(){var t=this;this.clearGcTimeout(),(0,i.gn)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){t.optionalRemove()},this.cacheTime))},e.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},e.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},e.setData=function(t,e){var n,r,u=this.state.data,s=(0,i.Zw)(t,u);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,u,s))?s=u:!1!==this.options.structuralSharing&&(s=(0,i.BH)(u,s)),this.dispatch({data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt}),s},e.setState=function(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})},e.cancel=function(t){var e,n=this.promise;return null==(e=this.retryer)||e.cancel(t),n?n.then(i.lQ).catch(i.lQ):Promise.resolve()},e.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},e.reset=function(){this.destroy(),this.setState(this.initialState)},e.isActive=function(){return this.observers.some(function(t){return!1!==t.options.enabled})},e.isFetching=function(){return this.state.isFetching},e.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(t){return t.getCurrentResult().isStale})},e.isStaleByTime=function(t){return void 0===t&&(t=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.j3)(this.state.dataUpdatedAt,t)}
1,e.onFocus=function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnWindowFocus()});e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.onOnline=function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnReconnect()});e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.addObserver=function(t){-1===this.observers.indexOf(t)&&(this.observers.push(t),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))},e.removeObserver=function(t){-1!==this.observers.indexOf(t)&&(this.observers=this.observers.filter(function(e){return e!==t}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:t}))},e.getObserversCount=function(){return this.observers.length},e.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},e.fetch=function(t,e){var n,r,u,s,c,l,h=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(n=this.retryer)||n.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){var f=this.observers.find(function(t){return t.options.queryFn});f&&this.setOptions(f.options)}var d=(0,i.HN)(this.queryKey),v=(0,i.jY)(),p={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(p,"signal",{enumerable:!0,get:function(){if(v)return h.abortSignalConsumed=!0,v.signal}});var y={fetchOptions:e,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return h.options.queryFn?(h.abortSignalConsumed=!1,h.options.queryFn(p)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(s=this.options.behavior)?void 0:s.onFetch)&&(null==(r=this.options.behavior)||r.onFetch(y)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(c=y.fetchOptions)?void 0:c.meta)||this.dispatch({type:"fetch",meta:null==(u=y.fetchOptions)?void 0:u.meta}),this.retryer=new a.eJ({fn:y.fetchFn,abort:null==v?void 0:null==(l=v.abort)?void 0:l.bind(v),onSuccess:function(t){h.setData(t),null==h.cache.config.onSuccess||h.cache.config.onSuccess(t,h),0===h.cacheTime&&h.optionalRemove()},onError:function(t){(0,a.wm)(t)&&t.silent||h.dispatch({type:"error",error:t}),(0,a.wm)(t)||(null==h.cache.config.onError||h.cache.config.onError(t,h),(0,o.t)().error(t)),0===h.cacheTime&&h.optionalRemove()},onFail:function(){h.dispatch({type:"failed"})},onPause:function(){h.dispatch({type:"pause"})},onContinue:function(){h.dispatch({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay}),this.promise=this.retryer.promise,this.promise},e.dispatch=function(t){var e=this;this.state=this.reducer(this.state,t),s.j.batch(function(){e.observers.forEach(function(e){e.onQueryUpdate(t)}),e.cache.notify({query:e,type:"queryUpdated",action:t})})},e.getDefaultState=function(t){var e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==t.initialData?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0,r=void 0!==e;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},e.reducer=function(t,e){var n,i;switch(e.type){case"failed":return(0,r.A)({},t,{fetchFailureCount:t.fetchFailureCount+1});case"pause":return(0,r.A)({},t,{isPaused:!0});case"continue":return(0,r.A)({},t,{isPaused:!1});case"fetch":return(0,r.A)({},t,{fetchFailureCount:0,fetchMeta:null!=(n=e.meta)?n:null,isFetching:!0,isPaused:!1},!t.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.A)({},t,{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var u=e.error;if((0,a.wm)(u)&&u.revert&&this.revertState)return(0,r.A)({},this.revertState);return(0,r.A)({}
1,t,{error:u,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.A)({},t,{isInvalidated:!0});case"setState":return(0,r.A)({},t,e.state);default:return t}},t}(),l=n(51015),h=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.queries=[],n.queriesMap={},n}(0,u.A)(e,t);var n=e.prototype;return n.build=function(t,e,n){var r,u=e.queryKey,s=null!=(r=e.queryHash)?r:(0,i.F$)(u,e),o=this.get(s);return o||(o=new c({cache:this,queryKey:u,queryHash:s,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(u),meta:e.meta}),this.add(o)),o},n.add=function(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"queryAdded",query:t}))},n.remove=function(t){var e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(function(e){return e!==t}),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"queryRemoved",query:t}))},n.clear=function(){var t=this;s.j.batch(function(){t.queries.forEach(function(e){t.remove(e)})})},n.get=function(t){return this.queriesMap[t]},n.getAll=function(){return this.queries},n.find=function(t,e){var n=(0,i.b_)(t,e)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(t){return(0,i.MK)(n,t)})},n.findAll=function(t,e){var n=(0,i.b_)(t,e)[0];return Object.keys(n).length>0?this.queries.filter(function(t){return(0,i.MK)(n,t)}):this.queries},n.notify=function(t){var e=this;s.j.batch(function(){e.listeners.forEach(function(e){e(t)})})},n.onFocus=function(){var t=this;s.j.batch(function(){t.queries.forEach(function(t){t.onFocus()})})},n.onOnline=function(){var t=this;s.j.batch(function(){t.queries.forEach(function(t){t.onOnline()})})},e}(l.Q),f=n(25261),d=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.mutations=[],n.mutationId=0,n}(0,u.A)(e,t);var n=e.prototype;return n.build=function(t,e,n){var r=new f.s({mutationCache:this,mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:n,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0,meta:e.meta});return this.add(r),r},n.add=function(t){this.mutations.push(t),this.notify(t)},n.remove=function(t){this.mutations=this.mutations.filter(function(e){return e!==t}),t.cancel(),this.notify(t)},n.clear=function(){var t=this;s.j.batch(function(){t.mutations.forEach(function(e){t.remove(e)})})},n.getAll=function(){return this.mutations},n.find=function(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(function(e){return(0,i.nJ)(t,e)})},n.findAll=function(t){return this.mutations.filter(function(e){return(0,i.nJ)(t,e)})},n.notify=function(t){var e=this;s.j.batch(function(){e.listeners.forEach(function(e){e(t)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var t=this.mutations.filter(function(t){return t.state.isPau
1sed});return s.j.batch(function(){return t.reduce(function(t,e){return t.then(function(){return e.continue().catch(i.lQ)})},Promise.resolve())})},e}(l.Q),v=n(4285),p=n(66284);function y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}var m=function(){function t(t){void 0===t&&(t={}),this.queryCache=t.queryCache||new h,this.mutationCache=t.mutationCache||new d,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var e=t.prototype;return e.mount=function(){var t=this;this.unsubscribeFocus=v.m.subscribe(function(){v.m.isFocused()&&p.t.isOnline()&&(t.mutationCache.onFocus(),t.queryCache.onFocus())}),this.unsubscribeOnline=p.t.subscribe(function(){v.m.isFocused()&&p.t.isOnline()&&(t.mutationCache.onOnline(),t.queryCache.onOnline())})},e.unmount=function(){var t,e;null==(t=this.unsubscribeFocus)||t.call(this),null==(e=this.unsubscribeOnline)||e.call(this)},e.isFetching=function(t,e){var n=(0,i.b_)(t,e)[0];return n.fetching=!0,this.queryCache.findAll(n).length},e.isMutating=function(t){return this.mutationCache.findAll((0,r.A)({},t,{fetching:!0})).length},e.getQueryData=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state.data},e.getQueriesData=function(t){return this.getQueryCache().findAll(t).map(function(t){return[t.queryKey,t.state.data]})},e.setQueryData=function(t,e,n){var r=(0,i.vh)(t),u=this.defaultQueryOptions(r);return this.queryCache.build(this,u).setData(e,n)},e.setQueriesData=function(t,e,n){var r=this;return s.j.batch(function(){return r.getQueryCache().findAll(t).map(function(t){var i=t.queryKey;return[i,r.setQueryData(i,e,n)]})})},e.getQueryState=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state},e.removeQueries=function(t,e){var n=(0,i.b_)(t,e)[0],r=this.queryCache;s.j.batch(function(){r.findAll(n).forEach(function(t){r.remove(t)})})},e.resetQueries=function(t,e,n){var u=this,o=(0,i.b_)(t,e,n),a=o[0],c=o[1],l=this.queryCache,h=(0,r.A)({},a,{active:!0});return s.j.batch(function(){return l.findAll(a).forEach(function(t){t.reset()}),u.refetchQueries(h,c)})},e.cancelQueries=function(t,e,n){var r=this,u=(0,i.b_)(t,e,n),o=u[0],a=u[1],c=void 0===a?{}:a;return void 0===c.revert&&(c.revert=!0),Promise.all(s.j.batch(function(){return r.queryCache.findAll(o).map(function(t){return t.cancel(c)})})).then(i.lQ).catch(i.lQ)},e.invalidateQueries=function(t,e,n){var u,o,a,c=this,l=(0,i.b_)(t,e,n),h=l[0],f=l[1],d=(0,r.A)({},h,{active:null==(u=null!=(o=h.refetchActive)?o:h.active)||u,inactive:null!=(a=h.refetchInactive)&&a});return s.j.batch(function(){return c.queryCache.findAll(h).forEach(function(t){t.invalidate()}),c.refetchQueries(d,f)})},e.refetchQueries=function(t,e,n){var u=this,o=(0,i.b_)(t,e,n),a=o[0],c=o[1],l=Promise.all(s.j.batch(function(){return u.queryCache.findAll(a).map(function(t){return t.fetch(void 0,(0,r.A)({},c,{meta:{refetchPage:null==a?void 0:a.refetchPage}}))})})).then(i.lQ);return(null==c?void 0:c.throwOnError)||(l=l.catch(i.lQ)),l},e.fetchQuery=function(t,e,n){var r=(0,i.vh)(t,e,n),u=this.defaultQueryOptions(r);void 0===u.retry&&(u.retry=!1);var s=this.queryCache.build(this,u);return s.isStaleByTime(u.staleTime)?s.fetch(u):Promise.resolve(s.state.data)},e.prefetchQuery=function(t,e,n){return this.fetchQuery(t,e,n).then(i.lQ).catch(i.lQ)},e.fetchInfiniteQuery=function(t,e,n){var r=(0,i.vh)(t,e,n);return r.behavior={onFetch:function(t){t.fetchFn=function(){var e,n,r,u,s,o,c,l=null==(e=t.fetchOptions)?void 0:null==(n=e.meta)?void 0:n.refetchPage,h=null==(r=t.fetchOptions)?void 0:null==(u=r.meta)?void 0:u.fetchMore,f=null==h?void 0:h.pageParam,d=(null==h?void 0:h.direction)==="forward",v=(null==h?void 0:h.direction)==="backward",p=(null==(s=t.state.data)?void 0:s.pages)||[],m=(null==(o=t.state.data)?void 0:o.pageParams)||[],b=(0,i.jY)(),g=null==b?void 0:b.signal,O=m,w=!1,C=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},S=function(t,e,n,r){return O=r?[e].concat(O):[].concat(O,[e]),r?[n].concat(t):[].concat(t,[n])},Q=function(e,n,r,i){if(w)return Promise.reject("Cancelled");if(void 0===r&&!n&&e.length)return Promise.resolve(e);var u=C({queryKey:t.queryKey,signal:g,pageParam:r,meta:t.meta}),s=Promise.resolve(u).then(function(t){return S(e,r,t,i)});return(0,a.dd)(u)&&(s.cancel=u.cancel),s};if(p.length){if(d){var R=void 0!==f,E=R?f:y(t.options,p);c=Q(p,R,E)}else if(v){var P,A=void 0!==f,F=A?f:null==(P=t.options).getPreviousPageParam?void 0:P.getPreviousPageParam(p[0],p);c=Q(p,A,F,!0)}else!function(){O=[];var e=void 0===t.options.getNextPageParam;c=!l||!p[0]||l(p[0],0,p)?Q([],e,m[0]):Promise.resolve(S([],m[0],p[0]));for(var n=function(n){c=c.then(function(r){if(!l||!p[n]||l(p[n],n,p)){var i=e?m[n]:y(t.o
1ptions,r);return Q(r,e,i)}return Promise.resolve(S(r,m[n],p[n]))})},r=1;r<p.length;r++)n(r)}()}else c=Q([]);var q=c.then(function(t){return{pages:t,pageParams:O}});return q.cancel=function(){w=!0,null==b||b.abort(),(0,a.dd)(c)&&c.cancel()},q}}},this.fetchQuery(r)},e.prefetchInfiniteQuery=function(t,e,n){return this.fetchInfiniteQuery(t,e,n).then(i.lQ).catch(i.lQ)},e.cancelMutations=function(){var t=this;return Promise.all(s.j.batch(function(){return t.mutationCache.getAll().map(function(t){return t.cancel()})})).then(i.lQ).catch(i.lQ)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(t){return this.mutationCache.build(this,t).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(t){this.defaultOptions=t},e.setQueryDefaults=function(t,e){var n=this.queryDefaults.find(function(e){return(0,i.Od)(t)===(0,i.Od)(e.queryKey)});n?n.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})},e.getQueryDefaults=function(t){var e;return t?null==(e=this.queryDefaults.find(function(e){return(0,i.Cp)(t,e.queryKey)}))?void 0:e.defaultOptions:void 0},e.setMutationDefaults=function(t,e){var n=this.mutationDefaults.find(function(e){return(0,i.Od)(t)===(0,i.Od)(e.mutationKey)});n?n.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})},e.getMutationDefaults=function(t){var e;return t?null==(e=this.mutationDefaults.find(function(e){return(0,i.Cp)(t,e.mutationKey)}))?void 0:e.defaultOptions:void 0},e.defaultQueryOptions=function(t){if(null==t?void 0:t._defaulted)return t;var e=(0,r.A)({},this.defaultOptions.queries,this.getQueryDefaults(null==t?void 0:t.queryKey),t,{_defaulted:!0});return!e.queryHash&&e.queryKey&&(e.queryHash=(0,i.F$)(e.queryKey,e)),e},e.defaultQueryObserverOptions=function(t){return this.defaultQueryOptions(t)},e.defaultMutationOptions=function(t){return(null==t?void 0:t._defaulted)?t:(0,r.A)({},this.defaultOptions.mutations,this.getMutationDefaults(null==t?void 0:t.mutationKey),t,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t}()},49279:(t,e,n)=>{"use strict";n.d(e,{dd:()=>o,eJ:()=>l,wm:()=>c});var r=n(4285),i=n(66284),u=n(82135);function s(t){return Math.min(1e3*Math.pow(2,t),3e4)}function o(t){return"function"==typeof(null==t?void 0:t.cancel)}var a=function(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent};function c(t){return t instanceof a}var l=function(t){var e,n,c,l,h=this,f=!1;this.abort=t.abort,this.cancel=function(t){return null==e?void 0:e(t)},this.cancelRetry=function(){f=!0},this.continueRetry=function(){f=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(t,e){c=t,l=e});var d=function(e){h.isResolved||(h.isResolved=!0,null==t.onSuccess||t.onSuccess(e),null==n||n(),c(e))},v=function(e){h.isResolved||(h.isResolved=!0,null==t.onError||t.onError(e),null==n||n(),l(e))};!function c(){var l;if(!h.isResolved){try{l=t.fn()}catch(t){l=Promise.reject(t)}e=function(t){if(!h.isResolved&&(v(new a(t)),null==h.abort||h.abort(),o(l)))try{l.cancel()}catch(t){}},h.isTransportCancelable=o(l),Promise.resolve(l).then(d).catch(function(e){if(!h.isResolved){var o,a,l=null!=(o=t.retry)?o:3,d=null!=(a=t.retryDelay)?a:s,p="function"==typeof d?d(h.failureCount,e):d,y=!0===l||"number"==typeof l&&h.failureCount<l||"function"==typeof l&&l(h.failureCount,e);if(f||!y){v(e);return}h.failureCount++,null==t.onFail||t.onFail(h.failureCount,e),(0,u.yy)(p).then(function(){if(!r.m.isFocused()||!i.t.isOnline())return new Promise(function(e){n=e,h.isPaused=!0,null==t.onPause||t.onPause()}).then(function(){n=void 0,h.isPaused=!1,null==t.onContinue||t.onContinue()})}).then(function(){f?v(e):c()})}})}}()}},51015:(t,e,n)=>{"use strict";n.d(e,{Q:()=>r});var r=function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(t){var e=this,n=t||function(){};return this.listeners.push(n),this.onSubscribe(),function(){e.listeners=e.listeners.filter(function(t){return t!==n}),e.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t}()},94691:()=>{},82135:(t,e,n)=>{"use strict";n.d(e,{BH:()=>function t(e,n){if(e===n)return e;var r=Array.isArray(e)&&Array.isArray(n);if(r||g(e)&&g(n)){for(var i=r?e.length:Object.keys(e).length,u=r?n:Object.keys(n),s=u.length,o=r?[]:{},a=0,c=0;c<s;c++){var l=r?c:u[c];o[l]=t(e[l],n[l]),o[l]===e[l]&&a++}return i===s&&a===i?e:o}return n},Cp:()=>m,F$:()=>p,G6:()=>S,GR:()=>h,HN:()=>a,MK:()=>d,Od:()=>y,S$:()=>i,Zw:()=>s,b_:()=>f,f8:()=>b,gn:()=>o,j3:()=>c,jY:()=>Q,lQ:()=>u,nJ:()=>v,vh:()=>l,yy:()=>C});var r=n(85407),i="undefined"==typeof window;function u(){}function s(t,e){return"function"==typeof t?t(e):t}function o(t){return"number"==typeof t&&t>=0&&t!==1/0}function a(t){return Array.isArray(t)?t:[t]}function c(t,e){return Math.max(t+(e||0)-Date.now(),0)}function l(t,e,n){return w(t)?"function"==typeof e?(0,r.A)({},n,{queryKey:t,queryFn:e}):(0,r.A)({},e,{queryKey:t}):t}function h(t,e,n){return w(t)?"function"==typeof e?(0,r.A)({},n,{mutationKey:t,mutationFn:e}):(0,r.A)({},e,{mutationKey:t}):"function"==typeof t?(0,r.A)({},e,{mutationFn:t}):(0,r.A)({},t)}function f(t,e,n){return w(t)?[(0,r.A)({},e,{queryKey:t}),n]:[t||{},e]}function d(t,e){var n=t.active,r=t.exact,i=t.fetching,u=t.inactive,s=t.predicate,o=t.queryKey,a=t.stale;
1if(w(o)){if(r){if(e.queryHash!==p(o,e.options))return!1}else if(!m(e.queryKey,o))return!1}var c=!0===n&&!0===u||null==n&&null==u?"all":!1===n&&!1===u?"none":(null!=n?n:!u)?"active":"inactive";if("none"===c)return!1;if("all"!==c){var l=e.isActive();if("active"===c&&!l||"inactive"===c&&l)return!1}return("boolean"!=typeof a||e.isStale()===a)&&("boolean"!=typeof i||e.isFetching()===i)&&(!s||!!s(e))}function v(t,e){var n=t.exact,r=t.fetching,i=t.predicate,u=t.mutationKey;if(w(u)){if(!e.options.mutationKey)return!1;if(n){if(y(e.options.mutationKey)!==y(u))return!1}else if(!m(e.options.mutationKey,u))return!1}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function p(t,e){return((null==e?void 0:e.queryKeyHashFn)||y)(t)}function y(t){return JSON.stringify(a(t),function(t,e){return g(e)?Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{}):e})}function m(t,e){return function t(e,n){return e===n||typeof e==typeof n&&!!e&&!!n&&"object"==typeof e&&"object"==typeof n&&!Object.keys(n).some(function(r){return!t(e[r],n[r])})}(a(t),a(e))}function b(t,e){if(t&&!e||e&&!t)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}function g(t){if(!O(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!(O(n)&&n.hasOwnProperty("isPrototypeOf"))}function O(t){return"[object Object]"===Object.prototype.toString.call(t)}function w(t){return"string"==typeof t||Array.isArray(t)}function C(t){return new Promise(function(e){setTimeout(e,t)})}function S(t){Promise.resolve().then(t).catch(function(t){return setTimeout(function(){throw t})})}function Q(){if("function"==typeof AbortController)return new AbortController}},18730:(t,e,n)=>{"use strict";n.d(e,{QueryClient:()=>r.QueryClient,QueryClientProvider:()=>i.QueryClientProvider,useMutation:()=>i.useMutation,useQuery:()=>i.useQuery,useQueryClient:()=>i.useQueryClient});var r=n(53242);n.o(r,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useMutation")&&n.d(e,{useMutation:function(){return r.useMutation}}),n.o(r,"useQuery")&&n.d(e,{useQuery:function(){return r.useQuery}}),n.o(r,"useQueryClient")&&n.d(e,{useQueryClient:function(){return r.useQueryClient}});var i=n(26858)},26858:(t,e,n)=>{"use strict";n.d(e,{QueryClientProvider:()=>f,useMutation:()=>O,useQuery:()=>F,useQueryClient:()=>h});var r=n(37390),i=n(47650).unstable_batchedUpdates;r.j.setBatchNotifyFunction(i);var u=n(19890),s=console;(0,u.B)(s);var o=n(12115),a=o.createContext(void 0),c=o.createContext(!1);function l(t){return t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=a),window.ReactQueryClientContext):a}var h=function(){var t=o.useContext(l(o.useContext(c)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},f=function(t){var e=t.client,n=t.contextSharing,r=void 0!==n&&n,i=t.children;o.useEffect(function(){return e.mount(),function(){e.unmount()}},[e]);var u=l(r);return o.createElement(c.Provider,{value:r},o.createElement(u.Provider,{value:e},i))},d=n(85407),v=n(82135),p=n(97757),y=n(25261),m=n(51015),b=function(t){function e(e,n){var r;return(r=t.call(this)||this).client=e,r.setOptions(n),r.bindMethods(),r.updateResult(),r}(0,p.A)(e,t);var n=e.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(t){this.options=this.client.defaultMutationOptions(t)},n.onUnsubscribe=function(){if(!this.listeners.length){var t;null==(t=this.currentMutation)||t.removeObserver(this)}},n.onMutationUpdate=function(t){this.updateResult();var e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,d.A)({},this.options,{variables:void 0!==t?t:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var t=this.currentMutation?this.currentMutation.state:(0,y.$)(),e=(0,d.A)({},t,{isLoading:"loading"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset});this.currentResult=e},n.notify=function(t){var e=this;r.j.batch(function(){e.mutateOptions&&(t.onSuccess?(null==e.mutateOptions.onSuccess||e.mutateOptions.onSuccess(e.currentResult.data,e.currentResult.variables,e.currentResult.context),null==e.mutateOptions.onSettled||e.mutateOptions.onSettled(e.currentResult.data,null,e.currentResult.variables,e.currentResult.context)):t.onError&&(null==e.mutateOptions.onError||e.mutateOptions.onError(e.currentResult.error,e.currentResult.variables,e.currentResult.context),null==e.mutateOptions.onSettled||e.mutateOptions.onSettled(void 0,e.currentResult.error,e.currentResult.variables,e.currentResult.context))),t.listeners&&e.listeners.forEac
1h(function(t){t(e.currentResult)})})},e}(m.Q);function g(t,e,n){return"function"==typeof e?e.apply(void 0,n):"boolean"==typeof e?e:!!t}function O(t,e,n){var i=o.useRef(!1),u=o.useState(0)[1],s=(0,v.GR)(t,e,n),a=h(),c=o.useRef();c.current?c.current.setOptions(s):c.current=new b(a,s);var l=c.current.getCurrentResult();o.useEffect(function(){i.current=!0;var t=c.current.subscribe(r.j.batchCalls(function(){i.current&&u(function(t){return t+1})}));return function(){i.current=!1,t()}},[]);var f=o.useCallback(function(t,e){c.current.mutate(t,e).catch(v.lQ)},[]);if(l.error&&g(void 0,c.current.options.useErrorBoundary,[l.error]))throw l.error;return(0,d.A)({},l,{mutate:f,mutateAsync:l.mutate})}var w=n(4285),C=n(49279),S=function(t){function e(e,n){var r;return(r=t.call(this)||this).client=e,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,p.A)(e,t);var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),Q(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return R(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return R(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(t,e){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&E(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();var u=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)},n.getOptimisticResult=function(t){var e=this.client.defaultQueryObserverOptions(t),n=this.client.getQueryCache().build(this.client,e);return this.createResult(n,e)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(t,e){var n=this,r={},i=function(t){n.trackedProps.includes(t)||n.trackedProps.push(t)};return Object.keys(t).forEach(function(e){Object.defineProperty(r,e,{configurable:!1,enumerable:!0,get:function(){return i(e),t[e]}})}),(e.useErrorBoundary||e.suspense)&&i("error"),r},n.getNextResult=function(t){var e=this;return new Promise(function(n,r){var i=e.subscribe(function(e){e.isFetching||(i(),e.isError&&(null==t?void 0:t.throwOnError)?r(e.error):n(e))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(t){return this.fetch((0,d.A)({},t,{meta:{refetchPage:null==t?void 0:t.refetchPage}}))},n.fetchOptimistic=function(t){var e=this,n=this.client.defaultQueryObserverOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return e.createResult(r,n)})},n.fetch=function(t){var e=this;return this.executeFetch(t).then(function(){return e.updateResult(),e.currentResult})},n.executeFetch=function(t){this.updateQuery();var e=this.currentQuery.fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(v.lQ)),e},n.updateStaleTimeout=function(){var t=this;if(this.clearStaleTimeout(),!v.S$&&!this.currentResult.isStale&&(0,v.gn)(this.options.staleTime)){var e=(0,v.j3)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){t.currentResult.isStale||t.updateResult()},e+1)}},n.computeRefetchInterval=function(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t},n.updateRefetchInterval=function(t){var e=this;this.clearRefetchInterval(),this.currentRefetchInterval=t,!v.S$&&!1!==this.options.enabled&&(0,v.gn)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(e.options.refetchIntervalInBackgroun
1d||w.m.isFocused())&&e.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(t,e){var n,r,i=this.currentQuery,s=this.options,o=this.currentResult,a=this.currentResultState,c=this.currentResultOptions,l=t!==i,h=l?t.state:this.currentQueryInitialState,f=l?this.currentResult:this.previousQueryResult,d=t.state,p=d.dataUpdatedAt,y=d.error,m=d.errorUpdatedAt,b=d.isFetching,g=d.status,O=!1,w=!1;if(e.optimisticResults){var C=this.hasListeners(),S=!C&&Q(t,e),R=C&&E(t,i,e,s);(S||R)&&(b=!0,p||(g="loading"))}if(e.keepPreviousData&&!d.dataUpdateCount&&(null==f?void 0:f.isSuccess)&&"error"!==g)n=f.data,p=f.dataUpdatedAt,g=f.status,O=!0;else if(e.select&&void 0!==d.data){if(o&&d.data===(null==a?void 0:a.data)&&e.select===this.selectFn)n=this.selectResult;else try{this.selectFn=e.select,n=e.select(d.data),!1!==e.structuralSharing&&(n=(0,v.BH)(null==o?void 0:o.data,n)),this.selectResult=n,this.selectError=null}catch(t){(0,u.t)().error(t),this.selectError=t}}else n=d.data;if(void 0!==e.placeholderData&&void 0===n&&("loading"===g||"idle"===g)){if((null==o?void 0:o.isPlaceholderData)&&e.placeholderData===(null==c?void 0:c.placeholderData))r=o.data;else if(r="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==r)try{r=e.select(r),!1!==e.structuralSharing&&(r=(0,v.BH)(null==o?void 0:o.data,r)),this.selectError=null}catch(t){(0,u.t)().error(t),this.selectError=t}void 0!==r&&(g="success",n=r,w=!0)}return this.selectError&&(y=this.selectError,n=this.selectResult,m=Date.now(),g="error"),{status:g,isLoading:"loading"===g,isSuccess:"success"===g,isError:"error"===g,isIdle:"idle"===g,data:n,dataUpdatedAt:p,error:y,errorUpdatedAt:m,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>h.dataUpdateCount||d.errorUpdateCount>h.errorUpdateCount,isFetching:b,isRefetching:b&&"loading"!==g,isLoadingError:"error"===g&&0===d.dataUpdatedAt,isPlaceholderData:w,isPreviousData:O,isRefetchError:"error"===g&&0!==d.dataUpdatedAt,isStale:P(t,e),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(t,e){if(!e)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i||"tracked"===r&&!this.trackedProps.length)return!0;var u="tracked"===r?this.trackedProps:r;return Object.keys(t).some(function(n){var r=t[n]!==e[n],s=null==u?void 0:u.some(function(t){return t===n}),o=null==i?void 0:i.some(function(t){return t===n});return r&&!o&&(!u||s)})},n.updateResult=function(t){var e=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,v.f8)(this.currentResult,e)){var n={cache:!0};(null==t?void 0:t.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,e)&&(n.listeners=!0),this.notify((0,d.A)({},n,t))}},n.updateQuery=function(){var t=this.client.getQueryCache().build(this.client,this.options);if(t!==this.currentQuery){var e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}},n.onQueryUpdate=function(t){var e={};"success"===t.type?e.onSuccess=!0:"error"!==t.type||(0,C.wm)(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()},n.notify=function(t){var e=this;r.j.batch(function(){t.onSuccess?(null==e.options.onSuccess||e.options.onSuccess(e.currentResult.data),null==e.options.onSettled||e.options.onSettled(e.currentResult.data,null)):t.onError&&(null==e.options.onError||e.options.onError(e.currentResult.error),null==e.options.onSettled||e.options.onSettled(void 0,e.currentResult.error)),t.listeners&&e.listeners.forEac
1h(function(t){t(e.currentResult)}),t.cache&&e.client.getQueryCache().notify({query:e.currentQuery,type:"observerResultsUpdated"})})},e}(m.Q);function Q(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)||t.state.dataUpdatedAt>0&&R(t,e,e.refetchOnMount)}function R(t,e,n){if(!1!==e.enabled){var r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&P(t,e)}return!1}function E(t,e,n,r){return!1!==n.enabled&&(t!==e||!1===r.enabled)&&(!n.suspense||"error"!==t.state.status)&&P(t,n)}function P(t,e){return t.isStaleByTime(e.staleTime)}var A=o.createContext(function(){var t=!1;return{clearReset:function(){t=!1},reset:function(){t=!0},isReset:function(){return t}}}());function F(t,e,n){return function(t,e){var n=o.useRef(!1),i=o.useState(0)[1],u=h(),s=o.useContext(A),a=u.defaultQueryObserverOptions(t);a.optimisticResults=!0,a.onError&&(a.onError=r.j.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=r.j.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=r.j.batchCalls(a.onSettled)),a.suspense&&("number"!=typeof a.staleTime&&(a.staleTime=1e3),0===a.cacheTime&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&!s.isReset()&&(a.retryOnMount=!1);var c=o.useState(function(){return new e(u,a)})[0],l=c.getOptimisticResult(a);if(o.useEffect(function(){n.current=!0,s.clearReset();var t=c.subscribe(r.j.batchCalls(function(){n.current&&i(function(t){return t+1})}));return c.updateResult(),function(){n.current=!1,t()}},[s,c]),o.useEffect(function(){c.setOptions(a,{listeners:!1})},[a,c]),a.suspense&&l.isLoading)throw c.fetchOptimistic(a).then(function(t){var e=t.data;null==a.onSuccess||a.onSuccess(e),null==a.onSettled||a.onSettled(e,null)}
1).catch(function(t){s.clearReset(),null==a.onError||a.onError(t),null==a.onSettled||a.onSettled(void 0,t)});if(l.isError&&!s.isReset()&&!l.isFetching&&g(a.suspense,a.useErrorBoundary,[l.error,c.getCurrentQuery()]))throw l.error;return"tracked"===a.notifyOnChangeProps&&(l=c.trackResult(l,a)),l}((0,v.vh)(t,e,n),S)}},85407:(t,e,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}n.d(e,{A:()=>r})},97757:(t,e,n)=>{"use strict";function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{A:()=>i})},94928:(t,e,n)=>{"use strict";n.d(e,{Kq:()=>a,Pj:()=>o,Xr:()=>p,fp:()=>y,md:()=>v});var r=n(12115),i=n(21416),u=n(35719);let s=(0,r.createContext)(void 0);function o(t){let e=(0,r.useContext)(s);return(null==t?void 0:t.store)||e||(0,i.zp)()}function a(t){let{children:e,store:n}=t,u=(0,r.useRef)(void 0);return n||u.current||(u.current=(0,i.y$)()),(0,r.createElement)(s.Provider,{value:n||u.current},e)}let c=t=>"function"==typeof(null==t?void 0:t.then),l=t=>{t.status||(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}))},h=r.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;if("rejected"===t.status)throw t.reason;throw l(t),t}),f=new WeakMap,d=(t,e)=>{let n=f.get(t);return n||(n=new Promise((r,i)=>{let s=t,o=t=>e=>{s===t&&r(e)},a=t=>e=>{s===t&&i(e)},l=()=>{try{let t=e();c(t)?(f.set(t,n),s=t,t.then(o(t),a(t)),(0,u.MO)(t,l)):r(t)}catch(t){i(t)}};t.then(o(t),a(t)),(0,u.MO)(t,l)}),f.set(t,n)),n};function v(t,e){let{delay:n,unstable_promiseStatus:i=!r.use}=e||{},u=o(e),[[s,a,f],v]=(0,r.useReducer)(e=>{let n=u.get(t);return Object.is(e[0],n)&&e[1]===u&&e[2]===t?e:[n,u,t]},void 0,()=>[u.get(t),u,t]),p=s;if((a!==u||f!==t)&&(v(),p=u.get(t)),(0,r.useEffect)(()=>{let e=u.sub(t,()=>{if(i)try{let e=u.get(t);c(e)&&l(d(e,()=>u.get(t)))}catch(t){}if("number"==typeof n){setTimeout(v,n);return}v()});return v(),e},[u,t,n,i]),(0,r.useDebugValue)(p),c(p)){let e=d(p,()=>u.get(t));return i&&l(e),h(e)}return p}function p(t,e){let n=o(e);return(0,r.useCallback)(function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];if(!("write"in t))throw Error("not writable atom");return n.set(t,...r)},[n,t])}function y(t,e){return[v(t,e),p(t,e)]}},21416:(t,e,n)=>{"use strict";let r,i;n.d(e,{eU:()=>o,y$:()=>h,zp:()=>f});var u=n(35719);let s=0;function o(t,e){let n=`atom${++s}`,r={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof t?r.read=t:(r.init=t,r.read=a,r.write=c),e&&(r.write=e),r}function a(t){return t(this)}function c(t,e,n){return e(this,"function"==typeof n?n(t(this)):n)}let l=()=>{let t=0,e=(0,u.eE)({}),n=new WeakMap,r=new WeakMap,i=(0,u._w)(n,r,void 0,void 0,void 0,void 0,e,void 0,(e,n,r,...i)=>t?r(e,...i):e.write(n,r,...i)),s=new Set;return e.m.add(void 0,t=>{s.add(t),n.get(t).m=r.get(t)}),e.u.add(void 0,t=>{s.delete(t);let e=n.get(t);delete e.m}),Object.assign(i,{dev4_get_internal_weak_map:()=>n,dev4_get_mounted_atoms:()=>s,dev4_restore_atoms:e=>{i.set({read:()=>null,write:(n,r)=>{++t;try{for(let[t,n]of e)"init"in t&&r(t,n)}finally{--t}}})}})};function h(){return r?r():l()}function f(){return i||(i=h(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=i),globalThis.__JOTAI_DEFAULT_STORE__!==i&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),i}},35719:(t,e,n)=>{"use strict";n.d(e,{MO:()=>w,_w:()=>g,eE:()=>O});let r=(t,e)=>t.unstable_is?t.unstable_is(e):e===t,i=t=>"init"in t,u=t=>!!t.write,s=t=>"v"in t||"e"in t,o=t=>{if("e"in t)throw t.e;if(!("v"in t))throw Error("[Bug] atom state is not initialized");return t.v},a=new WeakMap,c=t=>{var e;return f(t)&&!!(null==(e=a.get(t))?void 0:e[0])},l=t=>{let e=a.get(t);
1(null==e?void 0:e[0])&&(e[0]=!1,e[1].forEach(t=>t()))},h=(t,e)=>{let n=a.get(t);if(!n){n=[!0,new Set],a.set(t,n);let e=()=>{n[0]=!1};t.then(e,e)}n[1].add(e)},f=t=>"function"==typeof(null==t?void 0:t.then),d=(t,e,n)=>{n.p.has(t)||(n.p.add(t),e.then(()=>{n.p.delete(t)},()=>{n.p.delete(t)}))},v=(t,e,n)=>{let r=n(t),i="v"in r,u=r.v;if(f(e))for(let i of r.d.keys())d(t,e,n(i));r.v=e,delete r.e,i&&Object.is(u,r.v)||(++r.n,f(u)&&l(u))},p=(t,e,n)=>{var r;let i=new Set;for(let e of(null==(r=n.get(t))?void 0:r.t)||[])n.has(e)&&i.add(e);for(let t of e.p)i.add(t);return i},y=()=>{let t=new Set,e=()=>{t.forEach(t=>t())};return e.add=e=>(t.add(e),()=>{t.delete(e)}),e},m=()=>{let t={},e=new WeakMap,n=n=>{var r,i;null==(r=e.get(t))||r.forEach(t=>t(n)),null==(i=e.get(n))||i.forEach(t=>t())};return n.add=(n,r)=>{let i=n||t,u=(e.has(i)?e:e.set(i,new Set)).get(i);return u.add(r),()=>{null==u||u.delete(r),u.size||e.delete(i)}},n},b=Symbol(),g=(t=new WeakMap,e=new WeakMap,n=new WeakMap,a=new Set,l=new Set,y=new Set,m={},g=(t,...e)=>t.read(...e),O=(t,...e)=>t.write(...e),w=(t,e)=>{var n;return null==(n=t.unstable_onInit)?void 0:n.call(t,e)},C=(t,e)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,e)},...S)=>{let Q=S[0]||(e=>{if(!e)throw Error("Atom is undefined or null");let n=t.get(e);return n||(n={d:new Map,p:new Set,n:0},t.set(e,n),null==w||w(e,x)),n}),R=S[1]||(()=>{let t=[],n=e=>{try{e()}catch(e){t.push(e)}};do{m.f&&n(m.f);let t=new Set,r=t.add.bind(t);a.forEach(t=>{var n;return null==(n=e.get(t))?void 0:n.l.forEach(r)}),a.clear(),y.forEach(r),y.clear(),l.forEach(r),l.clear(),t.forEach(n),a.size&&E()}while(a.size||y.size||l.size);if(t.length)throw AggregateError(t)}),E=S[2]||(()=>{let t=[],r=new WeakSet,i=new WeakSet,u=Array.from(a);for(;u.length;){let s=u[u.length-1],o=Q(s);if(i.has(s)){u.pop();continue}if(r.has(s)){if(n.get(s)===o.n)t.push([s,o]);else if(n.has(s))throw Error("[Bug] invalidated atom exists");i.add(s),u.pop();continue}for(let t of(r.add(s),p(s,o,e)))r.has(t)||u.push(t)}for(let e=t.length-1;e>=0;--e){let[r,i]=t[e],u=!1;for(let t of i.d.keys())if(t!==r&&a.has(t)){u=!0;break}u&&(P(r),q(r)),n.delete(r)}}),P=S[3]||(t=>{var l;let p,y;let b=Q(t);if(s(b)&&(e.has(t)&&n.get(t)!==b.n||Array.from(b.d).every(([t,e])=>P(t).n===e)))return b;b.d.clear();let O=!0,w=()=>{e.has(t)&&(q(t),E(),R())},C=b.n;try{let n=g(t,n=>{var u;if(r(t,n)){let t=Q(n);if(!s(t)){if(i(n))v(n,n.init,Q);else throw Error("no atom init")}return o(t)}let a=P(n);try{return o(a)}finally{b.d.set(n,a.n),c(b.v)&&d(t,b.v,a),null==(u=e.get(n))||u.t.add(t),O||w()}},{get signal(){return p||(p=new AbortController),p.signal},get setSelf(){return u(t)||console.warn("setSelf function cannot be used with read-only atom"),!y&&u(t)&&(y=(...e)=>{if(O&&console.warn("setSelf function cannot be called in sync"),!O)try{return F(t,...e)}finally{E(),R()}}),y}});return v(t,n,Q),f(n)&&(h(n,()=>null==p?void 0:p.abort()),n.then(w,w)),b}catch(t){return delete b.v,b.e=t,++b.n,b}finally{O=!1,C!==b.n&&n.get(t)===C&&(n.set(t,b.n),a.add(t),null==(l=m.c)||l.call(m,t))}}),A=S[4]||(t=>{let r=[t];for(;r.length;){let t=r.pop(),i=Q(t);for(let u of p(t,i,e)){let t=Q(u);n.set(u,t.n),r.push(u)}}}),F=S[5]||((t,...e)=>{let n=!0;try{return O(t,t=>o(P(t)),(e,...u)=>{var s;let o=Q(e);try{if(!r(t,e))return F(e,...u);{if(!i(e))throw Error("atom not writable");let t=o.n,n=u[0];v(e,n,Q),q(e),t!==o.n&&(a.add(e),null==(s=m.c)||s.call(m,e),A(e));return}}finally{n||(E(),R())}},...e)}finally{n=!1}}),q=S[6]||(t=>{var n;let r=Q(t),i=e.get(t);if(i&&!c(r.v)){for(let[e,u]of r.d)if(!i.d.has(e)){let r=Q(e);M(e).t.add(t),i.d.add(e),u!==r.n&&(a.add(e),null==(n=m.c)||n.call(m,e),A(e))}for(let e of i.d||[])if(!r.d.has(e)){i.d.delete(e);let n=j(e);null==n||n.t.delete(t)}}}),M=S[7]||(t=>{var n;let r=Q(t),i=e.get(t);if(!i){for(let e of(P(t),r.d.keys()))M(e).t.add(t);i={l:new Set,d:new Set(r.d.keys()),t:new Set},e.set(t,i),null==(n=m.m)||n.call(m,t),u(t)&&l.add(()=>{let e=!0;try{let n=C(t,(...n)=>{try{return F(t,...n)}finally{e||(E(),R())}});n&&(i.u=()=>{e=!0;try{n()}finally{e=!1}})}finally{e=!1}})}return i}),j=S[8]||(t=>{var n;let r=Q(t),i=e.get(t);if(i&&!i.l.size&&!Array.from(i.t).some(n=>{var r;return null==(r=e.get(n))?void 0:r.d.has(t)})){for(let u of(i.u&&y.add(i.u),i=void 0,e.delete(t),null==(n=m.u)||n.call(m,t),r.d.keys())){let e=j(u);null==e||e.t.delete(t)}return}return i}),x={get:t=>o(P(t)),set:(t,...e)=>{try{return F(t,...e)}finally{E(),R()}},sub:(t,e)=>{let n=M(t).l;return n.add(e),R(),()=>{n.delete(e),j(t),R()}}};return Object.defineProperty(x,b,{value:[t,e,n,a,l,y,m,g,O,w,C,Q,R,E,P,A,F,q,M,j]}),x},O=t=>
1(t.c||(t.c=m()),t.m||(t.m=m()),t.u||(t.u=m()),t.f||(t.f=y()),t),w=h},71094:(t,e,n)=>{"use strict";n.d(e,{Ut:()=>i,tx:()=>u});var r=n(21416);let i=Symbol("RESET");function u(t){let e=(0,r.eU)(t,(n,r,u)=>{let s="function"==typeof u?u(n(e)):u;r(e,s===i?t:s)});return e}let s=t=>"function"==typeof(null==t?void 0:t.then);(function(t=()=>{try{return window.localStorage}catch(t){"undefined"!=typeof window&&console.warn(t);return}}){var e;let n,r,i;try{i=null==(e=t())?void 0:e.subscribe}catch(t){}if(!i&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(i=(e,n)=>{if(!(t()instanceof window.Storage))return()=>{};let r=r=>{r.storageArea===t()&&r.key===e&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),i){let t;t=i,(e,n,r)=>t(e,t=>{let e;try{e=JSON.parse(t||"")}catch(t){e=r}n(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.