PageSourceSearch

https://www.wefact.nl/_next/static/chunks/870.fa578b240df6bbf3.js

js wefact.nl collected 2026-10-02 15:02:12 UTC 155,050 bytes, 13 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[870],{53870:(e,t,r)=>{let i,n,s;r.r(t),r.d(t,{built_for_browser:()=>nj,default:()=>nM});var o,a,l,u,c,h,f=r(12115);function p(e){try{return e()}catch{}}let d=p(()=>globalThis)||p(()=>window)||p(()=>self)||p(()=>global)||p(function(){return p.constructor("return this")()}),y="4.0.5",m=new Map;function b(e){let t=m.get(e)||1;return m.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}let v="Invariant Violation";class g extends Error{constructor(e=v){super(e),this.name=v,Object.setPrototypeOf(this,g.prototype)}}let E=["debug","log","warn","error","silent"],k=E.indexOf("silent");function w(e,...t){if(!e)throw T(...t)}function O(e){return function(t,...r){if(E.indexOf(e)>=k){let i=console[e]||console.log;if("number"==typeof t){let e=t;(t=N(e))||(t=x(e,r),r=[])}i(t,...r)}}}function T(e,...t){return new g(N(e,t)||x(e,t))}w.debug=O("debug"),w.log=O("log"),w.warn=O("warn"),w.error=O("error");let S=Symbol.for("ApolloErrorMessageHandler_"+y);function _(e){if("string"==typeof e)return e;try{return(function(e,t=0){let r=b("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?r:t,t).split(JSON.stringify(r)).join("<undefined>")})(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function N(e,t=[]){if(e)return d[S]&&d[S](e,t.map(_))}function x(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,_(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:y,message:e,args:t.map(_)}))}`}let I=Symbol.for("__APOLLO_CONTEXT__");function D(){w(!0,37);let e=f.createContext[I];return e||(Object.defineProperty(f.createContext,I,{value:e=f.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}function A(e){let t=f.useContext(D()),r=e||t.client;return w(!!r,28),r}let C={...d[Symbol.for("apollo.cacheSize")]};function R(){}let F="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},P="undefined"!=typeof WeakMap?WeakMap:Map,M="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:R,unregister:R}};class j{constructor(e=1/0,t=R){this.max=e,this.dispose=t,this.map=new P,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 F(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new M(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 L(){}class V{constructor(e=1/0,t=L){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)}}
1let q=new WeakSet;function U(e){!(e.size<=(e.max||-1))&&(q.has(e)||(q.add(e),setTimeout(()=>{e.clean(),q.delete(e)},100)))}let B=function(e,t){let r=new j(e,t);return r.set=function(e,t){let r=j.prototype.set.call(this,e,t);return U(this),r},r},Q=function(e,t){let r=new V(e,t);return r.set=function(e,t){let r=V.prototype.set.call(this,e,t);return U(this),r},r},z=Object.assign(function(e){return JSON.stringify(e,W)},{reset(){i=new Q(C.canonicalStringify||1e3)}});function W(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let r=Object.keys(t);if(r.every($))return t;let n=JSON.stringify(r),s=i.get(n);if(!s){r.sort();let e=JSON.stringify(r);s=i.get(e)||r,i.set(n,s),i.set(e,s)}let o=Object.create(e);return s.forEach(e=>{o[e]=t[e]}),o}}return t}function $(e,t,r){return 0===t||r[t-1]<=e}z.reset();let K=()=>Object.create(null),{forEach:G,slice:Y}=Array.prototype,{hasOwnProperty:J}=Object.prototype;class H{constructor(e=!0,t=K){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return G.call(e,e=>t=t.getChildTrie(e)),J.call(t,"data")?t.data:t.data=this.makeData(Y.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,i=e.length;t&&r<i;++r){let i=t.mapFor(e[r],!1);t=i&&i.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],i=this.mapFor(r,!1),n=i&&i.get(r);n&&(t=n.removeArray(Y.call(e,1)),n.data||n.weak||n.strong&&n.strong.size||i.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 H(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:X,hasOwnProperty:Z}=Object.prototype,ee=Function.prototype.toString,et=new Map;function er(e,t){try{return function e(t,r){if(t===r)return!0;let i=X.call(t);if(i!==X.call(r))return!1;switch(i){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(eo(t,r))return!0;let i=ei(t),n=ei(r),s=i.length;if(s!==n.length)return!1;for(let e=0;e<s;++e)if(!Z.call(r,i[e]))return!1;for(let n=0;n<s;++n){let s=i[n];if(!e(t[s],r[s]))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(eo(t,r))return!0;let n=t.entries(),s="[object Map]"===i;for(;;){let t=n.next();if(t.done)break;let[i,o]=t.value;if(!r.has(i)||s&&!e(o,r.get(i)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":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=ee.call(t);if(e!==ee.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,es)}}return!1}(e,t)}finally{et.clear()}}function ei(e){return Object.keys(e).filter(en,e)}function en(e){return void 0!==this[e]}let es="{ [native code] }";function eo(e,t){let r=et.get(e);if(r){if(r.has(t))return!0}else et.set(e,r=new Set);return r.add(t),!1}function ea(e){let t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function el(e){return"status"in e||(e.status="pending",e.then(t=>{"pending"===e.status&&(e.status="fulfilled",e.value=t)},t=>{"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}class eu{observable;key={};promise;resolve;reject;subscription;listeners=new Set;autoDisposeTimeoutId;references=0;constructor(e,t,r){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);let i=this.getDiff(e,t),n=()=>{this.references||(this.autoDisposeTimeoutId=setTimeout(this.dispose,r.autoDisposeTimeoutMs??3e4))};this.promise=i.complete?ea(i.result):this.createPendingPromise(),this.subscribeToFragment(),this.promise.then(n,n)}listen(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}retain(){this.references++,clearTimeout(this.autoDisposeTimeoutId);let e=!1;return()=>{e||(e=!0,this.references--,setTimeout(()=>{this.references||this.dispose()}))}}dispose(){this.subscription.unsubscribe()}onDispose(){}subscribeToFragment(){this.subscription=this.observable.subscribe(this.handleNext.bind(this),this.handleError.bind(this)),this.subscription.add(this.onDispose)}
1handleNext(e){switch(this.promise.status){case"pending":if(e.complete)return this.resolve?.(e.data);this.deliver(this.promise);break;case"fulfilled":if(er(this.promise.value,e.data))return;this.promise=e.complete?ea(e.data):this.createPendingPromise(),this.deliver(this.promise)}}handleError(e){this.reject?.(e)}deliver(e){this.listeners.forEach(t=>t(e))}createPendingPromise(){return el(new Promise((e,t)=>{this.resolve=e,this.reject=t}))}getDiff(e,t){let{cache:r}=e,{from:i,fragment:n,fragmentName:s}=t,o=r.diff({...t,query:r.getFragmentDoc(e.transform(n),s),returnPartialData:!0,id:i,optimistic:!0});return{...o,result:e.queryManager.maskFragment({fragment:n,fragmentName:s,data:o.result})}}}function ec(e){return"function"==typeof e}function eh(e){return function(t){if(ec(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}var ef=function(e,t){return(ef=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 ep(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}ef(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ed=function(){return(ed=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function ey(e,t){var r,i,n,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){var u=[a,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(s=0)),s;)try{if(r=1,i&&(n=2&u[0]?i.return:u[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,u[1])).done)return n;switch(i=0,n&&(u=[2&u[0],n.value]),u[0]){case 0:case 1:n=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,i=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!n||u[1]>n[0]&&u[1]<n[3])){s.label=u[1];break}if(6===u[0]&&s.label<n[1]){s.label=n[1],n=u;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(u);break}n[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],i=0}finally{r=n=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function em(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eb(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function ev(e,t,r){if(r||2==arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function eg(e){return this instanceof eg?(this.v=e,this):new eg(e)}function eE(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var ek=eE(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}});function ew(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var eO=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,i,n,s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=em(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);var l=this.initialTeardown;
1if(ec(l))try{l()}catch(e){n=e instanceof ek?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=em(u),h=c.next();!h.done;h=c.next()){var f=h.value;try{e_(f)}catch(e){n=null!=n?n:[],e instanceof ek?n=ev(ev([],eb(n)),eb(e.errors)):n.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}if(n)throw new ek(n)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)e_(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ew(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&ew(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),eT=eO.EMPTY;function eS(e){return e instanceof eO||e&&"closed"in e&&ec(e.remove)&&ec(e.add)&&ec(e.unsubscribe)}function e_(e){ec(e)?e():e.unsubscribe()}var eN={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ex={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var n=ex.delegate;return(null==n?void 0:n.setTimeout)?n.setTimeout.apply(n,ev([e,t],eb(r))):setTimeout.apply(void 0,ev([e,t],eb(r)))},clearTimeout:function(e){var t=ex.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function eI(e){ex.setTimeout(function(){var t=eN.onUnhandledError;if(t)t(e);else throw e})}function eD(){}var eA=eC("C",void 0,void 0);function eC(e,t,r){return{kind:e,value:t,error:r}}var eR=null;function eF(e){if(eN.useDeprecatedSynchronousErrorHandling){var t=!eR;if(t&&(eR={errorThrown:!1,error:null}),e(),t){var r=eR,i=r.errorThrown,n=r.error;if(eR=null,i)throw n}}else e()}var eP=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,eS(t)&&t.add(r)):r.destination=eB,r}return ep(t,e),t.create=function(e,t,r){return new eV(e,t,r)},t.prototype.next=function(e){this.isStopped?eU(eC("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?eU(eC("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?eU(eA,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(eO),eM=Function.prototype.bind;function ej(e,t){return eM.call(e,t)}var eL=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){eq(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){eq(e)}else eq(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){eq(e)}},e}(),eV=function(e){function t(t,r,i){var n,s,o=e.call(this)||this;return ec(t)||!t?n={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=i?i:void 0}:o&&eN.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return o.unsubscribe()},n={next:t.next&&ej(t.next,s),error:t.error&&ej(t.error,s),complete:t.complete&&ej(t.complete,s)}):n=t,o.destination=new eL(n),o}return ep(t,e),t}(eP);function eq(e){if(eN.useDeprecatedSynchronousErrorHandling)eN.useDeprecatedSynchronousErrorHandling&&eR&&(eR.errorThrown=!0,eR.error=e);else eI(e)}function eU(e,t){var r=eN.onStoppedNotification;r&&ex.setTimeout(function(){return r(e,t)})}var eB={closed:!0,next:eD,error:function(e){throw e},complete:eD};function eQ(e,t,r,i,n){return new ez(e,t,r,i,n)}var ez=function(e){function t(t,r,i,n,s,o){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=o,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=n?function(e){try{n(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return ep(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(eP);function eW(e,t){return eh(function(r,i){var n=0;r.subscribe(eQ(i,function(r){return e.call(t,r,n++)&&i.next(r)}))})}let e$=Symbol.for("apollo.internal.queryRef"),eK=Symbol.for("apollo.internal.refPromise");function eG(e){return{[e$]:e,[eK]:e.promise}}let eY=["context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"];class eJ{result;key={};observable;promise;subscription;listeners=new Set;autoDisposeTimeoutId;resolve;reject;references=0;softReferences=0;constructor(e,t){this.handleNext=this.handleNext.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,t.onDispose&&(this.onDispose=t.onDispose),this.setResult(),this.subscribeToQuery();let r=()=>{this.references||(this.autoDisposeTimeoutId=setTimeout(this.dispose,t.autoDisposeTimeoutMs??3e4))};this.promise.then(r,r)}get disposed(){return this.subscription.closed}get watchQueryOptions(){return this.observable.options}reinitialize(){let{observable:e}=this,t=this.watchQueryOptions.fetchPolicy,r="no-cache"===t||"standby"===t;try{r?e.applyOptions({fetchPolicy:"standby"}):(e.reset(),e.applyOptions({fetchPolicy:"cache-first"})),r||this.setResult(),this.subscribeToQuery()}finally{e.applyOptions({fetchPolicy:t})}}retain(){this.references++,clearTimeout(this.autoDisposeTimeoutId);let e=!1;return()=>{e||(e=!0,this.references--,setTimeout(()=>{this.references||this.dispose()}))}}softRetain(){this.softReferences++;let e=!1;return()=>{e||(e=!0,this.softReferences--,setTimeout(()=>{this.softReferences||this.references||this.dispose()}))}}didChangeOptions(e){return eY.some(t=>t in e&&!er(this.watchQueryOptions[t],e[t]))}applyOptions(e){let{fetchPolicy:t}=this.watchQueryOptions;return"standby"===t&&t!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):this.observable.applyOptions(e),this.promise}listen(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}refetch(e){return this.initiateFetch(this.observable.refetch(e))}fetchMore(e){return this.initiateFetch(this.observable.fetchMore(e))}dispose(){this.subscription.unsubscribe()}onDispose(){}handleNext(e){if("pending"===this.promise.status)void 0===e.data&&(e.data=this.result.data,e.data&&(e.dataState="complete")),this.shouldReject(e)?this.reject?.(e.error):(this.result=e,this.resolve?.(e));else{if(e.data===this.result.data&&e.networkStatus===this.result.networkStatus)return;void 0===e.data&&(e.data=this.result.data),this.shouldReject(e)?this.promise=function(e){let t=Promise.reject(e);return t.catch(()=>{}),t.status="rejected",t.reason=e,t}(e.error):(this.result=e,this.promise=ea(e)),this.deliver(this.promise)}}
1deliver(e){this.listeners.forEach(t=>t(e))}initiateFetch(e){return this.promise=this.createPendingPromise(),this.promise.catch(()=>{}),e.then(()=>{setTimeout(()=>{"pending"===this.promise.status&&(this.result=this.observable.getCurrentResult(),this.resolve?.(this.result))})}).catch(e=>this.reject?.(e)),e}subscribeToQuery(){this.subscription=this.observable.pipe(eW(e=>!er(e,this.result))).subscribe(this.handleNext),this.subscription.add(this.onDispose)}setResult(){let e=this.observable.getCurrentResult();er(e,this.result)||(this.result=e,this.promise=e.data?ea(e):this.createPendingPromise())}shouldReject(e){let{errorPolicy:t="none"}=this.watchQueryOptions;return e.error&&"none"===t}createPendingPromise(){return el(new Promise((e,t)=>{this.resolve=e,this.reject=t}))}}class eH{queryRefs=new H;fragmentRefs=new H;options;constructor(e={}){this.options=e}getQueryRef(e,t){let r=this.queryRefs.lookupArray(e);return r.current||(r.current=new eJ(t(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:()=>{delete r.current}})),r.current}getFragmentRef(e,t,r){let i=this.fragmentRefs.lookupArray(e);return i.current||(i.current=new eu(t,r,{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:()=>{delete i.current}})),i.current}add(e,t){this.queryRefs.lookupArray(e).current=t}}let eX=Symbol.for("apollo.suspenseCache"),eZ=Symbol.for("apollo.hook.wrappers"),e0=Symbol.for("apollo.skipToken");function e1(e,t){let r=A(t.client),i=(r[eX]||(r[eX]=new eH(r.defaultOptions.react?.suspense)),r[eX]),n=function({client:e,query:t,options:r}){return function(e,t){let r=f.useRef(void 0);return r.current&&er(r.current.deps,t)||(r.current={value:e(),deps:t}),r.current.value}(()=>{if(r===e0)return{query:t,fetchPolicy:"standby"};let i=r.fetchPolicy||e.defaultOptions.watchQuery?.fetchPolicy||"cache-first",n={...r,fetchPolicy:i,query:t,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0};return r.skip&&(n.fetchPolicy="standby"),n},[e,r,t])}({client:r,query:e,options:t}),{fetchPolicy:s,variables:o}=n,{queryKey:a=[]}=t,l=f.useRef("standby"!==s);l.current||="standby"!==s;let u=[e,z(o),...[].concat(a)],c=i.getQueryRef(u,()=>r.watchQuery(n)),[h,p]=f.useState(eG(c));if(h[e$]!==c&&p(eG(c)),c.didChangeOptions(n)){let e=c.applyOptions(n);h[eK]=e}f.useEffect(()=>{let e=setTimeout(()=>{c.disposed&&i.add(u,c)});return()=>clearTimeout(e)});let d=f.useCallback(e=>{let t=c.fetchMore(e);return p(eG(c)),t},[c]),y=f.useCallback(e=>{let t=c.refetch(e);return p(eG(c)),t},[c]);return f.useEffect(()=>c.softRetain(),[c]),[l.current?h:void 0,{fetchMore:d,refetch:y,subscribeToMore:c.observable.subscribeToMore}]}var e2="function"==typeof Symbol&&Symbol.observable||"@@observable";function e3(e){return e}var e4=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var i=this,n=!function(e){return e&&e instanceof eP||e&&ec(e.next)&&ec(e.error)&&ec(e.complete)&&eS(e)}(e)?new eV(e,t,r):e;return eF(function(){var e=i.operator,t=i.source;n.add(e?e.call(n,t):t?i._subscribe(n):i._trySubscribe(n))}),n},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=e9(t))(function(t,i){var n=new eV({next:function(t){try{e(t)}catch(e){i(e),n.unsubscribe()}},error:i,complete:t});r.subscribe(n)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[e2]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?e3:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=e9(e))(function(e,r){var i;t.subscribe(function(e){return i=e},function(e){return r(e)},function(){return e(i)})})},e.create=function(t){return new e(t)},e}();function e9(e){var t;return null!=(t=null!=e?e:eN.Promise)?t:Promise}var e8=new e4(function(e){return e.complete()});function e5(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}function e6(e,t){if(!e)throw Error(t)}function e7(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:e7(t,r)}else if(Array.isArray(e)){var i=e,n=r;if(0===i.length)return"[]";if(n.length>2)return"[Array]";let t=Math.min(10,i.length),s=i.length-t,o=[];for(let e=0;e<t;++e)o.push(e7(i[e],n));return 1===s?o.push("... 1 more item"):s>1&&o.push(`... ${s} more items`),"["+o.join(", ")+"]"}var s=e,o=r;let a=Object.entries(s);return 0===a.length?"{}":o.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}(s)+"]":"{ "+a.map(([e,t])=>e+": "+e7(t,o)).join(", ")+" }"}(e,t);default:return String(e)}}class te{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 tt{constructor(e,t,r,i,n,s){this.kind=e,this.start=t,this.end=r,this.line=i,this.column=n,this.value=s,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 tr={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"]},ti=new Set(Object.keys(tr));function tn(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&ti.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(o||(o={})),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"}(a||(a={}));let ts=Object.freeze({});function to(e,t,r=tr){let i,n,s,o=new Map;for(let e of Object.values(a))o.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 l=Array.isArray(e),u=[e],c=-1,h=[],f=e,p=[],d=[];do{var y,m,b;let e,a=++c===u.length,v=a&&0!==h.length;if(a){if(n=0===d.length?void 0:p[p.length-1],f=s,s=d.pop(),v)if(l){f=f.slice();let e=0;for(let[t,r]of h){let i=t-e;null===r?(f.splice(i,1),e++):f[i]=r}}else for(let[e,t]of(f={...f},h))f[e]=t;c=i.index,u=i.keys,h=i.edits,l=i.inArray,i=i.prev}else if(s){if(null==(f=s[n=l?c:u[c]]))continue;p.push(n)}if(!Array.isArray(f)){tn(f)||e6(!1,`Invalid AST Node: ${e7(f,[])}.`);let r=a?null==(y=o.get(f.kind))?void 0:y.leave:null==(m=o.get(f.kind))?void 0:m.enter;if((e=null==r?void 0:r.call(t,f,n,s,p,d))===ts)break;if(!1===e){if(!a){p.pop();continue}}else if(void 0!==e&&(h.push([n,e]),!a))if(tn(e))f=e;else{p.pop();continue}}void 0===e&&v&&h.push([n,f]),a?p.pop():(i={inArray:l,index:c,keys:u,edits:h,prev:i},u=(l=Array.isArray(f))?f:null!=(b=r[f.kind])?b:[],c=-1,h=[],s&&d.push(s),s=f)}while(void 0!==i);return 0!==h.length?h[h.length-1][1]:e}let ta=null,tl={},tu=1;function tc(e){try{return e()}catch(e){}}let th="@wry/context:Slot",tf=tc(()=>globalThis)||tc(()=>global)||Object.create(null),tp=tf[th]||Array[th]||function(e){try{Object.defineProperty(tf,th,{value:e,enumerable:!1,writable:!1,
1configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",tu++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=ta;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===tl)break;return e!==ta&&(ta.slots[this.id]=t),!0}return ta&&(ta.slots[this.id]=tl),!1}getValue(){if(this.hasValue())return ta.slots[this.id]}withValue(e,t,r,i){let n={__proto__:null,[this.id]:e},s=ta;ta={parent:s,slots:n};try{return t.apply(i,r)}finally{ta=s}}static bind(e){let t=ta;return function(){let r=ta;try{return ta=t,e.apply(this,arguments)}finally{ta=r}}}static noContext(e,t,r){if(!ta)return e.apply(r,t);{let i=ta;try{return ta=null,e.apply(r,t)}finally{ta=i}}}}),{bind:td,noContext:ty}=tp,tm=new tp,{hasOwnProperty:tb}=Object.prototype,tv=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function tg(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let tE=[];function tk(e,t){if(!e)throw Error(t||"assertion failure")}function tw(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function tO(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class tT{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,++tT.count}peek(){if(1===this.value.length&&!tN(this))return tS(this),this.value[0]}recompute(e){var t,r,i;return tk(!this.recomputing,"already recomputing"),tS(this),tN(this)?(t=this,r=e,tC(t),tm.withValue(t,t_,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{tg(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((i=t).dirty=!1,tN(i)||function(e){tx(e,tD)}(i)),tO(t.value)):tO(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,tx(e,tI),tg(this))}dispose(){this.setDirty(),tC(this),tx(this,(e,t)=>{e.setDirty(),tR(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=tE.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(tv(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),tE.push(this.deps),this.deps=null)}}function tS(e){let t=tm.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tN(e)?tI(t,e):tD(t,e),t}function t_(e,t){let r;e.recomputing=!0;let{normalizeResult:i}=e;i&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),i&&r&&!tw(r,e.value))try{e.value[0]=i(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function tN(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}tT.count=0;function tx(e,t){let r=e.parents.size;if(r){let i=tv(e.parents);for(let n=0;n<r;++n)t(i[n],e)}}function tI(e,t){tk(e.childValues.has(t)),tk(tN(t));let r=!tN(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=tE.pop()||new Set;e.dirtyChildren.add(t),r&&tx(e,tI)}function tD(e,t){tk(e.childValues.has(t)),tk(!tN(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):tw(r,t.value)||e.setDirty(),tA(e,t),tN(e)||tx(e,tD)}function tA(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(tE.length<100&&tE.push(r),e.dirtyChildren=null))}function tC(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{tR(e,r)}),e.forgetDeps(),tk(null===e.dirtyChildren)}function tR(e,t){t.parents.delete(e),e.childValues.delete(t),tA(e,t)}let tF={setDirty:!0,dispose:!0,forget:!0};function tP(e){let t=new Map,r=e&&e.subscribe;function i(e){let i=tm.getValue();if(i){let n=t.get(e);n||t.set(e,n=new Set),i.dependOn(n),"function"==typeof r&&(tg(n),n.unsubscribe=r(e))}}return i.dirty=function(e,r){let i=t.get(e);if(i){let n=r&&tb.call(tF,r)?r:"setDirty";tv(i).forEach(e=>e[n]()),t.delete(e),tg(i)}},i}function tM(...e){return(n||(n=new H("function"==typeof WeakMap))).lookupArray(e)}let tj=new Set;function tL(e,{max:t=65536,keyArgs:r,makeCacheKey:i=tM,normalizeResult:n,subscribe:s,cache:o=V}=Object.create(null)){let a="function"==typeof o?new o(t,e=>e.dispose()):o,l=function(){let t=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=a.get(t);o||(a.set(t,o=new tT(e)),o.normalizeResult=n,o.subscribe=s,o.forget=()=>a.delete(t));let l=o.recompute(Array.prototype.slice.call(arguments));
1return a.set(t,o),tj.add(a),tm.hasValue()||(tj.forEach(e=>e.clean()),tj.clear()),l};function u(e){let t=e&&a.get(e);t&&t.setDirty()}function c(e){let t=e&&a.get(e);if(t)return t.peek()}function h(e){return!!e&&a.delete(e)}return Object.defineProperty(l,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:i,normalizeResult:n,subscribe:s,cache:a}),l.dirtyKey=u,l.dirty=function(){u(i.apply(null,arguments))},l.peekKey=c,l.peek=function(){return c(i.apply(null,arguments))},l.forgetKey=h,l.forget=function(){return h(i.apply(null,arguments))},l.makeCacheKey=i,l.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(l)}let tV=tL((e,t)=>{w(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);t&&w(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),to(e,{Field(t,i,n,s){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let i=e,n=[];for(let e of s)(i=i[e]).kind===a.FIELD&&n.push(i.alias?.value||i.name.value);throw n.splice(-1,1,t.name.value),T(5,t.alias.value,n.join("."),r[0].operation,e5(e,"(anonymous)"))}}})},{max:C.checkDocument||2e3,cache:j});function tq(e){return tV(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}class tU{static empty(){return new tU(()=>e8)}static from(e){if(0===e.length)return tU.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new tU((e,t)=>t(e))){return Object.assign(new tU((i,n)=>e(i)?t.request(i,n):r.request(i,n)),{left:t,right:r})}static execute(e,t,r){return e.request(function(e,{client:t}){let r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:e5(e.query),operationType:tq(e.query).operation},i={...e.context},n=()=>Object.freeze({...i});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{i="function"==typeof e?{...i,...e(n())}:{...i,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:n}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>e8)}static concat(...e){return tU.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(tU.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new tU((r,i)=>e.request(r,e=>t.request(e,i))),{left:e,right:t})}request(e,t){throw T(63)}left;right}function tB(e){return 9===e||32===e}function tQ(e){return e>=48&&e<=57}function tz(e){return e>=97&&e<=122||e>=65&&e<=90}function tW(e){return tz(e)||95===e}let t$=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function tK(e){return tG[e.charCodeAt(0)]}let tG=["\\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"],tY={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>tJ(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=tX("(",tJ(e.variableDefinitions,", "),")"),r=tJ([e.operation,tJ([e.name,t]),tJ(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:i})=>e+": "+t+tX(" = ",r)+tX(" ",tJ(i," "))},SelectionSet:{leave:({selections:e})=>tH(e)},Field:{leave({alias:e,name:t,arguments:r,directives:i,selectionSet:n}){let s=tX("",e,": ")+t,o=s+tX("(",tJ(r,", "),")");return o.length>80&&(o=s+tX("(\n",tZ(tJ(r,"\n")),"\n)")),tJ([o,tJ(i," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+tX(" ",tJ(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>tJ(["...",tX("on ",e),tJ(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:n})=>`fragment ${e}${tX("(",tJ(r,", "),")")} on ${t} ${tX("",tJ(i," ")," ")}`+n},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,'\\"""'),i=r.split(/\r\n|[\n\r]/g),n=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||tB(e.charCodeAt(0))),o=r.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=a||l,c=!n||e.length>70||u||s||o,h="",f=n&&tB(e.charCodeAt(0));return(c&&!f||s)&&(h+="\n"),h+=r,(c||u)&&(h+="\n"),'"""'+h+'"""'}(e):`"${e.replace(t$,tK)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+tJ(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+tJ(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+tX("(",tJ(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>tX("",e,"\n")+tJ(["schema",tJ(t," "),tH(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>tX("",e,"\n")+tJ(["scalar",t,tJ(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>tX("",e,"\n")+tJ(["type",t,tX("implements ",tJ(r," & ")),tJ(i," "),tH(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:i,directives:n})=>tX("",e,"\n")+t+(t0(r)?tX("(\n",tZ(tJ(r,"\n")),"\n)"):tX("(",tJ(r,", "),")"))+": "+i+tX(" ",tJ(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:i,directives:n})=>tX("",e,"\n")+tJ([t+": "+r,tX("= ",i),tJ(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>tX("",e,"\n")+tJ(["interface",t,tX("implements ",tJ(r," & ")),tJ(i," "),tH(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:i})=>tX("",e,"\n")+tJ(["union",t,tJ(r," "),tX("= ",tJ(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:i})=>tX("",e,"\n")+tJ(["enum",t,tJ(r," "),tH(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>tX("",e,"\n")+tJ([t,tJ(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:i})=>tX("",e,"\n")+tJ(["input",t,tJ(r," "),tH(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:i,locations:n})=>tX("",e,"\n")+"directive @"+t+(t0(r)?tX("(\n",tZ(tJ(r,"\n")),"\n)"):tX("(",tJ(r,", "),")"))+(i?" repeatable":"")+" on "+tJ(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>tJ(["extend schema",tJ(e," "),tH(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>tJ(["extend scalar",e,tJ(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>tJ(["extend type",e,tX("implements ",tJ(t," & ")),tJ(r," "),tH(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>tJ(["extend interface",e,tX("implements ",tJ(t," & ")),tJ(r," "),tH(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>tJ(["extend union",e,tJ(t," "),tX("= ",tJ(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>tJ(["extend enum",e,tJ(t," "),tH(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>tJ(["extend input",e,tJ(t," "),tH(r)]," ")}};function tJ(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function tH(e){return tX("{\n",tZ(tJ(e,"\n")),"\n}")}function tX(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function tZ(e){return tX("  ",e.replace(/\n/g,"\n  "))}function t0(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}let t1=Object.assign(e=>{let t=s.get(e);return t||(t=to(e,tY),s.set(e,t)),t},{reset(){s=new B(C.print||2e3)}});function t2(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function t3(e){return e}t1.reset();class t4{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new t4(t3,{cache:!1})}static split(e,t,r=t4.identity()){return Object.assign(new t4(i=>(e(i)?t:r).transformDocument(i),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new H;this.performWork=tL(t4.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return w(Array.isArray(r),20),e.lookupArray(r)},max:C["documentTransform.cache"],cache:j})}}performWork(e){return tV(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new t4(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;
1right}let t9={kind:a.FIELD,name:{kind:a.NAME,value:"__typename"}},t8=Object.assign(function(e){return to(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===a.OPERATION_DEFINITION)return;let{selections:i}=e;if(!(!i||i.some(e=>e.kind===a.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===a.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...i,t9]}}}})},{added:e=>e===t9});function t5(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}function t6(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}function t7(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let i=t&&t[r];return w(i,9,r),i||null}default:return null}}function re(e){let t;for(let r of(tV(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw T(12)}function rt(e){return"Field"===e.kind}function rr(e){return e.alias?e.alias.value:e.name.value}function ri({directives:e},t){return!e||!e.length||(function(e){let t=[];return e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let r=e.arguments,i=e.name.value;w(r&&1===r.length,16,i);let n=r[0];w(n.name&&"if"===n.name.value,17,i);let s=n.value;w(s&&("Variable"===s.kind||"BooleanValue"===s.kind),18,i),t.push({directive:e,ifArgument:n})}),t})(e).every(({directive:e,ifArgument:r})=>{let i=!1;return"Variable"===r.value.kind?w(void 0!==(i=t&&t[r.value.name.value]),15,e.name.value):i=r.value.value,"skip"===e.name.value?!i:i})}function rn(e,{data:t,...r},{data:i,...n},s){return er(r,n)&&function e(t,r,i,n){if(r===i)return!0;let s=new Set;return t.selections.every(t=>{if(s.has(t)||(s.add(t),!ri(t,n.variables)||rs(t)))return!0;if(rt(t)){let s=rr(t),o=r&&r[s],a=i&&i[s],l=t.selectionSet;if(!l)return er(o,a);let u=Array.isArray(o),c=Array.isArray(a);if(u!==c)return!1;if(u&&c){let t=o.length;if(a.length!==t)return!1;for(let r=0;r<t;++r)if(!e(l,o[r],a[r],n))return!1;return!0}return e(l,o,a,n)}{let s=t7(t,n.fragmentMap);if(s)return!!rs(s)||e(s.selectionSet,r,i,n)}})}(re(e).selectionSet,t,i,{fragmentMap:t5(t6(e)),variables:s})}function rs(e){return!!e.directives&&e.directives.some(ro)}function ro(e){return"nonreactive"===e.name.value}function ra(e,t){let r=t,i=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw T(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===r&&(w(1===i.length,11,i.length),r=i[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class rl{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}watchFragment(e){let t,{fragment:r,fragmentName:i,from:n,optimistic:s=!0,...o}=e,a=this.getFragmentDoc(r,i),l=void 0===n||"string"==typeof n?n:this.identify(n),u={...o,returnPartialData:!0,id:l,query:a,optimistic:s};return new e4(r=>this.watch({...u,immediate:!0,callback:i=>{let n=i.result;if(null===n&&(n={}),t&&rn(a,{data:t.result},{data:n},e.variables))return;let s={data:n,dataState:i.complete?"complete":"partial",complete:!!i.complete};i.missing&&(s.missing=i.missing.missing),t={...i,result:n},r.next(s)}}))}getFragmentDoc=tL(ra,{max:C["cache.fragmentQueryDocuments"]||1e3,cache:j});readFragment(e,t=!!e.optimistic){return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({id:e,data:t,fragment:r,fragmentName:i,...n}){return this.write(Object.assign(n,{query:this.getFragmentDoc(r,i),dataId:e,result:t}))}updateQuery(e,t){return this.batch({update(r){let i=r.readQuery(e),n=t(i);return null==n?i:(r.writeQuery({...e,data:n}),n)}})}updateFragment(e,t){return this.batch({update(r){let i=r.readFragment(e),n=t(i);return null==n?i:(r.writeFragment({...e,data:n}),n)}})}}function ru(e){return null!==e&&"object"==typeof e}let{hasOwnProperty:rc}
1=Object.prototype,rh=function(e,t,r){return this.merge(e[r],t[r])};class rf{reconciler;constructor(e=rh){this.reconciler=e}merge(e,t,...r){return ru(t)&&ru(e)?(Object.keys(t).forEach(i=>{if(rc.call(e,i)){let n=e[i];if(t[i]!==n){let s=this.reconciler(e,t,i,...r);s!==n&&((e=this.shallowCopyForMerge(e))[i]=s)}}else(e=this.shallowCopyForMerge(e))[i]=t[i]}),e):t}isObject=ru;pastCopies=new Set;shallowCopyForMerge(e){return ru(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}function rp(e){return{__ref:String(e)}}function rd(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(r=>{let i=e[r];void 0!==i&&(t[r]=i)})}),t}let ry=Array.isArray,{hasOwnProperty:rm}=Object.prototype;function rb({__typename:e,id:t,_id:r},i){if("string"==typeof e&&(i&&(i.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let rv={dataIdFromObject:rb,resultCaching:!0},rg=/^[_a-z][_0-9a-z]*/i;function rE(e){let t=e.match(rg);return t?t[0]:e}function rk(e){return ru(e)&&!t2(e)&&!ry(e)}function rw(e,t){let r=t5(t6(e));return{fragmentMap:r,lookupFragment(e){let i=r[e];return!i&&t&&(i=t.lookup(e)),i||null}}}let rO={},rT=()=>rO,rS={};class r_{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),rm.call(this.data,e)){let r=this.data[e];if(r&&rm.call(r,t))return r[t]}return"__typename"===t&&rm.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof rD?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),rm.call(this.data,e))?this.data[e]:this instanceof rD?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;t2(e)&&(e=e.__ref),t2(t)&&(t=t.__ref);let i="string"==typeof e?this.lookup(r=e):e,n="string"==typeof t?this.lookup(r=t):t;if(!n)return;w("string"==typeof r,95);let s=new rf(rC).merge(i,n);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){let e={};i||(e.__exists=1),Object.keys(n).forEach(t=>{if(!i||i[t]!==s[t]){e[t]=1;let r=rE(t);r===t||this.policies.hasKeyArgs(s.__typename,r)||(e[r]=1),void 0!==s[t]||this instanceof rD||delete s[t]}}),e.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let i=this.lookup(e);if(i){let n={},s=!1,o=!0,a={DELETE:rO,INVALIDATE:rS,isReference:t2,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||rp(e)}:t,{store:this})};
1if(Object.keys(i).forEach(l=>{let u=rE(l),c=i[l];if(void 0===c)return;let h="function"==typeof t?t:t[l]||(r?void 0:t[u]);if(h){let t=h===rT?rO:h(c,{...a,fieldName:u,storeFieldName:l,storage:this.getStorage(e,l)});if(t===rS)this.group.dirty(e,l);else if(t===rO&&(t=void 0),t!==c&&(n[l]=t,s=!0,c=t,0)){let e=e=>{if(void 0===this.lookup(e.__ref))return!0};if(t2(t))e(t);else if(Array.isArray(t)){let r,i=!1;for(let n of t){if(t2(n)){if(i=!0,e(n))break}else if("object"==typeof n&&n){let[e]=this.policies.identify(n);e&&(r=n)}if(i&&void 0!==r)break}}}}void 0!==c&&(o=!1)}),s)return this.merge(e,n),o&&(this instanceof rD?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let i=this.lookup(e);if(i){let n=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:n,fieldName:t,args:r}):t;return this.modify(e,s?{[s]:rT}:rT,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(rm.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof rD&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{rm.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&rm.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof rD?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{rm.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof rD;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!rm.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let i=new Set([r]);i.forEach(e=>{t2(e)&&(t[e.__ref]=!0),ru(e)&&Object.keys(e).forEach(t=>{let r=e[t];ru(r)&&i.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>t2(e)?this.get(e.__ref,t):e&&e[t];canRead=e=>t2(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return rp(e);if(t2(e))return e;let[r]=this.policies.identify(e);if(r){let i=rp(r);return t&&this.merge(r,e),i}};get supportsResultCaching(){return this.group.caching}}class rN{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?tP():null,this.keyMaker=new H}depend(e,t){if(this.d){this.d(t+"#"+e);let r=rE(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function rx(e,t){rR(e)&&e.group.depend(t,"__exists")}class rI extends r_{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new rN(t)),r&&this.replace(r)}stump=new rA(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new H;getStorage(){return this.storageTrie.lookupArray(arguments)}}r_.Root=rI;class rD extends r_{id;parent;replay;group;
1constructor(e,t,r,i){super(t.policies,i),this.id=e,this.parent=t,this.replay=r,this.group=i,r(this)}addLayer(e,t){return new rD(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{let r=this.data[e],i=t.lookup(e);i?r?r!==i&&Object.keys(r).forEach(t=>{er(r[t],i[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(i).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return rm.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class rA extends rD{constructor(e){super("EntityStore.Stump",e,()=>{},new rN(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function rC(e,t,r){let i=e[r],n=t[r];return er(i,n)?i:n}function rR(e){return!!(e&&e.supportsResultCaching)}let rF=new tp;function rP(e,t,r,i){if(r.kind===a.INT||r.kind===a.FLOAT)e[t.value]=Number(r.value);else if(r.kind===a.BOOLEAN||r.kind===a.STRING)e[t.value]=r.value;else if(r.kind===a.OBJECT){let n={};r.fields.map(e=>rP(n,e.name,e.value,i)),e[t.value]=n}else if(r.kind===a.VARIABLE){let n=(i||{})[r.name.value];e[t.value]=n}else if(r.kind===a.LIST)e[t.value]=r.values.map(e=>{let r={};return rP(r,t,e,i),r[t.value]});else if(r.kind===a.ENUM)e[t.value]=r.value;else if(r.kind===a.NULL)e[t.value]=null;else throw T(19,t.value,r.kind)}function rM(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:i})=>rP(r,e,i,t)),r}return null}let rj=["connection","include","skip","client","rest","export","nonreactive"],rL=z,rV=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let i={};e.forEach(e=>{i[e]=t[e]});let n=rL(i);if("{}"!==n)return`${r.connection.key}(${n})`}return r.connection.key}let i=e;if(t){let e=rL(t);"{}"!==e&&(i+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===rj.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?i+=`@${e}(${rL(r[e])})`:i+=`@${e}`)}),i},{setStringify(e){let t=rL;return rL=e,t}});function rq(e){return Array.isArray(e)&&e.length>0}let rU={};function rB(e){let t=JSON.stringify(e);return rU[t]||(rU[t]={})}function rQ(e){let t=rB(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let i=(e,t)=>r.readField(t,e),n=r.keyObject=rW(e,e=>{let n=rK(r.storeObject,e,i);return void 0===n&&t!==r.storeObject&&rm.call(t,e[0])&&(n=rK(t,e,r$)),w(void 0!==n,98,e.join("."),t),n});return`${r.typename}:${JSON.stringify(n)}`})}function rz(e){let t=rB(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:i,fieldName:n})=>{let s=JSON.stringify(rW(e,e=>{let n=e[0],s=n.charAt(0);if("@"===s){if(r&&rq(r.directives)){let t=n.slice(1),s=r.directives.find(e=>e.name.value===t),o=s&&rM(s,i);return o&&rK(o,e.slice(1))}return}if("$"===s){let t=n.slice(1);if(i&&rm.call(i,t)){let r=e.slice(0);return r[0]=t,rK(i,r)}return}if(t)return rK(t,e)}));return(t||"{}"!==s)&&(n+=":"+s),n})}function rW(e,t){let r=new rf;return(function e(t){let r=rB(t);if(!r.paths){let i=r.paths=[],n=[];t.forEach((r,s)=>{ry(r)?(e(r).forEach(e=>i.push(n.concat(e))),n.length=0):(n.push(r),ry(t[s+1])||(i.push(n.slice(0)),n.length=0))})}return r.paths})(e).reduce((e,i)=>{let n=t(i);if(void 0!==n){for(let e=i.length-1;e>=0;--e)n={[i[e]]:n};e=r.merge(e,n)}return e},{})}function r$(e,t){return e[t]}function rK(e,t,r){return r=r||r$,function e(t){return ru(t)?ry(t)?t.map(e):rW(Object.keys(t).sort(),e=>rK(t,e)):t}(t.reduce(function e(t,i){return ry(t)?t.map(t=>e(t,i)):t&&r(t,i)},e))}let rG=new tp,rY=new WeakMap;function rJ(e){return void 0!==e.args?e.args:e.field?rM(e.field,e.variables):null}let rH=()=>void 0,rX=(e,t)=>t.fieldName,rZ=(e,t,{mergeObjects:r})=>r(e,t),r0=(e,t)=>t;class r1{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:rb,...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)}identify(e,t){let r,i=this,n=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let s=t&&t.storeObject||e,o={...t,typename:n,storeObject:s,readField:t&&t.readField||((...e)=>{let t=r3(e,s);return i.readField(t,{store:i.cache.data,variables:t.variables})})},a=n&&this.getTypePolicy(n),l=a&&a.keyFn||this.config.dataIdFromObject;return rF.withValue(!0,()=>{for(;l;){let t=l({...e,...s},o);if(ry(t))l=rQ(t);else{r=t;break}}}),r=r?String(r):void 0,o.keyObject?[r,o.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:i,subscriptionType:n,...s}=e[t];r&&this.setRootTypename("Query",t),i&&this.setRootTypename("Mutation",t),n&&this.setRootTypename("Subscription",t),rm.call(this.toBeAdded,t)?this.toBeAdded[t].push(s):this.toBeAdded[t]=[s]})}updateTypePolicy(e,t,r){let i=this.getTypePolicy(e),{keyFields:n,fields:s}=t;function o(e,t){e.merge="function"==typeof t?t:!0===t?rZ:!1===t?r0:e.merge}o(i,t.merge),i.keyFn=!1===n?rH:ry(n)?rQ(n):"function"==typeof n?n:i.keyFn,s&&Object.keys(s).forEac
1h(t=>{let i=r[t];i&&i?.typename===e||(i=r[t]={typename:e});let n=s[t];if("function"==typeof n)i.read=n;else{let{keyArgs:e,read:t,merge:r}=n;i.keyFn=!1===e?rX:ry(e)?rz(e):"function"==typeof e?e:i.keyFn,"function"==typeof t&&(i.read=t),o(i,r)}i.read&&i.merge&&(i.keyFn=i.keyFn||rX)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];t!==i&&(w(!i||i===e,99,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(rg);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!rm.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,i)=>{if(t.test(e)){let e=this.supertypeMap.get(i);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...i}=this.getTypePolicy(e);Object.assign(t,i),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,i){if(!e.typeCondition)return!0;if(!t)return!1;let n=e.typeCondition.name.value;if(t===n)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(n)){let s=this.getSupertypeSet(t,!0),o=[s],a=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>o.indexOf(t)&&o.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1;for(let c=0;c<o.length;++c){let h=o[c];if(h.has(n))return s.has(n)||s.add(n),!0;h.forEach(a),l&&c===o.length-1&&function e(t,r,i){return!!ru(r)&&(ry(r)?r.every(r=>e(t,r,i)):t.selections.every(t=>{if(rt(t)&&ri(t,i)){let n=rr(t);return rm.call(r,n)&&(!t.selectionSet||e(t.selectionSet,r[n],i))}return!0}))}(e.selectionSet,r,i)&&(l=!1,u=!0,this.fuzzySubtypes.forEach((e,r)=>{let i=t.match(e);i&&i[0]===t&&a(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let i,n,s,{typename:o,fieldName:a}=e,l=this.getFieldPolicy(o,a),u=l&&l.keyFn;if(u&&o){let t={typename:o,fieldName:a,field:e.field||null,variables:e.variables},r=rJ(e);for(;u;){let e=u(r,t);if(ry(e))u=rz(e);else{i=e||a;break}}}return(void 0===i&&(i=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(e=>{n[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:i})=>rP(n[e.name.value],t,i,r))})),s=null,t.arguments&&t.arguments.length&&(s={},t.arguments.forEach(({name:e,value:t})=>rP(s,e,t,r))),rV(t.name.value,s,n)):rV(a,rJ(e))),!1===i)?a:a===rE(i)?i:a+":"+i}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let i=t.store.getFieldValue(r,"__typename");i&&(e.typename=i)}let i=this.getStoreFieldName(e),n=rE(i),s=t.store.getFieldValue(r,i),o=this.getFieldPolicy(e.typename,n),a=o&&o.read;if(a){let n=r2(this,r,e,t,t.store.getStorage(t2(r)?r.__ref:r,i));return rG.withValue(this.cache,a,[s,n])}return s}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let i=this.getFieldPolicy(e,t),n=i&&i.merge;return!n&&r&&(n=(i=this.getTypePolicy(r))&&i.merge),n}runMergeFunction(e,t,{field:r,typename:i,merge:n},s,o){return n===rZ?r4(s.store)(e,t):n===r0?t:(s.overwrite&&(e=void 0),n(e,t,r2(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:s.variables},s,o||{})))}}function r2(e,t,r,i,n){let s=e.getStoreFieldName(r),o=rE(s),a=r.variables||i.variables,{toReference:l,canRead:u}=i.store;return{args:rJ(r),field:r.field||null,fieldName:o,storeFieldName:s,variables:a,isReference:t2,toReference:l,storage:n,cache:e.cache,canRead:u,readField:(...r)=>e.readField(r3(r,t,a),i),mergeObjects:r4(i.store)}}function r3(e,t,r){let i,{0:n,1:s,length:o}=e;return"string"==typeof n?i={fieldName:n,from:o>1?s:t}:(i={...n},rm.call(i,"from")||(i.from=t)),void 0===i.variables&&(i.variables=r),i}function r4(e){return function(t,r){if(ry(t)||ry(r))throw T(102);if(ru(t)&&ru(r)){let i=e.getFieldValue(t,"__typename"),n=e.getFieldValue(r,"__typename");if(i&&n&&i!==n)return r;if(t2(t)&&rk(r))return e.merge(t.__ref,r),t;if(rk(t)&&t2(r))return e.merge(t,r.__ref),r;if(rk(t)&&rk(r))return{...t,...r}}return r}}function r9(e){let t={},r=e&&e.variableDefinitions;
1return r&&r.length&&r.forEach(e=>{e.defaultValue&&rP(t,e.variable.name,e.defaultValue)}),t}class r8 extends Error{message;path;query;variables;constructor(e,t,r,i){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=r8.prototype}missing}function r5(e){return[e.selectionSet,e.objectOrReference,e.context]}class r6{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=tL(e=>{let t=r5(e),r=this.executeSelectionSet.peek(...t);return r||(rx(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:C["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:r5,makeCacheKey(e,t,r){if(rR(r.store))return r.store.makeCacheKey(e,t2(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=tL(e=>(rx(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:C["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(rR(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:i,returnPartialData:n=!0}){let s,o=this.config.cache.policies;i={...r9(function(e){let t=tq(e);return w(t&&"query"===t.operation,13),t}(t)),...i};let a=rp(r),l=this.executeSelectionSet({selectionSet:re(t).selectionSet,objectOrReference:a,enclosingRef:a,context:{store:e,query:t,policies:o,variables:i,varString:z(i),...rw(t,this.config.fragments)}});l.missing&&(s=new r8(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(l.missing),l.missing,t,i));let u=!s,{result:c}=l;return{result:u||n?0===Object.keys(c).length?null:c:null,complete:u,missing:s}}isFresh(e,t,r,i){if(rR(i.store)&&this.knownResults.get(e)===r){let n=this.executeSelectionSet.peek(r,t,i);if(n&&e===n.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:i}){let n;if(t2(t)&&!i.policies.rootTypenamesById[t.__ref]&&!i.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:s,policies:o,store:l}=i,u=l.getFieldValue(t,"__typename"),c=[],h=new rf;function f(e,t){return e.missing&&(n=h.merge(n,{[t]:e.missing})),e.result}"string"!=typeof u||o.rootIdsByTypename[u]||c.push({__typename:u});let p=new Set(e.selections);p.forEach(e=>{if(ri(e,s))if(rt(e)){let s=o.readField({fieldName:e.name.value,field:e,variables:i.variables,from:t},i),a=rr(e);void 0===s?t8.added(e)||(n=h.merge(n,{[a]:`Can't find field '${e.name.value}' on ${t2(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):ry(s)?s.length>0&&(s=f(this.executeSubSelectedArray({field:e,array:s,enclosingRef:r,context:i}),a)):e.selectionSet&&null!=s&&(s=f(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:s,enclosingRef:t2(s)?s:r,context:i}),a)),void 0!==s&&c.push({[a]:s})}else{let t=t7(e,i.lookupFragment);if(!t&&e.kind===a.FRAGMENT_SPREAD)throw T(103,e.name.value);t&&o.fragmentMatches(t,u)&&t.selectionSet.selections.forEach(p.add,p)}});let d={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let i=new rf;for(let n=1;n<r;++n)t=i.merge(t,e[n])}return t}(c),missing:n};return d.result&&this.knownResults.set(d.result,e),d}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:i}){let n,s=new rf;function o(e,t){return e.missing&&(n=s.merge(n,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(i.store.canRead)),{result:t=t.map((t,n)=>null===t?null:ry(t)?o(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:i}),n):e.selectionSet?o(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:t2(t)?t:r,context:i}),n):t),missing:n}}}let{toString:r7}=Object.prototype;function ie(e,t){return eh(function(r,i){var n=0;r.subscribe(eQ(i,function(r){i.next(e.call(t,r,n++))}))})}function it(e,t,r){let i=new Set(e),n=i.size;return to(t,{Directive(e){if(i.delete(e.name.value)&&(!r||!i.size))return ts}}),r?!i.size:i.size<n}let ir=tU.execute;function ii(e,t){var r=ec(e)?e:function(){return e}
1,i=function(e){return e.error(r())};return new e4(t?function(e){return t.schedule(i,0,e)}:i)}var is=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function io(e){return ec(null==e?void 0:e.then)}function ia(e){return Symbol.asyncIterator&&ec(null==e?void 0:e[Symbol.asyncIterator])}function il(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var iu="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function ic(e){return ec(null==e?void 0:e[iu])}function ih(e){return function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(e,t||[]),s=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),i[Symbol.asyncIterator]=function(){return this},i;function o(e,t){n[e]&&(i[e]=function(t){return new Promise(function(r,i){s.push([e,t,r,i])>1||a(e,t)})},t&&(i[e]=t(i[e])))}function a(e,t){try{var r;(r=n[e](t)).value instanceof eg?Promise.resolve(r.value.v).then(l,u):c(s[0][2],r)}catch(e){c(s[0][3],e)}}function l(e){a("next",e)}function u(e){a("throw",e)}function c(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function(){var t,r,i;return ey(this,function(n){switch(n.label){case 0:t=e.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,eg(t.read())];case 3:if(i=(r=n.sent()).value,!r.done)return[3,5];return[4,eg(void 0)];case 4:return[2,n.sent()];case 5:return[4,eg(i)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function ip(e){return ec(null==e?void 0:e.getReader)}function id(e){if(e instanceof e4)return e;if(null!=e){var t,r,i,n;if(ec(e[e2])){return t=e,new e4(function(e){var r=t[e2]();if(ec(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(is(e)){return r=e,new e4(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(io(e)){return i=e,new e4(function(e){i.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,eI)})}if(ia(e))return iy(e);if(ic(e)){return n=e,new e4(function(e){var t,r;try{for(var i=em(n),s=i.next();!s.done;s=i.next()){var o=s.value;if(e.next(o),e.closed)return}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}e.complete()})}if(ip(e))return iy(ih(e))}throw il(e)}function iy(e){return new e4(function(t){(function(e,t){var r,i,n,s,o,a,l,u;return o=this,a=void 0,l=void 0,u=function(){var o;return ey(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),r=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=em(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise(function(i,n){var s,o,a;s=i,o=n,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){s({value:e,done:a})},o)})}}}(e),a.label=1;case 1:return[4,r.next()];case 2:if((i=a.sent()).done)return[3,4];if(o=i.value,t.next(o),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return n={error:a.sent()},[3,11];case 6:if(a.trys.push([6,,9,10]),!(i&&!i.done&&(s=r.return)))return[3,8];return[4,s.call(r)];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})},new(l||(l=Promise))(function(e,t){function r(e){try{n(u.next(e))}catch(e){t(e)}}function i(e){try{n(u.throw(e))}catch(e){t(e)}}function n(t){var n;t.done?e(t.value):((n=t.value)instanceof l?n:new l(function(e){e(n)})).then(r,i)}n((u=u.apply(o,a||[])).next())})})(e,t).catch(function(e){return t.error(e)})})}function im(e,t,r,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);var s=t.schedule(function(){r(),n?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!n)return s}function ib(e,t,r){return(void 0===r&&(r=1/0),ec(t))?ib(function(r,i){return ie(function(e,n){return t(r,e,i,n)})(id(e(r,i)))},r):("number"==typeof t&&(r=t),eh(function(t,i){var n,s,o,a,l,u,c,h,f;return n=r,o=[],a=0,l=0,u=!1,c=function(){!u||o.length||a||i.complete()},h=function(e){return a<n?f(e):o.push(e)},f=function(t){a++;var r=!1;id(e(t,l++)).subscribe(eQ(i,function(e){s?h(e):i.next(e)},function(){r=!0},void 0,function(){if(r)try{for(a--;o.length&&a<n;)!function(){var e=o.shift();f(e)}();c()}catch(e){i.error(e)}}))},t.subscribe(eQ(i,h,function(){u=!0,c()})),function(){}}))}function iv(e,t){return void 0===t&&(t=0),eh(function(r,i){r.subscribe(eQ(i,function(r){return im(i,e,function(){return i.next(r)},t)},function(){return im(i,e,function(){return i.complete()},t)},function(r){return im(i,e,function(){return i.error(r)},t)}
1))})}function ig(e,t){return void 0===t&&(t=0),eh(function(r,i){i.add(e.schedule(function(){return r.subscribe(i)},t))})}function iE(e,t){if(!e)throw Error("Iterable cannot be null");return new e4(function(r){im(r,t,function(){var i=e[Symbol.asyncIterator]();im(r,t,function(){i.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function ik(e,t){return t?function(e,t){if(null!=e){if(ec(e[e2]))return id(e).pipe(ig(t),iv(t));if(is(e))return new e4(function(r){var i=0;return t.schedule(function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||this.schedule())})});if(io(e))return id(e).pipe(ig(t),iv(t));if(ia(e))return iE(e,t);if(ic(e))return new e4(function(r){var i;return im(r,t,function(){i=e[iu](),im(r,t,function(){var e,t,n;try{t=(e=i.next()).value,n=e.done}catch(e){r.error(e);return}n?r.complete():r.next(t)},0,!0)}),function(){return ec(null==i?void 0:i.return)&&i.return()}});if(ip(e))return iE(ih(e),t)}throw il(e)}(e,t):id(e)}var iw=eE(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function iO(e){var t;return(t=e[e.length-1])&&ec(t.schedule)?e.pop():void 0}function iT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=iO(e);return ik(e,r)}function iS(e){return eh(function(t,r){var i,n=null,s=!1;n=t.subscribe(eQ(r,void 0,void 0,function(o){i=id(e(o,iS(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):s=!0})),s&&(n.unsubscribe(),n=null,i.subscribe(r))})}var i_=eE(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),iN=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return ep(t,e),t.prototype.lift=function(e){var t=new ix(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new i_},t.prototype.next=function(e){var t=this;eF(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var n=em(t.currentObservers),s=n.next();!s.done;s=n.next())s.value.next(e)}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;eF(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;eF(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,i=this.isStopped,n=this.observers;return r||i?eT:(this.currentObservers=null,n.push(e),new eO(function(){t.currentObservers=null,ew(n,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,i=this.isStopped;t?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new e4;return e.source=this,e},t.create=function(e,t){return new ix(e,t)},t}(e4),ix=function(e){function t(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return ep(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:eT},t}(iN);function iI(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new iN}:t,i=e.resetOnError,n=void 0===i||i,s=e.resetOnComplete,o=void 0===s||s,a=e.resetOnRefCountZero,l=void 0===a||a;
1return function(e){var t,i,s,a=0,u=!1,c=!1,h=function(){null==i||i.unsubscribe(),i=void 0},f=function(){h(),t=s=void 0,u=c=!1},p=function(){var e=t;f(),null==e||e.unsubscribe()};return eh(function(e,d){a++,c||u||h();var y=s=null!=s?s:r();d.add(function(){0!=--a||c||u||(i=iD(p,l))}),y.subscribe(d),!t&&a>0&&(t=new eV({next:function(e){return y.next(e)},error:function(e){c=!0,h(),i=iD(f,n,e),y.error(e)},complete:function(){u=!0,h(),i=iD(f,o),y.complete()}}),id(e).subscribe(t))})(e)}}function iD(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(!0===t)return void e();if(!1!==t){var n=new eV({next:function(){n.unsubscribe(),e()}});return id(t.apply(void 0,ev([],eb(r)))).subscribe(n)}}var iA={now:function(){return(iA.delegate||Date).now()},delegate:void 0},iC=function(e){function t(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=iA);var n=e.call(this)||this;return n._bufferSize=t,n._windowTime=r,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,r),n}return ep(t,e),t.prototype.next=function(t){var r=this.isStopped,i=this._buffer,n=this._infiniteTimeWindow,s=this._timestampProvider,o=this._windowTime;!r&&(i.push(t),n||i.push(s.now()+o)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),n=0;n<i.length&&!e.closed;n+=r?1:2)e.next(i[n]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,i=this._infiniteTimeWindow,n=(i?1:2)*e;if(e<1/0&&n<r.length&&r.splice(0,r.length-n),!i){for(var s=t.now(),o=0,a=1;a<r.length&&r[a]<=s;a+=2)o=a;o&&r.splice(0,o+1)}},t}(iN);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(l||(l={}));var iR=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,i,n,s=e.kind,o=e.value,a=e.error;if("string"!=typeof s)throw TypeError('Invalid notification, missing "kind"');"N"===s?null==(r=t.next)||r.call(t,o):"E"===s?null==(i=t.error)||i.call(t,a):null==(n=t.complete)||n.call(t)}(this,e)},e.prototype.do=function(e,t,r){var i=this.kind,n=this.value,s=this.error;return"N"===i?null==e?void 0:e(n):"E"===i?null==t?void 0:t(s):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return ec(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,i="N"===e?iT(t):"E"===e?ii(function(){return r}):"C"===e?e8:0;if(!i)throw TypeError("Unexpected notification kind "+e);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function iF(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ib(e3,1)(ik(e,iO(e)))}function iP(e,t,r){var i=ec(e)||t||r?{next:e,error:t,complete:r}:e;return i?eh(function(e,t){null==(r=i.subscribe)||r.call(i);var r,n=!0;e.subscribe(eQ(t,function(e){var r;null==(r=i.next)||r.call(i,e),t.next(e)},function(){var e;n=!1,null==(e=i.complete)||e.call(i),t.complete()},function(e){var r;n=!1,null==(r=i.error)||r.call(i,e),t.error(e)},function(){var e,t;n&&(null==(e=i.unsubscribe)||e.call(i)),null==(t=i.finalize)||t.call(i)}))}):e3}function iM(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function ij(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}function iL(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}class iV extends Error{static is(e){return iM(e,"CombinedGraphQLErrors")}static formatMessage=iL;errors;data;extensions;constructor(e,t=e.errors||[]){super(iV.formatMessage(t,{result:e,defaultFormatMessage:iL})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",ij(this),Ob
1ject.setPrototypeOf(this,iV.prototype)}}function iq(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class iU extends Error{static is(e){return iM(e,"CombinedProtocolErrors")}static formatMessage=iq;errors;constructor(e){super(iU.formatMessage(e,{defaultFormatMessage:iq})),this.name="CombinedProtocolErrors",this.errors=e,ij(this),Object.setPrototypeOf(this,iU.prototype)}}class iB extends Error{static is(e){return iM(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",ij(this),Object.setPrototypeOf(this,iB.prototype)}}let iQ=Symbol(),iz=new WeakSet;function iW(e,t,r){return rF.withValue(!0,()=>{let i=function e(t,r,i,n,s){let{knownChanged:o}=i,l=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,i.mutableTargets);if(Array.isArray(t)){for(let[s,a]of Array.from(t.entries())){if(null===a){l[s]=null;continue}let t=e(a,r,i,n,void 0);o.has(t)&&o.add(l),l[s]=t}return o.has(l)?l:t}for(let u of r.selections){let r;if(n&&o.add(l),u.kind===a.FIELD){let s=rr(u),a=u.selectionSet;if(void 0===(r=l[s]||t[s]))continue;if(a&&null!==r){let l=e(t[s],a,i,n,void 0);o.has(l)&&(r=l)}l[s]=r}if(u.kind===a.INLINE_FRAGMENT&&(!u.typeCondition||i.cache.fragmentMatches(u,t.__typename))&&(r=e(t,u.selectionSet,i,n,s)),u.kind===a.FRAGMENT_SPREAD){let n=u.name.value,o=i.fragmentMap[n]||(i.fragmentMap[n]=i.cache.lookupFragment(n));w(o,39,n);let a=function(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return r&&"value"in r.value&&"migrate"===r.value.value?"migrate":"unmask"}(u);"mask"!==a&&(r=e(t,o.selectionSet,i,"migrate"===a,s))}o.has(r)&&o.add(l)}return"__typename"in t&&!("__typename"in l)&&(l.__typename=t.__typename),Object.keys(l).length!==Object.keys(t).length&&o.add(l),o.has(l)?l:t}(e,t,r,!1);return Object.isFrozen(e),i})}function i$(e){return 7!==e&&8!==e}function iK(e){return!!e.errors?.length}function iG(e,t=()=>void 0){return r=>new e4(i=>{let n=t();return r.subscribe({next(t){let r;try{r=e(t,n)}catch(e){i.error(e)}void 0!==r&&i.next(r)},error(e){i.error(e)},complete(){i.complete()}})})}function iY(e){let t={data:e.data};return e.error&&(t.error=e.error),t}function iJ(e){let t=new Map;return function(r=e){let i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}!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",e[e.streaming=9]="streaming"}(u||(u={}));var iH=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return ep(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(iN);let{assign:iX,hasOwnProperty:iZ}=Object,i0={loading:!0,networkStatus:u.loading,data:void 0,dataState:"empty",partial:!0},i1={loading:!1,networkStatus:u.ready,data:void 0,dataState:"empty",partial:!0};class i2{options;queryName;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:i="cache-first"}={}}=e.defaultOptions,{fetchPolicy:n=i,initialFetchPolicy:s="standby"===n?i:n}=t;this.lastQuery=r,this.options={...t,initialFetchPolicy:s,fetchPolicy:n,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let o=tq(this.query);this.queryName=o&&o.name&&o.name.value}
1initializeObservablesQueue(){this.subject=new iH({query:this.query,variables:this.variables,result:i0,meta:{}});let e=this.subject.pipe(iP({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),iG(({query:e,variables:t,result:r,meta:i},n)=>{let{shouldEmit:s}=i;if(r===i0&&(n.previous=void 0,n.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===s)return;if(1===s)return l();let{previous:o,previousVariables:a}=n;if(o){let i=this.queryManager.getDocumentInfo(e),n=this.queryManager.dataMasking,s=n?i.nonReactiveQuery:e;if((n||i.hasNonreactiveDirective?rn(s,o,r,t):er(o,r))&&er(a,t))return}if(!(3===s&&(!this.options.notifyOnNetworkStatusChange||er(o,r))))return l();function l(){return n.previous=r,n.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new iN,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.queryManager.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=this.queryManager.prioritizeCacheValues?"cache-first":e||this.options.fetchPolicy,r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?u.ready:u.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:u.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:u.loading};case"standby":return i1;default:return i0}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,i="standby"===t||"no-cache"===t||this.waitForNetworkResult,n=!i3({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||n)&&this.unsubscribeFromCache?.(),i||!n)return;let s={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);if((t.hasClientExports||t.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===e)return;let{result:i}=this.subject.getValue();(e.complete||!i.error&&i!==i0&&i!==i1)&&(er(i.data,e.result)||this.scheduleNotify())}},o=this.queryManager.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,o()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===u.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===i0&&(t=this.getInitialResult()),er(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};return"no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",e&&!er(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:u.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:i,updateQuery:n}){w("cache-only"!==this.options.fetchPolicy,78,e5(this.query,"(anonymous)"));let s={...rd(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:i}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};s.query=this.transformDocument(s.query),this.lastQuery=e?this.transformDocument(this.options.query):s.query;let o=!1,a="no-cache"!==this.options.fetchPolicy;a||w(n,79);let{finalize:l,pushNotification:c}=this.pushOperation(u.fetchMore);return c({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3}),this.queryManager.fetchQuery(s,u.fetchMore).then(e=>{if(l(),a)this.queryManager.cache.batch({update:t=>{n?t.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1},t=>n(t,{fetchMoreResult:e.data,variables:s.variables})):t.writeQuery({query:s.query,variables:s.variables,data:e.data})},onWatchUpdated:e=>
1{e.watcher===this&&(o=!0)}});else{let t=this.getCurrentResult(),r=n(t.data,{fetchMoreResult:e.data,variables:s.variables});c({kind:"N",value:{...t,networkStatus:u.ready,loading:!1,data:r,dataState:"streaming"===t.dataState?"streaming":"complete"},source:"network"})}return this.maskResult(e)}).finally(()=>{l(),a&&!o&&c({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})})}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:i}=e,{error:n}=t;if(n)return void(i?i(n):w.error(80,n));r&&this.updateQuery((e,i)=>r(e,{subscriptionData:t,...i}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=rd(this.options,e||{});iX(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),er(this.variables,e))?iY(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:u.setVariables}):iY(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),n=e(r,{variables:this.variables,complete:!!i,previousData:r});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):"variables-changed"===e?t.fetchPolicy=i:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,i){let n=this.options.fetchPolicy;e.context??={};let s=!1,o=e=>new e4(r=>{try{return e.subscribe({next(e){s=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{s||(f.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:c,variables:h,meta:{shouldEmit:3,fetchPolicy:n}}))}}),{observable:a,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{s=!0},fetchQueryOperator:o,observableQuery:this}),{query:c,variables:h}=this,f={abort:()=>{d.unsubscribe()},query:c,variables:h};this.activeOperations.add(f);let p=t==u.refetch||t==u.setVariables,d=(a=a.pipe(i,iI())).pipe(iP({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?f.override=t:delete f.override},finalize:()=>this.activeOperations.delete(f)})).subscribe({next:e=>{let t={};p&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(p=!1,t.shouldEmit=1),this.input.next({...e,query:c,variables:h,meta:t})}});return{fromLink:l,subscription:d,observable:a}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this;if(!r||!this.hasObservers()||"cache-only"===t)return void this.cancelPolling();if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let i=()=>{this.pollingInfo&&(i$(this.networkStatus)||this.options.skipPollAttempt?.()?n():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:u.poll}).then(n,n))},n=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(i,e.interval))};n()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){var r,i;let n,s,o;this.isTornDown=!1;let{newNetworkStatus:a}=t||{};this.queryManager.obsQueries.add(this);let l=a===u.refetch||a===u.poll,c=this.variables,h=this.options.fetchPolicy,f=rd(this.options,e||{}),p=l?f:iX(this.options,f),d=this.transformDocument(p.query);this.lastQuery=d,e&&"variables"in e&&(p.variables=this.getVariablesWithDefaults(e.variables)),!l&&(this.updatePolling(),e&&e.variables&&!er(e.variables,c)&&"standby"!==p.fetchPolicy&&(p.fetchPolicy===h||"function"==typeof p.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",p),void 0===a&&(a=u.setVariables)));let y=this.networkStatus;a||(a=u.loading,y!==u.loading&&e?.variables&&!er(e.variables,c)&&(a=u.setVariables),"standby"===p.fetchPolicy&&(a=u.ready)),"standby"===p.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:m,operator:b}=(i=e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source&&!e.value.loading)return e.value}},n="standby"===p.fetchPolicy?{data:void 0}:void 0,{promise:new Promise((e,t)=>
1{s=e,o=t}),operator:iP({next(e){try{let t=i(e);void 0!==t&&(n=t)}catch(e){o(e)}},finalize:()=>{if(n)s(n);else{let e="The operation was aborted.",t="AbortError";o("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}),{subscription:v,observable:g,fromLink:E}=this.fetch(p,a,d,b);l||!E&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=v);let k=Object.assign(((r=m.then(e=>iY(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})).catch(()=>{}),r),{retain:()=>{let e=g.subscribe({}),t=()=>e.unsubscribe();return m.then(t,t),k}});return k}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();er(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:u.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:i}=this,n=()=>{this.activeOperations.delete(s)},s={override:e,abort:()=>{t=!0,n()},query:r,variables:i};return this.activeOperations.add(s),{finalize:n,pushNotification:(e,n)=>{t||this.input.next({...e,query:r,variables:i,meta:{...n}})}}}calculateNetworkStatus(e){if(e===u.streaming)return e;let t=Array.from(this.activeOperations.values()).findLast(e=>i3(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?i1:i0,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=iG(e=>{let t,{query:r,variables:i,meta:n}=e;if("setResult"===e.source)return{query:r,variables:i,result:e.value,meta:n};if("C"===e.kind||!i3(e,this))return;let s=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===u.ready&&t.partial&&(!this.options.returnPartialData||s.result.networkStatus===u.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...i3(s,e)?s.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:u.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(n.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=i3(s,e)?s.result:this.getInitialResult(n.fetchPolicy),{resetError:i}=e.value,o=i?void 0:r.error,a=o?u.error:u.ready;t={...r,error:o,networkStatus:a}}return w(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=i$(t.networkStatus),{query:r,variables:i,result:t=this.maskResult(t),meta:n}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,i):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function i3(e,t){return!!(e&&t&&e.query===t.query&&er(e.variables,t.variables))}let i4={},i9=new WeakMap;function i8(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return i9.set(e,(i9.get(e)+1)%1e15),r.apply(this,arguments)})}let i5=new WeakMap;class i6{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){let r=this.cache=e.cache,i=(i5.get(e)||0)+1;i5.set(e,i),this.id=i+"",this.observableQuery=t,this.queryManager=e,i9.has(r)||(i9.set(r,0),i8(r,"evict"),i8(r,"modify"),i8(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;return!(r&&r.dmCount===i9.get(this.cache)&&er(t,r.variables)&&er(e.data,r.result.data))}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(t)?(this.incremental||=i.startRequest
1({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){let s={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let o=0===n,a=o?void 0:this.cache.diff(s),l=this.maybeHandleIncrementalResult(a?.result,e,t);return o||(i7(l,i)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)},update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===n}),this.lastWrite={result:l,variables:r,dmCount:i9.get(this.cache)};else if(a&&a.complete){l={...l,data:a.result};return}let i=e.diff(s);i.complete&&(l={...l,data:i.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let i=[],n=0===t.cacheWriteBehavior,s=this.maybeHandleIncrementalResult(n?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(s={...s,errors:[]}),iK(s)&&"none"===t.errorPolicy)return Promise.resolve(s);let o=()=>({...s,dataState:this.hasNext?"streaming":"complete"});if(!n&&i7(s,t.errorPolicy)){i.push({result:s.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let n=e[r],{query:s,variables:a}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=n(l,{mutationResult:o(),queryName:s&&e5(s)||void 0,queryVariables:a});e&&i.push({result:e,dataId:"ROOT_QUERY",query:s,variables:a})}})}let a=t.refetchQueries;if("function"==typeof a&&(a=a(o())),i.length>0||(a||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];
1if(this.queryManager.refetchQueries({updateCache:e=>{n||i.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!n){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(s={...s,data:r.result})}this.hasNext||r(e,s,{context:t.context,variables:t.variables})}n||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:a,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:i4}):e;return r!==i4&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){w.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){0!==n&&(i7(e,i)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r}),this.queryManager.broadcastQueries())}}function i7(e,t="none"){let r=!iK(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class ne{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){let t=new t4(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;let r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches(T(83))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:i,refetchQueries:n=[],awaitRefetchQueries:s=!1,update:o,onQueryUpdated:a,fetchPolicy:l,errorPolicy:u,keepRootFields:c,context:h}){let f=new i6(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:p}=this.getDocumentInfo(e);t=this.getVariables(e,t),p&&(t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:h}));let d=this.mutationStore&&(this.mutationStore[f.id]={mutation:e,variables:t,loading:!0,error:null}),y=r&&f.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:h,updateQueries:i,update:o,keepRootFields:c});return this.broadcastQueries(),new Promise((p,m)=>{let b={};return this.getObservableFromLink(e,{...h,optimisticResponse:y?r:void 0},t,{},!1).observable.pipe(nt(),ib(r=>{let p={...r};return ik(f.markMutationResult(p,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:h,update:o,updateQueries:i,awaitRefetchQueries:s,refetchQueries:n,removeOptimistic:y?f.id:void 0,onQueryUpdated:a,keepRootFields:c}))})).pipe(ie(e=>{if(iK(e)&&"none"===u)throw new iV(e);return d&&(d.loading=!1,d.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!f.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:b})};iK(t)&&(r.error=new iV(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),p(r)}},error:e=>(d&&(d.loading=!1,d.error=e),y&&this.cache.removeOptimistic(f.id),this.broadcastQueries(),"ignore"===u)?p({data:void 0}):"all"===u?p({data:void 0,error:e}):void m(e)})})}fetchQuery(e,t){return tV(e.query,o.QUERY),(async()=>{var r,i,n;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(iG(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return iY(e.value)}})),n="object"==typeof(i={defaultValue:{data:void 0}}),new Promise(function(e,t){var s,o=!1;r.subscribe({next:function(e){s=e,o=!0},error:t,complete:function(){o?e(s):n?e(i.defaultValue):t(new iw)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new B(C["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){let r,i=tq(e),n={hasClientExports:it(["client","export"],e,!0),hasForcedResolvers:(r=!1,to(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(r=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return ts}}}),r),hasNonreactiveDirective:it(["nonreactive"],e),hasIncrementalDirective:it(["defer"],e),nonReactiveQuery:to(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:a.DIRECTIVE,name:{kind:a.NAME,value:"nonreactive"}}
1]}}}),clientQuery:it(["client"],e)?e:null,serverQuery:function(e,t){var r;tV(t);let i=iJ(""),n=iJ(""),s=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!ry(r)){if(r.kind===a.OPERATION_DEFINITION)return i(r.name&&r.name.value);if(r.kind===a.FRAGMENT_DEFINITION)return n(r.name.value)}return w.error(14),null},o=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===a.OPERATION_DEFINITION&&++o;let l=function(e){let t=new Map,r=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),e=>{let i=t.get(e.name.value);return!i&&r.size&&r.forEach((t,r)=>{r(e)&&(i=t)}),i}}(e),u=e=>rq(e)&&e.map(l).some(e=>e&&e.remove),c=new Map,h=!1,f={enter(e){if(u(e.directives))return h=!0,null}},p=to(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,i,n){let o=s(n);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,i,n){if(u(e.directives))return h=!0,null;let o=s(n);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,i){c.set(JSON.stringify(i),e)},leave:(e,t,r,i)=>e===c.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every(e=>e.kind===a.FIELD&&"__typename"===e.name.value)?(n(e.name.value).removed=!0,h=!0,null):void 0},Directive:{leave(e){if(l(e))return h=!0,null}}});if(!h)return t;let d=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{d(n(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),y=new Set;p.definitions.forEach(e=>{e.kind===a.OPERATION_DEFINITION?d(i(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{y.add(e)}):e.kind!==a.FRAGMENT_DEFINITION||0!==o||n(e.name.value).removed||y.add(e.name.value)}),y.forEach(e=>{d(n(e)).fragmentSpreads.forEach(e=>{y.add(e)})});let m={enter(e){let t;if(t=e.name.value,!y.has(t)||n(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===a.FRAGMENT_SPREAD&&e(r[t.name.value],r))}(tq(r=to(p,{FragmentSpread:m,FragmentDefinition:m,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=d(i(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}))||function(e){w("Document"===e.kind,6),w(e.definitions.length<=1,7);let t=e.definitions[0];return w("FragmentDefinition"===t.kind,8),t}(r),t5(t6(r)))?r:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:i?.operation,defaultVars:r9(i),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,n)}let r=t.get(e);if(r.violation)throw r.violation;return r}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,i=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(i)}}watchQuery(e){tV(e.query,o.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new i2({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches(T(85)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,i=new Map,n=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),i.set(e,!1);else if(ru(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=t1(this.transform(e));r.set(t,e5(e)),i.set(t,!1)}else ru(e)&&e.query&&n.add(e)}),this.obsQueries.forEach(r=>{let n=t1(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:s,options:{fetchPolicy:o}}=r;("active"!==e||"standby"!==o)&&("active"===e||s&&i.has(s)||n&&i.has(n))&&(t.add(r),s&&i.set(s,!0),n&&i.set(n,!0))}
1),n.size&&n.forEach(e=>{let r=new i2({queryManager:this,options:{...e,fetchPolicy:"network-only"}});t.add(r)}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:i}=r.options;(e||"standby"!==i)&&"cache-only"!==i&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:i}=e,{fetchPolicy:n,errorPolicy:s="none",context:a={},extensions:l={}}=e;return tV(r,o.SUBSCRIPTION),r=this.transform(r),i=this.getVariables(r,i),Object.assign((this.getDocumentInfo(r).hasClientExports?ik(this.localState.getExportedVariables({client:this.client,document:r,variables:i,context:a})):iT(i)).pipe(ib(e=>{let{observable:i,restart:o}=this.getObservableFromLink(r,a,e,l),u=new i6(this);return t=o,i.pipe(ie(t=>{u.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:s,cacheWriteBehavior:2*("no-cache"!==n)});let i={data:t.data??void 0};if(iK(t))i.error=new iV(t);else"extensions"in t&&iU.is(t.extensions[iQ])&&(i.error=t.extensions[iQ],delete t.extensions[iQ]);return t.extensions&&Object.keys(t.extensions).length&&(i.extensions=t.extensions),i.error&&"none"===s&&(i.data=void 0),"ignore"===s&&delete i.error,i}),iS(e=>"ignore"===s?iT({data:void 0}):iT({data:void 0,error:e})),eW(e=>!!(e.data||e.error)))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new H(!1);getObservableFromLink(e,t,r,i,n=t?.queryDeduplication??this.queryDeduplication){let s={},{serverQuery:a,clientQuery:l,operationType:u,hasIncrementalDirective:c}=this.getDocumentInfo(e),h=e5(e),f={client:this.client};if(a){let{inFlightLinkObservables:e,link:l}=this;try{let c=this.incrementalHandler.prepareRequest({query:a,variables:r,context:{...this.defaultContext,...t,queryDeduplication:n},extensions:i});function p(e){return new e4(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let i=r();return s.restart||=()=>{i.unsubscribe(),i=r()},()=>{i.unsubscribe(),s.restart=void 0}})}if(t=c.context,n){var d,y,m,b,v,g,E,k,O;let t=t1(a),i=z(r);(s=e.lookup(t,i)).observable||(s.observable=ir(l,c,f).pipe(p,(d=()=>{e.peek(t,i)===s&&e.remove(t,i)},eh(function(e,t){try{e.subscribe(t)}finally{t.add(d)}})),u===o.SUBSCRIPTION?iI():(y={refCount:!0},O=!1,y&&!0?(k=void 0===(v=y.bufferSize)?1/0:v,m=void 0===(g=y.windowTime)?1/0:g,O=void 0!==(E=y.refCount)&&E,b=y.scheduler):k=null!=y?y:1/0,iI({connector:function(){return new iC(k,m,b)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:O}))))}else s.observable=ir(l,c,f).pipe(p)}catch(e){s.observable=ii(()=>e)}}else s.observable=iT({data:{}});if(l){let{operation:i}=tq(e);w(!c,90,i[0].toUpperCase()+i.slice(1),h??"(anonymous)"),s.observable=s.observable.pipe(ib(e=>ik(this.localState.execute({client:this.client,document:l,remoteResult:e,context:t,variables:r}))))}return{restart:()=>s.restart?.(),observable:s.observable.pipe(iS(e=>{var t,r,i;throw i=e=null!==(r=t=e)&&"object"==typeof r&&"string"==typeof r.message&&"string"==typeof r.name&&("string"==typeof r.stack||void 0===r.stack)?t:"string"==typeof t?Error(t,{cause:t}):new iB(t),iz.add(i),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:i}){let n=t.lastRequestId=this.generateRequestId(),{errorPolicy:s}=e,o=this.cache.transformForLink(e.query);return this.getObservableFromLink(o,e.context,e.variables).observable.pipe(ie(n=>{let a=t.markQueryResult(n,{...e,document:o,cacheWriteBehavior:r}),l=iK(a);if(l&&"none"===s)throw t.resetLastWrite(),i?.resetNotifications(),new iV(a);let c={data:a.data,...t.hasNext?{loading:!0,networkStatus:u.streaming,dataState:"streaming",partial:!0}:{dataState:a.data?"complete":"empty",loading:!1,networkStatus:u.ready,partial:!a.data}};return l&&("none"===s&&(c.data=void 0,c.dataState="empty"),"ignore"!==s&&(c.error=new iV(a),"streaming"!==c.dataState&&(c.networkStatus=u.error))),c}),iS(e=>{if(n>=t.lastRequestId&&"none"===s)throw t.resetLastWrite(),i?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:u.ready,partial:!0};return"ignore"!==s&&(r.error=e,r.networkStatus=u.error),iT(r)}))}fetchObservableWithInfo(e,{networkStatus:t=u.loading,query:r=e.query,fetchQueryOperator:i=e=>e,onCacheHit:n=()=>{},observableQuery:s}){let o,a,l=this.getVariables(r,e.variables),c=this.defaultOptions.watchQuery,{fetchPolicy:h=c&&c.fetchPolicy||"cache-first",errorPolicy:f=c&&c.errorPolicy||"none",returnPartialData:p=!1,notifyOnNetworkStatusChange:d=!0,context:y={}}=e;this.prioritizeCacheValues&&("network-only"===h||"cache-and-network"===h)&&(h="cache-first");let m=Object.assign({},e,{query:r,variables:l,fetchPolicy:h,errorPolicy:f,returnPartialData:p,notifyOnNetworkStatusChange:d,context:y}),b=new i6(this,s),v=r=>{m.variables=r;let o="no-cache"===h?0:t===u.refetch&&"merge"!==m.refetchWritePolicy?1:2,a=this.fetchQueryByPolicy(m,{queryInfo:b,cacheWriteBehavior:o,onCacheHit:n,observableQuery:s});return a.observable=a.observable.pipe(i),"standby"!==m.fetchPolicy&&s?.applyNextFetchPolicy("after-fetch",e),a},g=()=>
1{this.fetchCancelFns.delete(b.id)};this.fetchCancelFns.set(b.id,e=>{E.next({kind:"E",error:e,source:"network"})});let E=new iN;if(this.getDocumentInfo(m.query).hasClientExports)o=ik(this.localState.getExportedVariables({client:this.client,document:m.query,variables:m.variables,context:m.context})).pipe(ib(e=>v(e).observable)),a=!0;else{let e=v(m.variables);a=e.fromLink,o=e.observable}return{observable:new e4(e=>{e.add(g),o.subscribe(e),E.subscribe(e)}).pipe(iI()),fromLink:a}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:i=r?b("refetchQueries"):void 0,onQueryUpdated:n}){let s=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy)return;let t=e.getCurrentResult();s.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let o=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(e,r,i){let a=e.watcher;if(a instanceof i2&&!t.has(a)){if(t.add(a),n){s.delete(a);let e=n(a,r,i);return!0===e&&(e=a.refetch().retain()),!1!==e&&o.set(a,e),e}null!==n&&"cache-only"!==a.options.fetchPolicy&&s.set(a,{oq:a,lastDiff:i,diff:r})}}})}return s.size&&s.forEach(({oq:e,lastDiff:t,diff:r})=>{let i;n&&(r||(r=e.getCacheDiff()),i=n(e,r,t)),n&&!0!==i||(i=e.refetch().retain()),!1!==i&&o.set(e,i)}),i&&this.cache.removeOptimistic(i),o}noCacheWarningsByCause=new WeakSet;maskOperation(e){let{document:t,data:r}=e;return this.dataMasking?function(e,t,r){let i=tq(t);return(w(i,43),null==e)?e:iW(e,i.selectionSet,{operationType:i.operation,operationName:i.name?.value,fragmentMap:t5(t6(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(r,t,this.cache):r}maskFragment(e){let{data:t,fragment:r,fragmentName:i}=e;return this.dataMasking?function(e,t,r,i){let n=t.definitions.filter(e=>e.kind===a.FRAGMENT_DEFINITION);void 0===i&&(w(1===n.length,41,n.length),i=n[0].name.value);let s=n.find(e=>e.name.value===i);return(w(!!s,42,i),null==e||er(e,{}))?e:iW(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:t5(t6(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(t,r,this.cache,i):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:i,returnPartialData:n,context:s},{cacheWriteBehavior:o,onCacheHit:a,queryInfo:l,observableQuery:c}){let h=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),f=(r,o)=>{let l=r.result,c=e=>(r.complete||n||(e=void 0),{data:e,dataState:r.complete?"complete":e?"partial":"empty",loading:i$(o),networkStatus:o,partial:!r.complete}),h=e=>iT({kind:"N",value:c(e),source:"cache"});return(r.complete||n)&&this.getDocumentInfo(e).hasForcedResolvers?(a(),ik(this.localState.execute({client:this.client,document:e,remoteResult:l?{data:l}:void 0,context:s,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0}).then(e=>({kind:"N",value:c(e.data||void 0),source:"cache"})))):h("none"===i&&o===u.refetch&&r.missing?void 0:l||void 0)},p=()=>this.getResultsFromLink({query:e,variables:t,context:s,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:o,queryInfo:l,observableQuery:c}).pipe(nt(),eh(function(e,t){e.subscribe(eQ(t,function(e){t.next(iR.createNext(e))},function(){t.next(iR.createComplete()),t.complete()},function(e){t.next(iR.createError(e)),t.complete()}))}),ie(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=h();if(e.complete)return{fromLink:!1,observable:f(e,u.ready)};if(n)return{fromLink:!0,observable:iF(f(e,u.loading),p())};return{fromLink:!0,observable:p()}}case"cache-and-network":{let e=h();if(e.complete||n)return{fromLink:!0,observable:iF(f(e,u.loading),p())};return{fromLink:!0,observable:p()}}case"cache-only":return{fromLink:!1,observable:iF(f(h(),u.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:p()};case"standby":return{fromLink:!1,observable:e8}}}}function nt(){let e=!1;return iP({next(){e=!0},complete(){w(e,94)}})}let nr=/\r\n|[\n\r]/g;function ni(e,t){let r=0,i=1;for(let n of e.body.matchAll(nr)){if("number"==typeof n.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),n.index>=t)break;r=n.index+n[0].length,i+=1}return{line:i,column:t+1-r}}function nn(e,t){let r=e.locationOffset.column-1,i="".padStart(r)+e.body,n=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?r:0,l=t.column+a,u=`${e.name}:${o}:${l}
2`,c=i.split(/\r\n|[\n\r]/g),h=c[n];if(h.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return u+ns([[`${o} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+ns([[`${o-1} |`,c[n-1]],[`${o} |`,h],["|","^".padStart(l)],[`${o+1} |`,c[n+1]]])}function ns(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 no extends Error{constructor(e,...t){var r,i,n;let{nodes:s,source:o,positions:a,path:l,originalError:u,extensions:c}=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!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=na(Array.isArray(s)?s:s?[s]:void 0);let h=na(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==h||null==(i=h[0])?void 0:i.source,this.positions=null!=a?a:null==h?void 0:h.map(e=>e.start),this.locations=a&&o?a.map(e=>ni(o,e)):null==h?void 0:h.map(e=>ni(e.source,e.start));let f=!function(e){return"object"==typeof e&&null!==e}(null==u?void 0:u.extensions)||null==u?void 0:u.extensions;this.extensions=null!=(n=null!=c?c:f)?n: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!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,no):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"+nn((t=r.loc).source,ni(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+nn(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 na(e){return void 0===e||0===e.length?void 0:e}function nl(e,t,r){return new no(`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"}(c||(c={})),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 nu{constructor(e){let t=new tt(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,i=r.length,n=t;for(;n<i;){let t=r.charCodeAt(n);switch(t){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++e.line,e.lineStart=n;continue;case 13:10===r.charCodeAt(n+1)?n+=2:++n,++e.line,e.lineStart=n;continue;case 35:return function(e,t){let r=e.source.body,i=r.length,n=t+1;for(;n<i;){let e=r.charCodeAt(n);if(10===e||13===e)break;if(nc(e))++n;else if(nh(r,n))n+=2;else break}return ny(e,h.COMMENT,t,n,r.slice(t+1,n))}(e,n);case 33:return ny(e,h.BANG,n,n+1);case 36:return ny(e,h.DOLLAR,n,n+1);case 38:return ny(e,h.AMP,n,n+1);case 40:return ny(e,h.PAREN_L,n,n+1);case 41:return ny(e,h.PAREN_R,n,n+1);case 46:if(46===r.charCodeAt(n+1)&&46===r.charCodeAt(n+2))return ny(e,h.SPREAD,n,n+3);break;case 58:return ny(e,h.COLON,n,n+1);case 61:return ny(e,h.EQUALS,n,n+1);case 64:return ny(e,h.AT,n,n+1);case 91:return ny(e,h.BRACKET_L,n,n+1);case 93:return ny(e,h.BRACKET_R,n,n+1);case 123:return ny(e,h.BRACE_L,n,n+1);case 124:return ny(e,h.PIPE,n,n+1);case 125:return ny(e,h.BRACE_R,n,n+1);case 34:if(34===r.charCodeAt(n+1)&&34===r.charCodeAt(n+2))return function(e,t){let r=e.source.body,i=r.length,n=e.lineStart,s=t+3,o=s,a="",l=[];for(;s<i;){let i=r.charCodeAt(s);if(34===i&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)){a+=r.slice(o,s),l.push(a);let i=ny(e,h.BLOCK_STRING,t,s+3,(function(e){var t,r;let i=Number.MAX_SAFE_INTEGER,n=null,s=-1;for(let t=0;t<e.length;++t){let o=e[t],a=function(e){let t=0;for(;t<e.length&&tB(e.charCodeAt(t));)++t;return t}(o);a!==o.length&&(n=null!=(r=n)?r:t,s=t,0!==t&&a<i&&(i=a))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=n)?t:0,s+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=n,i}if(92===i&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)&&34===r.charCodeAt(s+3)){a+=r.slice(o,s),o=s+1,s+=4;continue}if(10===i||13===i){a+=r.slice(o,s),l.push(a),13===i&&10===r.charCodeAt(s+1)?s+=2:++s,a="",o=s,n=s;continue}if(nc(i))++s;else if(nh(r,s))s+=2;else throw nl(e.source,s,`Invalid character within String: ${nd(e,s)}.`)}throw nl(e.source,s,"Unterminated string.")}(e,n);return function(e,t){let r=e.source.body,i=r.length,n=t+1,s=n,o="";for(;n<i;){let i=r.charCodeAt(n);if(34===i)return o+=r.slice(s,n),ny(e,h.STRING,t,n+1,o);if(92===i){o+=r.slice(s,n);let t=117===r.charCodeAt(n+1)?123===r.charCodeAt(n+2)?function(e,t){let r=e.source.body,i=0,n=3;for(;n<12;){let e=r.charCodeAt(t+n++);if(125===e){if(n<5||!nc(i))break;return{value:String.fromCodePoint(i),size:n}}if((i=i<<4|nv(e))<0)break}throw nl(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+n)}".`)}(e,n):function(e,t){let r=e.source.body,i=nb(r,t+2);if(nc(i))return{value:String.fromCodePoint(i),size:6};if(nf(i)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=nb(r,t+8);
2if(np(e))return{value:String.fromCodePoint(i,e),size:12}}throw nl(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,n):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 nl(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,n);o+=t.value,n+=t.size,s=n;continue}if(10===i||13===i)break;if(nc(i))++n;else if(nh(r,n))n+=2;else throw nl(e.source,n,`Invalid character within String: ${nd(e,n)}.`)}throw nl(e.source,n,"Unterminated string.")}(e,n)}if(tQ(t)||45===t)return function(e,t,r){let i=e.source.body,n=t,s=r,o=!1;if(45===s&&(s=i.charCodeAt(++n)),48===s){if(tQ(s=i.charCodeAt(++n)))throw nl(e.source,n,`Invalid number, unexpected digit after 0: ${nd(e,n)}.`)}else n=nm(e,n,s),s=i.charCodeAt(n);if(46===s&&(o=!0,s=i.charCodeAt(++n),n=nm(e,n,s),s=i.charCodeAt(n)),(69===s||101===s)&&(o=!0,(43===(s=i.charCodeAt(++n))||45===s)&&(s=i.charCodeAt(++n)),n=nm(e,n,s),s=i.charCodeAt(n)),46===s||tW(s))throw nl(e.source,n,`Invalid number, expected digit but got: ${nd(e,n)}.`);return ny(e,o?h.FLOAT:h.INT,t,n,i.slice(t,n))}(e,n,t);if(tW(t))return function(e,t){let r=e.source.body,i=r.length,n=t+1;for(;n<i;){var s;if(tz(s=r.charCodeAt(n))||tQ(s)||95===s)++n;else break}return ny(e,h.NAME,t,n,r.slice(t,n))}(e,n);throw nl(e.source,n,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":nc(t)||nh(r,n)?`Unexpected character: ${nd(e,n)}.`:`Invalid character: ${nd(e,n)}.`)}return ny(e,h.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===h.COMMENT);return e}}function nc(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function nh(e,t){return nf(e.charCodeAt(t))&&np(e.charCodeAt(t+1))}function nf(e){return e>=55296&&e<=56319}function np(e){return e>=56320&&e<=57343}function nd(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 ny(e,t,r,i,n){let s=e.line,o=1+r-e.lineStart;return new tt(t,r,i,s,o,n)}function nm(e,t,r){if(!tQ(r))throw nl(e.source,t,`Invalid number, expected digit but got: ${nd(e,t)}.`);let i=e.source.body,n=t+1;for(;tQ(i.charCodeAt(n));)++n;return n}function nb(e,t){return nv(e.charCodeAt(t))<<12|nv(e.charCodeAt(t+1))<<8|nv(e.charCodeAt(t+2))<<4|nv(e.charCodeAt(t+3))}function nv(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}let ng=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 i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=e7(e,[]);throw Error(`Cannot use ${i} "${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 nE{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||e6(!1,`Body must be a string. Received: ${e7(e,[])}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||e6(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||e6(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class nk{constructor(e,t={}){let r=ng(e,nE)?e:new nE(e);this._lexer=new nu(r),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}
vendor: 5,034 bytes, line 13
13parseName(){let e=this.expectToken(h.NAME);return this.node(e,{kind:a.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.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 nl(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:a.OPERATION_DEFINITION,operation:o.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:a.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 o.QUERY;case"mutation":return o.MUTATION;case"subscription":return o.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:a.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:a.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.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,i=this.parseName();return this.expectOptionalToken(h.COLON)?(e=i,t=this.parseName()):t=i,this.node(r,{kind:a.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:a.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:a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.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:a.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:a.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:a.INT,value:t.value});case h.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.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:a.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.NULL});default:return this.node(t,{kind:a.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 nl(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:a.STRING,value:e.value,block:e.kind===h.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:a.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:a.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:a.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:a.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:a.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(h.BANG)?this.node(t,{kind:a.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:a.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(),i=this.many(h.BRACE_L,this.parseOperationTypeDefinition,h.BRACE_R);return this.node(e,{kind:a.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(h.COLON);let r=this.parseNamedType();return this.node(e,{kind:a.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:a.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:a.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:i,directives:n,fields:s})}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(),i=this.parseArgumentDefs();this.expectToken(h.COLON);let n=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:a.FIELD_DEFINITION,description:t,name:r,arguments:i,type:n,directives:s})}parseArgumentDefs(){return this.optionalMany(h.PAREN_L,this.parseInputValueDef,h.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),i=this.parseName();this.expectToken(h.COLON);let n=this.parseTypeReference();this.expectOptionalToken(h.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:a.INPUT_VALUE_DEFINITION,description:r,name:i,type:n,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:a.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:i,directives:n,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(e,{kind:a.UNION_TYPE_DEFINITION,description:t,name:r,directives:i,types:n})}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(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(e,{kind:a.ENUM_TYPE_DEFINITION,description:t,name:r,directives:i,values:n})}parseEnumValuesDefinition(){return this.optionalMany(h.BRACE_L,this.parseEnumValueDefinition,h.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:a.ENUM_VALUE_DEFINITION,description:t,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw nl(this._lexer.source,this._lexer.token.start,`${nw(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(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(e,{kind:a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:i,fields:n})}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:a.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:a.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(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:i,fields:n})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:i,fields:n})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.UNION_TYPE_EXTENSION,name:t,directives:r,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.ENUM_TYPE_EXTENSION,name:t,directives:r,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();
13this.expectKeyword("directive"),this.expectToken(h.AT);let r=this.parseName(),i=this.parseArgumentDefs(),n=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:a.DIRECTIVE_DEFINITION,description:t,name:r,arguments:i,repeatable:n,locations:s})}parseDirectiveLocations(){return this.delimitedMany(h.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(c,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new te(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 nl(this._lexer.source,t.start,`Expected ${nO(e)}, found ${nw(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 nl(this._lexer.source,t.start,`Expected "${e}", found ${nw(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 nl(this._lexer.source,t.start,`Unexpected ${nw(t)}.`)}any(e,t,r){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(r);)i.push(t.call(this));return i}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 i=[];do i.push(t.call(this));while(!this.expectOptionalToken(r));return i}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(t.kind!==h.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw nl(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function nw(e){let t=e.value;return nO(e.kind)+(null!=t?` "${t}"`:"")}function nO(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 nT=new Map,nS=new Map,n_=!0,nN=!1;function nx(e){return e.replace(/[\s,]+/g," ").trim()}function nI(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[r+1]}),function(e){var t=nx(e);if(!nT.has(t)){var r,i,n,s,o,a=function(e,t){let r=new nk(e,t),i=r.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:r.tokenCount}),i}(e,{experimentalFragmentVariables:nN,allowLegacyFragmentVariables:nN});if(!a||"Document"!==a.kind)throw Error("Not a valid GraphQL document.");nT.set(t,((s=new Set((r=new Set,i=[],a.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,n=e.name.value,s=nx((t=e.loc).source.body.substring(t.start,t.end)),o=nS.get(n);o&&!o.has(s)?n_&&console.warn("Warning: fragment with name "+n+" 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"):o||nS.set(n,o=new Set),o.add(s),r.has(s)||(r.add(s),i.push(e))}else i.push(e)}),n=ed(ed({},a),{definitions:i})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&s.add(r)})}),(o=n.loc)&&(delete o.startToken,delete o.endToken),n))}return nT.get(t)}(i)}var nD={gql:nI,resetCaches:function(){nT.clear(),nS.clear()},disableFragmentWarnings:function(){n_=!1},enableExperimentalFragmentVariables:function(){nN=!0},disableExperimentalFragmentVariables:function(){nN=!1}};!function(e){e.gql=nD.gql,e.resetCaches=nD.resetCaches,e.disableFragmentWarnings=nD.disableFragmentWarnings,e.enableExperimentalFragmentVariables=nD.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=nD.disableExperimentalFragmentVariables}(nI||(nI={})),nI.default=nI,TransformStream;var nA=class extends TransformStream{constructor(){super({transform(e,t){"string"!=typeof e&&(e=new TextDecoder().decode(e)),t.enqueue(JSON.parse(e))}})}},nC=Symbol.for("apollo.tee.readableStreamController"),nR=Symbol.for("apollo.read.readableStream");function nF(e){return{...e,query:nI(t1(nI(e.query)))}}Symbol.for("apollo.source_package"),Symbol.for("apollo.hook.wrappers");var nP=Symbol.for("apollo.dataTransport.skip");function nM(e){let{queryRef:t,children:r}=e;return!function(e,t){var r;if(e[e$])return;let{$__apollo_queryRef:{options:i,stream:n}}=e,s=nF(i);Object.assign(e,eG(function(e,t,r){var i,n;let s=e.watchQuery(t),o={context:{},...s.options};s.applyOptions(r);let a=new eJ(s,{autoDisposeTimeoutMs:null==(n=e.defaultOptions.react)||null==(i=n.suspense)?void 0:i.autoDisposeTimeoutMs});return s.applyOptions({...o,fetchPolicy:s.options.fetchPolicy===r.fetchPolicy?o.fetchPolicy:s.options.fetchPolicy}),a}(t,s,{...s,fetchPolicy:"network-only",context:Object.assign((r=n.pipeThrough(new nA),Object.assign({...s.context,queryDeduplication:!0}
13,{[nR]:r})),{[nP]:!0})})))}(t,A()),!function(e,t){(function(e,t,r){let i=[r.queryManager,e.startsWith("use")?f.useContext(D()):void 0],n=t;for(let t of i){let r=t?.[eZ]?.[e];r&&(n=r(n))}return n})("useBackgroundQuery",e1,A("object"==typeof t?t.client:void 0))(e,t??{})}(...(0,f.useMemo)(()=>{let{query:e,...r}=nF(t.$__apollo_queryRef.options);return[e,{...r,queryKey:t.$__apollo_queryRef.queryKey}]},[t.$__apollo_queryRef])),r}let nj=!0}}]);

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.