PageSourceSearch

https://www.elevationrhythm.com/_next/static/chunks/2932.28eb9336b3384030.js

js elevationrhythm.com collected 2026-10-04 02:59:15 UTC 196,566 bytes, 13 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2932],{12932:(e,t,r)=>{let n;r.r(t),r.d(t,{built_for_browser:()=>i5,default:()=>i9});var i,o,a,s,u,c,l,f,h,p=r(38276),d="Invariant Violation",y=Object.setPrototypeOf,v=void 0===y?function(e,t){return e.__proto__=t,e}:y,m=function(e){function t(r){void 0===r&&(r=d);var n=e.call(this,"number"==typeof r?d+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=d,v(n,t.prototype),n}return(0,p.C6)(t,e),t}(Error);function g(e,t){if(!e)throw new m(t)}var b=["debug","log","warn","error","silent"],_=b.indexOf("log");function E(e){return function(){if(b.indexOf(e)>=_)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=E("debug"),e.log=E("log"),e.warn=E("warn"),e.error=E("error")}(g||(g={}));var O="3.13.9";function T(e){try{return e()}catch(e){}}let k=T(function(){return globalThis})||T(function(){return window})||T(function(){return self})||T(function(){return global})||T(function(){return T.constructor("return this")()});var w=new Map;function S(e){var t=w.get(e)||1;return w.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function C(e,t){void 0===t&&(t=0);var r=S("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}function D(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=A(i))||(t=F(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var x=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||g(e,A(t,r)||F(t,r))},{debug:D(g.debug),log:D(g.log),warn:D(g.warn),error:D(g.error)});function N(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new m(A(e,t)||F(e,t))}var I=Symbol.for("ApolloErrorMessageHandler_"+O);function R(e){if("string"==typeof e)return e;try{return C(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function A(e,t){if(void 0===t&&(t=[]),e)return k[I]&&k[I](e,t.map(R))}function F(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:O,message:e,args:t.map(R)})))}globalThis.__DEV__;var P=r(20312),M=r.t(P,2),j="ReactNative"==T(function(){return navigator.product}),q="function"==typeof WeakMap&&!(j&&!global.HermesInternal),L="function"==typeof WeakSet,V="function"==typeof Symbol&&"function"==typeof Symbol.for,Q=V&&Symbol.asyncIterator;T(function(){return window.document.createElement}),T(function(){return navigator.userAgent.indexOf("jsdom")>=0});var B=V?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function U(e){var t,r=P.useContext((x("createContext"in M,54),(t=P.createContext[B])||(Object.defineProperty(P.createContext,B,{value:t=P.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t)),n=e||r.client;return x(!!n,58),n}let z=()=>Object.create(null),{forEach:W,slice:K}=Array.prototype,{hasOwnProperty:G}=Object.prototype;class Y{constructor(e=!0,t=z){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return W.call(e,e=>t=t.getChildTrie(e)),G.call(t,"data")?t.data:t.data=this.makeData(K.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(K.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new Y(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}let{toString:$,hasOwnProperty:J}=Object.prototype,H=Function.prototype.toString,X=new Map;function Z(e,t){try{return function e(t,r){if(t===r)return!0;let n=$.call(t);if(n!==$.call(r))return!1;switch(n){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(en(t,r))return!0;let n=ee(t),i=ee(r),o=n.length;if(o!==i.length)return!1;for(let e=0;e<o;++e)if(!J.call(r,n[e]))return!1;for(let i=0;i<o;++i){let o=n[i];if(!e(t[o],r[o]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(en(t,r))return!0;let i=t.entries(),o="[object Map]"===n;for(;;){let t=i.next();if(t.done)break;let[n,a]=t.value;if(!r.has(n)||o&&!e(a,r.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=H.call(t);if(e!==H.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,er)}}return!1}(e,t)}finally{X.clear()}}function ee(e){return Object.keys(e).filter(et,e)}function et(e){return void 0!==this[e]}let er="{ [native code] }";function en(e,t){let r=X.get(e);if(r){if(r.has(t))return!0}else X.set(e,r=new Set);return r.add(t),!1}function ei(e){var t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function eo(e){return"status"in e||(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}var ea=Symbol.for("apollo.internal.queryRef"),es=Symbol.for("apollo.internal.refPromise");function eu(e){var t,r=((t={toPromise:function(){var e,t;return("fulfilled"===(t=function(e){return e[ea]}(e=r)).promise.status?t.promise:e[es]).then(function(){return r})}})[ea]=e,t[es]=e.promise,t);return r}var ec=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],el=function(){function e(e,t){var r=this;this.key={},this.listeners=new Set,this.references=0,this.softReferences=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,t.onDispose&&(this.onDispose=t.onDispose),this.setResult(),this.subscribeToQuery();var n=function(){var e;r.references||(r.autoDisposeTimeoutId=setTimeout(r.dispose,null!=(e=t.autoDisposeTimeoutMs)?e:3e4))};this.promise.then(n,n)}return Object.defineProperty(e.prototype,"disposed",{get:function(){return this.subscription.closed}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),e.prototype.reinitialize=function(){var e=this.observable,t=this.watchQueryOptions.fetchPolicy,r="no-cache"===t||"standby"===t;try{if(r?e.silentSetOptions({fetchPolicy:"standby"}):(e.resetLastResults(),e.silentSetOptions({fetchPolicy:"cache-first"})),this.subscribeToQuery(),r)return;e.resetDiff(),this.setResult()}finally{e.silentSetOptions({fetchPolicy:t})}},e.prototype.retain=function(){var e=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var t=!1;return function(){t||(t=!0,e.references--,setTimeout(function(){e.references||e.dispose()}))}},e.prototype.softRetain=function(){var e=this;this.softReferences++;var t=!1;return function(){t||(t=!0,e.softReferences--,setTimeout(function(){e.softReferences||e.references||e.dispose()}))}},e.prototype.didChangeOptions=function(e){var t=this;return ec.some(function(r){return r in e&&!Z(t.watchQueryOptions[r],e[r])})},e.prototype.applyOptions=function(e){var t=this.watchQueryOptions,r=t.fetchPolicy,n=t.canonizeResults;return"standby"===r&&r!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):(this.observable.silentSetOptions(e),n!==e.canonizeResults&&(this.result=(0,p.Cl)((0,p.Cl)({},this.result),this.observable.getCurrentResult()),this.promise=ei(this.result))),this.promise},e.prototype.listen=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.refetch=function(e){return this.initiateFetch(this.observable.refetch(e))},e.prototype.fetchMore=function(e){return this.initiateFetch(this.observable.fetchMore(e))},e.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},e.prototype.onDispose=function(){},e.prototype.handleNext=function(e){var t;if("pending"===this.promise.status)void 0===e.data&&(e.data=this.result.data),this.result=e,null==(t=this.resolve)||t.call(this,e);else{if(e.data===this.result.data&&e.networkStatus===this.result.networkStatus)return;void 0===e.data&&(e.data=this.result.data),this.result=e,this.promise=ei(e),this.deliver(this.promise)}},e.prototype.handleError=function(e){var t,r;(this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),"pending"===this.promise.status)?null==(t=this.reject)||t.call(this,e):(this.promise=((r=Promise.reject(e)).catch(function(){}),r.status="rejected",r.reason=e,r),this.deliver(this.promise))},e.prototype.deliver=function(e){this.listeners.forEach(function(t){return t(e)})},e.prototype.initiateFetch=function(e){var t=this;return this.promise=this.createPendingPromise(),this.promise.catch(function(){}),e.then(function(){setTimeout(function(){var e;"pending"===t.promise.status&&(t.result=t.observable.getCurrentResult(),null==(e=t.resolve)||e.call(t,t.result))})}).catch(function(e){var r;return null==(r=t.reject)?void 0:r.call(t,e)}),e},e.prototype.subscribeToQuery=function(){var e=this;this.subscription=this.observable.filter(function(t){return!Z(t.data,{})&&!Z(t,e.result)}).subscribe(this.handleNext,this.handleError)},e.prototype.setResult=function(){var e=this.observable.getCurrentResult(!1);Z(e,this.result)||(this.result=e,this.promise=e.data&&(!e.partial||this.watchQueryOptions.returnPartialData)?ei(e):this.createPendingPromise())},e.prototype.createPendingPromise=function(){var e=this;return eo(new Promise(function(t,r){e.resolve=t,e.reject=r}))},e}(),ef=function(){function e(e,t,r){var n=this;this.key={},this.listeners=new Set,this.references=0,this.dispose=this.dispose.bind(this),this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.observable=e.watchFragment(t),r.onDispose&&(this.onDispose=r.onDispose);var i=this.getDiff(e,t),o=function(){var e;n.references||(n.autoDisposeTimeoutId=setTimeout(n.dispose,null!=(e=r.autoDisposeTimeoutMs)?e:3e4))};this.promise=i.complete?ei(i.result):this.createPendingPromise(),this.subscribeToFragment(),this.promise.then(o,o)}return e.prototype.listen=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.retain=function(){var e=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var t=!1;return function(){t||(t=!0,e.references--,setTimeout(function(){e.references||e.dispose()}))}},e.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},e.prototype.onDispose=function(){},e.prototype.subscribeToFragment=function(){this.subscription=this.observable.subscribe(this.handleNext.bind(this),this.handleError.bind(this))},e.prototype.handleNext=function(e){var t;
1switch(this.promise.status){case"pending":if(e.complete)return null==(t=this.resolve)?void 0:t.call(this,e.data);this.deliver(this.promise);break;case"fulfilled":if(Z(this.promise.value,e.data))return;this.promise=e.complete?ei(e.data):this.createPendingPromise(),this.deliver(this.promise)}},e.prototype.handleError=function(e){var t;null==(t=this.reject)||t.call(this,e)},e.prototype.deliver=function(e){this.listeners.forEach(function(t){return t(e)})},e.prototype.createPendingPromise=function(){var e=this;return eo(new Promise(function(t,r){e.resolve=t,e.reject=r}))},e.prototype.getDiff=function(e,t){var r=e.cache,n=t.from,i=t.fragment,o=t.fragmentName,a=r.diff((0,p.Cl)((0,p.Cl)({},t),{query:r.getFragmentDoc(i,o),returnPartialData:!0,id:n,optimistic:!0}));return(0,p.Cl)((0,p.Cl)({},a),{result:e.queryManager.maskFragment({fragment:i,fragmentName:o,data:a.result})})},e}(),eh=function(){function e(e){void 0===e&&(e=Object.create(null)),this.queryRefs=new Y(q),this.fragmentRefs=new Y(q),this.options=e}return e.prototype.getQueryRef=function(e,t){var r=this.queryRefs.lookupArray(e);return r.current||(r.current=new el(t(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete r.current}})),r.current},e.prototype.getFragmentRef=function(e,t,r){var n=this.fragmentRefs.lookupArray(e);return n.current||(n.current=new ef(t,r,{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete n.current}})),n.current},e.prototype.add=function(e,t){this.queryRefs.lookupArray(e).current=t},e}(),ep=Symbol.for("apollo.suspenseCache");function ed(e){var t;return e[ep]||(e[ep]=new eh(null==(t=e.defaultOptions.react)?void 0:t.suspense)),e[ep]}var ey=Symbol.for("apollo.hook.wrappers");function ev(){}let em="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},eg="undefined"!=typeof WeakMap?WeakMap:Map,eb="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:ev,unregister:ev}};class e_{constructor(e=1/0,t=ev){this.max=e,this.dispose=t,this.map=new eg,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new em(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new eb(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function eE(){}class eO{constructor(e=1/0,t=eE){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}var eT=new WeakSet;function ek(e){!(e.size<=(e.max||-1))&&(eT.has(e)||(eT.add(e),setTimeout(function(){e.clean(),eT.delete(e)},100)))}var ew=function(e,t){var r=new e_(e,t);return r.set=function(e,t){var r=e_.prototype.set.call(this,e,t);return ek(this),r},r},eS=function(e,t){var r=new eO(e,t);return r.set=function(e,t){var r=eO.prototype.set.call(this,e,t);return ek(this),r},r},eC=Symbol.for("apollo.cacheSize"),eD=(0,p.Cl)({},k[eC]),ex={},eN=!1!==globalThis.__DEV__?function(){var e,t,r,n,i;if(!1===globalThis.__DEV__)throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],r=e[1];return[t,eD[t]||r]})),sizes:(0,p.Cl)({print:null==(e=ex.print)?void 0:e.call(ex),parser:null==(t=ex.parser)?void 0:t.call(ex),canonicalStringify:null==(r=ex.canonicalStringify)?void 0:r.call(ex),links:function e(t){var r;return t?(0,p.fX)((0,p.fX)([null==(r=null==t?void 0:t.getMemoryInternals)?void 0:r.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(eP):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:eM(this.queryManager.documentTransform)}},null==(i=(n=this.cache).getMemoryInternals)?void 0:i.call(n))}}:void 0,eI=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,p.Cl)((0,p.Cl)({},eA.apply(this)),{addTypenameDocumentTransform:eM(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:eF(this.storeReader.executeSelectionSet),executeSubSelectedArray:eF(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:eF(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:eF(null==e?void 0:e.findFragmentSpreads),lookup:eF(null==e?void 0:e.lookup),transform:eF(null==e?void 0:e.transform)}})}:void 0,eR=!1!==globalThis.__DEV__?eA:void 0;function eA(){return{cache:{fragmentQueryDocuments:eF(this.getFragmentDoc)}}}function eF(e){return e&&"dirtyKey"in e?e.size:void 0}function eP(e){return null!=e}function eM(e){return(function e(t){return t?(0,p.fX)((0,p.fX)([eF(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(eP):[]})(e).map(function(e){return{cache:e}})}function ej(e){var t;switch(e){case i.Query:t="Query";break;case i.Mutation:t="Mutation";break;case i.Subscription:t="Subscription"}return t}function eq(e){o||(o=new ew(eD.parser||1e3));var t,r,n=o.get(e);if(n)return n;x(!!e&&!!e.kind,70,e);for(var a=[],s=[],u=[],c=[],l=0,f=e.definitions;l<f.length;l++){var h=f[l];if("FragmentDefinition"===h.kind){a.push(h);continue}if("OperationDefinition"===h.kind)switch(h.operation){case"query":s.push(h);break;case"mutation":u.push(h);break;case"subscription":c.push(h)}}x(!a.length||s.length||u.length||c.length,71),x(s.length+u.length+c.length<=1,72,e,s.length,c.length,u.length),r=s.length?i.Query:i.Mutation,s.length||u.length||(r=i.Subscription);var p=s.length?s:u.length?u:c;x(1===p.length,73,e,p.length);var d=p[0];t=d.variableDefinitions||[];var y={name:d.name&&"Name"===d.name.kind?d.name.value:"data",type:r,variables:t};return o.set(e,y),y}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(i||(i={})),eq.resetCache=function(){o=void 0},!1!==globalThis.__DEV__&&(ex.parser=function(){return o?o.size:0});var eL=Symbol.for("apollo.skipToken"),eV=Object.assign(function(e){return JSON.stringify(e,eQ)},{reset:function(){a=new eS(eD.canonicalStringify||1e3)}});function eQ(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var n=Object.keys(t);if(n.every(eB))return t;var i=JSON.stringify(n),o=a.get(i);if(!o){n.sort();var s=JSON.stringify(n);o=a.get(s)||n,a.set(i,o),a.set(s,o)}var u=Object.create(r);return o.forEach(function(e){u[e]=t[e]}),u}}return t}function eB(e,t,r){return 0===t||r[t-1]<=e}function eU(e,t){var r=U(t.client),n=ed(r),o=(m=(v={client:r,query:e,options:t}).client,g=v.query,b=v.options,_=function(){if(b===eL)return{query:g,fetchPolicy:"standby"};var e,t,r,n,o,a,s,u,c,l,f,h=b.fetchPolicy||(null==(f=m.defaultOptions.watchQuery)?void 0:f.fetchPolicy)||"cac
1he-first",d=(0,p.Cl)((0,p.Cl)({},b),{fetchPolicy:h,query:g,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0});return!1!==globalThis.__DEV__&&(n=d.query,o=d.fetchPolicy,a=d.returnPartialData,s=i.Query,u=eq(n),c=ej(s),l=ej(u.type),x(u.type===s,74,c,c,l),void 0===(e=o)&&(e="cache-first"),x(["cache-first","network-only","no-cache","cache-and-network"].includes(e),66,e),t=o,r=a,"no-cache"===t&&r&&!1!==globalThis.__DEV__&&x.warn(67)),b.skip&&(d.fetchPolicy="standby"),d},E=[m,b,g],(O=P.useRef(void 0)).current&&Z(O.current.deps,E)||(O.current={value:_(),deps:E}),O.current.value),a=o.fetchPolicy,s=o.variables,u=t.queryKey,c=P.useRef("standby"!==a);c.current||(c.current="standby"!==a);var l=(0,p.fX)([e,eV(s)],[].concat(void 0===u?[]:u),!0),f=n.getQueryRef(l,function(){return r.watchQuery(o)}),h=P.useState(eu(f)),d=h[0],y=h[1];if(d[ea]!==f&&y(eu(f)),f.didChangeOptions(o)){var v,m,g,b,_,E,O,T=f.applyOptions(o);d[es]=T}P.useEffect(function(){var e=setTimeout(function(){f.disposed&&n.add(l,f)});return function(){return clearTimeout(e)}});var k=P.useCallback(function(e){var t=f.fetchMore(e);return y(eu(f)),t},[f]),w=P.useCallback(function(e){var t=f.refetch(e);return y(eu(f)),t},[f]);return P.useEffect(function(){return f.softRetain()},[f]),[c.current?d:void 0,{fetchMore:k,refetch:w,subscribeToMore:f.observable.subscribeToMore}]}!1!==globalThis.__DEV__&&(ex.canonicalStringify=function(){return a.size}),eV.reset();var ez=r(65702);function eW(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eG(e,t,r){return t&&eK(e.prototype,t),r&&eK(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var eY=function(){return"function"==typeof Symbol},e$=function(e){return eY()&&!!Symbol[e]},eJ=function(e){return e$(e)?Symbol[e]:"@@"+e};eY()&&!e$("observable")&&(Symbol.observable=Symbol("observable"));var eH=eJ("iterator"),eX=eJ("observable"),eZ=eJ("species");function e0(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function e1(e){var t=e.constructor;return void 0!==t&&null===(t=t[eZ])&&(t=void 0),void 0!==t?t:te}function e2(e){e2.log?e2.log(e):setTimeout(function(){throw e})}function e3(e){Promise.resolve().then(function(){try{e()}catch(e){e2(e)}})}function e4(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=e0(t,"unsubscribe");r&&r.call(t)}}catch(e){e2(e)}}function e8(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function e6(e,t,r){e._state="running";var n=e._observer;try{var i=e0(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(e8(e),i)i.call(n,r);else throw r;break;case"complete":e8(e),i&&i.call(n)}}catch(e){e2(e)}"closed"===e._state?e4(e):"running"===e._state&&(e._state="ready")}function e9(e,t,r){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:r});if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],e3(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(e6(e,t[r].type,t[r].value),"closed"!==e._state);++r);}});return}e6(e,t,r)}}var e5=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new e7(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(e8(this),e4(this))},eG(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),e7=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){e9(this._subscription,"next",e)},t.error=function(e){e9(this._subscription,"error",e)},t.complete=function(){e9(this._subscription,"complete")},eG(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),te=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new e5(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e)return void n(TypeError(e+" is not a function"));function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(e1(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(e1(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=e1(this),n=arguments.length>1,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()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=e1(this);return new i(function(t){var n,o=0;return!function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]
1))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=e1(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=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()}})},t[eX]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var n=e0(t,eX);if(n){var i=n.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof te&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(e$("iterator")&&(n=e0(t,eH)))return new r(function(e){e3(function(){if(!e.closed){for(var r,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return eW(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eW(e,t)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=i()).done;){var o=r.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){e3(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){e3(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},eG(e,null,[{key:eZ,get:function(){return this}}]),e}();function tt(e){return null!==e&&"object"==typeof e}function tr(e,t){if(!e)throw Error(t)}eY()&&Object.defineProperty(te,Symbol("extensions"),{value:{symbol:eX,hostReportError:e2},configurable:!0});function tn(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:tn(t,r)}else if(Array.isArray(e)){var n=e,i=r;if(0===n.length)return"[]";if(i.length>2)return"[Array]";let t=Math.min(10,n.length),o=n.length-t,a=[];for(let e=0;e<t;++e)a.push(tn(n[e],i));return 1===o?a.push("... 1 more item"):o>1&&a.push(`... ${o} more items`),"["+a.join(", ")+"]"}var o=e,a=r;let s=Object.entries(o);return 0===s.length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+s.map(([e,t])=>e+": "+tn(t,a)).join(", ")+" }"}(e,t);default:return String(e)}}class ti{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class to{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let ta={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:[],Float
1Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","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","interfaces","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","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},ts=new Set(Object.keys(ta));function tu(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&ts.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(s||(s={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(u||(u={}));let tc=Object.freeze({});function tl(e,t,r=ta){let n,i,o,a=new Map;for(let e of Object.values(u))a.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let s=Array.isArray(e),c=[e],l=-1,f=[],h=e,p=[],d=[];do{var y,v,m;let e,u=++l===c.length,g=u&&0!==f.length;if(u){if(i=0===d.length?void 0:p[p.length-1],h=o,o=d.pop(),g)if(s){h=h.slice();let e=0;for(let[t,r]of f){let n=t-e;null===r?(h.splice(n,1),e++):h[n]=r}}else for(let[e,t]of(h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h)),f))h[e]=t;l=n.index,c=n.keys,f=n.edits,s=n.inArray,n=n.prev}else if(o){if(null==(h=o[i=s?l:c[l]]))continue;p.push(i)}if(!Array.isArray(h)){tu(h)||tr(!1,`Invalid AST Node: ${tn(h,[])}.`);let r=u?null==(y=a.get(h.kind))?void 0:y.leave:null==(v=a.get(h.kind))?void 0:v.enter;if((e=null==r?void 0:r.call(t,h,i,o,p,d))===tc)break;if(!1===e){if(!u){p.pop();continue}}else if(void 0!==e&&(f.push([i,e]),!u))if(tu(e))h=e;else{p.pop();continue}}void 0===e&&g&&f.push([i,h]),u?p.pop():(n={inArray:s,index:l,keys:c,edits:f,prev:n},c=(s=Array.isArray(h))?h:null!=(m=r[h.kind])?m:[],l=-1,f=[],o&&d.push(o),o=h)}while(void 0!==n);return 0!==f.length?f[f.length-1][1]:e}function tf(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw N(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&(x(1===n.length,86,n.length),r=n[0].name.value),(0,p.Cl)((0,p.Cl)({},e),{definitions:(0,p.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function th(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function tp(e,t){switch(e.kind){case"InlineFragment":return e;
1case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return x(n,87,r),n||null;default:return null}}function td(e){return{__ref:String(e)}}function ty(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function tv(e,t,r,n){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var i={};r.fields.map(function(e){return tv(i,e.name,e.value,n)}),e[t.value]=i}else if("Variable"===r.kind){var o=(n||{})[r.name.value];e[t.value]=o}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return tv(r,t,e,n),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw N(96,t.value,r.kind)}var tm=["connection","include","skip","client","rest","export","nonreactive"],tg=eV,tb=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;else{var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(tg(i),")")}var o=e;if(t){var a=tg(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===tm.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(tg(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=tg;return tg=e,t}});function t_(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return tv(r,e.name,e.value,t)}),r}return null}function tE(e){return e.alias?e.alias.value:e.name.value}function tO(e,t,r){for(var n,i=0,o=t.selections;i<o.length;i++){var a=o[i];if(tT(a)){if("__typename"===a.name.value)return e[tE(a)]}else n?n.push(a):n=[a]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var s=0,u=n;s<u.length;s++){var a=u[s],c=tO(e,tp(a,r).selectionSet,r);if("string"==typeof c)return c}}function tT(e){return"Field"===e.kind}function tk(e){x(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw N(89,e.kind);return e});return x(t.length<=1,90,t.length),e}function tw(e){return tk(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function tS(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function tC(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function tD(e){var t=tw(e);return x(t&&"query"===t.operation,91),t}function tx(e){x("Document"===e.kind,92),x(e.definitions.length<=1,93);var t=e.definitions[0];return x("FragmentDefinition"===t.kind,94),t}function tN(e){tk(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw N(95)}function tI(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&tv(t,e.variable.name,e.defaultValue)}),t}function tR(e,t){return t?t(e):te.of()}function tA(e){return"function"==typeof e?new tP(e):e}function tF(e){return e.request.length<=1}var tP=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return te.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(tA).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=tA(r),o=tA(n||new e(tR));return Object.assign(new e(tF(i)&&tF(o)?function(e){return t(e)?i.request(e)||te.of():o.request(e)||te.of()}:function(e,r){return t(e)?i.request(e,r)||te.of():o.request(e,r)||te.of()}),{left:i,right:o})},e.execute=function(e,t){var r,n,i,o,a;return e.request((i=t.context,(n={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw N(46,i)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?tS(n.query)||void 0:""),o=n,a=(0,p.Cl)({},i),Object.defineProperty(o,"setContext",{enumerable:!1,value:function(e){a="function"==typeof e?(0,p.Cl)((0,p.Cl)({},a),e(a)):(0,p.Cl)((0,p.Cl)({},a),e)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return(0,p.Cl)({},a)}}),o))||te.of()},e.concat=function(t,r){var n=tA(t);if(tF(n))return!1!==globalThis.__DEV__&&x.warn(38,n),n;var i=tA(r);return Object.assign(new e(tF(i)?function(e){return n.request(e,function(e){return i.request(e)||te.of()})||te.of()}:function(e,t){return n.request(e,function(e){return i.request(e,t)||te.of()})||te.of()}),{left:n,right:i})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(tR)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw N(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}();let tM=()=>Object.create(null),{forEach:tj,slice:tq}=Array.prototype,{hasOwnProperty:tL}=Object.prototype;class tV{constructor(e=!0,t=tM){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return tj.call(e,e=>t=t.getChildTrie(e)),tL.call(t,"data")?t.data:t.data=this.makeData(tq.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=this.weakness&&tQ(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){let t=this.weakness&&tQ(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=t.get(e);return r||t.set(e,r=new tV(this.weakness,this.makeData)),r}}function tQ(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}let tB=null,tU={},tz=1;function tW(e){try{return e()}catch(e){}}let tK="@wry/context:Slot",tG=tW(()=>globalThis)||tW(()=>global)||Object.create(null),tY=tG[tK]||Array[tK]||function(e){try{Object.defineProperty(tG,tK,{value:e,enumerable:!1,writable:!1,
1configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",tz++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=tB;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===tU)break;return e!==tB&&(tB.slots[this.id]=t),!0}return tB&&(tB.slots[this.id]=tU),!1}getValue(){if(this.hasValue())return tB.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=tB;tB={parent:o,slots:i};try{return t.apply(n,r)}finally{tB=o}}static bind(e){let t=tB;return function(){let r=tB;try{return tB=t,e.apply(this,arguments)}finally{tB=r}}}static noContext(e,t,r){if(!tB)return e.apply(r,t);{let n=tB;try{return tB=null,e.apply(r,t)}finally{tB=n}}}}),{bind:t$,noContext:tJ}=tY,tH=new tY,{hasOwnProperty:tX}=Object.prototype,tZ=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function t0(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let t1=[];function t2(e,t){if(!e)throw Error(t||"assertion failure")}function t3(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function t4(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class t8{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t8.count}peek(){if(1===this.value.length&&!t5(this))return t6(this),this.value[0]}recompute(e){var t,r,n;return t2(!this.recomputing,"already recomputing"),t6(this),t5(this)?(t=this,r=e,rn(t),tH.withValue(t,t9,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{t0(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,t5(n)||function(e){t7(e,rt)}(n)),t4(t.value)):t4(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,t7(e,re),t0(this))}dispose(){this.setDirty(),rn(this),t7(this,(e,t)=>{e.setDirty(),ri(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=t1.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(tZ(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),t1.push(this.deps),this.deps=null)}}function t6(e){let t=tH.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),t5(e)?re(t,e):rt(t,e),t}function t9(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!t3(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function t5(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}t8.count=0;function t7(e,t){let r=e.parents.size;if(r){let n=tZ(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function re(e,t){t2(e.childValues.has(t)),t2(t5(t));let r=!t5(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=t1.pop()||new Set;e.dirtyChildren.add(t),r&&t7(e,re)}function rt(e,t){t2(e.childValues.has(t)),t2(!t5(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):t3(r,t.value)||e.setDirty(),rr(e,t),t5(e)||t7(e,rt)}function rr(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(t1.length<100&&t1.push(r),e.dirtyChildren=null))}function rn(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{ri(e,r)}),e.forgetDeps(),t2(null===e.dirtyChildren)}function ri(e,t){t.parents.delete(e),e.childValues.delete(t),rr(e,t)}let ro={setDirty:!0,dispose:!0,forget:!0};function ra(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=tH.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(t0(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&tX.call(ro,r)?r:"setDirty";tZ(n).forEach(e=>e[i]()),t.delete(e),t0(n)}},n}function rs(...e){return(n||(n=new tV("function"==typeof WeakMap))).lookupArray(e)}let ru=new Set;function rc(e,{max:t=65536,keyArgs:r,makeCacheKey:n=rs,normalizeResult:i,subscribe:o,cache:a=eO}=Object.create(null)){let s="function"==typeof a?new a(t,e=>e.dispose()):a,u=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new t8(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));let u=a.recompute(Array.prototype.slice.call(arguments));
1return s.set(t,a),ru.add(s),tH.hasValue()||(ru.forEach(e=>e.clean()),ru.clear()),u};function c(e){let t=e&&s.get(e);t&&t.setDirty()}function l(e){let t=e&&s.get(e);if(t)return t.peek()}function f(e){return!!e&&s.delete(e)}return Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=l,u.peek=function(){return l(n.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}var rl=Object.prototype.hasOwnProperty;function rf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rh(e)}function rh(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new rd,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var rp=function(e,t,r){return this.merge(e[r],t[r])},rd=function(){function e(e){void 0===e&&(e=rp),this.reconciler=e,this.isObject=tt,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return tt(t)&&tt(e)?(Object.keys(t).forEach(function(i){if(rl.call(e,i)){var o=e[i];if(t[i]!==o){var a=r.reconciler.apply(r,(0,p.fX)([e,t,i],n,!1));a!==o&&((e=r.shallowCopyForMerge(e))[i]=a)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return tt(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,p.Cl)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function ry(e,t){var r,n,i=e.directives;return!i||!i.length||(n=[],(r=i)&&r.length&&r.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,r=e.arguments,i=e.name.value;x(r&&1===r.length,79,i);var o=r[0];x(o.name&&"if"===o.name.value,80,i);var a=o.value;x(a&&("Variable"===a.kind||"BooleanValue"===a.kind),81,i),n.push({directive:e,ifArgument:o})}}),n).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?x(void 0!==(i=t&&t[n.value.name.value]),78,r.name.value):i=n.value.value,"skip"===r.name.value?!i:i})}function rv(e,t,r){var n=new Set(e),i=n.size;return tl(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return tc}}),r?!n.size:n.size<i}function rm(e,t,r,n){var i=t.data,o=(0,p.Tt)(t,["data"]),a=r.data;return Z(o,(0,p.Tt)(r,["data"]))&&function e(t,r,n,i){if(r===n)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!ry(t,i.variables)||rg(t)))return!0;if(tT(t)){var a=tE(t),s=r&&r[a],u=n&&n[a],c=t.selectionSet;if(!c)return Z(s,u);var l=Array.isArray(s),f=Array.isArray(u);if(l!==f)return!1;if(l&&f){var h=s.length;if(u.length!==h)return!1;for(var p=0;p<h;++p)if(!e(c,s[p],u[p],i))return!1;return!0}return e(c,s,u,i)}var d=tp(t,i.fragmentMap);if(d)return!!rg(d)||e(d.selectionSet,r,n,i)})}(tN(e).selectionSet,i,a,{fragmentMap:th(tC(e)),variables:n})}function rg(e){return!!e.directives&&e.directives.some(rb)}function rb(e){return"nonreactive"===e.name.value}var r_=q?WeakMap:Map,rE=L?WeakSet:Set,rO=new tY,rT=!1;function rk(){rT||(rT=!0,!1!==globalThis.__DEV__&&x.warn(52))}function rw(e){var t;return!1!==globalThis.__DEV__&&(t=new Set([e])).forEach(function(e){tt(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){tt(e[r])&&t.add(e[r])})}),e}function rS(e,t,r){return rO.withValue(!0,function(){var n=function e(t,r,n,i,o){var a,s=n.knownChanged,c=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(var l=0,f=Array.from(t.entries());l<f.length;l++){var h=f[l],p=h[0],d=h[1];if(null===d){c[p]=null;continue}var y=e(d,r,n,i,!1!==globalThis.__DEV__?"".concat(o||"","[").concat(p,"]"):void 0);s.has(y)&&s.add(c),c[p]=y}return s.has(c)?c:t}for(var v=0,m=r.selections;v<m.length;v++){var g=m[v],b=void 0;if(i&&s.add(c),g.kind===u.FIELD){var _=tE(g),E=g.selectionSet;if(void 0===(b=c[_]||t[_]))continue;if(E&&null!==b){var y=e(t[_],E,n,i,!1!==globalThis.__DEV__?"".concat(o||"",".").concat(_):void 0);s.has(y)&&(b=y)}!1===globalThis.__DEV__&&(c[_]=b),!1!==globalThis.__DEV__&&(!i||"__typename"===_||(null==(a=Object.getOwnPropertyDescriptor(c,_))?void 0:a.value)?(delete c[_],c[_]=b):Object.defineProperty(c,_,function(e,t,r,n,i){var o=function(){return rO.getValue()||(!1!==globalThis.__DEV__&&x.warn(48,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(e).replace(/^\./,"")),o=function(){return t}),t};return{get:function(){return o()},set:function(e){o=function(){return e}},enumerable:!0,configurable:!0}}(_,b,o||"",n.operationName,n.operationType)))}if(g.kind===u.INLINE_FRAGMENT&&(!g.typeCondition||n.cache.fragmentMatches(g,t.__typename))&&(b=e(t,g.selectionSet,n,i,o)),g.kind===u.FRAGMENT_SPREAD){var O=g.name.value,T=n.fragmentMap[O]||(n.fragmentMap[O]=n.cache.lookupFragment(O));x(T,47,O);var k=function(e){var t,r,n=null==(t=e.directives)?void 0:t.find(function(e){return"unmask"===e.name.value});if(!n)return"mask";var i=null==(r=n.arguments)?void 0:r.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&i&&(i.value.kind===u.VARIABLE?!1!==globalThis.__DEV__&&x.warn(82):i.value.kind!==u.STRING?!1!==globalThis.__DEV__&&x.warn(83):"migrate"!==i.value.value&&!1!==globalThis.__DEV__&&x.warn(84,i.value.value)),i&&"value"in i.value&&"migrate"===i.value.value)?"migrate":"unmask"}(g);"mask"!==k&&(b=e(t,T.selectionSet,n,"migrate"===k,o))}s.has(b)&&s.add(c)}return"__typename"in t&&!("__typename"in c)&&(c.__typename=t.__typename),Object.keys(c).length!==Object.keys(t).length&&s.add(c),s.has(c)?c:t}(e,t,r,!1);return Object.isFrozen(e)&&rw(n),n})}function rC(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&rk(),e;var i=t.definitions.filter(function(e){return e.kind===u.FRAGMENT_DEFINITION});void 0===n&&(x(1===i.length,49,i.length),n=i[0].name.value);var o=i.find(function(e){return e.name.value===n});return(x(!!o,50,n),null==e||Z(e,{}))?e:rS(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:th(tC(t)),c
1ache:r,mutableTargets:new r_,knownChanged:new rE})}var rD=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=rc(tf,{max:eD["cache.fragmentQueryDocuments"]||1e3,cache:e_})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,p.Cl)((0,p.Cl)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,o=e.from,a=e.optimistic,s=(0,p.Tt)(e,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(n,i),c=void 0===o||"string"==typeof o?o:this.identify(o),l=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var f=i||tx(n).name.value;c||!1===globalThis.__DEV__||x.warn(1,f)}var h=(0,p.Cl)((0,p.Cl)({},s),{returnPartialData:!0,id:c,query:u,optimistic:void 0===a||a});return new te(function(o){return r.watch((0,p.Cl)((0,p.Cl)({},h),{immediate:!0,callback:function(a){var s=l?rC(a.result,n,r,i):a.result;if(!(t&&rm(u,{data:t.result},{data:s},e.variables))){var c={data:s,complete:!!a.complete};a.missing&&(c.missing=rh(a.missing.map(function(e){return e.missing}))),t=(0,p.Cl)((0,p.Cl)({},a),{result:s}),o.next(c)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,p.Cl)((0,p.Cl)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,p.Tt)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,o=(0,p.Tt)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,p.Cl)((0,p.Cl)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,p.Cl)((0,p.Cl)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(rD.prototype.getMemoryInternals=eR);var rx=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)(a={})[s.path[u]]=s.missing,s.missing=a}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,p.C6)(t,e),t}(Error);function rN(e){return e}var rI=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=L?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(rN,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new Y(q);this.performWork=rc(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return x(Array.isArray(n),77),r.lookupArray(n)},max:eD["documentTransform.cache"],cache:e_})}},e.prototype.performWork=function(e){return tk(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),rR=Array.isArray;function rA(e){return Array.isArray(e)&&e.length>0}var rF={kind:u.FIELD,name:{kind:u.NAME,value:"__typename"}};function rP(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function rM(e,t){tk(t);for(var r,n,i,o=rP(""),a=rP(""),s=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!rR(r)){if(r.kind===u.OPERATION_DEFINITION)return o(r.name&&r.name.value);if(r.kind===u.FRAGMENT_DEFINITION)return a(r.name.value)}return!1!==globalThis.__DEV__&&x.error(97),null},c=0,l=t.definitions.length-1;l>=0;--l)t.definitions[l].kind===u.OPERATION_DEFINITION&&++c;var f=(r=new Map,n=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&n.set(e.test,e))}
1),function(e){var t=r.get(e.name.value);return!t&&n.size&&n.forEach(function(r,n){n(e)&&(t=r)}),t}),h=function(e){return rA(e)&&e.map(f).some(function(e){return e&&e.remove})},d=new Map,y=!1,v={enter:function(e){if(h(e.directives))return y=!0,null}},m=tl(t,{Field:v,InlineFragment:v,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=s(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(h(e.directives))return y=!0,null;var o=s(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){d.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===d.get(JSON.stringify(n))?e:c>0&&e.selectionSet.selections.every(function(e){return e.kind===u.FIELD&&"__typename"===e.name.value})?(a(e.name.value).removed=!0,y=!0,null):void 0}},Directive:{leave:function(e){if(f(e))return y=!0,null}}});if(!y)return t;var g=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){g(a(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},b=new Set;m.definitions.forEach(function(e){e.kind===u.OPERATION_DEFINITION?g(o(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){b.add(e)}):e.kind!==u.FRAGMENT_DEFINITION||0!==c||a(e.name.value).removed||b.add(e.name.value)}),b.forEach(function(e){g(a(e)).fragmentSpreads.forEach(function(e){b.add(e)})});var _={enter:function(e){var t;if(t=e.name.value,!b.has(t)||a(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===u.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}(tw(i=tl(m,{FragmentSpread:_,FragmentDefinition:_,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=g(o(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,p.Cl)((0,p.Cl)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))||tx(i),th(tC(i)))?i:null}var rj=Object.assign(function(e){return tl(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==u.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return tT(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(tT(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,p.Cl)((0,p.Cl)({},e),{selections:(0,p.fX)((0,p.fX)([],n,!0),[rF],!1)})}}}})},{added:function(e){return e===rF}});function rq(e){return tk(e),rM([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function rL(e){return 9===e||32===e}function rV(e){return e>=48&&e<=57}function rQ(e){return e>=97&&e<=122||e>=65&&e<=90}function rB(e){return rQ(e)||95===e}let rU=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function rz(e){return rW[e.charCodeAt(0)]}let rW=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],rK={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>rG(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=r$("(",rG(e.variableDefinitions,", "),")"),r=rG([e.operation,rG([e.name,t]),rG(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+r$(" = ",r)+r$(" ",rG(n," "))},SelectionSet:{leave:({selections:e})=>rY(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=r$("",e,": ")+t,a=o+r$("(",rG(r,", "),")");return a.length>80&&(a=o+r$("(\n",rJ(rG(r,"\n")),"\n)")),rG([a,rG(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+r$(" ",rG(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>rG(["...",r$("on ",e),rG(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${r$("(",rG(r,", "),")")} on ${t} ${r$("",rG(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
1,StringValue:{leave:({value:e,block:t})=>t?function(e,t){let r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=1===n.length,o=n.length>1&&n.slice(1).every(e=>0===e.length||rL(e.charCodeAt(0))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=s||u,l=!i||e.length>70||c||o||a,f="",h=i&&rL(e.charCodeAt(0));return(l&&!h||o)&&(f+="\n"),f+=r,(l||c)&&(f+="\n"),'"""'+f+'"""'}(e):`"${e.replace(rU,rz)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+rG(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+rG(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+r$("(",rG(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>r$("",e,"\n")+rG(["schema",rG(t," "),rY(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>r$("",e,"\n")+rG(["scalar",t,rG(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>r$("",e,"\n")+rG(["type",t,r$("implements ",rG(r," & ")),rG(n," "),rY(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>r$("",e,"\n")+t+(rH(r)?r$("(\n",rJ(rG(r,"\n")),"\n)"):r$("(",rG(r,", "),")"))+": "+n+r$(" ",rG(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>r$("",e,"\n")+rG([t+": "+r,r$("= ",n),rG(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>r$("",e,"\n")+rG(["interface",t,r$("implements ",rG(r," & ")),rG(n," "),rY(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>r$("",e,"\n")+rG(["union",t,rG(r," "),r$("= ",rG(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>r$("",e,"\n")+rG(["enum",t,rG(r," "),rY(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>r$("",e,"\n")+rG([t,rG(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>r$("",e,"\n")+rG(["input",t,rG(r," "),rY(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>r$("",e,"\n")+"directive @"+t+(rH(r)?r$("(\n",rJ(rG(r,"\n")),"\n)"):r$("(",rG(r,", "),")"))+(n?" repeatable":"")+" on "+rG(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>rG(["extend schema",rG(e," "),rY(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>rG(["extend scalar",e,rG(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>rG(["extend type",e,r$("implements ",rG(t," & ")),rG(r," "),rY(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>rG(["extend interface",e,r$("implements ",rG(t," & ")),rG(r," "),rY(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>rG(["extend union",e,rG(t," "),r$("= ",rG(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>rG(["extend enum",e,rG(t," "),rY(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>rG(["extend input",e,rG(t," "),rY(r)]," ")}};function rG(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function rY(e){return r$("{\n",rJ(rG(e,"\n")),"\n}")}function r$(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function rJ(e){return r$("  ",e.replace(/\n/g,"\n  "))}function rH(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var rX=Object.assign(function(e){var t=c.get(e);return t||(t=tl(e,rK),c.set(e,t)),t},{reset:function(){c=new ew(eD.print||2e3)}});function rZ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}rX.reset(),!1!==globalThis.__DEV__&&(ex.print=function(){return c?c.size:0});var r0=Object.prototype.hasOwnProperty;function r1(e){return null==e}function r2(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=r1(n)?r1(i)?void 0:{_id:i}:{id:n}),r1(n)&&!r1(i)&&(n=i),!r1(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var r3={dataIdFromObject:r2,addTypename:!0,resultCaching:!0,canonizeResults:!1};function r4(e){var t=e.canonizeResults;return void 0===t?r3.canonizeResults:t}var r8=/^[_a-z][_0-9a-z]*/i;function r6(e){var t=e.match(r8);return t?t[0]:e}function r9(e){return tt(e)&&!ty(e)&&!rR(e)}function r5(e,t){var r=th(tC(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var r7=Object.create(null),ne=function(){return r7},nt=Object.create(null),nr=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return rw(ty(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ty(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return td(e);if(ty(e))return e;var n=r.policies.identify(e)[0];if(n){var i=td(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,p.Cl)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),r0.call(this.data,e)){var r=this.data[e];if(r&&r0.call(r,t))return r[t]}return"__typename"===t&&r0.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof no?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),r0.call(this.data,e))?this.data[e]:this instanceof no?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;ty(e)&&(e=e.__ref),ty(t)&&(t=t.__ref);
1var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){x("string"==typeof r,2);var a=new rd(ns).merge(i,o);if(this.data[r]=a,a!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=r6(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||n instanceof no||delete a[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),o=!1,a=!0,s={DELETE:r7,INVALIDATE:nt,isReference:ty,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||td(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(u){var c=r6(u),l=n[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var h=f===ne?r7:f(rw(l),(0,p.Cl)((0,p.Cl)({},s),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));if(h===nt)r.group.dirty(e,u);else if(h===r7&&(h=void 0),h!==l&&(i[u]=h,o=!0,l=h,!1!==globalThis.__DEV__)){var d=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&x.warn(3,e),!0};if(ty(h))d(h);else if(Array.isArray(h))for(var y=!1,v=void 0,m=0,g=h;m<g.length;m++){var b=g[m];if(ty(b)){if(y=!0,d(b))break}else"object"==typeof b&&b&&r.policies.identify(b)[0]&&(v=b);if(y&&void 0!==v){!1!==globalThis.__DEV__&&x.warn(4,v);break}}}}void 0!==l&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof no?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=ne,n):ne)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(r0.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof no&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){r0.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&r0.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,p.Tt)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof no?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){r0.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof no;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!r0.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){ty(e)&&(t[e.__ref]=!0),tt(e)&&Object.keys(e).forEach(function(t){var r=e[t];tt(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),nn=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?ra():null,this.keyMaker=new Y(q)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=r6(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function ni(e,t){nu(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new nn(void 0===n||n))||this;return o.stump=new na(o),o.storageTrie=new Y(q),i&&o.replace(i),o}return(0,p.C6)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(nr||(nr={}));var no=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,p.C6)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){Z(n[r],i[r])||t.group.dirty(e,r)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,p.Cl)((0,p.Cl)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return r0.call(this.data,t)?(0,p.Cl)((0,p.Cl)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(nr),na=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new nn(t.group.caching,t.group))||this}return(0,p.C6)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(no);function ns(e,t,r){var n=e[r],i=t[r];return Z(n,i)?n:i}function nu(e){return!!(e instanceof nr&&e.group.caching)}var nc=function(){function e(){this.known=new(L?WeakSet:Set),this.pool=new Y(q),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return tt(e)&&this.known.has(e)},e.prototype.pass=function(e){if(tt(e)){var t=tt(e)?rR(e)?e.slice(0):(0,p.Cl)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(tt(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function nl(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var nf=function(){function e(e){var t=this;this.knownResults=new(q?WeakMap:Map),this.config=rZ(e,{addTypename:!1!==e.addTypename,canonizeResults:r4(e)}),this.canon=e.canon||new nc,this.executeSelectionSet=rc(function(e){var r,n=e.context.canonizeResults,i=nl(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?(0,p.Cl)((0,p.Cl)({},o),{result:t.canon.admit(o.result)}):o:(ni(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||eD["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:nl,makeCacheKey:function(e,t,r,n){if(nu(r.store))return r.store.makeCacheKey(e,ty(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=rc(function(e){return ni(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||eD["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(nu(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new nc},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,o=e.variables,a=e.returnPartialData,s=e.canonizeResults,u=void 0===s?this.config.canonizeResults:s,c=this.config.cache.policies;o=(0,p.Cl)((0,p.Cl)({},tI(tD(n))),o);var l=td(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:tN(n).selectionSet,objectOrReference:l,enclosingRef:l,context:(0,p.Cl)({store:r,query:n,policies:c,variables:o,varString:eV(o),canonizeResults:u},r5(n,this.config.fragments))});if(f.missing&&(t=[new rx(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(f.missing),f.missing,n,o)],!(void 0===a||a)))throw t[0];return{result:f.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(nu(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if(ty(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,c=a.policies,l=a.store.getFieldValue(i,"__typename"),f=[],h=new rd;function p(e,r){var n;return e.missing&&(t=h.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&f.push({__typename:l});var d=new Set(n.selections);d.forEach(function(e){var n,y;
1if(ry(e,s))if(tT(e)){var v=c.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),m=tE(e);void 0===v?rj.added(e)||(t=h.merge(t,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(ty(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):rR(v)?v.length>0&&(v=p(r.executeSubSelectedArray({field:e,array:v,enclosingRef:o,context:a}),m)):e.selectionSet?null!=v&&(v=p(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:ty(v)?v:o,context:a}),m)):a.canonizeResults&&(v=r.canon.pass(v)),void 0!==v&&f.push(((y={})[m]=v,y))}else{var g=tp(e,a.lookupFragment);if(!g&&e.kind===u.FRAGMENT_SPREAD)throw N(10,e.name.value);g&&c.fragmentMatches(g,l)&&g.selectionSet.selections.forEach(d.add,d)}});var y={result:rh(f),missing:t},v=a.canonizeResults?this.canon.admit(y):rw(y);return v.result&&this.knownResults.set(v.result,n),v},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new rd;function u(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:rR(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:ty(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){tt(r)&&(x(!ty(r),11,ty(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(a.store,n,e),e)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),nh=Object.prototype.toString;function np(e,t){switch(nh.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=np(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=np(e[r],t)}),n;default:return e}}var nd=new tY,ny=new WeakMap;function nv(e){var t=ny.get(e);return t||ny.set(e,t={vars:new Set,dep:ra()}),t}function nm(e){nv(e).vars.forEach(function(t){return t.forgetCache(e)})}function ng(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){var t;nv(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var a=Array.from(r);r.clear(),a.forEach(function(t){return t(e)})}}else{var s=nd.getValue();s&&(i(s),nv(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),nv(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var nb=Object.create(null);function n_(e){var t=JSON.stringify(e);return nb[t]||(nb[t]=Object.create(null))}function nE(e){var t=n_(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=nT(e,function(e){var i=nw(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&r0.call(t,e[0])&&(i=nw(t,e,nk)),x(void 0!==i,5,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function nO(e){var t=n_(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(nT(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&rA(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&t_(s,i);return u&&nw(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&r0.call(i,c)){var l=e.slice(0);return l[0]=c,nw(i,l)}return}if(t)return nw(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function nT(e,t){var r=new rd;return(function e(t){var r=n_(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){rR(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),rR(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function nk(e,t){return e[t]}function nw(e,t,r){return r=r||nk,function e(t){return tt(t)?rR(t)?t.map(e):nT(Object.keys(t).sort(),function(e){return nw(t,e)}):t}(t.reduce(function e(t,n){return rR(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}
1function nS(e){return void 0!==e.args?e.args:e.field?t_(e.field,e.variables):null}var nC=function(){},nD=function(e,t){return t.fieldName},nx=function(e,t,r){return(0,r.mergeObjects)(e,t)},nN=function(e,t){return t},nI=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,p.Cl)({dataIdFromObject:r2},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,o=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var a=t&&t.storeObject||e,s=(0,p.Cl)((0,p.Cl)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=nA(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),c=u&&u.keyFn||this.config.dataIdFromObject;return rO.withValue(!0,function(){for(;c;){var t=c((0,p.Cl)((0,p.Cl)({},e),a),s);if(rR(t))c=nE(t);else{n=t;break}}}),n=n?String(n):void 0,s.keyObject?[n,s.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,o=n.mutationType,a=n.subscriptionType,s=(0,p.Tt)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),r0.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?nx:!1===t?nN:e.merge}a(n,t.merge),n.keyFn=!1===i?nC:rR(i)?nE(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?nD:rR(s)?nO(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||nD)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(x(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(r8);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!r0.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,p.Tt)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},c=!!(r&&this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var h=s[f];
1if(h.has(o))return a.has(o)||(l&&!1!==globalThis.__DEV__&&x.warn(7,t,o),a.add(o)),!0;h.forEach(u),c&&f===s.length-1&&function e(t,r,n){return!!tt(r)&&(rR(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if(tT(t)&&ry(t,n)){var i=tE(t);return r0.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(c=!1,l=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r,n,i,o,a=e.typename,s=e.fieldName,u=this.getFieldPolicy(a,s,!1),c=u&&u.keyFn;if(c&&a)for(var l={typename:a,fieldName:s,field:e.field||null,variables:e.variables},f=nS(e);c;){var h=c(f,l);if(rR(h))c=nO(h);else{o=h||s;break}}return(void 0===o&&(o=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,o=t.value;return tv(n[e.name.value],i,o,r)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){var t=e.name,n=e.value;return tv(i,t,n,r)}
1)),tb(t.name.value,i,n)):tb(s,nS(e))),!1===o)?s:s===r6(o)?o:s+":"+o},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=r6(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=nR(this,r,e,t,t.store.getStorage(ty(r)?r.__ref:r,i));return nd.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===nx?nF(n.store)(e,t):s===nN?t:(n.overwrite&&(e=void 0),s(e,t,nR(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function nR(e,t,r,n,i){var o=e.getStoreFieldName(r),a=r6(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:nS(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:ty,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(nA(arguments,t,s),n)},mergeObjects:nF(n.store)}}function nA(e,t,r){var n,i=e[0],o=e[1],a=e.length;return"string"==typeof i?n={fieldName:i,from:a>1?o:t}:(n=(0,p.Cl)({},i),r0.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&x.warn(8,C(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function nF(e){return function(t,r){if(rR(t)||rR(r))throw N(9);if(tt(t)&&tt(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(ty(t)&&r9(r))return e.merge(t.__ref,r),t;if(r9(t)&&ty(r))return e.merge(t,r.__ref),r;if(r9(t)&&r9(r))return(0,p.Cl)((0,p.Cl)({},t),r)}return r}}function nP(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,p.Cl)((0,p.Cl)({},e),{clientOnly:t,deferred:r})),i}var nM=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,u=tw(n),c=new rd;a=(0,p.Cl)((0,p.Cl)({},tI(u)),a);var l=(0,p.Cl)((0,p.Cl)({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:eV(a)},r5(n,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!ty(f))throw N(12,i);return l.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=td(n);if(o&&o.map.size){var u=r.applyMerges(o,s,i,l);if(ty(u))return;i=u}if(!1!==globalThis.__DEV__&&!l.overwrite){var c=Object.create(null);a.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)});var f=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};
1Object.keys(i).forEach(function(e){!0!==c[r6(e)]||f(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(!(!a||ty(o)||Z(o,a)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(a,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),u=r6(r),c="".concat(s,".").concat(u);if(!nQ.has(c)){nQ.add(c);var l=[];rR(o)||rR(a)||[o,a].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)}),!1!==globalThis.__DEV__&&x.warn(15,u,s,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",c,(0,p.Cl)({},o),(0,p.Cl)({},a))}}}}(s,i,e,l.store)})}e.merge(n,i)}),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=Object.create(null),c=r&&s.rootTypenamesById[r]||tO(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof c&&(u.__typename=c);var l=function(){var e=nA(arguments,u,o.variables);if(ty(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=s.readField((0,p.Cl)((0,p.Cl)({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return s.readField(e,o)},f=new Set;this.flattenFields(i,n,o,c).forEach(function(e,r){var i,o=n[tE(r)];if(f.add(r),void 0!==o){var h=s.getStoreFieldName({typename:c,fieldName:r.name.value,field:r,variables:e.variables}),p=nq(a,h),d=t.processFieldValue(o,r,r.selectionSet?nP(e,!1,!1):e,p),y=void 0;r.selectionSet&&(ty(d)||r9(d))&&(y=l("__typename",d));var v=s.getMergeFunction(c,r.name.value,y);v?p.info={field:r,typename:c,merge:v}:nV(a,h),u=e.merge(u,((i={})[h]=d,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||rj.added(r)||s.getReadFunction(c,r.name.value)||!1===globalThis.__DEV__||x.error(13,tE(r),n)});try{var h=s.identify(n,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:u,readField:l}),d=h[0],y=h[1];r=r||d,y&&(u=o.merge(u,y))}catch(e){if(!r)throw e}if("string"==typeof r){var v=td(r),m=o.written[r]||(o.written[r]=[]);if(m.indexOf(i)>=0||(m.push(i),this.reader&&this.reader.isFresh(n,v,i,o)))return v;var g=o.incomingById.get(r);return g?(g.storeObject=o.merge(g.storeObject,u),g.mergeTree=function e(t,r){if(t===r||!r||nL(r))return t;if(!t||nL(t))return r;var n=t.info&&r.info?(0,p.Cl)((0,p.Cl)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,o={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var a=new Set(r.map.keys());t.map.forEach(function(t,n){o.map.set(n,e(t,r.map.get(n))),a.delete(n)}),a.forEach(function(n){o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(g.mergeTree,a),f.forEach(function(e){return g.fieldNodeSet.add(e)})):o.incomingById.set(r,{storeObject:u,mergeTree:nL(a)?void 0:a,fieldNodeSet:f}),v}return u},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?rR(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,nq(n,o));return nV(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?np(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=tO(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,a=new Y(!1);return!function e(s,c){var l=a.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach(function(a){if(ry(a,r.variables)){var s=c.clientOnly,l=c.deferred;if(!(s&&l)&&rA(a.directives)&&a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=t_(e,r.variables);n&&!1===n.if||(l=!0)}}),tT(a)){var f=i.get(a);f&&(s=s&&f.clientOnly,l=l&&f.deferred),i.set(a,nP(r,s,l))}else{var h=tp(a,r.lookupFragment);if(!h&&a.kind===u.FRAGMENT_SPREAD)throw N(14,a.name.value);h&&o.fragmentMatches(h,n,t,r.variables)&&e(h.selectionSet,nP(r,s,l))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var o=this;if(e.map.size&&!ty(r)){var a,s,u=!rR(r)&&(ty(t)||r9(t))?t:void 0,c=r;u&&!i&&(i=[ty(u)?u.__ref:u]);var l=function(e,t){return rR(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};
1e.map.forEach(function(e,t){var r=l(u,t),a=l(c,t);if(void 0!==a){i&&i.push(t);var f=o.applyMerges(e,r,a,n,i);f!==a&&(s=s||new Map).set(t,f),i&&x(i.pop()===t)}}),s&&(r=rR(c)?c.slice(0):(0,p.Cl)({},c),s.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(a=n.store).getStorage.apply(a,i)):r},e}(),nj=[];function nq(e,t){var r=e.map;return r.has(t)||r.set(t,nj.pop()||{map:new Map}),r.get(t)}function nL(e){return!e||!(e.info||e.map.size)}function nV(e,t){var r=e.map,n=r.get(t);n&&nL(n)&&(nj.push(n),r.delete(t))}var nQ=new Set,nB=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new rI(rj),r.assumeImmutableResults=!0,r.makeVar=ng,r.txCount=0,r.config=rZ(r3,t),r.addTypename=!!r.config.addTypename,r.policies=new nI({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,p.C6)(t,e),t.prototype.init=function(){var e=this.data=new nr.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new nM(this,this.storeReader=new nf({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:r4(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=rc(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||eD["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(nu(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,eV({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,p.Cl)((0,p.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof rx)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(r0.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,p.Cl)((0,p.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||(t=this,nv(t).vars.forEach(function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&nm(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){eV.reset(),rX.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(ty(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&x.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(r0.call(e,"id"))return!1;e=(0,p.Cl)((0,p.Cl)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),eV.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),nm(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,u=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},c=new Set;return s&&!this.txCount&&this.broadcastWatches((0,p.Cl)((0,p.Cl)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,u):!1===o?u(this.data):u(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&c.size?(this.broadcastWatches((0,p.Cl)((0,p.Cl)({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&Z(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(rD);!1!==globalThis.__DEV__&&(nB.prototype.getMemoryInternals=eI);var nU=tP.execute,nz=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=N(42,t,e.message);throw n.parseError=e,n}return r},nW=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")};function nK(e){var t={next:function(){return e.read()}};return Q&&(t[Symbol.asyncIterator]=function(){return this}),t}var nG=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},nY=Symbol();function n$(e){return e.hasOwnProperty("graphQLErrors")}var nJ=function(e){var t=(0,p.fX)((0,p.fX)((0,p.fX)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return tt(e)&&e.message||"Error message not found."}).join("\n")},nH=function(e){function t(r){var n=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,a=r.networkError,s=r.errorMessage,u=r.extraInfo,c=e.call(this,s)||this;return c.name="ApolloError",c.graphQLErrors=n||[],c.protocolErrors=i||[],c.clientErrors=o||[],c.networkError=a||null,c.message=s||nJ(c),c.extraInfo=u,c.cause=(0,p.fX)((0,p.fX)((0,p.fX)([a],n||[],!0),i||[],!0),o||[],!0).find(function(e){return!!e})||null,c.__proto__=t.prototype,c}return(0,p.C6)(t,e),t}(Error);function nX(e){return"incremental"in e}function nZ(e,t){var r=e,n=new rd;return nX(t)&&rA(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}var n0=Object.prototype.hasOwnProperty;function n1(e,t){e.status>=300&&nG(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var n2=function(e){if(!e&&"undefined"==typeof fetch)throw N(40)},n3={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},n4=function(e,t){return t(e)};function n8(e){return new te(function(t){t.error(e)})}var n6=T(function(){return fetch}),n9=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,o=void 0===i?n4:i,a=e.includeExtensions,s=e.preserveHeaderCase,u=e.useGETForQueries,c=e.includeUnusedVariables,l=void 0!==c&&c,f=(0,p.Tt)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&n2(n||n6);var h={http:{includeExtensions:a,preserveHeaderCase:s},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new tP(function(e){var t,i,a,s,c,f,d=nW(e,r),y=e.getContext(),v={};if(y.clientAwareness){var m=y.clientAwareness,g=m.name,b=m.version;g&&(v["apollographql-client-name"]=g),b&&(v["apollographql-client-version"]=b)}var _=(0,p.Cl)((0,p.Cl)({},v),y.headers),E={http:y.http,options:y.fetchOptions,credentials:y.credentials,headers:_};if(rv(["client"],e.query)){var O=rq(e.query);if(!O)return n8(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=O}var k=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach(function(e){i=(0,p.Cl)((0,p.Cl)((0,p.Cl)({},i),e.options),{headers:(0,p.Cl)((0,p.Cl)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=(0,p.Cl)((0,p.Cl)({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var r={};
1return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=t(c,rX)),{options:i,body:l}}(e,o,n3,h,E),w=k.options,S=k.body;S.variables&&!l&&(t=S.variables,i=e.query,a=(0,p.Cl)({},t),s=new Set(Object.keys(t)),tl(i,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&s.delete(e.name.value)}}),s.forEach(function(e){delete a[e]}),S.variables=a),w.signal||"undefined"==typeof AbortController||(w.signal=(f=new AbortController).signal);var C="OperationDefinition"===(c=tN(e.query)).kind&&"subscription"===c.operation,D=rv(["defer"],e.query);if(u&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(w.method="GET"),D||C){w.headers=w.headers||{};var N="multipart/mixed;";C&&D&&!1!==globalThis.__DEV__&&x.warn(41),C?N+="boundary=graphql;subscriptionSpec=1.0,application/json":D&&(N+="deferSpec=20220824,application/json"),w.headers.accept=N}if("GET"===w.method){var I=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=nz(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=nz(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}}(d,S),R=I.newURI,A=I.parseError;if(A)return n8(A);d=R}else try{w.body=nz(S,"Payload")}catch(e){return n8(e)}return new te(function(t){var r=n||T(function(){return fetch})||n6,i=t.next.bind(t);return r(d,w).then(function(t){e.setContext({response:t});var r,n=null==(r=t.headers)?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?function(e,t){return(0,p.sH)(this,void 0,void 0,function(){var r,n,i,o,a,s,u,c,l,f,h,d,y,v,m,g,b,_,E,O,T,k,w;return(0,p.YH)(this,function(S){switch(S.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null==(w=e.headers)?void 0:w.get("content-type"),i="boundary=",o=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(o),s="",u=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,Q&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return nK(s.getReader());if(s.stream)return nK(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},Q&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return Q&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),c=!0,S.label=1;case 1:if(!c)return[3,3];return[4,u.next()];
1case 2:for(f=(l=S.sent()).value,h=l.done,d="string"==typeof f?f:r.decode(f),y=s.length-a.length+1,c=!h,s+=d,v=s.indexOf(a,y);v>-1;){if(m=void 0,m=(T=[s.slice(0,v),s.slice(v+a.length)])[0],s=T[1],g=m.indexOf("\r\n\r\n"),(b=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(m.slice(0,g))["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(_=m.slice(g)){if(Object.keys(E=n1(e,_)).length>1||"data"in E||"incremental"in E||"errors"in E||"payload"in E)if(tt(E)&&"payload"in E){if(O={},"payload"in E){if(1===Object.keys(E).length&&null===E.payload)return[2];O=(0,p.Cl)({},E.payload)}"errors"in E&&(O=(0,p.Cl)((0,p.Cl)({},O),{extensions:(0,p.Cl)((0,p.Cl)({},"extensions"in O?O.extensions:null),((k={})[nY]=E.errors,k))})),t(O)}else t(E);else if(1===Object.keys(E).length&&"hasNext"in E&&!E.hasNext)return[2]}v=s.indexOf(a)}return[3,1];case 3:return[2]}})})}(t,i):(function(t){return t.text().then(function(e){return n1(t,e)}).then(function(r){return Array.isArray(r)||n0.call(r,"data")||n0.call(r,"errors")||nG(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})})(t).then(i)}).then(function(){f=void 0,t.complete()}).catch(function(e){f=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){f&&f.abort()}})})},n5=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,n9(t).request)||this;return r.options=t,r}return(0,p.C6)(t,e),t}(tP);function n7(e,t,r){return new te(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}function ie(e){var t=rA(e.errors)?e.errors.slice(0):[];return nX(e)&&rA(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function it(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function ir(e){function t(t){Object.defineProperty(e,t,{value:te})}return V&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ii(e){return e&&"function"==typeof e.then}var io=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),it(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),it(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?ii(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),it(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new te(t)]),ii(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,p.C6)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(te);function ia(e){return!!e&&e<7}ir(io),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(l||(l={}));var is=Object.assign,iu=Object.hasOwnProperty,ic=function(e){function t(r){var n=r.queryManager,i=r.queryInfo,o=r.options,a=this,s=t.inactiveOnCreation.getValue();(a=e.call(this,function(e){a._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=il)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(a.maskResult(n.result)),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this).observers=new Set,a.subscriptions=new Set,a.dirty=!1,a._getOrCreateQuery=function(){return s&&(n.queries.set(a.queryId,i),s=!1),a.queryManager.getOrCreateQuery(a.queryId)},a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=ip(o.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a),a.maskResult=a.maskResult.bind(a);var u=n.defaultOptions.watchQuery,c=(void 0===u?{}:u).fetchPolicy,l=void 0===c?"cache-first":c,f=o.fetchPolicy,h=void 0===f?l:f,d=o.initialFetchPolicy,y=void 0===d?"standby"===h?l:h:d;a.options=(0,p.Cl)((0,p.Cl)({},o),{initialFetchPolicy:y,fetchPolicy:h}),a.queryId=i.queryId||n.generateQueryId();var v=tw(a.query);return a.queryName=v&&v.name&&v.name.value,a}return(0,p.C6)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||l.ready,n=(0,p.Cl)((0,p.Cl)({},t),{loading:ia(r),networkStatus:r}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(ip(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(n.data=a.result),Z(n.data,{})&&(n.data=void 0),a.complete?(delete n.partial,a.complete&&n.networkStatus===l.loading&&("cache-first"===o||"cac
1he-only"===o)&&(n.networkStatus=l.ready,n.loading=!1)):n.partial=!0,n.networkStatus===l.ready&&(n.error||n.errors)&&(n.networkStatus=l.error),!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||n.loading||n.data||n.error||ih(a.missing)}return e&&this.updateLastResult(n),n},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,i=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!rm(i,this.last.result,e,this.variables):!Z(this.last.result,e))||t&&!Z(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||Z(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0};if("no-cache"===this.options.fetchPolicy?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&iu.call(e,"variables")){var n=tD(this.query),i=n.variableDefinitions;i&&i.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||x.warn(21,e,(null==(t=n.name)?void 0:t.value)||n)}return e&&!Z(this.options.variables,e)&&(r.variables=this.options.variables=(0,p.Cl)((0,p.Cl)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,l.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,p.Cl)((0,p.Cl)({},e.query?e:(0,p.Cl)((0,p.Cl)((0,p.Cl)((0,p.Cl)({},this.options),{query:this.options.query}),e),{variables:(0,p.Cl)((0,p.Cl)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=l.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var a=new Set,s=null==e?void 0:e.updateQuery,u="no-cache"!==this.options.fetchPolicy;return u||x(s,22),this.queryManager.fetchQuery(n,r,l.fetchMore).then(function(c){if(t.queryManager.removeQuery(n),i.networkStatus===l.fetchMore&&(i.networkStatus=o),u)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:c.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:c.data})},onWatchUpdated:function(e){a.add(e.query)}});else{var f=t.getLast("result"),h=s(f.data,{fetchMoreResult:c.data,variables:r.variables});t.reportResult((0,p.Cl)((0,p.Cl)({},f),{networkStatus:o,loading:ia(o),data:h}),t.variables)}return t.maskResult(c)}).finally(function(){u&&!a.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,(0,p.Cl)({subscriptionData:r},t))})},error:function(t){if(e.onError)return void e.onError(t);!1!==globalThis.__DEV__&&x.error(23,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=rZ(this.options,e||{});is(this.options,t)},t.prototype.setVariables=function(e){return Z(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},l.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),n=r.result,i=r.complete,o=e(n,{variables:this.variables,complete:!!i,previousData:n});o&&(t.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){var n=this._getOrCreateQuery();return n.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(n,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){x(r,24),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(ia(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},l.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!Z(t,this.last.variables)&&(r=void 0),this.last=(0,p.Cl)({result:this.queryManager.assumeImmutableResults?e:np(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;
1var n=t===l.refetch||t===l.fetchMore||t===l.poll,i=this.options.variables,o=this.options.fetchPolicy,a=rZ(this.options,e||{}),s=n?a:is(this.options,a),u=this.transformDocument(s.query);this.lastQuery=u,!n&&(this.updatePolling(),e&&e.variables&&!Z(e.variables,i)&&"standby"!==s.fetchPolicy&&(s.fetchPolicy===o||"function"==typeof s.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=l.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=ip(s.fetchPolicy));var c=function(){r.concast===d&&(r.waitForOwnResult=!1)},f=s.variables&&(0,p.Cl)({},s.variables),h=this.fetch(s,t,u),d=h.concast,y=h.fromLink,v={next:function(e){Z(r.variables,f)&&(c(),r.reportResult(e,f))},error:function(e){Z(r.variables,f)&&(n$(e)||(e=new nH({networkError:e})),c(),r.reportError(e,f))}};return n||!y&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=v),d.addObserver(v),d},t.prototype.reobserve=function(e,t){var r;return(r=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch(function(){}),r},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&it(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=(0,p.Cl)((0,p.Cl)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:l.error,loading:!1});this.updateLastResult(r,t),it(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,p.Cl)((0,p.Cl)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!ia(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,r=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,n){return(this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,n):t}}):this.reobserve()},t.inactiveOnCreation=new tY,t}(te);function il(e){!1!==globalThis.__DEV__&&x.error(25,e.message,e.stack)}function ih(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&x.debug(26,e)}function ip(e){return"network-only"===e||"no-cache"===e||"standby"===e}ir(ic);var id=new(q?WeakMap:Map);function iy(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return id.set(e,(id.get(e)+1)%1e15),r.apply(this,arguments)})}var iv=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;id.has(r)||(id.set(r,0),iy(r,"evict"),iy(r,"modify"),iy(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||l.loading;return this.variables&&this.networkStatus!==l.loading&&!Z(this.variables,e.variables)&&(t=l.setVariables),Z(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Z(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),Z(n&&n.result,e&&e.result)||null==(r=this.observableQuery)||r.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,p.Cl)((0,p.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
1this.lastWatch&&Z(n,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===id.get(this.cache)&&Z(t,r.variables)&&Z(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,o=this,a=new rd,s=rA(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.resetNotifications(),"incremental"in e&&rA(e.incremental)){var u=nZ(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=a.merge(c.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(im(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(o.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),o.lastWrite={result:e,variables:r.variables,dmCount:id.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var a=o.getDiffOptions(r.variables),s=i.diff(a);!o.stopped&&Z(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=l.ready},e.prototype.markError=function(e){var t;return this.networkStatus=l.error,this.lastWrite=void 0,null==(t=this.observableQuery)||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function im(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!rA(ie(e));return!n&&r&&e.data&&(n=!0),n}var ig=Object.prototype.hasOwnProperty,ib=Object.create(null),i_=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new ew(eD["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Y(!1),this.noCacheWarningsByQueryId=new Set;var r=new rI(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(N(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,p.sH)(this,arguments,void 0,function(e){var t,r,n,i,o,a,s,u=e.mutation,c=e.variables,l=e.optimisticResponse,f=e.updateQueries,h=e.refetchQueries,d=void 0===h?[]:h,y=e.awaitRefetchQueries,v=void 0!==y&&y,m=e.update,g=e.onQueryUpdated,b=e.fetchPolicy,_=void 0===b?(null==(a=this.defaultOptions.mutate)?void 0:a.fetchPolicy)||"network-only":b,E=e.errorPolicy,O=void 0===E?(null==(s=this.defaultOptions.mutate)?void 0:s.errorPolicy)||"none":E,T=e.keepRootFields,k=e.context;return(0,p.YH)(this,function(e){switch(e.label){case 0:if(x(u,28),x("network-only"===_||"no-cache"===_,29),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),r=this.getDocumentInfo(u).hasClientExports,c=this.getVariables(u,c),!r)return[3,2];return[4,this.localState.addExportedVariables(u,c,k)];case 1:c=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:c,loading:!0,error:null}),i=l&&this.markMutationOptimistic(l,{mutationId:t,document:u,variables:c,fetchPolicy:_,errorPolicy:O,context:k,updateQueries:f,update:m,keepRootFields:T}),this.broadcastQueries(),o=this,[2,new Promise(function(e,r){return n7(o.getObservableFromLink(u,(0,p.Cl)((0,p.Cl)({},k),{optimisticResponse:i?l:void 0}),c,{},!1),function(e){if(rA(ie(e))&&"none"===O)throw new nH({graphQLErrors:ie(e)});n&&(n.loading=!1,n.error=null);var r=(0,p.Cl)({},e);return"function"==typeof d&&(d=d(r)),"ignore"===O&&rA(ie(r))&&delete r.errors,o.markMutationResult({mutationId:t,result:r,document:u,variables:c,fetchPolicy:_,errorPolicy:O,context:k,update:m,updateQueries:f,awaitRefetchQueries:v,refetchQueries:d,removeOptimistic:i?t:void 0,onQueryUpdated:g,keepRootFields:T})}).subscribe({next:function(r){o.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,p.Cl)((0,p.Cl)({},r),{data:o.maskOperation({document:u,data:r.data,fetchPolicy:_,id:t})}))},error:function(e){n&&(n.loading=!1,n.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),r(e instanceof nH?e:new nH({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&im(n,e.errorPolicy)){if(nX(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),nX(n)&&rA(n.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),s=void 0;a.result&&(s=nZ(a.result,n)),void 0!==s&&(n.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&ig.call(u,s)){var c=u[s],l=r.queries.get(o),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var y=c(d,{mutationResult:n,queryName:f&&tS(f)||void 0,queryVariables:h});y&&i.push({result:y,dataId:"ROOT_QUERY",query:f,variables:h})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a,s=e.update,u=!(nX(a=n)||"hasNext"in a&&"data"in a)||nX(n)&&!n.hasNext;if(s){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(n=(0,p.Cl)((0,p.Cl)({},n),{data:c.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&s(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return c.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:ib}):e;return n!==ib&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,p.Cl)((0,p.Cl)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&x.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:e&&rv(["client","export"],e,!0),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:rv(["nonreactive"],e),nonReactiveQuery:(tk(e),tl(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,p.Cl)((0,p.Cl)({},e),{directives:(0,p.fX)((0,p.fX)([],e.directives||[],!0),[{kind:u.DIRECTIVE,name:{kind:u.NAME,value:"nonreactive"}}
1],!1)})}})),clientQuery:this.localState.clientQuery(e),serverQuery:rM([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:tI(tw(e)),asQuery:(0,p.Cl)((0,p.Cl)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,p.Cl)((0,p.Cl)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,p.Cl)((0,p.Cl)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,p.Cl)((0,p.Cl)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new iv(this),n=new ic({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,ic.inactiveOnCreation.getValue()||this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),x(e.query,30),x("Document"===e.query.kind,31),x(!e.returnPartialData,32),x(!e.pollInterval,33);var n=this.transform(e.query);return this.fetchQuery(t,(0,p.Cl)((0,p.Cl)({},e),{query:n})).then(function(i){return i&&(0,p.Cl)((0,p.Cl)({},i),{data:r.maskOperation({document:n,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(N(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=l.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)n.set(e,e),i.set(e,!1);else if(tt(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){var r=rX(t.transform(e));n.set(r,tS(e)),i.set(r,!1)}else tt(e)&&e.query&&o.add(e)}),this.queries.forEach(function(t,n){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void r.set(n,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&i.has(s)||a&&i.has(rX(a)))&&(r.set(n,o),s&&i.set(s,!0),a&&i.set(rX(a),!0))}}),o.size&&o.forEach(function(e){var n=S("legacyOneTimeQuery"),i=t.getOrCreateQuery(n).init({document:e.query,variables:e.variables}),o=new ic({queryManager:t,queryInfo:i,options:(0,p.Cl)((0,p.Cl)({},e),{fetchPolicy:"network-only"})});x(o.queryId===n),i.setObservableQuery(o),r.set(n,o)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(e,t){if(!e){var r=n.get(t);r?!1!==globalThis.__DEV__&&x.warn(35,r):!1!==globalThis.__DEV__&&x.warn(36)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,u=void 0===s?{}:s,c=e.extensions,l=void 0===c?{}:c;r=this.transform(r),n=this.getVariables(r,n);var f=function(e){return t.getObservableFromLink(r,u,e,l).map(function(n){"no-cache"!==i&&(im(n,a)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=rA(ie(n)),s=!!n.extensions&&Array.isArray(n.extensions[nY]);if(o||s){var u={};if(o&&(u.graphQLErrors=n.errors),s&&(u.protocolErrors=n.extensions[nY]),"none"===a||s)throw new nH(u)}return"ignore"===a&&delete n.errors,n})};
1if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,u).then(f);return new te(function(e){var t=null;return h.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var o,a,s=this;void 0===i&&(i=null!=(o=null==t?void 0:t.queryDeduplication)?o:this.queryDeduplication);var u=this.getDocumentInfo(e),c=u.serverQuery,l=u.clientQuery;if(c){var f=this.inFlightLinkObservables,h=this.link,d={query:c,variables:r,operationName:tS(c)||void 0,context:this.prepareContext((0,p.Cl)((0,p.Cl)({},t),{forceFetch:!i})),extensions:n};if(t=d.context,i){var y=rX(c),v=eV(r),m=f.lookup(y,v);if(!(a=m.observable)){var g=new io([nU(h,d)]);a=m.observable=g,g.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?g.beforeNext(e):f.remove(y,v)})}}else a=new io([nU(h,d)])}else a=new io([te.of({data:{}})]),t=this.prepareContext(t);return l&&(a=n7(a,function(e){return s.localState.runResolvers({document:l,remoteResult:e,context:t,variables:r})})),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return n7(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=ie(o),s=a.length>0,u=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===u)throw e.markError(new nH({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:l.ready};return s&&"none"===u&&(c.data=void 0),s&&"ignore"!==u&&(c.errors=a,c.networkStatus=l.error),c},function(t){var r=n$(t)?t:new nH({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,a=this;void 0===r&&(r=l.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,f=void 0===c?u&&u.fetchPolicy||"cache-first":c,h=t.errorPolicy,p=void 0===h?u&&u.errorPolicy||"none":h,d=t.returnPartialData,y=t.notifyOnNetworkStatusChange,v=t.context,m=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:p,returnPartialData:void 0!==d&&d,notifyOnNetworkStatusChange:void 0!==y&&y,context:void 0===v?{}:v}),g=function(n){m.variables=n;var i=a.fetchQueryByPolicy(e,m,r);return"standby"!==m.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},b=function(){return a.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){b(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(m.query).hasClientExports)i=new io(this.localState.addExportedVariables(m.query,m.variables,m.context).then(g).then(function(e){return e.sources})),o=!0;else{var _=g(m.variables);o=_.fromLink,i=new io(_.sources)}return i.promise.then(b,b),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?S("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof iv&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}
1),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;u&&(a||(a=t.cache.diff(i.queryInfo.getDiffOptions())),n=u(i,a,o)),u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.maskOperation=function(e){var t,r,n,i=e.document,o=e.data;if(!1!==globalThis.__DEV__){var a,s=e.fetchPolicy,u=e.id,c=null==(t=tw(i))?void 0:t.operation,l=(null!=(r=null==c?void 0:c[0])?r:"o")+u;!this.dataMasking||"no-cache"!==s||(a=!0,tl(i,{FragmentSpread:function(e){if(!(a=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return tc}}),a)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&x.warn(37,null!=(n=tS(i))?n:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&rk(),e;var n,i=tw(t);return(x(i,51),null==e)?e:rS(e,i.selectionSet,{operationType:i.operation,operationName:null==(n=i.name)?void 0:n.value,fragmentMap:th(tC(t)),cache:r,mutableTargets:new r_,knownChanged:new rE})}(o,i,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?rC(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,f=t.context,h=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:i,variables:o,networkStatus:r});var y=function(){return e.getDiff()},v=function(t,r){void 0===r&&(r=e.networkStatus||l.loading);var a=t.result;!1===globalThis.__DEV__||c||Z(a,{})||ih(t.missing);var s=function(e){return te.of((0,p.Cl)({data:e,loading:ia(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:a},context:f,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===u&&r===l.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},m="no-cache"===a?0:r===l.refetch&&"merge"!==s?1:2,g=function(){return n.getResultsFromLink(e,m,{query:i,variables:o,context:f,fetchPolicy:a,errorPolicy:u})},b=h&&"number"==typeof d&&d!==r&&ia(r);switch(a){default:case"cache-first":var _=y();if(_.complete)return{fromLink:!1,sources:[v(_,e.markReady())]};if(c||b)return{fromLink:!0,sources:[v(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var _=y();if(_.complete||c||b)return{fromLink:!0,sources:[v(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[v(y(),e.markReady())]};case"network-only":if(b)return{fromLink:!0,sources:[v(y()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(b)return{fromLink:!0,sources:[v(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new iv(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,p.Cl)((0,p.Cl)((0,p.Cl)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function iE(e){return e.kind===u.FIELD||e.kind===u.FRAGMENT_SPREAD||e.kind===u.INLINE_FRAGMENT}var iO=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=rf(t.resolvers,e)}):this.resolvers=rf(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,p.sH)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,p.YH)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then(function(e){return(0,p.Cl)((0,p.Cl)({},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 rv(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return rq(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,p.Cl)((0,p.Cl)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,p.sH)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,p.YH)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,p.Cl)((0,p.Cl)({},t),e.exportedVariables)})]:[2,(0,p.Cl)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return tl(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 tc}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===tN(e).operation?e:tl(e,{OperationDefinition:{enter:function(e){return(0,p.Cl)((0,p.Cl)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,p.sH)(this,arguments,void 0,function(e,t,r,n,i,o){var a,s,u,c,l,f,h,d,y;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,p.YH)(this,function(v){return a=tN(e),s=th(tC(e)),u=this.collectSelectionsToResolve(a,s),l=(c=a.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",f=this,h=f.cache,d=f.client,y={fragmentMap:s,context:(0,p.Cl)((0,p.Cl)({},r),{cache:h,client:d}),variables:n,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,y).then(function(e){return{result:e,exportedVariables:y.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,p.sH)(this,void 0,void 0,function(){var i,o,a,s,u,c=this;return(0,p.YH)(this,function(l){return i=n.fragmentMap,o=n.context,a=n.variables,s=[r],u=function(e){return(0,p.sH)(c,void 0,void 0,function(){var u,c;return(0,p.YH)(this,function(l){return(t||n.selectionsToResolve.has(e))&&ry(e,a)?tT(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&s.push(((r={})[tE(e)]=t,r))})]:("InlineFragment"===e.kind?u=e:x(u=i[e.name.value],19,e.name.value),u&&u.typeCondition&&(c=u.typeCondition.name.value,n.fragmentMatcher(r,c,o)))?[2,this.resolveSelectionSet(u.selectionSet,t,r,n).then(function(e){s.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return rh(s)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,p.sH)(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f,h,d=this;return(0,p.YH)(this,function(p){return r?(i=n.variables,s=(o=e.name.value)!==(a=tE(e)),c=Promise.resolve(u=r[a
1]||r[o]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(l=r.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[l])&&(h=f[s?o:a])&&(c=Promise.resolve(nd.withValue(this.cache,h,[r,t_(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then(function(r){if(void 0===r&&(r=u),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&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,o,a=null!=(o=null==(i=e.directives)?void 0:i.some(function(e){return"client"===e.name.value}))&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),tl(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach(function(e){r(e)&&iE(e)&&o.add(e)})},FragmentSpread:function(n,i,a,s,u){var c=t[n.name.value];x(c,20,n.name.value);var l=e(c);l.size>0&&(u.forEach(function(e){r(e)&&iE(e)&&o.add(e)}),o.add(n),l.forEach(function(e){o.add(e)}))}})}return n.get(i)}(e)},e}();function iT(e,t){return rZ(e,t,t.variables&&{variables:rZ((0,p.Cl)((0,p.Cl)({},e&&e.variables),t.variables))})}var ik=!1,iw=function(){function e(e){var t,r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw N(16);var n=e.uri,i=e.credentials,o=e.headers,a=e.cache,s=e.documentTransform,u=e.ssrMode,c=void 0!==u&&u,l=e.ssrForceFetchDelay,f=void 0===l?0:l,h=e.connectToDevTools,d=e.queryDeduplication,y=void 0===d||d,v=e.defaultOptions,m=e.defaultContext,g=e.assumeImmutableResults,b=void 0===g?a.assumeImmutableResults:g,_=e.resolvers,E=e.typeDefs,T=e.fragmentMatcher,k=e.name,w=e.version,S=e.devtools,C=e.dataMasking,D=e.link;D||(D=n?new n5({uri:n,credentials:i,headers:o}):tP.empty()),this.link=D,this.cache=a,this.disableNetworkFetches=c||f>0,this.queryDeduplication=y,this.defaultOptions=v||Object.create(null),this.typeDefs=E,this.devtoolsConfig=(0,p.Cl)((0,p.Cl)({},S),{enabled:null!=(t=null==S?void 0:S.enabled)?t:h}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),f&&setTimeout(function(){return r.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=O,this.localState=new iO({cache:a,client:this,resolvers:_,fragmentMatcher:T}),this.queryManager=new i_({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:m,documentTransform:s,queryDeduplication:y,ssrMode:c,dataMasking:!!C,clientAwareness:{name:k,version:w},localState:this.localState,assumeImmutableResults:b,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!ik&&!1!==globalThis.__DEV__&&(ik=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&x.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
1,enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=iT(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,p.Cl)((0,p.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=iT(this.defaultOptions.query,e)),x("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,p.Cl)((0,p.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=iT(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(n){return(0,p.Cl)((0,p.Cl)({},n),{data:t.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,p.Cl)((0,p.Cl)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return nU(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&x.debug(18,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(iw.prototype.getMemoryInternals=eN);let iS=/\r\n|[\n\r]/g;function iC(e,t){let r=0,n=1;for(let i of e.body.matchAll(iS)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function iD(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,u=t.column+s,c=`${e.name}:${a}:${u}
2`,l=n.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){let e=Math.floor(u/80),t=[];for(let e=0;e<f.length;e+=80)t.push(f.slice(e,e+80));return c+ix([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(u%80)],["|",t[e+1]]])}return c+ix([[`${a-1} |`,l[i-1]],[`${a} |`,f],["|","^".padStart(u)],[`${a+1} |`,l[i+1]]])}function ix(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}
2class iN extends Error{constructor(e,...t){var r,n,i;let{nodes:o,source:a,positions:s,path:u,originalError:c,extensions:l}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=c?c:void 0,this.nodes=iI(Array.isArray(o)?o:o?[o]:void 0);let f=iI(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==f||null==(n=f[0])?void 0:n.source,this.positions=null!=s?s:null==f?void 0:f.map(e=>e.start),this.locations=s&&a?s.map(e=>iC(a,e)):null==f?void 0:f.map(e=>iC(e.source,e.start));let h=!function(e){return"object"==typeof e&&null!==e}(null==c?void 0:c.extensions)||null==c?void 0:c.extensions;this.extensions=null!=(i=null!=l?l:h)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,iN):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+="\n\n"+iD((t=r.loc).source,iC(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+iD(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function iI(e){return void 0===e||0===e.length?void 0:e}function iR(e,t,r){return new iN(`Syntax Error: ${r}`,{source:e,positions:[t]})}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(f||(f={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(h||(h={}));class iA{constructor(e){let t=new to(h.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==h.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,i=t;for(;i<n;){let t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if(10===e||13===e)break;if(iF(e))++i;else if(iP(r,i))i+=2;else break}return iL(e,h.COMMENT,t,i,r.slice(t+1,i))}(e,i);case 33:return iL(e,h.BANG,i,i+1);case 36:return iL(e,h.DOLLAR,i,i+1);case 38:return iL(e,h.AMP,i,i+1);case 40:return iL(e,h.PAREN_L,i,i+1);case 41:return iL(e,h.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return iL(e,h.SPREAD,i,i+3);break;case 58:return iL(e,h.COLON,i,i+1);case 61:return iL(e,h.EQUALS,i,i+1);case 64:return iL(e,h.AT,i,i+1);case 91:return iL(e,h.BRACKET_L,i,i+1);case 93:return iL(e,h.BRACKET_R,i,i+1);case 123:return iL(e,h.BRACE_L,i,i+1);case 124:return iL(e,h.PIPE,i,i+1);case 125:return iL(e,h.BRACE_R,i,i+1);case 34:if(34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2))return function(e,t){let r=e.source.body,n=r.length,i=e.lineStart,o=t+3,a=o,s="",u=[];for(;o<n;){let n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){s+=r.slice(a,o),u.push(s);let n=iL(e,h.BLOCK_STRING,t,o+3,(function(e){var t,r;let n=Number.MAX_SAFE_INTEGER,i=null,o=-1;for(let t=0;t<e.length;++t){let a=e[t],s=function(e){let t=0;for(;t<e.length&&rL(e.charCodeAt(t));)++t;return t}(a);s!==a.length&&(i=null!=(r=i)?r:t,o=t,0!==t&&s<n&&(n=s))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!=(t=i)?t:0,o+1)})(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,n}if(92===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)&&34===r.charCodeAt(o+3)){s+=r.slice(a,o),a=o+1,o+=4;continue}if(10===n||13===n){s+=r.slice(a,o),u.push(s),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;continue}if(iF(n))++o;else if(iP(r,o))o+=2;
2else throw iR(e.source,o,`Invalid character within String: ${iq(e,o)}.`)}throw iR(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let r=e.source.body,n=r.length,i=t+1,o=i,a="";for(;i<n;){let n=r.charCodeAt(i);if(34===n)return a+=r.slice(o,i),iL(e,h.STRING,t,i+1,a);if(92===n){a+=r.slice(o,i);let t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!iF(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|iB(e))<0)break}throw iR(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,i):function(e,t){let r=e.source.body,n=iQ(r,t+2);if(iF(n))return{value:String.fromCodePoint(n),size:6};if(iM(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=iQ(r,t+8);if(ij(e))return{value:String.fromCodePoint(n,e),size:12}}throw iR(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,i):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw iR(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===n||13===n)break;if(iF(n))++i;else if(iP(r,i))i+=2;else throw iR(e.source,i,`Invalid character within String: ${iq(e,i)}.`)}throw iR(e.source,i,"Unterminated string.")}(e,i)}if(rV(t)||45===t)return function(e,t,r){let n=e.source.body,i=t,o=r,a=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(rV(o=n.charCodeAt(++i)))throw iR(e.source,i,`Invalid number, unexpected digit after 0: ${iq(e,i)}.`)}else i=iV(e,i,o),o=n.charCodeAt(i);if(46===o&&(a=!0,o=n.charCodeAt(++i),i=iV(e,i,o),o=n.charCodeAt(i)),(69===o||101===o)&&(a=!0,(43===(o=n.charCodeAt(++i))||45===o)&&(o=n.charCodeAt(++i)),i=iV(e,i,o),o=n.charCodeAt(i)),46===o||rB(o))throw iR(e.source,i,`Invalid number, expected digit but got: ${iq(e,i)}.`);return iL(e,a?h.FLOAT:h.INT,t,i,n.slice(t,i))}(e,i,t);if(rB(t))return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){var o;if(rQ(o=r.charCodeAt(i))||rV(o)||95===o)++i;else break}return iL(e,h.NAME,t,i,r.slice(t,i))}(e,i);throw iR(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":iF(t)||iP(r,i)?`Unexpected character: ${iq(e,i)}.`:`Invalid character: ${iq(e,i)}.`)}return iL(e,h.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===h.COMMENT);return e}}function iF(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function iP(e,t){return iM(e.charCodeAt(t))&&ij(e.charCodeAt(t+1))}function iM(e){return e>=55296&&e<=56319}function ij(e){return e>=56320&&e<=57343}function iq(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return h.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function iL(e,t,r,n,i){let o=e.line,a=1+r-e.lineStart;return new to(t,r,n,o,a,i)}function iV(e,t,r){if(!rV(r))throw iR(e.source,t,`Invalid number, expected digit but got: ${iq(e,t)}.`);let n=e.source.body,i=t+1;for(;rV(n.charCodeAt(i));)++i;return i}function iQ(e,t){return iB(e.charCodeAt(t))<<12|iB(e.charCodeAt(t+1))<<8|iB(e.charCodeAt(t+2))<<4|iB(e.charCodeAt(t+3))}function iB(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}let iU=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=tn(e,[]);throw Error(`Cannot use ${n} "${t}" from another module or realm.
3
4Ensure that there is only one instance of "graphql" in the node_modules
5directory. If different versions of "graphql" are the dependencies of other
6relied on modules, use "resolutions" to ensure only one version is installed.
7
8https://yarnpkg.com/en/docs/selective-version-resolutions
9
10Duplicate "graphql" modules cannot be used at the same time since different
11versions may have different capabilities and behavior. The data from one
12version used in the function from another could produce confusing and
13spurious results.`)}}return!1};class iz{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||tr(!1,`Body must be a string. Received: ${tn(e,[])}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||tr(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||tr(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class iW{constructor(e,t={}){let r=iU(e,iz)?e:new iz(e);this._lexer=new iA(r),this._options=t,this._tokenCounter=0}
vendor: 5,034 bytes, line 13
13parseName(){let e=this.expectToken(h.NAME);return this.node(e,{kind:u.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:u.DOCUMENT,definitions:this.many(h.SOF,this.parseDefinition,h.EOF)})}parseDefinition(){if(this.peek(h.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===h.NAME){switch(t.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()}if(e)throw iR(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(h.BRACE_L))return this.node(t,{kind:u.OPERATION_DEFINITION,operation:s.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType();return this.peek(h.NAME)&&(e=this.parseName()),this.node(t,{kind:u.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(h.NAME);switch(e.value){case"query":return s.QUERY;case"mutation":return s.MUTATION;case"subscription":return s.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(h.PAREN_L,this.parseVariableDefinition,h.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:u.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(h.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(h.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(h.DOLLAR),this.node(e,{kind:u.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:u.SELECTION_SET,selections:this.many(h.BRACE_L,this.parseSelection,h.BRACE_R)})}parseSelection(){return this.peek(h.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(h.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:u.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(h.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(h.PAREN_L,t,h.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(h.COLON),this.node(t,{kind:u.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(h.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(h.NAME)?this.node(e,{kind:u.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:u.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:u.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:u.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case h.BRACKET_L:return this.parseList(e);case h.BRACE_L:return this.parseObject(e);case h.INT:return this.advanceLexer(),this.node(t,{kind:u.INT,value:t.value});case h.FLOAT:return this.advanceLexer(),this.node(t,{kind:u.FLOAT,value:t.value});case h.STRING:case h.BLOCK_STRING:return this.parseStringLiteral();case h.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:u.BOOLEAN,value:!0});case"false":return this.node(t,{kind:u.BOOLEAN,value:!1});case"null":return this.node(t,{kind:u.NULL});default:return this.node(t,{kind:u.ENUM,value:t.value})}
13case h.DOLLAR:if(e){if(this.expectToken(h.DOLLAR),this._lexer.token.kind===h.NAME){let e=this._lexer.token.value;throw iR(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:u.STRING,value:e.value,block:e.kind===h.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:u.LIST,values:this.any(h.BRACKET_L,t,h.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:u.OBJECT,fields:this.any(h.BRACE_L,t,h.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(h.COLON),this.node(t,{kind:u.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(h.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(h.AT),this.node(t,{kind:u.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(h.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(h.BRACKET_R),e=this.node(t,{kind:u.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(h.BANG)?this.node(t,{kind:u.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:u.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(h.STRING)||this.peek(h.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);return this.node(e,{kind:u.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(h.COLON);let r=this.parseNamedType();return this.node(e,{kind:u.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:u.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:u.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(h.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseFieldDefinition,h.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(h.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:u.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(h.PAREN_L,this.parseInputValueDef,h.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(h.COLON);let i=this.parseTypeReference();this.expectOptionalToken(h.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:u.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:u.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:u.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(h.EQUALS)?this.delimitedMany(h.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:u.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(h.BRACE_L,this.parseEnumValueDefinition,h.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:u.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw iR(this._lexer.source,this._lexer.token.start,`${iK(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:u.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(h.BRACE_L,this.parseInputValueDef,h.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===h.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)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:u.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:u.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:u.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:u.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:u.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:u.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:u.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();
13this.expectKeyword("directive"),this.expectToken(h.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:u.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(h.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(f,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new ti(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw iR(this._lexer.source,t.start,`Expected ${iG(e)}, found ${iK(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===h.NAME&&t.value===e)this.advanceLexer();else throw iR(this._lexer.source,t.start,`Expected "${e}", found ${iK(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===h.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return iR(this._lexer.source,t.start,`Unexpected ${iK(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==h.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw iR(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function iK(e){let t=e.value;return iG(e.kind)+(null!=t?` "${t}"`:"")}function iG(e){return e===h.BANG||e===h.DOLLAR||e===h.AMP||e===h.PAREN_L||e===h.PAREN_R||e===h.SPREAD||e===h.COLON||e===h.EQUALS||e===h.AT||e===h.BRACKET_L||e===h.BRACKET_R||e===h.BRACE_L||e===h.PIPE||e===h.BRACE_R?`"${e}"`:e}var iY=new Map,i$=new Map,iJ=!0,iH=!1;function iX(e){return e.replace(/[\s,]+/g," ").trim()}function iZ(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=iX(e);if(!iY.has(t)){var r,n,i,o,a,s=new iW(e,{experimentalFragmentVariables:iH,allowLegacyFragmentVariables:iH}).parseDocument();if(!s||"Document"!==s.kind)throw Error("Not a valid GraphQL document.");iY.set(t,((o=new Set((r=new Set,n=[],s.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=iX((t=e.loc).source.body.substring(t.start,t.end)),a=i$.get(i);a&&!a.has(o)?iJ&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||i$.set(i,a=new Set),a.add(o),r.has(o)||(r.add(o),n.push(e))}else n.push(e)}),i=(0,p.Cl)((0,p.Cl)({},s),{definitions:n})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&o.add(r)})}),(a=i.loc)&&(delete a.startToken,delete a.endToken),i))}return iY.get(t)}(n)}var i0={gql:iZ,resetCaches:function(){iY.clear(),i$.clear()},disableFragmentWarnings:function(){iJ=!1},enableExperimentalFragmentVariables:function(){iH=!0},disableExperimentalFragmentVariables:function(){iH=!1}};!function(e){e.gql=i0.gql,e.resetCaches=i0.resetCaches,e.disableFragmentWarnings=i0.disableFragmentWarnings,e.enableExperimentalFragmentVariables=i0.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=i0.disableExperimentalFragmentVariables}(iZ||(iZ={})),iZ.default=iZ,TransformStream;var i1=class extends TransformStream{constructor(){super({transform(e,t){"string"!=typeof e&&(e=new TextDecoder().decode(e)),t.enqueue(JSON.parse(e))}})}},i2=Symbol.for("apollo.tee.readableStreamController"),i3=Symbol.for("apollo.read.readableStream");function i4(e){return{...e,query:iZ(rX(iZ(e.query)))}}Symbol.for("apollo.source_package"),Symbol.for("apollo.hook.wrappers");var i8=Symbol.for("apollo.dataTransport.skip"),i6=new WeakMap;function i9(e){let{queryRef:t,children:r}=e,n=U(),{$__apollo_queryRef:{options:i,stream:o,queryKey:a}}=t;if(!i6.has(t)){let e=i4(i),r=[e.query,eV(e.variables),a];i6.set(t,{cacheKey:r}),Object.assign(t,eu(ed(n).getQueryRef(r,()=>{var t;return n.watchQuery({...e,fetchPolicy:"network-only",context:Object.assign((t=o.pipeThrough(new i1),Ob
13ject.assign({...e.context,queryDeduplication:!0},{[i3]:t})),{[i8]:!0})})})))}return!function(e,t){var r,n,i;void 0===t&&(t=Object.create(null)),((i=(n=(r=U("object"==typeof t?t.client:void 0).queryManager)&&r[ey])&&n.useBackgroundQuery)?i(eU):eU)(e,t)}(...(0,ez.useMemo)(()=>{let{query:e,...r}=i4(t.$__apollo_queryRef.options);return[e,{...r,queryKey:t.$__apollo_queryRef.queryKey}]},[t.$__apollo_queryRef])),r}let i5=!0},20312:(e,t,r)=>{e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(65702))},38276:(e,t,r)=>{r.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,YH:()=>u,fX:()=>c,sH:()=>s});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function u(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){var c=[s,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}Object.create;function c(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError}}]);

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