PageSourceSearch

https://sentria-cl.web.app/_next/static/chunks/578-b764223a5bf783e5.js

js sentria-cl.web.app collected 2026-10-03 12:35:33 UTC 144,791 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[578],{681:(e,t,r)=>{function i(){}r.d(t,{l:()=>o});let n="u">typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},s="u">typeof WeakMap?WeakMap:Map,a="u">typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:i,unregister:i}};class o{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new s,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{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 n(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){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))}}},3072:(e,t,r)=>{r.d(t,{s:()=>i});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7456:(e,t,r)=>{r.d(t,{T:()=>s});var i=r(17964),n=r(6376);function s(e,t){return(0,i.N)(function(r,i){var s=0;r.subscribe((0,n._)(i,function(r){i.next(e.call(t,r,s++))}))})}},9825:(e,t,r)=>{r.d(t,{D_:()=>n});let i={};function n(e,t){i[e]=t}},10270:(e,t,r)=>{let i,n,s;r.d(t,{Ri:()=>iU,TO:()=>iK,D9:()=>i$});var a,o,l,u=r(78759),c=r(83348),h=r(75524),d=r(92926);let f=null,p={},y=1;function m(e){try{return e()}catch(e){}}let b="@wry/context:Slot",v=m(()=>globalThis)||m(()=>global)||Object.create(null),g=v[b]||Array[b]||function(e){try{Object.defineProperty(v,b,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",y++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=f;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===p)break;return e!==f&&(f.slots[this.id]=t),!0}return f&&(f.slots[this.id]=p),!1}getValue(){if(this.hasValue())return f.slots[this.id]}withValue(e,t,r,i){let n={__proto__:null,[this.id]:e},s=f;f={parent:s,slots:n};try{return t.apply(i,r)}finally{f=s}}static bind(e){let t=f;return function(){let r=f;try{return f=t,e.apply(this,arguments)}finally{f=r}}}static noContext(e,t,r){if(!f)return e.apply(r,t);{let i=f;try{return f=null,e.apply(r,t)}finally{f=i}}}}),{bind:w,noContext:k}=g,S=new g,{hasOwnProperty:O}=Object.prototype,x=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function C(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let E=[];function _(e,t){if(!e)throw Error(t||"assertion failure")}function T(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function R(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class D{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++D.count}peek(){if(1===this.value.length&&!N(this))return F(this),this.value[0]}recompute(e){var t,r,i;return _(!this.recomputing,"already recomputing"),F(this),N(this)?(t=this,r=e,j(t),S.withValue(t,P,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{C(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((i=t).dirty=!1,N(i)||function(e){q(e,I)}(i)),R(t.value)):R(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,q(e,M),C(this))}dispose(){this.setDirty(),j(this),q(this,(e,t)=>{e.setDirty(),A(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=E.pop()||new Set),this.deps.add(e)}
1forgetDeps(){this.deps&&(x(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),E.push(this.deps),this.deps=null)}}function F(e){let t=S.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),N(e)?M(t,e):I(t,e),t}function P(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&&!T(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 N(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}D.count=0;function q(e,t){let r=e.parents.size;if(r){let i=x(e.parents);for(let n=0;n<r;++n)t(i[n],e)}}function M(e,t){_(e.childValues.has(t)),_(N(t));let r=!N(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=E.pop()||new Set;e.dirtyChildren.add(t),r&&q(e,M)}function I(e,t){_(e.childValues.has(t)),_(!N(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):T(r,t.value)||e.setDirty(),V(e,t),N(e)||q(e,I)}function V(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(E.length<100&&E.push(r),e.dirtyChildren=null))}function j(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{A(e,r)}),e.forgetDeps(),_(null===e.dirtyChildren)}function A(e,t){t.parents.delete(e),e.childValues.delete(t),V(e,t)}let Q={setDirty:!0,dispose:!0,forget:!0};function L(e){let t=new Map,r=e&&e.subscribe;function i(e){let i=S.getValue();if(i){let n=t.get(e);n||t.set(e,n=new Set),i.dependOn(n),"function"==typeof r&&(C(n),n.unsubscribe=r(e))}}return i.dirty=function(e,r){let i=t.get(e);if(i){let n=r&&O.call(Q,r)?r:"setDirty";
1x(i).forEach(e=>e[n]()),t.delete(e),C(i)}},i}function z(...e){return(i||(i=new h.b("function"==typeof WeakMap))).lookupArray(e)}let W=new Set;function B(e,{max:t=65536,keyArgs:r,makeCacheKey:i=z,normalizeResult:n,subscribe:s,cache:a=d.C}=Object.create(null)){let o="function"==typeof a?new a(t,e=>e.dispose()):a,l=function(){let t=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=o.get(t);a||(o.set(t,a=new D(e)),a.normalizeResult=n,a.subscribe=s,a.forget=()=>o.delete(t));let l=a.recompute(Array.prototype.slice.call(arguments));return o.set(t,a),W.add(o),S.hasValue()||(W.forEach(e=>e.clean()),W.clear()),l};function u(e){let t=e&&o.get(e);t&&t.setDirty()}function c(e){let t=e&&o.get(e);if(t)return t.peek()}function h(e){return!!e&&o.delete(e)}return Object.defineProperty(l,"size",{get:()=>o.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:i,normalizeResult:n,subscribe:s,cache:o}),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)}var U=r(681),$=r(38903),K=r(78119),H=r(52040);function Y(e){return e}class J{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new J(Y,{cache:!1})}static split(e,t,r=J.identity()){return Object.assign(new J(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.b;this.performWork=B(J.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,K.V1)(Array.isArray(r),20),e.lookupArray(r)},max:H.v["documentTransform.cache"],cache:U.l})}}performWork(e){return(0,$.s)(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 J(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}var G=r(13211),X=r(18064);let Z={kind:G.b.FIELD,name:{kind:G.b.NAME,value:"__typename"}},ee=Object.assign(function(e){return(0,X.YR)(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===G.b.OPERATION_DEFINITION)return;let{selections:i}=e;if(!(!i||i.some(e=>e.kind===G.b.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===G.b.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...i,Z]}}}})},{added:e=>e===Z});var et=r(46115),er=r(40221),ei=r(9825);let en=Object.assign(function(e){return JSON.stringify(e,es)},{reset(){n=new er.V(H.v.canonicalStringify||1e3)}});function es(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(ea))return t;let i=JSON.stringify(r),s=n.get(i);if(!s){r.sort();let e=JSON.stringify(r);s=n.get(e)||r,n.set(i,s),n.set(e,s)}let a=Object.create(e);return s.forEach(e=>{a[e]=t[e]}),a}}return t}function ea(e,t,r){return 0===t||r[t-1]<=e}et.g&&(0,ei.D_)("canonicalStringify",()=>n.size),en.reset();var eo=r(18156);function el(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function eu(){throw Error("only supported in development mode")}var ec=r(7456),eh=r(8193),ed=r(17964),ef=r(6376),ep=r(33379);function ey(e,t,r){var i=(0,eh.T)(e)||t||r?{next:e,error:t,complete:r}:e;return i?(0,ed.N)(function(e,t){null==(r=i.subscribe)||r.call(i);var r,n=!0;e.subscribe((0,ef._)(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)}))}):ep.D}var em=r(32978),eb=r(31927),ev=r(44355),eg=r(14155),ew=(0,eg.L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ek=r(62660),eS=r(1080),eO=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(0,em.C6)(t,e),t.prototype.lift=function(e){var t=new ex(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ew},t.prototype.next=function(e){var t=this;(0,eS.Y)(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var n=(0,em.Ju)(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;(0,eS.Y)(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;(0,eS.Y)(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}
1,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?ev.Kn:(this.currentObservers=null,n.push(e),new ev.yU(function(){t.currentObservers=null,(0,ek.o)(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 eb.c;return e.source=this,e},t.create=function(e,t){return new ex(e,t)},t}(eb.c),ex=function(e){function t(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return(0,em.C6)(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:ev.Kn},t}(eO),eC=r(78959),eE=function(e){function t(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=eC.U);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(0,em.C6)(t,e),t.prototype.next=function(t){var r=this.isStopped,i=this._buffer,n=this._infiniteTimeWindow,s=this._timestampProvider,a=this._windowTime;!r&&(i.push(t),n||i.push(s.now()+a)),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(),a=0,o=1;o<r.length&&r[o]<=s;o+=2)a=o;a&&r.splice(0,a+1)}},t}(eO),e_=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function eT(e){return(0,eh.T)(null==e?void 0:e.then)}var eR=r(3072);function eD(e){return(0,eh.T)(e[eR.s])}function eF(e){return Symbol.asyncIterator&&(0,eh.T)(null==e?void 0:e[Symbol.asyncIterator])}function eP(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 eN="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function eq(e){return(0,eh.T)(null==e?void 0:e[eN])}function eM(e){return(0,em.AQ)(this,arguments,function(){var t,r,i;return(0,em.YH)(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,(0,em.N3)(t.read())];case 3:if(i=(r=n.sent()).value,!r.done)return[3,5];return[4,(0,em.N3)(void 0)];case 4:return[2,n.sent()];case 5:return[4,(0,em.N3)(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 eI(e){return(0,eh.T)(null==e?void 0:e.getReader)}var eV=r(41060);function ej(e){if(e instanceof eb.c)return e;if(null!=e){var t,r,i,n;if(eD(e)){return t=e,new eb.c(function(e){var r=t[eR.s]();if((0,eh.T)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(e_(e)){return r=e,new eb.c(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(eT(e)){return i=e,new eb.c(function(e){i.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,eV.m)})}if(eF(e))return eA(e);if(eq(e)){return n=e,new eb.c(function(e){var t,r;try{for(var i=(0,em.Ju)(n),s=i.next();!s.done;s=i.next()){var a=s.value;if(e.next(a),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(eI(e))return eA(eM(e))}throw eP(e)}function eA(e){return new eb.c(function(t){(function(e,t){var r,i,n,s;return(0,em.sH)(this,void 0,void 0,function(){var a;return(0,em.YH)(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),r=(0,em.xN)(e),o.label=1;case 1:return[4,r.next()];case 2:if((i=o.sent()).done)return[3,4];if(a=i.value,t.next(a),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return n={error:o.sent()},[3,11];
1case 6:if(o.trys.push([6,,9,10]),!(i&&!i.done&&(s=r.return)))return[3,8];return[4,s.call(r)];case 7:o.sent(),o.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]}})})})(e,t).catch(function(e){return t.error(e)})})}var eQ=r(12917);function eL(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new eO}:t,i=e.resetOnError,n=void 0===i||i,s=e.resetOnComplete,a=void 0===s||s,o=e.resetOnRefCountZero,l=void 0===o||o;return function(e){var t,i,s,o=0,u=!1,c=!1,h=function(){null==i||i.unsubscribe(),i=void 0},d=function(){h(),t=s=void 0,u=c=!1},f=function(){var e=t;d(),null==e||e.unsubscribe()};return(0,ed.N)(function(e,p){o++,c||u||h();var y=s=null!=s?s:r();p.add(function(){0!=--o||c||u||(i=ez(f,l))}),y.subscribe(p),!t&&o>0&&(t=new eQ.Ms({next:function(e){return y.next(e)},error:function(e){c=!0,h(),i=ez(d,n,e),y.error(e)},complete:function(){u=!0,h(),i=ez(d,a),y.complete()}}),ej(e).subscribe(t))})(e)}}function ez(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 eQ.Ms({next:function(){n.unsubscribe(),e()}});return ej(t.apply(void 0,(0,em.fX)([],(0,em.zs)(r)))).subscribe(n)}}function eW(e,t,r){var i,n,s,a,o=!1;return e&&"object"==typeof e?(a=void 0===(i=e.bufferSize)?1/0:i,t=void 0===(n=e.windowTime)?1/0:n,o=void 0!==(s=e.refCount)&&s,r=e.scheduler):a=null!=e?e:1/0,eL({connector:function(){return new eE(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function eB(e,t){return e===t}var eU=r(26855),e$=new(r(9832)).q(eU.R);function eK(e){(0,K.V1)("Document"===e.kind,6),(0,K.V1)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,K.V1)("FragmentDefinition"===t.kind,8),t}let eH=(0,r(28654).B)(function(e,t,r){let i,n;function s(e){return e!==i&&(n=r(i=e)),n}return Object.assign(e.pipe((0,ec.T)(s),eW({bufferSize:1,refCount:!0})),{getCurrentResult:()=>s(e.getCurrentResult())})},{max:1,makeCacheKey:e=>e.slice(0,2)});var eY=r(10675);function eJ(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}function eG(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}function eX(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(0,K.V1)(i,9,r),i||null}default:return null}}function eZ(e){let t;for(let r of((0,$.s)(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,K.vA)(12)}function e0(e){return"Field"===e.kind}function e1(e){return e.alias?e.alias.value:e.name.value}function e8({directives:e},t){var r;let i;return!e||!e.length||(i=[],(r=e)&&r.length&&r.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let t=e.arguments,r=e.name.value;(0,K.V1)(t&&1===t.length,16,r);let n=t[0];(0,K.V1)(n.name&&"if"===n.name.value,17,r);let s=n.value;(0,K.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),18,r),i.push({directive:e,ifArgument:n})}),i).every(({directive:e,ifArgument:r})=>{let i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],(0,K.V1)(void 0!==i,15,e.name.value)):i=r.value.value,"skip"===e.name.value?!i:i})}function e6(e,{data:t,...r},{data:i,...n},s){return(0,c.L)(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),!e8(t,n.variables)||e3(t)))return!0;if(e0(t)){let s=e1(t),a=r&&r[s],o=i&&i[s],l=t.selectionSet;if(!l)return(0,c.L)(a,o);let u=Array.isArray(a),h=Array.isArray(o);if(u!==h)return!1;if(u&&h){let t=a.length;if(o.length!==t)return!1;for(let r=0;r<t;++r)if(!e(l,a[r],o[r],n))return!1;return!0}return e(l,a,o,n)}{let s=eX(t,n.fragmentMap);if(s)return!!e3(s)||e(s.selectionSet,r,i,n)}})}(eZ(e).selectionSet,t,i,{fragmentMap:eJ(eG(e)),variables:s})}function e3(e){return!!e.directives&&e.directives.some(e2)}function e2(e){return"nonreactive"===e.name.value}function e9(e,t){let r=t,i=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,K.vA)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===r&&((0,K.V1)(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 e7{assumeImmutableResults=!1;lookupFragment(e){return null}
1batch(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})}fragmentWatches=new h.b(!0);watchFragment(e){let t,{fragment:r,fragmentName:i,from:n}=e,s=this.getFragmentDoc(r,i),a=(Array.isArray(n)?n:[n]).map(e=>{let t=null==e?e:this.toCacheId(e);if(et.g){let e=i||eK(r).name.value;void 0===t&&et.g&&K.V1.warn(113,e)}return t});if(!Array.isArray(n)){let t=this.watchSingleFragment(a[0],s,e);return null===n?t:eH(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}function o(e){let r=e.reduce((e,t,r)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[r]=t.missing),e),{data:[],dataState:"complete",complete:!0});return(0,c.L)(t,r)||(t=r),t}if(0===a.length)return tt;let l=!1,u=a.map(t=>this.watchSingleFragment(t,s,e));return Object.assign((0===u.length?eY.w:new eb.c(e=>{let t,{length:r}=u,i=Array(r),n=new Map;u.forEach((e,t)=>{n.has(e)||n.set(e,new Set),n.get(e).add(t)});let s=n.size,a=n.size;n.forEach((r,n)=>{let o=!1,l=n.subscribe({next:s=>{r.forEach(e=>i[e]=s),!o&&(o=!0,a--),!a&&((t||=new Set(u.filter(e=>e.dirty))).delete(n),t.size||(e.next(i.slice()),t=void 0))},complete:()=>{--s||e.complete()},error:e.error.bind(e)});e.add(l)})})).pipe((0,ec.T)(o),ey({subscribe:()=>l=!0,unsubscribe:()=>l=!1}),eW({bufferSize:1,refCount:!0})),{getCurrentResult:()=>l&&t?t:o(u.map(e=>e.getCurrentResult()))})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,r){if(null===e)return e5;let{optimistic:i=!0,variables:n}=r,s=[t,en({id:e,optimistic:i,variables:n})],a=this.fragmentWatches.lookupArray(s);if(!a.observable){var o,l;let c,h=!1;function u(e){let i=e.result;return c&&e6(t,{data:c.data},{data:i},r.variables)||(c={data:i,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(c.missing=e.missing.missing)),c}let d=new eb.c(r=>{h=!0;let a=this.watch({variables:n,returnPartialData:!0,id:e,query:t,optimistic:i,immediate:!0,callback:e=>{d.dirty=!0,this.onAfterBroadcast(()=>{r.next(u(e)),d.dirty=!1})}});return()=>{h=!1,a(),this.fragmentWatches.removeArray(s)}}).pipe((void 0===l&&(l=ep.D),o=null!=o?o:eB,(0,ed.N)(function(e,t){var r,i=!0;e.subscribe((0,ef._)(t,function(e){var n=l(e);(i||!o(r,n))&&(i=!1,r=n,t.next(e))}))})),eL({connector:()=>new eE(1),resetOnRefCountZero:()=>{var e;return void 0===e&&(e=e$),new eb.c(function(t){var r=0;r<0&&(r=0);var i=0;return e.schedule(function(){t.closed||(t.next(i++),t.complete())},r)})}}));a.observable=Object.assign(d,{dirty:!1,getCurrentResult:()=>h&&c?c:u(this.diff({id:e,query:t,returnPartialData:!0,optimistic:i,variables:n}))})}return a.observable}getFragmentDoc=B(e9,{max:H.v["cache.fragmentQueryDocuments"]||1e3,cache:U.l,makeCacheKey:function(...e){return z.bind(null,...e)}(this)});readFragment(e,t=!!e.optimistic){let r=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:r,...i}){let n=void 0!==i.from?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(t,r),dataId:n,result:e}))}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)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}et.g&&(e7.prototype.getMemoryInternals=eu);let e4=Object.freeze({data:null,dataState:"complete",complete:!0}),e5=Object.assign(new eb.c(e=>{e.next(e4)}),{dirty:!1,getCurrentResult:()=>e4}),te=Object.freeze({data:[],dataState:"complete",complete:!0}),tt=Object.assign(new eb.c(e=>{e.next(te)}),{getCurrentResult:()=>te});var tr=r(93915);let{hasOwnProperty:ti}
1=Object.prototype,tn=function(e,t,r){return this.merge(e[r],t[r])},ts=e=>isNaN(+e)?{}:[];class ta{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||tn}merge(e,t,r={}){let i=r.atPath;if(i?.length){let[n,...s]=i;void 0===e&&(e=ts(n));let a=e[n];void 0===a&&s.length&&(a=ts(s[0]));let o=this.merge(a,t,{...r,atPath:s});return a!==o&&((e=this.shallowCopyForMerge(e))[n]=o),e}return(Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),(0,tr.U)(t)&&(0,tr.U)(e))?(Object.keys(t).forEach(r=>{if(ti.call(e,r)){let i=e[r];if(t[r]!==i){let n=this.reconciler(e,t,r);n!==i&&((e=this.shallowCopyForMerge(e))[r]=n)}}else(e=this.shallowCopyForMerge(e))[r]=t[r]}),e):t}isObject=tr.U;pastCopies=new Set;shallowCopyForMerge(e){return(0,tr.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}function to(e){return{__ref:String(e)}}var tl=r(5268),tu=r(67867);let tc=Array.isArray,{hasOwnProperty:th}=Object.prototype;function td({__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 tf={dataIdFromObject:td,resultCaching:!0},tp=/^[_a-z][_0-9a-z]*/i;function ty(e){let t=e.match(tp);return t?t[0]:e}function tm(e){return(0,tr.U)(e)&&!el(e)&&!tc(e)}function tb(e,t){let r=eJ(eG(e));return{fragmentMap:r,lookupFragment(e){let i=r[e];return!i&&t&&(i=t.lookup(e)),i||null}}}let tv={},tg=()=>tv,tw={};class tk{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),th.call(this.data,e)){let r=this.data[e];if(r&&th.call(r,t))return r[t]}return"__typename"===t&&th.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof tC?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),th.call(this.data,e))?this.data[e]:this instanceof tC?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;el(e)&&(e=e.__ref),el(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;(0,K.V1)("string"==typeof r,99);let s=new ta({reconciler:t_}).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=ty(t);r===t||this.policies.hasKeyArgs(s.__typename,r)||(e[r]=1),void 0!==s[t]||this instanceof tC||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,a=!0,o={DELETE:tv,INVALIDATE:tw,isReference:el,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||to(e)}:t,{store:this})};
1if(Object.keys(i).forEach(l=>{let u=ty(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===tg?tv:h((0,tl.G)(c),{...o,fieldName:u,storeFieldName:l,storage:this.getStorage(e,l)});if(t===tw)this.group.dirty(e,l);else if(t===tv&&(t=void 0),t!==c&&(n[l]=t,s=!0,c=t,et.g)){let e=e=>{if(void 0===this.lookup(e.__ref))return et.g&&K.V1.warn(100,e),!0};if(el(t))e(t);else if(Array.isArray(t)){let r,i=!1;for(let n of t){if(el(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){et.g&&K.V1.warn(101,r);break}}}}}void 0!==c&&(a=!1)}),s)return this.merge(e,n),a&&(this instanceof tC?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]:tg}:tg,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(th.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof tC&&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=>{th.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&&th.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 tC?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=>{th.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 tC;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!th.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=>{el(e)&&(t[e.__ref]=!0),(0,tr.U)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,tr.U)(r)&&i.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,tl.G)(el(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>el(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return to(e);if(el(e))return e;let[r]=this.policies.identify(e);if(r){let i=to(r);return t&&this.merge(r,e),i}};get supportsResultCaching(){return this.group.caching}}class tS{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?L():null,this.keyMaker=new h.b}depend(e,t){if(this.d){this.d(t+"#"+e);let r=ty(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 tO(e,t){tT(e)&&e.group.depend(t,"__exists")}class tx extends tk{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new tS(t)),r&&this.replace(r)}stump=new tE(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new h.b;getStorage(){return this.storageTrie.lookupArray(arguments)}}tk.Root=tx;class tC extends tk{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 tC(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=>{(0,c.L)(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 th.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 tE extends tC{constructor(e){super("EntityStore.Stump",e,()=>{},new tS(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function t_(e,t,r){let i=e[r],n=t[r];return(0,c.L)(i,n)?i:n}function tT(e){return!!(e&&e.supportsResultCaching)}let tR=new g;var tD=r(80875);function tF(e,t,r,i){if(r.kind===G.b.INT||r.kind===G.b.FLOAT)e[t.value]=Number(r.value);else if(r.kind===G.b.BOOLEAN||r.kind===G.b.STRING)e[t.value]=r.value;else if(r.kind===G.b.OBJECT){let n={};r.fields.map(e=>tF(n,e.name,e.value,i)),e[t.value]=n}else if(r.kind===G.b.VARIABLE){let n=(i||{})[r.name.value];e[t.value]=n}else if(r.kind===G.b.LIST)e[t.value]=r.values.map(e=>{let r={};return tF(r,t,e,i),r[t.value]});else if(r.kind===G.b.ENUM)e[t.value]=r.value;else if(r.kind===G.b.NULL)e[t.value]=null;else throw(0,K.vA)(19,t.value,r.kind)}function tP(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:i})=>tF(r,e,i,t)),r}return null}let tN=["connection","include","skip","client","rest","export","nonreactive","stream"],tq=en,tM=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=tq(i);if("{}"!==n)return`${r.connection.key}(${n})`}return r.connection.key}let i=e;if(t){let e=tq(t);"{}"!==e&&(i+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===tN.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?i+=`@${e}(${tq(r[e])})`:i+=`@${e}`)}),i},{setStringify(e){let t=tq;return tq=e,t}});var tI=r(2328);function tV(e){return Array.isArray(e)&&e.length>0}let tj={};function tA(e){let t=JSON.stringify(e);return tj[t]||(tj[t]={})}function tQ(e){let t=tA(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let i=(e,t)=>r.readField(t,e),n=r.keyObject=tz(e,e=>{let n=tB(r.storeObject,e,i);return void 0===n&&t!==r.storeObject&&th.call(t,e[0])&&(n=tB(t,e,tW)),(0,K.V1)(void 0!==n,102,e.join("."),t),n});return`${r.typename}:${JSON.stringify(n)}`})}function tL(e){let t=tA(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:i,fieldName:n})=>{let s=JSON.stringify(tz(e,e=>{let n=e[0],s=n.charAt(0);if("@"===s){if(r&&tV(r.directives)){let t=n.slice(1),s=r.directives.find(e=>e.name.value===t),a=s&&tP(s,i);return a&&tB(a,e.slice(1))}return}if("$"===s){let t=n.slice(1);if(i&&th.call(i,t)){let r=e.slice(0);return r[0]=t,tB(i,r)}return}if(t)return tB(t,e)}));return(t||"{}"!==s)&&(n+=":"+s),n})}function tz(e,t){let r=new ta;return(function e(t){let r=tA(t);if(!r.paths){let i=r.paths=[],n=[];t.forEach((r,s)=>{tc(r)?(e(r).forEach(e=>i.push(n.concat(e))),n.length=0):(n.push(r),tc(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 tW(e,t){return e[t]}function tB(e,t,r){return r=r||tW,function e(t){return(0,tr.U)(t)?tc(t)?t.map(e):tz(Object.keys(t).sort(),e=>tB(t,e)):t}(t.reduce(function e(t,i){return tc(t)?t.map(t=>e(t,i)):t&&r(t,i)},e))}let tU=new g,t$=new WeakMap;function tK(e){let t=t$.get(e);return t||t$.set(e,t={vars:new Set,dep:L()}),t}function tH(e){tK(e).vars.forEach(t=>t.forgetCache(e))}function tY(e){let t=new Set,r=new Set,i=function(s){if(arguments.length>
10){if(e!==s){e=s,t.forEach(e=>{var t;tK(e).dep.dirty(i),(t=e).broadcastWatches&&t.broadcastWatches()});let n=Array.from(r);r.clear(),n.forEach(t=>t(e))}}else{let e=tU.getValue();e&&(n(e),tK(e).dep(i))}return e};i.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let n=i.attachCache=e=>(t.add(e),tK(e).vars.add(i),i);return i.forgetCache=e=>t.delete(e),i}function tJ(e){return void 0!==e.args?e.args:e.field?tP(e.field,e.variables):null}let tG=()=>void 0,tX=(e,t)=>t.fieldName,tZ=(e,t,{mergeObjects:r})=>r(e,t),t0=(e,t)=>t,t1=(e,t,{streamFieldInfo:r,existingData:i})=>{if(!e&&!i)return t;let n=[],s=e??i,a=r?.isLastChunk?t.length:Math.max(s.length,t.length);for(let e=0;e<a;e++)n[e]=void 0===t[e]?s[e]:t[e];return n};class t8{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:td,...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,a={...t,typename:n,storeObject:s,readField:t&&t.readField||((...e)=>{let t=t3(e,s);return i.readField(t,{store:i.cache.data,variables:t.variables})})},o=n&&this.getTypePolicy(n),l=o&&o.keyFn||this.config.dataIdFromObject;return tR.withValue(!0,()=>{for(;l;){let t=l({...e,...s},a);if(tc(t))l=tQ(t);else{r=t;break}}}),r=r?String(r):void 0,a.keyObject?[r,a.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),th.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 a(e,t){e.merge="function"==typeof t?t:!0===t?tZ:!1===t?t0:e.merge}a(i,t.merge),i.keyFn=!1===n?tG:tc(n)?tQ(n):"function"==typeof n?n:i.keyFn,s&&Object.keys(s).forEach(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?tX:tc(e)?tL(e):"function"==typeof e?e:i.keyFn,"function"==typeof t&&(i.read=t),a(i,r)}i.read&&i.merge&&(i.keyFn=i.keyFn||tX)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];t!==i&&((0,K.V1)(!i||i===e,103,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(tp);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!th.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),a=[s],o=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>a.indexOf(t)&&a.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1;for(let c=0;c<a.length;++c){let h=a[c];if(h.has(n))return s.has(n)||(u&&et.g&&K.V1.warn(104,t,n),s.add(n)),!0;h.forEach(o),l&&c===a.length-1&&function e(t,r,i){return!!(0,tr.U)(r)&&(tc(r)?r.every(r=>e(t,r,i)):t.selections.every(t=>{if(e0(t)&&e8(t,i)){let n=e1(t);
1return th.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&&o(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:a,fieldName:o}=e,l=this.getFieldPolicy(a,o),u=l&&l.keyFn;if(u&&a){let t={typename:a,fieldName:o,field:e.field||null,variables:e.variables},r=tJ(e);for(;u;){let e=u(r,t);if(tc(e))u=tL(e);else{i=e||o;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})=>tF(n[e.name.value],t,i,r))})),s=null,t.arguments&&t.arguments.length&&(s={},t.arguments.forEach(({name:e,value:t})=>tF(s,e,t,r))),tM(t.name.value,s,n)):tM(o,tJ(e))),!1===i)?o:o===ty(i)?i:o+":"+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=ty(i),s=t.store.getFieldValue(r,i),a=this.getFieldPolicy(e.typename,n),o=a&&a.read;if(o){let n=t6(this,r,e,t,t.store.getStorage(el(r)?r.__ref:r,i));return tU.withValue(this.cache,o,[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,path:s},a,o){let l=e;if(n===tZ)return t2(a.store)(e,t);if(n===t0)return t;a.overwrite&&(e=void 0);let u=a.extensions?.[tD.DH]?.deref()?.peekArray(s);if(u){let{current:e,previous:r}=u;if(r&&(0,c.L)(r.incoming,t)&&(0,c.L)(r.streamFieldInfo,e))return r.result}let h=n(e,t,function(e,t,r,i,n,s){let a={...t6(e,t,r,i,n),extensions:i.extensions,existingData:s},o=i.extensions;if(o&&tD.DH in o){let{[tD.DH]:e,...t}=o,i=e?.deref()?.peekArray(r.path);i&&(a.streamFieldInfo=i.current),a.extensions=0===Object.keys(t).length?void 0:t}return a}(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:a.variables,path:s},a,o||{},l));return u&&(u.previous={incoming:t,streamFieldInfo:u.current,result:h}),h}}function t6(e,t,r,i,n){let s=e.getStoreFieldName(r),a=ty(s),o=r.variables||i.variables,{toReference:l,canRead:u}=i.store;return{args:tJ(r),field:r.field||null,fieldName:a,storeFieldName:s,variables:o,isReference:el,toReference:l,storage:n,cache:e.cache,canRead:u,readField:(...r)=>e.readField(t3(r,t,o),i),mergeObjects:t2(i.store)}}function t3(e,t,r){let i,{0:n,1:s,length:a}=e;return"string"==typeof n?i={fieldName:n,from:a>1?s:t}:(i={...n},th.call(i,"from")||(i.from=t)),et.g&&void 0===i.from&&et.g&&K.V1.warn(105,(0,tI.p)(Array.from(e))),void 0===i.variables&&(i.variables=r),i}function t2(e){return function(t,r){if(tc(t)||tc(r))throw(0,K.vA)(106);if((0,tr.U)(t)&&(0,tr.U)(r)){let i=e.getFieldValue(t,"__typename"),n=e.getFieldValue(r,"__typename");if(i&&n&&i!==n)return r;if(el(t)&&tm(r))return e.merge(t.__ref,r),t;if(tm(t)&&el(r))return e.merge(t,r.__ref),r;if(tm(t)&&tm(r))return{...t,...r}}return r}}function t9(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&tF(t,e.variable.name,e.defaultValue)}),t}var t7=r(61450);function t4(e){let t=(0,t7.V)(e);return(0,K.V1)(t&&"query"===t.operation,13),t}class t5 extends Error{message;path;query;variables;
1constructor(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__=t5.prototype}missing}function re(e){return[e.selectionSet,e.objectOrReference,e.context]}class rt{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=B(e=>{let t=re(e),r=this.executeSelectionSet.peek(...t);return r||(tO(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:H.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:re,makeCacheKey(e,t,r){if(tT(r.store))return r.store.makeCacheKey(e,el(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=B(e=>(tO(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:H.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(tT(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,a=this.config.cache.policies;i={...t9(t4(t)),...i};let o=to(r),l=this.executeSelectionSet({selectionSet:eZ(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:a,variables:i,varString:en(i),...tb(t,this.config.fragments)}});l.missing&&(s=new t5(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?c:n?0===Object.keys(c).length?null:c:null,complete:u,missing:s}}isFresh(e,t,r,i){if(tT(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(el(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:a,store:o}=i,l=o.getFieldValue(t,"__typename"),u=[],c=new ta;function h(e,t){return e.missing&&(n=c.merge(n,{[t]:e.missing})),e.result}"string"!=typeof l||a.rootIdsByTypename[l]||u.push({__typename:l});let d=new Set(e.selections);d.forEach(e=>{if(e8(e,s))if(e0(e)){let s=a.readField({fieldName:e.name.value,field:e,variables:i.variables,from:t},i),o=e1(e);void 0===s?ee.added(e)||(n=c.merge(n,{[o]:`Can't find field '${e.name.value}' on ${el(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):tc(s)?s.length>0&&(s=h(this.executeSubSelectedArray({field:e,array:s,enclosingRef:r,context:i}),o)):e.selectionSet&&null!=s&&(s=h(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:s,enclosingRef:el(s)?s:r,context:i}),o)),void 0!==s&&u.push({[o]:s})}else{let t=eX(e,i.lookupFragment);if(!t&&e.kind===G.b.FRAGMENT_SPREAD)throw(0,K.vA)(107,e.name.value);t&&a.fragmentMatches(t,l)&&t.selectionSet.selections.forEach(d.add,d)}});let f={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let i=new ta;for(let n=1;n<r;++n)t=i.merge(t,e[n])}return t}(u),missing:n},p=(0,tl.G)(f);return p.result&&this.knownResults.set(p.result,e),p}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:i}){let n,s=new ta;function a(e,t){return e.missing&&(n=s.merge(n,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||i.store.canRead(e))),{result:t=t.map((t,n)=>null===t?null:tc(t)?a(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:i}),n):e.selectionSet?a(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:el(t)?t:r,context:i}),n):(et.g&&function(e,t,r){if(!t.selectionSet){let i=new Set([r]);i.forEach(r=>{(0,tr.U)(r)&&((0,K.V1)(!el(r),108,el(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(i.add,i))})}}(i.store,e,t),t)),missing:n}}}function rr(e,t,r){let i=new Set(e),n=i.size;return(0,X.YR)(t,{Directive(e){if(i.delete(e.name.value)&&(!r||!i.size))return X.sP}}),r?!i.size:i.size<n}let{toString:ri}=Object.prototype;function rn(e,t,r){let i=`${t}${r}`,n=e.flavors.get(i);return n||e.flavors.set(i,n=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),n}class rs{constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:i,variables:n,overwrite:s,extensions:a}){let o=(0,t7.V)(t),l=new ta,u={store:e,written:{},merge:(e,t)=>
1l.merge(e,t),variables:n={...t9(o),...n},varString:en(n),...tb(t,this.fragments),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:a},h=this.processSelectionSet({result:r||{},dataId:i,selectionSet:o.selectionSet,mergeTree:{map:new Map},context:u,path:[]});if(!el(h))throw(0,K.vA)(109,r);return u.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:i},n)=>{let s=to(n);if(r&&r.map.size){let e=this.applyMerges(r,s,t,u);if(el(e))return;t=e}if(et.g&&!u.overwrite){let e={};i.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(t).forEach(i=>{let n;!0!==e[ty(i)]||(n=r&&r.map.get(i))&&n.info&&n.info.merge||function(e,t,r,i){let n=e=>{let t=i.getFieldValue(e,r);return"object"==typeof t&&t},s=n(e);if(!s)return;let a=n(t);if(!a||el(s)||(0,c.L)(s,a)||Object.keys(s).every(e=>void 0!==i.getFieldValue(a,e)))return;let o=i.getFieldValue(e,"__typename")||i.getFieldValue(t,"__typename"),l=ty(r),u=`${o}.${l}`;if(rc.has(u))return;rc.add(u);let h=[];tc(s)||tc(a)||[s,a].forEach(e=>{let t=i.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}),et.g&&K.V1.warn(112,l,o,h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"",u,Array.isArray(s)?[...s]:{...s},Array.isArray(a)?[...a]:{...a})}(s,t,i,u.store)})}e.merge(n,t)}),e.retain(h.__ref),h}processSelectionSet({dataId:e,result:t,selectionSet:r,context:i,mergeTree:n,path:s}){let{policies:a}=this.cache,o={},l=e&&a.rootTypenamesById[e]||rh(t,r,i.fragmentMap)||e&&i.store.get(e,"__typename");"string"==typeof l&&(o.__typename=l);let u=(...e)=>{let t=t3(e,o,i.variables);if(el(t.from)){let e=i.incomingById.get(t.from.__ref);if(e){let r=a.readField({...t,from:e.storeObject},i);if(void 0!==r)return r}}return a.readField(t,i)},c=new Set;this.flattenFields(r,t,i,l).forEach((e,r)=>{let i=t[e1(r)],h=[...s,r.name.value];if(c.add(r),void 0!==i){let t,s=a.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),c=ro(n,s),d=this.processFieldValue(i,r,r.selectionSet?rn(e,!1,!1):e,c,h);r.selectionSet&&(el(d)||tm(d))&&(t=u("__typename",d));let f=a.getMergeFunction(l,r.name.value,t);f?c.info={field:r,typename:l,merge:f,path:h}:rr(["stream"],r)&&Array.isArray(d)&&e.extensions?.[tD.DH]?c.info={field:r,typename:l,merge:t1,path:h}:ru(n,s),o=e.merge(o,{[s]:d})}else!et.g||e.clientOnly||e.deferred||ee.added(r)||a.getReadFunction(l,r.name.value)||K.V1.error(110,e1(r),t)});try{let[n,s]=a.identify(t,{typename:l,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:o,readField:u});e=e||n,s&&(o=i.merge(o,s))}catch(t){if(!e)throw t}if("string"==typeof e){let s=to(e),a=i.written[e]||(i.written[e]=[]);if(a.indexOf(r)>=0||(a.push(r),this.reader&&this.reader.isFresh(t,s,r,i)))return s;let l=i.incomingById.get(e);return l?(l.storeObject=i.merge(l.storeObject,o),l.mergeTree=function e(t,r){if(t===r||!r||rl(r))return t;if(!t||rl(t))return r;let i=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,n=t.map.size&&r.map.size,s={info:i,map:n?new Map:t.map.size?t.map:r.map};if(n){let i=new Set(r.map.keys());t.map.forEach((t,n)=>{s.map.set(n,e(t,r.map.get(n))),i.delete(n)}
1),i.forEach(i=>{s.map.set(i,e(r.map.get(i),t.map.get(i)))})}return s}(l.mergeTree,n),c.forEach(e=>l.fieldNodeSet.add(e))):i.incomingById.set(e,{storeObject:o,mergeTree:rl(n)?void 0:n,fieldNodeSet:c}),s}return o}processFieldValue(e,t,r,i,n){return t.selectionSet&&null!==e?tc(e)?e.map((e,s)=>{let a=this.processFieldValue(e,t,r,ro(i,s),[...n,s]);return ru(i,s),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:i,path:n}):et.g?function e(t,r){switch(ri.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach(n=>{i[n]=e(t[n],r)}),i}default:return t}}(e):e}flattenFields(e,t,r,i=rh(t,e,r.fragmentMap)){let n=new Map,{policies:s}=this.cache,a=new h.b(!1);return!function e(o,l){let u=a.lookup(o,l.clientOnly,l.deferred);u.visited||(u.visited=!0,o.selections.forEach(a=>{if(!e8(a,r.variables))return;let{clientOnly:o,deferred:u}=l;if(!(o&&u)&&tV(a.directives)&&a.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(o=!0),"defer"===t){let t=tP(e,r.variables);t&&!1===t.if||(u=!0)}}),e0(a)){let e=n.get(a);e&&(o=o&&e.clientOnly,u=u&&e.deferred),n.set(a,rn(r,o,u))}else{let n=eX(a,r.lookupFragment);if(!n&&a.kind===G.b.FRAGMENT_SPREAD)throw(0,K.vA)(111,a.name.value);n&&s.fragmentMatches(n,i,t,r.variables)&&e(n.selectionSet,rn(r,o,u))}}))}(e,r),n}applyMerges(e,t,r,i,n){if(e.map.size&&!el(r)){let s,a=!tc(r)&&(el(t)||tm(t))?t:void 0,o=r;a&&!n&&(n=[el(a)?a.__ref:a]);let l=(e,t)=>tc(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=l(a,t),u=l(o,t);if(void 0===u)return;n&&n.push(t);let c=this.applyMerges(e,r,u,i,n);c!==u&&(s=s||new Map).set(t,c),n&&(0,K.V1)(n.pop()===t)}),s&&(r=tc(o)?o.slice(0):{...o},s.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,i,n&&i.store.getStorage(...n)):r}}let ra=[];function ro({map:e},t){return e.has(t)||e.set(t,ra.pop()||{map:new Map}),e.get(t)}function rl(e){return!e||!(e.info||e.map.size)}function ru({map:e},t){let r=e.get(t);r&&rl(r)&&(ra.push(r),e.delete(t))}let rc=new Set;function rh(e,t,r){let i;for(let r of t.selections)if(e0(r)){if("__typename"===r.name.value)return e[e1(r)]}else i?i.push(r):i=[r];if("string"==typeof e.__typename)return e.__typename;if(i)for(let t of i){let i=rh(e,eX(t,r).selectionSet,r);if("string"==typeof i)return i}}class rd extends e7{constructor(e={}){super(),this.watches=new Set,this.addTypenameTransform=new J(ee),this.assumeImmutableResults=!0,this.makeVar=tY,this.txCount=0,this.config=function(e){return(0,tu.o)(tf,e)}(e),this.policies=new t8({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new tk.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new rs(this,this.storeReader=new rt({cache:this,fragments:e}),e),this.maybeBroadcastWatch=B((e,t)=>this.broadcastWatch(e,t),{max:H.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(tT(t)){let{optimistic:r,id:i,variables:n}=e;return t.makeCacheKey(e.query,e.callback,en({optimistic:r,id:i,variables:n}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(th.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;
1return this.watches.size||(t=this,tK(t).vars.forEach(e=>e.attachCache(t))),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&tH(this),this.maybeBroadcastWatch.forget(e)}}gc(e){en.reset(),eo.y.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(el(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){et.g&&K.V1.warn(e)}}evict(e){if(!e.id){if(th.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),en.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),tH(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}batch(e){let t,{update:r,optimistic:i=!0,removeOptimistic:n,onWatchUpdated:s}=e,a=e=>{let{data:i,optimisticData:n}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=i,this.optimisticData=n}},o=new Set;return s&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>
1(o.add(e),!1)}),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,a):!1===i?a(this.data):a(),"string"==typeof n&&(this.optimisticData=this.optimisticData.removeLayer(n)),s&&o.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=s.call(this,e,t);return!1!==r&&o.delete(e),r}}),o.size&&o.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){let t=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=e=>{r.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),r.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,i=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,r)))&&(r&&(0,c.L)(r.result,i.result)||e.callback(e.lastDiff=i,r))}}et.g&&(rd.prototype.getMemoryInternals=eu);var rf=r(33242),rp=r(18778);class ry{isIncrementalResult(e){return!1}prepareRequest(e){return(0,K.V1)(!rr(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0}let rm=u.C.execute;var rb=r(26728);function rv(e){return(0,X.YR)(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}var rg=r(97543);function rw(e,t){var r=(0,eh.T)(e)?e:function(){return e},i=function(e){return e.error(r())};return new eb.c(t?function(e){return t.schedule(i,0,e)}:i)}var rk=r(45837);function rS(e,t,r){return(void 0===r&&(r=1/0),(0,eh.T)(t))?rS(function(r,i){return(0,ec.T)(function(e,n){return t(r,e,i,n)})(ej(e(r,i)))},r):("number"==typeof t&&(r=t),(0,ed.N)(function(t,i){var n,s,a,o,l,u,c,h;return n=r,s=[],a=0,o=0,l=!1,u=function(){!l||s.length||a||i.complete()},c=function(e){return a<n?h(e):s.push(e)},h=function(t){a++;var r=!1;ej(e(t,o++)).subscribe((0,ef._)(i,function(e){i.next(e)},function(){r=!0},void 0,function(){if(r)try{for(a--;s.length&&a<n;)!function(){var e=s.shift();h(e)}();u()}catch(e){i.error(e)}}))},t.subscribe((0,ef._)(i,c,function(){l=!0,u()})),function(){}}))}var rO=r(78807);function rx(e,t){return void 0===t&&(t=0),(0,ed.N)(function(r,i){i.add(e.schedule(function(){return r.subscribe(i)},t))})}function rC(e,t){if(!e)throw Error("Iterable cannot be null");return new eb.c(function(r){(0,rk.N)(r,t,function(){var i=e[Symbol.asyncIterator]();(0,rk.N)(r,t,function(){i.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function rE(e,t){return t?function(e,t){if(null!=e){if(eD(e))return ej(e).pipe(rx(t),(0,rO.Q)(t));if(e_(e))return new eb.c(function(r){var i=0;return t.schedule(function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||this.schedule())})});if(eT(e))return ej(e).pipe(rx(t),(0,rO.Q)(t));if(eF(e))return rC(e,t);if(eq(e))return new eb.c(function(r){var i;return(0,rk.N)(r,t,function(){i=e[eN](),(0,rk.N)(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(0,eh.T)(null==i?void 0:i.return)&&i.return()}});if(eI(e))return rC(eM(e),t)}throw eP(e)}(e,t):ej(e)}var r_=(0,eg.L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function rT(e){var t;return(t=e[e.length-1])&&(0,eh.T)(t.schedule)?e.pop():void 0}function rR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rT(e);return rE(e,r)}function rD(e){return(0,ed.N)(function(t,r){var i,n=null,s=!1;n=t.subscribe((0,ef._)(r,void 0,void 0,function(a){i=ej(e(a,rD(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):s=!0})),s&&(n.unsubscribe(),n=null,i.subscribe(r))})}function rF(e,t){return(0,ed.N)(function(r,i){var n=0;r.subscribe((0,ef._)(i,function(r){return e.call(t,r,n++)&&i.next(r)}))})}(a=l||(l={})).NEXT="N",a.ERROR="E",a.COMPLETE="C";var rP=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,a=e.value,o=e.error;if("string"!=typeof s)throw TypeError('Invalid notification, missing "kind"');"N"===s?null==(r=t.next)||r.call(t,a):"E"===s?null==(i=t.error)||i.call(t,o):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(0,eh.T)(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?rR(t):"E"===e?rw(function(){return r}):"C"===e?eY.w: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 rN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rS(ep.D,1)(rE(e,rT(e)))}var rq=r(99586),rM=r(74514);let rI=new WeakSet;function rV(e,t,r){return tR.withValue(!0,()=>{let i=function e(t,r,i,n,s){let{knownChanged:a}=i,o=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[l,u]of Array.from(t.entries())){if(null===u){o[l]=null;continue}let t=e(u,r,i,n,et.g?`${s||""}[${l}]`:void 0);a.has(t)&&a.add(o),o[l]=t}return a.has(o)?o:t}for(let l of r.selections){let r;if(n&&a.add(o),l.kind===G.b.FIELD){let u=e1(l),c=l.selectionSet;if(void 0===(r=o[u]||t[u]))continue;if(c&&null!==r){let o=e(t[u],c,i,n,et.g?`${s||""}.${u}`:void 0);a.has(o)&&(r=o)}et.g||(o[u]=r),et.g&&(n&&"__typename"!==u&&!Object.getOwnPropertyDescriptor(o,u)?.value?Object.defineProperty(o,u,function(e,t,r,i,n){let s=()=>(tR.getValue()||(et.g&&K.V1.warn(40,i?`${n} '${i}'`:`anonymous ${n}`,`${r}.${e}`.replace(/^\./,"")),s=()=>t),t);return{get:()=>s(),set(e){s=()=>e},enumerable:!0,configurable:!0}}(u,r,s||"",i.operationName,i.operationType)):(delete o[u],o[u]=r))}if(l.kind===G.b.INLINE_FRAGMENT&&(!l.typeCondition||i.cache.fragmentMatches(l,t.__typename))&&(r=e(t,l.selectionSet,i,n,s)),l.kind===G.b.FRAGMENT_SPREAD){let n=l.name.value,a=i.fragmentMap[n]||(i.fragmentMap[n]=i.
1cache.lookupFragment(n));(0,K.V1)(a,39,n);let o=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(et.g&&r&&(r.value.kind===G.b.VARIABLE?et.g&&K.V1.warn(44):r.value.kind!==G.b.STRING?et.g&&K.V1.warn(45):"migrate"!==r.value.value&&et.g&&K.V1.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}(l);"mask"!==o&&(r=e(t,a.selectionSet,i,"migrate"===o,s))}a.has(r)&&a.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&a.add(o),a.has(o)?o:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,tl.G)(i),i})}function rj(e){return 7===e||8===e}var rA=r(16908);function rQ(e){return!!e.errors?.length}function rL(e,t=()=>void 0){return r=>new eb.c(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 rz(e){let t={data:e.data};return e.error&&(t.error=e.error),t}function rW(e,t){var r,i;let n,s;(0,$.s)(t);let a=rB(""),o=rB(""),l=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!tc(r)){if(r.kind===G.b.OPERATION_DEFINITION)return a(r.name&&r.name.value);if(r.kind===G.b.FRAGMENT_DEFINITION)return o(r.name.value)}return K.V1.error(14),null},u=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===G.b.OPERATION_DEFINITION&&++u;let c=(r=e,n=new Map,s=new Map,r.forEach(e=>{e&&(e.name?n.set(e.name,e):e.test&&s.set(e.test,e))}),e=>{let t=n.get(e.name.value);return!t&&s.size&&s.forEach((r,i)=>{i(e)&&(t=r)}),t}),h=e=>tV(e)&&e.map(c).some(e=>e&&e.remove),d=new Map,f=!1,p={enter(e){if(h(e.directives))return f=!0,null}},y=(0,X.YR)(t,{Field:p,InlineFragment:p,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,i,n){let s=l(n);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,i,n){if(h(e.directives))return f=!0,null;let s=l(n);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,i){d.set(JSON.stringify(i),e)},leave:(e,t,r,i)=>e===d.get(JSON.stringify(i))?e:u>0&&e.selectionSet.selections.every(e=>e.kind===G.b.FIELD&&"__typename"===e.name.value)?(o(e.name.value).removed=!0,f=!0,null):void 0},Directive:{leave(e){if(c(e))return f=!0,null}}});if(!f)return t;let m=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{m(o(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),b=new Set;y.definitions.forEach(e=>{e.kind===G.b.OPERATION_DEFINITION?m(a(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{b.add(e)}):e.kind!==G.b.FRAGMENT_DEFINITION||0!==u||o(e.name.value).removed||b.add(e.name.value)}),b.forEach(e=>{m(o(e)).fragmentSpreads.forEach(e=>{b.add(e)})});let v={enter(e){let t;if(t=e.name.value,!b.has(t)||o(t).removed)return null}};return i=(0,X.YR)(y,{FragmentSpread:v,FragmentDefinition:v,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=m(a(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(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===G.b.FRAGMENT_SPREAD&&e(r[t.name.value],r))}((0,t7.V)(i)||eK(i),eJ(eG(i)))?i:null}function rB(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}}var rU=r(83434),r$=r(6565),rK=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,em.C6)(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}(eO),rH=r(49278);let{assign:rY,hasOwnProperty:rJ}=Object,rG={loading:!0,networkStatus:r$.p.loading,data:void 0,dataState:"empty",partial:!0},rX={loading:!1,networkStatus:r$.p.ready,data:void 0,dataState:"empty",partial:!0};class rZ{options;queryName;variablesUnknown=!1;_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}get cache(){return this.queryManager.cache}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);
1const{watchQuery:{fetchPolicy:i="cache-first"}={}}=e.defaultOptions,{fetchPolicy:n=i,initialFetchPolicy:s="standby"===n?i:n}=t;t[tD._K]&&((0,K.V1)("standby"===n,80),this.variablesUnknown=!0),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);const a=(0,t7.V)(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new rK({query:this.query,variables:this.variables,result:rG,meta:{}});let e=this.subject.pipe(ey({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),rL(({query:e,variables:t,result:r,meta:i},n)=>{let{shouldEmit:s}=i;if(r===rG&&(n.previous=void 0,n.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===s)return;if(1===s)return l();let{previous:a,previousVariables:o}=n;if(a){let i=this.queryManager.getDocumentInfo(e),n=this.queryManager.dataMasking,s=n?i.nonReactiveQuery:e;if((n||i.hasNonreactiveDirective?e6(s,a,r,t):(0,c.L)(a,r))&&(0,c.L)(o,t))return}if(!(3===s&&(!this.options.notifyOnNetworkStatusChange||(0,c.L)(a,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 eO,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&("network-only"===t||"cache-and-network"===t)&&(t="cache-first");let 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?r$.p.ready:r$.p.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:r$.p.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:r$.p.loading};case"standby":return rX;default:return rG}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,i="standby"===t||"no-cache"===t||this.waitForNetworkResult,n=!r0({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!==rG&&i!==rX)&&((0,c.L)(i.data,e.result)||this.scheduleNotify())}},a=this.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===r$.p.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===rG&&(t=this.getInitialResult()),(0,c.L)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",et.g&&e&&rJ.call(e,"variables")){let t=t4(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!et.g||K.V1.warn(81,e,t.name?.value||t)}return e&&!(0,c.L)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:r$.p.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:i,updateQuery:n}){(0,K.V1)("cache-only"!==this.options.fetchPolicy,82,(0,rA.n)(this.query,"(anonymous)"));let s={...(0,tu.o)(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 a=!1,o="no-cache"!==this.options.fetchPolicy;o||(0,K.V1)(n,83);let{finalize:l,pushNotification:u}=this.pushOperation(r$.p.fetchMore);u({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:h,operator:d}=r1(),{observable:f}=this.queryManager.fetchObservableWithInfo(s,{networkStatus:r$.p.fetchMore,exposeExtensions:!0}),p=f.pipe(d,rF(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{a=!1;let t=e.value,r=t[tD.X];if(rj(e.value.networkStatus)&&l(),o){let e=this.getCacheDiff();this.cache.batch({update:e=>{n?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:r},e=>n(e,{fetchMoreResult:t.data,variables:s.variables})):e.writeQuery({query:s.query,variables:s.variables,data:t.data,extensions:r})},onWatchUpdated:(r,i)=>{if(r.watcher===this&&!(0,c.L)(i.result,e.result)){a=!0;let e=this.getCurrentResult();rj(t.networkStatus)||u({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===r$.p.error?r$.p.ready:t.networkStatus,loading:!1,data:i.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{let e=this.getCurrentResult(),r=n(e.data,{fetchMoreResult:t.data,variables:s.variables});u({kind:"N",value:{...e,networkStatus:r$.p.ready,loading:!1,data:r,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return(0,rH.X)(h.then(e=>rz(this.maskResult(e))).finally(()=>
1{if(p.unsubscribe(),l(),o&&!a){let e=this.getCurrentResult();"streaming"===e.dataState?u({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:r$.p.ready}}):u({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;n?i?i(n):K.V1.error(84,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=(0,tu.o)(this.options,e||{});rY(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,c.L)(this.variables,e))?rz(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:r$.p.setVariables}):rz(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&&(this.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,a=e=>new eb.c(r=>{try{return e.subscribe({next(e){s=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{s||(h.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:c,meta:{shouldEmit:3,fetchPolicy:n}}))}}),{observable:o,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{s=!0},fetchQueryOperator:a,observableQuery:this}),{query:u,variables:c}=this,h={abort:()=>{f.unsubscribe()},query:u,variables:c};this.activeOperations.add(h);let d=t==r$.p.refetch||t==r$.p.setVariables,f=(o=o.pipe(i,eL())).pipe(ey({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?h.override=t:delete h.override},finalize:()=>this.activeOperations.delete(h)})).subscribe({next:e=>{let t={};d&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(d=!1,t.shouldEmit=1),this.input.next({...e,query:u,variables:c,meta:t})}});return{fromLink:l,subscription:f,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this,i=()=>{let{options:e}=this;return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(i()){et.g&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(et.g&&K.V1.warn(85,(0,rA.n)(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let n=()=>{if(i())return this.cancelPolling();this.pollingInfo&&(!rj(this.networkStatus)||this.options.skipPollAttempt?.()?s():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:r$.p.poll}).then(s,s))},s=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};s()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:r}=t||{};this.queryManager.obsQueries.add(this);let i=r===r$.p.refetch||r===r$.p.poll,n=this.variables,s=this.options.fetchPolicy,a=(0,tu.o)(this.options,e||{});this.variablesUnknown&&="standby"===a.fetchPolicy;
1let o=i?a:rY(this.options,a),l=this.transformDocument(o.query);this.lastQuery=l,e&&"variables"in e&&(o.variables=this.getVariablesWithDefaults(e.variables)),!i&&(this.updatePolling(),e&&e.variables&&!(0,c.L)(e.variables,n)&&"standby"!==o.fetchPolicy&&(o.fetchPolicy===s||"function"==typeof o.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",o),void 0===r&&(r=r$.p.setVariables)));let u=this.networkStatus;r||(r=r$.p.loading,u!==r$.p.loading&&e?.variables&&!(0,c.L)(e.variables,n)&&(r=r$.p.setVariables),"standby"===o.fetchPolicy&&(r=r$.p.ready)),"standby"===o.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:h,operator:d}=r1("standby"===o.fetchPolicy?{data:void 0}:void 0),{subscription:f,observable:p,fromLink:y}=this.fetch(o,r,l,d);i||!y&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=f);let m=Object.assign((0,rH.X)(h.then(e=>rz(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=p.subscribe({}),t=()=>e.unsubscribe();return h.then(t,t),m}});return m}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();(0,c.L)(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:r$.p.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===r$.p.streaming)return e;let t=Array.from(this.activeOperations.values()).reverse().find(e=>r0(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?rX:rG,{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=rL(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||!r0(e,this))return;let s=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===r$.p.ready&&t.partial&&(!this.options.returnPartialData||s.result.networkStatus===r$.p.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...r0(s,e)?s.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:r$.p.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=r0(s,e)?s.result:this.getInitialResult(n.fetchPolicy),{resetError:i}=e.value,a=i?void 0:r.error,o=a?r$.p.error:r$.p.ready;t={...r,error:a,networkStatus:o}}return(0,K.V1)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=!rj(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 r0(e,t){return!!(e&&t&&e.query===t.query&&(0,c.L)(e.variables,t.variables))}function r1(e){let t=e,r,i;return{promise:new Promise((e,t)=>
1{r=e,i=t}),operator:ey({next(e){if("E"===e.kind)return i(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(t=e.value)},finalize:()=>{if(t)r(t);else{let e="The operation was aborted.",t="AbortError";i("u">typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}}let r8={},r6=new WeakMap;function r3(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return r6.set(e,(r6.get(e)+1)%1e15),r.apply(this,arguments)})}let r2=new WeakMap;class r9{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){const r=this.cache=e.cache,i=(r2.get(e)||0)+1;r2.set(e,i),this.id=i+"",this.observableQuery=t,this.queryManager=e,r6.has(r)||(r6.set(r,0),r3(r,"evict"),r3(r,"modify"),r3(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===r6.get(this.cache)&&(0,c.L)(t,r.variables)&&(0,c.L)(e.data,r.result.data)&&e.extensions?.[tD.DH]===r.result.extensions?.[tD.DH])}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({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 a=0===n,o=a?void 0:this.cache.diff(s),l=this.maybeHandleIncrementalResult(o?.result,e,t);return a||(r7(l,i)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)}
1,update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===n,extensions:l.extensions}),this.lastWrite={result:l,variables:r,dmCount:r6.get(this.cache)};else if(o&&o.complete){l={...l,data:o.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:[]}),rQ(s)&&"none"===t.errorPolicy)return Promise.resolve(s);let a=()=>({...s,dataState:this.hasNext?"streaming":"complete"});if(!n&&r7(s,t.errorPolicy)){i.push({result:s.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:s.extensions});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:o}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=n(l,{mutationResult:a(),queryName:s&&(0,rA.n)(s)||void 0,queryVariables:o});e&&i.push({result:e,dataId:"ROOT_QUERY",query:s,variables:o})}})}let o=t.refetchQueries;if("function"==typeof o&&(o=o(a())),i.length>0||(o||"").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:o,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:r8}):e;return r!==r8&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){K.V1.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){0!==n&&(r7(e,i)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function r7(e,t="none"){let r=!rQ(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class r4{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){const t=new J(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;const 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((0,K.vA)(87))}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:a,onQueryUpdated:o,fetchPolicy:l,errorPolicy:u,keepRootFields:c,context:h}){let d=new r9(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:f}=this.getDocumentInfo(e);t=this.getVariables(e,t),f&&(et.g&&(0,K.V1)(this.localState,88,(0,rA.n)(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:h}));let p=this.mutationStore&&(this.mutationStore[d.id]={mutation:e,variables:t,loading:!0,error:null}),y=r&&d.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:h,updateQueries:i,update:a,keepRootFields:c});return this.broadcastQueries(),new Promise((f,m)=>{let b={};return this.getObservableFromLink(e,{...h,optimisticResponse:y?r:void 0},t,l,{},!1).observable.pipe(r5(),rS(r=>{let f={...r};return rE(d.markMutationResult(f,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:h,update:a,updateQueries:i,awaitRefetchQueries:s,refetchQueries:n,removeOptimistic:y?d.id:void 0,onQueryUpdated:o,keepRootFields:c}))})).pipe((0,ec.T)(e=>{if(rQ(e)&&"none"===u)throw new rq.K(ie(e));return p&&(p.loading=!1,p.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!d.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:b})};rQ(t)&&(r.error=new rq.K(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),f(r)}},error:e=>(p&&(p.loading=!1,p.error=e),y&&this.cache.removeOptimistic(d.id),this.broadcastQueries(),"ignore"===u)?f({data:void 0}):"all"===u?f({data:void 0,error:e}):void m(e)})})}fetchQuery(e,t){return(0,$.s)(e.query,rp.cE.QUERY),(async()=>{var r,i,n;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(rL(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return rz(e.value)}})),n="object"==typeof(i={defaultValue:{data:void 0}}),new Promise(function(e,t){var s,a=!1;r.subscribe({next:function(e){s=e,a=!0},error:t,complete:function(){a?e(s):n?e(i.defaultValue):t(new r_)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new er.A(H.v["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){var r;let i,n=(0,t7.V)(e),s={hasClientExports:rr(["client","export"],e,!0),hasForcedResolvers:(i=!1,(0,X.YR)(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(i=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return X.sP}}}),i),hasNonreactiveDirective:rr(["nonreactive"],e),hasIncrementalDirective:rr(["defer"],e),nonReactiveQuery:(r=e,(0,X.YR)(r,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:G.b.DIRECTIVE,name:{kind:G.b.NAME,value:"nonreactive"}}
1]}}})),clientQuery:rr(["client"],e)?e:null,serverQuery:rW([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:t9(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,s)}let i=t.get(e);if(i.violation)throw i.violation;return i}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){(0,$.s)(e.query,rp.cE.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new rZ({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((0,K.vA)(89)),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((0,tr.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=(0,eo.y)(this.transform(e));r.set(t,(0,rA.n)(e)),i.set(t,!1)}else(0,tr.U)(e)&&e.query&&n.add(e)}),this.obsQueries.forEach(r=>{let n=(0,eo.y)(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:s,options:{fetchPolicy:a}}=r;("active"!==e||"standby"!==a)&&("active"===e||s&&i.has(s)||n&&i.has(n))&&(t.add(r),s&&i.set(s,!0),n&&i.set(n,!0))}),n.size&&n.forEach(e=>{let r=new rZ({queryManager:this,options:{...(0,rb.l)(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(r)}),et.g&&i.size&&i.forEach((e,t)=>{if(!e){let e=r.get(t);e?et.g&&K.V1.warn(90,e):et.g&&K.V1.warn(91)}}),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="cache-first",errorPolicy:s="none",context:a={},extensions:o={}}=e;return(0,$.s)(r,rp.cE.SUBSCRIPTION),r=this.transform(r),i=this.getVariables(r,i),et.g&&(0,K.V1)(!this.getDocumentInfo(r).hasClientExports||this.localState,92,(0,rA.n)(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?rE(this.localState.getExportedVariables({client:this.client,document:r,variables:i,context:a})):rR(i)).pipe(rS(e=>{let{observable:i,restart:l}=this.getObservableFromLink(r,a,e,n,o),u=new r9(this);return t=l,i.pipe((0,ec.T)(t=>{u.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:s,cacheWriteBehavior:2*("no-cache"!==n)});let i={data:t.data??void 0};return rQ(t)?i.error=new rq.K(t):(0,rM.uR)(t)&&(i.error=t.extensions[rM.K$],delete t.extensions[rM.K$]),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}),rD(e=>"ignore"===s?rR({data:void 0}):rR({data:void 0,error:e})),rF(e=>!!(e.data||e.error)))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new h.b(!1);getObservableFromLink(e,t,r,i,n,s=t?.queryDeduplication??this.queryDeduplication){let a={},{serverQuery:o,clientQuery:l,operationType:u,hasIncrementalDirective:c}=this.getDocumentInfo(e),h=(0,rA.n)(e),d={client:this.client};if(o){let{inFlightLinkObservables:e,link:i}=this;try{let l=this.incrementalHandler.prepareRequest({query:o,variables:r,context:{...this.defaultContext,...t,queryDeduplication:s},extensions:n});function f(e){return new eb.c(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 a.restart||=()=>{i.unsubscribe(),i=r()},()=>{i.unsubscribe(),a.restart=void 0}})}if(t=l.context,s){var p;let t=(0,eo.y)(o),n=en(r);
1(a=e.lookup(t,n)).observable||(a.observable=rm(i,l,d).pipe(f,(p=()=>{e.peek(t,n)===a&&e.remove(t,n)},(0,ed.N)(function(e,t){try{e.subscribe(t)}finally{t.add(p)}})),u===rp.cE.SUBSCRIPTION?eL():eW({refCount:!0})))}else a.observable=rm(i,l,d).pipe(f)}catch(e){a.observable=rw(()=>e)}}else a.observable=rR({data:{}});if(l){let{operation:n}=(0,t7.V)(e);et.g&&(0,K.V1)(this.localState,93,n[0].toUpperCase()+n.slice(1),h??"(anonymous)"),(0,K.V1)(!c,94,n[0].toUpperCase()+n.slice(1),h??"(anonymous)"),a.observable=a.observable.pipe(rS(e=>rE(this.localState.execute({client:this.client,document:l,remoteResult:e,context:t,variables:r,fetchPolicy:i}))))}return{restart:()=>a.restart?.(),observable:a.observable.pipe(rD(e=>{var t;throw t=e=(0,rM.$b)(e),rI.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:n}){let s=t.lastRequestId=this.generateRequestId(),{errorPolicy:a}=e,o=this.cache.transformForLink(e.query);return this.getObservableFromLink(o,e.context,e.variables,e.fetchPolicy).observable.pipe((0,ec.T)(s=>{let l=t.markQueryResult(s,{...e,document:o,cacheWriteBehavior:r}),u=rQ(l);if(u&&"none"===a)throw t.resetLastWrite(),i?.resetNotifications(),new rq.K(ie(l));let c={data:l.data,...t.hasNext?{loading:!0,networkStatus:r$.p.streaming,dataState:"streaming",partial:!0}:{dataState:l.data?"complete":"empty",loading:!1,networkStatus:r$.p.ready,partial:!l.data}};return n&&"extensions"in l&&(c[tD.X]=l.extensions),u&&("none"===a&&(c.data=void 0,c.dataState="empty"),"ignore"!==a&&(c.error=new rq.K(ie(l)),"streaming"!==c.dataState&&(c.networkStatus=r$.p.error))),c}),rD(e=>{if(s>=t.lastRequestId&&"none"===a)throw t.resetLastWrite(),i?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:r$.p.ready,partial:!0};return"ignore"!==a&&(r.error=e,r.networkStatus=r$.p.error),rR(r)}))}fetchObservableWithInfo(e,{networkStatus:t=r$.p.loading,query:r=e.query,fetchQueryOperator:i=e=>e,onCacheHit:n=()=>{},observableQuery:s,exposeExtensions:a}){let o,l,u=this.getVariables(r,e.variables),{fetchPolicy:c="cache-first",errorPolicy:h="none",returnPartialData:d=!1,notifyOnNetworkStatusChange:f=!0,context:p={}}=e;this.prioritizeCacheValues&&("network-only"===c||"cache-and-network"===c)&&(c="cache-first");let y=Object.assign({},e,{query:r,variables:u,fetchPolicy:c,errorPolicy:h,returnPartialData:d,notifyOnNetworkStatusChange:f,context:p}),m=new r9(this,s),b=r=>{y.variables=r;let o="no-cache"===c?0:t===r$.p.refetch&&"merge"!==y.refetchWritePolicy?1:2,l=this.fetchQueryByPolicy(y,{queryInfo:m,cacheWriteBehavior:o,onCacheHit:n,observableQuery:s,exposeExtensions:a});return l.observable=l.observable.pipe(i),"standby"!==y.fetchPolicy&&s?.applyNextFetchPolicy("after-fetch",e),l},v=()=>{this.fetchCancelFns.delete(m.id)};this.fetchCancelFns.set(m.id,e=>{g.next({kind:"E",error:e,source:"network"})});let g=new eO;if(this.getDocumentInfo(y.query).hasClientExports)et.g&&(0,K.V1)(this.localState,95,(0,rA.n)(y.query,"(anonymous)")),o=rE(this.localState.getExportedVariables({client:this.client,document:y.query,variables:y.variables,context:y.context})).pipe(rS(e=>b(e).observable)),l=!0;else{let e=b(y.variables);l=e.fromLink,o=e.observable}return{observable:new eb.c(e=>{e.add(v),o.subscribe(e),g.subscribe(e)}).pipe(eL()),fromLink:l}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:i=r?(0,rU.v)("refetchQueries"):void 0,onQueryUpdated:n}){let s=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;let t=e.getCurrentResult();s.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let a=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(e,r,i){let o=e.watcher;if(o instanceof rZ&&!t.has(o)){if(t.add(o),n){s.delete(o);let e=n(o,r,i);return!0===e&&(e=o.refetch().retain()),!1!==e&&a.set(o,e),e}null!==n&&"cache-only"!==o.options.fetchPolicy&&s.set(o,{oq:o,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&&a.set(e,i)}),i&&this.cache.removeOptimistic(i),a}noCacheWarningsByCause=new WeakSet;maskOperation(e){var t,r;let i,{document:n,data:s}=e;if(et.g){let t,{fetchPolicy:i,cause:s={}}=e,a=(0,t7.V)(n)?.operation;this.dataMasking&&"no-cache"===i&&(r=n,t=!0,(0,X.YR)(r,{FragmentSpread:e=>{if(!(t=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return X.sP}}),!t)&&!this.noCacheWarningsByCause.has(s)&&(this.noCacheWarningsByCause.add(s),et.g&&K.V1.warn(96,(0,rA.n)(n,`Unnamed ${a??"operation"}`)))}return this.dataMasking?(t=this.cache,i=(0,t7.V)(n),((0,K.V1)(i,43),null==s)?s:rV(s,i.selectionSet,{operationType:i.operation,operationName:i.name?.value,fragmentMap:eJ(eG(n)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})):s}maskFragment(e){var t,r;let i,n,{data:s,fragment:a,fragmentName:o}=e;return this.dataMasking?(t=this.cache,r=o,i=a.definitions.filter(e=>e.kind===G.b.FRAGMENT_DEFINITION),void 0===r&&((0,K.V1)(1===i.length,41,i.length),r=i[0].name.value),n=i.find(e=>e.name.value===r),((0,K.V1)(!!n,42,r),null==s||(0,c.L)(s,{}))?s:rV(s,n.selectionSet,{operationType:"fragment",operationName:n.name.value,fragmentMap:eJ(eG(a
1)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})):s}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:i,returnPartialData:n,context:s},{cacheWriteBehavior:a,onCacheHit:o,queryInfo:l,observableQuery:u,exposeExtensions:c}){let h=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),d=(a,l)=>{var u;let c=a.result;et.g&&!n&&null!==c&&(u=a.missing,et.g&&u&&et.g&&K.V1.debug(86,u));let h=e=>(a.complete||n||(e=void 0),{data:e,dataState:a.complete?"complete":e?"partial":"empty",loading:!rj(l),networkStatus:l,partial:!a.complete}),d=e=>rR({kind:"N",value:h(e),source:"cache"});return(a.complete||n)&&this.getDocumentInfo(e).hasForcedResolvers?(et.g&&(0,K.V1)(this.localState,97,(0,rA.n)(e,"(anonymous)")),o(),rE(this.localState.execute({client:this.client,document:e,remoteResult:c?{data:c}:void 0,context:s,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(e=>({kind:"N",value:h(e.data||void 0),source:"cache"})))):d("none"===i&&l===r$.p.refetch&&a.missing?void 0:c||void 0)},f=()=>this.getResultsFromLink({query:e,variables:t,context:s,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:a,queryInfo:l,observableQuery:u,exposeExtensions:c}).pipe(r5(),(0,ed.N)(function(e,t){e.subscribe((0,ef._)(t,function(e){t.next(rP.createNext(e))},function(){t.next(rP.createComplete()),t.complete()},function(e){t.next(rP.createError(e)),t.complete()}))}),(0,ec.T)(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=h();if(e.complete)return{fromLink:!1,observable:d(e,r$.p.ready)};if(n)return{fromLink:!0,observable:rN(d(e,r$.p.loading),f())};return{fromLink:!0,observable:f()}}case"cache-and-network":{let e=h();if(e.complete||n)return{fromLink:!0,observable:rN(d(e,r$.p.loading),f())};return{fromLink:!0,observable:f()}}case"cache-only":return{fromLink:!1,observable:rN(d(h(),r$.p.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:f()};case"standby":return{fromLink:!1,observable:eY.w}}}}function r5(){let e=!1;return ey({next(){e=!0},complete(){(0,K.V1)(e,98)}})}function ie(e){if(e.extensions?.[tD.DH]==null)return e;let{extensions:{[tD.DH]:t,...r},...i}=e;return Object.keys(r).length>0&&(i.extensions=r),i}let it=!1;class ir{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){et.g&&((0,K.V1)(e.cache,68),(0,K.V1)(e.link,69));const{cache:t,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:n=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:o,assumeImmutableResults:l=t.assumeImmutableResults,localState:u,devtools:c,dataMasking:h,link:d,incrementalHandler:f=new ry,experiments:p=[]}=e;this.link=d,this.cache=t,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig={...c,enabled:c?.enabled??et.g},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=rg.r,this.queryManager=new r4({client:this,defaultOptions:this.defaultOptions,defaultContext:o,documentTransform:r,queryDeduplication:s,ssrMode:i,dataMasking:!!h,clientOptions:e,incrementalHandler:f,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:u}),this.prioritizeCacheValues=i||n>0,n&&setTimeout(()=>{this.prioritizeCacheValues=!1},n),this.devtoolsConfig.enabled&&this.connectToDevTools(),p.forEach(t=>t.call(this,e))}connectToDevTools(){if("u"<typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!it&&et.g&&(it=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e,t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&et.g&&K.V1.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=(0,rb.l)(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=(0,rb.l)(this.defaultOptions.query,e)),et.g&&((0,K.V1)("cache-and-network"!==e.fetchPolicy,70),(0,K.V1)("standby"!==e.fetchPolicy,71),(0,K.V1)(e.query,72),(0,K.V1)("Document"===e.query.kind,73),(0,K.V1)(!e.returnPartialData,74),(0,K.V1)(!e.pollInterval,75),(0,K.V1)(!e.notifyOnNetworkStatusChange,76)),this.queryManager.query(e)}mutate(e){let t=(0,rb.l)((0,tu.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return et.g&&((0,K.V1)(t.mutation,77),(0,K.V1)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,78)),(0,$.s)(t.mutation,rp.cE.MUTATION),this.queryManager.mutate(t)}subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe((0,ec.T)(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking,r=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return et.g?eH(r,Symbol.for("apollo.transform.dev.mask"),t=>({...t,data:this.queryManager.maskFragment({...e,data:t.data})})):r}
1readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return rm(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],i=[];t.forEach((e,t)=>{r.push(t),i.push(e)});let n=Promise.all(i);return n.queries=r,n.results=i,n.catch(e=>{et.g&&K.V1.debug(79,e)}),n}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new J(rv);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}et.g&&(ir.prototype.getMemoryInternals=eu);var ii=r(7620);function is(e){let t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}let ia=Symbol.for("apollo.internal.queryRef"),io=Symbol.for("apollo.internal.refPromise"),il=["context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"];class iu{result;key={};observable;promise;queue;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();const 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 il.some(t=>t in e&&!(0,c.L)(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.queue&&(this.deliver(this.queue),this.queue=void 0),()=>{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;if(void 0===e.data&&(e.data=this.result.data),this.shouldReject(e)){var t;let r;this.promise=((r=Promise.reject(t=e.error)).catch(()=>{}),r.status="rejected",r.reason=t,r),this.deliver(this.promise)}else this.result=e,this.promise=is(e),this.deliver(this.promise)}}deliver(e){0===this.listeners.size&&(this.queue=e),this.listeners.forEac
1h(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(rF(e=>!(0,c.L)(e,this.result))).subscribe(this.handleNext),this.subscription.add(this.onDispose)}setResult(){let e=this.observable.getCurrentResult();(0,c.L)(e,this.result)||(this.result=e,this.promise=e.data?is(e):this.createPendingPromise())}shouldReject(e){let{errorPolicy:t="none"}=this.watchQueryOptions;return e.error&&"none"===t}createPendingPromise(){var e=new Promise((e,t)=>{this.resolve=e,this.reject=t});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}}var ic=r(73391),ih=r(30653);let id=({client:e,children:t})=>{let r=(0,ih.l)(),i=ii.useContext(r),n=ii.useMemo(()=>({...i,client:e||i.client}),[i,e]);return(0,K.V1)(n.client,38),ii.createElement(r.Provider,{value:n},t)};TransformStream;var ip=class extends TransformStream{constructor(){super({transform(e,t){"string"!=typeof e&&(e=new TextDecoder().decode(e)),t.enqueue(JSON.parse(e))}})}};u.C,u.C,u.C;var iy={pkg:"@apollo/client-react-streaming"},im=Symbol.for("apollo.source_package"),ib=class extends rd{static info=iy;[im];constructor(e){super(e);const t=this.constructor.info;this[im]=`${t.pkg}:InMemoryCache`}},iv=(0,ii.createContext)(null),ig={},iw=Symbol.for("apollo.tee.readableStreamController"),ik=Symbol.for("apollo.read.readableStream");function iS(e,t){return Object.assign(t,{[ik]:e})}var iO=class extends u.C{constructor(){super((e,t)=>{let r=e.getContext()[iw];if(r){let i=r(),n=()=>{try{i.close()}catch{}};return new eb.c(r=>{let s=!0;return t(e).subscribe({next(e){i.enqueue({type:"next",value:e}),s&&r.next(e)},error(e){i.enqueue({type:"error"}),n(),s&&r.error(e)},complete(){i.enqueue({type:"completed"}),n(),s&&r.complete()}}),()=>{s=!1}})}return t(e)})}},ix=class extends u.C{constructor(){super((e,t)=>{let r=e.getContext()[ik];return r?new eb.c(i=>{let n=!1,s=(()=>{try{return r.getReader()}catch{}})();if(!s){let r=t(e).subscribe(i);return()=>r.unsubscribe()}let a=!1;l(s).finally(()=>{i.closed||a||i.complete()});let o=()=>{n=!0,s.cancel()};return()=>o();async function l(r){let s;for(;!n&&!s?.done&&(s=await r.read(),!n);)if(s.value)switch(s.value.type){case"next":i.next(s.value.value);break;case"completed":i.complete();break;case"error":{o(),a=!0;let r=t(e).subscribe(i);o=()=>r.unsubscribe()}}}}):t(e)})}};function iC(e){return{...e,query:(0,rf.J1)((0,eo.y)((0,rf.J1)(e.query)))}}function iE(e){let t=(0,ic.m)(),r=!!(e&&e.$__apollo_queryRef);r&&function(e,t){var r,i,n,s;let a,o,l;if(e[ia])return;let{$__apollo_queryRef:{options:u,stream:c}}=e,h=iC(u);Object.assign(e,{[ia]:(i=t,n=h,s={...h,fetchPolicy:"network-only",context:iM(iS(c.pipeThrough(new ip),{...h.context,queryDeduplication:!0}))},et.g&&(0,K.V1)(n.nextFetchPolicy===s.nextFetchPolicy,"Encountered an unexpected bug in @apollo/client-react-streaming. Please file an issue."),o={context:{},...(a=i.watchQuery(n)).options},a.applyOptions(s),l=new iu(a,{autoDisposeTimeoutMs:i.defaultOptions.react?.suspense?.autoDisposeTimeoutMs}),a.applyOptions({...o,fetchPolicy:a.options.fetchPolicy===s.fetchPolicy?o.fetchPolicy:a.options.fetchPolicy}),r=l),[io]:r.promise})}(e,t);let i=e[ia];return(0,ii.useEffect)(()=>{if(r)return i.softRetain()},[r,i]),e}var i_={useFragment:e=>iT(e,["data","complete","missing","dataState"]),useQuery:e=>iT(e,["data","loading","networkStatus","dataState"]),useSuspenseQuery:e=>iT(e,["data","networkStatus","dataState"]),useReadQuery:e=>iT(t=>e(iE(t)),["data","networkStatus","dataState"]),useQueryRefHandlers:e=>iT(t=>e(iE(t)),[]),useSuspenseFragment:e=>iT(e,["data"])};function iT(e,t){return(...r)=>{let i=e(...r);if(0==t.length)return i;let n=function(e){let t=(0,ii.useContext)(iv);if(!t)throw Error("useTransportValue must be used within a streaming-specific ApolloProvider");let r=t.useStaticValueRef(e),i=(0,ii.useSyncExternalStore)(()=>()=>{},()=>0,()=>r.current===ig?0:+!(0,c.L)(e,r.current));return 0===i&&(r.current=ig),1===i?r.current:e}((0,ii.useMemo)(()=>{let e={};for(let r of t)e[r]=i[r];return e},[i]));return(0,ii.useMemo)(()=>({...i,...n}),[i,n])}}function iR(e,t,r){if(e[im]!==`${t.pkg}:${r}`)throw Error(`When using \`${r}\` in streaming SSR, you must use the \`${r}\` export provided by \`"${t.pkg}"\`.`)}function iD(e){return e.queryManager}var iF=Symbol.for("apollo.hook.wrappers"),iP=class extends ir{static info=iy;[im];constructor(e){const t=[];"ssrMode"in e&&(delete e.ssrMode,t.push("The `ssrMode` option is not supported in %s. Please remove it from your %s constructor options.")),"ssrForceFetchDelay"in e&&(delete e.ssrForceFetchDelay,t.push("The `ssrForceFetchDelay` option is not supported in %s. Please remove it from your %s constructor options.")),super(e);const r=this.constructor.info;for(const e of(this[im]=`${r.pkg}:ApolloClient`,t))console.warn(e,r.pkg,"ApolloClient");iR(this.cache,r,"InMemoryCache"),this.setLink(this.link)}setLink(e){super.setLink.call(this,u.C.from([new ix,new iO,e]))}},iN=class extends iP{constructor(e){super(e),this.onQueryStarted=this.onQueryStarted.bind(this),iD(this)[iF]=i_}simulatedStreamingQueries=new Map;onQueryStarted({options:e,id:t}){let r,i,n=iC(e),[s,a]=(i=new ReadableStream({start(e){r=e}}),[r,i]),o=iD(this);o.fetchQuery({...n,query:o.transform(n.query),fetchPolicy:"network-only",context:iM(iS(a,{...n.context,queryDeduplication:!0}
1))}),this.simulatedStreamingQueries.set(t,{controller:s,options:n})}onQueryProgress=e=>{let t=this.simulatedStreamingQueries.get(e.id);if(!t)return;let r=iD(this).incrementalHandler;"error"===e.type||"next"===e.type&&(r.isIncrementalResult(e.value)?r.extractErrors(e.value):e.value.errors)?(this.simulatedStreamingQueries.delete(e.id),K.V1.debug("Query failed on server, rerunning in browser:",t.options),this.rerunSimulatedQuery(t)):"completed"===e.type?(this.simulatedStreamingQueries.delete(e.id),t.controller.enqueue(e)):"next"===e.type&&t.controller.enqueue(e)};rerunSimulatedQueries=()=>{for(let[e,t]of this.simulatedStreamingQueries)this.simulatedStreamingQueries.delete(e),K.V1.debug("streaming connection closed before server query could be fully transported, rerunning:",t.options),this.rerunSimulatedQuery(t)};rerunSimulatedQuery=e=>{var t;let r=iD(this);r.fetchQuery({...e.options,fetchPolicy:"no-cache",query:r.transform(e.options.query),context:iM((t=()=>e.controller,Object.assign({...e.options.context,queryDeduplication:!1},{[iw]:t})))})}},iq=Symbol.for("apollo.dataTransport.skip");function iM(e){return Object.assign(e,{[iq]:!0})}var iI=class extends iN{},iV=class extends iI{},ij=Symbol.for("ApolloClientSingleton"),iA=Symbol.for("ApolloSSRDataTransport"),iQ=Symbol.for("apollo.hookRehydrationCache");function iL(e){return e}var iz={},iW=r(79748),iB={pkg:"@apollo/client-integration-nextjs",client:"ApolloClient",cache:"InMemoryCache"},iU=class extends iV{static info=iB},i$=class extends ib{static info=iB},iK=(o=(({reviveFromStream:e=iL})=>function({children:t,onQueryEvent:r,rerunSimulatedQueries:i}){let n=(0,ii.useRef)(window[iQ]??={});!function({onQueryEvent:e,onRehydrate:t,revive:r}){var i;let n;i=i=>{let n=r(i);for(let r of(K.V1.debug("received data from the server:",n),t(n.rehydrate),n.events))e(r)},Array.isArray(n=window[iA]||[])&&(window[iA]={push:(...e)=>{for(let t of e)i(t)}},window[iA].push(...n))}({onQueryEvent:r,onRehydrate(e){Object.assign(n.current,e)},revive:e}),(0,ii.useEffect)(()=>{if("complete"!==document.readyState)return window.addEventListener("load",i,{once:!0}),()=>window.removeEventListener("load",i);i()},[i]);let s=(0,ii.useCallback)(function(e){let t=(0,ii.useId)(),r=n.current,i=(0,ii.useRef)(iz);return i.current===iz&&(r&&t in r?(i.current=r[t],delete r[t]):i.current=e),i},[]);return ii.createElement(iv.Provider,{value:(0,ii.useMemo)(()=>({useStaticValueRef:s}),[s])},t)})({useInsertHtml(){let e=(0,ii.useContext)(iW.ServerInsertedHTMLContext);return e||(()=>{})}}),(s=({makeClient:e,children:t,...r})=>{let i=(0,ii.useRef)(void 0);return i.current||(i.current=window[ij]??=e(),iR(i.current,s.info,"ApolloClient")),ii.createElement(id,{client:i.current},ii.createElement(o,{onQueryEvent:e=>"started"===e.type?i.current.onQueryStarted(e):i.current.onQueryProgress(e),rerunSimulatedQueries:i.current.rerunSimulatedQueries,registerDispatchRequestStarted:i.current.watchQueryQueue?.register,...r},t))}).info=iy,s);iK.info=iB},10675:(e,t,r)=>{r.d(t,{w:()=>i});var i=new(r(31927)).c(function(e){return e.complete()})},16908:(e,t,r)=>{r.d(t,{n:()=>i});function i(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}},18064:(e,t,r)=>{r.d(t,{YR:()=>l,sP:()=>o});var i=r(431),n=r(36688),s=r(18778),a=r(13211);let o=Object.freeze({});function l(e,t,r=s.aD){let u,c,h,d=new Map;for(let e of Object.values(a.b))d.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 f=Array.isArray(e),p=[e],y=-1,m=[],b=e,v=[],g=[];do{var w,k,S;let e,a=++y===p.length,l=a&&0!==m.length;if(a){if(c=0===g.length?void 0:v[v.length-1],b=h,h=g.pop(),l)if(f){b=b.slice();let e=0;for(let[t,r]of m){let i=t-e;null===r?(b.splice(i,1),e++):b[i]=r}}else for(let[e,t]of(b={...b},m))b[e]=t;y=u.index,p=u.keys,m=u.edits,f=u.inArray,u=u.prev}else if(h){if(null==(b=h[c=f?y:p[y]]))continue;v.push(c)}if(!Array.isArray(b)){(0,s.Ll)(b)||(0,i.U)(!1,`Invalid AST Node: ${(0,n.N)(b)}.`);let r=a?null==(w=d.get(b.kind))?void 0:w.leave:null==(k=d.get(b.kind))?void 0:k.enter;if((e=null==r?void 0:r.call(t,b,c,h,v,g))===o)break;if(!1===e){if(!a){v.pop();continue}}
1else if(void 0!==e&&(m.push([c,e]),!a))if((0,s.Ll)(e))b=e;else{v.pop();continue}}void 0===e&&l&&m.push([c,b]),a?v.pop():(u={inArray:f,index:y,keys:p,edits:m,prev:u},p=(f=Array.isArray(b))?b:null!=(S=r[b.kind])?S:[],y=-1,m=[],h&&g.push(h),h=b)}while(void 0!==u);return 0!==m.length?m[m.length-1][1]:e}},18156:(e,t,r)=>{let i;r.d(t,{y:()=>g});var n=r(75882);let s=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return o[e.charCodeAt(0)]}let o=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var l=r(18064);let u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=p(e.variableDefinitions)?d("(\n",c(e.variableDefinitions,"\n"),"\n)"):d("(",c(e.variableDefinitions,", "),")"),r=d("",e.description,"\n")+c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:i,description:n})=>d("",n,"\n")+e+": "+t+d(" = ",r)+d(" ",c(i," "))},SelectionSet:{leave:({selections:e})=>h(e)},Field:{leave({alias:e,name:t,arguments:r,directives:i,selectionSet:n}){let s=d("",e,": ")+t,a=s+d("(",c(r,", "),")");return a.length>80&&(a=s+d("(\n",f(c(r,"\n")),"\n)")),c([a,c(i," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+d(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",d("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:n,description:s})=>d("",s,"\n")+`fragment ${e}${d("(",c(r,", "),")")} `+`on ${t} ${d("",c(i," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.yo)(e):`"${e.replace(s,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+d("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>d("",e,"\n")+c(["schema",c(t," "),h(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>d("",e,"\n")+c(["type",t,d("implements ",c(r," & ")),c(i," "),h(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:i,directives:n})=>d("",e,"\n")+t+(p(r)?d("(\n",f(c(r,"\n")),"\n)"):d("(",c(r,", "),")"))+": "+i+d(" ",c(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:i,directives:n})=>d("",e,"\n")+c([t+": "+r,d("= ",i),c(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>d("",e,"\n")+c(["interface",t,d("implements ",c(r," & ")),c(i," "),h(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:i})=>d("",e,"\n")+c(["union",t,c(r," "),d("= ",c(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:i})=>d("",e,"\n")+c(["enum",t,c(r," "),h(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:i})=>d("",e,"\n")+c(["input",t,c(r," "),h(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:i,locations:n})=>d("",e,"\n")+"directive @"+t+(p(r)?d("(\n",f(c(r,"\n")),"\n)"):d("(",c(r,", "),")"))+(i?" repeatable":"")+" on "+c(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),h(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>c(["extend type",e,d("implements ",c(t," & ")),c(r," "),h(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>c(["extend interface",e,d("implements ",c(t," & ")),c(r," "),h(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),d("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),h(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),h(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>c([e,d(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>c([e,d(".",t),d("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>c(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>c(["@",e,d("(",t,":)")])}};function c(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function h(e){return d("{\n",f(c(e,"\n")),"\n}")}function d(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function f(e){return d("  ",e.replace(/\n/g,"\n  "))}function p(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var y=r(46115),m=r(40221),b=r(9825),v=r(52040);let g=Object.assign(e=>{let t=i.get(e);!t&&(t=(0,l.YR)(e,u),i.set(e,t));return t},{reset(){i=new m.A(v.v.print||2e3)}});g.reset(),y.g&&(0,b.D_)("print",()=>i?i.size:0)},28654:(e,t,r)=>{r.d(t,{B:()=>s});var i=r(75524),n=r(40221);function s(e,{max:t,makeCacheKey:r=e=>e}){let a=new i.b(!0),o=new n.A(t);return(...t)=>{let i=a.lookupArray(r(t)),n=o.get(i);if(n){if(n.error)throw n.error;return n.result}let s=o.set(i,{});try{return s.result=e(...t)}catch(e){throw s.error=e,e}}}},31927:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(12917),n=r(44355),s=r(3072),a=r(33379),o=r(33470),l=r(8193),u=r(1080),c=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 s=this,a=!function(e){return e&&e instanceof i.vU||e&&(0,l.T)(e.next)&&(0,l.T)(e.error)&&(0,l.T)(e.complete)&&(0,n.Uv)(e)}(e)?new i.Ms(e,t,r):e;return(0,u.Y)(function(){var e=s.operator,t=s.source;a.add(e?e.call(a,t):t?s._subscribe(a):s._trySubscribe(a))}),a},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=h(t))(function(t,n){var s=new i.Ms({next:function(t){try{e(t)}catch(e){n(e),s.unsubscribe()}},error:n,complete:t});r.subscribe(s)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[s.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?a.D: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=h(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 h(e){var t;return null!=(t=null!=e?e:o.$.Promise)?t:Promise}},33379:(e,t,r)=>{r.d(t,{D:()=>i});function i(e){return e}},38903:(e,t,r)=>{r.d(t,{s:()=>u});var i=r(18064),n=r(13211),s=r(46115),a=r(78119),o=r(52040),l=r(16908);let u=(0,r(28654).B)((e,t)=>{(0,a.V1)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);
1s.g&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,a.vA)(2,e.kind)}),(0,a.V1)(r.length<=1,3,r.length)),t&&(0,a.V1)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),(0,i.YR)(e,{Field(t,i,s,o){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let i=e,s=[];for(let e of o)(i=i[e]).kind===n.b.FIELD&&s.push(i.alias?.value||i.name.value);throw s.splice(-1,1,t.name.value),(0,a.vA)(5,t.alias.value,s.join("."),r[0].operation,(0,l.n)(e,"(anonymous)"))}}})},{max:o.v.checkDocument||2e3})},40221:(e,t,r)=>{r.d(t,{A:()=>o,V:()=>l});var i=r(681),n=r(92926);let s=new WeakSet;function a(e){!(e.size<=(e.max||-1))&&(s.has(e)||(s.add(e),setTimeout(()=>{e.clean(),s.delete(e)},100)))}let o=function(e,t){let r=new i.l(e,t);return r.set=function(e,t){let r=i.l.prototype.set.call(this,e,t);return a(this),r},r},l=function(e,t){let r=new n.C(e,t);return r.set=function(e,t){let r=n.C.prototype.set.call(this,e,t);return a(this),r},r}},48225:(e,t,r)=>{r.d(t,{P:()=>R});var i=r(78759),n=r(67867);class s extends i.C{constructor(e={}){super((t,r)=>{let i=t.client,s=i.queryManager.clientOptions,a=t.getContext();{let{name:r,version:i,transport:o="headers"}=(0,n.o)({},s.clientAwareness,e.clientAwareness,a.clientAwareness);"headers"===o&&t.setContext(({headers:e})=>({headers:(0,n.o)({"apollographql-client-name":r,"apollographql-client-version":i},e)}))}{let{transport:r="extensions"}=(0,n.o)({},s.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,n.o)({clientLibrary:{name:"@apollo/client",version:i.version}},t.extensions)),"headers"===r&&t.setContext(({headers:e})=>({headers:(0,n.o)({"apollographql-library-name":"@apollo/client","apollographql-library-version":i.version},e)}))}return r(t)})}}var a=r(31927),o=r(18064),l=r(61450);function u(e,t){return(0,l.V)(e)?.operation===t}var c=r(46115),h=r(71561),d=r(78119),f=r(74514),p=r(88663),y=r(36640);class m extends Error{static is(e){return(0,y.t)(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,y.w)(this),Object.setPrototypeOf(this,m.prototype)}}class b extends Error{static is(e){return(0,y.t)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,y.w)(this),Object.setPrototypeOf(this,b.prototype)}}var v=r(93915);let{hasOwnProperty:g}=Object.prototype;async function*w(e){let t,r=new TextDecoder("utf-8"),i=e.headers?.get("content-type"),n=i?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),s="\r\n--"+(n?n[1]??n[2]??n[3]??"-":"-"),a="";(0,d.V1)(e.body&&"function"==typeof e.body.getReader,62);let o=e.body.getReader(),l=!1,u=!1,c=()=>u&&"-"==a[0]&&"-"==a[1];try{for(;!l;){({value:t,done:l}=await o.read());let e="string"==typeof t?t:r.decode(t),i=a.length-s.length+1,n=(a+=e).indexOf(s,i);for(;n>-1&&!c();){let e;u=!0,[e,a]=[a.slice(0,n),a.slice(n+s.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let i=e.slice(0,r).trim().toLowerCase(),n=e.slice(r+1).trim();t[i]=n}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let i=e.slice(t);i&&(yield i),n=a.indexOf(s)}if(c())return}throw Error("premature end of multipart body")}finally{o.cancel()}}async function k(e,t){for await(let r of w(e)){let i=S(e,r);if(0!=Object.keys(i).length)if((0,v.U)(i)&&"payload"in i){if(1===Object.keys(i).length&&null===i.payload)return;let e={...i.payload};
1"errors"in i&&(e.extensions={...e.extensions,[f.K$]:new p.d(i.errors??[])}),t(e)}else t(i)}}function S(e,t){if(e.status>=300)throw new m(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new b(r,{response:e,bodyText:t})}}var O=r(18156);let x={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},C=(e,t)=>t(e),E=(0,h.n)(()=>fetch);function _(){}class T extends i.C{constructor(e={}){let{uri:t="/graphql",fetch:r,print:i=C,includeExtensions:s,preserveHeaderCase:l,useGETForQueries:f,includeUnusedVariables:p=!1,...y}=e;c.g&&(e=>{(0,d.V1)(e||"u">typeof fetch,61)})(r||E);const v={http:(0,n.o)({includeExtensions:s,preserveHeaderCase:l}),options:y.fetchOptions,credentials:y.credentials,headers:y.headers};super(e=>{var n,s;let l,c,d,y=(l=e.getContext().uri)||("function"==typeof t?t(e):t||"/graphql"),w=e.getContext(),C={...w.http};u(e.query,"subscription")&&(C.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...C.accept||[]]);let{options:T,body:R}=function(e,t,...r){let i={},n={};r.forEach(e=>{i={...i,...e.options,headers:{...i.headers,...e.headers}},e.credentials&&(i.credentials=e.credentials),i.headers.accept=(e.http?.accept||[]).concat(i.headers.accept).join(","),n={...n,...e.http}}),i.headers=function(e,t){if(!t){let t={};
1return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let i={};return Object.keys(r).forEach(e=>{i[r[e].originalName]=r[e].value}),i}(i.headers,n.preserveHeaderCase);let{operationName:s,extensions:a,variables:o,query:l}=e,u={operationName:s,variables:o};return n.includeExtensions&&Object.keys(a||{}).length&&(u.extensions=a),n.includeQuery&&(u.query=t(l,O.y)),{options:i,body:u}}(e,i,x,v,{http:C,options:w.fetchOptions,credentials:w.credentials,headers:w.headers});R.variables&&!p&&(n=R.variables,s=e.query,c={...n},d=new Set(Object.keys(n)),(0,o.YR)(s,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&d.delete(e.name.value)}}),d.forEach(e=>{delete c[e]}),R.variables=c);let D=new AbortController,F=()=>{D=void 0};if(T.signal){let e=T.signal,t=()=>{D?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),F=()=>{D?.signal.removeEventListener("abort",F),D=void 0,e.removeEventListener("abort",t),F=_},D.signal.addEventListener("abort",F,{once:!0})}
1return T.signal=D.signal,f&&!u(e.query,"mutation")&&(T.method="GET"),new a.c(t=>{if("GET"===T.method){let{newURI:e,parseError:t}=function(e,t){let r=[],i=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}i("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}i("extensions",e)}let n="",s=e,a=e.indexOf("#");-1!==a&&(n=e.substr(a),s=e.substr(0,a));let o=-1===s.indexOf("?")?"?":"&";return{newURI:s+o+r.join("&")+n}}(y,R);if(t)throw t;y=e}else T.body=JSON.stringify(R);let i=r||(0,h.n)(()=>fetch)||E,n=t.next.bind(t);return i(y,T).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?k(t,n):(t=>t.text().then(r=>{let i=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new b(r,{response:e,bodyText:t})}return S(e,t)}(t,r);if(!Array.isArray(i)&&!g.call(i,"data")&&!g.call(i,"errors"))throw new m(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return i}))(t).then(n)}).then(()=>{F(),t.complete()}).catch(e=>{F(),t.error(e)}),()=>{D&&D.abort()}})})}}class R extends i.C{constructor(e={}){const{left:t,right:r,request:n}=i.C.from([new s(e),new T(e)]);super(n),Object.assign(this,{left:t,right:r})}}},52040:(e,t,r)=>{r.d(t,{v:()=>s});var i=r(82656);let n=Symbol.for("apollo.cacheSize"),s={...i.A[n]}},61450:(e,t,r)=>{r.d(t,{V:()=>n});var i=r(38903);function n(e){return(0,i.s)(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}},74514:(e,t,r)=>{r.d(t,{K$:()=>a,uR:()=>o,$b:()=>l});var i=r(88663),n=r(36640);class s extends Error{static is(e){return(0,n.t)(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",(0,n.w)(this),Object.setPrototypeOf(this,s.prototype)}}let a=Symbol();function o(e){return"extensions"in e&&i.d.is(e.extensions[a])}function l(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)?e:"string"==typeof e?Error(e,{cause:e}):new s(e)}},75524:(e,t,r)=>{r.d(t,{b:()=>o});let i=()=>Object.create(null),{forEach:n,slice:s}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class o{constructor(e=!0,t=i){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return n.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(s.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(s.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 o(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)}}},77883:(e,t,r)=>{r.d(t,{L:()=>o});var i=r(31927),n=r(99586),s=r(74514),a=r(78759);class o extends a.C{constructor(e){super((t,r)=>new i.c(i=>{let a,o,l;try{a=r(t).subscribe({next:a=>{let u=t.client.queryManager.incrementalHandler,c=u.isIncrementalResult(a)?u.extractErrors(a):a.errors;c?l=e({error:new n.K(a,c),result:a,operation:t,forward:r}):(0,s.uR)(a)&&(l=e({error:a.extensions[s.K$],result:a,operation:t,forward:r})),(o=l?.subscribe(i))||i.next(a)},error:n=>{l=e({operation:t,error:(0,s.$b)(n),forward:r}),(o=l?.subscribe(i))||i.error(n)},complete:()=>{l||i.complete()}})}catch(n){e({error:(0,s.$b)(n),operation:t,forward:r}),i.error(n)}return()=>{a&&a.unsubscribe(),o&&o.unsubscribe()}}))}}},78759:(e,t,r)=>{r.d(t,{C:()=>l});var i=r(10675),n=r(16908),s=r(61450),a=r(46115),o=r(78119);class l{static empty(){return new l(()=>i.w)}static from(e){if(0===e.length)return l.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new l((e,t)=>t(e))){return Object.assign(new l((i,n)=>{let s=e(i);return a.g&&"boolean"!=typeof s&&a.g&&o.V1.warn(63,s),s?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:(0,n.n)(e.query),operationType:(0,s.V)(e.query).operation},i={...e.context},a=()=>Object.freeze({...i});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{i="function"==typeof e?{...i,...e(a())}:{...i,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:a}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>(a.g&&a.g&&o.V1.warn(64),i.w))}static concat(...e){return l.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(l.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 l((r,i)=>e.request(r,e=>t.request(e,i))),{left:e,right:t})}request(e,t){throw(0,o.vA)(65)}left;
1right}},88663:(e,t,r)=>{r.d(t,{d:()=>s});var i=r(36640);function n(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class s extends Error{static is(e){return(0,i.t)(e,"CombinedProtocolErrors")}static formatMessage=n;errors;constructor(e){super(s.formatMessage(e,{defaultFormatMessage:n})),this.name="CombinedProtocolErrors",this.errors=e,(0,i.w)(this),Object.setPrototypeOf(this,s.prototype)}}},92926:(e,t,r)=>{function i(){}r.d(t,{C:()=>n});class n{constructor(e=1/0,t=i){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)}}}}]);

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.