(()=>{var e={390:(e,t,n)=>{"use strict";n.d(t,{C:()=>d,Cv:()=>$,K2:()=>m,Nc:()=>k,OW:()=>v,Tb:()=>E,Tp:()=>p,VF:()=>w,YL:()=>h,c4:()=>x,mw:()=>S,nf:()=>C,rH:()=>u,se:()=>g,yY:()=>f});var r=n(9735),o=1,i=1,a=0,l=0,s=0,c="";function u(e,t,n,r,a,l,s,c){return{value:e,root:t,parent:n,type:r,props:a,children:l,line:o,column:i,length:s,return:"",siblings:c}}function d(e,t){return(0,r.kp)(u("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function f(e){for(;e.root;)e=d(e.root,{children:[e]});(0,r.BC)(e,e.siblings)}function p(){return s}function h(){return s=l>0?(0,r.wN)(c,--l):0,i--,10===s&&(i=1,o--),s}function m(){return s=l2||y(s)>3?"":" "}function k(e,t){for(;--t&&m()&&!(s<48)&&!(s>102)&&(!(s>57)||!(s<65))&&(!(s>70)||!(s<97)););return b(e,l+(t<6&&32==g()&&32==m()))}function C(e,t){for(;m();)if(e+s===57)break;else if(e+s===84&&47===g())break;return"/*"+b(t,l-1)+"*"+(0,r.HT)(47===e?e:m())}function $(e){for(;!y(g());)m();return b(e,l)}},428:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(941),o=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.G6)(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=Array(n),o=0;o{"use strict";n.d(t,{A:()=>a,l:()=>i});var r=n(4534),o=n(9735);function i(e,t){for(var n="",r=0;r{"use strict";n.d(t,{BH:()=>function e(t,n){if(t===n)return t;var r=Array.isArray(t)&&Array.isArray(n);if(r||y(t)&&y(n)){for(var o=r?t.length:Object.keys(t).length,i=r?n:Object.keys(n),a=i.length,l=r?[]:{},s=0,c=0;cv,F$:()=>m,G6:()=>S,GR:()=>d,HN:()=>s,MK:()=>p,Od:()=>g,S$:()=>o,Zw:()=>a,b_:()=>f,f8:()=>b,gn:()=>l,j3:()=>c,jY:()=>k,lQ:()=>i,nJ:()=>h,vh:()=>u,yy:()=>E});var r=n(8168),o="undefined"==typeof window;function i(){}function a(e,t){return"function"==typeof e?e(t):e}function l(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,n){return w(e)?"function"==typeof t?(0,r.A)({},n,{queryKey:e,queryFn:t}):(0,r.A)({},t,{queryKey:e}):e}function d(e,t,n){return w(e)?"function"==typeof t?(0,r.A)({},n,{mutationKey:e,mutationFn:t}):(0,r.A)({},t,{mutationKey:e}):"function"==typeof e?(0,r.A)({},t,{mutationFn:e}):(0,r.A)({},e)}function f(e,t,n){return w(e)?[(0,r.A)({},t,{queryKey:e}),n]:[e||{},t]}function p(e,t){var n=e.active,r=e.exact,o=e.fetching,i=e.inactive,a=e.predicate,l=e.queryKey,s=e.stale;if(w(l)){if(r){if(t.queryHash!==m(l,t.options))return!1}else if(!v(t.queryKey,l))return!1}var c=!0===n&&!0===i||null==n&&null==i?"all":!1===n&&!1===i?"none":(null!=n?n:!i)?"active":"inactive";if("none"===c)return!1;if("all"!==c){var u=t.isActive();if("active"===c&&!u||"inactive"===c&&u)return!1}return("boolean"!=typeof s||t.isStale()===s)&&("boolean"!=typeof o||t.isFetching()===o)&&(!a||!!a(t))}function h(e,t){var n=e.exact,r=e.fetching,o=e.predicate,i=e.mutationKey;if(w(i)){if(!t.options.mutationKey)return!1;if(n){if(g(t.options.mutationKey)!==g(i))return!1}else if(!v(t.options.mutationKey,i))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!o||!!o(t))}function m(e,t){return((null==t?void 0:t.queryKeyHashFn)||g)(e)}function g(e){return JSON.stringify(s(e),function(e,t){return y(t)?Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{}):t})}function v(e,t){return function e(t,n){return t===n||typeof t==typeof n&&!!t&&!!n&&"object"==typeof t&&"object"==typeof n&&!Object.keys(n).some(function(r){return!e(t[r],n[r])})}(s(e),s(t))}function b(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function y(e){if(!x(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!(x(n)&&n.hasOwnProperty("isPrototypeOf"))}function x(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e||Array.isArray(e)}function E(e){return new Promise(function(t){setTimeout(t,e)})}function S(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}function k(){if("function"==typeof AbortController)return new AbortController}},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1020:(e,t,n)=>{"use strict";var r=n(6540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1133:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,o.default)(e),i="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}}),n};var o=r(n(9788))},1289:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var r=n(7387),o=n(3287),i=n(941),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.S$&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.A)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()})},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(e){e()})},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(o.Q))},2409:(e,t,n)=>{"use strict";t.SS=void 0;var r=n(8267),o=(0,r.css)(['html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0;}main{display:block;}h1{font-size:2em;margin:0.67em 0;}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace,monospace;font-size:1em;}a{background-color:transparent;}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder;}code,kbd,samp{font-family:monospace,monospace;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:list-item;}template{display:none;}[hidden]{display:none;}']),i=(0,r.createGlobalStyle)(o);t.SS=i,i.displayName="Normalize"},2532:(e,t,n)=>{"use strict";n.d(t,{QueryClientProvider:()=>f,useMutation:()=>x,useQuery:()=>M,useQueryClient:()=>d});var r=n(428),o=n(961).unstable_batchedUpdates;r.j.setBatchNotifyFunction(o);var i=n(9690),a=console;(0,i.B)(a);var l=n(6540),s=l.createContext(void 0),c=l.createContext(!1);function u(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=s),window.ReactQueryClientContext):s}var d=function(){var e=l.useContext(u(l.useContext(c)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},f=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;l.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var i=u(r);return l.createElement(c.Provider,{value:r},l.createElement(i.Provider,{value:t},o))},p=n(8168),h=n(941),m=n(7387),g=n(3465),v=n(3287),b=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}(0,m.A)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){if(!this.listeners.length){var e;null==(e=this.currentMutation)||e.removeObserver(this)}},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,p.A)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,g.$)(),t=(0,p.A)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;r.j.batch(function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)})})},t}(v.Q);function y(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}function x(e,t,n){var o=l.useRef(!1),i=l.useState(0)[1],a=(0,h.GR)(e,t,n),s=d(),c=l.useRef();c.current?c.current.setOptions(a):c.current=new b(s,a);var u=c.current.getCurrentResult();l.useEffect(function(){o.current=!0;var e=c.current.subscribe(r.j.batchCalls(function(){o.current&&i(function(e){return e+1})}));return function(){o.current=!1,e()}},[]);var f=l.useCallback(function(e,t){c.current.mutate(e,t).catch(h.lQ)},[]);if(u.error&&y(void 0,c.current.options.useErrorBoundary,[u.error]))throw u.error;return(0,p.A)({},u,{mutate:f,mutateAsync:u.mutate})}var w=n(1289),E=n(6281),S=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,m.A)(t,e);var n=t.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),k(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return C(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return C(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),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 o=this.hasListeners();o&&$(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),o&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();var i=this.computeRefetchInterval();o&&(this.currentQuery!==r||this.options.enabled!==n.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},o=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&o("error"),r},n.getNextResult=function(e){var t=this;return new Promise(function(n,r){var o=t.subscribe(function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,p.A)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return t.createResult(r,n)})},n.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(h.lQ)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!h.S$&&!this.currentResult.isStale&&(0,h.gn)(this.options.staleTime)){var t=(0,h.j3)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t+1)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!h.S$&&!1!==this.options.enabled&&(0,h.gn)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackground||w.m.isFocused())&&t.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(e,t){var n,r,o=this.currentQuery,a=this.options,l=this.currentResult,s=this.currentResultState,c=this.currentResultOptions,u=e!==o,d=u?e.state:this.currentQueryInitialState,f=u?this.currentResult:this.previousQueryResult,p=e.state,m=p.dataUpdatedAt,g=p.error,v=p.errorUpdatedAt,b=p.isFetching,y=p.status,x=!1,w=!1;if(t.optimisticResults){var E=this.hasListeners(),S=!E&&k(e,t),C=E&&$(e,o,t,a);(S||C)&&(b=!0,m||(y="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==f?void 0:f.isSuccess)&&"error"!==y)n=f.data,m=f.dataUpdatedAt,y=f.status,x=!0;else if(t.select&&void 0!==p.data){if(l&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),!1!==t.structuralSharing&&(n=(0,h.BH)(null==l?void 0:l.data,n)),this.selectResult=n,this.selectError=null}catch(e){(0,i.t)().error(e),this.selectError=e}}else n=p.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===y||"idle"===y)){if((null==l?void 0:l.isPlaceholderData)&&t.placeholderData===(null==c?void 0:c.placeholderData))r=l.data;else if(r="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==r)try{r=t.select(r),!1!==t.structuralSharing&&(r=(0,h.BH)(null==l?void 0:l.data,r)),this.selectError=null}catch(e){(0,i.t)().error(e),this.selectError=e}void 0!==r&&(y="success",n=r,w=!0)}return this.selectError&&(g=this.selectError,n=this.selectResult,v=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:n,dataUpdatedAt:m,error:g,errorUpdatedAt:v,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:b,isRefetching:b&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:w,isPreviousData:x,isRefetchError:"error"===y&&0!==p.dataUpdatedAt,isStale:O(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,o=n.notifyOnChangePropsExclusions;if(!r&&!o||"tracked"===r&&!this.trackedProps.length)return!0;var i="tracked"===r?this.trackedProps:r;return Object.keys(e).some(function(n){var r=e[n]!==t[n],a=null==i?void 0:i.some(function(e){return e===n}),l=null==o?void 0:o.some(function(e){return e===n});return r&&!l&&(!i||a)})},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,h.f8)(this.currentResult,t)){var n={cache:!0};(null==e?void 0:e.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,p.A)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,E.wm)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.j.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})})},t}(v.Q);function k(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&("error"!==e.state.status||!1!==t.retryOnMount)||e.state.dataUpdatedAt>0&&C(e,t,t.refetchOnMount)}function C(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&O(e,t)}return!1}function $(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&O(e,n)}function O(e,t){return e.isStaleByTime(t.staleTime)}var j=l.createContext(function(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}());function M(e,t,n){return function(e,t){var n=l.useRef(!1),o=l.useState(0)[1],i=d(),a=l.useContext(j),s=i.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=r.j.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=r.j.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=r.j.batchCalls(s.onSettled)),s.suspense&&("number"!=typeof s.staleTime&&(s.staleTime=1e3),0===s.cacheTime&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&!a.isReset()&&(s.retryOnMount=!1);var c=l.useState(function(){return new t(i,s)})[0],u=c.getOptimisticResult(s);if(l.useEffect(function(){n.current=!0,a.clearReset();var e=c.subscribe(r.j.batchCalls(function(){n.current&&o(function(e){return e+1})}));return c.updateResult(),function(){n.current=!1,e()}},[a,c]),l.useEffect(function(){c.setOptions(s,{listeners:!1})},[s,c]),s.suspense&&u.isLoading)throw c.fetchOptimistic(s).then(function(e){var t=e.data;null==s.onSuccess||s.onSuccess(t),null==s.onSettled||s.onSettled(t,null)}).catch(function(e){a.clearReset(),null==s.onError||s.onError(e),null==s.onSettled||s.onSettled(void 0,e)});if(u.isError&&!a.isReset()&&!u.isFetching&&y(s.suspense,s.useErrorBoundary,[u.error,c.getCurrentQuery()]))throw u.error;return"tracked"===s.notifyOnChangeProps&&(u=c.trackResult(u,s)),u}((0,h.vh)(e,t,n),S)}},2551:(e,t,n)=>{"use strict";var r,o,i,a,l,s,c=n(6540),u=n(9982);function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n