PageSourceSearch

https://khelnow.com/_next/static/chunks/3x3lbr14umev-.js

js khelnow.com collected 2026-10-02 03:44:31 UTC 175,316 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68681,99849,22001,89840,83874,10125,5578,e=>{"use strict";var t,r=e.i(89280),n="Invariant Violation",i=Object.setPrototypeOf,a=void 0===i?function(e,t){return e.__proto__=t,e}:i,o=function(e){function t(r){void 0===r&&(r=n);var i=e.call(this,"number"==typeof r?n+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return i.framesToPop=1,i.name=n,a(i,t.prototype),i}return(0,r.__extends)(t,e),t}(Error);function s(e,t){if(!e)throw new o(t)}var u=["debug","log","warn","error","silent"],c=u.indexOf("log");function l(e){return function(){if(u.indexOf(e)>=c)return(console[e]||console.log).apply(console,arguments)}}(t=s||(s={})).debug=l("debug"),t.log=l("log"),t.warn=l("warn"),t.error=l("error");var f="3.14.1";function h(e){try{return e()}catch(e){}}e.s(["version",0,f],99849),e.s(["maybe",0,h],22001);let p=h(function(){return globalThis})||h(function(){return window})||h(function(){return self})||h(function(){return e.g})||h(function(){return h.constructor("return this")()});e.s(["default",0,p],89840);var d=new Map;function v(e){var t=d.get(e)||1;return d.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function y(e,t){void 0===t&&(t=0);var r=v("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}function m(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=w(i))||(t=O(i,r),r=[])}e.apply(void 0,[t].concat(r))}}e.s(["makeUniqueId",0,v],83874),e.s(["stringifyForDisplay",0,y],10125);var g=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||s(e,w(t,r)||O(t,r))},{debug:m(s.debug),log:m(s.log),warn:m(s.warn),error:m(s.error)}),b=Symbol.for("ApolloErrorMessageHandler_"+f);function _(e){if("string"==typeof e)return e;try{return y(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function w(e,t){if(void 0===t&&(t=[]),e)return p[b]&&p[b](e,t.map(_))}function O(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:f,message:e,args:t.map(_)})))}e.s(["invariant",0,g,"newInvariantError",0,function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new o(w(e,t)||O(e,t))}],5578),e.s([],68681)},25945,78592,18693,e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var i=function(){return"function"==typeof Symbol},a=function(e){return i()&&!!Symbol[e]},o=function(e){return a(e)?Symbol[e]:"@@"+e};i()&&!a("observable")&&(Symbol.observable=Symbol("observable"));var s=o("iterator"),u=o("observable"),c=o("species");function l(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function f(e){var t=e.constructor;return void 0!==t&&null===(t=t[c])&&(t=void 0),void 0!==t?t:_}function h(e){h.log?h.log(e):setTimeout(function(){throw e})}function p(e){Promise.resolve().then(function(){try{e()}catch(e){h(e)}})}function d(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=l(t,"unsubscribe");r&&r.call(t)}}catch(e){h(e)}}function v(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function y(e,t,r){e._state="running";var n=e._observer;try{var i=l(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(v(e),i)i.call(n,r);else throw r;break;case"complete":v(e),i&&i.call(n)}}catch(e){h(e)}"closed"===e._state?d(e):"running"===e._state&&(e._state="ready")}function m(e,t,r){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:r});if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],p(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(y(e,t[r].type,t[r].value),"closed"!==e._state);++r);}});return}y(e,t,r)}}var g=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new b(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(v(this),d(this))},n(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),b=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){m(this._subscription,"next",e)},t.error=function(e){m(this._subscription,"error",e)},t.complete=function(){m(this._subscription,"complete")},n(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),_=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var r=e.prototype;return r.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new g(e,this._subscriber)},r.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e)return void n(TypeError(e+" is not a function"));function i(){a.unsubscribe(),r()}var a=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),a.unsubscribe()}},error:n,complete:r})})},r.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(f(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},r.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(f(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},r.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=f(this),n=arguments.length>1,i=!1,a=arguments[1],o=a;return new r(function(r){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||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(TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})})},r.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=f(this);return new i(function(t){var n,a=0;return!function e(o){n=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===r.length?(n=void 0,t.complete()):e(i.from(r[a++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},r.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=f(this);return new r(function(n){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var a=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){n.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&n.complete()}
1return function(){i.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})},r[u]=function(){return this},e.from=function(r){var n="function"==typeof this?this:e;if(null==r)throw TypeError(r+" is not an object");var i=l(r,u);if(i){var o=i.call(r);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof _&&o.constructor===n?o:new n(function(e){return o.subscribe(e)})}if(a("iterator")&&(i=l(r,s)))return new n(function(e){p(function(){if(!e.closed){for(var n,a=function(e){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return t(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,void 0)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(r));!(n=a()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(r))return new n(function(e){p(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})});throw TypeError(r+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){p(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},n(e,null,[{key:c,get:function(){return this}}]),e}();i()&&Object.defineProperty(_,Symbol("extensions"),{value:{symbol:u,hostReportError:h},configurable:!0}),e.s(["Observable",0,_],25945),e.i(68681);var w=e.i(5578);e.s(["validateOperation",0,function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw(0,w.newInvariantError)(58,i)}return e}],78592);var O=e.i(89280);e.s(["createOperation",0,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}],18693)},30101,e=>{"use strict";e.s(["isNonNullObject",0,function(e){return null!==e&&"object"==typeof e}])},86384,2088,e=>{"use strict";var t=e.i(89280);e.i(68681);var r=e.i(5578),n=e.i(17405),i=e.i(28262),a=e.i(42341),o=e.i(6699);let s=Object.freeze({});function u(e,t,r=a.QueryDocumentKeys){let c,l,f,h=new Map;for(let e of Object.values(o.Kind))h.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let p=Array.isArray(e),d=[e],v=-1,y=[],m=e,g=[],b=[];do{var _,w,O;let e,o=++v===d.length,u=o&&0!==y.length;if(o){if(l=0===b.length?void 0:g[g.length-1],m=f,f=b.pop(),u)if(p){m=m.slice();let e=0;for(let[t,r]of y){let n=t-e;null===r?(m.splice(n,1),e++):m[n]=r}}else for(let[e,t]of(m={...m},y))m[e]=t;v=c.index,d=c.keys,y=c.edits,p=c.inArray,c=c.prev}else if(f){if(null==(m=f[l=p?v:d[v]]))continue;g.push(l)}if(!Array.isArray(m)){(0,a.isNode)(m)||(0,n.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(m)}.`);let r=o?null==(_=h.get(m.kind))?void 0:_.leave:null==(w=h.get(m.kind))?void 0:w.enter;if((e=null==r?void 0:r.call(t,m,l,f,g,b))===s)break;if(!1===e){if(!o){g.pop();continue}}else if(void 0!==e&&(y.push([l,e]),!o))if((0,a.isNode)(e))m=e;else{g.pop();continue}}void 0===e&&u&&y.push([l,m]),o?g.pop():(c={inArray:p,index:v,keys:d,edits:y,prev:c},d=(p=Array.isArray(m))?m:null!=(O=r[m.kind])?O:[],v=-1,y=[],f&&b.push(f),f=m)}while(void 0!==c)return 0!==y.length?y[y.length-1][1]:e}e.s(["BREAK",0,s,"visit",0,u],2088),e.s(["createFragmentMap",0,function(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t},"getFragmentFromSelection",0,function(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var i=t&&t[n];return(0,r.invariant)(i,114,n),i||null;default:return null}},"getFragmentQueryDocument",0,function(e,n){var i=n,a=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,r.newInvariantError)(112,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&a.push(e)}),void 0===i&&((0,r.invariant)(1===a.length,113,a.length),i=a[0].name.value),(0,t.__assign)((0,t.__assign)({},e),{definitions:(0,t.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:i}}]}}],e.definitions,!0)})},"isFullyUnmaskedOperation",0,function(e){var t=!0;return u(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return s}}),t}],86384)},36904,62918,44128,65698,6044,99523,e=>{"use strict";function t(){}let r="u">typeof WeakRef?WeakRef:function(e){return{deref:()=>e}}
1,n="u">typeof WeakMap?WeakMap:Map,i="u">typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:t,unregister:t}};class a{constructor(e=1/0,a=t){this.max=e,this.dispose=a,this.map=new n,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let n=t.key;delete t.key,t.keyRef=new r(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new i(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{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--;let 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){let 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))}}function o(){}e.s(["WeakCache",0,a],62918);class s{constructor(e=1/0,t=o){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){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{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){let 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)}}e.s(["StrongCache",0,s],44128);var u=new WeakSet;function c(e){!(e.size<=(e.max||-1))&&(u.has(e)||(u.add(e),setTimeout(function(){e.clean(),u.delete(e)},100)))}e.s(["AutoCleanedStrongCache",0,function(e,t){var r=new s(e,t);return r.set=function(e,t){var r=s.prototype.set.call(this,e,t);return c(this),r},r},"AutoCleanedWeakCache",0,function(e,t){var r=new a(e,t);return r.set=function(e,t){var r=a.prototype.set.call(this,e,t);return c(this),r},r}],36904);var l=e.i(89280);e.i(68681);var f=e.i(89840);e.s(["global",()=>f.default],65698);var f=f,h=Symbol.for("apollo.cacheSize"),p=(0,l.__assign)({},f.default[h]);e.s(["cacheSizes",0,p],6044);var d={},v=!1!==globalThis.__DEV__?function(){var e,t,r,n,i;if(!1===globalThis.__DEV__)throw 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,p[t]||r]}
1)),sizes:(0,l.__assign)({print:null==(e=d.print)?void 0:e.call(d),parser:null==(t=d.parser)?void 0:t.call(d),canonicalStringify:null==(r=d.canonicalStringify)?void 0:r.call(d),links:function e(t){var r;return t?(0,l.__spreadArray)((0,l.__spreadArray)([null==(r=null==t?void 0:t.getMemoryInternals)?void 0:r.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(_):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:w(this.queryManager.documentTransform)}},null==(i=(n=this.cache).getMemoryInternals)?void 0:i.call(n))}}:void 0,y=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,l.__assign)((0,l.__assign)({},g.apply(this)),{addTypenameDocumentTransform:w(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:b(this.storeReader.executeSelectionSet),executeSubSelectedArray:b(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:b(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:b(null==e?void 0:e.findFragmentSpreads),lookup:b(null==e?void 0:e.lookup),transform:b(null==e?void 0:e.transform)}})}:void 0,m=!1!==globalThis.__DEV__?g:void 0;function g(){return{cache:{fragmentQueryDocuments:b(this.getFragmentDoc)}}}function b(e){return e&&"dirtyKey"in e?e.size:void 0}function _(e){return null!=e}function w(e){return(function e(t){return t?(0,l.__spreadArray)((0,l.__spreadArray)([b(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(_):[]})(e).map(function(e){return{cache:e}})}e.s(["getApolloCacheMemoryInternals",0,m,"getApolloClientMemoryInternals",0,v,"getInMemoryCacheMemoryInternals",0,y,"registerGlobalCache",0,function(e,t){d[e]=t}],99523)},13957,28117,56776,15301,e=>{"use strict";e.i(68681);var t,r=e.i(5578),n=e.i(30101),i=e.i(86384),a=e.i(36904),o=e.i(6044),s=e.i(99523),u=Object.assign(function(e){return JSON.stringify(e,c)},{reset:function(){t=new a.AutoCleanedStrongCache(o.cacheSizes.canonicalStringify||1e3)}});function c(e,r){if(r&&"object"==typeof r){var n=Object.getPrototypeOf(r);if(n===Object.prototype||null===n){var i=Object.keys(r);if(i.every(l))return r;var a=JSON.stringify(i),o=t.get(a);if(!o){i.sort();var s=JSON.stringify(i);o=t.get(s)||i,t.set(a,o),t.set(s,o)}var u=Object.create(n);return o.forEach(function(e){u[e]=r[e]}),u}}return r}function l(e,t,r){return 0===t||r[t-1]<=e}function f(e,t,n,i){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){var a={};n.fields.map(function(e){return f(a,e.name,e.value,i)}),e[t.value]=a}else if("Variable"===n.kind){var o=(i||{})[n.name.value];e[t.value]=o}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var r={};return f(r,t,e,i),r[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw(0,r.newInvariantError)(123,t.value,n.kind)}!1!==globalThis.__DEV__&&(0,s.registerGlobalCache)("canonicalStringify",function(){return t.size}),u.reset(),e.s(["canonicalStringify",0,u],28117);var h=["connection","include","skip","client","rest","export","nonreactive"],p=u,d=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;else{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),")")}var a=e;if(t){var o=p(t);a+="(".concat(o,")")}return r&&Object.keys(r).forEach(function(e){-1===h.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@".concat(e,"(").concat(p(r[e]),")"):a+="@".concat(e))}),a},{setStringify:function(e){var t=p;return p=e,t}});function v(e){return e.alias?e.alias.value:e.name.value}function y(e){return"Field"===e.kind}function m(e){(0,r.invariant)(e&&"Document"===e.kind,115);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,r.newInvariantError)(116,e.kind);return e});return(0,r.invariant)(t.length<=1,117,t.length),e}function g(e){return m(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function b(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}e.s(["argumentsObjectFromField",0,function(e,t){if(e.arguments&&e.arguments.length){var r={};
1return e.arguments.forEach(function(e){return f(r,e.name,e.value,t)}),r}return null},"getStoreKeyName",0,d,"getTypenameFromResult",0,function e(t,r,n){for(var a,o=0,s=r.selections;o<s.length;o++){var u=s[o];if(y(u)){if("__typename"===u.name.value)return t[v(u)]}else a?a.push(u):a=[u]}if("string"==typeof t.__typename)return t.__typename;if(a)for(var c=0,l=a;c<l.length;c++){var u=l[c],f=e(t,(0,i.getFragmentFromSelection)(u,n).selectionSet,n);if("string"==typeof f)return f}},"isDocumentNode",0,function(e){return(0,n.isNonNullObject)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)},"isField",0,y,"isInlineFragment",0,function(e){return"InlineFragment"===e.kind},"isReference",0,function(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)},"makeReference",0,function(e){return{__ref:String(e)}},"resultKeyNameFromField",0,v,"storeKeyNameFromField",0,function(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,a=n.value;return f(r[e.name.value],i,a,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return f(n,r,i,t)})),d(e.name.value,n,r)},"valueToObjectRepresentation",0,f],56776),e.s(["checkDocument",0,m,"getDefaultValues",0,function(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&f(t,e.variable.name,e.defaultValue)}),t},"getFragmentDefinition",0,function(e){(0,r.invariant)("Document"===e.kind,119),(0,r.invariant)(e.definitions.length<=1,120);var t=e.definitions[0];return(0,r.invariant)("FragmentDefinition"===t.kind,121),t},"getFragmentDefinitions",0,function(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})},"getMainDefinition",0,function(e){m(e);for(var t,n=0,i=e.definitions;n<i.length;n++){var a=i[n];if("OperationDefinition"===a.kind){var o=a.operation;if("query"===o||"mutation"===o||"subscription"===o)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw(0,r.newInvariantError)(122)},"getOperationDefinition",0,g,"getOperationName",0,b,"getQueryDefinition",0,function(e){var t=g(e);return(0,r.invariant)(t&&"query"===t.operation,118),t}],15301),e.s(["transformOperation",0,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?b(t.query)||void 0:""),t}],13957)},69547,83015,98173,22025,6775,e=>{"use strict";let t;var r,n=e.i(89280);let i=()=>Object.create(null),{forEach:a,slice:o}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class u{constructor(e=!0,t=i){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return a.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<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(o.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new u(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}e.s(["Trie",0,u],83015);var c=e.i(44128);let l=null,f={},h=1;function p(e){try{return e()}catch(e){}}let d="@wry/context:Slot",v=p(()=>globalThis)||p(()=>e.g)||Object.create(null),y=v[d]||Array[d]||function(e){try{Object.defineProperty(v,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){let 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){let i={__proto__:null,[this.id]:e},a=l;l={parent:a,slots:i};try{return t.apply(n,r)}finally{l=a}}static bind(e){let t=l;return function(){let 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);{let n=l;try{return l=null,e.apply(r,t)}finally{l=n}}}});e.s(["Slot",0,y],98173);let{bind:m,noContext:g}=y,b=new y,{hasOwnProperty:_}=Object.prototype,w=Array.from||function(e){let t=[];
1return e.forEach(e=>t.push(e)),t};function O(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let k=[];function S(e,t){if(!e)throw Error(t||"assertion failure")}function E(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function D(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class R{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,++R.count}peek(){if(1===this.value.length&&!x(this))return T(this),this.value[0]}recompute(e){var t,r,n;return S(!this.recomputing,"already recomputing"),T(this),x(this)?(t=this,r=e,C(t),b.withValue(t,F,[t,r]),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}(t,r)&&((n=t).dirty=!1,x(n)||function(e){I(e,A)}(n)),D(t.value)):D(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,I(e,N),O(this))}dispose(){this.setDirty(),C(this),I(this,(e,t)=>{e.setDirty(),M(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 T(e){let t=b.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),x(e)?N(t,e):A(t,e),t}function F(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!E(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function x(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}R.count=0;function I(e,t){let r=e.parents.size;if(r){let n=w(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function N(e,t){S(e.childValues.has(t)),S(x(t));let r=!x(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=k.pop()||new Set;e.dirtyChildren.add(t),r&&I(e,N)}function A(e,t){S(e.childValues.has(t)),S(!x(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):E(r,t.value)||e.setDirty(),q(e,t),x(e)||I(e,A)}function q(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(k.length<100&&k.push(r),e.dirtyChildren=null))}function C(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{M(e,r)}),e.forgetDeps(),S(null===e.dirtyChildren)}function M(e,t){t.parents.delete(e),e.childValues.delete(t),q(e,t)}let j={setDirty:!0,dispose:!0,forget:!0};function P(...e){return(t||(t=new u("function"==typeof WeakMap))).lookupArray(e)}e.s(["dep",0,function(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=b.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){let n=t.get(e);if(n){let i=r&&_.call(j,r)?r:"setDirty";w(n).forEach(e=>e[i]()),t.delete(e),O(n)}},n}],22025);let Q=new Set;e.s(["wrap",0,function(e,{max:t=65536,keyArgs:r,makeCacheKey:n=P,normalizeResult:i,subscribe:a,cache:o=c.StrongCache}=Object.create(null)){let s="function"==typeof o?new o(t,e=>e.dispose()):o,u=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=s.get(t);o||(s.set(t,o=new R(e)),o.normalizeResult=i,o.subscribe=a,o.forget=()=>s.delete(t));let u=o.recompute(Array.prototype.slice.call(arguments));
1return s.set(t,o),Q.add(s),b.hasValue()||(Q.forEach(e=>e.clean()),Q.clear()),u};function l(e){let t=e&&s.get(e);t&&t.setDirty()}function f(e){let t=e&&s.get(e);if(t)return t.peek()}function h(e){return!!e&&s.delete(e)}return Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:s}),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)}],6775),e.i(68681);var V=e.i(5578),L=e.i(65698),z=Symbol.for("apollo.deprecations"),W=Symbol.for("apollo.deprecations.slot"),B=L.global,U=null!=(r=B[W])?r:B[W]=new y;function K(e,t){B[z]||(U.getValue()||[]).includes(e)||t()}e.s(["muteDeprecations",0,function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return U.withValue.apply(U,(0,n.__spreadArray)([Array.isArray(e)?e:[e]],t,!1))},"warnDeprecated",0,K,"warnRemovedOption",0,function(e,t,r,n){void 0===n&&(n="Please remove this option."),K(t,function(){t in e&&!1!==globalThis.__DEV__&&V.invariant.warn(103,r,t,n)})}],69547)},62979,89601,e=>{"use strict";e.i(68681);var t=e.i(5578),r=e.i(25945),n=e.i(78592),i=e.i(18693),a=e.i(13957),o=e.i(69547);function s(e,t){return t?t(e):r.Observable.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 r.Observable.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,n,i){var a=u(n),o=u(i||new e(s));return Object.assign(new e(c(a)&&c(o)?function(e){return t(e)?a.request(e)||r.Observable.of():o.request(e)||r.Observable.of()}:function(e,n){return t(e)?a.request(e,n)||r.Observable.of():o.request(e,n)||r.Observable.of()}),{left:a,right:o})},e.execute=function(e,t){return e.request((0,i.createOperation)(t.context,(0,a.transformOperation)((0,n.validateOperation)(t))))||r.Observable.of()},e.concat=function(n,i){var a=u(n);if(c(a))return!1!==globalThis.__DEV__&&t.invariant.warn(47,a),a;var o=u(i);return Object.assign(new e(c(o)?function(e){return a.request(e,function(e){return o.request(e)||r.Observable.of()})||r.Observable.of()}:function(e,t){return a.request(e,function(e){return o.request(e,t)||r.Observable.of()})||r.Observable.of()}),{left:a,right:o})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,r){throw(0,t.newInvariantError)(48)},e.prototype.onError=function(e,r){if(!1!==globalThis.__DEV__&&(0,o.warnDeprecated)("onError",function(){!1!==globalThis.__DEV__&&t.invariant.warn(49)}),r&&r.error)return r.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&t.invariant.warn(50),this.onError=e,this},e}();e.s(["ApolloLink",0,l],62979),e.s(["createSignalIfSupported",0,function(){if("u"<typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}}],89601)},23289,e=>{"use strict";e.i(68681);var t=e.i(22001),r="ReactNative"==(0,t.maybe)(function(){return navigator.product}),n="function"==typeof WeakMap&&!(r&&!e.g.HermesInternal),i="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,o=a&&Symbol.asyncIterator,s="function"==typeof(0,t.maybe)(function(){return window.document.createElement});(0,t.maybe)(function(){return navigator.userAgent.indexOf("jsdom")>=0}),e.s(["canUseAsyncIteratorSymbol",0,o,"canUseDOM",0,s,"canUseSymbol",0,a,"canUseWeakMap",0,n,"canUseWeakSet",0,i])},35321,22017,e=>{"use strict";var t=e.i(23289);function r(e){var r={next:function(){return e.read()}};return t.canUseAsyncIteratorSymbol&&(r[Symbol.asyncIterator]=function(){return this}),r}e.s(["responseIterator",0,function(e){var n,i,a,o,s,u,c=e;if(e.body&&(c=e.body),n=c,t.canUseAsyncIteratorSymbol&&n[Symbol.asyncIterator])return a=c[Symbol.asyncIterator](),(i={next:function(){return a.next()}})[Symbol.asyncIterator]=function(){return this},i;if(c.getReader)return r(c.getReader());if(c.stream)return r(c.stream().getReader());if(c.arrayBuffer)return o=c.arrayBuffer(),s=!1,u={next:function(){return s?Promise.resolve({value:void 0,done:!0}):(s=!0,new Promise(function(e,t){o.then(function(t){e({value:t,done:!1})}).catch(t)}))}},t.canUseAsyncIteratorSymbol&&(u[Symbol.asyncIterator]=function(){return this}),u;if(c.pipe)return function(e){var r=null,n=null,i=!1,a=[],o=[];
1function s(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}a.push(e)}}function u(e){n=e,o.slice().forEach(function(t){t[1](e)}),r&&r()}function c(){i=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),r&&r()}r=function(){r=null,e.removeListener("data",s),e.removeListener("error",u),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),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 n?t(n):a.length?e({value:a.shift(),done:!1}):i?e({value:void 0,done:!0}):void o.push([e,t])})}};return t.canUseAsyncIteratorSymbol&&(l[Symbol.asyncIterator]=function(){return this}),l}(c);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}],35321),e.s(["throwServerError",0,function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}],22017)},33879,e=>{"use strict";var t=e.i(89280);e.i(68681);var r=e.i(30101),n=Symbol(),i=function(e){var n=(0,t.__spreadArray)((0,t.__spreadArray)((0,t.__spreadArray)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&n.push(e.networkError),n.map(function(e){return(0,r.isNonNullObject)(e)&&e.message||"Error message not found."}).join("\n")},a=function(e){function r(n){var a=n.graphQLErrors,o=n.protocolErrors,s=n.clientErrors,u=n.networkError,c=n.errorMessage,l=n.extraInfo,f=e.call(this,c)||this;return f.name="ApolloError",f.graphQLErrors=a||[],f.protocolErrors=o||[],f.clientErrors=s||[],f.networkError=u||null,f.message=c||i(f),f.extraInfo=l,f.cause=(0,t.__spreadArray)((0,t.__spreadArray)((0,t.__spreadArray)([u],a||[],!0),o||[],!0),s||[],!0).find(function(e){return!!e})||null,f.__proto__=r.prototype,f}return(0,t.__extends)(r,e),r}(Error);e.s(["ApolloError",0,a,"PROTOCOL_ERRORS_SYMBOL",0,n,"graphQLResultHasProtocolErrors",0,function(e){return!!e.extensions&&Array.isArray(e.extensions[n])},"isApolloError",0,function(e){return e.hasOwnProperty("graphQLErrors")}])},95694,42419,13959,2024,41969,71393,26452,49429,71596,e=>{"use strict";var t,r=e.i(62979),n=e.i(89601),i=e.i(89280),a=e.i(35321),o=e.i(22017),s=e.i(33879),u=e.i(30101),c=Array.isArray;function l(e){return Array.isArray(e)&&e.length>0}e.s(["isArray",0,c,"isNonEmptyArray",0,l],42419);var f=Object.prototype.hasOwnProperty;function h(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new d,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var p=function(e,t,r){return this.merge(e[r],t[r])},d=function(){function e(e){void 0===e&&(e=p),this.reconciler=e,this.isObject=u.isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];return(0,u.isNonNullObject)(t)&&(0,u.isNonNullObject)(e)?(Object.keys(t).forEach(function(a){if(f.call(e,a)){var o=e[a];if(t[a]!==o){var s=r.reconciler.apply(r,(0,i.__spreadArray)([e,t,a],n,!1));s!==o&&((e=r.shallowCopyForMerge(e))[a]=s)}}else(e=r.shallowCopyForMerge(e))[a]=t[a]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,u.isNonNullObject)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,i.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function v(e){return"incremental"in e}function y(e){return(0,u.isNonNullObject)(e)&&"payload"in e}e.s(["DeepMerger",0,d,"mergeDeep",0,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return h(e)},"mergeDeepArray",0,h],13959),e.s(["isApolloPayloadResult",0,y,"isExecutionPatchIncrementalResult",0,v,"isExecutionPatchResult",0,function(e){return v(e)||"hasNext"in e&&"data"in e},"mergeIncrementalData",0,function(e,t){var r=e,n=new d;return v(t)&&l(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}r=n.merge(r,t)}),r}],2024);var m=Object.prototype.hasOwnProperty;function g(e,t){e.status>=300&&(0,o.throwServerError)(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(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function b(e){return function(t){return t.text().then(function(e){return g(t,e)}).then(function(r){return Array.isArray(r)||m.call(r,"data")||m.call(r,"errors")||(0,o.throwServerError)(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}}e.i(68681);var _=e.i(5578),w=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,_.newInvariantError)(54,t,e.message);throw n.parseError=e,n}return r};function O(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=w(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var a=void 0;try{a=w(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",a)}var o="",s=e,u=e.indexOf("#");-1!==u&&(o=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+o}}var k=e.i(67757);let S=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function E(e){return D[e.charCodeAt(0)]}let D=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var R=e.i(2088);let T={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>F(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=A(e.variableDefinitions)?I("(\n",F(e.variableDefinitions,"\n"),"\n)"):I("(",F(e.variableDefinitions,", "),")"),r=I("",e.de
1scription,"\n")+F([e.operation,F([e.name,t]),F(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>I("",i,"\n")+e+": "+t+I(" = ",r)+I(" ",F(n," "))},SelectionSet:{leave:({selections:e})=>x(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=I("",e,": ")+t,o=a+I("(",F(r,", "),")");return o.length>80&&(o=a+I("(\n",N(F(r,"\n")),"\n)")),F([o,F(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+I(" ",F(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>F(["...",I("on ",e),F(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:a})=>I("",a,"\n")+`fragment ${e}${I("(",F(r,", "),")")} `+`on ${t} ${I("",F(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,k.printBlockString)(e):`"${e.replace(S,E)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+F(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+F(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+I("(",F(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>I("",e,"\n")+F(["schema",F(t," "),x(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>I("",e,"\n")+F(["scalar",t,F(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>I("",e,"\n")+F(["type",t,I("implements ",F(r," & ")),F(n," "),x(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>I("",e,"\n")+t+(A(r)?I("(\n",N(F(r,"\n")),"\n)"):I("(",F(r,", "),")"))+": "+n+I(" ",F(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>I("",e,"\n")+F([t+": "+r,I("= ",n),F(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>I("",e,"\n")+F(["interface",t,I("implements ",F(r," & ")),F(n," "),x(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>I("",e,"\n")+F(["union",t,F(r," "),I("= ",F(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>I("",e,"\n")+F(["enum",t,F(r," "),x(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>I("",e,"\n")+F([t,F(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>I("",e,"\n")+F(["input",t,F(r," "),x(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:a})=>I("",e,"\n")+"directive @"+t+(A(r)?I("(\n",N(F(r,"\n")),"\n)"):I("(",F(r,", "),")"))+I(" ",F(n," "))+(i?" repeatable":"")+" on "+F(a," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>F(["extend schema",F(e," "),x(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>F(["extend scalar",e,F(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>F(["extend type",e,I("implements ",F(t," & ")),F(r," "),x(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>F(["extend interface",e,I("implements ",F(t," & ")),F(r," "),x(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>F(["extend union",e,F(t," "),I("= ",F(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>F(["extend enum",e,F(t," "),x(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>F(["extend input",e,F(t," "),x(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>F(["extend directive @"+e,F(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>F([e,I(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>F([e,I(".",t),I("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>F(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>F(["@",e,I("(",t,":)")])}};function F(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function x(e){return I("{\n",N(F(e,"\n")),"\n}")}function I(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function N(e){return I("  ",e.replace(/\n/g,"\n  "))}function A(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var q=e.i(36904),C=e.i(6044),M=e.i(99523),j=Object.assign(function(e){var r=t.get(e);return r||(r=(0,R.visit)(e,T),t.set(e,r)),r},{reset:function(){t=new q.AutoCleanedWeakCache(C.cacheSizes.print||2e3)}});j.reset(),!1!==globalThis.__DEV__&&(0,M.registerGlobalCache)("print",function(){return t?t.size:0}),e.s(["print",0,j],41969);var P={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Q=function(e,t){return t(e)};function V(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a={},o={};r.forEach(function(e){a=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},a),e.options),{headers:(0,i.__assign)((0,i.__assign)({},a.headers),e.headers)}),e.credentials&&(a.credentials=e.credentials),o=(0,i.__assign)((0,i.__assign)({},o),e.http)}),a.headers&&(a.headers=function(e,t){if(!t){var r={};
1return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(a.headers,o.preserveHeaderCase));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,f={operationName:s,variables:c};return o.includeExtensions&&(f.extensions=u),o.includeQuery&&(f.query=t(l,j)),{options:a,body:f}}var L=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")},z=e.i(25945);function W(e,t,r){"name"in r?e.append(t,r,r.name):e.append(t,r)}function B(e){return"u">typeof File&&e instanceof File||"u">typeof Blob&&e instanceof Blob}e.s(["default",0,function({uri:e="/graphql",useGETForQueries:t,isExtractableFile:i=B,FormData:a,formDataAppendFile:o=W,print:s=Q,fetch:u,fetchOptions:c,credentials:l,headers:f,includeExtensions:h}={}){let p={http:{includeExtensions:h},options:c,credentials:l,headers:f};return new r.ApolloLink(r=>{let c=r.getContext(),{clientAwareness:{name:l,version:f}={},headers:h}=c,{options:d,body:v}=V(r,s,P,p,{http:c.http,options:c.fetchOptions,credentials:c.credentials,headers:{...l&&{"apollographql-client-name":l},...f&&{"apollographql-client-version":f},...h}}),{clone:y,files:m}=function(e,t,r=""){if(!arguments.length)throw TypeError("Argument 1 `value` is required.");if("function"!=typeof t)throw TypeError("Argument 2 `isExtractable` must be a function.");if("string"!=typeof r)throw TypeError("Argument 3 `path` must be a string.");let n=new Map,i=new Map;return{clone:function e(r,a,o){if(t(r)){let e=i.get(r);return e?e.push(a):i.set(r,[a]),null}let s=Array.isArray(r)||"u">typeof FileList&&r instanceof FileList,u=function(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}(r);if(s||u){let t=n.get(r),i=!t;if(i&&(t=s?[]:r instanceof Object?{}:Object.create(null),n.set(r,t)),!o.has(r)){let n=a?`${a}.`:"",u=new Set(o).add(r);if(s){let a=0;for(let o of r){let r=e(o,n+a++,u);i&&t.push(r)}}else for(let a in r){let o=e(r[a],n+a,u);i&&(t[a]=o)}}return t}return r}(e,r,new Set),files:i}}(v,i,""),g=L(r,e);if(m.size){d.headers&&delete d.headers["content-type"];let e=new(a||FormData);e.append("operations",w(y,"Payload"));let t={},r=0;m.forEach(e=>{t[++r]=e}),e.append("map",JSON.stringify(t)),r=0,m.forEach((t,n)=>{o(e,String(++r),n)}),d.body=e}else if(t&&!r.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation)&&(d.method="GET"),"GET"===d.method){let{newURI:e,parseError:t}=O(g,v);if(t)return new z.Observable(e=>{e.error(t)});g=e}else d.body=w(y,"Payload");let{controller:_}=(0,n.createSignalIfSupported)();"boolean"!=typeof _&&(d.signal&&(d.signal.aborted?_.abort():d.signal.addEventListener("abort",()=>{_.abort()},{once:!0})),d.signal=_.signal);let k=u||fetch;return new z.Observable(e=>{let t;return k(g,d).then(e=>(r.setContext({response:e}),e)).then(b(r)).then(t=>{e.next(t),e.complete()}).catch(r=>{t||(r.result&&r.result.errors&&r.result.data&&e.next(r.result),e.error(r))}),()=>{t=!0,"boolean"!=typeof _&&_.abort()}})})}],95694);var U=r.ApolloLink.execute;e.s(["execute",0,U],71393);var K=e.i(6699);function G(e,t,r){var n=new Set(e),i=n.size;return(0,R.visit)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return R.BREAK}}),r?!n.size:n.size<i}e.s(["getFragmentMaskMode",0,function(e){var t,r,n=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!n)return"mask";var i=null==(r=n.arguments)?void 0:r.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&i&&(i.value.kind===K.Kind.VARIABLE?!1!==globalThis.__DEV__&&_.invariant.warn(109):i.value.kind!==K.Kind.STRING?!1!==globalThis.__DEV__&&_.invariant.warn(110):"migrate"!==i.value.value&&!1!==globalThis.__DEV__&&_.invariant.warn(111,i.value.value)),i&&"value"in i.value&&"migrate"===i.value.value)?"migrate":"unmask"},"hasClientExports",0,function(e){return e&&G(["client","export"],e,!0)},"hasDirectives",0,G,"shouldInclude",0,function(e,t){var r,n,i=e.directives;return!i||!i.length||(n=[],(r=i)&&r.length&&r.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,r=e.arguments,i=e.name.value;(0,_.invariant)(r&&1===r.length,106,i);var a=r[0];(0,_.invariant)(a.name&&"if"===a.name.value,107,i);var o=a.value;(0,_.invariant)(o&&("Variable"===o.kind||"BooleanValue"===o.kind),108,i),n.push({directive:e,ifArgument:a})}}),n).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?(i=t&&t[n.value.name.value],(0,_.invariant)(void 0!==i,105,r.name.value)):i=n.value.value,"skip"===r.name.value?!i:i})}],26452);var H=function(e){if(!e&&"u"<typeof fetch)throw(0,_.newInvariantError)(51)};function $(e){return new z.Observable(function(t){t.error(e)})}var J=e.i(22001),Y=e.i(15301),X=e.i(56776),Z=e.i(86384),ee={kind:K.Kind.FIELD,name:{kind:K.Kind.NAME,value:"__typename"}};function et(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function er(e,t){(0,Y.checkDocument)(t);for(var r,n,a,o=et(""),s=et(""),u=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!c(r)){if(r.kind===K.Kind.OPERATION_DEFINITION)return o(r.name&&r.name.value);if(r.kind===K.Kind.FRAGMENT_DEFINITION)return s(r.name.value)}return!1!==globalThis.__DEV__&&_.invariant.error(124),null},f=0,h=t.definitions.length-1;h>=0;--h)t.definitions[h].kind===K.Kind.OPERATION_DEFINITION&&++f;var p=(r=new Map,n=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&n.set(e.test,e))}
1),function(e){var t=r.get(e.name.value);return!t&&n.size&&n.forEach(function(r,n){n(e)&&(t=r)}),t}),d=function(e){return l(e)&&e.map(p).some(function(e){return e&&e.remove})},v=new Map,y=!1,m={enter:function(e){if(d(e.directives))return y=!0,null}},g=(0,R.visit)(t,{Field:m,InlineFragment:m,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var a=u(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(d(e.directives))return y=!0,null;var a=u(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){v.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===v.get(JSON.stringify(n))?e:f>0&&e.selectionSet.selections.every(function(e){return e.kind===K.Kind.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,y=!0,null):void 0}},Directive:{leave:function(e){if(p(e))return y=!0,null}}});if(!y)return t;var b=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){b(s(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},w=new Set;g.definitions.forEach(function(e){e.kind===K.Kind.OPERATION_DEFINITION?b(o(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){w.add(e)}):e.kind!==K.Kind.FRAGMENT_DEFINITION||0!==f||s(e.name.value).removed||w.add(e.name.value)}),w.forEach(function(e){b(s(e)).fragmentSpreads.forEach(function(e){w.add(e)})});var O={enter:function(e){var t;if(t=e.name.value,!w.has(t)||s(t).removed)return null}};return a=(0,R.visit)(g,{FragmentSpread:O,FragmentDefinition:O,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=b(o(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,i.__assign)((0,i.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===K.Kind.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,Y.getOperationDefinition)(a)||(0,Y.getFragmentDefinition)(a),(0,Z.createFragmentMap)((0,Y.getFragmentDefinitions)(a)))?a:null}var en=Object.assign(function(e){return(0,R.visit)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==K.Kind.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return(0,X.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,X.isField)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,i.__assign)((0,i.__assign)({},e),{selections:(0,i.__spreadArray)((0,i.__spreadArray)([],n,!0),[ee],!1)})}}}})},{added:function(e){return e===ee}});function ei(e){return(0,Y.checkDocument)(e),er([{test:function(e){return"client"===e.name.value},remove:!0}],e)}e.s(["addNonReactiveToNamedFragments",0,function(e){return(0,Y.checkDocument)(e),(0,R.visit)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,i.__assign)((0,i.__assign)({},e),{directives:(0,i.__spreadArray)((0,i.__spreadArray)([],e.directives||[],!0),[{kind:K.Kind.DIRECTIVE,name:{kind:K.Kind.NAME,value:"nonreactive"}}
1],!1)})}})},"addTypenameToDocument",0,en,"buildQueryFromSelectionSet",0,function(e){return"query"===(0,Y.getMainDefinition)(e).operation?e:(0,R.visit)(e,{OperationDefinition:{enter:function(e){return(0,i.__assign)((0,i.__assign)({},e),{operation:"query"})}}})},"removeClientSetsFromDocument",0,ei,"removeDirectivesFromDocument",0,er],49429);var ea=(0,J.maybe)(function(){return fetch}),eo=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,o=e.fetch,u=e.print,c=void 0===u?Q:u,l=e.includeExtensions,f=e.preserveHeaderCase,h=e.useGETForQueries,p=e.includeUnusedVariables,d=void 0!==p&&p,v=(0,i.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&H(o||ea);var m={http:{includeExtensions:l,preserveHeaderCase:f},options:v.fetchOptions,credentials:v.credentials,headers:v.headers};return new r.ApolloLink(function(e){var t,r,u,l,f,p,v=L(e,n),k=e.getContext(),S={};if(k.clientAwareness){var E=k.clientAwareness,D=E.name,T=E.version;D&&(S["apollographql-client-name"]=D),T&&(S["apollographql-client-version"]=T)}var F=(0,i.__assign)((0,i.__assign)({},S),k.headers),x={http:k.http,options:k.fetchOptions,credentials:k.credentials,headers:F};if(G(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&_.invariant.warn(52);var I=ei(e.query);if(!I)return $(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=I}var N=V(e,c,P,m,x),A=N.options,q=N.body;q.variables&&!d&&(t=q.variables,r=e.query,u=(0,i.__assign)({},t),l=new Set(Object.keys(t)),(0,R.visit)(r,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&l.delete(e.name.value)}}),l.forEach(function(e){delete u[e]}),q.variables=u),!A.signal&&"u">typeof AbortController&&(A.signal=(p=new AbortController).signal);var C="OperationDefinition"===(f=(0,Y.getMainDefinition)(e.query)).kind&&"subscription"===f.operation,M=G(["defer"],e.query);if(h&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(A.method="GET"),M||C){A.headers=A.headers||{};var j="multipart/mixed;";C&&M&&!1!==globalThis.__DEV__&&_.invariant.warn(53),C?j+="boundary=graphql;subscriptionSpec=1.0,application/json":M&&(j+="deferSpec=20220824,application/json"),A.headers.accept=j}if("GET"===A.method){var Q=O(v,q),W=Q.newURI,B=Q.parseError;if(B)return $(B);v=W}else try{A.body=w(q,"Payload")}catch(e){return $(e)}return new z.Observable(function(t){var r=o||(0,J.maybe)(function(){return fetch})||ea,n=t.next.bind(t);return r(v,A).then(function(t){e.setContext({response:t});var r,o=null==(r=t.headers)?void 0:r.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){return(0,i.__awaiter)(this,void 0,void 0,function(){var r,n,o,u,c,l,f,h,p,d,v,m,b,_,w,O,k,S,E,D,R,T,F;return(0,i.__generator)(this,function(x){switch(x.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null==(F=e.headers)?void 0:F.get("content-type"),o="boundary=",u=(null==n?void 0:n.includes(o))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(o))+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c="\r\n--".concat(u),l="",f=(0,a.responseIterator)(e),h=!0,x.label=1;case 1:if(!h)return[3,3];return[4,f.next()];case 2:for(d=(p=x.sent()).value,v=p.done,m="string"==typeof d?d:r.decode(d),b=l.length-c.length+1,h=!v,l+=m,_=l.indexOf(c,b);_>-1;){if(w=void 0,w=(R=[l.slice(0,_),l.slice(_+c.length)])[0],l=R[1],O=w.indexOf("\r\n\r\n"),(k=function(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}(w.slice(0,O))["content-type"])&&-1===k.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(S=w.slice(O)){if(Object.keys(E=g(e,S)).length>1||"data"in E||"incremental"in E||"errors"in E||"payload"in E)if(y(E)){if(D={},"payload"in E){if(1===Object.keys(E).length&&null===E.payload)return[2];D=(0,i.__assign)({},E.payload)}"errors"in E&&(D=(0,i.__assign)((0,i.__assign)({},D),{extensions:(0,i.__assign)((0,i.__assign)({},"extensions"in D?D.extensions:null),((T={})[s.PROTOCOL_ERRORS_SYMBOL]=E.errors,T))})),t(D)}else t(E);else if(1===Object.keys(E).length&&"hasNext"in E&&!E.hasNext)return[2]}_=l.indexOf(c)}return[3,1];case 3:return[2]}})})}(t,n):b(e)(t).then(n)}).then(function(){p=void 0,t.complete()}).catch(function(e){p=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){p&&p.abort()}})})},es=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,eo(t).request)||this;return r.options=t,r}return(0,i.__extends)(t,e),t}(r.ApolloLink);e.s(["HttpLink",0,es],71596)},24669,e=>{"use strict";let{toString:t,hasOwnProperty:r}=Object.prototype,n=Function.prototype.toString,i=new Map;function a(e,a){try{return function e(i,a){if(i===a)return!0;let s=t.call(i);if(s!==t.call(a))return!1;switch(s){case"[object Array]":if(i.length!==a.length)break;case"[object Object]":{if(c(i,a))return!0;
1let t=o(i),n=o(a),s=t.length;if(s!==n.length)return!1;for(let e=0;e<s;++e)if(!r.call(a,t[e]))return!1;for(let r=0;r<s;++r){let n=t[r];if(!e(i[n],a[n]))return!1}return!0}case"[object Error]":return i.name===a.name&&i.message===a.message;case"[object Number]":if(i!=i)return a!=a;case"[object Boolean]":case"[object Date]":return+i==+a;case"[object RegExp]":case"[object String]":return i==`${a}`;case"[object Map]":case"[object Set]":{if(i.size!==a.size)return!1;if(c(i,a))return!0;let t=i.entries(),r="[object Map]"===s;for(;;){let n=t.next();if(n.done)break;let[i,o]=n.value;if(!a.has(i)||r&&!e(o,a.get(i)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":i=new Uint8Array(i),a=new Uint8Array(a);case"[object DataView]":{let e=i.byteLength;if(e===a.byteLength)for(;e--&&i[e]===a[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var l,f;let e,t=n.call(i);if(t!==n.call(a))return!1;return l=t,f=u,!((e=l.length-f.length)>=0)||l.indexOf(f,e)!==e}}return!1}(e,a)}finally{i.clear()}}function o(e){return Object.keys(e).filter(s,e)}function s(e){return void 0!==this[e]}let u="{ [native code] }";function c(e,t){let r=i.get(e);if(r){if(r.has(t))return!0}else i.set(e,r=new Set);return r.add(t),!1}e.s(["default",0,a,"equal",0,a])},17548,66812,56034,98377,70757,33448,76810,43772,e=>{"use strict";var t,r,n=e.i(42419),i=e.i(2024);function a(e){var t=(0,n.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];return(0,i.isExecutionPatchIncrementalResult)(e)&&(0,n.isNonEmptyArray)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}e.s(["getGraphQLErrorsFromResult",0,a,"graphQLResultHasError",0,function(e){var t=a(e);return(0,n.isNonEmptyArray)(t)}],17548);var o=e.i(25945);e.s(["asyncMap",0,function(e,t,r){return new o.Observable(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(r){if(e){var a=function(){return n.closed?0:e(r)};i=i.then(a,a).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var o={next:a(t,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}],66812);var s=e.i(89280);function u(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}e.s(["iterateObserversSafely",0,u],56034);var c=e.i(23289);function l(e){function t(t){Object.defineProperty(e,t,{value:o.Observable})}return c.canUseSymbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function f(e){return e&&"function"==typeof e.then}e.s(["fixObservableSubclass",0,l],98377);var h=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),u(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),u(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?f(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),u(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new o.Observable(t)]),f(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,s.__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}(o.Observable);l(h),e.s(["Concast",0,h],70757);var p=e.i(83015),d=e.i(15301);e.i(68681);var v=e.i(5578),y=e.i(62918),m=e.i(6775),g=e.i(6044);function b(e){return e}var _=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=c.canUseWeakSet?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(b,{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 p.Trie(c.canUseWeakMap);this.performWork=(0,m.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,v.invariant)(Array.isArray(n),104),r.lookupArray(n)},max:g.cacheSizes["documentTransform.cache"],cache:y.WeakCache})}},e.prototype.performWork=function(e){return(0,d.checkDocument)(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}();e.s(["DocumentTransform",0,_],33448),(t=r||(r={}))[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetch
1More=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error",e.s(["NetworkStatus",0,r,"isNetworkRequestInFlight",0,function(e){return!!e&&e<7}],76810);var w=Object.prototype.toString;e.s(["cloneDeep",0,function(e){return function e(t,r){switch(w.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var n=t.slice(0);return r.set(t,n),n.forEach(function(t,i){n[i]=e(t,r)}),n;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach(function(n){i[n]=e(t[n],r)}),i;default:return t}}(e)}],43772)},27371,e=>{"use strict";e.s(["compact",0,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}])},59054,22479,57299,11922,1743,268,50968,e=>{"use strict";var t=e.i(89280);e.i(68681);var r=e.i(5578),n=e.i(24669),i=e.i(71393),a=e.i(49429),o=e.i(26452),s=e.i(2024),u=e.i(86384),c=e.i(28117),l=e.i(15301),f=e.i(17548),h=e.i(25945),p=e.i(66812),d=e.i(42419),v=e.i(70757),y=e.i(83874),m=e.i(56776),g=e.i(30101),b=e.i(33448),_=e.i(33879),w=e.i(76810),O=e.i(43772),k=e.i(27371),S=e.i(56034),E=e.i(98377);function D(e,r,i,a){var s=r.data,c=(0,t.__rest)(r,["data"]),f=i.data,h=(0,t.__rest)(i,["data"]);return(0,n.default)(c,h)&&function e(t,r,i,a){if(r===i)return!0;var s=new Set;return t.selections.every(function(t){if(s.has(t)||(s.add(t),!(0,o.shouldInclude)(t,a.variables)||R(t)))return!0;if((0,m.isField)(t)){var c=(0,m.resultKeyNameFromField)(t),l=r&&r[c],f=i&&i[c],h=t.selectionSet;if(!h)return(0,n.default)(l,f);var p=Array.isArray(l),d=Array.isArray(f);if(p!==d)return!1;if(p&&d){var v=l.length;if(f.length!==v)return!1;for(var y=0;y<v;++y)if(!e(h,l[y],f[y],a))return!1;return!0}return e(h,l,f,a)}var g=(0,u.getFragmentFromSelection)(t,a.fragmentMap);if(g)return!!R(g)||e(g.selectionSet,r,i,a)})}((0,l.getMainDefinition)(e).selectionSet,s,f,{fragmentMap:(0,u.createFragmentMap)((0,l.getFragmentDefinitions)(e)),variables:a})}function R(e){return!!e.directives&&e.directives.some(T)}function T(e){return"nonreactive"===e.name.value}e.s(["equalByQuery",0,D],22479),e.i(6775);var F=e.i(98173),x=e.i(69547),I=Object.assign,N=Object.hasOwnProperty,A=function(e){function i(r){var n=r.queryManager,a=r.queryInfo,o=r.options,s=this,u=i.inactiveOnCreation.getValue();(s=e.call(this,function(e){s._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=q)}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(s.maskResult(n.result)),r&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this).observers=new Set,s.subscriptions=new Set,s.dirty=!1,s._getOrCreateQuery=function(){return u&&(n.queries.set(s.queryId,a),u=!1),s.queryManager.getOrCreateQuery(s.queryId)},s.queryInfo=a,s.queryManager=n,s.waitForOwnResult=M(o.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var c=n.defaultOptions.watchQuery,f=(void 0===c?{}:c).fetchPolicy,h=void 0===f?"cache-first":f,p=o.fetchPolicy,d=void 0===p?h:p,v=o.initialFetchPolicy,y=void 0===v?"standby"===d?h:d:v;s.options=(0,t.__assign)((0,t.__assign)({},o),{initialFetchPolicy:y,fetchPolicy:d}),s.queryId=a.queryId||n.generateQueryId();var m=(0,l.getOperationDefinition)(s.query);return s.queryName=m&&m.name&&m.name.value,s}return(0,t.__extends)(i,e),Object.defineProperty(i.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),i.prototype.result=function(){var e=this;return!1!==globalThis.__DEV__&&(0,x.warnDeprecated)("observableQuery.result",function(){!1!==globalThis.__DEV__&&r.invariant.warn(23)}),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)})},i.prototype.resetDiff=function(){this.queryInfo.resetDiff()},i.prototype.getCurrentFullResult=function(e){var r=this;void 0===e&&(e=!0);var i=(0,x.muteDeprecations)("getLastResult",function(){return r.getLastResult(!0)}),a=this.queryInfo.networkStatus||i&&i.networkStatus||w.NetworkStatus.ready,o=(0,t.__assign)((0,t.__assign)({}
1,i),{loading:(0,w.isNetworkRequestInFlight)(a),networkStatus:a}),s=this.options.fetchPolicy,u=void 0===s?"cache-first":s;if(M(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)&&(o.data=c.result),(0,n.equal)(o.data,{})&&(o.data=void 0),c.complete?(delete o.partial,c.complete&&o.networkStatus===w.NetworkStatus.loading&&("cache-first"===u||"cache-only"===u)&&(o.networkStatus=w.NetworkStatus.ready,o.loading=!1)):o.partial=!0,o.networkStatus===w.NetworkStatus.ready&&(o.error||o.errors)&&(o.networkStatus=w.NetworkStatus.error),!1===globalThis.__DEV__||c.complete||this.options.partialRefetch||o.loading||o.data||o.error||C(c.missing)}return e&&this.updateLastResult(o),o},i.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},i.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),i=this.queryManager.dataMasking,a=i?r.nonReactiveQuery:this.query;return(i||r.hasNonreactiveDirective?!D(a,this.last.result,e,this.variables):!(0,n.equal)(this.last.result,e))||t&&!(0,n.equal)(this.last.variables,t)},i.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,n.equal)(r.variables,this.variables)))return r[e]},i.prototype.getLastResult=function(e){return!1!==globalThis.__DEV__&&(0,x.warnDeprecated)("getLastResult",function(){!1!==globalThis.__DEV__&&r.invariant.warn(24)}),this.getLast("result",e)},i.prototype.getLastError=function(e){return!1!==globalThis.__DEV__&&(0,x.warnDeprecated)("getLastError",function(){!1!==globalThis.__DEV__&&r.invariant.warn(25)}),this.getLast("error",e)},i.prototype.resetLastResults=function(){!1!==globalThis.__DEV__&&(0,x.warnDeprecated)("resetLastResults",function(){!1!==globalThis.__DEV__&&r.invariant.warn(26)}),delete this.last,this.isTornDown=!1},i.prototype.resetQueryStoreErrors=function(){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&r.invariant.warn(27),this.queryManager.resetErrors(this.queryId)},i.prototype.refetch=function(e){var i,a={pollInterval:0};if("no-cache"===this.options.fetchPolicy?a.fetchPolicy="no-cache":a.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&N.call(e,"variables")){var o=(0,l.getQueryDefinition)(this.query),s=o.variableDefinitions;s&&s.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||r.invariant.warn(28,e,(null==(i=o.name)?void 0:i.value)||o)}return e&&!(0,n.equal)(this.options.variables,e)&&(a.variables=this.options.variables=(0,t.__assign)((0,t.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(a,w.NetworkStatus.refetch)},i.prototype.fetchMore=function(e){var n=this,i=(0,t.__assign)((0,t.__assign)({},e.query?e:(0,t.__assign)((0,t.__assign)((0,t.__assign)((0,t.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,t.__assign)((0,t.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var a=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):i.query;var o=this.queryInfo,s=o.networkStatus;o.networkStatus=w.NetworkStatus.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var u=new Set,c=null==e?void 0:e.updateQuery,l="no-cache"!==this.options.fetchPolicy;return l||(0,r.invariant)(c,29),this.queryManager.fetchQuery(a,i,w.NetworkStatus.fetchMore).then(function(r){if(n.queryManager.removeQuery(a),o.networkStatus===w.NetworkStatus.fetchMore&&(o.networkStatus=s),l)n.queryManager.cache.batch({update:function(t){var a=e.updateQuery;a?t.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(e){return a(e,{fetchMoreResult:r.data,variables:i.variables})}):t.writeQuery({query:i.query,variables:i.variables,data:r.data})},onWatchUpdated:function(e){u.add(e.query)}});else{var f=n.getLast("result"),h=c(f.data,{fetchMoreResult:r.data,variables:i.variables});n.reportResult((0,t.__assign)((0,t.__assign)({}
1,f),{networkStatus:s,loading:(0,w.isNetworkRequestInFlight)(s),data:h}),n.variables)}return n.maskResult(r)}).finally(function(){l&&!u.has(n.query)&&n.reobserveCacheFirst()})},i.prototype.subscribeToMore=function(e){var n=this,i=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var i=e.updateQuery;i&&n.updateQuery(function(e,n){return i(e,(0,t.__assign)({subscriptionData:r},n))})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&r.invariant.error(30,t)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},i.prototype.setOptions=function(e){return!1!==globalThis.__DEV__&&((0,x.warnRemovedOption)(e,"canonizeResults","setOptions"),(0,x.warnDeprecated)("setOptions",function(){!1!==globalThis.__DEV__&&r.invariant.warn(31)})),this.reobserve(e)},i.prototype.silentSetOptions=function(e){var t=(0,k.compact)(this.options,e||{});I(this.options,t)},i.prototype.setVariables=function(e){var t=this;return(0,n.equal)(this.variables,e)?this.observers.size?(0,x.muteDeprecations)("observableQuery.result",function(){return t.result()}):Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},w.NetworkStatus.setVariables):Promise.resolve()},i.prototype.updateQuery=function(e){var t=this.queryManager,r=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),n=r.result,i=r.complete,a=e(n,{variables:this.variables,complete:!!i,previousData:n});a&&(t.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),t.broadcastQueries())},i.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},i.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},i.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,a=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:a}):"variables-changed"===e?t.fetchPolicy=a:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},i.prototype.fetch=function(e,t,r){var n=this._getOrCreateQuery();return n.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(n,e,t,r)},i.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){(0,r.invariant)(n,32),(t||(this.pollingInfo={})).interval=n;var i=function(){var t,r;e.pollingInfo&&((0,w.isNetworkRequestInFlight)(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?a():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},w.NetworkStatus.poll).then(a,a))},a=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(i,t.interval))};a()}}},i.prototype.updateLastResult=function(e,r){var i=this;void 0===r&&(r=this.variables);var a=(0,x.muteDeprecations)("getLastError",function(){return i.getLastError()});return a&&this.last&&!(0,n.equal)(r,this.last.variables)&&(a=void 0),this.last=(0,t.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,O.cloneDeep)(e),variables:r},a?{error:a}:null)},i.prototype.reobserveAsConcast=function(e,r){var i=this;this.isTornDown=!1;var a=r===w.NetworkStatus.refetch||r===w.NetworkStatus.fetchMore||r===w.NetworkStatus.poll,o=this.options.variables,s=this.options.fetchPolicy,u=(0,k.compact)(this.options,e||{}),c=a?u:I(this.options,u),l=this.transformDocument(c.query);this.lastQuery=l,!a&&(this.updatePolling(),e&&e.variables&&!(0,n.equal)(e.variables,o)&&"standby"!==c.fetchPolicy&&(c.fetchPolicy===s||"function"==typeof c.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",c),void 0===r&&(r=w.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=M(c.fetchPolicy));var f=function(){i.concast===d&&(i.waitForOwnResult=!1)},h=c.variables&&(0,t.__assign)({},c.variables),p=this.fetch(c,r,l),d=p.concast,v=p.fromLink,y={next:function(e){(0,n.equal)(i.variables,h)&&(f(),i.reportResult(e,h))},error:function(e){(0,n.equal)(i.variables,h)&&((0,_.isApolloError)(e)||(e=new _.ApolloError({networkError:e})),f(),i.reportError(e,h))}};return a||!v&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=y),d.addObserver(y),d},i.prototype.reobserve=function(e,t){var r;return(r=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch(function(){}),r},i.prototype.resubscribeAfterError=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.last;(0,x.muteDeprecations)("resetLastResults",function(){return e.resetLastResults()});var i=this.subscribe.apply(this,t);return this.last=n,i},i.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},i.prototype.reportResult=function(e,t){var r=this,n=(0,x.muteDeprecations)("getLastError",function(){return r.getLastError()}),i=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||i)&&(0,S.iterateObserversSafely)(this.observers,"next",this.maskResult(e))},i.prototype.reportError=function(e,r){var n=this,i=(0,t.__assign)((0,t.__assign)({},(0,x.muteDeprecations)("getLastResult",function(){return n.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:w.NetworkStatus.error,loading:!1});this.updateLastResult(i,r),(0,S.iterateObserversSafely)(this.observers,"error",this.last.error=e)},i.prototype.hasObservers=function(){return this.observers.size>0},i.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)},i.prototype.transformDocument=function(e){return this.queryManager.transform(e)},i.prototype.maskResult=function(e){return e&&"data"in e?(0,t.__assign)((0,t.__assign)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},i.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},i.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},i.prototype.scheduleNotify=function(){var e=this;!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},i.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!(0,w.isNetwork
1RequestInFlight)(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},i.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,r=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,n){return(this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,n):t}}):this.reobserve()},i.inactiveOnCreation=new F.Slot,i}(h.Observable);function q(e){!1!==globalThis.__DEV__&&r.invariant.error(33,e.message,e.stack)}function C(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&r.invariant.debug(34,e)}function M(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,E.fixObservableSubclass)(A);var j=e.i(13959),P=e.i(23289),Q=new(P.canUseWeakMap?WeakMap:Map);function V(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)})}var L=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;Q.has(r)||(Q.set(r,0),V(r,"evict"),V(r,"modify"),V(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||w.NetworkStatus.loading;return this.variables&&this.networkStatus!==w.NetworkStatus.loading&&!(0,n.equal)(this.variables,e.variables)&&(t=w.NetworkStatus.setVariables),(0,n.equal)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),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.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&(0,n.equal)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var i=(0,x.muteDeprecations)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(i,t),i},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.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,i=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(0,x.muteDeprecations)("getLastError",function(){var e;return null==(e=r.observableQuery)?void 0:e.getLastError()}))&&(this.updateLastDiff(e),(0,n.equal)(i&&i.result,e&&e.result)||null==(t=this.observableQuery)||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var r=this;void 0===e&&(e=this.variables);var i=this.observableQuery;if(!i||"no-cache"!==i.options.fetchPolicy){var a=(0,t.__assign)((0,t.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return r.setDiff(e)}});this.lastWatch&&(0,n.equal)(a,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=a))}},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,n.equal)(t,r.variables)&&(0,n.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,i){var a,o=this,u=new j.DeepMerger,c=(0,d.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(null==(a=this.observableQuery)||a.resetNotifications(),"incremental"in e&&(0,d.isNonEmptyArray)(e.incremental)){var l=(0,s.mergeIncrementalData)(this.getDiff().result,e);e.data=l}else if("hasNext"in e&&e.hasNext){var f=this.getDiff();e.data=u.merge(f.result,e.data)}this.graphQLErrors=c,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==i&&(z(e,r.errorPolicy)?this.cache.performTransaction(function(a){if
1(o.shouldWrite(e,r.variables))a.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===i}),o.lastWrite={result:e,variables:r.variables,dmCount:Q.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var s=o.getDiffOptions(r.variables),u=(0,x.muteDeprecations)("canonizeResults",function(){return a.diff(s)});!o.stopped&&(0,n.equal)(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(u,s),u.complete&&(e.data=u.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=w.NetworkStatus.ready},e.prototype.markError=function(e){var t;return this.networkStatus=w.NetworkStatus.error,this.lastWrite=void 0,null==(t=this.observableQuery)||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function z(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!(0,f.graphQLResultHasError)(e);return!n&&r&&e.data&&(n=!0),n}var W=e.i(41969),B=e.i(83015),U=e.i(36904),K=e.i(6044),G=e.i(6699),H=P.canUseWeakMap?WeakMap:Map,$=P.canUseWeakSet?WeakSet:Set,J=new F.Slot,Y=!1;function X(){Y||(Y=!0,!1!==globalThis.__DEV__&&r.invariant.warn(64))}function Z(e){var t;return!1!==globalThis.__DEV__&&(t=new Set([e])).forEach(function(e){(0,g.isNonNullObject)(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(r){(0,g.isNonNullObject)(e[r])&&t.add(e[r])})}),e}function ee(e,t,n){return J.withValue(!0,function(){var i=function e(t,n,i,a,s){var u,c=i.knownChanged,l=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,i.mutableTargets);if(Array.isArray(t)){for(var f=0,h=Array.from(t.entries());f<h.length;f++){var p=h[f],d=p[0],v=p[1];if(null===v){l[d]=null;continue}var y=e(v,n,i,a,!1!==globalThis.__DEV__?"".concat(s||"","[").concat(d,"]"):void 0);c.has(y)&&c.add(l),l[d]=y}return c.has(l)?l:t}for(var g=0,b=n.selections;g<b.length;g++){var _=b[g],w=void 0;if(a&&c.add(l),_.kind===G.Kind.FIELD){var O=(0,m.resultKeyNameFromField)(_),k=_.selectionSet;if(void 0===(w=l[O]||t[O]))continue;if(k&&null!==w){var y=e(t[O],k,i,a,!1!==globalThis.__DEV__?"".concat(s||"",".").concat(O):void 0);c.has(y)&&(w=y)}!1===globalThis.__DEV__&&(l[O]=w),!1!==globalThis.__DEV__&&(!a||"__typename"===O||(null==(u=Object.getOwnPropertyDescriptor(l,O))?void 0:u.value)?(delete l[O],l[O]=w):Object.defineProperty(l,O,function(e,t,n,i,a){var o=function(){return J.getValue()||(!1!==globalThis.__DEV__&&r.invariant.warn(60,i?"".concat(a," '").concat(i,"'"):"anonymous ".concat(a),"".concat(n,".").concat(e).replace(/^\./,"")),o=function(){return t}),t};return{get:function(){return o()},set:function(e){o=function(){return e}},enumerable:!0,configurable:!0}}(O,w,s||"",i.operationName,i.operationType)))}if(_.kind===G.Kind.INLINE_FRAGMENT&&(!_.typeCondition||i.cache.fragmentMatches(_,t.__typename))&&(w=e(t,_.
1selectionSet,i,a,s)),_.kind===G.Kind.FRAGMENT_SPREAD){var S=_.name.value,E=i.fragmentMap[S]||(i.fragmentMap[S]=i.cache.lookupFragment(S));(0,r.invariant)(E,59,S);var D=(0,o.getFragmentMaskMode)(_);"mask"!==D&&(w=e(t,E.selectionSet,i,"migrate"===D,s))}c.has(w)&&c.add(l)}return"__typename"in t&&!("__typename"in l)&&(l.__typename=t.__typename),Object.keys(l).length!==Object.keys(t).length&&c.add(l),c.has(l)?l:t}(e,t,n,!1);return Object.isFrozen(e)&&Z(i),i})}function et(e,t,i,a){if(!i.fragmentMatches)return!1!==globalThis.__DEV__&&X(),e;var o=t.definitions.filter(function(e){return e.kind===G.Kind.FRAGMENT_DEFINITION});void 0===a&&((0,r.invariant)(1===o.length,61,o.length),a=o[0].name.value);var s=o.find(function(e){return e.name.value===a});return((0,r.invariant)(!!s,62,a),null==e||(0,n.default)(e,{}))?e:ee(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:(0,u.createFragmentMap)((0,l.getFragmentDefinitions)(t)),cache:i,mutableTargets:new H,knownChanged:new $})}e.s(["MapImpl",0,H,"SetImpl",0,$,"disableWarningsSlot",0,J,"warnOnImproperCacheImplementation",0,X],57299),e.s(["maybeDeepFreeze",0,Z],11922),e.s(["maskFragment",0,et],1743);var er=Object.prototype.hasOwnProperty,en=Object.create(null),ei=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new U.AutoCleanedWeakCache(K.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new B.Trie(!1),this.noCacheWarningsByQueryId=new Set;var r=new b.DocumentTransform(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(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,r.newInvariantError)(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,t.__awaiter)(this,arguments,void 0,function(e){var n,i,a,o,s,u,c,l=e.mutation,h=e.variables,d=e.optimisticResponse,v=e.updateQueries,y=e.refetchQueries,m=void 0===y?[]:y,g=e.awaitRefetchQueries,b=void 0!==g&&g,w=e.update,O=e.onQueryUpdated,k=e.fetchPolicy,S=void 0===k?(null==(u=this.defaultOptions.mutate)?void 0:u.fetchPolicy)||"network-only":k,E=e.errorPolicy,D=void 0===E?(null==(c=this.defaultOptions.mutate)?void 0:c.errorPolicy)||"none":E,R=e.keepRootFields,T=e.context;return(0,t.__generator)(this,function(e){switch(e.label){case 0:if((0,r.invariant)(l,36),(0,r.invariant)("network-only"===S||"no-cache"===S,37),n=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),i=this.getDocumentInfo(l).hasClientExports,h=this.getVariables(l,h),!i)return[3,2];return[4,this.localState.addExportedVariables(l,h,T)];case 1:h=e.sent(),e.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[n]={mutation:l,variables:h,loading:!0,error:null}),o=d&&this.markMutationOptimistic(d,{mutationId:n,document:l,variables:h,fetchPolicy:S,errorPolicy:D,context:T,updateQueries:v,update:w,keepRootFields:R}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return(0,p.asyncMap)(s.getObservableFromLink(l,(0,t.__assign)((0,t.__assign)({},T),{optimisticResponse:o?d:void 0}),h,{},!1),function(e){if((0,f.graphQLResultHasError)(e)&&"none"===D)throw new _.ApolloError({graphQLErrors:(0,f.getGraphQLErrorsFromResult)(e)});a&&(a.loading=!1,a.error=null);var r=(0,t.__assign)({},e);return"function"==typeof m&&(m=m(r)),"ignore"===D&&(0,f.graphQLResultHasError)(r)&&delete r.errors,s.markMutationResult({mutationId:n,result:r,document:l,variables:h,fetchPolicy:S,errorPolicy:D,context:T,update:w,updateQueries:v,awaitRefetchQueries:b,refetchQueries:m,removeOptimistic:o?n:void 0,onQueryUpdated:O,keepRootFields:R})}).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,t.__assign)((0,t.__assign)({},r),{data:s.maskOperation({document:l,data:r.data,fetchPolicy:S,id:n})}))},error:function(e){a&&(a.loading=!1,a.error=e),o&&s.cache.removeOptimistic(n),s.broadcastQueries(),r(e instanceof _.ApolloError?e:new _.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,r){var n=this;void 0===r&&(r=this.cache);var i=e.result,a=[],o="no-cache"===e.fetchPolicy;if(!o&&z(i,e.errorPolicy)){if((0,s.isExecutionPatchIncrementalResult)(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,s.isExecutionPatchIncrementalResult)(i)&&(0,d.isNonEmptyArray)(i.incremental)){var u=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),c=void 0;u.result&&(c=(0,s.mergeIncrementalData)(u.result,i)),void 0!==c&&(i.data=c,a.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var f=e.updateQueries;f&&this.queries.forEach(function(e,t){var o=e.observableQuery,s=o&&o.queryName;if(s&&er.call(f,s)){var u=f[s],c=n.queries.get(t),h=c.document,p=c.variables,d=r.diff({query:h,variables:p,returnPartialData:!0,optimistic:!1}),v=d.result;if(d.complete&&v){var y=u(v,{mutationResult:i,queryName:h&&(0,l.getOperationName)(h)||void 0,queryVariables:p});y&&a.push({result:y,dataId:"ROOT_QUERY",query:h,variables:p})}}})}if(a.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var h=[];if(this.refetchQueries({updateCache:function(r){o||a.forEach(function(e){return r.write(e)});var u=e.update,c=!(0,s.isExecutionPatchResult)(i)||(0,s.isExecutionPatchIncrementalResult)(i)&&!i.hasNext;if(u){if(!o){var l=r.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(i=(0,t.__assign)((0,t.__assign)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}c&&u(r,i,{context:e.context,variables:e.variables})}o||e.keepRootFields||!c||r.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 h.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(h).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,n){var i=this,a="function"==typeof e?e(n.variables,{IGNORE:en}):e;return a!==en&&(this.cache.recordOptimisticTransaction(function(e){try{i.markMutationResult((0,t.__assign)((0,t.__assign)({},n),{result:{data:a}}),e)}catch(e){!1!==globalThis.__DEV__&&r.invariant.error(e)}},n.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(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 r=this.transformCache;if(!r.has(e)){var n={hasClientExports:(0,o.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,o.hasDirectives)(["nonreactive"],e),nonReactiveQuery:(0,a.addNonReactiveToNamedFragments)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,a.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,l.getDefaultValues)((0,l.getOperationDefinition)(e)),asQuery:(0,t.__assign)((0,t.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,t.__assign)((0,t.__assign)({},e),{operation:"query"}):e})})};r.set(e,n)}return r.get(e)},e.prototype.getVariables=function(e,r){return(0,t.__assign)((0,t.__assign)({},this.getDocumentInfo(e).defaultVars),r)},e.prototype.watchQuery=function(e){var r=this.transform(e.query);void 0===(e=(0,t.__assign)((0,t.__assign)({},e),{variables:this.getVariables(r,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new L(this),i=new A({queryManager:this,queryInfo:n,options:e});return i.lastQuery=r,A.inactiveOnCreation.getValue()||this.queries.set(i.queryId,n),n.init({document:r,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,n){var i=this;void 0===n&&(n=this.generateQueryId()),(0,r.invariant)(e.query,38),(0,r.invariant)("Document"===e.query.kind,39),(0,r.invariant)(!e.returnPartialData,40),(0,r.invariant)(!e.pollInterval,41);var a=this.transform(e.query);return this.fetchQuery(n,(0,t.__assign)((0,t.__assign)({},e),{query:a})).then(function(r){return r&&(0,t.__assign)((0,t.__assign)({},r),{data:i.maskOperation({document:a,data:r.data,fetchPolicy:e.fetchPolicy,id:n})})}).finally(function(){return i.stopQuery(n)})},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,r.newInvariantError)(42)),this.queries.forEac
1h(function(e){e.observableQuery?e.networkStatus=w.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var n=this;void 0===e&&(e="active");var i=new Map,a=new Map,o=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)a.set(e,e),o.set(e,!1);else if((0,m.isDocumentNode)(e)){var t=(0,W.print)(n.transform(e));a.set(t,(0,l.getOperationName)(e)),o.set(t,!1)}else(0,g.isNonNullObject)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,r){var n=t.observableQuery,a=t.document;if(n){if("all"===e)return void i.set(r,n);var s=n.queryName;if("standby"===n.options.fetchPolicy||"active"===e&&!n.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has((0,W.print)(a)))&&(i.set(r,n),s&&o.set(s,!0),a&&o.set((0,W.print)(a),!0))}}),s.size&&s.forEach(function(e){var a=(0,y.makeUniqueId)("legacyOneTimeQuery"),o=n.getOrCreateQuery(a).init({document:e.query,variables:e.variables}),s=new A({queryManager:n,queryInfo:o,options:(0,t.__assign)((0,t.__assign)({},e),{fetchPolicy:"network-only"})});(0,r.invariant)(s.queryId===a),o.setObservableQuery(s),i.set(a,s)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){if(!e){var n=a.get(t);n?!1!==globalThis.__DEV__&&r.invariant.warn(43,n):!1!==globalThis.__DEV__&&r.invariant.warn(44)}}),i},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 a=n.options.fetchPolicy;(0,x.muteDeprecations)("resetLastResults",function(){return n.resetLastResults()}),(e||"standby"!==a&&"cache-only"!==a)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,a=e.errorPolicy,o=void 0===a?"none":a,s=e.context,u=void 0===s?{}:s,c=e.extensions,l=void 0===c?{}:c;r=this.transform(r),n=this.getVariables(r,n);var p=function(e){return t.getObservableFromLink(r,u,e,l).map(function(n){"no-cache"!==i&&(z(n,o)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=(0,f.graphQLResultHasError)(n),s=(0,_.graphQLResultHasProtocolErrors)(n);if(a||s){var u={};if(a&&(u.graphQLErrors=n.errors),s&&(u.protocolErrors=n.extensions[_.PROTOCOL_ERRORS_SYMBOL]),"none"===o||s)throw new _.ApolloError(u)}return"ignore"===o&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var d=this.localState.addExportedVariables(r,n,u).then(p);return new h.Observable(function(e){var t=null;return d.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return p(n)},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){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,r,n,a,o){var s,u,f=this;void 0===o&&(o=null!=(s=null==r?void 0:r.queryDeduplication)?s:this.queryDeduplication);var d=this.getDocumentInfo(e),y=d.serverQuery,m=d.clientQuery;if(y){var g=this.inFlightLinkObservables,b=this.link,_={query:y,variables:n,operationName:(0,l.getOperationName)(y)||void 0,context:this.prepareContext((0,t.__assign)((0,t.__assign)({},r),{forceFetch:!o})),extensions:a};if(r=_.context,o){var w=(0,W.print)(y),O=(0,c.canonicalStringify)(n),k=g.lookup(w,O);if(!(u=k.observable)){var S=new v.Concast([(0,i.execute)(b,_)]);u=k.observable=S,S.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?S.beforeNext(e):g.remove(w,O)})}}else u=new v.Concast([(0,i.execute)(b,_)])}else u=new v.Concast([h.Observable.of({data:{}})]),r=this.prepareContext(r);return m&&(u=(0,p.asyncMap)(u,function(e){return f.localState.runResolvers({document:m,remoteResult:e,context:r,variables:n})})),u},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return(0,p.asyncMap)(this.getObservableFromLink(i,r.context,r.variables),function(a){var o=(0,f.getGraphQLErrorsFromResult)(a),s=o.length>0,u=r.errorPolicy;if(n>
1=e.lastRequestId){if(s&&"none"===u)throw e.markError(new _.ApolloError({graphQLErrors:o}));e.markResult(a,i,r,t),e.markReady()}var c={data:a.data,loading:!1,networkStatus:w.NetworkStatus.ready};return s&&"none"===u&&(c.data=void 0),s&&"ignore"!==u&&(c.errors=o,c.networkStatus=w.NetworkStatus.error),c},function(t){var r=(0,_.isApolloError)(t)?t:new _.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,a,o=this;void 0===r&&(r=w.NetworkStatus.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,l=void 0===c?u&&u.fetchPolicy||"cache-first":c,f=t.errorPolicy,h=void 0===f?u&&u.errorPolicy||"none":f,p=t.returnPartialData,d=t.notifyOnNetworkStatusChange,y=t.context,m=Object.assign({},t,{query:n,variables:s,fetchPolicy:l,errorPolicy:h,returnPartialData:void 0!==p&&p,notifyOnNetworkStatusChange:void 0!==d&&d,context:void 0===y?{}:y}),g=function(n){m.variables=n;var i=o.fetchQueryByPolicy(e,m,r);return"standby"!==m.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},b=function(){return o.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){b(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(m.query).hasClientExports)i=new v.Concast(this.localState.addExportedVariables(m.query,m.variables,m.context).then(g).then(function(e){return e.sources})),a=!0;else{var _=g(m.variables);a=_.fromLink,i=new v.Concast(_.sources)}return i.promise.then(b,b),{concast:i,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?(0,y.makeUniqueId)("refetchQueries"):void 0:o,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof L&&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,a=e.lastDiff,o=e.diff;u&&(o||(o=(0,x.muteDeprecations)("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),n=u(i,o,a)),u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.maskOperation=function(e){var t,n,i,a=e.document,o=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,c=e.id,f=null==(t=(0,l.getOperationDefinition)(a))?void 0:t.operation,h=(null!=(n=null==f?void 0:f[0])?n:"o")+c;!this.dataMasking||"no-cache"!==s||(0,u.isFullyUnmaskedOperation)(a)||this.noCacheWarningsByQueryId.has(h)||(this.noCacheWarningsByQueryId.add(h),!1!==globalThis.__DEV__&&r.invariant.warn(45,null!=(i=(0,l.getOperationName)(a))?i:"Unnamed ".concat(null!=f?f:"operation")))}return this.dataMasking?function(e,t,n){if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&X(),e;var i,a=(0,l.getOperationDefinition)(t);return((0,r.invariant)(a,63),null==e)?e:ee(e,a.selectionSet,{operationType:a.operation,operationName:null==(i=a.name)?void 0:i.value,fragmentMap:(0,u.createFragmentMap)((0,l.getFragmentDefinitions)(t)),cache:n,mutableTargets:new H,knownChanged:new $})}(o,a,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?et(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,r,i){var a=this,o=r.query,s=r.variables,u=r.fetchPolicy,c=r.refetchWritePolicy,l=r.errorPolicy,f=r.returnPartialData,p=r.context,d=r.notifyOnNetworkStatusChange,v=e.networkStatus;e.init({document:o,variables:s,networkStatus:i});var y=function(){return e.getDiff()},m=function(r,i){void 0===i&&(i=e.networkStatus||w.NetworkStatus.loading);var u=r.result;!1===globalThis.__DEV__||f||(0,n.equal)(u,{})||C(r.missing);var c=function(e){return h.Observable.of((0,t.__assign)({data:e,loading:(0,w.isNetwork
1RequestInFlight)(i),networkStatus:i},r.complete?null:{partial:!0}))};return u&&a.getDocumentInfo(o).hasForcedResolvers?a.localState.runResolvers({document:o,remoteResult:{data:u},context:p,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return c(e.data||void 0)}):"none"===l&&i===w.NetworkStatus.refetch&&Array.isArray(r.missing)?c(void 0):c(u)},g="no-cache"===u?0:i===w.NetworkStatus.refetch&&"merge"!==c?1:2,b=function(){return a.getResultsFromLink(e,g,{query:o,variables:s,context:p,fetchPolicy:u,errorPolicy:l})},_=d&&"number"==typeof v&&v!==i&&(0,w.isNetworkRequestInFlight)(i);switch(u){default:case"cache-first":var O=y();if(O.complete)return{fromLink:!1,sources:[m(O,e.markReady())]};if(f||_)return{fromLink:!0,sources:[m(O),b()]};return{fromLink:!0,sources:[b()]};case"cache-and-network":var O=y();if(O.complete||f||_)return{fromLink:!0,sources:[m(O),b()]};return{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[m(y(),e.markReady())]};case"network-only":if(_)return{fromLink:!0,sources:[m(y()),b()]};return{fromLink:!0,sources:[b()]};case"no-cache":if(_)return{fromLink:!0,sources:[m(e.getDiff()),b()]};return{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new L(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var r=this.localState.prepareContext(e);return(0,t.__assign)((0,t.__assign)((0,t.__assign)({},this.defaultContext),r),{clientAwareness:this.clientAwareness})},e}();e.s(["QueryManager",0,ei],59054);var ea=e.i(2088);function eo(e){return e.kind===G.Kind.FIELD||e.kind===G.Kind.FRAGMENT_SPREAD||e.kind===G.Kind.INLINE_FRAGMENT}var es=e.i(22025),eu=new F.Slot,ec=new WeakMap;function el(e){var t=ec.get(e);return t||ec.set(e,t={vars:new Set,dep:(0,es.dep)()}),t}e.s(["cacheSlot",0,eu,"forgetCache",0,function(e){el(e).vars.forEach(function(t){return t.forgetCache(e)})},"makeVar",0,function(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){var t;el(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var o=Array.from(r);r.clear(),o.forEach(function(t){return t(e)})}}else{var s=eu.getValue();s&&(i(s),el(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),el(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n},"recallCache",0,function(e){el(e).vars.forEach(function(t){return t.attachCache(e)})}],268);var ef=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,j.mergeDeep)(t.resolvers,e)}):this.resolvers=(0,j.mergeDeep)(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,t.__awaiter)(this,arguments,void 0,function(e){var r=e.document,n=e.remoteResult,i=e.context,a=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return(0,t.__generator)(this,function(e){return r?[2,this.resolveDocument(r,n.data,i,a,this.fragmentMatcher,s).then(function(e){return(0,t.__assign)((0,t.__assign)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,o.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,a.removeClientSetsFromDocument)(e)},e.prototype.prepareContext=function(e){var r=this.cache;return(0,t.__assign)((0,t.__assign)({},e),{cache:r,getCacheKey:function(e){return r.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,t.__awaiter)(this,arguments,void 0,function(e,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),(0,t.__generator)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,r)||{},this.prepareContext(n),r).then(function(e){return(0,t.__assign)((0,t.__assign)({},r),e.exportedVariables)})]:[2,(0,t.__assign)({},r)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,ea.visit)(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 ea.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,a.buildQueryFromSelectionSet)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,r){return(0,t.__awaiter)(this,arguments,void 0,function(e,r,n,i,a,o){var s,c,f,h,p,d,v,y,m,g;return void 0===n&&(n={}),void 0===i&&(i={}),void 0===a&&(a=function(){return!0}),void 0===o&&(o=!1),(0,t.__generator)(this,function(b){return s=(0,l.getMainDefinition)(e),c=(0,l.getFragmentDefinitions)(e),f=(0,u.createFragmentMap)(c),h=this.collectSelectionsToResolve(s,f),d=(p=s.operation)?p.charAt(0).toUpperCase()+p.slice(1):"Query",v=this,y=v.cache,m=v.client,g={fragmentMap:f,context:(0,t.__assign)((0,t.__assign)({}
1,n),{cache:y,client:m}),variables:i,fragmentMatcher:a,defaultOperationType:d,exportedVariables:{},selectionsToResolve:h,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,r,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,n,i,a){return(0,t.__awaiter)(this,void 0,void 0,function(){var s,u,c,l,f,h=this;return(0,t.__generator)(this,function(p){return s=a.fragmentMap,u=a.context,c=a.variables,l=[i],f=function(e){return(0,t.__awaiter)(h,void 0,void 0,function(){var f,h;return(0,t.__generator)(this,function(t){return(n||a.selectionsToResolve.has(e))&&(0,o.shouldInclude)(e,c)?(0,m.isField)(e)?[2,this.resolveField(e,n,i,a).then(function(t){var r;void 0!==t&&l.push(((r={})[(0,m.resultKeyNameFromField)(e)]=t,r))})]:((0,m.isInlineFragment)(e)?f=e:(f=s[e.name.value],(0,r.invariant)(f,21,e.name.value)),f&&f.typeCondition&&(h=f.typeCondition.name.value,a.fragmentMatcher(i,h,u)))?[2,this.resolveSelectionSet(f.selectionSet,n,i,a).then(function(e){l.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(f)).then(function(){return(0,j.mergeDeepArray)(l)})]})})},e.prototype.resolveField=function(e,r,n,i){return(0,t.__awaiter)(this,void 0,void 0,function(){var a,o,s,u,c,l,f,h,p,d=this;return(0,t.__generator)(this,function(t){return n?(a=i.variables,u=(o=e.name.value)!==(s=(0,m.resultKeyNameFromField)(e)),l=Promise.resolve(c=n[s]||n[o]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=n.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[u?o:s])&&(l=Promise.resolve(eu.withValue(this.cache,p,[n,(0,m.argumentsObjectFromField)(e,a),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then(function(t){if(void 0===t&&(t=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]=t)})}),!e.selectionSet||null==t)return t;var n,a,o=null!=(a=null==(n=e.directives)?void 0:n.some(function(e){return"client"===e.name.value}))&&a;return Array.isArray(t)?d.resolveSubSelectedArray(e,r||o,t,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,r||o,t,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 n=function(e){return!Array.isArray(e)},i=this.selectionsToResolveCache;return function e(a){if(!i.has(a)){var o=new Set;i.set(a,o),(0,ea.visit)(a,{Directive:function(e,t,r,i,a){"client"===e.name.value&&a.forEach(function(e){n(e)&&eo(e)&&o.add(e)})},FragmentSpread:function(i,a,s,u,c){var l=t[i.name.value];(0,r.invariant)(l,22,i.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){n(e)&&eo(e)&&o.add(e)}),o.add(i),f.forEach(function(e){o.add(e)}))}})}return i.get(a)}(e)},e}();e.s(["LocalState",0,ef],50968)},69570,e=>{"use strict";var t=e.i(89280),r=e.i(27371);e.s(["mergeOptions",0,function(e,n){return(0,r.compact)(e,n,n.variables&&{variables:(0,r.compact)((0,t.__assign)((0,t.__assign)({},e&&e.variables),n.variables))})}])},35384,e=>{"use strict";var t,r,n,i=e.i(50461),a=e.i(95694),o=e.i(89280);e.i(68681);var s=e.i(5578),u=e.i(62979),c=e.i(71393),l=e.i(99849),f=e.i(71596),h=e.i(59054),p=e.i(50968),d=e.i(69570),v=e.i(99523),y=e.i(69547),m=!1,g=function(){function e(e){var t,r,n,i=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,s.newInvariantError)(16);var a=e.uri,c=e.credentials,d=e.headers,v=e.cache,m=e.documentTransform,g=e.ssrMode,b=void 0!==g&&g,_=e.ssrForceFetchDelay,w=void 0===_?0:_,O=e.connectToDevTools,k=e.queryDeduplication,S=void 0===k||k,E=e.defaultOptions,D=e.defaultContext,R=e.assumeImmutableResults,T=void 0===R?v.assumeImmutableResults:R,F=e.resolvers,x=e.typeDefs,I=e.fragmentMatcher,N=e.clientAwareness,A=e.name,q=e.version,C=e.devtools,M=e.dataMasking;!1!==globalThis.__DEV__&&((0,y.warnRemovedOption)(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),(0,y.warnRemovedOption)(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),(0,y.warnRemovedOption)(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),(0,y.warnRemovedOption)(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),(0,y.warnRemovedOption)(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),(0,y.warnRemovedOption)(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),(0,y.warnRemovedOption)(e,"typeDefs","ApolloClient"),e.link||!1===globalThis.__DEV__||s.invariant.warn(17));var j=e.link;j||(j=a?new f.HttpLink({uri:a,credentials:c,headers:d}):u.ApolloLink.empty()),this.link=j,this.cache=v,this.disableNetworkFetches=b||w>0,this.queryDeduplication=S,this.defaultOptions=E||Object.create(null),this.typeDefs=x,this.devtoolsConfig=(0,o.__assign)((0,o.__assign)({},C),{enabled:null!=(t=null==C?void 0:C.enabled)?t:O}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),w&&setTimeout(function(){return i.disableNetworkFetches=!1},w),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=l.version,this.localState=new p.LocalState({cache:v,client:this,resolvers:F,fragmentMatcher:I}),this.queryManager=new h.QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:D,documentTransform:m,queryDeduplication:S,ssrMode:b,dataMasking:!!M,clientAwareness:{name:null!=(r=null==N?void 0:N.name)?r:A,version:null!=(n=null==N?void 0:N.version)?n:q},localState:this.localState,assumeImmutableResults:T,onBroadcast:this.devtoolsConfig.enabled?function(){i.devToolsHookCb&&i.devToolsHookCb({action:{},state:{queries:i.queryManager.getQueryStore(),mutations:i.queryManager.mutationStore||{}},dataWithOptimisticResults:i.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
1,enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if("u">typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!m&&!1!==globalThis.__DEV__&&(m=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){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__&&s.invariant.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,d.mergeOptions)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,o.__assign)((0,o.__assign)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,y.warnRemovedOption)(e,"canonizeResults","client.watchQuery"),(0,y.warnRemovedOption)(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,d.mergeOptions)(this.defaultOptions.query,e)),(0,s.invariant)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,o.__assign)((0,o.__assign)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,y.warnRemovedOption)(e,"canonizeResults","client.query"),(0,y.warnRemovedOption)(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&s.invariant.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,d.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(n){return(0,o.__assign)((0,o.__assign)({},n),{data:t.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,o.__assign)((0,o.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},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,c.execute)(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 i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&s.invariant.debug(20,e)}),i},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}
1,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(g.prototype.getMemoryInternals=v.getApolloClientMemoryInternals);var b=e.i(6775),_=e.i(24669),w=e.i(25945),O=e.i(6044),k=e.i(15301),S=e.i(86384),E=e.i(13959),D=e.i(62918),R=e.i(22479),T=e.i(1743),F=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,b.wrap)(S.getFragmentQueryDocument,{max:O.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:D.WeakCache})}return e.prototype.lookupFragment=function(e){return null},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){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,y.warnRemovedOption)(e,"canonizeResults","cache.readQuery"),(0,y.muteDeprecations)("canonizeResults",function(){return r.read((0,o.__assign)((0,o.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,a=e.from,u=e.optimistic,c=(0,o.__rest)(e,["fragment","fragmentName","from","optimistic"]),l=this.getFragmentDoc(n,i),f=void 0===a||"string"==typeof a?a:this.identify(a),h=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var p=i||(0,k.getFragmentDefinition)(n).name.value;f||!1===globalThis.__DEV__||s.invariant.warn(1,p)}var d=(0,o.__assign)((0,o.__assign)({},c),{returnPartialData:!0,id:f,query:l,optimistic:void 0===u||u});return new w.Observable(function(a){return r.watch((0,o.__assign)((0,o.__assign)({},d),{immediate:!0,callback:function(s){var u=h?(0,T.maskFragment)(s.result,n,r,i):s.result;if(!(t&&(0,R.equalByQuery)(l,{data:t.result},{data:u},e.variables))){var c={data:u,complete:!!s.complete};s.missing&&(c.missing=(0,E.mergeDeepArray)(s.missing.map(function(e){return e.missing}))),t=(0,o.__assign)((0,o.__assign)({},s),{result:u}),a.next(c)}}}))})},e.prototype.readFragment=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,y.warnRemovedOption)(e,"canonizeResults","cache.readFragment"),(0,y.muteDeprecations)("canonizeResults",function(){return r.read((0,o.__assign)((0,o.__assign)({},e),{query:r.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,o.__rest)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=(0,o.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return!1!==globalThis.__DEV__&&(0,y.warnRemovedOption)(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var n=(0,y.muteDeprecations)("canonizeResults",function(){return r.readQuery(e)}),i=t(n);return null==i?n:(r.writeQuery((0,o.__assign)((0,o.__assign)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return!1!==globalThis.__DEV__&&(0,y.warnRemovedOption)(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var n=(0,y.muteDeprecations)("canonizeResults",function(){return r.readFragment(e)}),i=t(n);return null==i?n:(r.writeFragment((0,o.__assign)((0,o.__assign)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(F.prototype.getMemoryInternals=v.getApolloCacheMemoryInternals);var x=function(e){function t(r,n,i,a){var o,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)(o={})[s.path[u]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,o.__extends)(t,e),t}(Error),I=e.i(49429),N=e.i(56776),A=e.i(33448),q=e.i(28117),C=e.i(41969),M=e.i(6699),j=e.i(26452),P=e.i(11922),Q=e.i(30101),V=e.i(23289),L=e.i(27371),z=e.i(22025),W=e.i(83015),B=e.i(42419),U=Object.prototype.hasOwnProperty;function K(e){return null==e}function G(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=K(n)?K(i)?void 0:{_id:i}:{id:n}),K(n)&&!K(i)&&(n=i),!K(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var H={dataIdFromObject:G,addTypename:!0,resultCaching:!0,canonizeResults:!1};function $(e){var t=e.canonizeResults;return void 0===t?H.canonizeResults:t}var J=/^[_a-z][_0-9a-z]*/i;function Y(e){var t=e.match(J);return t?t[0]:e}function X(e){return(0,Q.isNonNullObject)(e)&&!(0,N.isReference)(e)&&!(0,B.isArray)(e)}function Z(e,t){var r=(0,S.createFragmentMap)((0,k.getFragmentDefinitions)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var ee=Object.create(null),et=function(){return ee},er=Object.create(null),en=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,P.maybeDeepFreeze)((0,N.isReference)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,N.isReference)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,N.makeReference)(e);if((0,N.isReference)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,N.makeReference)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,o.__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),U.call(this.data,e)){var r=this.data[e];if(r&&U.call(r,t))return r[t]}return"__typename"===t&&U.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof eo?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),U.call(this.data,e))?this.data[e]:this instanceof eo?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,N.isReference)(e)&&(e=e.__ref),(0,N.isReference)(t)&&(t=t.__ref);
1var i="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,s.invariant)("string"==typeof r,2);var o=new E.DeepMerger(eu).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==o[e]){u[e]=1;var t=Y(e);t===e||n.policies.hasKeyArgs(o.__typename,t)||(u[t]=1),void 0!==o[e]||n instanceof eo||delete o[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===o.__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,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,u=!0,c={DELETE:ee,INVALIDATE:er,isReference:N.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,N.makeReference)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(l){var f=Y(l),h=n[l];if(void 0!==h){var p="function"==typeof t?t:t[l]||t[f];if(p){var d=p===et?ee:p((0,P.maybeDeepFreeze)(h),(0,o.__assign)((0,o.__assign)({},c),{fieldName:f,storeFieldName:l,storage:r.getStorage(e,l)}));if(d===er)r.group.dirty(e,l);else if(d===ee&&(d=void 0),d!==h&&(i[l]=d,a=!0,h=d,!1!==globalThis.__DEV__)){var v=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&s.invariant.warn(3,e),!0};if((0,N.isReference)(d))v(d);else if(Array.isArray(d))for(var y=!1,m=void 0,g=0,b=d;g<b.length;g++){var _=b[g];if((0,N.isReference)(_)){if(y=!0,v(_))break}else"object"==typeof _&&_&&r.policies.identify(_)[0]&&(m=_);if(y&&void 0!==m){!1!==globalThis.__DEV__&&s.invariant.warn(4,m);break}}}}void 0!==h&&(u=!1)}}),a)return this.merge(e,i),u&&(this instanceof eo?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 a=this.getFieldValue(i,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:a,fieldName:t,args:r}):t;return this.modify(e,o?((n={})[o]=et,n):et)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(U.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof eo&&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){U.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&&U.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o.__rest)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[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 eo?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){U.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 eo;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!U.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,N.isReference)(e)&&(t[e.__ref]=!0),(0,Q.isNonNullObject)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,Q.isNonNullObject)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),ei=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,z.dep)():null,this.keyMaker=new W.Tr
1ie(V.canUseWeakMap)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=Y(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function ea(e,t){ec(e)&&e.group.depend(t,"__exists")}r=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,a=e.call(this,r,new ei(void 0===n||n))||this;return a.stump=new es(a),a.storageTrie=new W.Trie(V.canUseWeakMap),i&&a.replace(i),a}return(0,o.__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}(t=en||(en={})),t.Root=r;var eo=function(e){function t(t,r,n,i){var a=e.call(this,r.policies,i)||this;return a.id=t,a.parent=r,a.replay=n,a.group=i,n(a),a}return(0,o.__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,_.equal)(n[r],i[r])||t.group.dirty(e,r)}
1):(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,o.__assign)((0,o.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return U.call(this.data,t)?(0,o.__assign)((0,o.__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}(en),es=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new ei(t.group.caching,t.group))||this}return(0,o.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(eo);function eu(e,t,r){var n=e[r],i=t[r];return(0,_.equal)(n,i)?n:i}function ec(e){return!!(e instanceof en&&e.group.caching)}var el=function(){function e(){this.known=new(V.canUseWeakSet?WeakSet:Set),this.pool=new W.Trie(V.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,Q.isNonNullObject)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,Q.isNonNullObject)(e)){var t=(0,Q.isNonNullObject)(e)?(0,B.isArray)(e)?e.slice(0):(0,o.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,Q.isNonNullObject)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var u=o.length;s.sorted.forEach(function(r){o.push(t.admit(e[r]))});var i=this.pool.lookupArray(o);if(!i.object){var c=i.object=Object.create(a);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=o[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.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 ef(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var eh=function(){function e(e){var t=this;this.knownResults=new(V.canUseWeakMap?WeakMap:Map),this.config=(0,L.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:$(e)}),this.canon=e.canon||new el,this.executeSelectionSet=(0,b.wrap)(function(e){var r,n=e.context.canonizeResults,i=ef(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,o.__assign)((0,o.__assign)({},a),{result:t.canon.admit(a.result)}):a:(ea(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||O.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:ef,makeCacheKey:function(e,t,r,n){if(ec(r.store))return r.store.makeCacheKey(e,(0,N.isReference)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,b.wrap)(function(e){return ea(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||O.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(ec(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new el},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=e.variables,s=e.returnPartialData,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;a=(0,o.__assign)((0,o.__assign)({},(0,k.getDefaultValues)((0,k.getQueryDefinition)(n))),a);var f=(0,N.makeReference)(void 0===i?"ROOT_QUERY":i),h=this.executeSelectionSet({selectionSet:(0,k.getMainDefinition)(n).selectionSet,objectOrReference:f,enclosingRef:f,context:(0,o.__assign)({store:r,query:n,policies:l,variables:a,varString:(0,q.canonicalStringify)(a),canonizeResults:c},Z(n,this.config.fragments))});if(h.missing&&(t=[new x(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(h.missing),h.missing,n,a)],!(void 0===s||s)))throw t[0];return{result:h.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(ec(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,r=this,n=e.selectionSet,i=e.objectOrReference,a=e.enclosingRef,o=e.context;if((0,N.isReference)(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=o.variables,c=o.policies,l=o.store.getFieldValue(i,"__typename"),f=[],h=new E.DeepMerger;function p(e,r){var n;return e.missing&&(t=h.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&f.push({__typename:l});var d=new Set(n.selections);d.forEach(function(e){var n,v;if((0,j.shouldInclude)(e,u))if((0,N.isField)(e)){var y=c.readField({fieldName:e.n
1ame.value,field:e,variables:o.variables,from:i},o),m=(0,N.resultKeyNameFromField)(e);void 0===y?I.addTypenameToDocument.added(e)||(t=h.merge(t,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat((0,N.isReference)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,B.isArray)(y)?y.length>0&&(y=p(r.executeSubSelectedArray({field:e,array:y,enclosingRef:a,context:o}),m)):e.selectionSet?null!=y&&(y=p(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:(0,N.isReference)(y)?y:a,context:o}),m)):o.canonizeResults&&(y=r.canon.pass(y)),void 0!==y&&f.push(((v={})[m]=y,v))}else{var g=(0,S.getFragmentFromSelection)(e,o.lookupFragment);if(!g&&e.kind===M.Kind.FRAGMENT_SPREAD)throw(0,s.newInvariantError)(10,e.name.value);g&&c.fragmentMatches(g,l)&&g.selectionSet.selections.forEach(d.add,d)}});var v={result:(0,E.mergeDeepArray)(f),missing:t},y=o.canonizeResults?this.canon.admit(v):(0,P.maybeDeepFreeze)(v);return y.result&&this.knownResults.set(y.result,n),y},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,u=new E.DeepMerger;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,B.isArray)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:o}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,N.isReference)(e)?e:a,context:o}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,Q.isNonNullObject)(r)&&((0,s.invariant)(!(0,N.isReference)(r),11,(0,N.isReference)(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(o.store,n,e),e)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),ep=e.i(43772),ed=e.i(10125),ev=e.i(268),ey=Object.create(null);function em(e){var t=JSON.stringify(e);return ey[t]||(ey[t]=Object.create(null))}function eg(e){var t=em(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=e_(e,function(e){var i=eO(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&U.call(t,e[0])&&(i=eO(t,e,ew)),(0,s.invariant)(void 0!==i,5,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function eb(e){var t=em(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,o=JSON.stringify(e_(e,function(e){var r=e[0],a=r.charAt(0);if("@"===a){if(n&&(0,B.isNonEmptyArray)(n.directives)){var o=r.slice(1),s=n.directives.find(function(e){return e.name.value===o}),u=s&&(0,N.argumentsObjectFromField)(s,i);return u&&eO(u,e.slice(1))}return}if("$"===a){var c=r.slice(1);if(i&&U.call(i,c)){var l=e.slice(0);return l[0]=c,eO(i,l)}return}if(t)return eO(t,e)}));return(t||"{}"!==o)&&(a+=":"+o),a})}function e_(e,t){var r=new E.DeepMerger;return(function e(t){var r=em(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,a){(0,B.isArray)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,B.isArray)(t[a+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,a=t(n);if(void 0!==a){for(var o=n.length-1;o>=0;--o)(i={})[n[o]]=a,a=i;e=r.merge(e,a)}return e},Object.create(null))}function ew(e,t){return e[t]}function eO(e,t,r){return r=r||ew,function e(t){return(0,Q.isNonNullObject)(t)?(0,B.isArray)(t)?t.map(e):e_(Object.keys(t).sort(),function(e){return eO(t,e)}):t}(t.reduce(function e(t,n){return(0,B.isArray)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}var ek=e.i(57299);function eS(e){return void 0!==e.args?e.args:e.field?(0,N.argumentsObjectFromField)(e.field,e.variables):null}var eE=function(){},eD=function(e,t){return t.fieldName},eR=function(e,t,r){return(0,r.mergeObjects)(e,t)},eT=function(e,t){return t},eF=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,o.__assign)({dataIdFromObject:G},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,n,i=this,a=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,u=(0,o.__assign)((0,o.__assign)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=eI(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;return ek.disableWarningsSlot.withValue(!0,function(){for(;l;){var t=l((0,o.__assign)((0,o.__assign)({},e),s),u);if((0,B.isArray)(t))l=eg(t);else{n=t;break}}}),n=n?String(n):void 0,u.keyObject?[n,u.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,u=(0,o.__rest)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),U.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t,r){var n=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?eR:!1===t?eT:e.merge}o(n,t.merge),n.keyFn=!1===i?eE:(0,B.isArray)(i)?eg(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEac
1h(function(t){var n=r[t];n&&(null==n?void 0:n.typename)===e||(n=r[t]={typename:e});var i=a[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?eD:(0,B.isArray)(s)?eb(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),o(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||eD)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,s.invariant)(!n||n===e,6,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(J);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!U.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,o.__rest)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},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 i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),u=[o],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(r&&this.fuzzySubtypes.size),f=!1,h=0;h<u.length;++h){var p=u[h];if(p.has(a))return o.has(a)||(f&&!1!==globalThis.__DEV__&&s.invariant.warn(7,t,a),o.add(a)),!0;p.forEach(c),l&&h===u.length-1&&function e(t,r,n){return!!(0,Q.isNonNullObject)(r)&&((0,B.isArray)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,N.isField)(t)&&(0,j.shouldInclude)(t,n)){var i=(0,N.resultKeyNameFromField)(t);return U.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n),a=i&&i.keyFn;if(a&&r)for(var o={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=eS(e);a;){var u=a(s,o);if((0,B.isArray)(u))a=eb(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,N.storeKeyNameFromField)(e.field,e.variables):(0,N.getStoreKeyName)(n,eS(e))),!1===t)?n:n===Y(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),a=Y(i),o=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,a),u=s&&s.read;if(u){var c=ex(this,r,e,t,t.store.getStorage((0,N.isReference)(r)?r.__ref:r,i));return ev.cacheSlot.withValue(this.cache,u,[o,c])}return o}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var a=r.field,o=r.typename,s=r.merge;return s===eR?eN(n.store)(e,t):s===eT?t:(n.overwrite&&(e=void 0),s(e,t,ex(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:n.variables},n,i||Object.create(null))))},e}();function ex(e,t,r,n,i){var a=e.getStoreFieldName(r),o=Y(a),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:eS(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:N.isReference,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(eI(arguments,t,s),n)},mergeObjects:eN(n.store)}}function eI(e,t,r){var n,i=e[0],a=e[1],u=e.length;return"string"==typeof i?n={fieldName:i,from:u>1?a:t}:(n=(0,o.__assign)({},i),U.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&s.invariant.warn(8,(0,ed.stringifyForDisplay)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function eN(e){return function(t,r){if((0,B.isArray)(t)||(0,B.isArray)(r))throw(0,s.newInvariantError)(9);if((0,Q.isNonNullObject)(t)&&(0,Q.isNonNullObject)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,N.isReference)(t)&&X(r))return e.merge(t.__ref,r),t;if(X(t)&&(0,N.isReference)(r))return e.merge(t,r.__ref),r;if(X(t)&&X(r))return(0,o.__assign)((0,o.__assign)({},t),r)}return r}}function eA(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,o.__assign)((0,o.__assign)({},e),{clientOnly:t,deferred:r})),i}var eq=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,n=t.query,i=t.result,a=t.dataId,u=t.variables,c=t.overwrite,l=(0,k.getOperationDefinition)(n),f=new E.DeepMerger;u=(0,o.__assign)((0,o.__assign)({},(0,k.getDefaultValues)(l)),u);var h=(0,o.__assign)((0,o.__assign)({store:e,written:Object.create(null),merge:function(e,t){return f.merge(e,t)}
1,variables:u,varString:(0,q.canonicalStringify)(u)},Z(n,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:h});if(!(0,N.isReference)(p))throw(0,s.newInvariantError)(12,i);return h.incomingById.forEach(function(t,n){var i=t.storeObject,a=t.mergeTree,u=t.fieldNodeSet,c=(0,N.makeReference)(n);if(a&&a.map.size){var l=r.applyMerges(a,c,i,h);if((0,N.isReference)(l))return;i=l}if(!1!==globalThis.__DEV__&&!h.overwrite){var f=Object.create(null);u.forEach(function(e){e.selectionSet&&(f[e.name.value]=!0)});var p=function(e){var t=a&&a.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==f[Y(e)]||p(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=i(e);if(a){var u=i(t);if(!(!u||(0,N.isReference)(a)||(0,_.equal)(a,u)||Object.keys(a).every(function(e){return void 0!==n.getFieldValue(u,e)}))){var c=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=Y(r),f="".concat(c,".").concat(l);if(!eQ.has(f)){eQ.add(f);var h=[];(0,B.isArray)(a)||(0,B.isArray)(u)||[a,u].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}),!1!==globalThis.__DEV__&&s.invariant.warn(15,l,c,h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"",f,(0,o.__assign)({},a),(0,o.__assign)({},u))}}}}(c,i,e,h.store)})}e.merge(n,i)}),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,a=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),f=r&&c.rootTypenamesById[r]||(0,N.getTypenameFromResult)(n,i,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof f&&(l.__typename=f);var h=function(){var e=eI(arguments,l,a.variables);if((0,N.isReference)(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,o.__assign)((0,o.__assign)({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return c.readField(e,a)},p=new Set;this.flattenFields(i,n,a,f).forEach(function(e,r){var i,a=n[(0,N.resultKeyNameFromField)(r)];if(p.add(r),void 0!==a){var o=c.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),d=eM(u,o),v=t.processFieldValue(a,r,r.selectionSet?eA(e,!1,!1):e,d),y=void 0;r.selectionSet&&((0,N.isReference)(v)||X(v))&&(y=h("__typename",v));var m=c.getMergeFunction(f,r.name.value,y);m?d.info={field:r,typename:f,merge:m}:eP(u,o),l=e.merge(l,((i={})[o]=v,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||I.addTypenameToDocument.added(r)||c.getReadFunction(f,r.name.value)||!1===globalThis.__DEV__||s.invariant.error(13,(0,N.resultKeyNameFromField)(r),n)});try{var d=c.identify(n,{typename:f,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:l,readField:h}),v=d[0],y=d[1];r=r||v,y&&(l=a.merge(l,y))}catch(e){if(!r)throw e}if("string"==typeof r){var m=(0,N.makeReference)(r),g=a.written[r]||(a.written[r]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(n,m,i,a)))return m;var b=a.incomingById.get(r);return b?(b.storeObject=a.merge(b.storeObject,l),b.mergeTree=function e(t,r){if(t===r||!r||ej(r))return t;if(!t||ej(t))return r;var n=t.info&&r.info?(0,o.__assign)((0,o.__assign)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(b.mergeTree,u),p.forEach(function(e){return b.fieldNodeSet.add(e)})):a.incomingById.set(r,{storeObject:l,mergeTree:ej(u)?void 0:u,fieldNodeSet:p}),m}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,B.isArray)(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,r,eM(n,a));return eP(n,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,ep.cloneDeep)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,N.getTypenameFromResult)(t,e,r.fragmentMap));
1var i=new Map,a=this.cache.policies,o=new W.Trie(!1);return!function e(u,c){var l=o.lookup(u,c.clientOnly,c.deferred);l.visited||(l.visited=!0,u.selections.forEach(function(o){if((0,j.shouldInclude)(o,r.variables)){var u=c.clientOnly,l=c.deferred;if(!(u&&l)&&(0,B.isNonEmptyArray)(o.directives)&&o.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,N.argumentsObjectFromField)(e,r.variables);n&&!1===n.if||(l=!0)}}),(0,N.isField)(o)){var f=i.get(o);f&&(u=u&&f.clientOnly,l=l&&f.deferred),i.set(o,eA(r,u,l))}else{var h=(0,S.getFragmentFromSelection)(o,r.lookupFragment);if(!h&&o.kind===M.Kind.FRAGMENT_SPREAD)throw(0,s.newInvariantError)(14,o.name.value);h&&a.fragmentMatches(h,n,t,r.variables)&&e(h.selectionSet,eA(r,u,l))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var a=this;if(e.map.size&&!(0,N.isReference)(r)){var u,c,l=!(0,B.isArray)(r)&&((0,N.isReference)(t)||X(t))?t:void 0,f=r;l&&!i&&(i=[(0,N.isReference)(l)?l.__ref:l]);var h=function(e,t){return(0,B.isArray)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=h(l,t),o=h(f,t);if(void 0!==o){i&&i.push(t);var u=a.applyMerges(e,r,o,n,i);u!==o&&(c=c||new Map).set(t,u),i&&(0,s.invariant)(i.pop()===t)}}),c&&(r=(0,B.isArray)(f)?f.slice(0):(0,o.__assign)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(u=n.store).getStorage.apply(u,i)):r},e}(),eC=[];function eM(e,t){var r=e.map;return r.has(t)||r.set(t,eC.pop()||{map:new Map}),r.get(t)}function ej(e){return!e||!(e.info||e.map.size)}function eP(e,t){var r=e.map,n=r.get(t);n&&ej(n)&&(eC.push(n),r.delete(t))}var eQ=new Set,eV=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new A.DocumentTransform(I.addTypenameToDocument),n.assumeImmutableResults=!0,n.makeVar=ev.makeVar,n.txCount=0,!1!==globalThis.__DEV__&&((0,y.warnRemovedOption)(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),(0,y.warnRemovedOption)(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r=t,n.config=(0,L.compact)(H,r),n.addTypename=!!n.config.addTypename,n.policies=new eF({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,o.__extends)(t,e),t.prototype.init=function(){var e=this.data=new en.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.addTypenameTransform.resetCache(),null==n||n.resetCaches(),this.storeWriter=new eq(this,this.storeReader=new eh({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:$(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,b.wrap)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||O.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(ec(r)){var n=e.optimistic,i=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,(0,q.canonicalStringify)({optimistic:n,id:i,variables:a}))}}}),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){!1!==globalThis.__DEV__&&(0,y.warnRemovedOption)(e,"canonizeResults","cache.read");var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.__assign)((0,o.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof x)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(U.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!1!==globalThis.__DEV__&&(0,y.warnRemovedOption)(e,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore((0,o.__assign)((0,o.__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,ev.recallCache)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,ev.forgetCache)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){!1!==globalThis.__DEV__&&(0,y.warnRemovedOption)(e||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),q.canonicalStringify.reset(),C.print.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},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,N.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&s.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(U.call(e,"id"))return!1;e=(0,o.__assign)((0,o.__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(),q.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,ev.forgetCache)(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,n=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var i=r.data,a=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=a}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,o.__assign)((0,o.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,o.__assign)((0,o.__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.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},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=this,n=e.lastDiff,i=(0,y.muteDeprecations)("canonizeResults",function(){return r.diff(e)});(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,n)))&&(n&&(0,_.equal)(n.result,i.result)||e.callback(e.lastDiff=i,n))},t}(F);!1!==globalThis.__DEV__&&(eV.prototype.getMemoryInternals=v.getInMemoryCacheMemoryInternals);var eL=e.i(33879);function ez(e){return new u.ApolloLink(function(t,r){return new w.Observable(function(n){var i,a,o;try{i=r(t).subscribe({next:function(i){if(i.errors?o=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}):(0,eL.graphQLResultHasProtocolErrors)(i)&&(o=e({protocolErrors:i.extensions[eL.PROTOCOL_ERRORS_SYMBOL],response:i,operation:t,forward:r})),o){a=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(i)},error:function(i){if(o=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r})){a=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(i)},complete:function(){o||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}var eW=u.ApolloLink;function eB(e){var t=eW.call(this)||this;return t.link=ez(e),t}(0,o.__extends)(eB,eW),eB.prototype.request=function(e,t){return this.link.request(e,t)};var eU=function(){function e(e,t,r,n,i){var a=this;this.observer=e,this.operation=t,this.forward=r,this.delayFor=n,this.retryIf=i,this.retryCount=0,this.currentSubscription=null,this.onError=function(e){return(0,o.__awaiter)(a,void 0,void 0,function(){return(0,o.__generator)(this,function(t){switch(t.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(t.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];return this.observer.error(e),[2]}})})},this.try()}return e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},e.prototype.try=function(){var e=this;this.currentSubscription=this.forward(this.operation).subscribe({next:function(t){var r;if((0,eL.graphQLResultHasProtocolErrors)(t)){e.onError(new eL.ApolloError({protocolErrors:t.extensions[eL.PROTOCOL_ERRORS_SYMBOL]})),null==(r=e.currentSubscription)||r.unsubscribe();return}e.observer.next(t)},error:this.onError,complete:this.observer.complete.bind(this.observer)})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout(function(){t.timerId=void 0,t.try()},e)},e}(),eK=function(e){function t(t){var r,n,i,a,o,s,u,c,l,f,h,p,d=e.call(this)||this,v=t||{},y=v.attempts,m=v.delay;return d.delayFor="function"==typeof m?m:(i=void 0===(n=(r=m||{}).initial)?300:n,o=void 0===(a=r.jitter)||a,u=void 0===(s=r.max)?1/0:s,c=o?i:i/2,function(e){var t=Math.min(u,c*Math.pow(2,e));return o&&(t=Math.random()*t),t}),d.retryIf="function"==typeof y?y:(f=(l=y||{}).retryIf,p=void 0===(h=l.max)?5:h,function(e,t,r){return!(e>=p)&&(f?f(r,t):!!r)}),d}return(0,o.__extends)(t,e),t.prototype.request=function(e,t){var r=this;return new w.Observable(function(n){var i=new eU(n,e,t,r.delayFor,r.retryIf);return function(){i.cancel()}})},t}(u.ApolloLink),eG=e.i(41864);let eH={watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}},e$=new eV({resultCaching:!1}),eJ=Number(i.default.env.KN_GRAPHQL_ATTEMPTS),eY=new eK({delay:{initial:300,max:4e3,jitter:!0},attempts:{max:Number.isFinite(eJ)&&eJ>0?eJ:3,retryIf:(e,t)=>
1{if(t.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation))return!1;let r=e?.statusCode;return"number"!=typeof r||429===r||r>=500}}});i.default.env.KN_STRICT_BUILD;let eX="1"===i.default.env.KN_LOG_GRAPHQL_STATS,eZ=e=>new u.ApolloLink((t,r)=>{if(!eX)return r(t);let n=Date.now();return r(t).map(r=>{let i=JSON.stringify(r?.data??null).length,a=Date.now()-n;return console.log(`[GraphQL stats]: ${t.operationName||"anonymous"} ${e} bytes=${i} ms=${a}`),r})}),e0=e=>ez(({graphQLErrors:t,networkError:r,operation:n})=>{if(t&&t.forEach(({message:e,locations:t,path:r})=>console.log(`[GraphQL error]: Message: ${e}, Location: ${t}, Path: ${r}`)),r){let t=`${n.operationName||"anonymous"} -> ${e}: ${(e=>{let t=[e?.name??"Error"];"number"==typeof e?.statusCode&&t.push(`HTTP ${e.statusCode}`),e?.message&&t.push(e.message);let r=[],n=e?.cause;for(let e=0;n&&e<4;e++)r.push(n.code??n.message??n.name??String(n)),n=n.cause;return r.length&&t.push(`cause=${r.join(" <- ")}`),t.join(" ")})(r)}`;console.error(`[Network error]: ${t}`)}}),e1="https://sports.khelnow.com/graphql",e2="https://api.khelnow.com/graphql",e8=new f.HttpLink({uri:e1}),e9=new f.HttpLink({uri:e2}),e3=(0,a.default)({uri:e2}),e6=(n=async(e,{headers:t})=>{let r=window?.localStorage.getItem("authToken"),n=window?.localStorage.getItem("refreshToken");n&&r&&(await (0,eG.CheckExpired)(r,n),r=window?.localStorage.getItem("authToken"));let i=window?.localStorage.getItem("kn_anon_id");return i||(i="u">typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"kn_"+Math.random().toString(36).substring(2,12)+Date.now().toString(36),window?.localStorage.setItem("kn_anon_id",i)),{headers:{...t,authorization:r?`Bearer ${r}`:"not-token",...i?{"x-visitor-id":i}:{}}}},new u.ApolloLink(function(e,t){var r=(0,o.__rest)(e,[]);return new w.Observable(function(i){var a,o=!1;return Promise.resolve(r).then(function(t){return n(t,e.getContext())}).then(e.setContext).then(function(){o||(a=t(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})),e4=new g({link:u.ApolloLink.from([e0(e1),eZ(e1),eY,e8]),cache:e$,defaultOptions:eH}),e5=new g({link:u.ApolloLink.from([e0(e2),eZ(e2),eY,e9]),cache:e$,defaultOptions:eH}),e7=new g({link:u.ApolloLink.from([e0(e2),e6,eZ(e2),eY,e9]),cache:e$,defaultOptions:eH}),te=new g({link:u.ApolloLink.from([e0(e2),e6,e3]),cache:e$,defaultOptions:eH});e.s(["mainAuthClient",0,e7,"mainClient",0,e5,"mainUploadClient",0,te,"sportsClient",0,e4],35384)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.