(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["8381"],{28543:function(e,t,r){"use strict";r.d(t,{ZT:()=>i,pi:()=>o});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rs});var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=new Map;function s(e,t){try{return function e(t,r){if(t===r)return!0;var n=i.call(t);if(n!==i.call(r))return!1;switch(n){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":if(u(t,r))return!0;var a=Object.keys(t),s=Object.keys(r),c=a.length;if(c!==s.length)break;for(var l=0;lei});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n,i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;rthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var 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}(),E=new m,k=[],O=[];function w(e,t){if(!e)throw Error(t||"assertion failure")}function S(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var x=function(){function e(t,r){this.fn=t,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(w(!this.recomputing,"already recomputing"),!(!function(e){var t=E.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),_(e)?D(t,e):R(t,e),t}(this)&&F(this))){var e,t,r;return _(this)?(e=this,t=C(e),E.withValue(e,T,[e]),function(e){if("function"==typeof e.subscribe)try{j(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&((r=e).dirty=!1,_(r)||N(r)),t.forEach(F),S(e.value)):S(this.value)}},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,I(this),j(this))},e.prototype.dispose=function(){var e=this;C(this).forEach(F),j(this),this.parents.forEach(function(t){t.setDirty(),Q(t,e)})},e.count=0,e}();function T(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function _(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function I(e){e.parents.forEach(function(t){return D(t,e)})}function N(e){e.parents.forEach(function(t){return R(t,e)})}function D(e,t){if(w(e.childValues.has(t)),w(_(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=O.pop()||new Set;e.dirtyChildren.add(t),I(e)}function R(e,t){w(e.childValues.has(t)),w(!_(t));var r,n,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(r=t.value,(!((n=i.length)>0)||n!==r.length||i[n-1]!==r[n-1])&&e.setDirty()),A(e,t),!_(e)&&N(e)}function A(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(O.length<100&&O.push(r),e.dirtyChildren=null))}function F(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function C(e){var t=k;return e.childValues.size>0&&(t=[],e.childValues.forEach(function(r,n){Q(e,n),t.push(n)})),w(null===e.dirtyChildren),t}function Q(e,t){t.parents.delete(e),e.childValues.delete(t),A(e,t)}function j(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var P=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach(function(e){("UNION"===e.kind||"INTERFACE"===e.kind)&&(t[e.name]=e.possibleTypes.map(function(e){return e.name}))}),t}}();var K=Object.prototype.hasOwnProperty,Y=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=V(function(e){return t.data[e]},{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){K.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach(function(r){t.set(r,e[r])}),Object.keys(this.data).forEach(function(r){K.call(e,r)||t.delete(r)})):Object.keys(this.data).forEach(function(e){t.delete(e)})},e}(),J=function(){function e(e){var t=this,r=void 0===e?{}:e,n=r.cacheKeyRoot,i=void 0===n?new P(s.mr):n,o=r.freezeResults,a=this.executeStoreQuery,u=this.executeSelectionSet,c=this.executeSubSelectedArray;this.freezeResults=void 0!==o&&o,this.executeStoreQuery=V(function(e){return a.call(t,e)},{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(n.store instanceof Y)return i.lookup(n.store,t,a,JSON.stringify(o),r.id)}}),this.executeSelectionSet=V(function(e){return u.call(t,e)},{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof Y)return i.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=V(function(e){return c.call(t,e)},{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof Y)return i.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(a(a({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,i=e.previousResult,o=e.returnPartialData,a=e.rootId,u=e.fragmentMatcherFunction,c=e.config,l=(0,s.iW)(r);n=(0,s.f0)({},(0,s.O4)(l),n);var p={store:t,dataIdFromObject:c&&c.dataIdFromObject,cacheRedirects:c&&c.cacheRedirects||{}},h=this.executeStoreQuery({query:r,rootValue:{type:"id",id:void 0===a?"ROOT_QUERY":a,generated:!0,typename:"Query"},contextValue:p,variableValues:n,fragmentMatcher:u}),d=h.missing&&h.missing.length>0;return d&&!(void 0===o||o)&&h.missing.forEach(function(e){if(!e.tolerable)throw new B.ej(8)}),i&&(0,f.D)(i,h.result)&&(h.result=i),{result:h.result,complete:!d}},e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,a=(0,s.p$)(t),u=(0,s.kU)(t),c=(0,s.F)(u);return this.executeSelectionSet({selectionSet:a.selectionSet,rootValue:r,execContext:{query:t,fragmentMap:c,contextValue:n,variableValues:i,fragmentMatcher:void 0===o?W:o}})},e.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,n=e.rootValue,i=e.execContext,o=i.fragmentMap,u=i.contextValue,c=i.variableValues,l={result:null},f=[],p=u.store.get(n.id),h=p&&p.__typename||"ROOT_QUERY"===n.id&&"Query"||void 0;function d(e){var t;return e.missing&&(l.missing=l.missing||[],(t=l.missing).push.apply(t,e.missing)),e.result}return r.selections.forEach(function(e){var r;if((0,s.LZ)(e,c)){if((0,s.My)(e)){var l=d(t.executeField(p,h,e,i));void 0!==l&&f.push(((r={})[(0,s.u2)(e)]=l,r))}else{var v=void 0;if((0,s.Ao)(e))v=e;else if(!(v=o[e.name.value]))throw new B.ej(9);var y=v.typeCondition&&v.typeCondition.name.value,m=!y||i.fragmentMatcher(n,y,u);if(m){var b=t.executeSelectionSet({selectionSet:v.selectionSet,rootValue:n,execContext:i});"heuristic"===m&&b.missing&&(b=a(a({},b),{missing:b.missing.map(function(e){return a(a({},e),{tolerable:!0})})})),f.push(d(b))}}}}),l.result=(0,s.bw)(f),this.freezeResults,l},e.prototype.executeField=function(e,t,r,n){var i=n.variableValues,o=n.contextValue,a=function(e,t,r,n,i,o){o.resultKey;var a=o.directives,u=r;(n||a)&&(u=(0,s.PT)(u,n,a));var c=void 0;if(e&&void 0===(c=e[u])&&i.cacheRedirects&&"string"==typeof t){var l=i.cacheRedirects[t];if(l){var f=l[r];f&&(c=f(e,n,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&(0,s.aX)({id:t,typename:e.__typename})}}))}}return void 0===c?{result:c,missing:[{object:e,fieldName:u,tolerable:!1}]}:((0,s.v4)(c)&&(c=c.json),{result:c})}(e,t,r.name.value,(0,s.NC)(r,i),o,{resultKey:(0,s.u2)(r),directives:(0,s.Qy)(r,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:r,array:a.result,execContext:n})):r.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:a.result,execContext:n})):(z(r,a.result),this.freezeResults,a)},e.prototype.combineExecResults=function(){for(var e,t=[],r=0;r=0)return!0;r[e].push(t)}else r[e]=[t];return!1}var et={fragmentMatcher:new G,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1},er=Object.prototype.hasOwnProperty,en=function(e){function t(t,r,n){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=r,i.transaction=n,i}return o(t,e),t.prototype.toObject=function(){return a(a({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return er.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(H),ei=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new P(s.mr),r.silenceBroadcast=!1,r.config=a(a({},et),t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new Y:new H,r.optimisticData=r.data,r.storeWriter=new Z,r.storeReader=new J({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var n=r.maybeBroadcastWatch;return r.maybeBroadcastWatch=V(function(e){return n.call(r,e)},{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult&&r.data instanceof Y)return r.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables))}}),r}return o(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new B.ej(1)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],r=0,n=this.optimisticData;n instanceof en;)n.optimisticId===e?++r:t.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new en(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,s.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach(function(t){return e.maybeBroadcastWatch(t)})},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(l)},78536:function(e,t,r){"use strict";r.d(t,{Ie:()=>a,cA:()=>es,fe:()=>eg});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n,i,o,a,s,u=function(e,t){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function c(e,t){function r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var l=function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1})}function k(e){var t=e.name.value;return"skip"===t||"include"===t}function O(e){for(var t=[],r=1;r1){var n=[];t=B(t,n);for(var i=1;it.indexOf(e)&&(e=Array.isArray(e)?e.slice(0):l({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({});var U=r(49329),G=r.n(U)(),K=function(e,t){return(K=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},Y=function(){return(Y=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(i))throw new d.ej(2)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?(0,J.rY)(n.query):""),o=n,a=Y({},i),Object.defineProperty(o,"setContext",{enumerable:!1,value:function(e){a="function"==typeof e?Y({},a,e(a)):Y({},a,e)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return Y({},a)}}),Object.defineProperty(o,"toKey",{enumerable:!1,value:function(){var e,t,r;return t=(e=o).query,r=e.variables,JSON.stringify([e.operationName,t,r])}}),o))||G.of()}var en=r(16235);(i=a||(a={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error";var ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype[en.Z]=function(){return this},t.prototype["@@observable"]=function(){return this},t}(G);function eo(e){return Array.isArray(e)&&e.length>0}var ea=function(e){var t="";return eo(e.graphQLErrors)&&e.graphQLErrors.forEach(function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"}),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")},es=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,o?s.message=o:s.message=ea(s),s.extraInfo=a,s.__proto__=t.prototype,s}return c(t,e),t}(Error);(o=s||(s={}))[o.normal=1]="normal",o[o.refetch=2]="refetch",o[o.poll=3]="poll";var eu=function(e){function t(t){var r=t.queryManager,n=t.options,i=t.shouldSubscribe,o=e.call(this,function(e){return o.onSubscribe(e)})||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=n,o.variables=n.variables||{},o.queryId=r.generateQueryId(),o.shouldSubscribe=void 0===i||i;var a=S(n.query);return o.queryName=a&&a.name&&a.name.value,o.queryManager=r,o}return c(t,e),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e,t=this.lastResult;return{data:!this.lastError&&t&&t.data||void 0,error:this.lastError,loading:!1,networkStatus:a.error}}var r=this.queryManager.getCurrentQueryResult(this),n=r.data,i=r.partial,o=this.queryManager.queryStore.get(this.queryId),s=this.options.fetchPolicy;if(o){var u,c=o.networkStatus;if(void 0===(u=this.options.errorPolicy)&&(u="none"),o&&(o.networkError||"none"===u&&eo(o.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:c,error:new es({graphQLErrors:o.graphQLErrors,networkError:o.networkError})};o.variables&&(this.options.variables=l(l({},this.options.variables),o.variables),this.variables=this.options.variables),e={data:n,loading:c<7,networkStatus:c},o.graphQLErrors&&"all"===this.options.errorPolicy&&(e.errors=o.graphQLErrors)}else{var f="network-only"===s||"no-cache"===s||i&&"cache-only"!==s;e={data:n,loading:f,networkStatus:f?a.loading:a.ready}}return i||this.updateLastResult(l(l({},e),{stale:!1})),l(l({},e),{partial:i})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&(0,v.D)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new d.ej(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),(0,v.D)(this.variables,e)||(this.variables=l(l({},this.variables),e)),(0,v.D)(this.options.variables,this.variables)||(this.options.variables=l(l({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,l(l({},this.options),{fetchPolicy:t}),s.refetch))},t.prototype.fetchMore=function(e){var t=this;(0,d.kG)(e.updateQuery,2);var r=l(l({},e.query?e:l(l(l({},this.options),e),{variables:l(l({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,s.normal,this.queryId).then(function(i){return t.updateQuery(function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:r.variables})}),t.queryManager.stopQuery(n),i},function(e){throw t.queryManager.stopQuery(n),e})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=l(l({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&("cache-only"===t||"standby"===t||"network-only"===r),e.fetchResults)},t.prototype.setVariables=function(e,t,r){return(void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1,e=e||this.variables,!t&&(0,v.D)(e,this.variables))?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size)?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,o=r.document,a=j(function(){return e(n,{variables:i})});a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){ef(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:function e(t,r){switch(Q.call(t)){case"[object Array]":if(r.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.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,new Map),t},t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=ec)}catch(e){}var n=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),n&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,r=this.queryId;this.shouldSubscribe&&t.addObservableQuery(r,this),this.options.pollInterval&&(ef(this),t.startPollingQuery(this.options,r));var n=function(t){e.updateLastResult(l(l({},e.lastResult),{errors:t.graphQLErrors,networkStatus:a.error,loading:!1})),el(e.observers,"error",e.lastError=t)};t.observeQuery(r,this.options,{next:function(r){if(e.lastError||e.isDifferentFromLastResult(r)){var n=e.updateLastResult(r),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then(function(i){var a=e.variables;e.variables=e.options.variables=i,!r.loading&&n&&"cache-only"!==s&&t.transform(o).serverQuery&&!(0,v.D)(a,i)?e.refetch():el(e.observers,"next",r)}):el(e.observers,"next",r)}},error:n}).catch(n)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(ei);function ec(e){}function el(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function ef(e){var t=e.options.fetchPolicy;(0,d.kG)("cache-first"!==t&&"cache-only"!==t,3)}var ep=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),eh=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t,r=this.store[e.queryId];(0,d.kG)(!r||r.document===e.document||(0,v.D)(r.document,e.document),19);var n=!1,i=null;e.storePreviousVariables&&r&&r.networkStatus!==a.loading&&!(0,v.D)(r.variables,e.variables)&&(n=!0,i=r.variables),t=n?a.setVariables:e.isPoll?a.poll:e.isRefetch?a.refetch:a.loading;var o=[];r&&r.graphQLErrors&&(o=r.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:t,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=a.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=eo(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=a.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=a.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=a.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=a.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach(function(r){0>e.indexOf(r)?t.stopQuery(r):t.store[r].networkStatus=a.loading})},e}(),ed=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;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=M(t.resolvers,e)}):this.resolvers=M(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){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return f(this,void 0,void 0,function(){return p(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then(function(e){return l(l({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return E(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){var t;return this.resolvers?(w(e),(t=A([{test:function(e){return"client"===e.name.value},remove:!0}],e))&&(t=(0,h.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return b(e)&&"__typename"===e.name.value}))return null}}})),t):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return l(l({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);(0,d.kG)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),f(this,void 0,void 0,function(){return p(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return l(l({},t),e.exportedVariables)})]:[2,l({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,h.Vn)(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 h.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===_(e).operation?e:(0,h.Vn)(e,{OperationDefinition:{enter:function(e){return l(l({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,i,o){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),f(this,void 0,void 0,function(){var a,s,u,c,f,h,d,v;return p(this,function(p){return a=_(e),s=I(T(e)),c=(u=a.operation)?u.charAt(0).toUpperCase()+u.slice(1):"Query",f=this,h=f.cache,d=f.client,v={fragmentMap:s,context:l(l({},r),{cache:h,client:d}),variables:n,fragmentMatcher:i,defaultOperationType:c,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r){return f(this,void 0,void 0,function(){var n,i,o,a,s,u=this;return p(this,function(c){return n=r.fragmentMap,i=r.context,o=r.variables,a=[t],s=function(e){return f(u,void 0,void 0,function(){var s,u;return p(this,function(c){var l,f;return(void 0===(l=o)&&(l={}),((f=e.directives)?f.filter(k).map(function(e){var t=e.arguments;e.name.value,(0,d.kG)(t&&1===t.length,14);var r=t[0];(0,d.kG)(r.name&&"if"===r.name.value,15);var n=r.value;return(0,d.kG)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}}):[]).every(function(e){var t=e.directive,r=e.ifArgument,n=!1;return"Variable"===r.value.kind?(n=l[r.value.name.value],(0,d.kG)(void 0!==n,13)):n=r.value.value,"skip"===t.name.value?!n:n}))?b(e)?[2,this.resolveField(e,t,r).then(function(t){var r;void 0!==t&&a.push(((r={})[m(e)]=t,r))})]:(g(e)?s=e:(s=n[e.name.value],(0,d.kG)(s,7)),s&&s.typeCondition&&(u=s.typeCondition.name.value,r.fragmentMatcher(t,u,i)))?[2,this.resolveSelectionSet(s.selectionSet,t,r).then(function(e){a.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(s)).then(function(){return L(a)})]})})},e.prototype.resolveField=function(e,t,r){return f(this,void 0,void 0,function(){var n,i,o,a,s,u,c,l,f,h=this;return p(this,function(p){return n=r.variables,a=(i=e.name.value)!==(o=m(e)),u=Promise.resolve(s=t[o]||t[i]),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(c=t.__typename||r.defaultOperationType,(l=this.resolvers&&this.resolvers[c])&&(f=l[a?i:o])&&(u=Promise.resolve(f(t,function(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return y(r,e.name,e.value,t)}),r}return null}(e,n),r.context,{field:e,fragmentMap:r.fragmentMap})))),[2,u.then(function(t){return(void 0===t&&(t=s),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&&(r.exportedVariables[e.value.value]=t)})}),e.selectionSet&&null!=t)?Array.isArray(t)?h.resolveSubSelectedArray(e,t,r):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,r):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0}))},e}();function ev(e){var t=new Set,r=null;return new ei(function(n){return t.add(n),r=r||e.subscribe({next:function(e){t.forEach(function(t){return t.next&&t.next(e)})},error:function(e){t.forEach(function(t){return t.error&&t.error(e)})},complete:function(){t.forEach(function(e){return e.complete&&e.complete()})}}),function(){t.delete(n)&&!t.size&&r&&(r.unsubscribe(),r=null)}})}var ey=Object.prototype.hasOwnProperty,em=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=e.store,i=e.onBroadcast,o=e.ssrMode,a=e.clientAwareness,s=e.localState,u=e.assumeImmutableResults;this.mutationStore=new ep,this.queryStore=new eh,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(C?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=void 0!==r&&r,this.dataStore=n,this.onBroadcast=void 0===i?function(){}:i,this.clientAwareness=void 0===a?{}:a,this.localState=s||new ed({cache:n.getCache()}),this.ssrMode=void 0!==o&&o,this.assumeImmutableResults=!!u}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.fetchQueryRejectFns.forEach(function(e){e(new d.ej(8))})},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,u=void 0!==s&&s,c=e.update,h=e.errorPolicy,v=void 0===h?"none":h,y=e.fetchPolicy,m=e.context,b=void 0===m?{}:m;return f(this,void 0,void 0,function(){var e,o,s,f=this;return p(this,function(p){switch(p.label){case 0:if((0,d.kG)(t,9),(0,d.kG)(!y||"no-cache"===y,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,function(){return{document:t}}),r=this.getVariables(t,r),!this.transform(t).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(t,r,b)];case 1:r=p.sent(),p.label=2;case 2:return o=function(){var e={};return i&&f.queries.forEach(function(t,r){var n=t.observableQuery;if(n){var o=n.queryName;o&&ey.call(i,o)&&(e[r]={updater:i[o],query:f.queryStore.get(r)})}}),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:o(),update:c,optimisticResponse:n}),this.broadcastQueries(),s=this,[2,new Promise(function(i,f){var p,h;s.getObservableFromLink(t,l(l({},b),{optimisticResponse:n}),r,!1).subscribe({next:function(n){if(P(n)&&"none"===v){h=new es({graphQLErrors:n.errors});return}s.mutationStore.markMutationResult(e),"no-cache"!==y&&s.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:o(),update:c}),p=n},error:function(t){s.mutationStore.markMutationError(e,t),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),s.setQuery(e,function(){return{document:null}}),f(new es({networkError:t}))},complete:function(){if(h&&s.mutationStore.markMutationError(e,h),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),h){f(h);return}"function"==typeof a&&(a=a(p));var t=[];eo(a)&&a.forEach(function(e){if("string"==typeof e)s.queries.forEach(function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())});else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(s.query(r))}}),Promise.all(u?t:[]).then(function(){s.setQuery(e,function(){return{document:null}}),"ignore"===v&&p&&P(p)&&delete p.errors,i(p)})}})})]}})})},e.prototype.fetchQuery=function(e,t,r,n){return f(this,void 0,void 0,function(){var i,o,a,u,c,f,h,d,v,y,m,b,g,k,O,w,S,x,T=this;return p(this,function(p){switch(p.label){case 0:if(o=void 0===(i=t.metadata)?null:i,u=void 0===(a=t.fetchPolicy)?"cache-first":a,f=void 0===(c=t.context)?{}:c,h=this.transform(t.query).document,d=this.getVariables(h,t.variables),!this.transform(h).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(h,d,f)];case 1:d=p.sent(),p.label=2;case 2:if(t=l(l({},t),{variables:d}),m=y="network-only"===u||"no-cache"===u,y||(g=(b=this.dataStore.getCache().diff({query:h,variables:d,returnPartialData:!0,optimistic:!1})).complete,k=b.result,m=!g||"cache-and-network"===u,v=k),O=m&&"cache-only"!==u&&"standby"!==u,E(["live"],h)&&(O=!0),w=this.idCounter++,S="no-cache"!==u?this.updateQueryWatch(e,h,t):void 0,this.setQuery(e,function(){return{document:h,lastRequestId:w,invalidated:!0,cancel:S}}),this.invalidate(n),this.queryStore.initQuery({queryId:e,document:h,storePreviousVariables:O,variables:d,isPoll:r===s.poll,isRefetch:r===s.refetch,metadata:o,fetchMoreForQueryId:n}),this.broadcastQueries(),O){if(x=this.fetchRequest({requestId:w,queryId:e,document:h,options:t,fetchMoreForQueryId:n}).catch(function(t){if(t.hasOwnProperty("graphQLErrors"))throw t;throw w>=T.getQuery(e).lastRequestId&&(T.queryStore.markQueryError(e,t,n),T.invalidate(e),T.invalidate(n),T.broadcastQueries()),new es({networkError:t})}),"cache-and-network"!==u)return[2,x];x.catch(function(){})}if(this.queryStore.markQueryResultClient(e,!O),this.invalidate(e),this.invalidate(n),this.transform(h).hasForcedResolvers)return[2,this.localState.runResolvers({document:h,remoteResult:{data:v},context:f,variables:d,onlyRunForcedResolvers:!0}).then(function(r){return T.markQueryResult(e,r,t,n),T.broadcastQueries(),r})];return this.broadcastQueries(),[2,{data:v}]}})})},e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(e,function(){return{newData:{result:t.data,complete:!0}}}):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,n,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,r){var n=this;function i(e,t){if(r[e])try{r[e](t)}catch(e){}}return function(r,o){if(n.invalidate(e,!1),r){var a=n.getQuery(e),s=a.observableQuery,u=a.document,c=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==c){var l=r.networkStatus<7,f=s&&s.getLastResult(),p=!!(f&&f.networkStatus!==r.networkStatus),h=t.returnPartialData||!o&&r.previousVariables||p&&t.notifyOnNetworkStatusChange||"cache-only"===c||"cache-and-network"===c;if(l&&!h)return;var d=eo(r.graphQLErrors),v=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===v&&d||r.networkError)return i("error",new es({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var y=void 0,m=void 0;if(o)"no-cache"!==c&&"network-only"!==c&&n.setQuery(e,function(){return{newData:null}}),y=o.result,m=!o.complete;else{var b=s&&s.getLastError(),g="none"!==v&&(b&&b.graphQLErrors)!==r.graphQLErrors;if(f&&f.data&&!g)y=f.data,m=!1;else{var E=n.dataStore.getCache().diff({query:u,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});y=E.result,m=!E.complete}}var k=m&&!(t.returnPartialData||"cache-only"===c),O={data:k?f&&f.data:y,loading:l,networkStatus:r.networkStatus,stale:k};"all"===v&&d&&(O.errors=r.graphQLErrors),i("next",O)}catch(e){i("error",new es({networkError:e}))}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),n=r.transformDocument(e),i=A([F],w(r.transformForLink(n))),o=this.localState.clientQuery(n),a=this.localState.serverQuery(i),s={document:n,hasClientExports:n&&E(["client"],n)&&E(["export"],n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:function(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter(function(e){return e.defaultValue}).map(function(e){var t=e.variable,r=e.defaultValue,n={};return y(n,t.name,r),n});return O.apply(void 0,function(){for(var e=0,t=0,r=arguments.length;t=n.getQuery(o).lastRequestId&&(n.markQueryResult(o,e,u,c),n.queryStore.markQueryResult(o,e,c),n.invalidate(o),n.invalidate(c),n.broadcastQueries()),"none"===p&&eo(e.errors))return f(new es({graphQLErrors:e.errors}));if("all"===p&&(r=e.errors),c||"no-cache"===h)t=e.data;else{var a=n.dataStore.getCache().diff({variables:l,query:s,optimistic:!1,returnPartialData:!0}),d=a.result;(a.complete||u.returnPartialData)&&(t=d)}}).subscribe({error:function(e){y(),f(e)},complete:function(){y(),e({data:t,errors:r,loading:!1,networkStatus:a.ready,stale:!1})}});n.setQuery(o,function(e){e.subscriptions.add(m)})})},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=l(l({},r),t(r));this.queries.set(e,n)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,function(){return{invalidated:t}})},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return l(l({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==a.ready&&t.networkStatus!==a.error},e.prototype.startPollingQuery=function(e,t,r){var n=this,i=e.pollInterval;if((0,d.kG)(i,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);o||this.pollingInfoByQueryId.set(t,o={}),o.interval=i,o.options=l(l({},e),{fetchPolicy:"network-only"});var a=function(){var e=n.pollingInfoByQueryId.get(t);e&&(n.checkInFlight(t)?u():n.fetchQuery(t,e.options,s.poll).then(u,u))},u=function(){var e=n.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(a,e.interval))};r&&this.addQueryListener(t,r),u()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),eb=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,i){void 0===i&&(i=!1);var o=!P(e);i&&P(e)&&e.data&&(o=!0),!n&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){P(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t,r=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction(function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{r.cache=i}},e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!P(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.updateQueries;n&&Object.keys(n).forEach(function(i){var o=n[i],a=o.query,s=o.updater,u=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),c=u.result;if(u.complete){var l=j(function(){return s(c,{mutationResult:e.result,queryName:x(a.document)||void 0,queryVariables:a.variables})});l&&r.push({result:l,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}}),this.cache.performTransaction(function(t){r.forEach(function(e){return t.write(e)});var n=e.update;n&&j(function(){return n(t,e.result)})})}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),eg=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,i=void 0!==n&&n,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,u=e.queryDeduplication,c=void 0===u||u,l=e.defaultOptions,f=e.assumeImmutableResults,p=e.resolvers,h=e.typeDefs,v=e.fragmentMatcher,y=e.name,m=e.version,b=e.link;if(!b&&p&&(b=et.empty()),!b||!r)throw new d.ej(4);this.link=b,this.cache=r,this.store=new eb(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=c,this.defaultOptions=l||{},this.typeDefs=h,a&&setTimeout(function(){return t.disableNetworkFetches=!1},a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),void 0!==s&&s&&"undefined"!=typeof window&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new ed({cache:r,client:this,resolvers:p,fragmentMatcher:v}),this.queryManager=new em({link:this.link,store:this.store,queryDeduplication:c,ssrMode:i,clientAwareness:{name:y,version:m},localState:this.localState,assumeImmutableResults:void 0!==f&&f,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=l(l({},this.defaultOptions.watchQuery),e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=l(l({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=l(l({},this.defaultOptions.query),e)),(0,d.kG)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=l(l({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=l(l({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.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 this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return er(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).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()}).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.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}()},67828:function(e,t,r){"use strict";r.d(t,{u:()=>L});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n,i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(i))throw new c.ej(2)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?(0,l.rY)(n.query):""),o=n,s=a({},i),Object.defineProperty(o,"setContext",{enumerable:!1,value:function(e){s="function"==typeof e?a({},s,e(s)):a({},s,e)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return a({},s)}}),Object.defineProperty(o,"toKey",{enumerable:!1,value:function(){var e,t,r;return t=(e=o).query,r=e.variables,JSON.stringify([e.operationName,t,r])}}),o))||u.of()}var k=function(){return(k=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(e,["uri","fetch","includeExtensions","useGETForQueries"]);C(n),n||(n=fetch);var c={http:{includeExtensions:i},options:s.fetchOptions,credentials:s.credentials,headers:s.headers};return new g(function(e){var t,i=q(e,r),s=e.getContext(),l={};if(s.clientAwareness){var f=s.clientAwareness,h=f.name,d=f.version;h&&(l["apollographql-client-name"]=h),d&&(l["apollographql-client-version"]=d)}var v=a({},l,s.headers),y=j(e,A,c,{http:s.http,options:s.fetchOptions,credentials:s.credentials,headers:v}),m=y.options,b=y.body;if(!m.signal){var g=Q(),E=g.controller,k=g.signal;(t=E)&&(m.signal=k)}if(o&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(m.method="GET"),"GET"===m.method){var O=function(e,t){var r=[],n=function(e,t){r.push(e+"="+encodeURIComponent(t))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=P(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=P(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}(i,b),w=O.newURI,S=O.parseError;if(S)return p(S);i=w}else try{m.body=P(b,"Payload")}catch(e){return p(e)}return new u(function(r){return n(i,m).then(function(t){return e.setContext({response:t}),t}).then(function(t){return t.text().then(function(e){try{return JSON.parse(e)}catch(r){return r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=e,Promise.reject(r)}}).then(function(r){return t.status>=300&&F(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||F(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName)+"'."),r})}).then(function(e){return r.next(e),r.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))}),function(){t&&t.abort()}})})},L=function(e){function t(t){return e.call(this,M(t).request)||this}return o(t,e),t}(g)},10666:function(e,t,r){"use strict";r.d(t,{bw:()=>V,cQ:()=>b,kU:()=>N,v4:()=>E,NC:()=>d,Ao:()=>m,Y8:()=>M,O4:()=>F,iW:()=>D,LZ:()=>O,$H:()=>_,Qy:()=>k,f0:()=>x,yv:()=>q,u2:()=>v,mr:()=>j,F:()=>A,Gw:()=>Q,rY:()=>I,PT:()=>h,My:()=>y,vf:()=>f,Yk:()=>S,aX:()=>g,p$:()=>R});var n=r(56089),i=r(64288),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),r.connection.key+"("+JSON.stringify(i)+")"}var o=e;if(t){var a=u()(t);o+="("+a+")"}return r&&Object.keys(r).forEach(function(e){-1===p.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@"+e+"("+JSON.stringify(r[e])+")":o+="@"+e)}),o}function d(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return l(r,e.name,e.value,t)}),r}return null}function v(e){return e.alias?e.alias.value:e.name.value}function y(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}function b(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function g(e,t){return void 0===t&&(t=!1),o({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function E(e){return null!=e&&"object"==typeof e&&"json"===e.type}function k(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach(function(e){r[e.name.value]=d(e,t)}),r}return null}function O(e,t){var r;return void 0===t&&(t={}),((r=e.directives)?r.filter(w).map(function(e){var t=e.arguments;e.name.value,(0,i.kG)(t&&1===t.length,2);var r=t[0];(0,i.kG)(r.name&&"if"===r.name.value,3);var n=r.value;return(0,i.kG)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),4),{directive:e,ifArgument:r}}):[]).every(function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t[n.value.name.value],(0,i.kG)(void 0!==o,1)):o=n.value.value,"skip"===r.name.value?!o:o})}function w(e){var t=e.name.value;return"skip"===t||"include"===t}function S(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new i.ej(5);"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,i.kG)(1===n.length,6),r=n[0].name.value),o(o({},e),{definitions:a([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function x(e){for(var t=[],r=1;r1){var n=[];t=U(t,n);for(var i=1;it.indexOf(e)&&(e=Array.isArray(e)?e.slice(0):o({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({})},54098:function(e,t){var r=function(e){function t(){this.fetch=!1,this.DOMException=e.DOMException}return t.prototype=e,new t}("undefined"!=typeof self?self:this);(function(e){var t={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function l(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function f(e){var t=new FileReader,r=l(t);return t.readAsArrayBuffer(e),r}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e,t,r,n=c(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=l(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function m(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},h.call(v.prototype),h.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];m.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function g(r,n){return new Promise(function(i,o){var a=new v(r,n);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL"),i(new m("response"in s?s.response:s.responseText,r))},s.onerror=function(){o(TypeError("Network request failed"))},s.ontimeout=function(){o(TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}g.polyfill=!0,r.fetch||(r.fetch=g,r.Headers=u,r.Request=v,r.Response=m),e.Headers=u,e.Request=v,e.Response=m,e.fetch=g})({}),delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},35035:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){return r({key:t,value:e[t]},{key:n,value:e[n]})}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t)){for(r=0,a="[";ri});class n{static getDescendantProperty(e,t,r=[]){let i,o,a,s,u,c;if(t){if(-1===(a=t.indexOf("."))?i=t:(i=t.slice(0,a),o=t.slice(a+1)),null!=(s=e[i])){if(o||"string"!=typeof s&&"number"!=typeof s){if("[object Array]"===Object.prototype.toString.call(s))for(u=0,c=s.length;ue.score-t.score),t.map(e=>e.item)}static isMatch(e,t,r){e=String(e),t=String(t),r||(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase());let n=i.nearestIndexesFor(e,t);return!!n&&(e===t?1:n.length>1?2+(n[n.length-1]-n[0]):2+n[0])}static nearestIndexesFor(e,t){let r=t.split(""),n=[];return i.indexesOfFirstLetter(e,t).forEach((t,i)=>{let o=t+1;n[i]=[t];for(let t=1;t!1!==e)).length&&n.sort((e,t)=>1===e.length?e[0]-t[0]:(e=e[e.length-1]-e[0])-(t=t[t.length-1]-t[0]))[0]}static indexesOfFirstLetter(e,t){let r=t[0];return e.split("").map((e,t)=>e===r&&t).filter(e=>!1!==e)}}},44119:function(e,t,r){var n=r(44781).parse;function i(e){return e.replace(/[\s,]+/g," ").trim()}var o={},a={},s=!0,u=!1;function c(){for(var e=Array.prototype.slice.call(arguments),t=e[0],r="string"==typeof t?t:t[0],c=1;ca}),e=r.hmd(e);let a=("function"==typeof(i=(o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e).Symbol)?i.observable?n=i.observable:(n=i("observable"),i.observable=n):n="@@observable",n)},64288:function(e,t,r){"use strict";r.d(t,{kG:()=>l,ej:()=>c});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n,i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},o=r(34155),a="Invariant Violation",s=Object.setPrototypeOf,u=void 0===s?function(e,t){return e.__proto__=t,e}:s,c=function(e){function t(r){void 0===r&&(r=a);var n=e.call(this,"number"==typeof r?a+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=a,u(n,t.prototype),n}return!function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error);function l(e,t){if(!e)throw new c(t)}function f(e){return function(){return console[e].apply(console,arguments)}}(n=l||(l={})).warn=f("warn"),n.error=f("error");var p={env:{}};if("object"==typeof o)p=o;else try{Function("stub","process = stub")(p)}catch(e){}},49329:function(e,t,r){e.exports=r(60516).Observable},60516:function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})}},{key:c,value:function(){return this}}],[{key:"from",value:function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var n=f(t,c);if(n){var i=n.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof k&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(a("iterator")&&(n=f(t,u)))return new r(function(e){d(function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(e.next(u),e.closed)return}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}})});if(Array.isArray(t))return new r(function(e){d(function(){if(!e.closed){for(var r=0;ro});var n=r(68423);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return function e(t,r){switch(i(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":if(null===t)return"null";return function(t,r){if(-1!==r.indexOf(t))return"[Circular]";var i,o,a,s,u,c=[].concat(r,[t]),l="function"==typeof(o=(i=t)[String(n.Z)])?o:"function"==typeof i.inspect?i.inspect:void 0;if(void 0!==l){var f=l.call(t);if(f!==t)return"string"==typeof f?f:e(f,c)}else if(Array.isArray(t))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";for(var n=Math.min(10,t.length),i=t.length-n,o=[],a=0;a1&&o.push("... ".concat(i," more items")),"["+o.join(", ")+"]"}(t,c);return a=t,s=c,0===(u=Object.keys(a)).length?"{}":s.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(a)+"]":"{ "+u.map(function(t){var r=e(a[t],s);return t+": "+r}).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}},68423:function(e,t,r){"use strict";r.d(t,{Z:()=>n});let n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},33502:function(e,t,r){"use strict";function n(e){var t=e.split(/\r\n|[\n\r]/g),r=function(e){for(var t=null,r=1;r0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||" "===e[0],o='"'===e[e.length-1],a=!n||o||r,s="";return a&&!(n&&i)&&(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}r.d(t,{LZ:()=>a,W7:()=>n})},44781:function(e,t,r){"use strict";r.r(t),r.d(t,{parse:()=>x,parseValue:()=>T,parseType:()=>_});var n=r(65001);function i(e,t){if(!e)throw Error(t)}var o=r(68423);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,o.Z&&(e.prototype[o.Z]=t)}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index120){for(var d=Math.floor(u/80),v=u%80,y=[],m=0;m0||i(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||i(0,"column in locationOffset is 1-indexed and must be positive")};"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(v.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}});var y=r(33502),m=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function b(){return this.lastToken=this.token,this.token=this.lookahead()}function g(){var e=this.token;if(e.kind!==m.EOF)do e=e.next||(e.next=function(e,t){var r,n=e.source,i=n.body,o=i.length,a=function(e,t,r){for(var n=e.length,i=t;i=o)return new E(m.EOF,o,o,s,u,t);var c=i.charCodeAt(a);switch(c){case 33:return new E(m.BANG,a,a+1,s,u,t);case 35:return function(e,t,r,n,i){var o,a=e.body,s=t;do o=a.charCodeAt(++s);while(!isNaN(o)&&(o>31||9===o));return new E(m.COMMENT,t,s,r,n,i,a.slice(t+1,s))}(n,a,s,u,t);case 36:return new E(m.DOLLAR,a,a+1,s,u,t);case 38:return new E(m.AMP,a,a+1,s,u,t);case 40:return new E(m.PAREN_L,a,a+1,s,u,t);case 41:return new E(m.PAREN_R,a,a+1,s,u,t);case 46:if(46===i.charCodeAt(a+1)&&46===i.charCodeAt(a+2))return new E(m.SPREAD,a,a+3,s,u,t);break;case 58:return new E(m.COLON,a,a+1,s,u,t);case 61:return new E(m.EQUALS,a,a+1,s,u,t);case 64:return new E(m.AT,a,a+1,s,u,t);case 91:return new E(m.BRACKET_L,a,a+1,s,u,t);case 93:return new E(m.BRACKET_R,a,a+1,s,u,t);case 123:return new E(m.BRACE_L,a,a+1,s,u,t);case 124:return new E(m.PIPE,a,a+1,s,u,t);case 125:return new E(m.BRACE_R,a,a+1,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){for(var o=e.body,a=o.length,s=t+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new E(m.NAME,t,s,r,n,i,o.slice(t,s))}(n,a,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,o){var a=e.body,s=r,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw h(e,u,"Invalid number, unexpected digit after 0: ".concat(k(s),"."))}else u=O(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=O(e,u,s),s=a.charCodeAt(u)),(69===s||101===s)&&(c=!0,(43===(s=a.charCodeAt(++u))||45===s)&&(s=a.charCodeAt(++u)),u=O(e,u,s),s=a.charCodeAt(u)),46===s||69===s||101===s)throw h(e,u,"Invalid number, expected digit but got: ".concat(k(s),"."));return new E(c?m.FLOAT:m.INT,t,u,n,i,o,a.slice(t,u))}(n,a,c,s,u,t);case 34:if(34===i.charCodeAt(a+1)&&34===i.charCodeAt(a+2))return function(e,t,r,n,i,o){for(var a=e.body,s=t+3,u=s,c=0,l="";s=48&&o<=57){do o=n.charCodeAt(++i);while(o>=48&&o<=57);return i}throw h(e,i,"Invalid number, expected digit but got: ".concat(k(o),"."))}function w(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}a(E,function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}});var S=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function x(e,t){return new I(e,t).parseDocument()}function T(e,t){var r=new I(e,t);r.expectToken(m.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(m.EOF),n}function _(e,t){var r=new I(e,t);r.expectToken(m.SOF);var n=r.parseTypeReference();return r.expectToken(m.EOF),n}var I=function(){function e(e,t){var r,o="string"==typeof e?new v(e):e;o instanceof v||i(0,"Must provide Source. Received: ".concat((0,n.Z)(o))),this._lexer={source:o,options:void 0,lastToken:r=new E(m.SOF,0,0,0,0,null),token:r,line:1,lineStart:0,advance:b,lookahead:g},this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(m.NAME);return{kind:d.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:d.DOCUMENT,definitions:this.many(m.SOF,this.parseDefinition,m.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(m.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else if(this.peek(m.BRACE_L))return this.parseOperationDefinition();else if(this.peekDescription())return this.parseTypeSystemDefinition();throw this.unexpected()},t.parseOperationDefinition=function(){var e,t=this._lexer.token;if(this.peek(m.BRACE_L))return{kind:d.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var r=this.parseOperationType();return this.peek(m.NAME)&&(e=this.parseName()),{kind:d.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseOperationType=function(){var e=this.expectToken(m.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(m.PAREN_L,this.parseVariableDefinition,m.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:d.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(m.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(m.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(m.DOLLAR),{kind:d.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:d.SELECTION_SET,selections:this.many(m.BRACE_L,this.parseSelection,m.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(m.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(m.COLON)?(e=n,t=this.parseName()):t=n,{kind:d.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(m.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(m.PAREN_L,t,m.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(m.COLON),{kind:d.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:d.ARGUMENT,name:this.parseName(),value:(this.expectToken(m.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(m.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(m.NAME)?{kind:d.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:d.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return(this.expectKeyword("fragment"),this._options.experimentalFragmentVariables)?{kind:d.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:d.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case m.BRACKET_L:return this.parseList(e);case m.BRACE_L:return this.parseObject(e);case m.INT:return this._lexer.advance(),{kind:d.INT,value:t.value,loc:this.loc(t)};case m.FLOAT:return this._lexer.advance(),{kind:d.FLOAT,value:t.value,loc:this.loc(t)};case m.STRING:case m.BLOCK_STRING:return this.parseStringLiteral();case m.NAME:if("true"===t.value||"false"===t.value)return this._lexer.advance(),{kind:d.BOOLEAN,value:"true"===t.value,loc:this.loc(t)};if("null"===t.value)return this._lexer.advance(),{kind:d.NULL,loc:this.loc(t)};return this._lexer.advance(),{kind:d.ENUM,value:t.value,loc:this.loc(t)};case m.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:d.STRING,value:e.value,block:e.kind===m.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:d.LIST,values:this.any(m.BRACKET_L,function(){return t.parseValueLiteral(e)},m.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:d.OBJECT,fields:this.any(m.BRACE_L,function(){return t.parseObjectField(e)},m.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(m.COLON),{kind:d.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(m.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(m.AT),{kind:d.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return(this.expectOptionalToken(m.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(m.BRACKET_R),e={kind:d.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(m.BANG))?{kind:d.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:d.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===m.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(m.STRING)||this.peek(m.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);return{kind:d.SCHEMA_DEFINITION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(m.COLON);var r=this.parseNamedType();return{kind:d.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:d.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:d.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(m.AMP);do e.push(this.parseNamedType());while(this.expectOptionalToken(m.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(m.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(m.BRACE_L)&&this._lexer.lookahead().kind===m.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(m.BRACE_L,this.parseFieldDefinition,m.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(m.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:d.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(m.PAREN_L,this.parseInputValueDef,m.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(m.COLON);var i=this.parseTypeReference();this.expectOptionalToken(m.EQUALS)&&(e=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:d.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:d.INTERFACE_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:d.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(m.EQUALS)){this.expectOptionalToken(m.PIPE);do e.push(this.parseNamedType());while(this.expectOptionalToken(m.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:d.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(m.BRACE_L,this.parseEnumValueDefinition,m.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:d.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:d.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(m.BRACE_L,this.parseInputValueDef,m.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===m.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:d.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:d.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:d.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:d.INTERFACE_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:d.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:d.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:d.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(m.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:d.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(m.PIPE);var e=[];do e.push(this.parseDirectiveLocation());while(this.expectOptionalToken(m.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==S[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new N(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw h(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(D(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind===m.NAME&&t.value===e)this._lexer.advance();else throw h(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(D(t)))},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===m.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return h(this._lexer.source,t.start,"Unexpected ".concat(D(t)))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n},e}();function N(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function D(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}a(N,function(){return{start:this.start,end:this.end}})},56089:function(e,t,r){"use strict";r.d(t,{$_:()=>o,Vn:()=>a});var n=r(65001),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,u=Array.isArray(e),c=[e],l=-1,f=[],p=void 0,h=void 0,d=void 0,v=[],y=[],m=e;do{var b=++l===c.length,g=b&&0!==f.length;if(b){if(h=0===y.length?void 0:v[v.length-1],p=d,d=y.pop(),g){if(u)p=p.slice();else{for(var E={},k=0,O=Object.keys(p);k