Files
pgsql-jellyfin/publish_test4/wwwroot/node_modules.@tanstack.query-core.bundle.js
2026-07-08 13:46:27 -04:00

2 lines
85 KiB
JavaScript

/*! For license information please see node_modules.@tanstack.query-core.bundle.js.LICENSE.txt */
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9886],{427:function(t,e,n){n.d(e,{_:function(){return E}}),n(29305),n(32733),n(84701),n(81678),n(14382),n(44962),n(4754),n(94),n(33087),n(36947),n(36457),n(88908),n(26437),n(83810),n(52697),n(78557),n(21359),n(83994),n(84518),n(90580),n(23630),n(82367);var r,o,i,u,a,c=n(50133),s=n(52672),l=n(51115),f=n(26073);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function b(t){var e=function(t){if("object"!=h(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==h(e)?e:e+""}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}function g(t,e,n){j(t,e),e.set(t,n)}function j(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function P(t,e){return t.get(S(t,e))}function k(t,e,n){return t.set(S(t,e),n),n}function S(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var E=(r=new WeakMap,o=new WeakMap,i=new WeakMap,u=new WeakMap,a=new WeakSet,function(t){function e(t,n){var c,s,l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c=function(t,e,n){return e=w(e),function(t,e){if(e&&("object"==h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,m()?Reflect.construct(e,n||[],w(t).constructor):e.apply(t,n))}(this,e),j(s=c,l=a),l.add(s),g(c,r,void 0),g(c,o,void 0),g(c,i,void 0),g(c,u,void 0),k(r,c,t),c.setOptions(n),c.bindMethods(),S(a,c,T).call(c),c}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(e,t),n=e,(c=[{key:"bindMethods",value:function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}},{key:"setOptions",value:function(t){var e,n=this.options;this.options=P(r,this).defaultMutationOptions(t),(0,f.f8)(this.options,n)||P(r,this).getMutationCache().notify({type:"observerOptionsUpdated",mutation:P(i,this),observer:this}),null!=n&&n.mutationKey&&this.options.mutationKey&&(0,f.EN)(n.mutationKey)!==(0,f.EN)(this.options.mutationKey)?this.reset():"pending"===(null===(e=P(i,this))||void 0===e?void 0:e.state.status)&&P(i,this).setOptions(this.options)}},{key:"onUnsubscribe",value:function(){var t;this.hasListeners()||null===(t=P(i,this))||void 0===t||t.removeObserver(this)}},{key:"onMutationUpdate",value:function(t){S(a,this,T).call(this),S(a,this,M).call(this,t)}},{key:"getCurrentResult",value:function(){return P(o,this)}},{key:"reset",value:function(){var t;null===(t=P(i,this))||void 0===t||t.removeObserver(this),k(i,this,void 0),S(a,this,T).call(this),S(a,this,M).call(this)}},{key:"mutate",value:function(t,e){var n;return k(u,this,e),null===(n=P(i,this))||void 0===n||n.removeObserver(this),k(i,this,P(r,this).getMutationCache().build(P(r,this),this.options)),P(i,this).addObserver(this),P(i,this).execute(t)}}])&&d(n.prototype,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,c}(l.Q));function T(){var t,e,n=null!==(t=null===(e=P(i,this))||void 0===e?void 0:e.state)&&void 0!==t?t:(0,c.$)();k(o,this,y(y({},n),{},{isPending:"pending"===n.status,isSuccess:"success"===n.status,isError:"error"===n.status,isIdle:"idle"===n.status,mutate:this.mutate,reset:this.reset}))}function M(t){var e=this;s.jG.batch((function(){if(P(u,e)&&e.hasListeners()){var n,r,i,a,c=P(o,e).variables,s=P(o,e).context;if("success"===(null==t?void 0:t.type))null===(n=(r=P(u,e)).onSuccess)||void 0===n||n.call(r,t.data,c,s),null===(i=(a=P(u,e)).onSettled)||void 0===i||i.call(a,t.data,null,c,s);else if("error"===(null==t?void 0:t.type)){var l,f,h,p;null===(l=(f=P(u,e)).onError)||void 0===l||l.call(f,t.error,c,s),null===(h=(p=P(u,e)).onSettled)||void 0===h||h.call(p,void 0,t.error,c,s)}}e.listeners.forEach((function(t){t(P(o,e))}))}))}},621:function(t,e,n){n.d(e,{m:function(){return m}}),n(29305),n(32733),n(84701),n(81678),n(44962),n(4754),n(94),n(36947),n(26437),n(52697),n(78557),n(21359),n(83994),n(84518),n(82402),n(23630),n(82367);var r,o,i,u=n(51115),a=n(26073);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function y(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function v(t,e){return t.get(b(t,e))}function d(t,e,n){return t.set(b(t,e),n),n}function b(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var m=new(r=new WeakMap,o=new WeakMap,i=new WeakMap,function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),y(t=function(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e),r,void 0),y(t,o,void 0),y(t,i,void 0),d(i,t,(function(t){if(!a.S$&&window.addEventListener){var e=function(){return t()};return window.addEventListener("visibilitychange",e,!1),function(){window.removeEventListener("visibilitychange",e)}}})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(u=[{key:"onSubscribe",value:function(){v(o,this)||this.setEventListener(v(i,this))}},{key:"onUnsubscribe",value:function(){var t;this.hasListeners()||(null===(t=v(o,this))||void 0===t||t.call(this),d(o,this,void 0))}},{key:"setEventListener",value:function(t){var e,n=this;d(i,this,t),null===(e=v(o,this))||void 0===e||e.call(this),d(o,this,t((function(t){"boolean"==typeof t?n.setFocused(t):n.onFocus()})))}},{key:"setFocused",value:function(t){v(r,this)!==t&&(d(r,this,t),this.onFocus())}},{key:"onFocus",value:function(){var t=this.isFocused();this.listeners.forEach((function(e){e(t)}))}},{key:"isFocused",value:function(){var t;return"boolean"==typeof v(r,this)?v(r,this):"hidden"!==(null===(t=globalThis.document)||void 0===t?void 0:t.visibilityState)}}])&&s(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(u.Q))},26073:function(t,e,n){function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,{Cp:function(){return b},EN:function(){return d},Eh:function(){return h},F$:function(){return v},GU:function(){return R},MK:function(){return p},S$:function(){return u},ZM:function(){return _},ZZ:function(){return T},Zw:function(){return c},d2:function(){return f},f8:function(){return w},gn:function(){return s},hT:function(){return M},j3:function(){return l},lQ:function(){return a},nJ:function(){return y},pl:function(){return k},rX:function(){return S},y9:function(){return E},yy:function(){return P}}),n(29305),n(32733),n(84701),n(24776),n(69892),n(44962),n(20518),n(89336),n(26448),n(26437),n(83810),n(78557),n(90076),n(95021),n(73687),n(92745),n(83994),n(82402),n(82367);var u="undefined"==typeof window||"Deno"in globalThis;function a(){}function c(t,e){return"function"==typeof t?t(e):t}function s(t){return"number"==typeof t&&t>=0&&t!==1/0}function l(t,e){return Math.max(t+(e||0)-Date.now(),0)}function f(t,e){return"function"==typeof t?t(e):t}function h(t,e){return"function"==typeof t?t(e):t}function p(t,e){var n=t.type,r=void 0===n?"all":n,o=t.exact,i=t.fetchStatus,u=t.predicate,a=t.queryKey,c=t.stale;if(a)if(o){if(e.queryHash!==v(a,e.options))return!1}else if(!b(e.queryKey,a))return!1;if("all"!==r){var s=e.isActive();if("active"===r&&!s)return!1;if("inactive"===r&&s)return!1}return!("boolean"==typeof c&&e.isStale()!==c||i&&i!==e.state.fetchStatus||u&&!u(e))}function y(t,e){var n=t.exact,r=t.status,o=t.predicate,i=t.mutationKey;if(i){if(!e.options.mutationKey)return!1;if(n){if(d(e.options.mutationKey)!==d(i))return!1}else if(!b(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||o&&!o(e))}function v(t,e){return((null==e?void 0:e.queryKeyHashFn)||d)(t)}function d(t){return JSON.stringify(t,(function(t,e){return g(e)?Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t}),{}):e}))}function b(t,e){return t===e||i(t)===i(e)&&!(!t||!e||"object"!==i(t)||"object"!==i(e))&&Object.keys(e).every((function(n){return b(t[n],e[n])}))}function m(t,e){if(t===e)return t;var n=O(t)&&O(e);if(n||g(t)&&g(e)){for(var r=n?t:Object.keys(t),o=r.length,i=n?e:Object.keys(e),u=i.length,a=n?[]:{},c=new Set(r),s=0,l=0;l<u;l++){var f=n?l:i[l];(!n&&c.has(f)||n)&&void 0===t[f]&&void 0===e[f]?(a[f]=void 0,s++):(a[f]=m(t[f],e[f]),a[f]===t[f]&&void 0!==t[f]&&s++)}return o===u&&s===o?t:a}return e}function w(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}function O(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!j(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!j(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype}function j(t){return"[object Object]"===Object.prototype.toString.call(t)}function P(t){return new Promise((function(e){setTimeout(e,t)}))}function k(t,e,n){return"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?m(t,e):e}function S(t){return t}function E(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=[].concat(r(t),[e]);return n&&o.length>n?o.slice(1):o}function T(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=[e].concat(r(t));return n&&o.length>n?o.slice(0,-1):o}var M=Symbol();function _(t,e){return!t.queryFn&&null!=e&&e.initialPromise?function(){return e.initialPromise}:t.queryFn&&t.queryFn!==M?t.queryFn:function(){return Promise.reject(new Error("Missing queryFn: '".concat(t.queryHash,"'")))}}function R(t,e){return"function"==typeof t?t.apply(void 0,r(e)):!!t}},33610:function(t,e,n){n.d(e,{t:function(){return m}}),n(29305),n(32733),n(84701),n(81678),n(44962),n(4754),n(94),n(36947),n(26437),n(52697),n(78557),n(21359),n(83994),n(84518),n(23630),n(82367);var r,o,i,u=n(51115),a=n(26073);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function y(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function v(t,e){return t.get(b(t,e))}function d(t,e,n){return t.set(b(t,e),n),n}function b(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var m=new(r=new WeakMap,o=new WeakMap,i=new WeakMap,function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),y(t=function(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e),r,!0),y(t,o,void 0),y(t,i,void 0),d(i,t,(function(t){if(!a.S$&&window.addEventListener){var e=function(){return t(!0)},n=function(){return t(!1)};return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",e),window.removeEventListener("offline",n)}}})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(u=[{key:"onSubscribe",value:function(){v(o,this)||this.setEventListener(v(i,this))}},{key:"onUnsubscribe",value:function(){var t;this.hasListeners()||(null===(t=v(o,this))||void 0===t||t.call(this),d(o,this,void 0))}},{key:"setEventListener",value:function(t){var e;d(i,this,t),null===(e=v(o,this))||void 0===e||e.call(this),d(o,this,t(this.setOnline.bind(this)))}},{key:"setOnline",value:function(t){v(r,this)!==t&&(d(r,this,t),this.listeners.forEach((function(e){e(t)})))}},{key:"isOnline",value:function(){return v(r,this)}}])&&s(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(u.Q))},50133:function(t,e,n){n.d(e,{$:function(){return _},s:function(){return T}}),n(29305),n(32733),n(84701),n(2623),n(14382),n(76281),n(81678),n(44962),n(4754),n(10849),n(70389),n(94),n(33087),n(36947),n(36457),n(88908),n(26437),n(83810),n(52697),n(78557),n(90076),n(99425),n(21359),n(83994),n(84518),n(90580),n(23630),n(82367);var r,o,i,u,a=n(52672),c=n(85329),s=n(98997);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof a?r:a,s=Object.create(c.prototype);return v(s,"_invoke",function(n,r,o){var i,a,c,s=0,l=o||[],f=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,a=0,c=t,h.n=n,u}};function p(n,r){for(a=n,c=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],p=h.p,y=i[2];n>3?(o=y===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,h.v=r,h.n=i[1]):p<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,h.n=y,a=0))}if(o||n>1)return u;throw f=!0,r}return function(o,l,y){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,y),a=l,c=y;(e=a<2?t:c)||!f;){i||(a?a<3?(a>1&&(h.n=-1),p(a,c)):h.n=c:h.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(f=h.n<0)?c:n.call(r,h))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var u={};function a(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(v(e={},r,(function(){return this})),e),f=s.prototype=a.prototype=Object.create(l);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,v(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,v(f,"constructor",s),v(s,"constructor",c),c.displayName="GeneratorFunction",v(s,o,"GeneratorFunction"),v(f),v(f,o,"Generator"),v(f,r,(function(){return this})),v(f,"toString",(function(){return"[object Generator]"})),(y=function(){return{w:i,m:h}})()}function v(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}v=function(t,e,n,r){if(e)o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n;else{var i=function(e,n){v(t,e,(function(t){return this._invoke(e,n,t)}))};i("next",0),i("throw",1),i("return",2)}},v(t,e,n,r)}function d(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function m(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function j(t,e,n){P(t,e),e.set(t,n)}function P(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function k(t,e){return t.get(E(t,e))}function S(t,e,n){return t.set(E(t,e),n),n}function E(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var T=(r=new WeakMap,o=new WeakMap,i=new WeakMap,u=new WeakSet,function(t){function e(t){var n,a,c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e,n){return e=O(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}(this,e),P(a=n,c=u),c.add(a),j(n,r,void 0),j(n,o,void 0),j(n,i,void 0),n.mutationId=t.mutationId,S(o,n,t.mutationCache),S(r,n,[]),n.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},n.setOptions(t.options),n.scheduleGc(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(e,t),n=e,a=[{key:"setOptions",value:function(t){this.options=t,this.updateGcTime(this.options.gcTime)}},{key:"meta",get:function(){return this.options.meta}},{key:"addObserver",value:function(t){k(r,this).includes(t)||(k(r,this).push(t),this.clearGcTimeout(),k(o,this).notify({type:"observerAdded",mutation:this,observer:t}))}},{key:"removeObserver",value:function(t){S(r,this,k(r,this).filter((function(e){return e!==t}))),this.scheduleGc(),k(o,this).notify({type:"observerRemoved",mutation:this,observer:t})}},{key:"optionalRemove",value:function(){k(r,this).length||("pending"===this.state.status?this.scheduleGc():k(o,this).remove(this))}},{key:"continue",value:function(){var t,e;return null!==(t=null===(e=k(i,this))||void 0===e?void 0:e.continue())&&void 0!==t?t:this.execute(this.state.variables)}},{key:"execute",value:(c=y().m((function t(e){var n,r,a,c,l,f,h,p,v,d,b,m,w,O,g,j,P,T,_,R,C,D,F,A,Q,q,W,x=this;return y().w((function(t){for(;;)switch(t.n){case 0:if(r=function(){E(u,x,M).call(x,{type:"continue"})},S(i,this,(0,s.II)({fn:function(){return x.options.mutationFn?x.options.mutationFn(e):Promise.reject(new Error("No mutationFn found"))},onFail:function(t,e){E(u,x,M).call(x,{type:"failed",failureCount:t,error:e})},onPause:function(){E(u,x,M).call(x,{type:"pause"})},onContinue:r,retry:null!==(n=this.options.retry)&&void 0!==n?n:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:function(){return k(o,x).canRun(x)}})),a="pending"===this.state.status,c=!k(i,this).canStart(),t.p=1,!a){t.n=2;break}r(),t.n=5;break;case 2:return E(u,this,M).call(this,{type:"pending",variables:e,isPaused:c}),t.n=3,null===(w=(O=k(o,this).config).onMutate)||void 0===w?void 0:w.call(O,e,this);case 3:return t.n=4,null===(g=(j=this.options).onMutate)||void 0===g?void 0:g.call(j,e);case 4:(P=t.v)!==this.state.context&&E(u,this,M).call(this,{type:"pending",context:P,variables:e,isPaused:c});case 5:return t.n=6,k(i,this).start();case 6:return T=t.v,t.n=7,null===(l=(f=k(o,this).config).onSuccess)||void 0===l?void 0:l.call(f,T,e,this.state.context,this);case 7:return t.n=8,null===(h=(p=this.options).onSuccess)||void 0===h?void 0:h.call(p,T,e,this.state.context);case 8:return t.n=9,null===(v=(d=k(o,this).config).onSettled)||void 0===v?void 0:v.call(d,T,null,this.state.variables,this.state.context,this);case 9:return t.n=10,null===(b=(m=this.options).onSettled)||void 0===b?void 0:b.call(m,T,null,e,this.state.context);case 10:return E(u,this,M).call(this,{type:"success",data:T}),t.a(2,T);case 11:return t.p=11,W=t.v,t.p=12,t.n=13,null===(_=(R=k(o,this).config).onError)||void 0===_?void 0:_.call(R,W,e,this.state.context,this);case 13:return t.n=14,null===(C=(D=this.options).onError)||void 0===C?void 0:C.call(D,W,e,this.state.context);case 14:return t.n=15,null===(F=(A=k(o,this).config).onSettled)||void 0===F?void 0:F.call(A,void 0,W,this.state.variables,this.state.context,this);case 15:return t.n=16,null===(Q=(q=this.options).onSettled)||void 0===Q?void 0:Q.call(q,void 0,W,e,this.state.context);case 16:throw W;case 17:return t.p=17,E(u,this,M).call(this,{type:"error",error:W}),t.f(17);case 18:return t.p=18,k(o,this).runNext(this),t.f(18);case 19:return t.a(2)}}),t,this,[[12,,17,18],[1,11,18,19]])})),f=function(){var t=this,e=arguments;return new Promise((function(n,r){var o=c.apply(t,e);function i(t){d(o,n,r,i,u,"next",t)}function u(t){d(o,n,r,i,u,"throw",t)}i(void 0)}))},function(t){return f.apply(this,arguments)})}],a&&b(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,c,f}(c.k));function M(t){var e=this;this.state=function(e){switch(t.type){case"failed":return h(h({},e),{},{failureCount:t.failureCount,failureReason:t.error});case"pause":return h(h({},e),{},{isPaused:!0});case"continue":return h(h({},e),{},{isPaused:!1});case"pending":return h(h({},e),{},{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()});case"success":return h(h({},e),{},{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return h(h({},e),{},{data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"})}}(this.state),a.jG.batch((function(){k(r,e).forEach((function(e){e.onMutationUpdate(t)})),k(o,e).notify({mutation:e,type:"updated",action:t})}))}function _(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},51115:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t){if("object"!=r(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}n.d(e,{Q:function(){return u}}),n(29305),n(32733),n(84701),n(81678),n(44962),n(4754),n(94),n(36947),n(78557),n(92745),n(83994),n(82367);var u=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners=new Set,this.subscribe=this.subscribe.bind(this)},(e=[{key:"subscribe",value:function(t){var e=this;return this.listeners.add(t),this.onSubscribe(),function(){e.listeners.delete(t),e.onUnsubscribe()}}},{key:"hasListeners",value:function(){return this.listeners.size>0}},{key:"onSubscribe",value:function(){}},{key:"onUnsubscribe",value:function(){}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()},52672:function(t,e,n){n.d(e,{jG:function(){return s}}),n(78557),n(23630);var r,o,i,u,a,c,s=(r=[],o=0,i=function(t){t()},u=function(t){t()},a=function(t){return setTimeout(t,0)},{batch:function(t){var e,n;o++;try{e=t()}finally{--o||(n=r,r=[],n.length&&a((function(){u((function(){n.forEach((function(t){i(t)}))}))})))}return e},batchCalls:function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];c((function(){t.apply(void 0,n)}))}},schedule:c=function(t){o?r.push(t):a((function(){i(t)}))},setNotifyFunction:function(t){i=t},setBatchNotifyFunction:function(t){u=t},setScheduler:function(t){a=t}})},53804:function(t,e,n){n.d(e,{E:function(){return bt}}),n(29305),n(32733),n(84701),n(2623),n(14382),n(81678),n(69892),n(44962),n(86584),n(89336),n(10849),n(58551),n(70389),n(77575),n(4754),n(94),n(33087),n(36947),n(36457),n(88908),n(26437),n(83810),n(52697),n(78557),n(90076),n(95021),n(73687),n(83994),n(84518),n(23630),n(82367);var r,o=n(26073),i=(n(69703),n(21359),n(70944)),u=n(52672),a=n(51115);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function p(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function b(t,e){return t.get(m(t,e))}function m(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var w,O,g,j=(r=new WeakMap,function(t){function e(){var t,n,o,i,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}(t=function(t,e,n){return e=v(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}(this,e),r,void 0),t.config=u,n=r,o=t,i=new Map,n.set(m(n,o),i),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,a=[{key:"build",value:function(t,e,n){var r,u=e.queryKey,a=null!==(r=e.queryHash)&&void 0!==r?r:(0,o.F$)(u,e),c=this.get(a);return c||(c=new i.X({client:t,queryKey:u,queryHash:a,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(u)}),this.add(c)),c}},{key:"add",value:function(t){b(r,this).has(t.queryHash)||(b(r,this).set(t.queryHash,t),this.notify({type:"added",query:t}))}},{key:"remove",value:function(t){var e=b(r,this).get(t.queryHash);e&&(t.destroy(),e===t&&b(r,this).delete(t.queryHash),this.notify({type:"removed",query:t}))}},{key:"clear",value:function(){var t=this;u.jG.batch((function(){t.getAll().forEach((function(e){t.remove(e)}))}))}},{key:"get",value:function(t){return b(r,this).get(t)}},{key:"getAll",value:function(){return function(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(b(r,this).values())}},{key:"find",value:function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({exact:!0},t);return this.getAll().find((function(t){return(0,o.MK)(e,t)}))}},{key:"findAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.getAll();return Object.keys(t).length>0?e.filter((function(e){return(0,o.MK)(t,e)})):e}},{key:"notify",value:function(t){var e=this;u.jG.batch((function(){e.listeners.forEach((function(e){e(t)}))}))}},{key:"onFocus",value:function(){var t=this;u.jG.batch((function(){t.getAll().forEach((function(t){t.onFocus()}))}))}},{key:"onOnline",value:function(){var t=this;u.jG.batch((function(){t.getAll().forEach((function(t){t.onOnline()}))}))}}],a&&h(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(a.Q)),P=(n(84734),n(74576),n(92745),n(50133));function k(t){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t,e,n){return(e=M(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,M(r.key),r)}}function M(t){var e=function(t){if("object"!=k(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==k(e)?e:e+""}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_=function(){return!!t})()}function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}function D(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function F(t,e){return t.get(Q(t,e))}function A(t,e,n){return t.set(Q(t,e),n),n}function Q(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var q=(w=new WeakMap,O=new WeakMap,g=new WeakMap,function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),D(t=function(t,e,n){return e=R(e),function(t,e){if(e&&("object"==k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_()?Reflect.construct(e,n||[],R(t).constructor):e.apply(t,n))}(this,e),w,void 0),D(t,O,void 0),D(t,g,void 0),t.config=n,A(w,t,new Set),A(O,t,new Map),A(g,t,0),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(e,t),n=e,r=[{key:"build",value:function(t,e,n){var r,o=new P.s({mutationCache:this,mutationId:A(g,this,(r=F(g,this),++r)),options:t.defaultMutationOptions(e),state:n});return this.add(o),o}},{key:"add",value:function(t){F(w,this).add(t);var e=W(t);if("string"==typeof e){var n=F(O,this).get(e);n?n.push(t):F(O,this).set(e,[t])}this.notify({type:"added",mutation:t})}},{key:"remove",value:function(t){if(F(w,this).delete(t)){var e=W(t);if("string"==typeof e){var n=F(O,this).get(e);if(n)if(n.length>1){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}else n[0]===t&&F(O,this).delete(e)}}this.notify({type:"removed",mutation:t})}},{key:"canRun",value:function(t){var e=W(t);if("string"==typeof e){var n=F(O,this).get(e),r=null==n?void 0:n.find((function(t){return"pending"===t.state.status}));return!r||r===t}return!0}},{key:"runNext",value:function(t){var e=W(t);if("string"==typeof e){var n,r,o=null===(n=F(O,this).get(e))||void 0===n?void 0:n.find((function(e){return e!==t&&e.state.isPaused}));return null!==(r=null==o?void 0:o.continue())&&void 0!==r?r:Promise.resolve()}return Promise.resolve()}},{key:"clear",value:function(){var t=this;u.jG.batch((function(){F(w,t).forEach((function(e){t.notify({type:"removed",mutation:e})})),F(w,t).clear(),F(O,t).clear()}))}},{key:"getAll",value:function(){return Array.from(F(w,this))}},{key:"find",value:function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){E(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({exact:!0},t);return this.getAll().find((function(t){return(0,o.nJ)(e,t)}))}},{key:"findAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter((function(e){return(0,o.nJ)(t,e)}))}},{key:"notify",value:function(t){var e=this;u.jG.batch((function(){e.listeners.forEach((function(e){e(t)}))}))}},{key:"resumePausedMutations",value:function(){var t=this.getAll().filter((function(t){return t.state.isPaused}));return u.jG.batch((function(){return Promise.all(t.map((function(t){return t.continue().catch(o.lQ)})))}))}}],r&&T(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.Q));function W(t){var e;return null===(e=t.options.scope)||void 0===e?void 0:e.id}var x,G,U,I,K,L,B,H,$=n(621),N=n(33610);function z(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof a?r:a,s=Object.create(c.prototype);return Z(s,"_invoke",function(n,r,o){var i,a,c,s=0,l=o||[],f=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,a=0,c=t,h.n=n,u}};function p(n,r){for(a=n,c=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],p=h.p,y=i[2];n>3?(o=y===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,h.v=r,h.n=i[1]):p<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,h.n=y,a=0))}if(o||n>1)return u;throw f=!0,r}return function(o,l,y){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,y),a=l,c=y;(e=a<2?t:c)||!f;){i||(a?a<3?(a>1&&(h.n=-1),p(a,c)):h.n=c:h.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(f=h.n<0)?c:n.call(r,h))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var u={};function a(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Z(e={},r,(function(){return this})),e),f=s.prototype=a.prototype=Object.create(l);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Z(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,Z(f,"constructor",s),Z(s,"constructor",c),c.displayName="GeneratorFunction",Z(s,o,"GeneratorFunction"),Z(f),Z(f,o,"Generator"),Z(f,r,(function(){return this})),Z(f,"toString",(function(){return"[object Generator]"})),(z=function(){return{w:i,m:h}})()}function Z(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Z=function(t,e,n,r){if(e)o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n;else{var i=function(e,n){Z(t,e,(function(t){return this._invoke(e,n,t)}))};i("next",0),i("throw",1),i("return",2)}},Z(t,e,n,r)}function J(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function X(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){J(i,r,o,u,a,"next",t)}function a(t){J(i,r,o,u,a,"throw",t)}u(void 0)}))}}function V(t){return{onFetch:function(e,n){var r,i,u,a=e.options,c=null===(r=e.fetchOptions)||void 0===r||null===(r=r.meta)||void 0===r||null===(r=r.fetchMore)||void 0===r?void 0:r.direction,s=(null===(i=e.state.data)||void 0===i?void 0:i.pages)||[],l=(null===(u=e.state.data)||void 0===u?void 0:u.pageParams)||[],f={pages:[],pageParams:[]},h=0,p=function(){var n=X(z().m((function n(){var r,i,u,p,y,v,d,b,m,w;return z().w((function(n){for(;;)switch(n.n){case 0:if(r=!1,i=function(t){Object.defineProperty(t,"signal",{enumerable:!0,get:function(){return e.signal.aborted?r=!0:e.signal.addEventListener("abort",(function(){r=!0})),e.signal}})},u=(0,o.ZM)(e.options,e.fetchOptions),p=function(){var t=X(z().m((function t(n,a,c){var s,l,f,h;return z().w((function(t){for(;;)switch(t.n){case 0:if(!r){t.n=1;break}return t.a(2,Promise.reject());case 1:if(null!=a||!n.pages.length){t.n=2;break}return t.a(2,Promise.resolve(n));case 2:return p=void 0,p={client:e.client,queryKey:e.queryKey,pageParam:a,direction:c?"backward":"forward",meta:e.options.meta},i(p),s=p,t.n=3,u(s);case 3:return l=t.v,f=e.options.maxPages,h=c?o.ZZ:o.y9,t.a(2,{pages:h(n.pages,l,f),pageParams:h(n.pageParams,a,f)})}var p}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),!c||!s.length){n.n=2;break}return d=((y="backward"===c)?tt:Y)(a,v={pages:s,pageParams:l}),n.n=1,p(v,d,y);case 1:f=n.v,n.n=7;break;case 2:b=null!=t?t:s.length;case 3:if(w=0===h?null!==(m=l[0])&&void 0!==m?m:a.initialPageParam:Y(a,f),!(h>0&&null==w)){n.n=4;break}return n.a(3,7);case 4:return n.n=5,p(f,w);case 5:f=n.v,h++;case 6:if(h<b){n.n=3;break}case 7:return n.a(2,f)}}),n)})));return function(){return n.apply(this,arguments)}}();e.options.persister?e.fetchFn=function(){var t,r;return null===(t=(r=e.options).persister)||void 0===t?void 0:t.call(r,p,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=p}}}function Y(t,e){var n=e.pages,r=e.pageParams,o=n.length-1;return n.length>0?t.getNextPageParam(n[o],n,r[o],r):void 0}function tt(t,e){var n,r=e.pages,o=e.pageParams;return r.length>0?null===(n=t.getPreviousPageParam)||void 0===n?void 0:n.call(t,r[0],r,o[0],o):void 0}function et(t){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(t)}function nt(t){return function(t){if(Array.isArray(t))return rt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return rt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function it(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ut(t,e,n){return(e=ht(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function at(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var c=r&&r.prototype instanceof a?r:a,s=Object.create(c.prototype);return ct(s,"_invoke",function(n,r,o){var i,a,c,s=0,l=o||[],f=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,a=0,c=t,h.n=n,u}};function p(n,r){for(a=n,c=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],p=h.p,y=i[2];n>3?(o=y===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=n<2&&p<i[1])?(a=0,h.v=r,h.n=i[1]):p<y&&(o=n<3||i[0]>r||r>y)&&(i[4]=n,i[5]=r,h.n=y,a=0))}if(o||n>1)return u;throw f=!0,r}return function(o,l,y){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,y),a=l,c=y;(e=a<2?t:c)||!f;){i||(a?a<3?(a>1&&(h.n=-1),p(a,c)):h.n=c:h.v=c);try{if(s=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(f=h.n<0)?c:n.call(r,h))!==u)break}catch(e){i=t,a=1,c=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var u={};function a(){}function c(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(ct(e={},r,(function(){return this})),e),f=s.prototype=a.prototype=Object.create(l);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,ct(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,ct(f,"constructor",s),ct(s,"constructor",c),c.displayName="GeneratorFunction",ct(s,o,"GeneratorFunction"),ct(f),ct(f,o,"Generator"),ct(f,r,(function(){return this})),ct(f,"toString",(function(){return"[object Generator]"})),(at=function(){return{w:i,m:h}})()}function ct(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ct=function(t,e,n,r){if(e)o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n;else{var i=function(e,n){ct(t,e,(function(t){return this._invoke(e,n,t)}))};i("next",0),i("throw",1),i("return",2)}},ct(t,e,n,r)}function st(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function lt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){st(i,r,o,u,a,"next",t)}function a(t){st(i,r,o,u,a,"throw",t)}u(void 0)}))}}function ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ht(r.key),r)}}function ht(t){var e=function(t){if("object"!=et(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==et(e)?e:e+""}function pt(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function yt(t,e){return t.get(dt(t,e))}function vt(t,e,n){return t.set(dt(t,e),n),n}function dt(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var bt=(x=new WeakMap,G=new WeakMap,U=new WeakMap,I=new WeakMap,K=new WeakMap,L=new WeakMap,B=new WeakMap,H=new WeakMap,function(){return t=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),pt(this,x,void 0),pt(this,G,void 0),pt(this,U,void 0),pt(this,I,void 0),pt(this,K,void 0),pt(this,L,void 0),pt(this,B,void 0),pt(this,H,void 0),vt(x,this,e.queryCache||new j),vt(G,this,e.mutationCache||new q),vt(U,this,e.defaultOptions||{}),vt(I,this,new Map),vt(K,this,new Map),vt(L,this,0)},e=[{key:"mount",value:function(){var t,e=this;vt(L,this,(t=yt(L,this),++t)),1===yt(L,this)&&(vt(B,this,$.m.subscribe(function(){var t=lt(at().m((function t(n){return at().w((function(t){for(;;)switch(t.n){case 0:if(!n){t.n=2;break}return t.n=1,e.resumePausedMutations();case 1:yt(x,e).onFocus();case 2:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}())),vt(H,this,N.t.subscribe(function(){var t=lt(at().m((function t(n){return at().w((function(t){for(;;)switch(t.n){case 0:if(!n){t.n=2;break}return t.n=1,e.resumePausedMutations();case 1:yt(x,e).onOnline();case 2:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}())))}},{key:"unmount",value:function(){var t,e,n;vt(L,this,(t=yt(L,this),--t)),0===yt(L,this)&&(null===(e=yt(B,this))||void 0===e||e.call(this),vt(B,this,void 0),null===(n=yt(H,this))||void 0===n||n.call(this),vt(H,this,void 0))}},{key:"isFetching",value:function(t){return yt(x,this).findAll(it(it({},t),{},{fetchStatus:"fetching"})).length}},{key:"isMutating",value:function(t){return yt(G,this).findAll(it(it({},t),{},{status:"pending"})).length}},{key:"getQueryData",value:function(t){var e,n=this.defaultQueryOptions({queryKey:t});return null===(e=yt(x,this).get(n.queryHash))||void 0===e?void 0:e.state.data}},{key:"ensureQueryData",value:function(t){var e=this.defaultQueryOptions(t),n=yt(x,this).build(this,e),r=n.state.data;return void 0===r?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime((0,o.d2)(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}},{key:"getQueriesData",value:function(t){return yt(x,this).findAll(t).map((function(t){return[t.queryKey,t.state.data]}))}},{key:"setQueryData",value:function(t,e,n){var r=this.defaultQueryOptions({queryKey:t}),i=yt(x,this).get(r.queryHash),u=null==i?void 0:i.state.data,a=(0,o.Zw)(e,u);if(void 0!==a)return yt(x,this).build(this,r).setData(a,it(it({},n),{},{manual:!0}))}},{key:"setQueriesData",value:function(t,e,n){var r=this;return u.jG.batch((function(){return yt(x,r).findAll(t).map((function(t){var o=t.queryKey;return[o,r.setQueryData(o,e,n)]}))}))}},{key:"getQueryState",value:function(t){var e,n=this.defaultQueryOptions({queryKey:t});return null===(e=yt(x,this).get(n.queryHash))||void 0===e?void 0:e.state}},{key:"removeQueries",value:function(t){var e=yt(x,this);u.jG.batch((function(){e.findAll(t).forEach((function(t){e.remove(t)}))}))}},{key:"resetQueries",value:function(t,e){var n=this,r=yt(x,this);return u.jG.batch((function(){return r.findAll(t).forEach((function(t){t.reset()})),n.refetchQueries(it({type:"active"},t),e)}))}},{key:"cancelQueries",value:function(t){var e=this,n=it({revert:!0},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),r=u.jG.batch((function(){return yt(x,e).findAll(t).map((function(t){return t.cancel(n)}))}));return Promise.all(r).then(o.lQ).catch(o.lQ)}},{key:"invalidateQueries",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u.jG.batch((function(){var r,o;return yt(x,e).findAll(t).forEach((function(t){t.invalidate()})),"none"===(null==t?void 0:t.refetchType)?Promise.resolve():e.refetchQueries(it(it({},t),{},{type:null!==(r=null!==(o=null==t?void 0:t.refetchType)&&void 0!==o?o:null==t?void 0:t.type)&&void 0!==r?r:"active"}),n)}))}},{key:"refetchQueries",value:function(t){var e,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=it(it({},r),{},{cancelRefetch:null===(e=r.cancelRefetch)||void 0===e||e}),a=u.jG.batch((function(){return yt(x,n).findAll(t).filter((function(t){return!t.isDisabled()&&!t.isStatic()})).map((function(t){var e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(o.lQ)),"paused"===t.state.fetchStatus?Promise.resolve():e}))}));return Promise.all(a).then(o.lQ)}},{key:"fetchQuery",value:function(t){var e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);var n=yt(x,this).build(this,e);return n.isStaleByTime((0,o.d2)(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}},{key:"prefetchQuery",value:function(t){return this.fetchQuery(t).then(o.lQ).catch(o.lQ)}},{key:"fetchInfiniteQuery",value:function(t){return t.behavior=V(t.pages),this.fetchQuery(t)}},{key:"prefetchInfiniteQuery",value:function(t){return this.fetchInfiniteQuery(t).then(o.lQ).catch(o.lQ)}},{key:"ensureInfiniteQueryData",value:function(t){return t.behavior=V(t.pages),this.ensureQueryData(t)}},{key:"resumePausedMutations",value:function(){return N.t.isOnline()?yt(G,this).resumePausedMutations():Promise.resolve()}},{key:"getQueryCache",value:function(){return yt(x,this)}},{key:"getMutationCache",value:function(){return yt(G,this)}},{key:"getDefaultOptions",value:function(){return yt(U,this)}},{key:"setDefaultOptions",value:function(t){vt(U,this,t)}},{key:"setQueryDefaults",value:function(t,e){yt(I,this).set((0,o.EN)(t),{queryKey:t,defaultOptions:e})}},{key:"getQueryDefaults",value:function(t){var e=nt(yt(I,this).values()),n={};return e.forEach((function(e){(0,o.Cp)(t,e.queryKey)&&Object.assign(n,e.defaultOptions)})),n}},{key:"setMutationDefaults",value:function(t,e){yt(K,this).set((0,o.EN)(t),{mutationKey:t,defaultOptions:e})}},{key:"getMutationDefaults",value:function(t){var e=nt(yt(K,this).values()),n={};return e.forEach((function(e){(0,o.Cp)(t,e.mutationKey)&&Object.assign(n,e.defaultOptions)})),n}},{key:"defaultQueryOptions",value:function(t){if(t._defaulted)return t;var e=it(it(it(it({},yt(U,this).queries),this.getQueryDefaults(t.queryKey)),t),{},{_defaulted:!0});return e.queryHash||(e.queryHash=(0,o.F$)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===o.hT&&(e.enabled=!1),e}},{key:"defaultMutationOptions",value:function(t){return null!=t&&t._defaulted?t:it(it(it(it({},yt(U,this).mutations),(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey)),t),{},{_defaulted:!0})}},{key:"clear",value:function(){yt(x,this).clear(),yt(G,this).clear()}}],e&&ft(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}())},61477:function(t,e,n){function r(){var t,e,n=new Promise((function(n,r){t=n,e=r}));function r(t){Object.assign(n,t),delete n.resolve,delete n.reject}return n.status="pending",n.catch((function(){})),n.resolve=function(e){r({status:"fulfilled",value:e}),t(e)},n.reject=function(t){r({status:"rejected",reason:t}),e(t)},n}n.d(e,{T:function(){return r}}),n(77575),n(78557),n(90076)},70944:function(t,e,n){n.d(e,{X:function(){return R},k:function(){return D}}),n(32733),n(84701),n(14382),n(69703),n(76281),n(29305),n(81678),n(44962),n(36947),n(4754),n(94),n(33087),n(36457),n(88908),n(26437),n(83810),n(52697),n(78557),n(90076),n(99425),n(21359),n(61642),n(83994),n(84518),n(90580),n(23630),n(82367);var r,o,i,u,a,c,s,l,f=n(26073),h=n(52672),p=n(98997),y=n(85329);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){return(e=O(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,O(r.key),r)}}function O(t){var e=function(t){if("object"!=v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function j(){return j="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=P(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},j.apply(null,arguments)}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},k(t,e)}function S(t,e,n){E(t,e),e.set(t,n)}function E(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function T(t,e){return t.get(_(t,e))}function M(t,e,n){return t.set(_(t,e),n),n}function _(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var R=(r=new WeakMap,o=new WeakMap,i=new WeakMap,u=new WeakMap,a=new WeakMap,c=new WeakMap,s=new WeakMap,l=new WeakSet,function(t){function e(t){var n,f,h,p,y,d,b,m;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f=function(t,e,n){return e=P(e),function(t,e){if(e&&("object"==v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,g()?Reflect.construct(e,n||[],P(t).constructor):e.apply(t,n))}(this,e),E(h=f,p=l),p.add(h),S(f,r,void 0),S(f,o,void 0),S(f,i,void 0),S(f,u,void 0),S(f,a,void 0),S(f,c,void 0),S(f,s,void 0),M(s,f,!1),M(c,f,t.defaultOptions),f.setOptions(t.options),f.observers=[],M(u,f,t.client),M(i,f,T(u,f).getQueryCache()),f.queryKey=t.queryKey,f.queryHash=t.queryHash,M(r,f,(m=(b=void 0!==(d="function"==typeof(y=f.options).initialData?y.initialData():y.initialData))?"function"==typeof y.initialDataUpdatedAt?y.initialDataUpdatedAt():y.initialDataUpdatedAt:0,{data:d,dataUpdateCount:0,dataUpdatedAt:b?null!=m?m:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:b?"success":"pending",fetchStatus:"idle"})),f.state=null!==(n=t.state)&&void 0!==n?n:T(r,f),f.scheduleGc(),f}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e)}(e,t),n=e,h=[{key:"meta",get:function(){return this.options.meta}},{key:"promise",get:function(){var t;return null===(t=T(a,this))||void 0===t?void 0:t.promise}},{key:"setOptions",value:function(t){this.options=b(b({},T(c,this)),t),this.updateGcTime(this.options.gcTime)}},{key:"optionalRemove",value:function(){this.observers.length||"idle"!==this.state.fetchStatus||T(i,this).remove(this)}},{key:"setData",value:function(t,e){var n=(0,f.pl)(this.state.data,t,this.options);return _(l,this,C).call(this,{data:n,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),n}},{key:"setState",value:function(t,e){_(l,this,C).call(this,{type:"setState",state:t,setStateOptions:e})}},{key:"cancel",value:function(t){var e,n,r=null===(e=T(a,this))||void 0===e?void 0:e.promise;return null===(n=T(a,this))||void 0===n||n.cancel(t),r?r.then(f.lQ).catch(f.lQ):Promise.resolve()}},{key:"destroy",value:function(){var t,n,r;(t=e,n=this,"function"==typeof(r=j(P(1&3?t.prototype:t),"destroy",n))?function(t){return r.apply(n,t)}:r)([]),this.cancel({silent:!0})}},{key:"reset",value:function(){this.destroy(),this.setState(T(r,this))}},{key:"isActive",value:function(){var t=this;return this.observers.some((function(e){return!1!==(0,f.Eh)(e.options.enabled,t)}))}},{key:"isDisabled",value:function(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===f.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}},{key:"isStatic",value:function(){var t=this;return this.getObserversCount()>0&&this.observers.some((function(e){return"static"===(0,f.d2)(e.options.staleTime,t)}))}},{key:"isStale",value:function(){return this.getObserversCount()>0?this.observers.some((function(t){return t.getCurrentResult().isStale})):void 0===this.state.data||this.state.isInvalidated}},{key:"isStaleByTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,f.j3)(this.state.dataUpdatedAt,t))}},{key:"onFocus",value:function(){var t,e=this.observers.find((function(t){return t.shouldFetchOnWindowFocus()}));null==e||e.refetch({cancelRefetch:!1}),null===(t=T(a,this))||void 0===t||t.continue()}},{key:"onOnline",value:function(){var t,e=this.observers.find((function(t){return t.shouldFetchOnReconnect()}));null==e||e.refetch({cancelRefetch:!1}),null===(t=T(a,this))||void 0===t||t.continue()}},{key:"addObserver",value:function(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(i,this).notify({type:"observerAdded",query:this,observer:t}))}},{key:"removeObserver",value:function(t){this.observers.includes(t)&&(this.observers=this.observers.filter((function(e){return e!==t})),this.observers.length||(T(a,this)&&(T(s,this)?T(a,this).cancel({revert:!0}):T(a,this).cancelRetry()),this.scheduleGc()),T(i,this).notify({type:"observerRemoved",query:this,observer:t}))}},{key:"getObserversCount",value:function(){return this.observers.length}},{key:"invalidate",value:function(){this.state.isInvalidated||_(l,this,C).call(this,{type:"invalidate"})}},{key:"fetch",value:function(t,e){var n,r,c=this;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(T(a,this))return T(a,this).continueRetry(),T(a,this).promise;if(t&&this.setOptions(t),!this.options.queryFn){var h=this.observers.find((function(t){return t.options.queryFn}));h&&this.setOptions(h.options)}var y,v,d=new AbortController,b=function(t){Object.defineProperty(t,"signal",{enumerable:!0,get:function(){return M(s,c,!0),d.signal}})},m=(y={fetchOptions:e,options:c.options,queryKey:c.queryKey,client:T(u,c),state:c.state,fetchFn:function(){var t,n=(0,f.ZM)(c.options,e),r=(t={client:T(u,c),queryKey:c.queryKey,meta:c.meta},b(t),t);return M(s,c,!1),c.options.persister?c.options.persister(n,r,c):n(r)}},b(y),y);null===(n=this.options.behavior)||void 0===n||n.onFetch(m,this),M(o,this,this.state),("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(r=m.fetchOptions)||void 0===r?void 0:r.meta))&&_(l,this,C).call(this,{type:"fetch",meta:null===(v=m.fetchOptions)||void 0===v?void 0:v.meta});var w=function(t){var e,n,r,o;(0,p.wm)(t)&&t.silent||_(l,c,C).call(c,{type:"error",error:t}),(0,p.wm)(t)||(null===(e=(n=T(i,c).config).onError)||void 0===e||e.call(n,t,c),null===(r=(o=T(i,c).config).onSettled)||void 0===r||r.call(o,c.state.data,t,c)),c.scheduleGc()};return M(a,this,(0,p.II)({initialPromise:null==e?void 0:e.initialPromise,fn:m.fetchFn,abort:d.abort.bind(d),onSuccess:function(t){var e,n,r,o;if(void 0!==t){try{c.setData(t)}catch(t){return void w(t)}null===(e=(n=T(i,c).config).onSuccess)||void 0===e||e.call(n,t,c),null===(r=(o=T(i,c).config).onSettled)||void 0===r||r.call(o,t,c.state.error,c),c.scheduleGc()}else w(new Error("".concat(c.queryHash," data is undefined")))},onError:w,onFail:function(t,e){_(l,c,C).call(c,{type:"failed",failureCount:t,error:e})},onPause:function(){_(l,c,C).call(c,{type:"pause"})},onContinue:function(){_(l,c,C).call(c,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:function(){return!0}})),T(a,this).start()}}],h&&w(n.prototype,h),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,h}(y.k));function C(t){var e=this;this.state=function(n){var r,i;switch(t.type){case"failed":return b(b({},n),{},{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return b(b({},n),{},{fetchStatus:"paused"});case"continue":return b(b({},n),{},{fetchStatus:"fetching"});case"fetch":return b(b(b({},n),D(n.data,e.options)),{},{fetchMeta:null!==(r=t.meta)&&void 0!==r?r:null});case"success":return M(o,e,void 0),b(b({},n),{},{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:null!==(i=t.dataUpdatedAt)&&void 0!==i?i:Date.now(),error:null,isInvalidated:!1,status:"success"},!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":var u=t.error;return(0,p.wm)(u)&&u.revert&&T(o,e)?b(b({},T(o,e)),{},{fetchStatus:"idle"}):b(b({},n),{},{error:u,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error"});case"invalidate":return b(b({},n),{},{isInvalidated:!0});case"setState":return b(b({},n),t.state)}}(this.state),h.jG.batch((function(){e.observers.forEach((function(t){t.onQueryUpdate()})),T(i,e).notify({query:e,type:"updated",action:t})}))}function D(t,e){return b({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,p.v_)(e.networkMode)?"fetching":"paused"},void 0===t&&{error:null,status:"pending"})}},79294:function(t,e,n){n.d(e,{$:function(){return G}}),n(29305),n(32733),n(84701),n(81678),n(14382),n(44962),n(77575),n(83810),n(4754),n(94),n(33087),n(36947),n(36457),n(88908),n(26437),n(52697),n(78557),n(61642),n(92745),n(21359),n(83994),n(84518),n(90580),n(23630),n(82367);var r,o,i,u,a,c,s,l,f,h,p,y,v,d,b,m,w=n(621),O=n(52672),g=n(70944),j=n(51115),P=n(61477),k=n(26073);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){M(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function M(t,e,n){return(e=R(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,R(r.key),r)}}function R(t){var e=function(t){if("object"!=S(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==S(e)?e:e+""}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(C=function(){return!!t})()}function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}function F(t,e){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F(t,e)}function A(t,e,n){Q(t,e),e.set(t,n)}function Q(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function q(t,e){return t.get(x(t,e))}function W(t,e,n){return t.set(x(t,e),n),n}function x(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var G=(r=new WeakMap,o=new WeakMap,i=new WeakMap,u=new WeakMap,a=new WeakMap,c=new WeakMap,s=new WeakMap,l=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,y=new WeakMap,v=new WeakMap,d=new WeakMap,b=new WeakMap,m=new WeakSet,function(t){function e(t,n){var w,O,g;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),w=function(t,e,n){return e=D(e),function(t,e){if(e&&("object"==S(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,C()?Reflect.construct(e,n||[],D(t).constructor):e.apply(t,n))}(this,e),Q(O=w,g=m),g.add(O),A(w,r,void 0),A(w,o,void 0),A(w,i,void 0),A(w,u,void 0),A(w,a,void 0),A(w,c,void 0),A(w,s,void 0),A(w,l,void 0),A(w,f,void 0),A(w,h,void 0),A(w,p,void 0),A(w,y,void 0),A(w,v,void 0),A(w,d,void 0),A(w,b,new Set),w.options=n,W(r,w,t),W(l,w,null),W(s,w,(0,P.T)()),w.options.experimental_prefetchInRender||q(s,w).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),w.bindMethods(),w.setOptions(n),w}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F(t,e)}(e,t),n=e,w=[{key:"bindMethods",value:function(){this.refetch=this.refetch.bind(this)}},{key:"onSubscribe",value:function(){1===this.listeners.size&&(q(o,this).addObserver(this),Z(q(o,this),this.options)?x(m,this,U).call(this):this.updateResult(),x(m,this,B).call(this))}},{key:"onUnsubscribe",value:function(){this.hasListeners()||this.destroy()}},{key:"shouldFetchOnReconnect",value:function(){return J(q(o,this),this.options,this.options.refetchOnReconnect)}},{key:"shouldFetchOnWindowFocus",value:function(){return J(q(o,this),this.options,this.options.refetchOnWindowFocus)}},{key:"destroy",value:function(){this.listeners=new Set,x(m,this,H).call(this),x(m,this,$).call(this),q(o,this).removeObserver(this)}},{key:"setOptions",value:function(t){var e=this.options,n=q(o,this);if(this.options=q(r,this).defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,k.Eh)(this.options.enabled,q(o,this)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");x(m,this,N).call(this),q(o,this).setOptions(this.options),e._defaulted&&!(0,k.f8)(this.options,e)&&q(r,this).getQueryCache().notify({type:"observerOptionsUpdated",query:q(o,this),observer:this});var i=this.hasListeners();i&&X(q(o,this),n,this.options,e)&&x(m,this,U).call(this),this.updateResult(),!i||q(o,this)===n&&(0,k.Eh)(this.options.enabled,q(o,this))===(0,k.Eh)(e.enabled,q(o,this))&&(0,k.d2)(this.options.staleTime,q(o,this))===(0,k.d2)(e.staleTime,q(o,this))||x(m,this,I).call(this);var u=x(m,this,K).call(this);!i||q(o,this)===n&&(0,k.Eh)(this.options.enabled,q(o,this))===(0,k.Eh)(e.enabled,q(o,this))&&u===q(d,this)||x(m,this,L).call(this,u)}},{key:"getOptimisticResult",value:function(t){var e,n=q(r,this).getQueryCache().build(q(r,this),t),i=this.createResult(n,t);return e=i,!(0,k.f8)(this.getCurrentResult(),e)&&(W(u,this,i),W(c,this,this.options),W(a,this,q(o,this).state)),i}},{key:"getCurrentResult",value:function(){return q(u,this)}},{key:"trackResult",value:function(t,e){var n=this;return new Proxy(t,{get:function(t,r){return n.trackProp(r),null==e||e(r),Reflect.get(t,r)}})}},{key:"trackProp",value:function(t){q(b,this).add(t)}},{key:"getCurrentQuery",value:function(){return q(o,this)}},{key:"refetch",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({},(function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),t));return this.fetch(T({},e))}},{key:"fetchOptimistic",value:function(t){var e=this,n=q(r,this).defaultQueryOptions(t),o=q(r,this).getQueryCache().build(q(r,this),n);return o.fetch().then((function(){return e.createResult(o,n)}))}},{key:"fetch",value:function(t){var e,n=this;return x(m,this,U).call(this,T(T({},t),{},{cancelRefetch:null===(e=t.cancelRefetch)||void 0===e||e})).then((function(){return n.updateResult(),q(u,n)}))}},{key:"createResult",value:function(t,e){var n,r=this,y=q(o,this),v=this.options,d=q(u,this),b=q(a,this),m=q(c,this),w=t!==y?t.state:q(i,this),O=t.state,j=T({},O),S=!1;if(e._optimisticResults){var E=this.hasListeners(),M=!E&&Z(t,e),_=E&&X(t,y,e,v);(M||_)&&(j=T(T({},j),(0,g.k)(O.data,t.options))),"isRestoring"===e._optimisticResults&&(j.fetchStatus="idle")}var R=j,C=R.error,D=R.errorUpdatedAt,F=R.status;n=j.data;var A,Q,x=!1;if(void 0!==e.placeholderData&&void 0===n&&"pending"===F&&(null!=d&&d.isPlaceholderData&&e.placeholderData===(null==m?void 0:m.placeholderData)?(A=d.data,x=!0):A="function"==typeof e.placeholderData?e.placeholderData(null===(Q=q(p,this))||void 0===Q?void 0:Q.state.data,q(p,this)):e.placeholderData,void 0!==A&&(F="success",n=(0,k.pl)(null==d?void 0:d.data,A,e),S=!0)),e.select&&void 0!==n&&!x)if(d&&n===(null==b?void 0:b.data)&&e.select===q(f,this))n=q(h,this);else try{W(f,this,e.select),n=e.select(n),n=(0,k.pl)(null==d?void 0:d.data,n,e),W(h,this,n),W(l,this,null)}catch(t){W(l,this,t)}q(l,this)&&(C=q(l,this),n=q(h,this),D=Date.now(),F="error");var G="fetching"===j.fetchStatus,U="pending"===F,I="error"===F,K=U&&G,L=void 0!==n,B={status:F,fetchStatus:j.fetchStatus,isPending:U,isSuccess:"success"===F,isError:I,isInitialLoading:K,isLoading:K,data:n,dataUpdatedAt:j.dataUpdatedAt,error:C,errorUpdatedAt:D,failureCount:j.fetchFailureCount,failureReason:j.fetchFailureReason,errorUpdateCount:j.errorUpdateCount,isFetched:j.dataUpdateCount>0||j.errorUpdateCount>0,isFetchedAfterMount:j.dataUpdateCount>w.dataUpdateCount||j.errorUpdateCount>w.errorUpdateCount,isFetching:G,isRefetching:G&&!U,isLoadingError:I&&!L,isPaused:"paused"===j.fetchStatus,isPlaceholderData:S,isRefetchError:I&&L,isStale:V(t,e),refetch:this.refetch,promise:q(s,this)};if(this.options.experimental_prefetchInRender){var H=function(t){"error"===B.status?t.reject(B.error):void 0!==B.data&&t.resolve(B.data)},$=function(){var t=W(s,r,B.promise=(0,P.T)());H(t)},N=q(s,this);switch(N.status){case"pending":t.queryHash===y.queryHash&&H(N);break;case"fulfilled":"error"!==B.status&&B.data===N.value||$();break;case"rejected":"error"===B.status&&B.error===N.reason||$()}}return B}},{key:"updateResult",value:function(){var t=this,e=q(u,this),n=this.createResult(q(o,this),this.options);W(a,this,q(o,this).state),W(c,this,this.options),void 0!==q(a,this).data&&W(p,this,q(o,this)),(0,k.f8)(n,e)||(W(u,this,n),x(m,this,z).call(this,{listeners:function(){if(!e)return!0;var n=t.options.notifyOnChangeProps,r="function"==typeof n?n():n;if("all"===r||!r&&!q(b,t).size)return!0;var o=new Set(null!=r?r:q(b,t));return t.options.throwOnError&&o.add("error"),Object.keys(q(u,t)).some((function(n){var r=n;return q(u,t)[r]!==e[r]&&o.has(r)}))}()}))}},{key:"onQueryUpdate",value:function(){this.updateResult(),this.hasListeners()&&x(m,this,B).call(this)}}],w&&_(n.prototype,w),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,w}(j.Q));function U(t){x(m,this,N).call(this);var e=q(o,this).fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(k.lQ)),e}function I(){var t=this;x(m,this,H).call(this);var e=(0,k.d2)(this.options.staleTime,q(o,this));if(!k.S$&&!q(u,this).isStale&&(0,k.gn)(e)){var n=(0,k.j3)(q(u,this).dataUpdatedAt,e);W(y,this,setTimeout((function(){q(u,t).isStale||t.updateResult()}),n+1))}}function K(){var t;return null!==(t="function"==typeof this.options.refetchInterval?this.options.refetchInterval(q(o,this)):this.options.refetchInterval)&&void 0!==t&&t}function L(t){var e=this;x(m,this,$).call(this),W(d,this,t),!k.S$&&!1!==(0,k.Eh)(this.options.enabled,q(o,this))&&(0,k.gn)(q(d,this))&&0!==q(d,this)&&W(v,this,setInterval((function(){(e.options.refetchIntervalInBackground||w.m.isFocused())&&x(m,e,U).call(e)}),q(d,this)))}function B(){x(m,this,I).call(this),x(m,this,L).call(this,x(m,this,K).call(this))}function H(){q(y,this)&&(clearTimeout(q(y,this)),W(y,this,void 0))}function $(){q(v,this)&&(clearInterval(q(v,this)),W(v,this,void 0))}function N(){var t=q(r,this).getQueryCache().build(q(r,this),this.options);if(t!==q(o,this)){var e=q(o,this);W(o,this,t),W(i,this,t.state),this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}}function z(t){var e=this;O.jG.batch((function(){t.listeners&&e.listeners.forEach((function(t){t(q(u,e))})),q(r,e).getQueryCache().notify({query:q(o,e),type:"observerResultsUpdated"})}))}function Z(t,e){return function(t,e){return!1!==(0,k.Eh)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||void 0!==t.state.data&&J(t,e,e.refetchOnMount)}function J(t,e,n){if(!1!==(0,k.Eh)(e.enabled,t)&&"static"!==(0,k.d2)(e.staleTime,t)){var r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&V(t,e)}return!1}function X(t,e,n,r){return(t!==e||!1===(0,k.Eh)(r.enabled,t))&&(!n.suspense||"error"!==t.state.status)&&V(t,n)}function V(t,e){return!1!==(0,k.Eh)(e.enabled,t)&&t.isStaleByTime((0,k.d2)(e.staleTime,t))}},85329:function(t,e,n){n.d(e,{k:function(){return f}}),n(29305),n(32733),n(84701),n(81678),n(44962),n(4754),n(94),n(36947),n(78557),n(83994),n(84518),n(82367);var r,o=n(26073);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(t,e){return t.get(l(t,e))}function s(t,e,n){return t.set(l(t,e),n),n}function l(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var f=(r=new WeakMap,function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}(this,r,void 0)},(e=[{key:"destroy",value:function(){this.clearGcTimeout()}},{key:"scheduleGc",value:function(){var t=this;this.clearGcTimeout(),(0,o.gn)(this.gcTime)&&s(r,this,setTimeout((function(){t.optionalRemove()}),this.gcTime))}},{key:"updateGcTime",value:function(t){this.gcTime=Math.max(this.gcTime||0,null!=t?t:o.S$?1/0:3e5)}},{key:"clearGcTimeout",value:function(){c(r,this)&&(clearTimeout(c(r,this)),s(r,this,void 0))}}])&&u(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}())},98997:function(t,e,n){n.d(e,{II:function(){return d},v_:function(){return p},wm:function(){return v}}),n(29305),n(32733),n(84701),n(81678),n(84734),n(44962),n(4754),n(58551),n(94),n(36947),n(26437),n(52697),n(78557),n(90076),n(21359),n(73687),n(83994),n(82367);var r=n(621),o=n(33610),i=n(61477),u=n(26073);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t){var e="function"==typeof Map?new Map:void 0;return c=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&l(o,n.prototype),o}(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},c(t)}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t){return Math.min(1e3*Math.pow(2,t),3e4)}function p(t){return"online"!==(null!=t?t:"online")||o.t.isOnline()}var y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,n){return e=f(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}(this,e,["CancelledError"])).revert=null==t?void 0:t.revert,n.silent=null==t?void 0:t.silent,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),n=e,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(c(Error));function v(t){return t instanceof y}function d(t){var e,n=!1,a=0,c=!1,s=(0,i.T)(),l=function(){return r.m.isFocused()&&("always"===t.networkMode||o.t.isOnline())&&t.canRun()},f=function(){return p(t.networkMode)&&t.canRun()},v=function(n){var r,o;c||(c=!0,null===(r=t.onSuccess)||void 0===r||r.call(t,n),null===(o=e)||void 0===o||o(),s.resolve(n))},d=function(n){var r,o;c||(c=!0,null===(r=t.onError)||void 0===r||r.call(t,n),null===(o=e)||void 0===o||o(),s.reject(n))},b=function(){return new Promise((function(n){var r;e=function(t){(c||l())&&n(t)},null===(r=t.onPause)||void 0===r||r.call(t)})).then((function(){var n;e=void 0,c||null===(n=t.onContinue)||void 0===n||n.call(t)}))},m=function(){if(!c){var e,r=0===a?t.initialPromise:void 0;try{e=null!=r?r:t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(v).catch((function(e){var r,o,i;if(!c){var s=null!==(r=t.retry)&&void 0!==r?r:u.S$?0:3,f=null!==(o=t.retryDelay)&&void 0!==o?o:h,p="function"==typeof f?f(a,e):f,y=!0===s||"number"==typeof s&&a<s||"function"==typeof s&&s(a,e);!n&&y?(a++,null===(i=t.onFail)||void 0===i||i.call(t,a,e),(0,u.yy)(p).then((function(){return l()?void 0:b()})).then((function(){n?d(e):m()}))):d(e)}}))}};return{promise:s,cancel:function(e){var n;c||(d(new y(e)),null===(n=t.abort)||void 0===n||n.call(t))},continue:function(){var t;return null===(t=e)||void 0===t||t(),s},cancelRetry:function(){n=!0},continueRetry:function(){n=!1},canStart:f,start:function(){return f()?m():b().then(m),s}}}}}]);