"use strict";(globalThis.webpackChunkverso=globalThis.webpackChunkverso||[]).push([[7253],{49606:(e,t,r)=>{e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(96540))},23917:(e,t,r)=>{r.d(t,{J:()=>b});var n=r(35137),i=r(69209),o=r(91545),s=!1,a=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},f=(0,o.A)((function(e){return c(e)?e:e.replace(a,"-$&").toLowerCase()})),h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(u,(function(e,t,r){return y={name:t,styles:r,next:y},t}))}return 1===i.A[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function d(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return y={name:i.name,styles:i.styles,next:y},i.name;var o=r;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)y={name:a.name,styles:a.styles,next:y},a=a.next;return o.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i{r.d(t,{J1:()=>f,Nh:()=>h,VC:()=>d,gi:()=>p,qj:()=>y});var n=r(8674),i=r(66005),o=new Map,s=new Map,a=!0,u=!1;function c(e){return e.replace(/[\s,]+/g," ").trim()}function l(e){var t,r,l,f=c(e);if(!o.has(f)){var h=(0,i.qg)(e,{experimentalFragmentVariables:u,allowLegacyFragmentVariables:u});if(!h||"Document"!==h.kind)throw new Error("Not a valid GraphQL document.");o.set(f,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}((t=h,r=new Set,l=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,n=c((o=e.loc).source.body.substring(o.start,o.end)),i=s.get(t);i&&!i.has(n)?a&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||s.set(t,i=new Set),i.add(n),r.has(n)||(r.add(n),l.push(e))}else l.push(e);var o})),(0,n.__assign)((0,n.__assign)({},t),{definitions:l}))))}return o.get(f)}function f(e){for(var t=[],r=1;r{r.r(t),r.d(t,{__addDisposableResource:()=>A,__assign:()=>o,__asyncDelegator:()=>E,__asyncGenerator:()=>S,__asyncValues:()=>T,__await:()=>k,__awaiter:()=>d,__classPrivateFieldGet:()=>C,__classPrivateFieldIn:()=>q,__classPrivateFieldSet:()=>j,__createBinding:()=>v,__decorate:()=>a,__disposeResources:()=>Q,__esDecorate:()=>c,__exportStar:()=>b,__extends:()=>i,__generator:()=>y,__importDefault:()=>P,__importStar:()=>D,__makeTemplateObject:()=>x,__metadata:()=>p,__param:()=>u,__propKey:()=>f,__read:()=>m,__rest:()=>s,__runInitializers:()=>l,__setFunctionName:()=>h,__spread:()=>_,__spreadArray:()=>O,__spreadArrays:()=>w,__values:()=>g,default:()=>F});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,o){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,u=n.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),h=!1,p=r.length-1;p>=0;p--){var d={};for(var y in n)d[y]="access"===y?{}:n[y];for(var y in n.access)d.access[y]=n.access[y];d.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(e||null))};var v=(0,r[p])("accessor"===u?{get:f.get,set:f.set}:f[c],d);if("accessor"===u){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(a=s(v.get))&&(f.get=a),(a=s(v.set))&&(f.set=a),(a=s(v.init))&&i.unshift(a)}else(a=s(v))&&("field"===u?i.unshift(a):f[c]=a)}l&&Object.defineProperty(l,n.name,f),h=!0}function l(e,t,r){for(var n=arguments.length>2,i=0;i0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function _(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof k?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function E(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:k(e[n](t)),done:!1}:i?i(t):t}:i}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var R=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function D(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return R(t,e),t}function P(e){return e&&e.__esModule?e:{default:e}}function C(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function j(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function q(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function A(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function Q(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const F={__extends:i,__assign:o,__rest:s,__decorate:a,__param:u,__metadata:p,__awaiter:d,__generator:y,__createBinding:v,__exportStar:b,__values:g,__read:m,__spread:_,__spreadArrays:w,__spreadArray:O,__await:k,__asyncGenerator:S,__asyncDelegator:E,__asyncValues:T,__makeTemplateObject:x,__importStar:D,__importDefault:P,__classPrivateFieldGet:C,__classPrivateFieldSet:j,__classPrivateFieldIn:q,__addDisposableResource:A,__disposeResources:Q}},55285:(e,t,r)=>{r.d(t,{k:()=>h});var n=r(8674),i=r(1161),o=r(65215),s=r(81212),a=r(73401),u=r(92922),c=r(11744),l=r(35051),f=r(9080),h=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,i.LV)(o.ct,{max:s.v["cache.fragmentQueryDocuments"]||1e3,cache:c.l})}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(r)}),n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.__assign)((0,n.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,i=e.fragment,o=e.fragmentName,s=e.from,c=e.optimistic,l=void 0===c||c,h=this.getFragmentDoc(i,o),p={returnPartialData:!0,id:"string"==typeof s?s:this.identify(s),query:h,optimistic:l};return new a.c((function(e){return r.watch((0,n.__assign)((0,n.__assign)({},p),{immediate:!0,callback:function(r){if(!t||!(0,f.a)(h,{data:null==t?void 0:t.result},{data:r.result})){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=(0,u.IM)(r.missing.map((function(e){return e.missing})))),t=r,e.next(n)}}}))}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.__assign)((0,n.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n.__rest)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,s=(0,n.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=r.readQuery(e),o=t(i);return null==o?i:(r.writeQuery((0,n.__assign)((0,n.__assign)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=r.readFragment(e),o=t(i);return null==o?i:(r.writeFragment((0,n.__assign)((0,n.__assign)({},e),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(h.prototype.getMemoryInternals=l.tQ)},31988:(e,t,r)=>{var n;r.d(t,{l:()=>n}),n||(n={})},24253:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(8674),i=function(e){function t(r,n,i,o){var s,a=e.call(this,r)||this;if(a.message=r,a.path=n,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var u=a.path.length-1;u>=0;--u)a.missing=((s={})[a.path[u]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return(0,n.__extends)(t,e),t}(Error)},73194:(e,t,r)=>{r.d(t,{$3:()=>f,I6:()=>y,T9:()=>_,Ui:()=>b,Xx:()=>v,d1:()=>w,gk:()=>g,iJ:()=>m,lq:()=>k,mv:()=>O,or:()=>p});var n=r(87945),i=r(67194),o=r(90075),s=r(45636),a=r(68869),u=r(92922),c=r(65215),l=r(84824),f=Object.prototype.hasOwnProperty;function h(e){return null==e}function p(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=h(n)?h(i)?void 0:{_id:i}:{id:n}),h(n)&&!h(i)&&(n=i),!h(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var d={dataIdFromObject:p,addTypename:!0,resultCaching:!0,canonizeResults:!1};function y(e){return(0,n.o)(d,e)}function v(e){var t=e.canonizeResults;return void 0===t?d.canonizeResults:t}function b(e,t){return(0,i.A_)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var g=/^[_a-z][_0-9a-z]*/i;function m(e){var t=e.match(g);return t?t[0]:e}function _(e,t,r){return!!(0,o.U)(t)&&((0,s.c)(t)?t.every((function(t){return _(e,t,r)})):e.selections.every((function(e){if((0,i.dt)(e)&&(0,a.MS)(e,r)){var n=(0,i.ue)(e);return f.call(t,n)&&(!e.selectionSet||_(e.selectionSet,t[n],r))}return!0})))}function w(e){return(0,o.U)(e)&&!(0,i.A_)(e)&&!(0,s.c)(e)}function O(){return new u.ZI}function k(e,t){var r=(0,c.JG)((0,l.zK)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},75107:(e,t,r)=>{r.d(t,{D:()=>ge});var n=r(8674),i=r(52687),o=r(1161),s=r(15381),a=r(55285),u=r(24253),c=r(29993),l=r(3902),f=r(81212),h=r(96269),p=r(47397),d=r(67194),y=r(73061),v=r(2619),b=r(87945),g=r(84824),m=r(92922),_=r(68869),w=r(65215),O=r(21469),k=r(90075),S=r(54834),E=r(73194),T=Object.create(null),x=function(){return T},R=Object.create(null),D=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,O.G)((0,d.A_)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,d.A_)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,d.WU)(e);if((0,d.A_)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,d.WU)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),E.$3.call(this.data,e)){var r=this.data[e];if(r&&E.$3.call(r,t))return r[t]}return"__typename"===t&&E.$3.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof q?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),E.$3.call(this.data,e)?this.data[e]:this instanceof q?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,d.A_)(e)&&(e=e.__ref),(0,d.A_)(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(r=e):e,s="string"==typeof t?this.lookup(r=t):t;if(s){(0,i.V1)("string"==typeof r,1);var a=new m.ZI(M).merge(o,s);if(this.data[r]=a,a!==o&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(s).forEach((function(e){if(!o||o[e]!==a[e]){u[e]=1;var t=(0,E.iJ)(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(u[t]=1),void 0!==a[e]||n instanceof q||delete a[e]}})),!u.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==a.__typename||delete u.__typename,Object.keys(u).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,o=this.lookup(e);if(o){var s=Object.create(null),a=!1,u=!0,c={DELETE:T,INVALIDATE:R,isReference:d.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,d.WU)(e)}:t,{store:r})}};if(Object.keys(o).forEach((function(l){var f=(0,E.iJ)(l),h=o[l];if(void 0!==h){var p="function"==typeof t?t:t[l]||t[f];if(p){var y=p===x?T:p((0,O.G)(h),(0,n.__assign)((0,n.__assign)({},c),{fieldName:f,storeFieldName:l,storage:r.getStorage(e,l)}));if(y===R)r.group.dirty(e,l);else if(y===T&&(y=void 0),y!==h&&(s[l]=y,a=!0,h=y,!1!==globalThis.__DEV__)){var v=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&i.V1.warn(2,e),!0};if((0,d.A_)(y))v(y);else if(Array.isArray(y))for(var b=!1,g=void 0,m=0,_=y;m<_.length;m++){var w=_[m];if((0,d.A_)(w)){if(b=!0,v(w))break}else"object"==typeof w&&w&&r.policies.identify(w)[0]&&(g=w);if(b&&void 0!==g){!1!==globalThis.__DEV__&&i.V1.warn(3,g);break}}}}void 0!==h&&(u=!1)}})),a)return this.merge(e,s),u&&(this instanceof q?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,s?((n={})[s]=x,n):x)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(E.$3.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof q&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){E.$3.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&E.$3.call(e,r)||t.delete(r)})),e){var r=e.__META,i=(0,n.__rest)(e,["__META"]);Object.keys(i).forEach((function(e){t.merge(e,i[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof q?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){E.$3.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof q;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!E.$3.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach((function(e){(0,d.A_)(e)&&(t[e.__ref]=!0),(0,k.U)(e)&&Object.keys(e).forEach((function(t){var r=e[t];(0,k.U)(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),P=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.yN)():null,this.keyMaker=new S.b(v.et)},e.prototype.depend=function(e,t){if(this.d){this.d(C(e,t));var r=(0,E.iJ)(t);r!==t&&this.d(C(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(C(e,t),"__exists"===t?"forget":"setDirty")},e}();function C(e,t){return t+"#"+e}function j(e,t){Q(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,s=e.call(this,r,new P(i))||this;return s.stump=new A(s),s.storageTrie=new S.b(v.et),o&&s.replace(o),s}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(D||(D={}));var q=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach((function(r){(0,s.L)(n[r],i[r])||t.group.dirty(e,r)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,n.__assign)((0,n.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return E.$3.call(this.data,t)?(0,n.__assign)((0,n.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(D),A=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new P(t.group.caching,t.group))||this}return(0,n.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(q);function M(e,t,r){var n=e[r],i=t[r];return(0,s.L)(n,i)?n:i}function Q(e){return!!(e instanceof D&&e.group.caching)}var F=r(45636),I=function(){function e(){this.known=new(v.En?WeakSet:Set),this.pool=new S.b(v.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,k.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,k.U)(e)){var t=function(e){return(0,k.U)(e)?(0,F.c)(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,k.U)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(a=this.pool.lookupArray(n)).array||(this.known.add(a.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),a.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],s=this.sortedKeys(e);o.push(s.json);var a,u=o.length;if(s.sorted.forEach((function(r){o.push(t.admit(e[r]))})),!(a=this.pool.lookupArray(o)).object){var c=a.object=Object.create(i);this.known.add(c),s.sorted.forEach((function(e,t){c[e]=o[u+t]})),!1!==globalThis.__DEV__&&Object.freeze(c)}return a.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function V(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var L=function(){function e(e){var t=this;this.knownResults=new(v.et?WeakMap:Map),this.config=(0,b.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,E.Xx)(e)}),this.canon=e.canon||new I,this.executeSelectionSet=(0,o.LV)((function(e){var r,i=e.context.canonizeResults,o=V(e);o[3]=!i;var s=(r=t.executeSelectionSet).peek.apply(r,o);return s?i?(0,n.__assign)((0,n.__assign)({},s),{result:t.canon.admit(s.result)}):s:(j(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||f.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:V,makeCacheKey:function(e,t,r,n){if(Q(r.store))return r.store.makeCacheKey(e,(0,d.A_)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,o.LV)((function(e){return j(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||f.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(Q(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new I},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,s=e.variables,a=e.returnPartialData,c=void 0===a||a,l=e.canonizeResults,f=void 0===l?this.config.canonizeResults:l,p=this.config.cache.policies;s=(0,n.__assign)((0,n.__assign)({},(0,g.wY)((0,g.AT)(r))),s);var y,v=(0,d.WU)(o),b=this.executeSelectionSet({selectionSet:(0,g.Vn)(r).selectionSet,objectOrReference:v,enclosingRef:v,context:(0,n.__assign)({store:t,query:r,policies:p,variables:s,varString:(0,h.M)(s),canonizeResults:f},(0,E.lq)(r,this.config.fragments))});if(b.missing&&(y=[new u.Z(N(b.missing),b.missing,r,s)],!c))throw y[0];return{result:b.result,complete:!y,missing:y}},e.prototype.isFresh=function(e,t,r,n){if(Q(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,d.A_)(n)&&!s.policies.rootTypenamesById[n.__ref]&&!s.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var a,u=s.variables,c=s.policies,f=s.store.getFieldValue(n,"__typename"),h=[],p=new m.ZI;function v(e,t){var r;return e.missing&&(a=p.merge(a,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof f&&!c.rootIdsByTypename[f]&&h.push({__typename:f});var b=new Set(r.selections);b.forEach((function(e){var r,g;if((0,_.MS)(e,u))if((0,d.dt)(e)){var m=c.readField({fieldName:e.name.value,field:e,variables:s.variables,from:n},s),O=(0,d.ue)(e);void 0===m?l.XY.added(e)||(a=p.merge(a,((r={})[O]="Can't find field '".concat(e.name.value,"' on ").concat((0,d.A_)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,F.c)(m)?m.length>0&&(m=v(t.executeSubSelectedArray({field:e,array:m,enclosingRef:o,context:s}),O)):e.selectionSet?null!=m&&(m=v(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:(0,d.A_)(m)?m:o,context:s}),O)):s.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&h.push(((g={})[O]=m,g))}else{var k=(0,w.HQ)(e,s.lookupFragment);if(!k&&e.kind===y.b.FRAGMENT_SPREAD)throw(0,i.vA)(9,e.name.value);k&&c.fragmentMatches(k,f)&&k.selectionSet.selections.forEach(b.add,b)}}));var g={result:(0,m.IM)(h),missing:a},k=s.canonizeResults?this.canon.admit(g):(0,O.G)(g);return k.result&&this.knownResults.set(k.result,r),k},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,s=e.enclosingRef,a=e.context,u=new m.ZI;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map((function(e,t){return null===e?null:(0,F.c)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:s,context:a}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,d.A_)(e)?e:s,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){(0,k.U)(r)&&((0,i.V1)(!(0,d.A_)(r),10,(0,E.Ui)(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}(a.store,n,e),e)})),{result:a.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function N(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var z=r(91495),U=r(3813),W=r(90738),B=Object.create(null);function K(e){var t=JSON.stringify(e);return B[t]||(B[t]=Object.create(null))}function H(e){var t=K(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=$(e,(function(e){var o=X(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&E.$3.call(t,e[0])&&(o=X(t,e,Y)),(0,i.V1)(void 0!==o,4,e.join("."),t),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function J(e){var t=K(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,s=$(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return X(t,e)}else{var s=r.slice(1);if(i&&E.$3.call(i,s)){var a=e.slice(0);return a[0]=s,X(i,a)}}else if(n&&(0,F.E)(n.directives)){var u=r.slice(1),c=n.directives.find((function(e){return e.name.value===u})),l=c&&(0,d.MB)(c,i);return l&&X(l,e.slice(1))}})),a=JSON.stringify(s);return(t||"{}"!==a)&&(o+=":"+a),o})}function $(e,t){var r=new m.ZI;return G(e).reduce((function(e,n){var i,o=t(n);if(void 0!==o){for(var s=n.length-1;s>=0;--s)(i={})[n[s]]=o,o=i;e=r.merge(e,o)}return e}),Object.create(null))}function G(e){var t=K(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){(0,F.c)(t)?(G(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),(0,F.c)(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function Y(e,t){return e[t]}function X(e,t,r){return r=r||Y,Z(t.reduce((function e(t,n){return(0,F.c)(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function Z(e){return(0,k.U)(e)?(0,F.c)(e)?e.map(Z):$(Object.keys(e).sort(),(function(t){return X(e,t)})):e}function ee(e){return void 0!==e.args?e.args:e.field?(0,d.MB)(e.field,e.variables):null}var te=function(){},re=function(e,t){return t.fieldName},ne=function(e,t,r){return(0,r.mergeObjects)(e,t)},ie=function(e,t){return t},oe=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.__assign)({dataIdFromObject:E.or},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s,a=t&&t.storeObject||e,u=(0,n.__assign)((0,n.__assign)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=ae(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=o&&this.getTypePolicy(o),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var f=l((0,n.__assign)((0,n.__assign)({},e),a),u);if(!(0,F.c)(f)){s=f;break}l=H(f)}return s=s?String(s):void 0,u.keyObject?[s,u.keyObject]:[s]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var i=e[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,u=(0,n.__rest)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),s&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),E.$3.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?ne:!1===t?ie:e.merge}s(n,t.merge),n.keyFn=!1===i?te:(0,F.c)(i)?H(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach((function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var a=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===a?re:(0,F.c)(a)?J(a):"function"==typeof a?a:n.keyFn,"function"==typeof u&&(n.read=u),s(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||re)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.V1)(!n||n===e,5,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(E.gk);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!E.$3.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,n){if(r.test(e)){var o=t.supertypeMap.get(n);o&&o.forEach((function(e){return i.add(e)}))}}))),i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,s=(0,n.__rest)(i,["fields"]);Object.assign(r,s),Object.assign(r.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var s=e.typeCondition.name.value;if(t===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(t,!0),u=[a],c=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&u.indexOf(t)<0&&u.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=!1,h=0;h1?a:t}:(o=(0,n.__assign)({},s),E.$3.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.V1.warn(7,(0,U.p)(Array.from(e))),void 0===o.variables&&(o.variables=r),o}function ue(e){return function(t,r){if((0,F.c)(t)||(0,F.c)(r))throw(0,i.vA)(8);if((0,k.U)(t)&&(0,k.U)(r)){var o=e.getFieldValue(t,"__typename"),s=e.getFieldValue(r,"__typename");if(o&&s&&o!==s)return r;if((0,d.A_)(t)&&(0,E.d1)(r))return e.merge(t.__ref,r),t;if((0,E.d1)(t)&&(0,d.A_)(r))return e.merge(t,r.__ref),r;if((0,E.d1)(t)&&(0,E.d1)(r))return(0,n.__assign)((0,n.__assign)({},t),r)}return r}}function ce(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.__assign)((0,n.__assign)({},e),{clientOnly:t,deferred:r})),o}var le=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,a=t.result,u=t.dataId,c=t.variables,l=t.overwrite,f=(0,g.Vu)(o),p=(0,E.mv)();c=(0,n.__assign)((0,n.__assign)({},(0,g.wY)(f)),c);var y=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:c,varString:(0,h.M)(c)},(0,E.lq)(o,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:a||Object.create(null),dataId:u,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:y});if(!(0,d.A_)(v))throw(0,i.vA)(11,a);return y.incomingById.forEach((function(t,o){var a=t.storeObject,u=t.mergeTree,c=t.fieldNodeSet,l=(0,d.WU)(o);if(u&&u.map.size){var f=r.applyMerges(u,l,a,y);if((0,d.A_)(f))return;a=f}if(!1!==globalThis.__DEV__&&!y.overwrite){var h=Object.create(null);c.forEach((function(e){e.selectionSet&&(h[e.name.value]=!0)})),Object.keys(a).forEach((function(e){(function(e){return!0===h[(0,E.iJ)(e)]})(e)&&!function(e){var t=u&&u.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,o){var a=function(e){var t=o.getFieldValue(e,r);return"object"==typeof t&&t},u=a(e);if(u){var c=a(t);if(c&&!(0,d.A_)(u)&&!(0,s.L)(u,c)&&!Object.keys(u).every((function(e){return void 0!==o.getFieldValue(c,e)}))){var l=o.getFieldValue(e,"__typename")||o.getFieldValue(t,"__typename"),f=(0,E.iJ)(r),h="".concat(l,".").concat(f);if(!ve.has(h)){ve.add(h);var p=[];(0,F.c)(u)||(0,F.c)(c)||[u,c].forEach((function(e){var t=o.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)})),!1!==globalThis.__DEV__&&i.V1.warn(14,f,l,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",h,(0,n.__assign)({},u),(0,n.__assign)({},c))}}}}(l,a,e,y.store)}))}e.merge(o,a)})),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,s=e.selectionSet,a=e.context,u=e.mergeTree,c=this.cache.policies,f=Object.create(null),h=r&&c.rootTypenamesById[r]||(0,d.D$)(o,s,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof h&&(f.__typename=h);var p=function(){var e=ae(arguments,f,a.variables);if((0,d.A_)(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return c.readField(e,a)},y=new Set;this.flattenFields(s,o,a,h).forEach((function(e,r){var n,s=(0,d.ue)(r),a=o[s];if(y.add(r),void 0!==a){var v=c.getStoreFieldName({typename:h,fieldName:r.name.value,field:r,variables:e.variables}),b=he(u,v),g=t.processFieldValue(a,r,r.selectionSet?ce(e,!1,!1):e,b),m=void 0;r.selectionSet&&((0,d.A_)(g)||(0,E.d1)(g))&&(m=p("__typename",g));var _=c.getMergeFunction(h,r.name.value,m);_?b.info={field:r,typename:h,merge:_}:ye(u,v),f=e.merge(f,((n={})[v]=g,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||l.XY.added(r)||c.getReadFunction(h,r.name.value)||!1!==globalThis.__DEV__&&i.V1.error(12,(0,d.ue)(r),o)}));try{var v=c.identify(o,{typename:h,selectionSet:s,fragmentMap:a.fragmentMap,storeObject:f,readField:p}),b=v[0],g=v[1];r=r||b,g&&(f=a.merge(f,g))}catch(e){if(!r)throw e}if("string"==typeof r){var m=(0,d.WU)(r),_=a.written[r]||(a.written[r]=[]);if(_.indexOf(s)>=0)return m;if(_.push(s),this.reader&&this.reader.isFresh(o,m,s,a))return m;var w=a.incomingById.get(r);return w?(w.storeObject=a.merge(w.storeObject,f),w.mergeTree=pe(w.mergeTree,u),y.forEach((function(e){return w.fieldNodeSet.add(e)}))):a.incomingById.set(r,{storeObject:f,mergeTree:de(u)?void 0:u,fieldNodeSet:y}),m}return f},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,F.c)(e)?e.map((function(e,o){var s=i.processFieldValue(e,t,r,he(n,o));return ye(n,o),s})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,z.m)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,d.D$)(t,e,r.fragmentMap));var o=new Map,s=this.cache.policies,a=new S.b(!1);return function e(u,c){var l=a.lookup(u,c.clientOnly,c.deferred);l.visited||(l.visited=!0,u.selections.forEach((function(a){if((0,_.MS)(a,r.variables)){var u=c.clientOnly,l=c.deferred;if(u&&l||!(0,F.E)(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,d.MB)(e,r.variables);n&&!1===n.if||(l=!0)}})),(0,d.dt)(a)){var f=o.get(a);f&&(u=u&&f.clientOnly,l=l&&f.deferred),o.set(a,ce(r,u,l))}else{var h=(0,w.HQ)(a,r.lookupFragment);if(!h&&a.kind===y.b.FRAGMENT_SPREAD)throw(0,i.vA)(13,a.name.value);h&&s.fragmentMatches(h,n,t,r.variables)&&e(h.selectionSet,ce(r,u,l))}}})))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,s){var a,u=this;if(e.map.size&&!(0,d.A_)(r)){var c,l=(0,F.c)(r)||!(0,d.A_)(t)&&!(0,E.d1)(t)?void 0:t,f=r;l&&!s&&(s=[(0,d.A_)(l)?l.__ref:l]);var h=function(e,t){return(0,F.c)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=h(l,t),n=h(f,t);if(void 0!==n){s&&s.push(t);var a=u.applyMerges(e,r,n,o,s);a!==n&&(c=c||new Map).set(t,a),s&&(0,i.V1)(s.pop()===t)}})),c&&(r=(0,F.c)(f)?f.slice(0):(0,n.__assign)({},f),c.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,s&&(a=o.store).getStorage.apply(a,s)):r},e}(),fe=[];function he(e,t){var r=e.map;return r.has(t)||r.set(t,fe.pop()||{map:new Map}),r.get(t)}function pe(e,t){if(e===t||!t||de(t))return e;if(!e||de(e))return t;var r=e.info&&t.info?(0,n.__assign)((0,n.__assign)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,o={info:r,map:i?new Map:e.map.size?e.map:t.map};if(i){var s=new Set(t.map.keys());e.map.forEach((function(e,r){o.map.set(r,pe(e,t.map.get(r))),s.delete(r)})),s.forEach((function(r){o.map.set(r,pe(t.map.get(r),e.map.get(r)))}))}return o}function de(e){return!e||!(e.info||e.map.size)}function ye(e,t){var r=e.map,n=r.get(t);n&&de(n)&&(fe.push(n),r.delete(t))}var ve=new Set,be=r(35051),ge=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new c.c(l.XY),r.assumeImmutableResults=!0,r.makeVar=W.UT,r.txCount=0,r.config=(0,E.I6)(t),r.addTypename=!!r.config.addTypename,r.policies=new oe({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.__extends)(t,e),t.prototype.init=function(){var e=this.data=new D.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new le(this,this.storeReader=new L({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,E.Xx)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.LV)((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize||f.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(Q(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,h.M)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof u.Z)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(E.$3.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,W.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,W.WR)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;h.M.reset(),p.y.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,d.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.V1.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(E.$3.call(e,"id"))return!1;e=(0,n.__assign)((0,n.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),h.M.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,W.WR)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,s=void 0===o||o,a=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var n=r,o=n.data,s=n.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=o,r.optimisticData=s}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof s?this.optimisticData=this.optimisticData.addLayer(s,c):!1===s?c(this.data):c(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),u&&l.size?(this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&(0,s.L)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(a.k);!1!==globalThis.__DEV__&&(ge.prototype.getMemoryInternals=be.cM)},90738:(e,t,r)=>{r.d(t,{MS:()=>u,UT:()=>c,WR:()=>a,bl:()=>i});var n=r(1161),i=new n.DX,o=new WeakMap;function s(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.yN)()}),t}function a(e){s(e).vars.forEach((function(t){return t.forgetCache(e)}))}function u(e){s(e).vars.forEach((function(t){return t.attachCache(e)}))}function c(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){s(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var u=Array.from(r);r.clear(),u.forEach((function(t){return t(e)}))}}else{var c=i.getValue();c&&(o(c),s(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),s(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},64867:(e,t,r)=>{r.d(t,{R:()=>J});var n=r(8674),i=r(52687),o=r(91188),s=r(74081),a=r(32816),u=r(94537),c=r(15381),l=r(56453),f=r(68869),h=r(3902),p=r(96269),d=r(29993),y=r(83851),v=r(59599),b=r(45636),g=r(84824),m=r(67194),_=r(90075),w=r(98170),O=r(73401),k=r(82562),S=r(9211),E=r(72988),T=r(88599),x=r(11786),R=r(48710),D=r(92922),P=r(65215),C=r(90738),j=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=(0,D.D9)(t.resolvers,e)})):this.resolvers=(0,D.D9)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,n.__awaiter)(this,arguments,void 0,(function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,s=e.onlyRunForcedResolvers,a=void 0!==s&&s;return(0,n.__generator)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,a).then((function(e){return(0,n.__assign)((0,n.__assign)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,f.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,h.er)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.__assign)((0,n.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,n.__awaiter)(this,arguments,void 0,(function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.__generator)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return(0,n.__assign)((0,n.__assign)({},t),e.exportedVariables)}))]:[2,(0,n.__assign)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,x.YR)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return x.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,h.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,n.__awaiter)(this,arguments,void 0,(function(e,t,r,i,o,s){var a,u,c,l,f,h,p,d,y,v;return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),(0,n.__generator)(this,(function(b){return a=(0,g.Vn)(e),u=(0,g.zK)(e),c=(0,P.JG)(u),l=this.collectSelectionsToResolve(a,c),f=a.operation,h=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=(p=this).cache,y=p.client,v={fragmentMap:c,context:(0,n.__assign)((0,n.__assign)({},r),{cache:d,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,!1,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.__awaiter)(this,void 0,void 0,(function(){var s,a,u,c,l,h=this;return(0,n.__generator)(this,(function(p){return s=o.fragmentMap,a=o.context,u=o.variables,c=[r],l=function(e){return(0,n.__awaiter)(h,void 0,void 0,(function(){var l,h;return(0,n.__generator)(this,(function(n){return(t||o.selectionsToResolve.has(e))&&(0,f.MS)(e,u)?(0,m.dt)(e)?[2,this.resolveField(e,t,r,o).then((function(t){var r;void 0!==t&&c.push(((r={})[(0,m.ue)(e)]=t,r))}))]:((0,m.kd)(e)?l=e:(l=s[e.name.value],(0,i.V1)(l,18,e.name.value)),l&&l.typeCondition&&(h=l.typeCondition.name.value,o.fragmentMatcher(r,h,a))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then((function(e){c.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return(0,D.IM)(c)}))]}))}))},e.prototype.resolveField=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,(function(){var o,s,a,u,c,l,f,h,p,d=this;return(0,n.__generator)(this,(function(n){return r?(o=i.variables,s=e.name.value,a=(0,m.ue)(e),u=s!==a,c=r[a]||r[s],l=Promise.resolve(c),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[u?s:a])&&(l=Promise.resolve(C.bl.withValue(this.cache,p,[r,(0,m.MB)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then((function(r){var n,o;if(void 0===r&&(r=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)}))})),!e.selectionSet)return r;if(null==r)return r;var s=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||s,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||s,r,i):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map((function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var s=new Set;n.set(o,s),(0,x.YR)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach((function(e){r(e)&&(0,R.VK)(e)&&s.add(e)}))},FragmentSpread:function(n,o,a,u,c){var l=t[n.name.value];(0,i.V1)(l,19,n.name.value);var f=e(l);f.size>0&&(c.forEach((function(e){r(e)&&(0,R.VK)(e)&&s.add(e)})),s.add(n),f.forEach((function(e){s.add(e)})))}})}return n.get(o)}(e)},e}(),q=new(r(2619).et?WeakMap:Map);function A(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return q.set(e,(q.get(e)+1)%1e15),r.apply(this,arguments)})}function M(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Q=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;q.has(r)||(q.set(r,0),A(r,"evict"),A(r,"modify"),A(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||T.pT.loading;return this.variables&&this.networkStatus!==T.pT.loading&&!(0,c.L)(this.variables,e.variables)&&(t=T.pT.setVariables),(0,c.L)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){M(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,c.L)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError())||(this.updateLastDiff(e),this.dirty||(0,c.L)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return r.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():(0,E.e8)(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;M(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,T.bi)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.__assign)((0,n.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,c.L)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===q.get(this.cache)&&(0,c.L)(t,r.variables)&&(0,c.L)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new D.ZI,s=(0,b.E)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,b.E)(e.incremental)){var a=(0,l.bd)(this.getDiff().result,e);e.data=a}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(F(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:q.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var s=i.getDiffOptions(r.variables),a=o.diff(s);!i.stopped&&(0,c.L)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(a,s),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=T.pT.ready},e.prototype.markError=function(e){return this.networkStatus=T.pT.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function F(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!(0,v.t)(e);return!n&&r&&e.data&&(n=!0),n}var I=r(47397),V=r(54834),L=r(599),N=r(81212),z=Object.prototype.hasOwnProperty,U=Object.create(null),W=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,s=void 0!==o&&o,a=e.onBroadcast,u=e.ssrMode,c=void 0!==u&&u,l=e.clientAwareness,f=void 0===l?{}:l,h=e.localState,p=e.assumeImmutableResults,y=void 0===p?!!t.assumeImmutableResults:p,v=e.defaultContext,b=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new L.A(N.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new V.b(!1);var g=new d.c((function(e){return b.cache.transformDocument(e)}),{cache:!1});this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=s,this.clientAwareness=f,this.localState=h||new j({cache:t}),this.ssrMode=c,this.assumeImmutableResults=y,this.documentTransform=i?g.concat(i).concat(g):g,this.defaultContext=v||Object.create(null),(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches((0,i.vA)(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,n.__awaiter)(this,arguments,void 0,(function(e){var t,r,o,s,a,u,c,l=e.mutation,f=e.variables,h=e.optimisticResponse,p=e.updateQueries,d=e.refetchQueries,b=void 0===d?[]:d,g=e.awaitRefetchQueries,m=void 0!==g&&g,_=e.update,w=e.onQueryUpdated,O=e.fetchPolicy,k=void 0===O?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.fetchPolicy)||"network-only":O,E=e.errorPolicy,T=void 0===E?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":E,x=e.keepRootFields,R=e.context;return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return(0,i.V1)(l,26),(0,i.V1)("network-only"===k||"no-cache"===k,27),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),r?[4,this.localState.addExportedVariables(l,f,R)]:[3,2];case 1:f=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:f,loading:!0,error:null}),s=h&&this.markMutationOptimistic(h,{mutationId:t,document:l,variables:f,fetchPolicy:k,errorPolicy:T,context:R,updateQueries:p,update:_,keepRootFields:x}),this.broadcastQueries(),a=this,[2,new Promise((function(e,r){return(0,y.x)(a.getObservableFromLink(l,(0,n.__assign)((0,n.__assign)({},R),{optimisticResponse:s?h:void 0}),f,!1),(function(e){if((0,v.t)(e)&&"none"===T)throw new S.K4({graphQLErrors:(0,v.M)(e)});o&&(o.loading=!1,o.error=null);var r=(0,n.__assign)({},e);return"function"==typeof b&&(b=b(r)),"ignore"===T&&(0,v.t)(r)&&delete r.errors,a.markMutationResult({mutationId:t,result:r,document:l,variables:f,fetchPolicy:k,errorPolicy:T,context:R,update:_,updateQueries:p,awaitRefetchQueries:m,refetchQueries:b,removeOptimistic:s?t:void 0,onQueryUpdated:w,keepRootFields:x})})).subscribe({next:function(t){a.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){o&&(o.loading=!1,o.error=e),s&&a.cache.removeOptimistic(t),a.broadcastQueries(),r(e instanceof S.K4?e:new S.K4({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],s="no-cache"===e.fetchPolicy;if(!s&&F(i,e.errorPolicy)){if((0,l.ST)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.ST)(i)&&(0,b.E)(i.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;a.result&&(u=(0,l.bd)(a.result,i)),void 0!==u&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach((function(e,n){var s=e.observableQuery,a=s&&s.queryName;if(a&&z.call(c,a)){var u=c[a],l=r.queries.get(n),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var y=u(d,{mutationResult:i,queryName:f&&(0,g.n4)(f)||void 0,queryVariables:h});y&&o.push({result:y,dataId:"ROOT_QUERY",query:f,variables:h})}}}))}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){s||o.forEach((function(e){return t.write(e)}));var a=e.update,u=!(0,l.YX)(i)||(0,l.ST)(i)&&!i.hasNext;if(a){if(!s){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,n.__assign)((0,n.__assign)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&a(t,i,{context:e.context,variables:e.variables})}s||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return f.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables,{IGNORE:U}):e;return o!==U&&(this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.V1.error(e)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,f.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,f.d8)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,h.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,g.wY)((0,g.Vu)(e)),asQuery:(0,n.__assign)((0,n.__assign)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.__assign)((0,n.__assign)({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.__assign)((0,n.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.__assign)((0,n.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new Q(this),i=new E.U5({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),(0,i.V1)(e.query,28),(0,i.V1)("Document"===e.query.kind,29),(0,i.V1)(!e.returnPartialData,30),(0,i.V1)(!e.pollInterval,31),this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},e),{query:this.transform(e.query)})).finally((function(){return r.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i.vA)(32)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=T.pT.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,s=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?o.set(e,!1):(0,m.Kc)(e)?o.set(t.transform(e),!1):(0,_.U)(e)&&e.query&&s.add(e)})),this.queries.forEach((function(t,n){var i=t.observableQuery,s=t.document;if(i){if("all"===e)return void r.set(n,i);var a=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||a&&o.has(a)||s&&o.has(s))&&(r.set(n,i),a&&o.set(a,!0),s&&o.set(s,!0))}})),s.size&&s.forEach((function(e){var o=(0,w.v)("legacyOneTimeQuery"),s=t.getQuery(o).init({document:e.query,variables:e.variables}),a=new E.U5({queryManager:t,queryInfo:s,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,i.V1)(a.queryId===o),s.setObservableQuery(a),r.set(o,a)})),!1!==globalThis.__DEV__&&o.size&&o.forEach((function(e,t){e||!1!==globalThis.__DEV__&&i.V1.warn("string"==typeof t?33:34,t)})),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach((function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,s=e.variables,a=e.context,u=void 0===a?{}:a;r=this.transform(r),s=this.getVariables(r,s);var c=function(e){return t.getObservableFromLink(r,u,e).map((function(i){"no-cache"!==n&&(F(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var s=(0,v.t)(i),a=(0,S.uR)(i);if(s||a){var u={};if(s&&(u.graphQLErrors=i.errors),a&&(u.protocolErrors=i.extensions[S.K$]),"none"===o||a)throw new S.K4(u)}return"ignore"===o&&delete i.errors,i}))};if(this.getDocumentInfo(r).hasClientExports){var l=this.localState.addExportedVariables(r,s,u).then(c);return new O.c((function(e){var t=null;return l.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(s)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,a,u=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.getDocumentInfo(e),l=c.serverQuery,f=c.clientQuery;if(l){var h=this.inFlightLinkObservables,d=this.link,v={query:l,variables:r,operationName:(0,g.n4)(l)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!i}))};if(t=v.context,i){var b=(0,I.y)(l),m=(0,p.M)(r),_=h.lookup(b,m);if(!(a=_.observable)){var w=new k.E([(0,s.g)(d,v)]);a=_.observable=w,w.beforeNext((function(){h.remove(b,m)}))}}else a=new k.E([(0,s.g)(d,v)])}else a=new k.E([O.c.of({data:{}})]),t=this.prepareContext(t);return f&&(a=(0,y.x)(a,(function(e){return u.localState.runResolvers({document:f,remoteResult:e,context:t,variables:r})}))),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return(0,y.x)(this.getObservableFromLink(i,r.context,r.variables),(function(o){var s=(0,v.M)(o),a=s.length>0;if(n>=e.lastRequestId){if(a&&"none"===r.errorPolicy)throw e.markError(new S.K4({graphQLErrors:s}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:T.pT.ready};return a&&"ignore"!==r.errorPolicy&&(u.errors=s,u.networkStatus=T.pT.error),u}),(function(t){var r=(0,S.Mn)(t)?t:new S.K4({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=T.pT.loading),void 0===n&&(n=t.query);var o,s,a=this.getVariables(n,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?c&&c.errorPolicy||"none":h,d=t.returnPartialData,y=void 0!==d&&d,v=t.notifyOnNetworkStatusChange,b=void 0!==v&&v,g=t.context,m=void 0===g?{}:g,_=Object.assign({},t,{query:n,variables:a,fetchPolicy:f,errorPolicy:p,returnPartialData:y,notifyOnNetworkStatusChange:b,context:m}),w=function(e){_.variables=e;var n=i.fetchQueryByPolicy(u,_,r);return"standby"!==_.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},O=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){O(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(_.query).hasClientExports)o=new k.E(this.localState.addExportedVariables(_.query,_.variables,_.context).then(w).then((function(e){return e.sources}))),s=!0;else{var S=w(_.variables);s=S.fromLink,o=new k.E(S.sources)}return o.promise.then(O,O),{concast:o,fromLink:s}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,s=e.removeOptimistic,a=void 0===s?o?(0,w.v)("refetchQueries"):void 0:s,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&a||!1,removeOptimistic:a,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof Q&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,s=e.diff;if(u){if(!s){var a=i.queryInfo;a.reset(),s=a.getDiff()}n=u(i,s,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),a&&this.cache.removeOptimistic(a),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,s=t.variables,a=t.fetchPolicy,u=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,h=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:s,networkStatus:r});var y=function(){return e.getDiff()},v=function(t,r){void 0===r&&(r=e.networkStatus||T.pT.loading);var a=t.result;!1===globalThis.__DEV__||f||(0,c.L)(a,{})||(0,E.yd)(t.missing);var u=function(e){return O.c.of((0,n.__assign)({data:e,loading:(0,T.bi)(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:a},context:h,variables:s,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data||void 0)})):"none"===l&&r===T.pT.refetch&&Array.isArray(t.missing)?u(void 0):u(a)},b="no-cache"===a?0:r===T.pT.refetch&&"merge"!==u?1:2,g=function(){return i.getResultsFromLink(e,b,{query:o,variables:s,context:h,fetchPolicy:a,errorPolicy:l})},m=p&&"number"==typeof d&&d!==r&&(0,T.bi)(r);switch(a){default:case"cache-first":return(_=y()).complete?{fromLink:!1,sources:[v(_,e.markReady())]}:f||m?{fromLink:!0,sources:[v(_),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var _;return(_=y()).complete||f||m?{fromLink:!0,sources:[v(_),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[v(y(),e.markReady())]};case"network-only":return m?{fromLink:!0,sources:[v(y()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return m?{fromLink:!0,sources:[v(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Q(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),B=r(60144),K=r(35051),H=!1,J=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i.vA)(15);var r=e.uri,n=e.credentials,s=e.headers,c=e.cache,l=e.documentTransform,f=e.ssrMode,h=void 0!==f&&f,p=e.ssrForceFetchDelay,d=void 0===p?0:p,y=e.connectToDevTools,v=void 0===y?!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:y,b=e.queryDeduplication,g=void 0===b||b,m=e.defaultOptions,_=e.defaultContext,w=e.assumeImmutableResults,O=void 0===w?c.assumeImmutableResults:w,k=e.resolvers,S=e.typeDefs,E=e.fragmentMatcher,T=e.name,x=e.version,R=e.link;R||(R=r?new u.P({uri:r,credentials:n,headers:s}):o.C.empty()),this.link=R,this.cache=c,this.disableNetworkFetches=h||d>0,this.queryDeduplication=g,this.defaultOptions=m||Object.create(null),this.typeDefs=S,d&&setTimeout((function(){return t.disableNetworkFetches=!1}),d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=a.r,this.localState=new j({cache:c,client:this,resolvers:k,fragmentMatcher:E}),this.queryManager=new W({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:_,documentTransform:l,queryDeduplication:g,ssrMode:h,clientAwareness:{name:T,version:x},localState:this.localState,assumeImmutableResults:O,onBroadcast:v?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),v&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,H||!1===globalThis.__DEV__||(H=!0,setTimeout((function(){if(window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&/^(https?|file):$/.test(window.location.protocol)){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&i.V1.log("Download the Apollo DevTools for a better development experience: %s",r)}}),1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,B.l)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,B.l)(this.defaultOptions.query,e)),(0,i.V1)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,B.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,s.g)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((function(e,t){r.push(t),n.push(e)}));var o=Promise.all(n);return o.queries=r,o.results=n,o.catch((function(e){!1!==globalThis.__DEV__&&i.V1.debug(17,e)})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(J.prototype.getMemoryInternals=K.ep)},72988:(e,t,r)=>{r.d(t,{U5:()=>v,e8:()=>b,yd:()=>m});var n=r(8674),i=r(52687),o=r(15381),s=r(88599),a=r(84824),u=r(87945),c=r(91495),l=r(26502),f=r(73401),h=r(21291),p=r(9080),d=Object.assign,y=Object.hasOwnProperty,v=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,s=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=g)}catch(e){}var r=!s.observers.size;s.observers.add(e);var n=s.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&s.reobserve().catch((function(){})),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}}))||this;s.observers=new Set,s.subscriptions=new Set,s.queryInfo=i,s.queryManager=r,s.waitForOwnResult=_(o.fetchPolicy),s.isTornDown=!1;var u=r.defaultOptions.watchQuery,c=(void 0===u?{}:u).fetchPolicy,l=void 0===c?"cache-first":c,f=o.fetchPolicy,h=void 0===f?l:f,p=o.initialFetchPolicy,d=void 0===p?"standby"===h?l:h:p;s.options=(0,n.__assign)((0,n.__assign)({},o),{initialFetchPolicy:d,fetchPolicy:h}),s.queryId=i.queryId||r.generateQueryId();var y=(0,a.Vu)(s.query);return s.queryName=y&&y.name&&y.name.value,s}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||s.pT.ready,i=(0,n.__assign)((0,n.__assign)({},t),{loading:(0,s.bi)(r),networkStatus:r}),a=this.options.fetchPolicy,u=void 0===a?"cache-first":a;if(_(u)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(i.data=c.result),(0,o.L)(i.data,{})&&(i.data=void 0),c.complete?(delete i.partial,!c.complete||i.networkStatus!==s.pT.loading||"cache-first"!==u&&"cache-only"!==u||(i.networkStatus=s.pT.ready,i.loading=!1)):i.partial=!0,!1===globalThis.__DEV__||c.complete||this.options.partialRefetch||i.loading||i.data||i.error||m(c.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,p.a)(this.query,this.last.result,e,this.variables):!(0,o.L)(this.last.result,e))||t&&!(0,o.L)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,o.L)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},u=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===u?u:"no-cache"===u?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&y.call(e,"variables")){var c=(0,a.AT)(this.query),l=c.variableDefinitions;l&&l.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&i.V1.warn(20,e,(null===(t=c.name)||void 0===t?void 0:t.value)||c)}return e&&!(0,o.L)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.__assign)((0,n.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,s.pT.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e.query?e:(0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,n.__assign)((0,n.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var i=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var o=this.queryInfo,a=o.networkStatus;o.networkStatus=s.pT.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var u=new Set;return this.queryManager.fetchQuery(i,r,s.pT.fetchMore).then((function(n){return t.queryManager.removeQuery(i),o.networkStatus===s.pT.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})})):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){u.add(e.query)}}),n})).finally((function(){u.has(t.query)||b(t)}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&i.V1.error(21,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,u.o)(this.options,e||{});d(this.options,t)},t.prototype.setVariables=function(e){return(0,o.L)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},s.pT.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r&&this.hasObservers()){if(!t||t.interval!==r){(0,i.V1)(r,22),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&((0,s.bi)(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},s.pT.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,o.L)(t,this.last.variables)&&(r=void 0),this.last=(0,n.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,c.m)(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===s.pT.refetch||t===s.pT.fetchMore||t===s.pT.poll,a=this.options.variables,c=this.options.fetchPolicy,l=(0,u.o)(this.options,e||{}),f=i?l:d(this.options,l),h=this.transformDocument(f.query);this.lastQuery=h,i||(this.updatePolling(),e&&e.variables&&!(0,o.L)(e.variables,a)&&"standby"!==f.fetchPolicy&&f.fetchPolicy===c&&(this.applyNextFetchPolicy("variables-changed",f),void 0===t&&(t=s.pT.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=_(f.fetchPolicy));var p=function(){r.concast===b&&(r.waitForOwnResult=!1)},y=f.variables&&(0,n.__assign)({},f.variables),v=this.fetch(f,t,h),b=v.concast,g=v.fromLink,m={next:function(e){(0,o.L)(r.variables,y)&&(p(),r.reportResult(e,y))},error:function(e){(0,o.L)(r.variables,y)&&(p(),r.reportError(e,y))}};return i||!g&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=b,this.observer=m),b.addObserver(m),b},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(f.c);function b(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function g(e){!1!==globalThis.__DEV__&&i.V1.error(23,e.message,e.stack)}function m(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.V1.debug(24,e)}function _(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,h.r)(v)},9080:(e,t,r)=>{r.d(t,{a:()=>c});var n=r(8674),i=r(15381),o=r(84824),s=r(65215),a=r(68869),u=r(67194);function c(e,t,r,a){var u=t.data,c=(0,n.__rest)(t,["data"]),f=r.data,h=(0,n.__rest)(r,["data"]);return(0,i.A)(c,h)&&l((0,o.Vn)(e).selectionSet,u,f,{fragmentMap:(0,s.JG)((0,o.zK)(e)),variables:a})}function l(e,t,r,n){if(t===r)return!0;var o=new Set;return e.selections.every((function(e){if(o.has(e))return!0;if(o.add(e),!(0,a.MS)(e,n.variables))return!0;if(f(e))return!0;if((0,u.dt)(e)){var c=(0,u.ue)(e),h=t&&t[c],p=r&&r[c],d=e.selectionSet;if(!d)return(0,i.A)(h,p);var y=Array.isArray(h),v=Array.isArray(p);if(y!==v)return!1;if(y&&v){var b=h.length;if(p.length!==b)return!1;for(var g=0;g{var n;function i(e){return!!e&&e<7}function o(e){return 7===e||8===e}r.d(t,{D2:()=>o,bi:()=>i,pT:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},9211:(e,t,r)=>{r.d(t,{K$:()=>o,K4:()=>u,Mn:()=>a,uR:()=>s});var n=r(8674),i=(r(52687),r(90075)),o=Symbol();function s(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function a(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){function t(r){var o,s,a=r.graphQLErrors,u=r.protocolErrors,c=r.clientErrors,l=r.networkError,f=r.errorMessage,h=r.extraInfo,p=e.call(this,f)||this;return p.name="ApolloError",p.graphQLErrors=a||[],p.protocolErrors=u||[],p.clientErrors=c||[],p.networkError=l||null,p.message=f||(o=p,s=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([],o.graphQLErrors,!0),o.clientErrors,!0),o.protocolErrors,!0),o.networkError&&s.push(o.networkError),s.map((function(e){return(0,i.U)(e)&&e.message||"Error message not found."})).join("\n")),p.extraInfo=h,p.__proto__=t.prototype,p}return(0,n.__extends)(t,e),t}(Error)},66663:(e,t,r)=>{r.r(t),r.d(t,{ApolloCache:()=>n.ApolloCache,ApolloClient:()=>n.ApolloClient,ApolloConsumer:()=>p,ApolloError:()=>n.ApolloError,ApolloLink:()=>n.ApolloLink,ApolloProvider:()=>h,Cache:()=>n.Cache,DocumentTransform:()=>n.DocumentTransform,DocumentType:()=>m,HttpLink:()=>n.HttpLink,InMemoryCache:()=>n.InMemoryCache,MissingFieldError:()=>n.MissingFieldError,NetworkStatus:()=>n.NetworkStatus,Observable:()=>n.Observable,ObservableQuery:()=>n.ObservableQuery,checkFetcher:()=>n.checkFetcher,concat:()=>n.concat,createHttpLink:()=>n.createHttpLink,createQueryPreloader:()=>De,createSignalIfSupported:()=>n.createSignalIfSupported,defaultDataIdFromObject:()=>n.defaultDataIdFromObject,defaultPrinter:()=>n.defaultPrinter,disableExperimentalFragmentVariables:()=>n.disableExperimentalFragmentVariables,disableFragmentWarnings:()=>n.disableFragmentWarnings,empty:()=>n.empty,enableExperimentalFragmentVariables:()=>n.enableExperimentalFragmentVariables,execute:()=>n.execute,fallbackHttpConfig:()=>n.fallbackHttpConfig,from:()=>n.from,fromError:()=>n.fromError,fromPromise:()=>n.fromPromise,getApolloContext:()=>l,gql:()=>n.gql,isApolloError:()=>n.isApolloError,isNetworkRequestSettled:()=>n.isNetworkRequestSettled,isReference:()=>n.isReference,makeReference:()=>n.makeReference,makeVar:()=>n.makeVar,mergeOptions:()=>n.mergeOptions,operationName:()=>x,parseAndCheckHttpResponse:()=>n.parseAndCheckHttpResponse,parser:()=>R,resetApolloContext:()=>f,resetCaches:()=>n.resetCaches,rewriteURIForGET:()=>n.rewriteURIForGET,selectHttpOptionsAndBody:()=>n.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>n.selectHttpOptionsAndBodyInternal,selectURI:()=>n.selectURI,serializeFetchParameter:()=>n.serializeFetchParameter,setLogVerbosity:()=>n.setLogVerbosity,skipToken:()=>ve,split:()=>n.split,throwServerError:()=>n.throwServerError,toPromise:()=>n.toPromise,useApolloClient:()=>d,useBackgroundQuery:()=>we,useFragment:()=>$,useLazyQuery:()=>N,useLoadableQuery:()=>Se,useMutation:()=>U,useQuery:()=>Q,useQueryRefHandlers:()=>Ee,useReactiveVar:()=>B,useReadQuery:()=>xe,useSubscription:()=>W,useSuspenseQuery:()=>be});var n=r(21659),i=r(52687),o=r(8674),s=r(49606),a=r.t(s,2),u=r(2619),c=u.ol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function l(){(0,i.V1)("createContext"in a,45);var e=s.createContext[c];return e||(Object.defineProperty(s.createContext,c,{value:e=s.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var f=l,h=function(e){var t=e.client,r=e.children,n=l(),a=s.useContext(n),u=s.useMemo((function(){return(0,o.__assign)((0,o.__assign)({},a),{client:t||a.client})}),[a,t]);return(0,i.V1)(u.client,46),s.createElement(n.Provider,{value:u},r)},p=function(e){var t=l();return s.createElement(t.Consumer,null,(function(t){return(0,i.V1)(t&&t.client,44),e.children(t.client)}))};function d(e){var t=s.useContext(l()),r=e||t.client;return(0,i.V1)(!!r,49),r}var y=r(60144),v=!1,b=a.useSyncExternalStore||function(e,t,r){var n=t();!1===globalThis.__DEV__||v||n===t()||(v=!0,!1!==globalThis.__DEV__&&i.V1.error(58));var o=s.useState({inst:{value:n,getSnapshot:t}}),a=o[0].inst,c=o[1];return u.JR?s.useLayoutEffect((function(){Object.assign(a,{value:n,getSnapshot:t}),g(a)&&c({inst:a})}),[e,n,t]):Object.assign(a,{value:n,getSnapshot:t}),s.useEffect((function(){return g(a)&&c({inst:a}),e((function(){g(a)&&c({inst:a})}))}),[e]),n};function g(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}var m,_,w=r(15381),O=r(9211),k=r(88599),S=r(599),E=r(81212),T=r(35051);function x(e){var t;switch(e){case m.Query:t="Query";break;case m.Mutation:t="Mutation";break;case m.Subscription:t="Subscription"}return t}function R(e){_||(_=new S.A(E.v.parser||1e3));var t,r,n=_.get(e);if(n)return n;(0,i.V1)(!!e&&!!e.kind,60,e);for(var o=[],s=[],a=[],u=[],c=0,l=e.definitions;c0?new O.K4({graphQLErrors:o}):void 0,h=e.onError||(null===(r=u.current.options)||void 0===r?void 0:r.onError);if(f&&h&&h(f,l),c===u.current.mutationId&&!l.ignoreResults){var p={called:!0,loading:!1,data:i,error:f,client:s};u.current.isMounted&&!(0,w.L)(u.current.result,p)&&a(u.current.result=p)}var d=e.onCompleted||(null===(n=u.current.options)||void 0===n?void 0:n.onCompleted);return f||null==d||d(t.data,l),t})).catch((function(t){var r;if(c===u.current.mutationId&&u.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:s};(0,w.L)(u.current.result,n)||a(u.current.result=n)}var i=e.onError||(null===(r=u.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,l),{data:void 0,errors:t};throw t}))}),[]),l=s.useCallback((function(){if(u.current.isMounted){var e={called:!1,loading:!1,client:u.current.client};Object.assign(u.current,{mutationId:0,result:e}),a(e)}}),[]);return s.useEffect((function(){var e=u.current;return e.isMounted=!0,function(){e.isMounted=!1}}),[]),[c,(0,o.__assign)({reset:l},i)]}function W(e,t){var r=s.useRef(!1),n=d(null==t?void 0:t.client);D(e,m.Subscription);var o=s.useState({loading:!(null==t?void 0:t.skip),error:void 0,data:void 0,variables:null==t?void 0:t.variables}),a=o[0],u=o[1];r.current||(r.current=!0,(null==t?void 0:t.onSubscriptionData)&&!1!==globalThis.__DEV__&&i.V1.warn(t.onData?52:53),(null==t?void 0:t.onSubscriptionComplete)&&!1!==globalThis.__DEV__&&i.V1.warn(t.onComplete?54:55));var c=s.useState((function(){return(null==t?void 0:t.skip)?null:n.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})})),l=c[0],f=c[1],h=s.useRef(!1);s.useEffect((function(){return function(){h.current=!0}}),[]);var p=s.useRef({client:n,subscription:e,options:t});return s.useEffect((function(){var r,i,o,s,a=null==t?void 0:t.shouldResubscribe;"function"==typeof a&&(a=!!a(t)),(null==t?void 0:t.skip)?(!(null==t?void 0:t.skip)!=!(null===(r=p.current.options)||void 0===r?void 0:r.skip)||h.current)&&(u({loading:!1,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),f(null),h.current=!1):(!1===a||n===p.current.client&&e===p.current.subscription&&(null==t?void 0:t.fetchPolicy)===(null===(i=p.current.options)||void 0===i?void 0:i.fetchPolicy)&&!(null==t?void 0:t.skip)==!(null===(o=p.current.options)||void 0===o?void 0:o.skip)&&(0,w.L)(null==t?void 0:t.variables,null===(s=p.current.options)||void 0===s?void 0:s.variables))&&!h.current||(u({loading:!0,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),f(n.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})),h.current=!1),Object.assign(p.current,{client:n,subscription:e,options:t})}),[n,e,t,h.current]),s.useEffect((function(){if(l){var e=!1,r=l.subscribe({next:function(r){var i,o;if(!e){var s={loading:!1,data:r.data,error:void 0,variables:null==t?void 0:t.variables};u(s),(null===(i=p.current.options)||void 0===i?void 0:i.onData)?p.current.options.onData({client:n,data:s}):(null===(o=p.current.options)||void 0===o?void 0:o.onSubscriptionData)&&p.current.options.onSubscriptionData({client:n,subscriptionData:s})}},error:function(r){var n,i;e||(u({loading:!1,data:void 0,error:r,variables:null==t?void 0:t.variables}),null===(i=null===(n=p.current.options)||void 0===n?void 0:n.onError)||void 0===i||i.call(n,r))},complete:function(){var t,r;e||((null===(t=p.current.options)||void 0===t?void 0:t.onComplete)?p.current.options.onComplete():(null===(r=p.current.options)||void 0===r?void 0:r.onSubscriptionComplete)&&p.current.options.onSubscriptionComplete())}});return function(){e=!0,setTimeout((function(){r.unsubscribe()}))}}}),[l]),a}function B(e){return b(s.useCallback((function(t){return e.onNextChange((function r(){t(),e.onNextChange(r)}))}),[e]),e,e)}var K=r(92922);function H(e,t){var r=s.useRef();return r.current&&(0,w.L)(r.current.deps,t)||(r.current={value:e(),deps:t}),r.current.value}var J={};function $(e){return A("useFragment",G,d(e.client))(e)}function G(e){var t,r,n=d(e.client).cache,i=H((function(){var t=e.fragment,r=e.fragmentName,i=e.from,s=e.optimistic,a=void 0===s||s,u=(0,o.__rest)(e,["fragment","fragmentName","from","optimistic"]);return(0,o.__assign)((0,o.__assign)({},u),{returnPartialData:!0,id:"string"==typeof i?i:n.identify(i),query:n.getFragmentDoc(t,r),optimistic:a})}),[e]),a=(t=function(){return Y(n.diff(i))},(r=s.useRef(J)).current===J&&(r.current=t()),r),u=H((function(){return e}),[e]);s.useMemo((function(){a.current=Y(n.diff(i))}),[i,n]);var c=s.useCallback((function(){return a.current}),[]);return b(s.useCallback((function(e){var t=0,r=n.watchFragment(u).subscribe({next:function(r){(0,w.A)(r,a.current)||(a.current=r,clearTimeout(t),t=setTimeout(e))}});return function(){r.unsubscribe(),clearTimeout(t)}}),[n,u]),c,c)}function Y(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=(0,K.IM)(e.missing.map((function(e){return e.missing})))),t}var X=r(36697),Z=a.use||function(e){var t=(0,X.zq)(e);switch(t.status){case"pending":throw t;case"rejected":throw t.reason;case"fulfilled":return t.value}},ee=r(54834),te=r(67235),re=Symbol(),ne=Symbol();function ie(e){var t,r=((t={toPromise:function(){return se(r).then((function(){return r}))}})[re]=e,t[ne]=e.promise,t);return r}function oe(e){(0,te.V1)(!e||re in e,59)}function se(e){var t=ae(e);return"fulfilled"===t.promise.status?t.promise:e[ne]}function ae(e){return e[re]}function ue(e,t){e[ne]=t}var ce=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],le=function(){function e(e,t){var r=this;this.key={},this.listeners=new Set,this.references=0,this.softReferences=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,t.onDispose&&(this.onDispose=t.onDispose),this.setResult(),this.subscribeToQuery();var n=function(){var e;r.references||(r.autoDisposeTimeoutId=setTimeout(r.dispose,null!==(e=t.autoDisposeTimeoutMs)&&void 0!==e?e:3e4))};this.promise.then(n,n)}return Object.defineProperty(e.prototype,"disposed",{get:function(){return this.subscription.closed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),e.prototype.reinitialize=function(){var e=this.observable,t=this.watchQueryOptions.fetchPolicy,r="no-cache"===t||"standby"===t;try{if(r?e.silentSetOptions({fetchPolicy:"standby"}):(e.resetLastResults(),e.silentSetOptions({fetchPolicy:"cache-first"})),this.subscribeToQuery(),r)return;e.resetDiff(),this.setResult()}finally{e.silentSetOptions({fetchPolicy:t})}},e.prototype.retain=function(){var e=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var t=!1;return function(){t||(t=!0,e.references--,setTimeout((function(){e.references||e.dispose()})))}},e.prototype.softRetain=function(){var e=this;this.softReferences++;var t=!1;return function(){t||(t=!0,e.softReferences--,setTimeout((function(){e.softReferences||e.references||e.dispose()})))}},e.prototype.didChangeOptions=function(e){var t=this;return ce.some((function(r){return r in e&&!(0,w.L)(t.watchQueryOptions[r],e[r])}))},e.prototype.applyOptions=function(e){var t=this.watchQueryOptions,r=t.fetchPolicy,n=t.canonizeResults;return"standby"===r&&r!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):(this.observable.silentSetOptions(e),n!==e.canonizeResults&&(this.result=(0,o.__assign)((0,o.__assign)({},this.result),this.observable.getCurrentResult()),this.promise=(0,X.$D)(this.result))),this.promise},e.prototype.listen=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.refetch=function(e){return this.initiateFetch(this.observable.refetch(e))},e.prototype.fetchMore=function(e){return this.initiateFetch(this.observable.fetchMore(e))},e.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},e.prototype.onDispose=function(){},e.prototype.handleNext=function(e){var t;if("pending"===this.promise.status)void 0===e.data&&(e.data=this.result.data),this.result=e,null===(t=this.resolve)||void 0===t||t.call(this,e);else{if(e.data===this.result.data&&e.networkStatus===this.result.networkStatus)return;void 0===e.data&&(e.data=this.result.data),this.result=e,this.promise=(0,X.$D)(e),this.deliver(this.promise)}},e.prototype.handleError=function(e){var t;this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),"pending"===this.promise.status?null===(t=this.reject)||void 0===t||t.call(this,e):(this.promise=(0,X.Il)(e),this.deliver(this.promise))},e.prototype.deliver=function(e){this.listeners.forEach((function(t){return t(e)}))},e.prototype.initiateFetch=function(e){var t=this;return this.promise=this.createPendingPromise(),this.promise.catch((function(){})),e.then((function(){setTimeout((function(){var e;"pending"===t.promise.status&&(t.result=t.observable.getCurrentResult(),null===(e=t.resolve)||void 0===e||e.call(t,t.result))}))})).catch((function(){})),e},e.prototype.subscribeToQuery=function(){var e=this;this.subscription=this.observable.filter((function(t){return!(0,w.L)(t.data,{})&&!(0,w.L)(t,e.result)})).subscribe(this.handleNext,this.handleError)},e.prototype.setResult=function(){var e=this.observable.getCurrentResult(!1);(0,w.L)(e,this.result)||(this.result=e,this.promise=!e.data||e.partial&&!this.watchQueryOptions.returnPartialData?this.createPendingPromise():(0,X.$D)(e))},e.prototype.createPendingPromise=function(){var e=this;return(0,X.zq)(new Promise((function(t,r){e.resolve=t,e.reject=r})))},e}(),fe=function(){function e(e){void 0===e&&(e=Object.create(null)),this.queryRefs=new ee.b(u.et),this.options=e}return e.prototype.getQueryRef=function(e,t){var r=this.queryRefs.lookupArray(e);return r.current||(r.current=new le(t(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete r.current}})),r.current},e.prototype.add=function(e,t){this.queryRefs.lookupArray(e).current=t},e}(),he=Symbol.for("apollo.suspenseCache");function pe(e){var t;return e[he]||(e[he]=new fe(null===(t=e.defaultOptions.react)||void 0===t?void 0:t.suspense)),e[he]}var de,ye=r(96269),ve=Symbol.for("apollo.skipToken");function be(e,t){return void 0===t&&(t=Object.create(null)),A("useSuspenseQuery",ge,d("object"==typeof t?t.client:void 0))(e,t)}function ge(e,t){var r=d(t.client),n=pe(r),i=_e({client:r,query:e,options:t}),a=i.fetchPolicy,u=i.variables,c=t.queryKey,l=void 0===c?[]:c,f=(0,o.__spreadArray)([e,(0,ye.M)(u)],[].concat(l),!0),h=n.getQueryRef(f,(function(){return r.watchQuery(i)})),p=s.useState([h.key,h.promise]),y=p[0],v=p[1];y[0]!==h.key&&(y[0]=h.key,y[1]=h.promise);var b=y[1];h.didChangeOptions(i)&&(y[1]=b=h.applyOptions(i)),s.useEffect((function(){var e=h.retain(),t=h.listen((function(e){v([h.key,e])}));return function(){t(),e()}}),[h]);var g=s.useMemo((function(){var e=me(h.result);return{loading:!1,data:h.result.data,networkStatus:e?k.pT.error:k.pT.ready,error:e}}),[h.result]),m="standby"===a?g:Z(b),_=s.useCallback((function(e){var t=h.fetchMore(e);return v([h.key,h.promise]),t}),[h]),w=s.useCallback((function(e){var t=h.refetch(e);return v([h.key,h.promise]),t}),[h]),O=s.useCallback((function(e){return h.observable.subscribeToMore(e)}),[h]);return s.useMemo((function(){return{client:r,data:m.data,error:me(m),networkStatus:m.networkStatus,fetchMore:_,refetch:w,subscribeToMore:O}}),[r,_,w,m,O])}function me(e){return(0,j.E)(e.errors)?new O.K4({graphQLErrors:e.errors}):e.error}function _e(e){var t=e.client,r=e.query,n=e.options;return H((function(){var e;if(n===ve)return{query:r,fetchPolicy:"standby"};var s=n.fetchPolicy||(null===(e=t.defaultOptions.watchQuery)||void 0===e?void 0:e.fetchPolicy)||"cache-first",a=(0,o.__assign)((0,o.__assign)({},n),{fetchPolicy:s,query:r,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0});return!1!==globalThis.__DEV__&&function(e){var t=e.query,r=e.fetchPolicy,n=e.returnPartialData;D(t,m.Query),function(e){void 0===e&&(e="cache-first"),(0,i.V1)(["cache-first","network-only","no-cache","cache-and-network"].includes(e),56,e)}(r),function(e,t){"no-cache"===e&&t&&!1!==globalThis.__DEV__&&i.V1.warn(57)}(r,n)}(a),n.skip&&(a.fetchPolicy="standby"),a}),[t,n,r])}function we(e,t){return void 0===t&&(t=Object.create(null)),A("useBackgroundQuery",Oe,d("object"==typeof t?t.client:void 0))(e,t)}function Oe(e,t){var r=d(t.client),n=pe(r),i=_e({client:r,query:e,options:t}),a=i.fetchPolicy,u=i.variables,c=t.queryKey,l=void 0===c?[]:c,f=s.useRef("standby"!==a);f.current||(f.current="standby"!==a);var h=(0,o.__spreadArray)([e,(0,ye.M)(u)],[].concat(l),!0),p=n.getQueryRef(h,(function(){return r.watchQuery(i)})),y=s.useState(ie(p)),v=y[0],b=y[1];ae(v)!==p&&b(ie(p)),p.didChangeOptions(i)&&ue(v,p.applyOptions(i)),s.useEffect((function(){var e=setTimeout((function(){p.disposed&&n.add(h,p)}));return function(){return clearTimeout(e)}}));var g=s.useCallback((function(e){var t=p.fetchMore(e);return b(ie(p)),t}),[p]),m=s.useCallback((function(e){var t=p.refetch(e);return b(ie(p)),t}),[p]);return s.useEffect((function(){return p.softRetain()}),[p]),[f.current?v:void 0,{fetchMore:g,refetch:m}]}function ke(){}function Se(e,t){void 0===t&&(t=Object.create(null));var r=d(t.client),n=pe(r),a=_e({client:r,query:e,options:t}),u=t.queryKey,c=void 0===u?[]:u,l=s.useState(null),f=l[0],h=l[1];oe(f);var p=f&&ae(f);f&&(null==p?void 0:p.didChangeOptions(a))&&ue(f,p.applyOptions(a));var y=(de||(de=s.createContext(null)),s.useCallback((function(){var e=console.error;try{return console.error=ke,s.useContext(de),!0}catch(e){return!1}finally{console.error=e}}),[])),v=s.useCallback((function(e){if(!p)throw new Error("The query has not been loaded. Please load the query.");var t=p.fetchMore(e);return h(ie(p)),t}),[p]),b=s.useCallback((function(e){if(!p)throw new Error("The query has not been loaded. Please load the query.");var t=p.refetch(e);return h(ie(p)),t}),[p]),g=s.useCallback((function(){for(var t=[],s=0;s{r.d(t,{C:()=>l});var n=r(52687),i=r(73401),o=r(8674),s=r(84824);function a(e,t){return t?t(e):i.c.of()}function u(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return i.c.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var o,s=u(r),l=u(n||new e(a));return o=c(s)&&c(l)?new e((function(e){return t(e)?s.request(e)||i.c.of():l.request(e)||i.c.of()})):new e((function(e,r){return t(e)?s.request(e,r)||i.c.of():l.request(e,r)||i.c.of()})),Object.assign(o,{left:s,right:l})},e.execute=function(e,t){return e.request(function(e,t){var r=(0,o.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?(0,o.__assign)((0,o.__assign)({},r),e(r)):(0,o.__assign)((0,o.__assign)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,o.__assign)({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,s.n4)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r{r.d(t,{g:()=>n});var n=r(91188).C.execute},8898:(e,t,r)=>{r.d(t,{Ch:()=>n.C,xW:()=>a,Ie:()=>i,g7:()=>u.g,HT:()=>o,lD:()=>s}),r(52687);var n=r(91188),i=n.C.empty,o=n.C.from,s=n.C.split,a=n.C.concat,u=r(74081)},94537:(e,t,r)=>{r.d(t,{P:()=>s});var n=r(8674),i=r(91188),o=r(13782),s=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,(0,o.$)(t).request)||this;return r.options=t,r}return(0,n.__extends)(t,e),t}(i.C)},83438:(e,t,r)=>{r.d(t,{S:()=>i});var n=r(52687),i=function(e){if(!e&&"undefined"==typeof fetch)throw(0,n.vA)(37)}},13782:(e,t,r)=>{r.d(t,{$:()=>m});var n=r(8674),i=r(52687),o=r(91188),s=r(68869),a=r(73401),u=r(49192),c=r(88039),l=r(21799),f=r(83438),h=r(84594),p=r(9162),d=r(86092),y=r(11786),v=r(3902),b=r(84824),g=(0,i.no)((function(){return fetch})),m=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,m=e.fetch,_=e.print,w=void 0===_?h.i1:_,O=e.includeExtensions,k=e.preserveHeaderCase,S=e.useGETForQueries,E=e.includeUnusedVariables,T=void 0!==E&&E,x=(0,n.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,f.S)(m||g);var R={http:{includeExtensions:O,preserveHeaderCase:k},options:x.fetchOptions,credentials:x.credentials,headers:x.headers};return new o.C((function(e){var t=(0,c.z)(e,r),o=e.getContext(),f={};if(o.clientAwareness){var _=o.clientAwareness,O=_.name,k=_.version;O&&(f["apollographql-client-name"]=O),k&&(f["apollographql-client-version"]=k)}var E=(0,n.__assign)((0,n.__assign)({},f),o.headers),x={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:E};if((0,s.d8)(["client"],e.query)){var D=(0,v.er)(e.query);if(!D)return(0,d.N)(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=D}var P,C,j,q,A,M=(0,h.HY)(e,w,h.R4,R,x),Q=M.options,F=M.body;F.variables&&!T&&(F.variables=(P=F.variables,C=e.query,j=(0,n.__assign)({},P),q=new Set(Object.keys(P)),(0,y.YR)(C,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&q.delete(e.name.value)}}),q.forEach((function(e){delete j[e]})),j)),Q.signal||"undefined"==typeof AbortController||(A=new AbortController,Q.signal=A.signal);var I,V="OperationDefinition"===(I=(0,b.Vn)(e.query)).kind&&"subscription"===I.operation,L=(0,s.d8)(["defer"],e.query);if(S&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(Q.method="GET"),L||V){Q.headers=Q.headers||{};var N="multipart/mixed;";V&&L&&!1!==globalThis.__DEV__&&i.V1.warn(38),V?N+="boundary=graphql;subscriptionSpec=1.0,application/json":L&&(N+="deferSpec=20220824,application/json"),Q.headers.accept=N}if("GET"===Q.method){var z=(0,p.E)(t,F),U=z.newURI,W=z.parseError;if(W)return(0,d.N)(W);t=U}else try{Q.body=(0,u.Y)(F,"Payload")}catch(W){return(0,d.N)(W)}return new a.c((function(r){var n=m||(0,i.no)((function(){return fetch}))||g,o=r.next.bind(r);return n(t,Q).then((function(t){var r;e.setContext({response:t});var n=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?(0,l.tD)(t,o):(0,l.OQ)(e)(t).then(o)})).then((function(){A=void 0,r.complete()})).catch((function(e){A=void 0,(0,l.H4)(e,r)})),function(){A&&A.abort()}}))}))}},83746:(e,t,r)=>{r.d(t,{S:()=>n});var n=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}},21799:(e,t,r)=>{r.d(t,{H4:()=>d,OQ:()=>y,tD:()=>f});var n=r(8674),i=r(2619);function o(e){var t={next:function(){return e.read()}};return i.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}function s(e){var t,r,n,s=e;if(e.body&&(s=e.body),n=s,i.uJ&&n[Symbol.asyncIterator])return r=s[Symbol.asyncIterator](),(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t;if(function(e){return!!e.getReader}(s))return o(s.getReader());if(function(e){return!!e.stream}(s))return o(s.stream().getReader());if(function(e){return!!e.arrayBuffer}(s))return function(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,r){e.then((function(e){t({value:e,done:!1})})).catch(r)})))}};return i.uJ&&(r[Symbol.asyncIterator]=function(){return this}),r}(s.arrayBuffer());if(function(e){return!!e.pipe}(s))return function(e){var t=null,r=null,n=!1,o=[],s=[];function a(e){if(!r){if(s.length){var t=s.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function u(e){r=e,s.slice().forEach((function(t){t[1](e)})),!t||t()}function c(){n=!0,s.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",u),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",a),e.on("error",u),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise((function(e,t){return r?t(r):o.length?e({value:o.shift(),done:!1}):n?e({value:void 0,done:!0}):void s.push([e,t])}))}};return i.uJ&&(l[Symbol.asyncIterator]=function(){return this}),l}(s);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var a=r(64251),u=r(9211),c=r(56453),l=Object.prototype.hasOwnProperty;function f(e,t){return(0,n.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a,l,f,d,y,v,b,g,m,_,w,O,k,S,E,T,x,R,D,P,C;return(0,n.__generator)(this,(function(j){switch(j.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),i=null===(C=e.headers)||void 0===C?void 0:C.get("content-type"),o="boundary=",a=(null==i?void 0:i.includes(o))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(o))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",l="\r\n--".concat(a),f="",d=s(e),y=!0,j.label=1;case 1:return y?[4,d.next()]:[3,3];case 2:for(v=j.sent(),b=v.value,g=v.done,m="string"==typeof b?b:r.decode(b),_=f.length-l.length+1,y=!g,w=(f+=m).indexOf(l,_);w>-1;){if(O=void 0,D=[f.slice(0,w),f.slice(w+l.length)],f=D[1],k=(O=D[0]).indexOf("\r\n\r\n"),S=h(O.slice(0,k)),(E=S["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(T=O.slice(k))if(x=p(e,T),Object.keys(x).length>1||"data"in x||"incremental"in x||"errors"in x||"payload"in x)if((0,c.Nw)(x)){if(R={},"payload"in x){if(1===Object.keys(x).length&&null===x.payload)return[2];R=(0,n.__assign)({},x.payload)}"errors"in x&&(R=(0,n.__assign)((0,n.__assign)({},R),{extensions:(0,n.__assign)((0,n.__assign)({},"extensions"in R?R.extensions:null),(P={},P[u.K$]=x.errors,P))})),t(R)}else t(x);else if(1===Object.keys(x).length&&"hasNext"in x&&!x.hasNext)return[2];w=f.indexOf(l)}return[3,1];case 3:return[2]}}))}))}function h(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}})),t}function p(e,t){e.status>=300&&(0,a.A)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function d(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function y(e){return function(t){return t.text().then((function(e){return p(t,e)})).then((function(r){return Array.isArray(r)||l.call(r,"data")||l.call(r,"errors")||(0,a.A)(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName,"'.")),r}))}}},9162:(e,t,r)=>{r.d(t,{E:()=>i});var n=r(49192);function i(e,t){var r=[],i=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var o=void 0;try{o=(0,n.Y)(t.variables,"Variables map")}catch(e){return{parseError:e}}i("variables",o)}if(t.extensions){var s=void 0;try{s=(0,n.Y)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}i("extensions",s)}var a="",u=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),u=e.substr(0,c));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+r.join("&")+a}}},84594:(e,t,r)=>{r.d(t,{HY:()=>u,R4:()=>o,Wz:()=>a,i1:()=>s});var n=r(8674),i=r(47397),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},s=function(e,t){return t(e)};function a(e,t){for(var r=[],i=2;i{r.d(t,{z:()=>n});var n=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}},49192:(e,t,r)=>{r.d(t,{Y:()=>i});var n=r(52687),i=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var i=(0,n.vA)(39,t,e.message);throw i.parseError=e,i}return r}},86092:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(73401);function i(e){return new n.c((function(t){t.error(e)}))}},73547:(e,t,r)=>{r.d(t,{S:()=>i});var n=r(73401);function i(e){return new n.c((function(t){e.then((function(e){t.next(e),t.complete()})).catch(t.error.bind(t))}))}},64251:(e,t,r)=>{r.d(t,{A:()=>n});var n=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}},31052:(e,t,r)=>{r.d(t,{h:()=>i});var n=r(52687);function i(e){var t=!1;return new Promise((function(r,i){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&n.V1.warn(42):(t=!0,r(e))},error:i})}))}},599:(e,t,r)=>{r.d(t,{A:()=>a,V:()=>u});var n=r(11744),i=r(37783),o=new WeakSet;function s(e){e.size<=(e.max||-1)||o.has(e)||(o.add(e),setTimeout((function(){e.clean(),o.delete(e)}),100))}var a=function(e,t){var r=new n.l(e,t);return r.set=function(e,t){var r=n.l.prototype.set.call(this,e,t);return s(this),r},r},u=function(e,t){var r=new i.C(e,t);return r.set=function(e,t){var r=i.C.prototype.set.call(this,e,t);return s(this),r},r}},35051:(e,t,r)=>{r.d(t,{D_:()=>s,cM:()=>u,ep:()=>a,tQ:()=>c});var n=r(8674),i=r(81212),o={};function s(e,t){o[e]=t}var a=!1!==globalThis.__DEV__?function(){var e,t,r,s,a;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map((function(e){var t=e[0],r=e[1];return[t,i.v[t]||r]}))),sizes:(0,n.__assign)({print:null===(e=o.print)||void 0===e?void 0:e.call(o),parser:null===(t=o.parser)||void 0===t?void 0:t.call(o),canonicalStringify:null===(r=o.canonicalStringify)||void 0===r?void 0:r.call(o),links:y(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:p(this.queryManager.documentTransform)}},null===(a=(s=this.cache).getMemoryInternals)||void 0===a?void 0:a.call(s))}}:void 0,u=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,n.__assign)((0,n.__assign)({},l.apply(this)),{addTypenameDocumentTransform:p(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:f(this.storeReader.executeSelectionSet),executeSubSelectedArray:f(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:f(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:f(null==e?void 0:e.findFragmentSpreads),lookup:f(null==e?void 0:e.lookup),transform:f(null==e?void 0:e.transform)}})}:void 0,c=!1!==globalThis.__DEV__?l:void 0;function l(){return{cache:{fragmentQueryDocuments:f(this.getFragmentDoc)}}}function f(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function h(e){return null!=e}function p(e){return d(e).map((function(e){return{cache:e}}))}function d(e){return e?(0,n.__spreadArray)((0,n.__spreadArray)([f(null==e?void 0:e.performWork)],d(null==e?void 0:e.left),!0),d(null==e?void 0:e.right),!0).filter(h):[]}function y(e){var t;return e?(0,n.__spreadArray)((0,n.__spreadArray)([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],y(null==e?void 0:e.left),!0),y(null==e?void 0:e.right),!0).filter(h):[]}},81212:(e,t,r)=>{r.d(t,{v:()=>s});var n=r(8674),i=r(52687),o=Symbol.for("apollo.cacheSize"),s=(0,n.__assign)({},i.Sf[o])},45636:(e,t,r)=>{r.d(t,{E:()=>i,c:()=>n});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},2619:(e,t,r)=>{r.d(t,{En:()=>s,JR:()=>f,Sw:()=>c,et:()=>o,ol:()=>a,uJ:()=>u});var n=r(52687),i="ReactNative"==(0,n.no)((function(){return navigator.product})),o="function"==typeof WeakMap&&!(i&&!global.HermesInternal),s="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,u=a&&Symbol.asyncIterator,c="function"==typeof(0,n.no)((function(){return window.document.createElement})),l=(0,n.no)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,f=(c||i)&&!l},96269:(e,t,r)=>{r.d(t,{M:()=>a});var n,i=r(599),o=r(81212),s=r(35051),a=Object.assign((function(e){return JSON.stringify(e,u)}),{reset:function(){n=new i.V(o.v.canonicalStringify||1e3)}});function u(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var i=Object.keys(t);if(i.every(c))return t;var o=JSON.stringify(i),s=n.get(o);if(!s){i.sort();var a=JSON.stringify(i);s=n.get(a)||i,n.set(o,s),n.set(a,s)}var u=Object.create(r);return s.forEach((function(e){u[e]=t[e]})),u}}return t}function c(e,t,r){return 0===t||r[t-1]<=e}!1!==globalThis.__DEV__&&(0,s.D_)("canonicalStringify",(function(){return n.size})),a.reset()},91495:(e,t,r)=>{r.d(t,{m:()=>i});var n=Object.prototype.toString;function i(e){return o(e)}function o(e,t){switch(n.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=o(e,t)})),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach((function(r){i[r]=o(e[r],t)})),i;default:return e}}},87945:(e,t,r)=>{function n(){for(var e=[],t=0;tn})},59599:(e,t,r)=>{r.d(t,{M:()=>s,t:()=>o});var n=r(45636),i=r(56453);function o(e){var t=s(e);return(0,n.E)(t)}function s(e){var t=(0,n.E)(e.errors)?e.errors.slice(0):[];return(0,i.ST)(e)&&(0,n.E)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}},98170:(e,t,r)=>{r.d(t,{v:()=>i});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},21469:(e,t,r)=>{r.d(t,{G:()=>i});var n=r(90075);function i(e){return!1!==globalThis.__DEV__&&(t=e,(r=new Set([t])).forEach((function(e){(0,n.U)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){(0,n.U)(e[t])&&r.add(e[t])}))}))),e;var t,r}},92922:(e,t,r)=>{r.d(t,{D9:()=>s,IM:()=>a,ZI:()=>c});var n=r(8674),i=r(90075),o=Object.prototype.hasOwnProperty;function s(){for(var e=[],t=0;t1)for(var n=new c,i=1;i{r.d(t,{l:()=>o});var n=r(8674),i=r(87945);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,n.__assign)((0,n.__assign)({},e&&e.variables),t.variables))})}},3813:(e,t,r)=>{r.d(t,{p:()=>i});var n=r(98170);function i(e,t){void 0===t&&(t=0);var r=(0,n.v)("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?r:t}),t).split(JSON.stringify(r)).join("")}},37008:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(83687);const i=(0,n.n)((function(){return globalThis}))||(0,n.n)((function(){return window}))||(0,n.n)((function(){return self}))||(0,n.n)((function(){return global}))||(0,n.n)((function(){return n.n.constructor("return this")()}))},67235:(e,t,r)=>{r.d(t,{V1:()=>u,vA:()=>c});var n=r(72232),i=r(32816),o=r(37008),s=r(3813);function a(e){return function(t){for(var r=[],n=1;n"}}function h(e,t){if(void 0===t&&(t=[]),e)return o.A[l]&&o.A[l](e,t.map(f))}function p(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:i.r,message:e,args:t.map(f)})))}},29993:(e,t,r)=>{r.d(t,{c:()=>f});var n=r(54834),i=r(2619),o=r(84824),s=r(52687),a=r(11744),u=r(1161),c=r(81212);function l(e){return e}var f=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(l,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e((function(e){return(t(e)?r:n).transformDocument(e)}),{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new n.b(i.et);this.performWork=(0,u.LV)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,s.V1)(Array.isArray(n),67),r.lookupArray(n)},max:c.v["documentTransform.cache"],cache:a.l})}},e.prototype.performWork=function(e){return(0,o.sw)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e((function(e){return t.transformDocument(r.transformDocument(e))}),{cache:!1}),{left:this,right:t})},e}()},65215:(e,t,r)=>{r.d(t,{HQ:()=>a,JG:()=>s,ct:()=>o});var n=r(8674),i=r(52687);function o(e,t){var r=t,o=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw(0,i.vA)(72,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)})),void 0===r&&((0,i.V1)(1===o.length,73,o.length),r=o[0].name.value),(0,n.__assign)((0,n.__assign)({},e),{definitions:(0,n.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function a(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.V1)(n,74,r),n||null;default:return null}}},84824:(e,t,r)=>{r.d(t,{AT:()=>c,E4:()=>l,Vn:()=>f,Vu:()=>s,n4:()=>a,sw:()=>o,wY:()=>h,zK:()=>u});var n=r(52687),i=r(67194);function o(e){(0,n.V1)(e&&"Document"===e.kind,75);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw(0,n.vA)(76,e.kind);return e}));return(0,n.V1)(t.length<=1,77,t.length),e}function s(e){return o(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function a(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function u(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function c(e){var t=s(e);return(0,n.V1)(t&&"query"===t.operation,78),t}function l(e){(0,n.V1)("Document"===e.kind,79),(0,n.V1)(e.definitions.length<=1,80);var t=e.definitions[0];return(0,n.V1)("FragmentDefinition"===t.kind,81),t}function f(e){var t;o(e);for(var r=0,i=e.definitions;r{r.d(t,{y:()=>u});var n,i=r(99352),o=r(599),s=r(81212),a=r(35051),u=Object.assign((function(e){var t=n.get(e);return t||(t=(0,i.print)(e),n.set(e,t)),t}),{reset:function(){n=new o.A(s.v.print||2e3)}});u.reset(),!1!==globalThis.__DEV__&&(0,a.D_)("print",(function(){return n?n.size:0}))},67194:(e,t,r)=>{r.d(t,{A_:()=>u,D$:()=>b,Ii:()=>f,J:()=>l,Kc:()=>c,MB:()=>y,WU:()=>a,dt:()=>g,kd:()=>m,o5:()=>d,ue:()=>v});var n=r(52687),i=r(90075),o=r(65215),s=r(96269);function a(e){return{__ref:String(e)}}function u(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,i.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function l(e,t,r,i){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var o={};r.fields.map((function(e){return l(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var s=(i||{})[r.name.value];e[t.value]=s}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return l(r,t,e,i),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw(0,n.vA)(83,t.value,r.kind);e[t.value]=null}}function f(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return l(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return l(n,r,i,t)}))),d(e.name.value,n,r)}var h=["connection","include","skip","client","rest","export","nonreactive"],p=s.M,d=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat(p(i),")")}return r.connection.key}var o=e;if(t){var s=p(t);o+="(".concat(s,")")}return r&&Object.keys(r).forEach((function(e){-1===h.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=p;return p=e,t}});function y(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return l(r,n,i,t)})),r}return null}function v(e){return e.alias?e.alias.value:e.name.value}function b(e,t,r){for(var n,i=0,s=t.selections;i{r.d(t,{E:()=>u});var n=r(8674),i=r(73401),o=r(26502),s=r(21291);function a(e){return e&&"function"==typeof e.then}var u=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,o.w)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,o.w)(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?a(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)}),r.handlers.error):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,o.w)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),"function"==typeof t&&(t=[new i.c(t)]),a(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return(0,n.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}))},t}(i.c);(0,s.r)(u)},83851:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(73401);function i(e,t,r){return new n.c((function(n){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then((function(e){return n.next(e)}),(function(e){return n.error(e)}))}else n[t](r)}}var s={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then((function(){return n.complete()}))}},a=e.subscribe(s);return function(){return a.unsubscribe()}}))}},26502:(e,t,r)=>{function n(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}r.d(t,{w:()=>n})},21291:(e,t,r)=>{r.d(t,{r:()=>o});var n=r(73401),i=r(2619);function o(e){function t(t){Object.defineProperty(e,t,{value:n.c})}return i.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},32816:(e,t,r)=>{r.d(t,{r:()=>n});var n="3.10.8"},37783:(e,t,r)=>{function n(){}r.d(t,{C:()=>i});class i{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},11744:(e,t,r)=>{function n(){}r.d(t,{l:()=>u});const i=n,o="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},s="undefined"!=typeof WeakMap?WeakMap:Map,a="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}};class u{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new s,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const r=t.key;delete t.key,t.keyRef=new o(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},15381:(e,t,r)=>{r.d(t,{A:()=>u,L:()=>a});const{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,s=new Map;function a(e,t){try{return c(e,t)}finally{s.clear()}}const u=a;function c(e,t){if(e===t)return!0;const r=n.call(e);if(r!==n.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(p(e,t))return!0;const r=l(e),n=l(t),o=r.length;if(o!==n.length)return!1;for(let e=0;e=0&&e.indexOf(t,r)===r}(r,h)}}return!1}function l(e){return Object.keys(e).filter(f,e)}function f(e){return void 0!==this[e]}const h="{ [native code] }";function p(e,t){let r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},54834:(e,t,r)=>{r.d(t,{b:()=>a});const n=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class a{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,(e=>t=t.getChildTrie(e))),s.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r{r.d(t,{DX:()=>v,yN:()=>z,LV:()=>K});const n=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class a{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return i.call(e,(e=>t=t.getChildTrie(e))),s.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&rglobalThis))||p((()=>global))||Object.create(null),v=y[d]||Array[d]||function(e){try{Object.defineProperty(y,d,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",h++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=l;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===f)break;return e!==l&&(l.slots[this.id]=t),!0}return l&&(l.slots[this.id]=f),!1}getValue(){if(this.hasValue())return l.slots[this.id]}withValue(e,t,r,n){const i={__proto__:null,[this.id]:e},o=l;l={parent:o,slots:i};try{return t.apply(n,r)}finally{l=o}}static bind(e){const t=l;return function(){const r=l;try{return l=t,e.apply(this,arguments)}finally{l=r}}}static noContext(e,t,r){if(!l)return e.apply(r,t);{const n=l;try{return l=null,e.apply(r,t)}finally{l=n}}}}),{bind:b,noContext:g}=v,m=new v,{hasOwnProperty:_}=Object.prototype,w=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function O(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const k=[],S=100;function E(e,t){if(!e)throw new Error(t||"assertion failure")}function T(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function x(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function R(e){return e.slice(0)}class D{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++D.count}peek(){if(1===this.value.length&&!j(this))return P(this),this.value[0]}recompute(e){return E(!this.recomputing,"already recomputing"),P(this),j(this)?function(e,t){return V(e),m.withValue(e,C,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{O(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,j(e)||A(e)}(e),x(e.value)}(this,e):x(this.value)}setDirty(){this.dirty||(this.dirty=!0,q(this),O(this))}dispose(){this.setDirty(),V(this),M(this,((e,t)=>{e.setDirty(),L(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=k.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(w(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),k.push(this.deps),this.deps=null)}}function P(e){const t=m.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),j(e)?Q(t,e):F(t,e),t}function C(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let n;r&&1===e.value.length&&(n=R(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!T(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function j(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function q(e){M(e,Q)}function A(e){M(e,F)}function M(e,t){const r=e.parents.size;if(r){const n=w(e.parents);for(let i=0;i0&&e.childValues.forEach(((t,r)=>{L(e,r)})),e.forgetDeps(),E(null===e.dirtyChildren)}function L(e,t){t.parents.delete(e),e.childValues.delete(t),I(e,t)}D.count=0;const N={setDirty:!0,dispose:!0,forget:!0};function z(e){const t=new Map,r=e&&e.subscribe;function n(e){const n=m.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(O(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){const n=t.get(e);if(n){const i=r&&_.call(N,r)?r:"setDirty";w(n).forEach((e=>e[i]())),t.delete(e),O(n)}},n}let U;function W(...e){return(U||(U=new a("function"==typeof WeakMap))).lookupArray(e)}const B=new Set;function K(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=W,normalizeResult:i,subscribe:o,cache:s=c.C}=Object.create(null)){const a="function"==typeof s?new s(t,(e=>e.dispose())):s,u=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let s=a.get(t);s||(a.set(t,s=new D(e)),s.normalizeResult=i,s.subscribe=o,s.forget=()=>a.delete(t));const u=s.recompute(Array.prototype.slice.call(arguments));return a.set(t,s),B.add(a),m.hasValue()||(B.forEach((e=>e.clean())),B.clear()),u};function l(e){const t=e&&a.get(e);t&&t.setDirty()}function f(e){const t=e&&a.get(e);if(t)return t.peek()}function h(e){return!!e&&a.delete(e)}return Object.defineProperty(u,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:a}),u.dirtyKey=l,u.dirty=function(){l(n.apply(null,arguments))},u.peekKey=f,u.peek=function(){return f(n.apply(null,arguments))},u.forgetKey=h,u.forget=function(){return h(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}},72232:(e,t,r)=>{r.d(t,{Q9:()=>h,V1:()=>u,zU:()=>a});var n=r(8674),i="Invariant Violation",o=Object.setPrototypeOf,s=void 0===o?function(e,t){return e.__proto__=t,e}:o,a=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,s(n,t.prototype),n}return(0,n.__extends)(t,e),t}(Error);function u(e,t){if(!e)throw new a(t)}var c=["debug","log","warn","error","silent"],l=c.indexOf("log");function f(e){return function(){if(c.indexOf(e)>=l)return(console[e]||console.log).apply(console,arguments)}}function h(e){var t=c[l];return l=Math.max(0,c.indexOf(e)),t}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(u||(u={}))},73401:(e,t,r)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rk});var s=function(){return"function"==typeof Symbol},a=function(e){return s()&&Boolean(Symbol[e])},u=function(e){return a(e)?Symbol[e]:"@@"+e};s()&&!a("observable")&&(Symbol.observable=Symbol("observable"));var c=u("iterator"),l=u("observable"),f=u("species");function h(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:k}function d(e){return e instanceof k}function y(e){y.log?y.log(e):setTimeout((function(){throw e}))}function v(e){Promise.resolve().then((function(){try{e()}catch(e){y(e)}}))}function b(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=h(t,"unsubscribe");r&&r.call(t)}}catch(e){y(e)}}function g(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function m(e,t,r){e._state="running";var n=e._observer;try{var i=h(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(g(e),!i)throw r;i.call(n,r);break;case"complete":g(e),i&&i.call(n)}}catch(e){y(e)}"closed"===e._state?b(e):"running"===e._state&&(e._state="ready")}function _(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void v((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r1,i=!1,o=arguments[1];return new r((function(r){return t.subscribe({next:function(t){var s=!i;if(i=!0,!s||n)try{o=e(o,t)}catch(e){return r.error(e)}else o=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n=0&&i.splice(e,1),s()}});i.push(o)},error:function(e){n.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[l]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=h(t,l);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return d(o)&&o.constructor===r?o:new r((function(e){return o.subscribe(e)}))}if(a("iterator")&&(i=h(t,c)))return new r((function(e){v((function(){if(!e.closed){for(var r,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(r=o()).done;){var s=r.value;if(e.next(s),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){v((function(){if(!e.closed){for(var r=0;r