From 2172719d8b68bcebefca971884f6f7b3a75bcdcc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Wed, 7 Aug 2024 01:07:12 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Kyle-Und?= =?UTF-8?q?efined/tera-raid-info@99c24a28fd36692a116a20e5c4276222d42fc3b7?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- main.fb34e0fc34c8ce7e.js => main.225126cce2211cd2.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename main.fb34e0fc34c8ce7e.js => main.225126cce2211cd2.js (61%) diff --git a/index.html b/index.html index 74e7127b..5476178e 100644 --- a/index.html +++ b/index.html @@ -30,6 +30,6 @@ - + \ No newline at end of file diff --git a/main.fb34e0fc34c8ce7e.js b/main.225126cce2211cd2.js similarity index 61% rename from main.fb34e0fc34c8ce7e.js rename to main.225126cce2211cd2.js index a8ec8597..aa433e24 100644 --- a/main.fb34e0fc34c8ce7e.js +++ b/main.225126cce2211cd2.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunktera_raid_info=self.webpackChunktera_raid_info||[]).push([[179],{222:()=>{function fe(e){return"function"==typeof e}function Lo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Bo=Lo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function dr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class It{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(fe(r))try{r()}catch(o){t=o instanceof Bo?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Pd(o)}catch(s){t=t??[],s instanceof Bo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Bo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Pd(t);else{if(t instanceof It){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&dr(n,t)}remove(t){const{_finalizers:n}=this;n&&dr(n,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const e=new It;return e.closed=!0,e})();const Nd=It.EMPTY;function xd(e){return e instanceof It||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}function Pd(e){fe(e)?e():e.unsubscribe()}const Hn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},jo={setTimeout(e,t,...n){const{delegate:r}=jo;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=jo;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Fd(e){jo.setTimeout(()=>{const{onUnhandledError:t}=Hn;if(!t)throw e;t(e)})}function Rd(){}const _E=Za("C",void 0,void 0);function Za(e,t,n){return{kind:e,value:t,error:n}}let Un=null;function Vo(e){if(Hn.useDeprecatedSynchronousErrorHandling){const t=!Un;if(t&&(Un={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Un;if(Un=null,n)throw r}}else e()}class ec extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,xd(t)&&t.add(this)):this.destination=OE}static create(t,n,r){return new Di(t,n,r)}next(t){this.isStopped?nc(function TE(e){return Za("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?nc(function CE(e){return Za("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?nc(_E,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ME=Function.prototype.bind;function tc(e,t){return ME.call(e,t)}class kE{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ho(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ho(r)}else Ho(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ho(n)}}}class Di extends ec{constructor(t,n,r){let i;if(super(),fe(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Hn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&tc(t.next,o),error:t.error&&tc(t.error,o),complete:t.complete&&tc(t.complete,o)}):i=t}this.destination=new kE(i)}}function Ho(e){Hn.useDeprecatedSynchronousErrorHandling?function IE(e){Hn.useDeprecatedSynchronousErrorHandling&&Un&&(Un.errorThrown=!0,Un.error=e)}(e):Fd(e)}function nc(e,t){const{onStoppedNotification:n}=Hn;n&&jo.setTimeout(()=>n(e,t))}const OE={closed:!0,next:Rd,error:function AE(e){throw e},complete:Rd},Uo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ld(e){return e}let be=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function xE(e){return e&&e instanceof ec||function NE(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}(e)&&xd(e)}(n)?n:new Di(n,r,i);return Vo(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=jd(r))((i,o)=>{const s=new Di({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Uo](){return this}pipe(...n){return function Bd(e){return 0===e.length?Ld:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=jd(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function jd(e){var t;return null!==(t=e??Hn.Promise)&&void 0!==t?t:Promise}const PE=Lo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let $o=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Vd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new PE}next(n){Vo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Vo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Vo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?Nd:(this.currentObservers=null,o.push(n),new It(()=>{this.currentObservers=null,dr(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new Vd(t,n),e})();class Vd extends $o{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Nd}}function $n(e){return t=>{if(function FE(e){return fe(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function bi(e,t,n,r,i){return new RE(e,t,n,r,i)}class RE extends ec{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function nt(e,t){return $n((n,r)=>{let i=0;n.subscribe(bi(r,o=>{r.next(e.call(t,o,i++))}))})}var rc=function(e,t){return(rc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])})(e,t)};function Mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}rc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var b=function(){return b=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&o[o.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){!function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}(a,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const qd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function zd(e){return fe(e?.then)}function Wd(e){return fe(e[Uo])}function Gd(e){return Symbol.asyncIterator&&fe(e?.[Symbol.asyncIterator])}function Qd(e){return new 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.`)}const Kd=function e0(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Yd(e){return fe(e?.[Kd])}function Jd(e){return function Ud(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return",function s(h){return function(p){return Promise.resolve(p).then(h,f)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(v,g){o.push([h,m,v,g])>1||c(h,m)})},p&&(i[h]=p(i[h])))}function c(h,p){try{!function u(h){h.value instanceof bn?Promise.resolve(h.value.v).then(l,f):d(o[0][2],h)}(r[h](p))}catch(m){d(o[0][3],m)}}function l(h){c("next",h)}function f(h){c("throw",h)}function d(h,p){h(p),o.shift(),o.length&&c(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield bn(n.read());if(i)return yield bn(void 0);yield yield bn(r)}}finally{n.releaseLock()}})}function Xd(e){return fe(e?.getReader)}function wn(e){if(e instanceof be)return e;if(null!=e){if(Wd(e))return function t0(e){return new be(t=>{const n=e[Uo]();if(fe(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(qd(e))return function n0(e){return new be(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Fd)})}(e);if(Gd(e))return Zd(e);if(Yd(e))return function o0(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Xd(e))return function s0(e){return Zd(Jd(e))}(e)}throw Qd(e)}function Zd(e){return new be(t=>{(function a0(e,t){var n,r,i,o;return Ut(this,void 0,void 0,function*(){try{for(n=$d(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function En(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function qo(e,t,n=1/0){return fe(t)?qo((r,i)=>nt((o,s)=>t(r,o,i,s))(wn(e(r,i))),n):("number"==typeof t&&(n=t),$n((r,i)=>function c0(e,t,n,r,i,o,s,a){const c=[];let u=0,l=0,f=!1;const d=()=>{f&&!c.length&&!u&&t.complete()},h=m=>u{o&&t.next(m),u++;let v=!1;wn(n(m,l++)).subscribe(bi(t,g=>{i?.(g),o?h(g):t.next(g)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&up(g)):p(g)}d()}catch(g){t.error(g)}}))};return e.subscribe(bi(t,h,()=>{f=!0,d()})),()=>{a?.()}}(r,i,e,n)))}function eh(e=1/0){return qo(Ld,e)}const th=new be(e=>e.complete());function sc(e){return e[e.length-1]}function zo(e){return function l0(e){return e&&fe(e.schedule)}(sc(e))?e.pop():void 0}function ac(e,t=0){return $n((n,r)=>{n.subscribe(bi(r,i=>En(r,e,()=>r.next(i),t),()=>En(r,e,()=>r.complete(),t),i=>En(r,e,()=>r.error(i),t)))})}function nh(e,t=0){return $n((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function rh(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{En(n,t,()=>{const r=e[Symbol.asyncIterator]();En(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function wi(e,t){return t?function y0(e,t){if(null!=e){if(Wd(e))return function d0(e,t){return wn(e).pipe(nh(t),ac(t))}(e,t);if(qd(e))return function p0(e,t){return new be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(zd(e))return function h0(e,t){return wn(e).pipe(nh(t),ac(t))}(e,t);if(Gd(e))return rh(e,t);if(Yd(e))return function m0(e,t){return new be(n=>{let r;return En(n,t,()=>{r=e[Kd](),En(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>fe(r?.return)&&r.return()})}(e,t);if(Xd(e))return function g0(e,t){return rh(Jd(e),t)}(e,t)}throw Qd(e)}(e,t):wn(e)}function cc(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Di({next:()=>{r.unsubscribe(),e()}});return wn(t(...n)).subscribe(r)}function re(e){for(let t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function oe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(oe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function lc(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const b0=re({__forward_ref__:re});function fc(e){return e.__forward_ref__=fc,e.toString=function(){return oe(this())},e}function x(e){return function dc(e){return"function"==typeof e&&e.hasOwnProperty(b0)&&e.__forward_ref__===fc}(e)?e():e}function hc(e){return e&&!!e.\u0275providers}class O extends Error{constructor(t,n){super(Wo(t,n)),this.code=t}}function Wo(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function X(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():function B(e){return"string"==typeof e?e:null==e?"":String(e)}(e)}function Go(e,t){throw new O(-201,!1)}function vt(e,t){null==e&&function Z(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function nn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Qo(e){return oh(e,Ko)||oh(e,ah)}function oh(e,t){return e.hasOwnProperty(t)?e[t]:null}function sh(e){return e&&(e.hasOwnProperty(pc)||e.hasOwnProperty(I0))?e[pc]:null}const Ko=re({\u0275prov:re}),pc=re({\u0275inj:re}),ah=re({ngInjectableDef:re}),I0=re({ngInjectorDef:re});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let mc;function Dt(e){const t=mc;return mc=e,t}function ch(e,t,n){const r=Qo(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void Go(oe(e))}const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ei={},gc="__NG_DI_FLAG__",Yo="ngTempTokenPath",k0="ngTokenPath",A0=/\n/gm,O0="\u0275",uh="__source";let Si;function hr(e){const t=Si;return Si=e,t}function N0(e,t=L.Default){if(void 0===Si)throw new O(-203,!1);return null===Si?ch(e,void 0,t):Si.get(e,t&L.Optional?null:void 0,t)}function j(e,t=L.Default){return(function M0(){return mc}()||N0)(x(e),t)}function _i(e,t=L.Default){return j(e,Jo(t))}function Jo(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yc(e){const t=[];for(let n=0;n(($t=$t||{})[$t.OnPush=0]="OnPush",$t[$t.Default=1]="Default",$t))(),qt=(()=>{return(e=qt||(qt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",qt;var e})();const on={},J=[],Xo=re({\u0275cmp:re}),vc=re({\u0275dir:re}),Dc=re({\u0275pipe:re}),fh=re({\u0275mod:re}),sn=re({\u0275fac:re}),Ti=re({__NG_ELEMENT_ID__:re});let R0=0;function ft(e){return rn(()=>{const t=function hh(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||J,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:dh(e.inputs,t),outputs:dh(e.outputs)}}(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===$t.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||qt.Emulated,id:"c"+R0++,styles:e.styles||J,_:null,schemas:e.schemas||null,tView:null};!function ph(e){e.features?.forEach(t=>t(e))}(n);const r=e.dependencies;return n.directiveDefs=Zo(r,!1),n.pipeDefs=Zo(r,!0),n})}function B0(e){return ee(e)||He(e)}function j0(e){return null!==e}function _n(e){return rn(()=>({type:e.type,bootstrap:e.bootstrap||J,declarations:e.declarations||J,imports:e.imports||J,exports:e.exports||J,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function dh(e,t){if(null==e)return on;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}function ee(e){return e[Xo]||null}function He(e){return e[vc]||null}function it(e){return e[Dc]||null}function Zo(e,t){if(!e)return null;const n=t?it:B0;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(j0)}const an=0,I=1,$=2,pe=3,kt=4,qn=5,Ue=6,pr=7,we=8,es=9,ts=10,W=11,bc=12,Mi=13,mh=14,mr=15,$e=16,ki=17,gr=18,zt=19,Ai=20,gh=21,ue=22,wc=1,yh=2,ns=7,yr=9,Ke=10;function ht(e){return Array.isArray(e)&&"object"==typeof e[wc]}function At(e){return Array.isArray(e)&&!0===e[wc]}function Ec(e){return 0!=(4&e.flags)}function Oi(e){return e.componentOffset>-1}function is(e){return 1==(1&e.flags)}function Ot(e){return!!e.template}function H0(e){return 0!=(256&e[$])}function zn(e,t){return e.hasOwnProperty(sn)?e[sn]:null}class q0{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function bh(e){return e.type.prototype.ngOnChanges&&(e.setInput=W0),z0}function z0(){const e=Eh(this),t=e?.current;if(t){const n=e.previous;if(n===on)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function W0(e,t,n,r){const i=this.declaredInputs[n],o=Eh(e)||function G0(e,t){return e[wh]=t}(e,{previous:on,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[i];s[i]=new q0(c&&c.currentValue,t,a===on),e[r]=t}const wh="__ngSimpleChanges__";function Eh(e){return e[wh]||null}const wt=function(e,t,n){};function Le(e){for(;Array.isArray(e);)e=e[an];return e}function pt(e,t){return Le(t[e.index])}function ot(e,t){const n=t[e];return ht(n)?n:n[an]}function as(e){return 64==(64&e[$])}function Cn(e,t){return null==t?null:e[t]}function Th(e){e[gr]=0}function _c(e,t){e[qn]+=t;let n=e,r=e[pe];for(;null!==r&&(1===t&&1===n[qn]||-1===t&&0===n[qn]);)r[qn]+=t,n=r,r=r[pe]}const V={lFrame:Rh(null),bindingsEnabled:!0};function Mh(){return V.bindingsEnabled}function S(){return V.lFrame.lView}function K(){return V.lFrame.tView}function Be(){let e=kh();for(;null!==e&&64===e.type;)e=e.parent;return e}function kh(){return V.lFrame.currentTNode}function Wt(e,t){const n=V.lFrame;n.currentTNode=e,n.isParent=t}function Cc(){return V.lFrame.isParent}function cS(e,t){const n=V.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ic(t)}function Ic(e){V.lFrame.currentDirectiveIndex=e}function kc(e){V.lFrame.currentQueryIndex=e}function lS(e){const t=e[I];return 2===t.type?t.declTNode:1===t.type?e[Ue]:null}function Ph(e,t,n){if(n&L.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&L.Host||(i=lS(o),null===i||(o=o[mr],10&i.type))););if(null===i)return!1;t=i,e=o}const r=V.lFrame=Fh();return r.currentTNode=t,r.lView=e,!0}function Ac(e){const t=Fh(),n=e[I];V.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Fh(){const e=V.lFrame,t=null===e?null:e.child;return null===t?Rh(e):t}function Rh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Lh(){const e=V.lFrame;return V.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Bh=Lh;function Oc(){const e=Lh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Wn(e){V.lFrame.selectedIndex=e}function cs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[gr]+=65536),(a>11>16&&(3&e[$])===t){e[$]+=2048,wt(4,a,o);try{o.call(a)}finally{wt(5,a,o)}}}else{wt(4,a,o);try{o.call(a)}finally{wt(5,a,o)}}}const br=-1;class xi{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Pc(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[mr],n--;return r}let Fc=!0;function hs(e){const t=Fc;return Fc=e,t}const qh=255,zh=5;let _S=0;const Gt={};function ps(e,t){const n=Wh(e,t);if(-1!==n)return n;const r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Rc(r.data,e),Rc(t,null),Rc(r.blueprint,null));const i=Lc(e,t),o=e.injectorIndex;if(function $h(e){return e!==br}(i)){const s=fs(i),a=ds(i,t),c=a[I].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|c[s+u]}return t[o+8]=i,o}function Rc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Wh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Lc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Zh(i),null===r)return br;if(n++,i=i[mr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return br}function Bc(e,t,n){!function CS(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ti)&&(r=n[Ti]),null==r&&(r=n[Ti]=_S++);const i=r&qh;t.data[e+(i>>zh)]|=1<=0?t&qh:kS:t}(n);if("function"==typeof o){if(!Ph(t,e,r))return r&L.Host?Gh(i,0,r):Qh(t,n,r,i);try{const s=o(r);if(null!=s||r&L.Optional)return s;Go()}finally{Bh()}}else if("number"==typeof o){let s=null,a=Wh(e,t),c=br,u=r&L.Host?t[$e][Ue]:null;for((-1===a||r&L.SkipSelf)&&(c=-1===a?Lc(e,t):t[a+8],c!==br&&Xh(r,!1)?(s=t[I],a=fs(c),t=ds(c,t)):a=-1);-1!==a;){const l=t[I];if(Jh(o,a,l.data)){const f=IS(a,t,n,s,r,u);if(f!==Gt)return f}c=t[a+8],c!==br&&Xh(r,t[I].data[a+8]===u)&&Jh(o,a,t)?(s=l,a=fs(c),t=ds(c,t)):a=-1}}return i}function IS(e,t,n,r,i,o){const s=t[I],a=s.data[e+8],l=function ms(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,c=e.directiveStart,l=o>>20,d=i?a+l:e.directiveEnd;for(let h=r?a:a+l;h=c&&p.type===n)return h}if(i){const h=s[c];if(h&&Ot(h)&&h.type===n)return c}return null}(a,s,n,null==r?Oi(a)&&Fc:r!=s&&0!=(3&a.type),i&L.Host&&o===a);return null!==l?Gn(t,s,l,a):Gt}function Gn(e,t,n,r){let i=e[n];const o=t.data;if(function bS(e){return e instanceof xi}(i)){const s=i;s.resolving&&function w0(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new O(-200,`Circular dependency in DI detected for ${e}${n}`)}(X(o[n]));const a=hs(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Dt(s.injectImpl):null;Ph(e,r,L.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function vS(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=bh(t);(n.preOrderHooks??(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==c&&Dt(c),hs(a),s.resolving=!1,Bh()}}return i}function Jh(e,t,n){return!!(n[t+(e>>zh)]&1<Array.isArray(n)?Qn(n,t):t(n))}function gs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var st=(()=>((st=st||{})[st.Important=1]="Important",st[st.DashCase=2]="DashCase",st))();const Kc=new Map;let r_=0;const Jc="__ngContext__";function qe(e,t){ht(t)?(e[Jc]=t[Ai],function o_(e){Kc.set(e[Ai],e)}(t)):e[Jc]=t}let Xc;function Zc(e,t){return Xc(e,t)}function Hi(e){const t=e[pe];return At(t)?t[pe]:t}function eu(e){return Ep(e[Mi])}function tu(e){return Ep(e[kt])}function Ep(e){for(;null!==e&&!At(e);)e=e[kt];return e}function Mr(e,t,n,r,i){if(null!=r){let o,s=!1;At(r)?o=r:ht(r)&&(s=!0,r=r[an]);const a=Le(r);0===e&&null!==n?null==i?Mp(t,n,a):Kn(t,n,a,i||null,!0):1===e&&null!==n?Kn(t,n,a,i||null,!0):2===e?function cu(e,t,n){const r=function Es(e,t){return e.parentNode(t)}(e,t);r&&function C_(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function M_(e,t,n,r,i){const o=n[ns];o!==Le(n)&&Mr(t,e,r,o,i);for(let a=Ke;a=0?r[i=s]():r[i=-s].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===qt.None||o===qt.Emulated)return null}return pt(r,n)}}(e,t.parent,n)}function Kn(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Mp(e,t,n){e.appendChild(t,n)}function kp(e,t,n,r,i){null!==r?Kn(e,t,n,r,i):Mp(e,t,n)}let su,fu,Np=function Op(e,t,n){return 40&e.type?pt(e,n):null};function Ss(e,t,n,r){const i=Tp(e,r,t),o=t[W],a=function Ap(e,t,n){return Np(e,t,n)}(r.parent||t[Ue],r,t);if(null!=i)if(Array.isArray(n))for(let c=0;c{const s=o;yu(s,n,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&nm(i,n),n}function nm(e,t){for(let n=0;n{t.push(o)})}}function yu(e,t,n,r){if(!(e=x(e)))return!1;let i=null,o=sh(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const c=e.ngModule;if(o=sh(c),!o)return!1;i=c}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of c)yu(u,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Qn(o.imports,l=>{yu(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}void 0!==u&&nm(u,t)}if(!a){const u=zn(i)||(()=>new i);t.push({provide:i,useFactory:u,deps:J},{provide:Zp,useValue:i,multi:!0},{provide:Jp,useValue:()=>j(i),multi:!0})}const c=o.providers;null==c||a||vu(c,l=>{t.push(l)})}}return i!==e&&void 0!==e.providers}function vu(e,t){for(let n of e)hc(n)&&(n=n.\u0275providers),Array.isArray(n)?vu(n,t):t(n)}const sC=re({provide:String,useValue:re});function Du(e){return null!==e&&"object"==typeof e&&sC in e}function Yn(e){return"function"==typeof e}const bu=new P("Set Injector scope."),Ms={},cC={};let wu;function ks(){return void 0===wu&&(wu=new em),wu}class Jn{}class om extends Jn{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Su(t,s=>this.processProvider(s)),this.records.set(Xp,Ar(void 0,this)),i.has("environment")&&this.records.set(Jn,Ar(void 0,this));const o=this.records.get(bu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Zp.multi,J,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=hr(this),r=Dt(void 0);try{return t()}finally{hr(n),Dt(r)}}get(t,n=Ei,r=L.Default){this.assertNotDestroyed(),r=Jo(r);const i=hr(this),o=Dt(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const c=function hC(e){return"function"==typeof e||"object"==typeof e&&e instanceof P}(t)&&Qo(t);a=c&&this.injectableDefInScope(c)?Ar(Eu(t),Ms):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?ks():this.parent).get(t,n=r&L.Optional&&n===Ei?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Yo]=s[Yo]||[]).unshift(oe(t)),i)throw s;return function P0(e,t,n,r){const i=e[Yo];throw t[uh]&&i.unshift(t[uh]),e.message=function F0(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==O0?e.slice(2):e;let i=oe(t);if(Array.isArray(t))i=t.map(oe).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):oe(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(A0,"\n ")}`}("\n"+e.message,i,n,r),e[k0]=i,e[Yo]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Dt(o),hr(i)}}resolveInjectorInitializers(){const t=hr(this),n=Dt(void 0);try{const r=this.get(Jp.multi,J,L.Self);for(const i of r)i()}finally{hr(t),Dt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(oe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(t){let n=Yn(t=x(t))?t:x(t&&t.provide);const r=function lC(e){return Du(e)?Ar(void 0,e.useValue):Ar(function sm(e,t,n){let r;if(Yn(e)){const i=x(e);return zn(i)||Eu(i)}if(Du(e))r=()=>x(e.useValue);else if(function im(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...yc(e.deps||[]));else if(function rm(e){return!(!e||!e.useExisting)}(e))r=()=>j(x(e.useExisting));else{const i=x(e&&(e.useClass||e.provide));if(!function fC(e){return!!e.deps}(e))return zn(i)||Eu(i);r=()=>new i(...yc(e.deps))}return r}(e),Ms)}(t);if(Yn(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Ar(void 0,Ms,!0),i.factory=()=>yc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ms&&(n.value=cC,n.value=n.factory()),"object"==typeof n.value&&n.value&&function dC(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=x(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Eu(e){const t=Qo(e),n=null!==t?t.factory:zn(e);if(null!==n)return n;if(e instanceof P)throw new O(204,!1);if(e instanceof Function)return function uC(e){const t=e.length;if(t>0)throw function Li(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new O(204,!1)}function Ar(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Su(e,t){for(const n of e)Array.isArray(n)?Su(n,t):n&&hc(n)?Su(n.\u0275providers,t):t(n)}class pC{}class am{}class gC{resolveComponentFactory(t){throw function mC(e){const t=Error(`No component factory found for ${oe(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let As=(()=>{class e{}return e.NULL=new gC,e})();function yC(){return Or(Be(),S())}function Or(e,t){return new Nr(pt(e,t))}let Nr=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=yC,e})();class um{}let bC=(()=>{class e{}return e.\u0275prov=Y({token:e,providedIn:"root",factory:()=>null}),e})();class _u{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const wC=new _u("15.2.9"),Cu={},Tu="ngOriginalError";function Iu(e){return e[Tu]}class xr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Iu(t);for(;n&&Iu(n);)n=Iu(n);return n||null}}function dm(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}const hm="ng-template";function NC(e,t,n){let r=0,i=!0;for(;ro?"":i[f+1].toLowerCase();const h=8&r?d:null;if(h&&-1!==dm(h,u,0)||2&r&&u!==d){if(Nt(r))return!1;s=!0}}}}else{if(!s&&!Nt(r)&&!Nt(c))return!1;if(s&&Nt(c))continue;s=!1,r=c|1&r}}return Nt(r)||s}function Nt(e){return 0==(1&e)}function FC(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Nt(s)&&(t+=gm(o,i),i=""),r=s,o=o||!Nt(r);n++}return""!==i&&(t+=gm(o,i)),t}const H={};function wm(e,t=null,n=null,r){const i=Em(e,t,n,r);return i.resolveInjectorInitializers(),i}function Em(e,t=null,n=null,r,i=new Set){const o=[n||J,oC(e)];return r=r||("object"==typeof e?void 0:oe(e)),new om(o,t||ks(),r||null,i)}let Xn=(()=>{class e{static create(n,r){if(Array.isArray(n))return wm({name:""},r,n,"");{const i=n.name??"";return wm({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=Ei,e.NULL=new em,e.\u0275prov=Y({token:e,providedIn:"any",factory:()=>j(Xp)}),e.__NG_ELEMENT_ID__=-1,e})();function A(e,t=L.Default){const n=S();return null===n?j(e,t):Kh(Be(),n,x(e),t)}function km(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rue&&function ym(e,t,n,r){if(!r)if(3==(3&t[$])){const o=e.preOrderCheckHooks;null!==o&&us(t,o,n)}else{const o=e.preOrderHooks;null!==o&&ls(t,o,0,n)}Wn(n)}(e,t,ue,!1),wt(s?2:0,i),n(r,i)}finally{Wn(o),wt(s?3:1,i)}}function Pu(e,t,n){if(Ec(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,o)}}(e,t,r,Wi(e,n,i.hostVars,H),i)}function kT(e,t,n,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let c=0;c0&&Hu(n)}}function Hu(e){for(let r=eu(e);null!==r;r=tu(r))for(let i=Ke;i0&&Hu(o)}const n=e[I].components;if(null!==n)for(let r=0;r0&&Hu(i)}}function PT(e,t){const n=ot(t,e),r=n[I];(function FT(e,t){for(let n=t.length;n-1&&(function iu(e,t){if(e.length<=Ke)return;const n=Ke+t,r=e[n];if(r){const i=r[ki];null!==i&&i!==e&&_p(i,r),t>0&&(e[n-1][kt]=r[kt]);const o=gs(e,Ke+t);!function y_(e,t){Ui(e,t,t[W],2,null,null),t[an]=null,t[Ue]=null}(r[I],r);const s=o[zt];null!==s&&s.detachView(o[I]),r[pe]=null,r[kt]=null,r[$]&=-65}return r}(t,r),gs(n,r))}this._attachedToViewContainer=!1}!function Cp(e,t){if(!(128&t[$])){const n=t[W];n.destroyNode&&Ui(e,t,n,3,null,null),function b_(e){let t=e[Mi];if(!t)return ou(e[I],e);for(;t;){let n=null;if(ht(t))n=t[Mi];else{const r=t[Ke];r&&(n=r)}if(!n){for(;t&&!t[kt]&&t!==e;)ht(t)&&ou(t[I],t),t=t[pe];null===t&&(t=e),ht(t)&&ou(t[I],t),n=t&&t[kt]}t=n}}(t)}}(this._lView[I],this._lView)}onDestroy(t){!function Nm(e,t,n,r){const i=Bm(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&jm(e).push(r,i.length-1))}(this._lView[I],this._lView,null,t)}markForCheck(){Fs(this._cdRefInjectingView||this._lView)}detach(){this._lView[$]&=-65}reattach(){this._lView[$]|=64}detectChanges(){Rs(this._lView[I],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new O(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function D_(e,t){Ui(e,t,t[W],2,null,null)}(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=t}}class RT extends Gi{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Rs(t[I],t,t[we],!1)}checkNoChanges(){}get context(){return null}}class Um extends As{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ee(t);return new Qi(n,this.ngModule)}}function $m(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class BT{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Jo(r);const i=this.injector.get(t,Cu,r);return i!==Cu||n===Cu?i:this.parentInjector.get(t,n,r)}}class Qi extends am{get inputs(){return $m(this.componentDef.inputs)}get outputs(){return $m(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function HC(e){return e.map(VC).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof Jn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new BT(t,o):t,a=s.get(um,null);if(null===a)throw new O(407,!1);const c=s.get(bC,null),u=a.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",f=r?function hT(e,t,n){return e.selectRootElement(t,n===qt.ShadowDom)}(u,r,this.componentDef.encapsulation):ru(u,l,function LT(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(l)),d=this.componentDef.onPush?288:272,h=Lu(0,null,null,1,0,null,null,null,null,null),p=Ns(null,h,null,d,null,null,a,u,c,s,null);let m,v;Ac(p);try{const g=this.componentDef;let D,y=null;g.findHostDirectiveDefs?(D=[],y=new Map,g.findHostDirectiveDefs(g,D,y),D.push(g)):D=[g];const w=function VT(e,t){const n=e[I],r=ue;return e[r]=t,Rr(n,r,2,"#host",null)}(p,f),_=function HT(e,t,n,r,i,o,s,a){const c=i[I];!function UT(e,t,n,r){for(const i of e)t.mergedAttrs=Pi(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(Ls(t,t.mergedAttrs,!0),null!==n&&Lp(r,n,t))}(r,e,t,s);const u=o.createRenderer(t,n),l=Ns(i,Om(n),null,n.onPush?32:16,i[e.index],e,o,u,a||null,null,null);return c.firstCreatePass&&ju(c,e,r.length-1),Ps(i,l),i[e.index]=l}(w,f,g,D,p,a,u);v=function Ch(e,t){return e.data[t]}(h,ue),f&&function qT(e,t,n,r){if(r)Pc(e,n,["ng-version",wC.full]);else{const{attrs:i,classes:o}=function UC(e){const t=[],n=[];let r=1,i=2;for(;r0&&Rp(e,n,o.join(" "))}}(u,g,f,r),void 0!==n&&function zT(e,t,n){const r=e.projection=[];for(let i=0;is(Le(w[r.index])):r.index;let y=null;if(!s&&a&&(y=function pI(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,d=!1;else{o=fg(r,t,l,o,!1);const w=n.listen(v,i,o);f.push(o,w),u&&u.push(i,D,g,g+1)}}else o=fg(r,t,l,o,!1);const h=r.outputs;let p;if(d&&null!==h&&(p=h[i])){const m=p.length;if(m)for(let v=0;v-1?ot(e.index,t):t);let c=lg(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=lg(t,n,u,s)&&c,u=u.__ngNextListenerFn__;return i&&!1===c&&(s.preventDefault(),s.returnValue=!1),c}}function We(e,t=""){const n=S(),r=K(),i=e+ue,o=r.firstCreatePass?Rr(r,i,1,t,null):r.data[i],s=n[i]=function nu(e,t){return e.createText(t)}(n[W],t);Ss(r,n,s,o),Wt(o,!1)}const Kr="en-US";let iy=Kr;class Yr{}class sk{}class Ay extends Yr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Um(this);const r=function dt(e,t){const n=e[fh]||null;if(!n&&!0===t)throw new Error(`Type ${oe(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function fn(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=Em(t,n,[{provide:Yr,useValue:this},{provide:As,useValue:this.componentFactoryResolver}],oe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cl extends sk{constructor(t){super(),this.moduleType=t}create(t){return new Ay(this.moduleType,t)}}function ll(e){return t=>{setTimeout(e,void 0,t)}}const hn=class Rk extends $o{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&"object"==typeof t){const c=t;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=ll(o),i&&(i=ll(i)),s&&(s=ll(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof It&&t.add(a),a}};function Ks(...e){}const mv=new P("Application Initializer");let Ys=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ks,this.reject=Ks,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:c})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(j(mv,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const oo=new P("AppId",{providedIn:"root",factory:function gv(){return`${El()}${El()}${El()}`}});function El(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const yv=new P("Platform Initializer"),Sl=new P("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mn=new P("LocaleId",{providedIn:"root",factory:()=>_i(mn,L.Optional|L.SkipSelf)||function DA(){return typeof $localize<"u"&&$localize.locale||Kr}()}),_A=(()=>Promise.resolve(0))();function _l(e){typeof Zone>"u"?_A.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class je{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new hn(!1),this.onMicrotaskEmpty=new hn(!1),this.onStable=new hn(!1),this.onError=new hn(!1),typeof Zone>"u")throw new O(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function CA(){let e=ce.requestAnimationFrame,t=ce.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function MA(e){const t=()=>{!function IA(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ce,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Tl(e),e.isCheckStableRunning=!0,Cl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Tl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return bv(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),wv(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return bv(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),wv(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Tl(e),Cl(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!je.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(je.isInAngularZone())throw new O(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,TA,Ks,Ks);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const TA={};function Cl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Tl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function wv(e){e._nesting--,Cl(e)}class kA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new hn,this.onMicrotaskEmpty=new hn,this.onStable=new hn,this.onError=new hn}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}const Ev=new P(""),Js=new P("");let kl,Il=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,kl||(function AA(e){kl=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{je.assertNotInAngularZone(),_l(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())_l(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(j(je),j(Ml),j(Js))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),Ml=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return kl?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const gn=!1;let Mn=null;const Sv=new P("AllowMultipleToken"),Al=new P("PlatformDestroyListeners"),OA=new P("appBootstrapListener");function Cv(e,t,n=[]){const r=`Platform: ${t}`,i=new P(r);return(o=[])=>{let s=Ol();if(!s||s.injector.get(Sv,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function PA(e){if(Mn&&!Mn.get(Sv,!1))throw new O(400,!1);Mn=e;const t=e.get(Iv);(function _v(e){const t=e.get(yv,null);t&&t.forEach(n=>n())})(e)}(function Tv(e=[],t){return Xn.create({name:t,providers:[{provide:bu,useValue:"platform"},{provide:Al,useValue:new Set([()=>Mn=null])},...e]})}(a,r))}return function RA(e){const t=Ol();if(!t)throw new O(401,!1);return t}()}}function Ol(){return Mn?.get(Iv)??null}let Iv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function kv(e,t){let n;return n="noop"===e?new kA:("zone.js"===e?void 0:e)||new je(t),n}(r?.ngZone,function Mv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:je,useValue:i}];return i.run(()=>{const s=Xn.create({providers:o,parent:this.injector,name:n.moduleType.name}),a=n.create(s),c=a.injector.get(xr,null);if(!c)throw new O(402,!1);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:l=>{c.handleError(l)}});a.onDestroy(()=>{Xs(this._modules,a),u.unsubscribe()})}),function Av(e,t,n){try{const r=n();return Ku(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(c,i,()=>{const u=a.injector.get(Ys);return u.runInitializers(),u.donePromise.then(()=>(function oy(e){vt(e,"Expected localeId to be defined"),"string"==typeof e&&(iy=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(mn,Kr)||Kr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const i=Ov({},r);return function NA(e,t,n){const r=new cl(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(Nl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new O(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new O(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Al,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(j(Xn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Ov(e,t){return Array.isArray(t)?t.reduce(Ov,e):{...e,...t}}let Nl=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,i){this._zone=n,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new be(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new be(a=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{je.assertNotInAngularZone(),_l(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{je.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=function v0(...e){const t=zo(e),n=function f0(e,t){return"number"==typeof sc(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?wn(r[0]):eh(n)(wi(r,t)):th}(o,s.pipe(function D0(e={}){const{connector:t=(()=>new $o),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,u=0,l=!1,f=!1;const d=()=>{a?.unsubscribe(),a=void 0},h=()=>{d(),s=c=void 0,l=f=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return $n((m,v)=>{u++,!f&&!l&&d();const g=c=c??t();v.add(()=>{u--,0===u&&!f&&!l&&(a=cc(p,i))}),g.subscribe(v),!s&&u>0&&(s=new Di({next:D=>g.next(D),error:D=>{f=!0,d(),a=cc(h,n,D),g.error(D)},complete:()=>{l=!0,d(),a=cc(h,r),g.complete()}}),wn(m).subscribe(s))})(o)}}()))}bootstrap(n,r){const i=n instanceof am;if(!this._injector.get(Ys).done){!i&&function Ii(e){const t=ee(e)||He(e)||it(e);return null!==t&&t.standalone}(n);throw new O(405,gn)}let s;s=i?n:this._injector.get(As).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function xA(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Yr),u=s.create(Xn.NULL,[],r||s.selector,a),l=u.location.nativeElement,f=u.injector.get(Ev,null);return f?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Xs(this.components,u),f?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new O(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Xs(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(OA,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Xs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new O(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(j(je),j(Jn),j(xr))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Xs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ZA=Cv(null,"core",[]);let eO=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(j(Nl))},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({}),e})(),Ll=null;function na(){return Ll}class rO{}const Zt=new P("DocumentToken");function Jv(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}let DN=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({}),e})();class aD{}class YN extends rO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ef extends YN{static makeCurrent(){!function nO(e){Ll||(Ll=e)}(new ef)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function JN(){return lo=lo||document.querySelector("base"),lo?lo.getAttribute("href"):null}();return null==n?null:function XN(e){pa=pa||document.createElement("a"),pa.setAttribute("href",e);const t=pa.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){lo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Jv(document.cookie,t)}}let pa,lo=null;const dD=new P("TRANSITION_ID"),ex=[{provide:mv,useFactory:function ZN(e,t,n){return()=>{n.get(Ys).donePromise.then(()=>{const r=na(),i=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const ma=new P("EventManagerPlugins");let ga=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o{class e{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const i=this.usageCount;let o=i.get(n)??0;return o+=r,o>0?i.set(n,o):i.delete(n),o}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),fo=(()=>{class e extends pD{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(o=>o.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const i=this.doc.createElement("style");i.textContent=r,n.appendChild(i);const o=this.styleRef.get(r);o?o.push(i):this.styleRef.set(r,[i])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(j(Zt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const tf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},nf=/%COMP%/g,yD=new P("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function vD(e,t){return t.flat(100).map(n=>n.replace(nf,e))}function DD(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let rf=(()=>{class e{constructor(n,r,i,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new of(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const i=this.getOrCreateRenderer(n,r);return i instanceof ED?i.applyToHost(n):i instanceof sf&&i.applyStyles(),i}getOrCreateRenderer(n,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(r.encapsulation){case qt.Emulated:o=new ED(s,a,r,this.appId,c);break;case qt.ShadowDom:return new ux(s,a,n,r);default:o=new sf(s,a,r,c)}o.onDestroy=()=>i.delete(r.id),i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(j(ga),j(fo),j(oo),j(yD))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();class of{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(tf[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(wD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(wD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=tf[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=tf[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(st.DashCase|st.Important)?t.style.setProperty(n,r,i&st.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&st.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,DD(r)):this.eventManager.addEventListener(t,n,DD(r))}}function wD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class ux extends of{constructor(t,n,r,i){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=vD(i.id,i.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class sf extends of{constructor(t,n,r,i,o=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=i,this.rendererUsageCount=0,this.styles=vD(o,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class ED extends sf{constructor(t,n,r,i,o){const s=i+"-"+r.id;super(t,n,r,o,s),this.contentAttr=function sx(e){return"_ngcontent-%COMP%".replace(nf,e)}(s),this.hostAttr=function ax(e){return"_nghost-%COMP%".replace(nf,e)}(s)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let lx=(()=>{class e extends hD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return e.\u0275fac=function(n){return new(n||e)(j(Zt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const SD=["alt","control","meta","shift"],fx={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dx={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let hx=(()=>{class e extends hD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>na().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),SD.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let i=fx[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),SD.forEach(s=>{s!==i&&(0,dx[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(j(Zt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const CD=[{provide:Sl,useValue:"browser"},{provide:yv,useValue:function px(){ef.makeCurrent()},multi:!0},{provide:Zt,useFactory:function gx(){return function P_(e){fu=e}(document),document},deps:[]}],yx=Cv(ZA,"browser",CD),TD=new P(""),ID=[{provide:Js,useClass:class tx{addToWindow(t){ce.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},ce.getAllAngularTestabilities=()=>t.getAllTestabilities(),ce.getAllAngularRootElements=()=>t.getAllRootElements(),ce.frameworkStabilizers||(ce.frameworkStabilizers=[]),ce.frameworkStabilizers.push(r=>{const i=ce.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(c){s=s||c,o--,0==o&&r(s)};i.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?na().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Ev,useClass:Il,deps:[je,Ml,Js]},{provide:Il,useClass:Il,deps:[je,Ml,Js]}],MD=[{provide:bu,useValue:"root"},{provide:xr,useFactory:function mx(){return new xr},deps:[]},{provide:ma,useClass:lx,multi:!0,deps:[Zt,je,Sl]},{provide:ma,useClass:hx,multi:!0,deps:[Zt]},{provide:rf,useClass:rf,deps:[ga,fo,oo,yD]},{provide:um,useExisting:rf},{provide:pD,useExisting:fo},{provide:fo,useClass:fo,deps:[Zt]},{provide:ga,useClass:ga,deps:[ma,je]},{provide:aD,useClass:nx,deps:[]},[]];let vx=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:oo,useValue:n.appId},{provide:dD,useExisting:oo},ex]}}}return e.\u0275fac=function(n){return new(n||e)(j(TD,12))},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:[...MD,...ID],imports:[DN,eO]}),e})();typeof window<"u"&&window;var te=(()=>{return(e=te||(te={}))[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",te;var e})();function ho(e){return!!e&&e<7}var uf="Invariant Violation",OD=Object.setPrototypeOf,Tx=void 0===OD?function(e,t){return e.__proto__=t,e}:OD,ND=function(e){function t(n){void 0===n&&(n=uf);var r=e.call(this,"number"==typeof n?uf+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=uf,Tx(r,t.prototype),r}return Mt(t,e),t}(Error);function rr(e,t){if(!e)throw new ND(t)}var e,ya=["debug","log","warn","error","silent"],lf=ya.indexOf("log");function va(e){return function(){if(ya.indexOf(e)>=lf)return(console[e]||console.log).apply(console,arguments)}}(e=rr||(rr={})).debug=va("debug"),e.log=va("log"),e.warn=va("warn"),e.error=va("error");var ff="3.11.2";function Bt(e){try{return e()}catch{}}const df=Bt(function(){return globalThis})||Bt(function(){return window})||Bt(function(){return self})||Bt(function(){return global})||Bt(function(){return Bt.constructor("return this")()});var xD=new Map;function hf(e){var t=xD.get(e)||1;return xD.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function PD(e,t){void 0===t&&(t=0);var n=hf("stringifyForDisplay");return JSON.stringify(e,function(r,i){return void 0===i?n:i},t).split(JSON.stringify(n)).join("")}function Da(e){return function(t){for(var n=[],r=1;r"}}function pf(e,t){if(void 0===t&&(t=[]),e)return df[FD]&&df[FD](e,t.map(RD))}function mf(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:ff,message:e,args:t.map(RD)})))}function LD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,a=!1,u=arguments[1];return new o(function(l){return i.subscribe({next:function(f){var d=!a;if(a=!0,!d||s)try{u=r(u,f)}catch(h){return l.error(h)}else u=f},error:function(f){l.error(f)},complete:function(){if(!a&&!s)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(u),l.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,o=new Array(i),s=0;s=0&&a.splice(d,1),u()}});a.push(f)},error:function(l){s.error(l)},complete:function(){u()}});function u(){c.closed&&0===a.length&&s.complete()}return function(){a.forEach(function(l){return l.unsubscribe()}),c.unsubscribe()}})},t[bf]=function(){return this},e.from=function(r){var i="function"==typeof this?this:e;if(null==r)throw new TypeError(r+" is not an object");var o=ba(r,bf);if(o){var s=o.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return function Ax(e){return e instanceof ae}(s)&&s.constructor===i?s:new i(function(a){return s.subscribe(a)})}if(vf("iterator")&&(o=ba(r,kx)))return new i(function(a){wa(function(){if(!a.closed){for(var u,c=function Ix(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function Mx(e,t){if(e){if("string"==typeof e)return LD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LD(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o.call(r));!(u=c()).done;)if(a.next(u.value),a.closed)return;a.complete()}})});if(Array.isArray(r))return new i(function(a){wa(function(){if(!a.closed){for(var c=0;c"u"&&(R(1===r.length,74,r.length),n=r[0].name.value),b(b({},e),{definitions:Qe([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function Ea(e){void 0===e&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function Sa(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return R(r,75,n),r||null;default:return null}}function Sf(){}yf()&&Object.defineProperty(ae,Symbol("extensions"),{value:{symbol:bf,hostReportError:Zr},configurable:!0});const Rx=Sf,Lx=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},Bx=typeof WeakMap<"u"?WeakMap:Map,jx=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Sf,unregister:Sf}};class _a{constructor(t=1/0,n=Rx){this.max=t,this.dispose=n,this.map=new Bx,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let i=0;i<10024;i++){const o=r.next().value;if(!o)break;this.unfinalizedNodes.delete(o);const s=o.key;delete o.key,o.keyRef=new Lx(s),this.registry.register(s,o,o)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new jx(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,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(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(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.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return!!n&&(this.deleteNode(n),!0)}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function Hx(){}class _f{constructor(t=1/0,n=Hx){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return!!n&&(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0)}}var Cf=new WeakSet;function UD(e){e.size<=(e.max||-1)||Cf.has(e)||(Cf.add(e),setTimeout(function(){e.clean(),Cf.delete(e)},100))}var $D=function(e,t){var n=new _a(e,t);return n.set=function(r,i){var o=_a.prototype.set.call(this,r,i);return UD(this),o},n},Ux=function(e,t){var n=new _f(e,t);return n.set=function(r,i){var o=_f.prototype.set.call(this,r,i);return UD(this),o},n},$x=Symbol.for("apollo.cacheSize"),vn=b({},df[$x]),ir={};function qD(e,t){ir[e]=t}var qx=!1!==globalThis.__DEV__?function Qx(){var e,t,n,r,i;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(t){var n=t[0];return[n,vn[n]||t[1]]})),sizes:b({print:null===(e=ir.print)||void 0===e?void 0:e.call(ir),parser:null===(t=ir.parser)||void 0===t?void 0:t.call(ir),canonicalStringify:null===(n=ir.canonicalStringify)||void 0===n?void 0:n.call(ir),links:If(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:GD(this.queryManager.documentTransform)}},null===(i=(r=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(r))}}:void 0,zx=!1!==globalThis.__DEV__?function Kx(){var e=this.config.fragments;return b(b({},zD.apply(this)),{addTypenameDocumentTransform:GD(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:An(this.storeReader.executeSelectionSet),executeSubSelectedArray:An(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:An(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:An(e?.findFragmentSpreads),lookup:An(e?.lookup),transform:An(e?.transform)}})}:void 0,Wx=!1!==globalThis.__DEV__?zD:void 0;function zD(){return{cache:{fragmentQueryDocuments:An(this.getFragmentDoc)}}}function An(e){return function Yx(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function WD(e){return null!=e}function GD(e){return Tf(e).map(function(t){return{cache:t}})}function Tf(e){return e?Qe(Qe([An(e?.performWork)],Tf(e?.left),!0),Tf(e?.right),!0).filter(WD):[]}function If(e){var t;return e?Qe(Qe([null===(t=e?.getMemoryInternals)||void 0===t?void 0:t.call(e)],If(e?.left),!0),If(e?.right),!0).filter(WD):[]}var ei,On=Object.assign(function(t){return JSON.stringify(t,Jx)},{reset:function(){ei=new Ux(vn.canonicalStringify||1e3)}});function Jx(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(Xx))return t;var i=JSON.stringify(r),o=ei.get(i);if(!o){r.sort();var s=JSON.stringify(r);o=ei.get(s)||r,ei.set(i,o),ei.set(s,o)}var a=Object.create(n);return o.forEach(function(c){a[c]=t[c]}),a}}return t}function Xx(e,t,n){return 0===t||n[t-1]<=e}function ti(e){return{__ref:String(e)}}function ne(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function ni(e,t,n,r){if(function nP(e){return"IntValue"===e.kind}(n)||function rP(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function tP(e){return"BooleanValue"===e.kind}(n)||function eP(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function oP(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(s){return ni(i,s.name,s.value,r)}),e[t.value]=i}else if(function iP(e){return"Variable"===e.kind}(n))e[t.value]=(r||{})[n.name.value];else if(function sP(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(s){var a={};return ni(a,t,s,r),a[t.value]});else if(function aP(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function cP(e){return"NullValue"===e.kind}(n))throw et(84,t.value,n.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&qD("canonicalStringify",function(){return ei.size}),On.reset();var lP=["connection","include","skip","client","rest","export","nonreactive"],mo=On,QD=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(a){i[a]=t[a]}),"".concat(n.connection.key,"(").concat(mo(i),")")}return n.connection.key}var o=e;if(t){var s=mo(t);o+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(a){-1===lP.indexOf(a)&&(n[a]&&Object.keys(n[a]).length?o+="@".concat(a,"(").concat(mo(n[a]),")"):o+="@".concat(a))}),o},{setStringify:function(e){var t=mo;return mo=e,t}});function Ca(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){return ni(n,r.name,r.value,t)}),n}return null}function Nn(e){return e.alias?e.alias.value:e.name.value}function Mf(e,t,n){for(var r,i=0,o=t.selections;iJD)return"[Array]";const n=Math.min(mP,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function vP(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>JD?"["+function bP(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map(([i,o])=>i+": "+ka(o,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}class wP{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class XD{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const ZD={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},EP=new Set(Object.keys(ZD));function eb(e){const t=e?.kind;return"string"==typeof t&&EP.has(t)}var or=(()=>(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(or||(or={})),or))(),M=(()=>(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(M||(M={})),M))();const sr=Object.freeze({});function Dn(e,t,n=ZD){const r=new Map;for(const g of Object.values(M))r.set(g,xf(t,g));let i,l,f,o=Array.isArray(e),s=[e],a=-1,c=[],u=e;const d=[],h=[];do{a++;const g=a===s.length,D=g&&0!==c.length;if(g){if(l=0===h.length?void 0:d[d.length-1],u=f,f=h.pop(),D)if(o){u=u.slice();let w=0;for(const[_,C]of c){const U=_-w;null===C?(u.splice(U,1),w++):u[U]=C}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[w,_]of c)u[w]=_}a=i.index,s=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(f){if(l=o?a:s[a],u=f[l],null==u)continue;d.push(l)}let y;if(!Array.isArray(u)){var p,m;if(eb(u)||Ma(!1,`Invalid AST Node: ${Nf(u)}.`),y=(g?null===(p=r.get(u.kind))||void 0===p?void 0:p.leave:null===(m=r.get(u.kind))||void 0===m?void 0:m.enter)?.call(t,u,l,f,d,h),y===sr)break;if(!1===y){if(!g){d.pop();continue}}else if(void 0!==y&&(c.push([l,y]),!g)){if(!eb(y)){d.pop();continue}u=y}}var v;void 0===y&&D&&c.push([l,u]),g?d.pop():(i={inArray:o,index:a,keys:s,edits:c,prev:i},o=Array.isArray(u),s=o?u:null!==(v=n[u.kind])&&void 0!==v?v:[],a=-1,c=[],f&&h.push(f),f=u)}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function xf(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function bo(e,t){var n=e.directives;return!n||!n.length||function CP(e){var t=[];return e&&e.length&&e.forEach(function(n){if(function _P(e){var t=e.name.value;return"skip"===t||"include"===t}(n)){var r=n.arguments,i=n.name.value;R(r&&1===r.length,70,i);var o=r[0];R(o.name&&"if"===o.name.value,71,i);var s=o.value;R(s&&("Variable"===s.kind||"BooleanValue"===s.kind),72,i),t.push({directive:n,ifArgument:o})}}),t}(n).every(function(r){var i=r.directive,o=r.ifArgument,s=!1;return"Variable"===o.value.kind?R(void 0!==(s=t&&t[o.value.name.value]),69,i.name.value):s=o.value.value,"skip"===i.name.value?!s:s})}function ar(e,t,n){var r=new Set(e),i=r.size;return Dn(t,{Directive:function(o){if(r.delete(o.name.value)&&(!n||!r.size))return sr}}),n?!r.size:r.size=0});var ob=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},Ff=Symbol(),HP=function(e){var t=Qe(Qe(Qe([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return ye(n)&&n.message||"Error message not found."}).join("\n")},oi=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=n.clientErrors,s=n.networkError,a=n.errorMessage,c=n.extraInfo,u=e.call(this,a)||this;return u.name="ApolloError",u.graphQLErrors=r||[],u.protocolErrors=i||[],u.clientErrors=o||[],u.networkError=s||null,u.message=a||HP(u),u.extraInfo=c,u.cause=Qe(Qe(Qe([s],r||[],!0),i||[],!0),o||[],!0).find(function(l){return!!l})||null,u.__proto__=t.prototype,u}return Mt(t,e),t}(Error),ve=Array.isArray;function en(e){return Array.isArray(e)&&e.length>0}var UP=Object.prototype.hasOwnProperty;function sb(){for(var e=[],t=0;t1)for(var r=new Pn,i=1;i=0;--a){var c=s[a],l=isNaN(+c)?{}:[];l[c]=o,o=l}n=r.merge(n,o)}),n}var cb=Object.prototype.hasOwnProperty;function QP(e){var t={};return e.split("\n").forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),o=n.slice(r+1).trim();t[i]=o}}),t}function ub(e,t){e.status>=300&&ob(e,function(){try{return JSON.parse(t)}catch{return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(i){var r=i;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function Rf(e){return 9===e||32===e}function wo(e){return e>=48&&e<=57}function lb(e){return e>=97&&e<=122||e>=65&&e<=90}function fb(e){return lb(e)||95===e}function XP(e){return lb(e)||wo(e)||95===e}function ZP(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s0===a?s:s.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function eF(e){let t=0;for(;te.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>k(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Q("(",k(e.variableDefinitions,", "),")"),n=k([e.operation,k([e.name,t]),k(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Q(" = ",n)+Q(" ",k(r," "))},SelectionSet:{leave:({selections:e})=>jt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Q("",e,": ")+t;let s=o+Q("(",k(n,", "),")");return s.length>80&&(s=o+Q("(\n",Na(k(n,"\n")),"\n)")),k([s,k(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Q(" ",k(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>k(["...",Q("on ",e),k(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Q("(",k(n,", "),")")} on ${t} ${Q("",k(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function tF(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(h=>0===h.length||Rf(h.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=a||c,l=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||s);let f="";const d=i&&Rf(e.charCodeAt(0));return(l&&!d||o)&&(f+="\n"),f+=n,(l||u)&&(f+="\n"),'"""'+f+'"""'}(e):function nF(e){return`"${e.replace(rF,iF)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+k(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+k(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Q("(",k(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Q("",e,"\n")+k(["schema",k(t," "),jt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+k(["scalar",t,k(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+k(["type",t,Q("implements ",k(n," & ")),k(r," "),jt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Q("",e,"\n")+t+(hb(n)?Q("(\n",Na(k(n,"\n")),"\n)"):Q("(",k(n,", "),")"))+": "+r+Q(" ",k(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Q("",e,"\n")+k([t+": "+n,Q("= ",r),k(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+k(["interface",t,Q("implements ",k(n," & ")),k(r," "),jt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Q("",e,"\n")+k(["union",t,k(n," "),Q("= ",k(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Q("",e,"\n")+k(["enum",t,k(n," "),jt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+k([t,k(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Q("",e,"\n")+k(["input",t,k(n," "),jt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Q("",e,"\n")+"directive @"+t+(hb(n)?Q("(\n",Na(k(n,"\n")),"\n)"):Q("(",k(n,", "),")"))+(r?" repeatable":"")+" on "+k(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>k(["extend schema",k(e," "),jt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>k(["extend scalar",e,k(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>k(["extend type",e,Q("implements ",k(t," & ")),k(n," "),jt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>k(["extend interface",e,Q("implements ",k(t," & ")),k(n," "),jt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>k(["extend union",e,k(t," "),Q("= ",k(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>k(["extend enum",e,k(t," "),jt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>k(["extend input",e,k(t," "),jt(n)]," ")}};function k(e,t=""){var n;return null!==(n=e?.filter(r=>r).join(t))&&void 0!==n?n:""}function jt(e){return Q("{\n",Na(k(e,"\n")),"\n}")}function Q(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Na(e){return Q(" ",e.replace(/\n/g,"\n "))}function hb(e){var t;return null!==(t=e?.some(n=>n.includes("\n")))&&void 0!==t&&t}var Eo,xa=Object.assign(function(e){var t=Eo.get(e);return t||(t=db(e),Eo.set(e,t)),t},{reset:function(){Eo=new $D(vn.print||2e3)}});xa.reset(),!1!==globalThis.__DEV__&&qD("print",function(){return Eo?Eo.size:0});var fF={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},pb=function(e,t){return t(e)};function Lf(e){return new ae(function(t){t.error(e)})}var gb={kind:M.FIELD,name:{kind:M.NAME,value:"__typename"}};function yb(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===M.FRAGMENT_SPREAD&&yb(t[n.name.value],t)})}function Bf(e){return yb(yo(e)||function dP(e){R("Document"===e.kind,80),R(e.definitions.length<=1,81);var t=e.definitions[0];return R("FragmentDefinition"===t.kind,82),t}(e),Ea(Ta(e)))?null:e}function Db(e){var t=new Map;return function(r){void 0===r&&(r=e);var i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function jf(e,t){go(t);for(var n=Db(""),r=Db(""),i=function(g){for(var D=0,y=void 0;D=0;--s)t.definitions[s].kind===M.OPERATION_DEFINITION&&++o;var a=function vb(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var i=t.get(r.name.value);return!i&&n.size&&n.forEach(function(o,s){s(r)&&(i=o)}),i}}(e),c=function(g){return en(g)&&g.map(a).some(function(D){return D&&D.remove})},u=new Map,l=!1,f={enter:function(g){if(c(g.directives))return l=!0,null}},d=Dn(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(g,D,y,w,_){var C=i(_);C&&C.variables.add(g.name.value)}},FragmentSpread:{enter:function(g,D,y,w,_){if(c(g.directives))return l=!0,null;var C=i(_);C&&C.fragmentSpreads.add(g.name.value)}},FragmentDefinition:{enter:function(g,D,y,w){u.set(JSON.stringify(w),g)},leave:function(g,D,y,w){return g===u.get(JSON.stringify(w))?g:o>0&&g.selectionSet.selections.every(function(C){return C.kind===M.FIELD&&"__typename"===C.name.value})?(r(g.name.value).removed=!0,l=!0,null):void 0}},Directive:{leave:function(g){if(a(g))return l=!0,null}}});if(!l)return t;var h=function(g){return g.transitiveVars||(g.transitiveVars=new Set(g.variables),g.removed||g.fragmentSpreads.forEach(function(D){h(r(D)).transitiveVars.forEach(function(y){g.transitiveVars.add(y)})})),g},p=new Set;d.definitions.forEach(function(g){g.kind===M.OPERATION_DEFINITION?h(n(g.name&&g.name.value)).fragmentSpreads.forEach(function(D){p.add(D)}):g.kind===M.FRAGMENT_DEFINITION&&0===o&&!r(g.name.value).removed&&p.add(g.name.value)}),p.forEach(function(g){h(r(g)).fragmentSpreads.forEach(function(D){p.add(D)})});var v={enter:function(g){if(function(g){return!(p.has(g)&&!r(g).removed)}(g.name.value))return null}};return Bf(Dn(d,{FragmentSpread:v,FragmentDefinition:v,OperationDefinition:{leave:function(g){if(g.variableDefinitions){var D=h(n(g.name&&g.name.value)).transitiveVars;if(D.size"u")throw et(37)}(r||wb);var d={http:{includeExtensions:s,preserveHeaderCase:a},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new ri(function(h){var p=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(h,n),m=h.getContext(),v={};if(m.clientAwareness){var g=m.clientAwareness,D=g.name,y=g.version;D&&(v["apollographql-client-name"]=D),y&&(v["apollographql-client-version"]=y)}var w=b(b({},v),m.headers),_={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:w};if(ar(["client"],h.query)){var C=bb(h.query);if(!C)return Lf(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));h.query=C}var De,U=function mb(e,t){for(var n=[],r=2;r-1;){if(v=void 0,U=[a.slice(0,m),a.slice(m+s.length)],a=U[1],g=(v=U[0]).indexOf("\r\n\r\n"),D=QP(v.slice(0,g)),(y=D["content-type"])&&-1===y.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(w=v.slice(g))if(_=ub(e,w),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)if(WP(_)){if(C={},"payload"in _){if(1===Object.keys(_).length&&null===_.payload)return[2];C=b({},_.payload)}"errors"in _&&(C=b(b({},C),{extensions:b(b({},"extensions"in C?C.extensions:null),(z={},z[Ff]=_.errors,z))})),t(C)}else t(_);else if(1===Object.keys(_).length&&"hasNext"in _&&!_.hasNext)return[2];m=a.indexOf(s)}return[3,1];case 3:return[2]}})})}(vi,EE):function YP(e){return function(t){return t.text().then(function(n){return ub(t,n)}).then(function(n){return!Array.isArray(n)&&!cb.call(n,"data")&&!cb.call(n,"errors")&&ob(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}(h)(vi).then(EE)}).then(function(){De=void 0,Tt.complete()}).catch(function(vi){De=void 0,function KP(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(vi,Tt)}),function(){De&&De.abort()}})})},wF=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,bF(n).request)||this;return r.options=n,r}return Mt(t,e),t}(ri);const{toString:Eb,hasOwnProperty:EF}=Object.prototype,Sb=Function.prototype.toString,Hf=new Map;function le(e,t){try{return Uf(e,t)}finally{Hf.clear()}}const _b=le;function Uf(e,t){if(e===t)return!0;const n=Eb.call(e);if(n!==Eb.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Tb(e,t))return!0;const i=Cb(e),o=Cb(t),s=i.length;if(s!==o.length)return!1;for(let a=0;a=0&&e.indexOf(t,n)===n}(i,_F)}}return!1}function Cb(e){return Object.keys(e).filter(SF,e)}function SF(e){return void 0!==this[e]}const _F="{ [native code] }";function Tb(e,t){let n=Hf.get(e);if(n){if(n.has(t))return!0}else Hf.set(e,n=new Set);return n.add(t),!1}const TF=()=>Object.create(null),{forEach:IF,slice:Ib}=Array.prototype,{hasOwnProperty:MF}=Object.prototype;class Fn{constructor(t=!0,n=TF){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return IF.call(t,r=>n=n.getChildTrie(r)),MF.call(n,"data")?n.data:n.data=this.makeData(Ib.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&rObject.create(null),{forEach:OF,slice:NF}=Array.prototype,{hasOwnProperty:xF}=Object.prototype;class $f{constructor(t=!0,n=AF){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return OF.call(t,r=>n=n.getChildTrie(r)),xF.call(n,"data")?n.data:n.data=this.makeData(NF.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&rglobalThis)||Ab(()=>global)||Object.create(null),zf=Ob[qf]||Array[qf]||function(e){try{Object.defineProperty(Ob,qf,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",PF++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=Ve;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===kb)break;return t!==Ve&&(Ve.slots[this.id]=n),!0}return Ve&&(Ve.slots[this.id]=kb),!1}getValue(){if(this.hasValue())return Ve.slots[this.id]}withValue(t,n,r,i){const s=Ve;Ve={parent:s,slots:{__proto__:null,[this.id]:t}};try{return n.apply(i,r)}finally{Ve=s}}static bind(t){const n=Ve;return function(){const r=Ve;try{return Ve=n,t.apply(this,arguments)}finally{Ve=r}}}static noContext(t,n,r){if(!Ve)return t.apply(r,n);{const i=Ve;try{return Ve=null,t.apply(r,n)}finally{Ve=i}}}}),So=new zf,{hasOwnProperty:BF}=Object.prototype,Gf=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Pa(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const _o=[],jF=100;function ai(e,t){if(!e)throw new Error(t||"assertion failure")}function xb(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Pb(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Fb(e){return e.slice(0)}let VF=(()=>{class e{constructor(n){this.fn=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}peek(){if(1===this.value.length&&!Rn(this))return Rb(this),this.value[0]}recompute(n){return ai(!this.recomputing,"already recomputing"),Rb(this),Rn(this)?function HF(e,t){return Ub(e),So.withValue(e,UF,[e,t]),function qF(e,t){if("function"==typeof e.subscribe)try{Pa(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function $F(e){e.dirty=!1,!Rn(e)&&Bb(e)}(e),Pb(e.value)}(this,n):Pb(this.value)}setDirty(){this.dirty||(this.dirty=!0,Lb(this),Pa(this))}dispose(){this.setDirty(),Ub(this),Qf(this,(n,r)=>{n.setDirty(),$b(n,this)})}forget(){this.dispose()}dependOn(n){n.add(this),this.deps||(this.deps=_o.pop()||new Set),this.deps.add(n)}forgetDeps(){this.deps&&(Gf(this.deps).forEach(n=>n.delete(this)),this.deps.clear(),_o.push(this.deps),this.deps=null)}}return e.count=0,e})();function Rb(e){const t=So.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Rn(e)?jb(t,e):Vb(t,e),t}function UF(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=Fb(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!xb(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(i){e.value[1]=i}e.recomputing=!1}function Rn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Lb(e){Qf(e,jb)}function Bb(e){Qf(e,Vb)}function Qf(e,t){const n=e.parents.size;if(n){const r=Gf(e.parents);for(let i=0;i0&&e.childValues.forEach((t,n)=>{$b(e,n)}),e.forgetDeps(),ai(null===e.dirtyChildren)}function $b(e,t){t.parents.delete(e),e.childValues.delete(t),Hb(e,t)}const zF={setDirty:!0,dispose:!0,forget:!0};function qb(e){const t=new Map,n=e&&e.subscribe;function r(i){const o=So.getValue();if(o){let s=t.get(i);s||t.set(i,s=new Set),o.dependOn(s),"function"==typeof n&&(Pa(s),s.unsubscribe=n(i))}}return r.dirty=function(o,s){const a=t.get(o);if(a){const c=s&&BF.call(zF,s)?s:"setDirty";Gf(a).forEach(u=>u[c]()),t.delete(o),Pa(a)}},r}let zb;function WF(...e){return(zb||(zb=new $f("function"==typeof WeakMap))).lookupArray(e)}const Kf=new Set;function Co(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=WF,normalizeResult:i,subscribe:o,cache:s=_f}=Object.create(null)){const a="function"==typeof s?new s(t,d=>d.dispose()):s,c=function(){const d=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===d)return e.apply(null,arguments);let h=a.get(d);h||(a.set(d,h=new VF(e)),h.normalizeResult=i,h.subscribe=o,h.forget=()=>a.delete(d));const p=h.recompute(Array.prototype.slice.call(arguments));return a.set(d,h),Kf.add(a),So.hasValue()||(Kf.forEach(m=>m.clean()),Kf.clear()),p};function u(d){const h=d&&a.get(d);h&&h.setDirty()}function l(d){const h=d&&a.get(d);if(h)return h.peek()}function f(d){return!!d&&a.delete(d)}return Object.defineProperty(c,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:a}),c.dirtyKey=u,c.dirty=function(){u(r.apply(null,arguments))},c.peekKey=l,c.peek=function(){return l(r.apply(null,arguments))},c.forgetKey=f,c.forget=function(){return f(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function GF(e){return e}var Wb=function(){function e(t,n){void 0===n&&(n=Object.create(null)),this.resultCache=nb?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=!1!==n.cache,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(GF,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e(function(i){return(t(i)?n:r).transformDocument(i)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new Fn(ii);this.performWork=Co(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var i=t.getCacheKey(r);if(i)return R(Array.isArray(i),68),n.lookupArray(i)},max:vn["documentTransform.cache"],cache:_a})}},e.prototype.performWork=function(t){return go(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e}();function Yf(e,t,n){return new ae(function(r){var i={then:function(c){return new Promise(function(u){return u(c())})}};function o(c,u){return function(l){if(c){var f=function(){return r.closed?0:c(l)};i=i.then(f,f).then(function(d){return r.next(d)},function(d){return r.error(d)})}else r[u](l)}}var s={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then(function(){return r.complete()})}},a=e.subscribe(s);return function(){return a.unsubscribe()}})}function Fa(e){return en(Jf(e))}function Jf(e){var t=en(e.errors)?e.errors.slice(0):[];return si(e)&&en(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function To(e,t,n){var r=[];e.forEach(function(i){return i[t]&&r.push(i)}),r.forEach(function(i){return i[t](n)})}function Gb(e){function t(n){Object.defineProperty(e,n,{value:ae})}return rb&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Qb(e){return e&&"function"==typeof e.then}var ci=function(e){function t(n){var r=e.call(this,function(i){return r.addObserver(i),function(){return r.removeObserver(i)}})||this;return r.observers=new Set,r.promise=new Promise(function(i,o){r.resolve=i,r.reject=o}),r.handlers={next:function(i){null!==r.sub&&(r.latest=["next",i],r.notify("next",i),To(r.observers,"next",i))},error:function(i){var o=r.sub;null!==o&&(o&&setTimeout(function(){return o.unsubscribe()}),r.sub=null,r.latest=["error",i],r.reject(i),r.notify("error",i),To(r.observers,"error",i))},complete:function(){var o=r.sub,s=r.sources;if(null!==o){var c=(void 0===s?[]:s).shift();c?Qb(c)?c.then(function(u){return r.sub=u.subscribe(r.handlers)},r.handlers.error):r.sub=c.subscribe(r.handlers):(o&&setTimeout(function(){return o.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),To(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(i){r.reject(i),r.sources=[],r.handlers.complete()},r.promise.catch(function(i){}),"function"==typeof n&&(n=[new ae(n)]),Qb(n)?n.then(function(i){return r.start(i)},r.handlers.error):r.start(n),r}return Mt(t,e),t.prototype.start=function(n){void 0===this.sub&&(this.sources=Array.from(n),this.handlers.complete())},t.prototype.deliverLastMessage=function(n){if(this.latest){var r=this.latest[0],i=n[r];i&&i.call(n,this.latest[1]),null===this.sub&&"next"===r&&n.complete&&n.complete()}},t.prototype.addObserver=function(n){this.observers.has(n)||(this.deliverLastMessage(n),this.observers.add(n))},t.prototype.removeObserver=function(n){this.observers.delete(n)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(n,r){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(o){return o(n,r)}))},t.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(i,o){r||(r=!0,n(i,o))})},t}(ae);function ui(){for(var e=[],t=0;t0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t}(ae);function Zb(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(i,o){return this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(i,o):n}}):e.reobserve()}function JF(e){!1!==globalThis.__DEV__&&R.error(23,e.message,e.stack)}function ew(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&R.debug(24,e)}function ed(e){return"network-only"===e||"no-cache"===e||"standby"===e}Gb(Zf);var li=new(ii?WeakMap:Map);function td(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return li.set(e,(li.get(e)+1)%1e15),n.apply(this,arguments)})}function tw(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var nd=function(){function e(t,n){void 0===n&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;li.has(r)||(li.set(r,0),td(r,"evict"),td(r,"modify"),td(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||te.loading;return this.variables&&this.networkStatus!==te.loading&&!le(this.variables,t.variables)&&(n=te.setVariables),le(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){tw(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&le(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(n=this.observableQuery)||void 0===n?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var r,n=this,i=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&null!==(r=this.observableQuery)&&void 0!==r&&r.getLastError()||(this.updateLastDiff(t),!this.dirty&&!le(i&&i.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0))))},e.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){n.getDiff().fromOptimisticTransaction?t.observe():Zb(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;tw(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(ho(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var n=this;void 0===t&&(t=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=b(b({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return n.setDiff(o)}});(!this.lastWatch||!le(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===li.get(this.cache)&&le(n,r.variables)&&le(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var o=this,s=new Pn,a=en(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&en(t.incremental)){var c=ab(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var u=this.getDiff();t.data=s.merge(u.result,t.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):0!==i&&(rd(t,r.errorPolicy)?this.cache.performTransaction(function(l){if(o.shouldWrite(t,r.variables))l.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:1===i}),o.lastWrite={result:t,variables:r.variables,dmCount:li.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(t.data=o.lastDiff.diff.result);var f=o.getDiffOptions(r.variables),d=l.diff(f);!o.stopped&&le(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(d,f),d.complete&&(t.data=d.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=te.ready},e.prototype.markError=function(t){return this.networkStatus=te.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function rd(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Fa(e);return!r&&n&&e.data&&(r=!0),r}var XF=Object.prototype.hasOwnProperty,nw=Object.create(null),ZF=function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new $D(vn["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Fn(!1);var r=new Wb(function(o){return n.cache.transformDocument(o)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults;var i=t.documentTransform;this.documentTransform=i?r.concat(i).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(et(25))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return Ut(this,arguments,void 0,function(n){var r,i,o,s,a,c,u,l=n.mutation,f=n.variables,d=n.optimisticResponse,h=n.updateQueries,p=n.refetchQueries,m=void 0===p?[]:p,v=n.awaitRefetchQueries,g=void 0!==v&&v,D=n.update,y=n.onQueryUpdated,w=n.fetchPolicy,_=void 0===w?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.fetchPolicy)||"network-only":w,C=n.errorPolicy,U=void 0===C?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.errorPolicy)||"none":C,z=n.keepRootFields,ie=n.context;return tn(this,function(De){switch(De.label){case 0:return R(l,26),R("network-only"===_||"no-cache"===_,27),r=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),i=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),i?[4,this.localState.addExportedVariables(l,f,ie)]:[3,2];case 1:f=De.sent(),De.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[r]={mutation:l,variables:f,loading:!0,error:null}),s=d&&this.markMutationOptimistic(d,{mutationId:r,document:l,variables:f,fetchPolicy:_,errorPolicy:U,context:ie,updateQueries:h,update:D,keepRootFields:z}),this.broadcastQueries(),a=this,[2,new Promise(function(gi,yi){return Yf(a.getObservableFromLink(l,b(b({},ie),{optimisticResponse:s?d:void 0}),f,{},!1),function(Ge){if(Fa(Ge)&&"none"===U)throw new oi({graphQLErrors:Jf(Ge)});o&&(o.loading=!1,o.error=null);var Vn=b({},Ge);return"function"==typeof m&&(m=m(Vn)),"ignore"===U&&Fa(Vn)&&delete Vn.errors,a.markMutationResult({mutationId:r,result:Vn,document:l,variables:f,fetchPolicy:_,errorPolicy:U,context:ie,update:D,updateQueries:h,awaitRefetchQueries:g,refetchQueries:m,removeOptimistic:s?r:void 0,onQueryUpdated:y,keepRootFields:z})}).subscribe({next:function(Ge){a.broadcastQueries(),(!("hasNext"in Ge)||!1===Ge.hasNext)&&gi(Ge)},error:function(Ge){o&&(o.loading=!1,o.error=Ge),s&&a.cache.removeOptimistic(r),a.broadcastQueries(),yi(Ge instanceof oi?Ge:new oi({networkError:Ge}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;void 0===n&&(n=this.cache);var i=t.result,o=[],s="no-cache"===t.fetchPolicy;if(!s&&rd(i,t.errorPolicy)){if(si(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),si(i)&&en(i.incremental)){var a=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),c=void 0;a.result&&(c=ab(a.result,i)),typeof c<"u"&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var u=t.updateQueries;u&&this.queries.forEach(function(f,d){var h=f.observableQuery,p=h&&h.queryName;if(p&&XF.call(u,p)){var m=u[p],v=r.queries.get(d),g=v.document,D=v.variables,y=n.diff({query:g,variables:D,returnPartialData:!0,optimistic:!1}),w=y.result;if(y.complete&&w){var C=m(w,{mutationResult:i,queryName:g&&kf(g)||void 0,queryVariables:D});C&&o.push({result:C,dataId:"ROOT_QUERY",query:g,variables:D})}}})}if(o.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(f){s||o.forEach(function(m){return f.write(m)});var d=t.update,h=!function zP(e){return si(e)||function qP(e){return"hasNext"in e&&"data"in e}(e)}(i)||si(i)&&!i.hasNext;if(d){if(!s){var p=f.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});p.complete&&("incremental"in(i=b(b({},i),{data:p.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}h&&d(f,i,{context:t.context,variables:t.variables})}!s&&!t.keepRootFields&&h&&f.modify({id:"ROOT_MUTATION",fields:function(m,v){return"__typename"===v.fieldName?m:v.DELETE}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(f){return l.push(f)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i="function"==typeof t?t(n.variables,{IGNORE:nw}):t;return i!==nw&&(this.cache.recordOptimisticTransaction(function(o){try{r.markMutationResult(b(b({},n),{result:{data:i}}),o)}catch(s){!1!==globalThis.__DEV__&&R.error(s)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(t,n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:SP(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:ar(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:jf([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:Af(yo(t)),asQuery:b(b({},t),{definitions:t.definitions.map(function(i){return"OperationDefinition"===i.kind&&"query"!==i.operation?b(b({},i),{operation:"query"}):i})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return b(b({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);typeof(t=b(b({},t),{variables:this.getVariables(n,t.variables)})).notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new nd(this),i=new Zf({queryManager:this,queryInfo:r,options:t});return i.lastQuery=n,this.queries.set(i.queryId,r),r.init({document:n,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(t,n){var r=this;return void 0===n&&(n=this.generateQueryId()),R(t.query,28),R("Document"===t.query.kind,29),R(!t.returnPartialData,30),R(!t.pollInterval,31),this.fetchQuery(n,b(b({},t),{query:this.transform(t.query)})).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return void 0===t&&(t={discardWatches:!0}),this.cancelPendingFetches(et(32)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=te.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;void 0===t&&(t="active");var r=new Map,i=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(s){"string"==typeof s?i.set(s,!1):function Zx(e){return ye(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(s)?i.set(n.transform(s),!1):ye(s)&&s.query&&o.add(s)}),this.queries.forEach(function(s,a){var c=s.observableQuery,u=s.document;if(c){if("all"===t)return void r.set(a,c);var l=c.queryName;if("standby"===c.options.fetchPolicy||"active"===t&&!c.hasObservers())return;("active"===t||l&&i.has(l)||u&&i.has(u))&&(r.set(a,c),l&&i.set(l,!0),u&&i.set(u,!0))}}),o.size&&o.forEach(function(s){var a=hf("legacyOneTimeQuery"),c=n.getQuery(a).init({document:s.query,variables:s.variables}),u=new Zf({queryManager:n,queryInfo:c,options:b(b({},s),{fetchPolicy:"network-only"})});R(u.queryId===a),c.setObservableQuery(u),r.set(a,u)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(s,a){s||!1!==globalThis.__DEV__&&R.warn("string"==typeof a?33:34,a)}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;void 0===t&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,o){var s=i.options.fetchPolicy;i.resetLastResults(),(t||"standby"!==s&&"cache-only"!==s)&&r.push(i.refetch()),n.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,i=t.fetchPolicy,o=t.errorPolicy,s=void 0===o?"none":o,a=t.variables,c=t.context,u=void 0===c?{}:c,l=t.extensions,f=void 0===l?{}:l;r=this.transform(r),a=this.getVariables(r,a);var d=function(p){return n.getObservableFromLink(r,u,p,f).map(function(m){"no-cache"!==i&&(rd(m,s)&&n.cache.write({query:r,result:m.data,dataId:"ROOT_SUBSCRIPTION",variables:p}),n.broadcastQueries());var v=Fa(m),g=function jP(e){return!!e.extensions&&Array.isArray(e.extensions[Ff])}(m);if(v||g){var D={};if(v&&(D.graphQLErrors=m.errors),g&&(D.protocolErrors=m.extensions[Ff]),"none"===s||g)throw new oi(D)}return"ignore"===s&&delete m.errors,m})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,a,u).then(d);return new ae(function(p){var m=null;return h.then(function(v){return m=v.subscribe(p)},p.error),function(){return m&&m.unsubscribe()}})}return d(a)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,i,o){var a,s=this;void 0===o&&(o=null!==(a=n?.queryDeduplication)&&void 0!==a?a:this.queryDeduplication);var c,u=this.getDocumentInfo(t),l=u.serverQuery,f=u.clientQuery;if(l){var h=this.inFlightLinkObservables,p=this.link,m={query:l,variables:r,operationName:kf(l)||void 0,context:this.prepareContext(b(b({},n),{forceFetch:!o})),extensions:i};if(n=m.context,o){var v=xa(l),g=On(r),D=h.lookup(v,g);if(!(c=D.observable)){var y=new ci([Of(p,m)]);c=D.observable=y,y.beforeNext(function(){h.remove(v,g)})}}else c=new ci([Of(p,m)])}else c=new ci([ae.of({data:{}})]),n=this.prepareContext(n);return f&&(c=Yf(c,function(w){return s.localState.runResolvers({document:f,remoteResult:w,context:n,variables:r})})),c},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return Yf(this.getObservableFromLink(o,r.context,r.variables),function(s){var a=Jf(s),c=a.length>0;if(i>=t.lastRequestId){if(c&&"none"===r.errorPolicy)throw t.markError(new oi({graphQLErrors:a}));t.markResult(s,o,r,n),t.markReady()}var u={data:s.data,loading:!1,networkStatus:te.ready};return c&&"ignore"!==r.errorPolicy&&(u.errors=a,u.networkStatus=te.error),u},function(s){var a=function VP(e){return e.hasOwnProperty("graphQLErrors")}(s)?s:new oi({networkError:s});throw i>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,n,r,i){var o=this;void 0===r&&(r=te.loading),void 0===i&&(i=n.query);var C,U,s=this.getVariables(i,n.variables),a=this.getQuery(t),c=this.defaultOptions.watchQuery,u=n.fetchPolicy,f=n.errorPolicy,h=n.returnPartialData,m=n.notifyOnNetworkStatusChange,g=n.context,y=Object.assign({},n,{query:i,variables:s,fetchPolicy:void 0===u?c&&c.fetchPolicy||"cache-first":u,errorPolicy:void 0===f?c&&c.errorPolicy||"none":f,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==m&&m,context:void 0===g?{}:g}),w=function(ie){y.variables=ie;var De=o.fetchQueryByPolicy(a,y,r);return"standby"!==y.fetchPolicy&&De.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",n),De},_=function(){return o.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(ie){_(),setTimeout(function(){return C.cancel(ie)})}),this.getDocumentInfo(y.query).hasClientExports)C=new ci(this.localState.addExportedVariables(y.query,y.variables,y.context).then(w).then(function(ie){return ie.sources})),U=!0;else{var z=w(y.variables);U=z.fromLink,C=new ci(z.sources)}return C.promise.then(_,_),{concast:C,fromLink:U}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,o=t.optimistic,s=void 0!==o&&o,a=t.removeOptimistic,c=void 0===a?s?hf("refetchQueries"):void 0:a,u=t.onQueryUpdated,l=new Map;i&&this.getObservableQueries(i).forEach(function(d,h){l.set(h,{oq:d,lastDiff:n.getQuery(h).getDiff()})});var f=new Map;return r&&this.cache.batch({update:r,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(d,h,p){var m=d.watcher instanceof nd&&d.watcher.observableQuery;if(m){if(u){l.delete(m.queryId);var v=u(m,h,p);return!0===v&&(v=m.refetch()),!1!==v&&f.set(m,v),v}null!==u&&l.set(m.queryId,{oq:m,lastDiff:p,diff:h})}}}),l.size&&l.forEach(function(d,h){var g,p=d.oq,m=d.lastDiff,v=d.diff;if(u){if(!v){var D=p.queryInfo;D.reset(),v=D.getDiff()}g=u(p,v,m)}(!u||!0===g)&&(g=p.refetch()),!1!==g&&f.set(p,g),h.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(h)}),c&&this.cache.removeOptimistic(c),f},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,o=n.query,s=n.variables,a=n.fetchPolicy,c=n.refetchWritePolicy,u=n.errorPolicy,l=n.returnPartialData,f=n.context,d=n.notifyOnNetworkStatusChange,h=t.networkStatus;t.init({document:o,variables:s,networkStatus:r});var p=function(){return t.getDiff()},m=function(w,_){void 0===_&&(_=t.networkStatus||te.loading);var C=w.result;!1!==globalThis.__DEV__&&!l&&!le(C,{})&&ew(w.missing);var U=function(z){return ae.of(b({data:z,loading:ho(_),networkStatus:_},w.complete?null:{partial:!0}))};return C&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:C},context:f,variables:s,onlyRunForcedResolvers:!0}).then(function(z){return U(z.data||void 0)}):"none"===u&&_===te.refetch&&Array.isArray(w.missing)?U(void 0):U(C)},v="no-cache"===a?0:r===te.refetch&&"merge"!==c?1:2,g=function(){return i.getResultsFromLink(t,v,{query:o,variables:s,context:f,fetchPolicy:a,errorPolicy:u})},D=d&&"number"==typeof h&&h!==r&&ho(r);switch(a){default:case"cache-first":return(y=p()).complete?{fromLink:!1,sources:[m(y,t.markReady())]}:l||D?{fromLink:!0,sources:[m(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var y;return(y=p()).complete||l||D?{fromLink:!0,sources:[m(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[m(p(),t.markReady())]};case"network-only":return D?{fromLink:!0,sources:[m(p()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return D?{fromLink:!0,sources:[m(t.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new nd(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){void 0===t&&(t={});var n=this.localState.prepareContext(t);return b(b(b({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e}();function rw(e){return e.kind===M.FIELD||e.kind===M.FRAGMENT_SPREAD||e.kind===M.INLINE_FRAGMENT}var id=new zf,ow=new WeakMap;function Io(e){var t=ow.get(e);return t||ow.set(e,t={vars:new Set,dep:qb()}),t}function sw(e){Io(e).vars.forEach(function(t){return t.forgetCache(e)})}function aR(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(c){Io(c).dep.dirty(r),function cR(e){e.broadcastWatches&&e.broadcastWatches()}(c)});var s=Array.from(n);n.clear(),s.forEach(function(c){return c(e)})}}else{var a=id.getValue();a&&(i(a),Io(a).dep(r))}return e};r.onNextChange=function(o){return n.add(o),function(){n.delete(o)}};var i=r.attachCache=function(o){return t.add(o),Io(o).vars.add(r),r};return r.forgetCache=function(o){return t.delete(o)},r}var uR=function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=sb(n.resolvers,r)}):this.resolvers=sb(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return Ut(this,arguments,void 0,function(n){var r=n.document,i=n.remoteResult,o=n.context,s=n.variables,a=n.onlyRunForcedResolvers,c=void 0!==a&&a;return tn(this,function(u){return r?[2,this.resolveDocument(r,i.data,o,s,this.fragmentMatcher,c).then(function(l){return b(b({},i),{data:l.result})})]:[2,i]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return ar(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return bb(t)},e.prototype.prepareContext=function(t){var n=this.cache;return b(b({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return Ut(this,arguments,void 0,function(n,r,i){return void 0===r&&(r={}),void 0===i&&(i={}),tn(this,function(o){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(i),r).then(function(s){return b(b({},r),s.exportedVariables)})]:[2,b({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Dn(t,{Directive:{enter:function(r){if("client"===r.name.value&&r.arguments&&(n=r.arguments.some(function(i){return"always"===i.name.value&&"BooleanValue"===i.value.kind&&!0===i.value.value})))return sr}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:DF(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return Ut(this,arguments,void 0,function(r,i,o,s,a,c){var u,l,f,d,h,p,m,v,g,D;return void 0===o&&(o={}),void 0===s&&(s={}),void 0===a&&(a=function(){return!0}),void 0===c&&(c=!1),tn(this,function(w){return u=vo(r),l=Ta(r),f=Ea(l),d=this.collectSelectionsToResolve(u,f),p=(h=u.operation)?h.charAt(0).toUpperCase()+h.slice(1):"Query",v=(m=this).cache,g=m.client,D={fragmentMap:f,context:b(b({},o),{cache:v,client:g}),variables:s,fragmentMatcher:a,defaultOperationType:p,exportedVariables:{},selectionsToResolve:d,onlyRunForcedResolvers:c},[2,this.resolveSelectionSet(u.selectionSet,!1,i,D).then(function(_){return{result:_,exportedVariables:D.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return Ut(this,void 0,void 0,function(){var o,s,a,c,u,l=this;return tn(this,function(f){return o=i.fragmentMap,s=i.context,a=i.variables,c=[r],u=function(d){return Ut(l,void 0,void 0,function(){var h;return tn(this,function(m){return(n||i.selectionsToResolve.has(d))&&bo(d,a)?xn(d)?[2,this.resolveField(d,n,r,i).then(function(v){var g;typeof v<"u"&&c.push(((g={})[Nn(d)]=v,g))})]:(function fP(e){return"InlineFragment"===e.kind}(d)?h=d:R(h=o[d.name.value],18,d.name.value),h&&h.typeCondition&&i.fragmentMatcher(r,h.typeCondition.name.value,s)?[2,this.resolveSelectionSet(h.selectionSet,n,r,i).then(function(v){c.push(v)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(u)).then(function(){return Oa(c)})]})})},e.prototype.resolveField=function(t,n,r,i){return Ut(this,void 0,void 0,function(){var o,s,a,c,u,l,f,d,h,p=this;return tn(this,function(m){return r?(o=i.variables,s=t.name.value,a=Nn(t),c=s!==a,u=r[a]||r[s],l=Promise.resolve(u),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(f=r.__typename||i.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(h=d[c?s:a])&&(l=Promise.resolve(id.withValue(this.cache,h,[r,Ca(t,o),i.context,{field:t,fragmentMap:i.fragmentMap}])))),[2,l.then(function(v){var g,D;if(void 0===v&&(v=u),t.directives&&t.directives.forEach(function(w){"export"===w.name.value&&w.arguments&&w.arguments.forEach(function(_){"as"===_.name.value&&"StringValue"===_.value.kind&&(i.exportedVariables[_.value.value]=v)})}),!t.selectionSet||null==v)return v;var y=null!==(D=null===(g=t.directives)||void 0===g?void 0:g.some(function(w){return"client"===w.name.value}))&&void 0!==D&&D;return Array.isArray(v)?p.resolveSubSelectedArray(t,n||y,v,i):t.selectionSet?p.resolveSelectionSet(t.selectionSet,n||y,v,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,i){var o=this;return Promise.all(r.map(function(s){return null===s?null:Array.isArray(s)?o.resolveSubSelectedArray(t,n,s,i):t.selectionSet?o.resolveSelectionSet(t.selectionSet,n,s,i):void 0}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(s){return!Array.isArray(s)},i=this.selectionsToResolveCache;return function o(s){if(!i.has(s)){var a=new Set;i.set(s,a),Dn(s,{Directive:function(c,u,l,f,d){"client"===c.name.value&&d.forEach(function(h){r(h)&&rw(h)&&a.add(h)})},FragmentSpread:function(c,u,l,f,d){var h=n[c.name.value];R(h,19,c.name.value);var p=o(h);p.size>0&&(d.forEach(function(m){r(m)&&rw(m)&&a.add(m)}),a.add(c),p.forEach(function(m){a.add(m)}))}})}return i.get(s)}(t)},e}();function od(e,t){return ui(e,t,t.variables&&{variables:ui(b(b({},e&&e.variables),t.variables))})}var aw=!1,sd=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw et(15);var r=t.uri,s=t.cache,a=t.documentTransform,c=t.ssrMode,u=void 0!==c&&c,l=t.ssrForceFetchDelay,f=void 0===l?0:l,d=t.connectToDevTools,h=t.queryDeduplication,p=void 0===h||h,m=t.defaultOptions,v=t.defaultContext,g=t.assumeImmutableResults,D=void 0===g?s.assumeImmutableResults:g,y=t.resolvers,w=t.typeDefs,_=t.fragmentMatcher,C=t.name,U=t.version,z=t.devtools,ie=t.link;ie||(ie=r?new wF({uri:r,credentials:t.credentials,headers:t.headers}):ri.empty()),this.link=ie,this.cache=s,this.disableNetworkFetches=u||f>0,this.queryDeduplication=p,this.defaultOptions=m||Object.create(null),this.typeDefs=w,this.devtoolsConfig=b(b({},z),{enabled:z?.enabled||d}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),f&&setTimeout(function(){return n.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=ff,this.localState=new uR({cache:s,client:this,resolvers:y,fragmentMatcher:_}),this.queryManager=new ZF({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:v,documentTransform:a,queryDeduplication:p,ssrMode:u,clientAwareness:{name:C,version:U},localState:this.localState,assumeImmutableResults:D,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!aw&&!1!==globalThis.__DEV__&&(aw=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,i=r&&r.userAgent,o=void 0;"string"==typeof i&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&!1!==globalThis.__DEV__&&R.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=od(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t=b(b({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=od(this.defaultOptions.query,t)),R("cache-and-network"!==t.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=b(b({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=od(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,n){return void 0===n&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){return this.cache.watchFragment(t)},e.prototype.readFragment=function(t,n){return void 0===n&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return Of(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],i=[];n.forEach(function(s,a){r.push(a),i.push(s)});var o=Promise.all(i);return o.queries=r,o.results=i,o.catch(function(s){!1!==globalThis.__DEV__&&R.debug(17,s)}),o},e.prototype.getObservableQueries=function(t){return void 0===t&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();function fR(e,t){if(!Boolean(e))throw new Error(t??"Unexpected invariant triggered.")}!1!==globalThis.__DEV__&&(sd.prototype.getMemoryInternals=qx);const dR=/\r\n|[\n\r]/g;function ad(e,t){let n=0,r=1;for(const i of e.body.matchAll(dR)){if("number"==typeof i.index||fR(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function hR(e){return cw(e.source,ad(e.source,e.start))}function cw(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=t.line+(e.locationOffset.line-1),c=t.column+(1===t.line?n:0),u=`${e.name}:${s}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){const d=Math.floor(c/80),h=c%80,p=[];for(let m=0;m["|",m]),["|","^".padStart(h)],["|",p[d+1]]])}return u+uw([[s-1+" |",l[i-1]],[`${s} |`,f],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function uw(e){const t=e.filter(([r,i])=>void 0!==i),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join("\n")}class cd extends Error{constructor(t,...n){var r,i,o;const{nodes:s,source:a,positions:c,path:u,originalError:l,extensions:f}=function pR(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(n);super(t),this.name="GraphQLError",this.path=u??void 0,this.originalError=l??void 0,this.nodes=lw(Array.isArray(s)?s:s?[s]:void 0);const d=lw(null===(r=this.nodes)||void 0===r?void 0:r.map(p=>p.loc).filter(p=>null!=p));this.source=a??(null==d||null===(i=d[0])||void 0===i?void 0:i.source),this.positions=c??d?.map(p=>p.start),this.locations=c&&a?c.map(p=>ad(a,p)):d?.map(p=>ad(p.source,p.start));const h=function lR(e){return"object"==typeof e&&null!==e}(l?.extensions)?l?.extensions:void 0;this.extensions=null!==(o=f??h)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,cd):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+="\n\n"+hR(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+="\n\n"+cw(this.source,n);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function lw(e){return void 0===e||0===e.length?void 0:e}function Fe(e,t,n){return new cd(`Syntax Error: ${n}`,{source:e,positions:[t]})}var La=(()=>(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(La||(La={})),La))(),E=(()=>(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(E||(E={})),E))();class mR{constructor(t){const n=new XD(E.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==E.EOF)do{if(t.next)t=t.next;else{const n=yR(this,t.end);t.next=n,n.prev=t,t=n}}while(t.kind===E.COMMENT);return t}}function fi(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ba(e,t){return fw(e.charCodeAt(t))&&dw(e.charCodeAt(t+1))}function fw(e){return e>=55296&&e<=56319}function dw(e){return e>=56320&&e<=57343}function cr(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return E.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return'"'===r?"'\"'":`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ke(e,t,n,r,i){return new XD(t,n,r,e.line,1+n-e.lineStart,i)}function yR(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function SR(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Fe(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function _R(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o0||Ma(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ma(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class ja{constructor(t,n={}){const r=function IR(e){return TR(e,pw)}(t)?t:new pw(t);this._lexer=new mR(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(E.NAME);return this.node(t,{kind:M.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:M.DOCUMENT,definitions:this.many(E.SOF,this.parseDefinition,E.EOF)})}parseDefinition(){if(this.peek(E.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===E.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw Fe(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(E.BRACE_L))return this.node(t,{kind:M.OPERATION_DEFINITION,operation:or.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(E.NAME)&&(r=this.parseName()),this.node(t,{kind:M.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(E.NAME);switch(t.value){case"query":return or.QUERY;case"mutation":return or.MUTATION;case"subscription":return or.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(E.PAREN_L,this.parseVariableDefinition,E.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:M.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(E.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(E.DOLLAR),this.node(t,{kind:M.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:M.SELECTION_SET,selections:this.many(E.BRACE_L,this.parseSelection,E.BRACE_R)})}parseSelection(){return this.peek(E.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(E.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:M.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(E.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){return this.optionalMany(E.PAREN_L,t?this.parseConstArgument:this.parseArgument,E.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(E.COLON),this.node(n,{kind:M.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(E.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(E.NAME)?this.node(t,{kind:M.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:M.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this.node(t,!0===this._options.allowLegacyFragmentVariables?{kind:M.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:M.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case E.BRACKET_L:return this.parseList(t);case E.BRACE_L:return this.parseObject(t);case E.INT:return this.advanceLexer(),this.node(n,{kind:M.INT,value:n.value});case E.FLOAT:return this.advanceLexer(),this.node(n,{kind:M.FLOAT,value:n.value});case E.STRING:case E.BLOCK_STRING:return this.parseStringLiteral();case E.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:M.BOOLEAN,value:!0});case"false":return this.node(n,{kind:M.BOOLEAN,value:!1});case"null":return this.node(n,{kind:M.NULL});default:return this.node(n,{kind:M.ENUM,value:n.value})}case E.DOLLAR:if(t){if(this.expectToken(E.DOLLAR),this._lexer.token.kind===E.NAME)throw Fe(this._lexer.source,n.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(n)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:M.STRING,value:t.value,block:t.kind===E.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:M.LIST,values:this.any(E.BRACKET_L,()=>this.parseValueLiteral(t),E.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:M.OBJECT,fields:this.any(E.BRACE_L,()=>this.parseObjectField(t),E.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(E.COLON),this.node(n,{kind:M.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(E.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(E.AT),this.node(n,{kind:M.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(E.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(E.BRACKET_R),n=this.node(t,{kind:M.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(E.BANG)?this.node(t,{kind:M.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:M.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(E.STRING)||this.peek(E.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(E.BRACE_L,this.parseOperationTypeDefinition,E.BRACE_R);return this.node(t,{kind:M.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(E.COLON);const r=this.parseNamedType();return this.node(t,{kind:M.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:M.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:M.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(E.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseFieldDefinition,E.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(E.COLON);const o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:M.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(E.PAREN_L,this.parseInputValueDef,E.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(E.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(E.EQUALS)&&(o=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:M.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:M.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:M.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(E.EQUALS)?this.delimitedMany(E.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:M.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(E.BRACE_L,this.parseEnumValueDefinition,E.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:M.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Fe(this._lexer.source,this._lexer.token.start,`${Va(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:M.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseInputValueDef,E.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===E.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(E.BRACE_L,this.parseOperationTypeDefinition,E.BRACE_R);if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:M.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(t,{kind:M.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:M.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:M.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:M.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(E.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(La,n.value))return n;throw this.unexpected(t)}node(t,n){return!0!==this._options.noLocation&&(n.loc=new wP(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Fe(this._lexer.source,n.start,`Expected ${mw(t)}, found ${Va(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const n=this._lexer.token;if(n.kind!==E.NAME||n.value!==t)throw Fe(this._lexer.source,n.start,`Expected "${t}", found ${Va(n)}.`);this.advanceLexer()}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===E.NAME&&n.value===t&&(this.advanceLexer(),!0)}unexpected(t){const n=t??this._lexer.token;return Fe(this._lexer.source,n.start,`Unexpected ${Va(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do{r.push(n.call(this))}while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(void 0!==t&&n.kind!==E.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Fe(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Va(e){const t=e.value;return mw(e.kind)+(null!=t?` "${t}"`:"")}function mw(e){return function gR(e){return e===E.BANG||e===E.DOLLAR||e===E.AMP||e===E.PAREN_L||e===E.PAREN_R||e===E.SPREAD||e===E.COLON||e===E.EQUALS||e===E.AT||e===E.BRACKET_L||e===E.BRACKET_R||e===E.BRACE_L||e===E.PIPE||e===E.BRACE_R}(e)?`"${e}"`:e}var Ha=new Map,ld=new Map,gw=!0,Ua=!1;function yw(e){return e.replace(/[\s,]+/g," ").trim()}function NR(e){var t=yw(e);if(!Ha.has(t)){var n=function MR(e,t){return new ja(e,t).parseDocument()}(e,{experimentalFragmentVariables:Ua,allowLegacyFragmentVariables:Ua});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ha.set(t,function OR(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var o=r[i];o&&"object"==typeof o&&t.add(o)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function AR(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if("FragmentDefinition"===r.kind){var i=r.name.value,o=function kR(e){return yw(e.source.body.substring(e.start,e.end))}(r.loc),s=ld.get(i);s&&!s.has(o)?gw&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||ld.set(i,s=new Set),s.add(o),t.has(o)||(t.add(o),n.push(r))}else n.push(r)}),b(b({},e),{definitions:n})}(n)))}return Ha.get(t)}function di(e){for(var t=[],n=1;n(vw.delegate||Date).now(),delegate:void 0};class Ao{constructor(t,n=Ao.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}Ao.now=vw.now;class VR extends Ao{constructor(t,n=Ao.now){super(t,n),this.actions=[],this._active=!1}flush(t){const{actions:n}=this;if(this._active)return void n.push(t);let r;this._active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}}const UR=new class HR extends VR{}(class jR extends BR{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}schedule(t,n=0){return n>0?super.schedule(t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}execute(t,n){return n>0||this.closed?super.execute(t,n):this._execute(t,n)}requestAsyncId(t,n,r=0){return null!=r&&r>0||null==r&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}});function Dw(...e){return function $R(){return eh(1)}()(wi(e,zo(e)))}function bw(e){return new be(t=>(e().then(n=>{t.closed||(t.next(n),t.complete())},n=>{t.closed||t.error(n)}),()=>t.unsubscribe()))}class WR{constructor(t){this.zone=t,this.now=Date.now?Date.now:()=>+new Date}schedule(t,n=0,r){return this.zone.run(()=>UR.schedule(t,n,r))}}function ww(e){return e[Uo]=()=>e,e}function Ew(e,t){return e.pipe(ac(new WR(t)))}function Sw(e,t,n){return e&&typeof e[t]<"u"?e[t]:n}class QR{constructor(t,n,r){this.obsQuery=t;const i=Ew(wi(ww(this.obsQuery)),n);this.valueChanges=r.useInitialLoading?i.pipe(function GR(e){return function(n){return new be(function(i){const o=e.getCurrentResult(),{loading:s,errors:a,error:c,partial:u,data:l}=o,{partialRefetch:f,fetchPolicy:d}=e.options,h=a||c;return f&&u&&(!l||0===Object.keys(l).length)&&"cache-only"!==d&&!s&&!h&&i.next({...o,loading:!0,networkStatus:te.loading}),n.subscribe(i)})}}(this.obsQuery)):i,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(t){return this.obsQuery.refetch(t)}fetchMore(t){return this.obsQuery.fetchMore(t)}subscribeToMore(t){return this.obsQuery.subscribeToMore(t)}updateQuery(t){return this.obsQuery.updateQuery(t)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(t){return this.obsQuery.startPolling(t)}setOptions(t){return this.obsQuery.setOptions(t)}setVariables(t){return this.obsQuery.setVariables(t)}}const KR=new P("APOLLO_FLAGS"),_w=new P("APOLLO_OPTIONS"),YR=new P("APOLLO_NAMED_OPTIONS");class Cw{constructor(t,n,r){this.ngZone=t,this.flags=n,this._client=r,this.useInitialLoading=Sw(n,"useInitialLoading",!1),this.useMutationLoading=Sw(n,"useMutationLoading",!1)}watchQuery(t){return new QR(this.ensureClient().watchQuery({...t}),this.ngZone,{useInitialLoading:this.useInitialLoading,...t})}query(t){return bw(()=>this.ensureClient().query({...t}))}mutate(t){return function zR(e,t){return t?e.pipe(function qR(...e){const t=zo(e);return $n((n,r)=>{(t?Dw(e,n,t):Dw(e,n)).subscribe(r)})}({loading:!0}),nt(n=>({...n,loading:!!n.loading}))):e.pipe(nt(n=>({...n,loading:!1})))}(bw(()=>this.ensureClient().mutate({...t})),t.useMutationLoading??this.useMutationLoading)}subscribe(t,n){const r=wi(ww(this.ensureClient().subscribe({...t})));return n&&!0!==n.useZone?r:Ew(r,this.ngZone)}getClient(){return this.client}setClient(t){this.client=t}get client(){return this._client}set client(t){if(this._client)throw new Error("Client has been already defined");this._client=t}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let Tw=(()=>{class e extends Cw{constructor(n,r,i,o){if(super(n,o),this._ngZone=n,this.map=new Map,r&&this.createDefault(r),i&&"object"==typeof i)for(let s in i)i.hasOwnProperty(s)&&this.create(i[s],s)}create(n,r){fd(r)?this.createDefault(n):this.createNamed(r,n)}default(){return this}use(n){return fd(n)?this.default():this.map.get(n)}createDefault(n){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new sd(n))}createNamed(n,r){if(this.map.has(n))throw new Error(`Client ${n} has been already created`);this.map.set(n,new Cw(this._ngZone,this.flags,new sd(r)))}removeClient(n){fd(n)?this._client=void 0:this.map.delete(n)}}return e.\u0275fac=function(n){return new(n||e)(j(je),j(_w,8),j(YR,8),j(KR,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function fd(e){return!e||"default"===e}const JR=[Tw];let XR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:JR}),e})();const Iw=function ZR(e,...t){return di(e,...t)};var Mw=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Co(Fx,{max:vn["cache.fragmentQueryDocuments"]||1e3,cache:_a})}return e.prototype.batch=function(t){var i,n=this;return this.performTransaction(function(){return i=t.update(n)},"string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0),i},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){return void 0===n&&(n=!!t.optimistic),this.read(b(b({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.watchFragment=function(t){var f,n=this,r=t.fragment,i=t.fragmentName,o=t.from,s=t.optimistic,a=void 0===s||s,c=Ht(t,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(r,i),l=b(b({},c),{returnPartialData:!0,id:"string"==typeof o?o:this.identify(o),query:u,optimistic:a});return new ae(function(d){return n.watch(b(b({},l),{immediate:!0,callback:function(h){if(!f||!Yb(u,{data:f?.result},{data:h.result})){var p={data:h.result,complete:!!h.complete};h.missing&&(p.missing=Oa(h.missing.map(function(m){return m.missing}))),f=h,d.next(p)}}}))})},e.prototype.readFragment=function(t,n){return void 0===n&&(n=!!t.optimistic),this.read(b(b({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,i=Ht(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,o=t.fragmentName,s=Ht(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(i,o),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var i=r.readQuery(t),o=n(i);return null==o?i:(r.writeQuery(b(b({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var i=r.readFragment(t),o=n(i);return null==o?i:(r.writeFragment(b(b({},t),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(Mw.prototype.getMemoryInternals=Wx);var kw=function(e){function t(n,r,i,o){var s,a=e.call(this,n)||this;if(a.message=n,a.path=r,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var c=a.path.length-1;c>=0;--c)a.missing=((s={})[a.path[c]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return Mt(t,e),t}(Error);function dd(e){return!1!==globalThis.__DEV__&&function eL(e){var t=new Set([e]);return t.forEach(function(n){ye(n)&&function tL(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){ye(n[r])&&t.add(n[r])})}),e}(e),e}var Re=Object.prototype.hasOwnProperty;function Oo(e){return null==e}function Aw(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=Oo(r)?Oo(i)?void 0:{_id:i}:{id:r}),Oo(r)&&!Oo(i)&&(r=i),!Oo(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Ow={dataIdFromObject:Aw,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Nw(e){var t=e.canonizeResults;return void 0===t?Ow.canonizeResults:t}var xw=/^[_a-z][_0-9a-z]*/i;function Ln(e){var t=e.match(xw);return t?t[0]:e}function hd(e,t,n){return!!ye(t)&&(ve(t)?t.every(function(r){return hd(e,r,n)}):e.selections.every(function(r){if(xn(r)&&bo(r,n)){var i=Nn(r);return Re.call(t,i)&&(!r.selectionSet||hd(r.selectionSet,t[i],n))}return!0}))}function hi(e){return ye(e)&&!ne(e)&&!ve(e)}function Pw(e,t){var n=Ea(Ta(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var qa=Object.create(null),pd=function(){return qa},Fw=Object.create(null),No=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return dd(ne(i)?r.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return ne(i)?r.has(i.__ref):"object"==typeof i},this.toReference=function(i,o){if("string"==typeof i)return ti(i);if(ne(i))return i;var s=r.policies.identify(i)[0];if(s){var a=ti(s);return o&&r.merge(s,i),a}}}return e.prototype.toObject=function(){return b({},this.data)},e.prototype.has=function(t){return void 0!==this.lookup(t,!0)},e.prototype.get=function(t,n){if(this.group.depend(t,n),Re.call(this.data,t)){var r=this.data[t];if(r&&Re.call(r,n))return r[n]}return"__typename"===n&&Re.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof Bn?this.parent.get(t,n):void 0},e.prototype.lookup=function(t,n){return n&&this.group.depend(t,"__exists"),Re.call(this.data,t)?this.data[t]:this instanceof Bn?this.parent.lookup(t,n):this.policies.rootTypenamesById[t]?Object.create(null):void 0},e.prototype.merge=function(t,n){var i,r=this;ne(t)&&(t=t.__ref),ne(n)&&(n=n.__ref);var o="string"==typeof t?this.lookup(i=t):t,s="string"==typeof n?this.lookup(i=n):n;if(s){R("string"==typeof i,1);var a=new Pn(sL).merge(o,s);if(this.data[i]=a,a!==o&&(delete this.refs[i],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(s).forEach(function(u){if(!o||o[u]!==a[u]){c[u]=1;var l=Ln(u);l!==u&&!r.policies.hasKeyArgs(a.__typename,l)&&(c[l]=1),void 0===a[u]&&!(r instanceof Bn)&&delete a[u]}}),c.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===a.__typename&&delete c.__typename,Object.keys(c).forEach(function(u){return r.group.dirty(i,u)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var o=Object.create(null),s=!1,a=!0,c={DELETE:qa,INVALIDATE:Fw,isReference:ne,toReference:this.toReference,canRead:this.canRead,readField:function(u,l){return r.policies.readField("string"==typeof u?{fieldName:u,from:l||ti(t)}:u,{store:r})}};if(Object.keys(i).forEach(function(u){var l=Ln(u),f=i[u];if(void 0!==f){var d="function"==typeof n?n:n[u]||n[l];if(d){var h=d===pd?qa:d(dd(f),b(b({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(t,u)}));if(h===Fw)r.group.dirty(t,u);else if(h===qa&&(h=void 0),h!==f&&(o[u]=h,s=!0,f=h,!1!==globalThis.__DEV__)){var p=function(_){if(void 0===r.lookup(_.__ref))return!1!==globalThis.__DEV__&&R.warn(2,_),!0};if(ne(h))p(h);else if(Array.isArray(h))for(var m=!1,v=void 0,g=0,D=h;g0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Bn?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(s){Re.call(r,s)&&(Object.keys(t.findChildRefIds(s)).forEach(n.add,n),delete r[s])});var i=Object.keys(r);if(i.length){for(var o=this;o instanceof Bn;)o=o.parent;i.forEach(function(s){return o.delete(s)})}return i},e.prototype.findChildRefIds=function(t){if(!Re.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(o){ne(o)&&(n[o.__ref]=!0),ye(o)&&Object.keys(o).forEach(function(s){var a=o[s];ye(a)&&i.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Rw=function(){function e(t,n){void 0===n&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?qb():null,this.keyMaker=new Fn(ii)},e.prototype.depend=function(t,n){if(this.d){this.d(md(t,n));var r=Ln(n);r!==n&&this.d(md(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(md(t,n),"__exists"===n?"forget":"setDirty")},e}();function md(e,t){return t+"#"+e}function Lw(e,t){xo(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(n){function r(i){var s=i.resultCaching,c=i.seed,u=n.call(this,i.policies,new Rw(void 0===s||s))||this;return u.stump=new oL(u),u.storageTrie=new Fn(ii),c&&u.replace(c),u}return Mt(r,n),r.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t}(No||(No={}));var Bn=function(e){function t(n,r,i,o){var s=e.call(this,r.policies,o)||this;return s.id=n,s.parent=r,s.replay=i,s.group=o,i(s),s}return Mt(t,e),t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var s=r.data[o],a=i.lookup(o);a?s?s!==a&&Object.keys(s).forEach(function(c){le(s[c],a[c])||r.group.dirty(o,c)}):(r.group.dirty(o,"__exists"),Object.keys(a).forEach(function(c){r.group.dirty(o,c)})):r.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return b(b({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Re.call(this.data,n)?b(b({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(No),oL=function(e){function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new Rw(n.group.caching,n.group))||this}return Mt(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t}(Bn);function sL(e,t,n){var r=e[n],i=t[n];return le(r,i)?r:i}function xo(e){return!!(e instanceof No&&e.group.caching)}var Bw=function(){function e(){this.known=new(nb?WeakSet:Set),this.pool=new Fn(ii),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return ye(t)&&this.known.has(t)},e.prototype.pass=function(t){if(ye(t)){var n=function aL(e){return ye(e)?ve(e)?e.slice(0):b({__proto__:Object.getPrototypeOf(e)},e):e}(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(ye(t)){var r=this.passes.get(t);if(r)return r;switch(Object.getPrototypeOf(t)){case Array.prototype:if(this.known.has(t))return t;var o=t.map(this.admit,this);return(s=this.pool.lookupArray(o)).array||(this.known.add(s.array=o),!1!==globalThis.__DEV__&&Object.freeze(o)),s.array;case null:case Object.prototype:if(this.known.has(t))return t;var a=Object.getPrototypeOf(t),c=[a],u=this.sortedKeys(t);c.push(u.json);var s,l=c.length;if(u.sorted.forEach(function(h){c.push(n.admit(t[h]))}),!(s=this.pool.lookupArray(c)).object){var f=s.object=Object.create(a);this.known.add(f),u.sorted.forEach(function(h,p){f[h]=c[l+p]}),!1!==globalThis.__DEV__&&Object.freeze(f)}return s.object}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var i=JSON.stringify(n);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:n,json:i})}return r.keys},e}();function jw(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var cL=function(){function e(t){var n=this;this.knownResults=new(ii?WeakMap:Map),this.config=ui(t,{addTypename:!1!==t.addTypename,canonizeResults:Nw(t)}),this.canon=t.canon||new Bw,this.executeSelectionSet=Co(function(r){var i,o=r.context.canonizeResults,s=jw(r);s[3]=!o;var a=(i=n.executeSelectionSet).peek.apply(i,s);return a?o?b(b({},a),{result:n.canon.admit(a.result)}):a:(Lw(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||vn["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:jw,makeCacheKey:function(r,i,o,s){if(xo(o.store))return o.store.makeCacheKey(r,ne(i)?i.__ref:i,o.varString,s)}}),this.executeSubSelectedArray=Co(function(r){return Lw(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||vn["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var i=r.field,o=r.array,s=r.context;if(xo(s.store))return s.store.makeCacheKey(i,o,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Bw},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,o=void 0===i?"ROOT_QUERY":i,s=t.variables,a=t.returnPartialData,c=void 0===a||a,u=t.canonizeResults,l=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;s=b(b({},Af(KD(r))),s);var p,d=ti(o),h=this.executeSelectionSet({selectionSet:vo(r).selectionSet,objectOrReference:d,enclosingRef:d,context:b({store:n,query:r,policies:f,variables:s,varString:On(s),canonizeResults:l},Pw(r,this.config.fragments))});if(h.missing&&(p=[new kw(uL(h.missing),h.missing,r,s)],!c))throw p[0];return{result:h.result,complete:!p,missing:p}},e.prototype.isFresh=function(t,n,r,i){if(xo(i.store)&&this.knownResults.get(t)===r){var o=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,o=t.enclosingRef,s=t.context;if(ne(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var d,a=s.variables,c=s.policies,l=s.store.getFieldValue(i,"__typename"),f=[],h=new Pn;function p(y,w){var _;return y.missing&&(d=h.merge(d,((_={})[w]=y.missing,_))),y.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&f.push({__typename:l});var m=new Set(r.selections);m.forEach(function(y){var w,_;if(bo(y,a))if(xn(y)){var C=c.readField({fieldName:y.name.value,field:y,variables:s.variables,from:i},s),U=Nn(y);void 0===C?Vf.added(y)||(d=h.merge(d,((w={})[U]="Can't find field '".concat(y.name.value,"' on ").concat(ne(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),w))):ve(C)?C.length>0&&(C=p(n.executeSubSelectedArray({field:y,array:C,enclosingRef:o,context:s}),U)):y.selectionSet?null!=C&&(C=p(n.executeSelectionSet({selectionSet:y.selectionSet,objectOrReference:C,enclosingRef:ne(C)?C:o,context:s}),U)):s.canonizeResults&&(C=n.canon.pass(C)),void 0!==C&&f.push(((_={})[U]=C,_))}else{var z=Sa(y,s.lookupFragment);if(!z&&y.kind===M.FRAGMENT_SPREAD)throw et(9,y.name.value);z&&c.fragmentMatches(z,l)&&z.selectionSet.selections.forEach(m.add,m)}});var g={result:Oa(f),missing:d},D=s.canonizeResults?this.canon.admit(g):dd(g);return D.result&&this.knownResults.set(D.result,r),D},e.prototype.execSubSelectedArrayImpl=function(t){var a,n=this,r=t.field,i=t.array,o=t.enclosingRef,s=t.context,c=new Pn;function u(l,f){var d;return l.missing&&(a=c.merge(a,((d={})[f]=l.missing,d))),l.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(l,f){return null===l?null:ve(l)?u(n.executeSubSelectedArray({field:r,array:l,enclosingRef:o,context:s}),f):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:l,enclosingRef:ne(l)?l:o,context:s}),f):(!1!==globalThis.__DEV__&&function lL(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){ye(i)&&(R(!ne(i),10,function rL(e,t){return ne(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,i),t.name.value),Object.values(i).forEach(r.add,r))})}}(s.store,r,l),l)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:a}},e}();function uL(e){try{JSON.stringify(e,function(t,n){if("string"==typeof n)throw n;return n})}catch(t){return t}}var Vw=Object.create(null);function gd(e){var t=JSON.stringify(e);return Vw[t]||(Vw[t]=Object.create(null))}function Hw(e){var t=gd(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(s,a){return r.readField(a,s)},o=r.keyObject=yd(e,function(s){var a=pi(r.storeObject,s,i);return void 0===a&&n!==r.storeObject&&Re.call(n,s[0])&&(a=pi(n,s,qw)),R(void 0!==a,4,s.join("."),n),a});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function Uw(e){var t=gd(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,o=r.variables,s=r.fieldName,a=yd(e,function(u){var l=u[0],f=l.charAt(0);if("@"!==f)if("$"!==f){if(n)return pi(n,u)}else{var m=l.slice(1);if(o&&Re.call(o,m)){var v=u.slice(0);return v[0]=m,pi(o,v)}}else if(i&&en(i.directives)){var d=l.slice(1),h=i.directives.find(function(g){return g.name.value===d}),p=h&&Ca(h,o);return p&&pi(p,u.slice(1))}}),c=JSON.stringify(a);return(n||"{}"!==c)&&(s+=":"+c),s})}function yd(e,t){var n=new Pn;return $w(e).reduce(function(r,i){var o,s=t(i);if(void 0!==s){for(var a=i.length-1;a>=0;--a)(o={})[i[a]]=s,s=o;r=n.merge(r,s)}return r},Object.create(null))}function $w(e){var t=gd(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,o){ve(i)?($w(i).forEach(function(s){return n.push(r.concat(s))}),r.length=0):(r.push(i),ve(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function qw(e,t){return e[t]}function pi(e,t,n){return n=n||qw,zw(t.reduce(function r(i,o){return ve(i)?i.map(function(s){return r(s,o)}):i&&n(i,o)},e))}function zw(e){return ye(e)?ve(e)?e.map(zw):yd(Object.keys(e).sort(),function(t){return pi(e,t)}):e}function vd(e){return void 0!==e.args?e.args:e.field?Ca(e.field,e.variables):null}var fL=function(){},Ww=function(e,t){return t.fieldName},Gw=function(e,t,n){return(0,n.mergeObjects)(e,t)},Qw=function(e,t){return t},dL=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=b({dataIdFromObject:Aw},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,i=this,o=n&&(n.typename||(null===(r=n.storeObject)||void 0===r?void 0:r.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var c,s=n&&n.storeObject||t,a=b(b({},n),{typename:o,storeObject:s,readField:n&&n.readField||function(){var d=Dd(arguments,s);return i.readField(d,{store:i.cache.data,variables:d.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l(b(b({},t),s),a);if(!ve(f)){c=f;break}l=Hw(f)}return c=c?String(c):void 0,a.keyObject?[c,a.keyObject]:[c]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var i=t[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,c=Ht(i,["queryType","mutationType","subscriptionType"]);o&&n.setRootTypename("Query",r),s&&n.setRootTypename("Mutation",r),a&&n.setRootTypename("Subscription",r),Re.call(n.toBeAdded,r)?n.toBeAdded[r].push(c):n.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(t,n){var r=this,i=this.getTypePolicy(t),o=n.keyFields,s=n.fields;function a(c,u){c.merge="function"==typeof u?u:!0===u?Gw:!1===u?Qw:c.merge}a(i,n.merge),i.keyFn=!1===o?fL:ve(o)?Hw(o):"function"==typeof o?o:i.keyFn,s&&Object.keys(s).forEach(function(c){var u=r.getFieldPolicy(t,c,!0),l=s[c];if("function"==typeof l)u.read=l;else{var f=l.keyArgs,d=l.read,h=l.merge;u.keyFn=!1===f?Ww:ve(f)?Uw(f):"function"==typeof f?f:u.keyFn,"function"==typeof d&&(u.read=d),a(u,h)}u.read&&u.merge&&(u.keyFn=u.keyFn||Ww)})},e.prototype.setRootTypename=function(t,n){void 0===n&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(R(!i||i===t,5,t),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(i){n.getSupertypeSet(i,!0).add(r);var o=i.match(xw);(!o||o[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Re.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(s,a){if(s.test(t)){var c=n.supertypeMap.get(a);c&&c.forEach(function(u){return i.add(u)})}})),i&&i.size&&i.forEach(function(s){var a=n.getTypePolicy(s),c=a.fields,u=Ht(a,["fields"]);Object.assign(r,u),Object.assign(r.fields,c)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(s){n.updateTypePolicy(t,s)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var i=this.getTypePolicy(t).fields;return i[n]||r&&(i[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,i){var o=this;if(!t.typeCondition)return!0;if(!n)return!1;var s=t.typeCondition.name.value;if(n===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(n,!0),c=[a],u=function(p){var m=o.getSupertypeSet(p,!1);m&&m.size&&c.indexOf(m)<0&&c.push(m)},l=!(!r||!this.fuzzySubtypes.size),f=!1,d=0;d1?e[1]:t}:(s=b({},r),Re.call(s,"from")||(s.from=t)),!1!==globalThis.__DEV__&&void 0===s.from&&!1!==globalThis.__DEV__&&R.warn(7,PD(Array.from(e))),void 0===s.variables&&(s.variables=n),s}function Yw(e){return function(n,r){if(ve(n)||ve(r))throw et(8);if(ye(n)&&ye(r)){var i=e.getFieldValue(n,"__typename"),o=e.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(ne(n)&&hi(r))return e.merge(n.__ref,r),n;if(hi(n)&&ne(r))return e.merge(n,r.__ref),r;if(hi(n)&&hi(r))return b(b({},n),r)}return r}}function bd(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:b(b({},e),{clientOnly:t,deferred:n})),i}var hL=function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,i=n.query,o=n.result,s=n.dataId,a=n.variables,c=n.overwrite,u=yo(i),l=function iL(){return new Pn}();a=b(b({},Af(u)),a);var f=b(b({store:t,written:Object.create(null),merge:function(h,p){return l.merge(h,p)},variables:a,varString:On(a)},Pw(i,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:s,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:f});if(!ne(d))throw et(11,o);return f.incomingById.forEach(function(h,p){var m=h.storeObject,v=h.mergeTree,g=h.fieldNodeSet,D=ti(p);if(v&&v.map.size){var y=r.applyMerges(v,D,m,f);if(ne(y))return;m=y}if(!1!==globalThis.__DEV__&&!f.overwrite){var w=Object.create(null);g.forEach(function(U){U.selectionSet&&(w[U.name.value]=!0)}),Object.keys(m).forEach(function(U){(function(U){return!0===w[Ln(U)]})(U)&&!function(U){var z=v&&v.map.get(U);return Boolean(z&&z.info&&z.info.merge)}(U)&&function pL(e,t,n,r){var i=function(f){var d=r.getFieldValue(f,n);return"object"==typeof d&&d},o=i(e);if(o){var s=i(t);if(s&&!ne(o)&&!le(o,s)&&!Object.keys(o).every(function(f){return void 0!==r.getFieldValue(s,f)})){var a=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=Ln(n),u="".concat(a,".").concat(c);if(!eE.has(u)){eE.add(u);var l=[];!ve(o)&&!ve(s)&&[o,s].forEach(function(f){var d=r.getFieldValue(f,"__typename");"string"==typeof d&&!l.includes(d)&&l.push(d)}),!1!==globalThis.__DEV__&&R.warn(14,c,a,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",u,b({},o),b({},s))}}}}(D,m,U,f.store)})}t.merge(p,m)}),t.retain(d.__ref),d},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,o=t.selectionSet,s=t.context,a=t.mergeTree,c=this.cache.policies,u=Object.create(null),l=r&&c.rootTypenamesById[r]||Mf(i,o,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof l&&(u.__typename=l);var f=function(){var y=Dd(arguments,u,s.variables);if(ne(y.from)){var w=s.incomingById.get(y.from.__ref);if(w){var _=c.readField(b(b({},y),{from:w.storeObject}),s);if(void 0!==_)return _}}return c.readField(y,s)},d=new Set;this.flattenFields(o,i,s,l).forEach(function(y,w){var _,C=Nn(w),U=i[C];if(d.add(w),void 0!==U){var z=c.getStoreFieldName({typename:l,fieldName:w.name.value,field:w,variables:y.variables}),ie=Xw(a,z),De=n.processFieldValue(U,w,w.selectionSet?bd(y,!1,!1):y,ie),gi=void 0;w.selectionSet&&(ne(De)||hi(De))&&(gi=f("__typename",De));var yi=c.getMergeFunction(l,w.name.value,gi);yi?ie.info={field:w,typename:l,merge:yi}:Zw(a,z),u=y.merge(u,((_={})[z]=De,_))}else!1!==globalThis.__DEV__&&!y.clientOnly&&!y.deferred&&!Vf.added(w)&&!c.getReadFunction(l,w.name.value)&&!1!==globalThis.__DEV__&&R.error(12,Nn(w),i)});try{var h=c.identify(i,{typename:l,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:u,readField:f}),m=h[1];r=r||h[0],m&&(u=s.merge(u,m))}catch(y){if(!r)throw y}if("string"==typeof r){var v=ti(r),g=s.written[r]||(s.written[r]=[]);if(g.indexOf(o)>=0||(g.push(o),this.reader&&this.reader.isFresh(i,v,o,s)))return v;var D=s.incomingById.get(r);return D?(D.storeObject=s.merge(D.storeObject,u),D.mergeTree=wd(D.mergeTree,a),d.forEach(function(y){return D.fieldNodeSet.add(y)})):s.incomingById.set(r,{storeObject:u,mergeTree:za(a)?void 0:a,fieldNodeSet:d}),v}return u},e.prototype.processFieldValue=function(t,n,r,i){var o=this;return n.selectionSet&&null!==t?ve(t)?t.map(function(s,a){var c=o.processFieldValue(s,n,r,Xw(i,a));return Zw(i,a),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i}):!1!==globalThis.__DEV__?Kb(t):t},e.prototype.flattenFields=function(t,n,r,i){void 0===i&&(i=Mf(n,t,r.fragmentMap));var o=new Map,s=this.cache.policies,a=new Fn(!1);return function c(u,l){var f=a.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach(function(d){if(bo(d,r.variables)){var h=l.clientOnly,p=l.deferred;if(!(h&&p)&&en(d.directives)&&d.directives.forEach(function(g){var D=g.name.value;if("client"===D&&(h=!0),"defer"===D){var y=Ca(g,r.variables);(!y||!1!==y.if)&&(p=!0)}}),xn(d)){var m=o.get(d);m&&(h=h&&m.clientOnly,p=p&&m.deferred),o.set(d,bd(r,h,p))}else{var v=Sa(d,r.lookupFragment);if(!v&&d.kind===M.FRAGMENT_SPREAD)throw et(13,d.name.value);v&&s.fragmentMatches(v,i,n,r.variables)&&c(v.selectionSet,bd(r,h,p))}}}))}(t,r),o},e.prototype.applyMerges=function(t,n,r,i,o){var s,a=this;if(t.map.size&&!ne(r)){var c=ve(r)||!ne(n)&&!hi(n)?void 0:n,u=r;c&&!o&&(o=[ne(c)?c.__ref:c]);var l,f=function(d,h){return ve(d)?"number"==typeof h?d[h]:void 0:i.store.getFieldValue(d,String(h))};t.map.forEach(function(d,h){var p=f(c,h),m=f(u,h);if(void 0!==m){o&&o.push(h);var v=a.applyMerges(d,p,m,i,o);v!==m&&(l=l||new Map).set(h,v),o&&R(o.pop()===h)}}),l&&(r=ve(u)?u.slice(0):b({},u),l.forEach(function(d,h){r[h]=d}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,o&&(s=i.store).getStorage.apply(s,o)):r},e}(),Jw=[];function Xw(e,t){var n=e.map;return n.has(t)||n.set(t,Jw.pop()||{map:new Map}),n.get(t)}function wd(e,t){if(e===t||!t||za(t))return e;if(!e||za(e))return t;var n=e.info&&t.info?b(b({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var s=new Set(t.map.keys());e.map.forEach(function(a,c){o.map.set(c,wd(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){o.map.set(a,wd(t.map.get(a),e.map.get(a)))})}return o}function za(e){return!e||!(e.info||e.map.size)}function Zw(e,t){var n=e.map,r=n.get(t);r&&za(r)&&(Jw.push(r),n.delete(t))}var eE=new Set,tE=function(e){function t(n){void 0===n&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new Wb(Vf),r.assumeImmutableResults=!0,r.makeVar=aR,r.txCount=0,r.config=function nL(e){return ui(Ow,e)}(n),r.addTypename=!!r.config.addTypename,r.policies=new dL({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return Mt(t,e),t.prototype.init=function(){var n=this.data=new No.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new hL(this,this.storeReader=new cL({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Nw(this.config),canon:n?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=Co(function(s,a){return r.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize||vn["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(s){var a=s.optimistic?r.optimisticData:r.data;if(xo(a))return a.makeCacheKey(s.query,s.callback,On({optimistic:s.optimistic,id:s.id,variables:s.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(s){return s.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return void 0===n&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,i=void 0!==r&&r;try{return this.storeReader.diffQueryAgainstStore(b(b({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof kw)return null;throw o}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&!1!==n.broadcast&&this.broadcastWatches()}},t.prototype.modify=function(n){if(Re.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&!1!==n.broadcast&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(b(b({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||function sR(e){Io(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&sw(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;On.reset(),xa.reset(),this.addTypenameTransform.resetCache(),null===(r=this.config.fragments)||void 0===r||r.resetCaches();var i=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),i},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(ne(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){!1!==globalThis.__DEV__&&R.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Re.call(n,"id"))return!1;n=b(b({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&!1!==n.broadcast&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),On.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),sw(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var u,r=this,i=n.update,o=n.optimistic,s=void 0===o||o,a=n.removeOptimistic,c=n.onWatchUpdated,l=function(d){var p=r.data,m=r.optimisticData;++r.txCount,d&&(r.data=r.optimisticData=d);try{return u=i(r)}finally{--r.txCount,r.data=p,r.optimisticData=m}},f=new Set;return c&&!this.txCount&&this.broadcastWatches(b(b({},n),{onWatchUpdated:function(d){return f.add(d),!1}})),"string"==typeof s?this.optimisticData=this.optimisticData.addLayer(s,l):!1===s?l(this.data):l(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),c&&f.size?(this.broadcastWatches(b(b({},n),{onWatchUpdated:function(d,h){var p=c.call(this,d,h);return!1!==p&&f.delete(d),p}})),f.size&&f.forEach(function(d){return r.maybeBroadcastWatch.dirty(d)})):this.broadcastWatches(n),u},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||null!==r})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(i){return r.maybeBroadcastWatch(i,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var i=n.lastDiff,o=this.diff(n);r&&(n.optimistic&&"string"==typeof r.optimistic&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&!1===r.onWatchUpdated.call(this,n,o,i))||(!i||!le(i.result,o.result))&&n.callback(n.lastDiff=o,i)},t}(Mw);!1!==globalThis.__DEV__&&(tE.prototype.getMemoryInternals=zx);class Wa{}class Ed{}class Vt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let i;if(i="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(o=>o.toString()),i.length>0){const o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Vt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Vt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Vt?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const i=("a"===t.op?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":const o=t.value;if(o){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class vL{encodeKey(t){return nE(t)}encodeValue(t){return nE(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const bL=/%(\d[a-f0-9])/gi,wL={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function nE(e){return encodeURIComponent(e).replace(bL,(t,n)=>wL[n]??t)}function Ga(e){return`${e}`}class jn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new vL,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function DL(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],i=Array.isArray(r)?r.map(Ga):[Ga(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new jn({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Ga(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const i=r.indexOf(Ga(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class EL{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function rE(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function iE(e){return typeof Blob<"u"&&e instanceof Blob}function oE(e){return typeof FormData<"u"&&e instanceof FormData}class Po{constructor(t,n,r,i){let o;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function SL(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Vt),this.context||(this.context=new EL),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(d,t.setHeaders[d]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((f,d)=>f.set(d,t.setParams[d]),u)),new Po(n,r,o,{params:u,headers:c,context:l,reportProgress:a,responseType:i,withCredentials:s})}}var Ae=(()=>((Ae=Ae||{})[Ae.Sent=0]="Sent",Ae[Ae.UploadProgress=1]="UploadProgress",Ae[Ae.ResponseHeader=2]="ResponseHeader",Ae[Ae.DownloadProgress=3]="DownloadProgress",Ae[Ae.Response=4]="Response",Ae[Ae.User=5]="User",Ae))();class Sd{constructor(t,n=200,r="OK"){this.headers=t.headers||new Vt,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class _d extends Sd{constructor(t={}){super(t),this.type=Ae.ResponseHeader}clone(t={}){return new _d({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Qa extends Sd{constructor(t={}){super(t),this.type=Ae.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Qa({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class sE extends Sd{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Cd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let aE=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Po)o=n;else{let c,u;c=i.headers instanceof Vt?i.headers:new Vt(i.headers),i.params&&(u=i.params instanceof jn?i.params:new jn({fromObject:i.params})),o=new Po(n,r,void 0!==i.body?i.body:null,{headers:c,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=function mL(...e){return wi(e,zo(e))}(o).pipe(function gL(e,t){return fe(t)?qo(e,t,1):qo(e,1)}(c=>this.handler.handle(c)));if(n instanceof Po||"events"===i.observe)return s;const a=s.pipe(function yL(e,t){return $n((n,r)=>{let i=0;n.subscribe(bi(r,o=>e.call(t,o,i++)&&r.next(o)))})}(c=>c instanceof Qa));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(nt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(nt(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new jn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Cd(i,r))}post(n,r,i={}){return this.request("POST",n,Cd(i,r))}put(n,r,i={}){return this.request("PUT",n,Cd(i,r))}}return e.\u0275fac=function(n){return new(n||e)(j(Wa))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function cE(e,t){return t(e)}function CL(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}const IL=new P("HTTP_INTERCEPTORS"),Fo=new P("HTTP_INTERCEPTOR_FNS");function ML(){let e=null;return(t,n)=>(null===e&&(e=(_i(IL,{optional:!0})??[]).reduceRight(CL,cE)),e(t,n))}let uE=(()=>{class e extends Wa{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set(this.injector.get(Fo)));this.chain=r.reduceRight((i,o)=>function TL(e,t,n){return(r,i)=>n.runInContext(()=>t(r,o=>e(o,i)))}(i,o,this.injector),cE)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(j(Ed),j(Jn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const NL=/^\)\]\}',?\n/;let fE=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new be(r=>{const i=this.xhrFactory.build();if(i.open(n.method,n.urlWithParams),n.withCredentials&&(i.withCredentials=!0),n.headers.forEach((h,p)=>i.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&i.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();i.responseType="json"!==h?h:"text"}const o=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=i.statusText||"OK",p=new Vt(i.getAllResponseHeaders()),m=function xL(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||n.url;return s=new _d({headers:p,status:i.status,statusText:h,url:m}),s},c=()=>{let{headers:h,status:p,statusText:m,url:v}=a(),g=null;204!==p&&(g=typeof i.response>"u"?i.responseText:i.response),0===p&&(p=g?200:0);let D=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof g){const y=g;g=g.replace(NL,"");try{g=""!==g?JSON.parse(g):null}catch(w){g=y,D&&(D=!1,g={error:w,text:g})}}D?(r.next(new Qa({body:g,headers:h,status:p,statusText:m,url:v||void 0})),r.complete()):r.error(new sE({error:g,headers:h,status:p,statusText:m,url:v||void 0}))},u=h=>{const{url:p}=a(),m=new sE({error:h,status:i.status||0,statusText:i.statusText||"Unknown Error",url:p||void 0});r.error(m)};let l=!1;const f=h=>{l||(r.next(a()),l=!0);let p={type:Ae.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&i.responseText&&(p.partialText=i.responseText),r.next(p)},d=h=>{let p={type:Ae.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return i.addEventListener("load",c),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),n.reportProgress&&(i.addEventListener("progress",f),null!==o&&i.upload&&i.upload.addEventListener("progress",d)),i.send(o),r.next({type:Ae.Sent}),()=>{i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",c),i.removeEventListener("timeout",u),n.reportProgress&&(i.removeEventListener("progress",f),null!==o&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(j(aD))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const Td=new P("XSRF_ENABLED"),dE=new P("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),hE=new P("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class pE{}let RL=(()=>{class e{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Jv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(j(Zt),j(Sl),j(dE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function LL(e,t){const n=e.url.toLowerCase();if(!_i(Td)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=_i(pE).getToken(),i=_i(hE);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var _e=(()=>((_e=_e||{})[_e.Interceptors=0]="Interceptors",_e[_e.LegacyInterceptors=1]="LegacyInterceptors",_e[_e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",_e[_e.NoXsrfProtection=3]="NoXsrfProtection",_e[_e.JsonpSupport=4]="JsonpSupport",_e[_e.RequestsMadeViaParent=5]="RequestsMadeViaParent",_e))();function mi(e,t){return{\u0275kind:e,\u0275providers:t}}function BL(...e){const t=[aE,fE,uE,{provide:Wa,useExisting:uE},{provide:Ed,useExisting:fE},{provide:Fo,useValue:LL,multi:!0},{provide:Td,useValue:!0},{provide:pE,useClass:RL}];for(const n of e)t.push(...n.\u0275providers);return function iC(e){return{\u0275providers:e}}(t)}const mE=new P("LEGACY_INTERCEPTOR_FN");let VL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:[BL(mi(_e.LegacyInterceptors,[{provide:mE,useFactory:ML},{provide:Fo,useExisting:mE,multi:!0}]))]}),e})();class HL extends ri{constructor(t,n){super(),this.httpClient=t,this.options=n,this.print=db,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new ae(i=>{const o=r.getContext(),s=(D,y)=>function ur(...e){const t=e.find(n=>typeof n<"u");return typeof t>"u"?e[e.length-1]:t}(o[D],this.options[D],y);let a=s("method","POST");const c=s("includeQuery",!0),u=s("includeExtensions",!1),l=s("uri","graphql"),f=s("withCredentials"),d=s("useMultipart"),h=!0===this.options.useGETForQueries,p=r.query.definitions.some(D=>"OperationDefinition"===D.kind&&"query"===D.operation);h&&p&&(a="GET");const m={method:a,url:"function"==typeof l?l(r):l,body:{operationName:r.operationName,variables:r.variables},options:{withCredentials:f,useMultipart:d,headers:this.options.headers}};u&&(m.body.extensions=r.extensions),c&&(m.body.query=this.print(r.query));const v=function vE(e){let t=e.headers&&e.headers instanceof Vt?e.headers:new Vt(e.headers);if(e.clientAwareness){const{name:n,version:r}=e.clientAwareness;n&&!t.has("apollographql-client-name")&&(t=t.set("apollographql-client-name",n)),r&&!t.has("apollographql-client-version")&&(t=t.set("apollographql-client-version",r))}return t}(o);m.options.headers=((e,t)=>e&&t?t.keys().reduce((r,i)=>r.set(i,t.getAll(i)),e):t||e)(m.options.headers,v);const g=((e,t,n)=>{const r=-1!==["POST","PUT","PATCH"].indexOf(e.method.toUpperCase()),o=e.body.length;let a,s=e.options&&e.options.useMultipart;if(s){if(o)return new be(u=>u.error(new Error("File upload is not available when combined with Batching")));if(!r)return new be(u=>u.error(new Error("File upload is not available when GET is used")));if(!n)return new be(u=>u.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));a=n(e.body),s=!!a.files.size}let c={};if(o){if(!r)return new be(u=>u.error(new Error("Batching is not available for GET requests")));c={body:e.body}}else c=r?{body:s?a.clone:e.body}:{params:Object.keys(e.body).reduce((f,d)=>{const h=e.body[d];return f[d]=-1!==["variables","extensions"].indexOf(d.toLowerCase())?JSON.stringify(h):h,f},{})};if(s&&r){const u=new FormData;u.append("operations",JSON.stringify(c.body));const l={},f=a.files;let d=0;f.forEach(h=>{l[++d]=h}),u.append("map",JSON.stringify(l)),d=0,f.forEach((h,p)=>{u.append(++d+"",p,p.name)}),c.body=u}return t.request(e.method,e.url,{observe:"response",responseType:"json",reportProgress:!1,...c,...e.options})})(m,this.httpClient,this.options.extractFiles).subscribe({next:D=>{r.setContext({response:D}),i.next(D.body)},error:D=>i.error(D),complete:()=>i.complete()});return()=>{g.closed||g.unsubscribe()}})}request(t){return this.requester(t)}}let UL=(()=>{class e{constructor(n){this.httpClient=n}create(n){return new HL(this.httpClient,n)}}return e.\u0275fac=function(n){return new(n||e)(j(aE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$L=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:[{provide:_w,useFactory:t=>{const n=new tE;return{link:t.create({uri:"https://graphqlpokemon.favware.tech/v7"}),cache:n,defaultOptions:{query:{fetchPolicy:"network-only",errorPolicy:"all"}}}},deps:[UL]}],imports:[XR]}),e})();class Ro extends $o{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}let yt=(()=>{class e{constructor(){this.raidTierSource=new Ro(""),this.pokemonListSource=new Ro(""),this.teraTypeSource=new Ro(""),this.moveListSource=new Ro(""),this.loadingSource=new Ro(!1),this.raidTier=this.raidTierSource.asObservable(),this.pokemonList=this.pokemonListSource.asObservable(),this.teraType=this.teraTypeSource.asObservable(),this.moveList=this.moveListSource.asObservable(),this.loading=this.loadingSource.asObservable()}changeRaidTier(n){this.raidTierSource.next(n)}changePokemon(n){this.pokemonListSource.next(n)}changeTeraType(n){this.teraTypeSource.next(n)}changeMoveList(n){this.moveListSource.next(n)}changeLoading(n){this.loadingSource.next(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qL=Iw` +"use strict";(self.webpackChunktera_raid_info=self.webpackChunktera_raid_info||[]).push([[179],{222:()=>{function fe(e){return"function"==typeof e}function Lo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Bo=Lo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function dr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class It{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const o of n)o.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(fe(r))try{r()}catch(o){t=o instanceof Bo?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Pd(o)}catch(s){t=t??[],s instanceof Bo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Bo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Pd(t);else{if(t instanceof It){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&dr(n,t)}remove(t){const{_finalizers:n}=this;n&&dr(n,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const e=new It;return e.closed=!0,e})();const Nd=It.EMPTY;function xd(e){return e instanceof It||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}function Pd(e){fe(e)?e():e.unsubscribe()}const Hn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},jo={setTimeout(e,t,...n){const{delegate:r}=jo;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=jo;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Fd(e){jo.setTimeout(()=>{const{onUnhandledError:t}=Hn;if(!t)throw e;t(e)})}function Rd(){}const _E=Za("C",void 0,void 0);function Za(e,t,n){return{kind:e,value:t,error:n}}let Un=null;function Vo(e){if(Hn.useDeprecatedSynchronousErrorHandling){const t=!Un;if(t&&(Un={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Un;if(Un=null,n)throw r}}else e()}class ec extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,xd(t)&&t.add(this)):this.destination=OE}static create(t,n,r){return new Di(t,n,r)}next(t){this.isStopped?nc(function TE(e){return Za("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?nc(function CE(e){return Za("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?nc(_E,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ME=Function.prototype.bind;function tc(e,t){return ME.call(e,t)}class kE{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ho(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ho(r)}else Ho(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ho(n)}}}class Di extends ec{constructor(t,n,r){let i;if(super(),fe(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Hn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&tc(t.next,o),error:t.error&&tc(t.error,o),complete:t.complete&&tc(t.complete,o)}):i=t}this.destination=new kE(i)}}function Ho(e){Hn.useDeprecatedSynchronousErrorHandling?function IE(e){Hn.useDeprecatedSynchronousErrorHandling&&Un&&(Un.errorThrown=!0,Un.error=e)}(e):Fd(e)}function nc(e,t){const{onStoppedNotification:n}=Hn;n&&jo.setTimeout(()=>n(e,t))}const OE={closed:!0,next:Rd,error:function AE(e){throw e},complete:Rd},Uo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ld(e){return e}let be=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){const o=function xE(e){return e&&e instanceof ec||function NE(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}(e)&&xd(e)}(n)?n:new Di(n,r,i);return Vo(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=jd(r))((i,o)=>{const s=new Di({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Uo](){return this}pipe(...n){return function Bd(e){return 0===e.length?Ld:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=jd(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function jd(e){var t;return null!==(t=e??Hn.Promise)&&void 0!==t?t:Promise}const PE=Lo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let $o=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Vd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new PE}next(n){Vo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Vo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Vo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:o}=this;return r||i?Nd:(this.currentObservers=null,o.push(n),new It(()=>{this.currentObservers=null,dr(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new Vd(t,n),e})();class Vd extends $o{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Nd}}function $n(e){return t=>{if(function FE(e){return fe(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function bi(e,t,n,r,i){return new RE(e,t,n,r,i)}class RE extends ec{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function nt(e,t){return $n((n,r)=>{let i=0;n.subscribe(bi(r,o=>{r.next(e.call(t,o,i++))}))})}var rc=function(e,t){return(rc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])})(e,t)};function Mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}rc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var b=function(){return b=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&o[o.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){!function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}(a,c,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const qd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function zd(e){return fe(e?.then)}function Wd(e){return fe(e[Uo])}function Gd(e){return Symbol.asyncIterator&&fe(e?.[Symbol.asyncIterator])}function Qd(e){return new 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.`)}const Kd=function e0(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Yd(e){return fe(e?.[Kd])}function Jd(e){return function Ud(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return",function s(h){return function(p){return Promise.resolve(p).then(h,f)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(v,g){o.push([h,m,v,g])>1||c(h,m)})},p&&(i[h]=p(i[h])))}function c(h,p){try{!function u(h){h.value instanceof bn?Promise.resolve(h.value.v).then(l,f):d(o[0][2],h)}(r[h](p))}catch(m){d(o[0][3],m)}}function l(h){c("next",h)}function f(h){c("throw",h)}function d(h,p){h(p),o.shift(),o.length&&c(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield bn(n.read());if(i)return yield bn(void 0);yield yield bn(r)}}finally{n.releaseLock()}})}function Xd(e){return fe(e?.getReader)}function wn(e){if(e instanceof be)return e;if(null!=e){if(Wd(e))return function t0(e){return new be(t=>{const n=e[Uo]();if(fe(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(qd(e))return function n0(e){return new be(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Fd)})}(e);if(Gd(e))return Zd(e);if(Yd(e))return function o0(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Xd(e))return function s0(e){return Zd(Jd(e))}(e)}throw Qd(e)}function Zd(e){return new be(t=>{(function a0(e,t){var n,r,i,o;return Ut(this,void 0,void 0,function*(){try{for(n=$d(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function En(e,t,n,r=0,i=!1){const o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function qo(e,t,n=1/0){return fe(t)?qo((r,i)=>nt((o,s)=>t(r,o,i,s))(wn(e(r,i))),n):("number"==typeof t&&(n=t),$n((r,i)=>function c0(e,t,n,r,i,o,s,a){const c=[];let u=0,l=0,f=!1;const d=()=>{f&&!c.length&&!u&&t.complete()},h=m=>u{o&&t.next(m),u++;let v=!1;wn(n(m,l++)).subscribe(bi(t,g=>{i?.(g),o?h(g):t.next(g)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&up(g)):p(g)}d()}catch(g){t.error(g)}}))};return e.subscribe(bi(t,h,()=>{f=!0,d()})),()=>{a?.()}}(r,i,e,n)))}function eh(e=1/0){return qo(Ld,e)}const th=new be(e=>e.complete());function sc(e){return e[e.length-1]}function zo(e){return function l0(e){return e&&fe(e.schedule)}(sc(e))?e.pop():void 0}function ac(e,t=0){return $n((n,r)=>{n.subscribe(bi(r,i=>En(r,e,()=>r.next(i),t),()=>En(r,e,()=>r.complete(),t),i=>En(r,e,()=>r.error(i),t)))})}function nh(e,t=0){return $n((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function rh(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{En(n,t,()=>{const r=e[Symbol.asyncIterator]();En(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function wi(e,t){return t?function y0(e,t){if(null!=e){if(Wd(e))return function d0(e,t){return wn(e).pipe(nh(t),ac(t))}(e,t);if(qd(e))return function p0(e,t){return new be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(zd(e))return function h0(e,t){return wn(e).pipe(nh(t),ac(t))}(e,t);if(Gd(e))return rh(e,t);if(Yd(e))return function m0(e,t){return new be(n=>{let r;return En(n,t,()=>{r=e[Kd](),En(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){return void n.error(s)}o?n.complete():n.next(i)},0,!0)}),()=>fe(r?.return)&&r.return()})}(e,t);if(Xd(e))return function g0(e,t){return rh(Jd(e),t)}(e,t)}throw Qd(e)}(e,t):wn(e)}function cc(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Di({next:()=>{r.unsubscribe(),e()}});return wn(t(...n)).subscribe(r)}function re(e){for(let t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function oe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(oe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function lc(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const b0=re({__forward_ref__:re});function fc(e){return e.__forward_ref__=fc,e.toString=function(){return oe(this())},e}function x(e){return function dc(e){return"function"==typeof e&&e.hasOwnProperty(b0)&&e.__forward_ref__===fc}(e)?e():e}function hc(e){return e&&!!e.\u0275providers}class O extends Error{constructor(t,n){super(Wo(t,n)),this.code=t}}function Wo(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}function X(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():function B(e){return"string"==typeof e?e:null==e?"":String(e)}(e)}function Go(e,t){throw new O(-201,!1)}function vt(e,t){null==e&&function Z(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Y(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function nn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Qo(e){return oh(e,Ko)||oh(e,ah)}function oh(e,t){return e.hasOwnProperty(t)?e[t]:null}function sh(e){return e&&(e.hasOwnProperty(pc)||e.hasOwnProperty(I0))?e[pc]:null}const Ko=re({\u0275prov:re}),pc=re({\u0275inj:re}),ah=re({ngInjectableDef:re}),I0=re({ngInjectorDef:re});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let mc;function Dt(e){const t=mc;return mc=e,t}function ch(e,t,n){const r=Qo(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void Go(oe(e))}const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ei={},gc="__NG_DI_FLAG__",Yo="ngTempTokenPath",k0="ngTokenPath",A0=/\n/gm,O0="\u0275",uh="__source";let Si;function hr(e){const t=Si;return Si=e,t}function N0(e,t=L.Default){if(void 0===Si)throw new O(-203,!1);return null===Si?ch(e,void 0,t):Si.get(e,t&L.Optional?null:void 0,t)}function j(e,t=L.Default){return(function M0(){return mc}()||N0)(x(e),t)}function _i(e,t=L.Default){return j(e,Jo(t))}function Jo(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yc(e){const t=[];for(let n=0;n(($t=$t||{})[$t.OnPush=0]="OnPush",$t[$t.Default=1]="Default",$t))(),qt=(()=>{return(e=qt||(qt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",qt;var e})();const on={},J=[],Xo=re({\u0275cmp:re}),vc=re({\u0275dir:re}),Dc=re({\u0275pipe:re}),fh=re({\u0275mod:re}),sn=re({\u0275fac:re}),Ti=re({__NG_ELEMENT_ID__:re});let R0=0;function ft(e){return rn(()=>{const t=function hh(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||J,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:dh(e.inputs,t),outputs:dh(e.outputs)}}(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===$t.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||qt.Emulated,id:"c"+R0++,styles:e.styles||J,_:null,schemas:e.schemas||null,tView:null};!function ph(e){e.features?.forEach(t=>t(e))}(n);const r=e.dependencies;return n.directiveDefs=Zo(r,!1),n.pipeDefs=Zo(r,!0),n})}function B0(e){return ee(e)||He(e)}function j0(e){return null!==e}function _n(e){return rn(()=>({type:e.type,bootstrap:e.bootstrap||J,declarations:e.declarations||J,imports:e.imports||J,exports:e.exports||J,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function dh(e,t){if(null==e)return on;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}function ee(e){return e[Xo]||null}function He(e){return e[vc]||null}function it(e){return e[Dc]||null}function Zo(e,t){if(!e)return null;const n=t?it:B0;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(j0)}const an=0,I=1,$=2,pe=3,kt=4,qn=5,Ue=6,pr=7,we=8,es=9,ts=10,W=11,bc=12,Mi=13,mh=14,mr=15,$e=16,ki=17,gr=18,zt=19,Ai=20,gh=21,ue=22,wc=1,yh=2,ns=7,yr=9,Ke=10;function ht(e){return Array.isArray(e)&&"object"==typeof e[wc]}function At(e){return Array.isArray(e)&&!0===e[wc]}function Ec(e){return 0!=(4&e.flags)}function Oi(e){return e.componentOffset>-1}function is(e){return 1==(1&e.flags)}function Ot(e){return!!e.template}function H0(e){return 0!=(256&e[$])}function zn(e,t){return e.hasOwnProperty(sn)?e[sn]:null}class q0{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function bh(e){return e.type.prototype.ngOnChanges&&(e.setInput=W0),z0}function z0(){const e=Eh(this),t=e?.current;if(t){const n=e.previous;if(n===on)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function W0(e,t,n,r){const i=this.declaredInputs[n],o=Eh(e)||function G0(e,t){return e[wh]=t}(e,{previous:on,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[i];s[i]=new q0(c&&c.currentValue,t,a===on),e[r]=t}const wh="__ngSimpleChanges__";function Eh(e){return e[wh]||null}const wt=function(e,t,n){};function Le(e){for(;Array.isArray(e);)e=e[an];return e}function pt(e,t){return Le(t[e.index])}function ot(e,t){const n=t[e];return ht(n)?n:n[an]}function as(e){return 64==(64&e[$])}function Cn(e,t){return null==t?null:e[t]}function Th(e){e[gr]=0}function _c(e,t){e[qn]+=t;let n=e,r=e[pe];for(;null!==r&&(1===t&&1===n[qn]||-1===t&&0===n[qn]);)r[qn]+=t,n=r,r=r[pe]}const V={lFrame:Rh(null),bindingsEnabled:!0};function Mh(){return V.bindingsEnabled}function S(){return V.lFrame.lView}function K(){return V.lFrame.tView}function Be(){let e=kh();for(;null!==e&&64===e.type;)e=e.parent;return e}function kh(){return V.lFrame.currentTNode}function Wt(e,t){const n=V.lFrame;n.currentTNode=e,n.isParent=t}function Cc(){return V.lFrame.isParent}function cS(e,t){const n=V.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ic(t)}function Ic(e){V.lFrame.currentDirectiveIndex=e}function kc(e){V.lFrame.currentQueryIndex=e}function lS(e){const t=e[I];return 2===t.type?t.declTNode:1===t.type?e[Ue]:null}function Ph(e,t,n){if(n&L.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&L.Host||(i=lS(o),null===i||(o=o[mr],10&i.type))););if(null===i)return!1;t=i,e=o}const r=V.lFrame=Fh();return r.currentTNode=t,r.lView=e,!0}function Ac(e){const t=Fh(),n=e[I];V.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Fh(){const e=V.lFrame,t=null===e?null:e.child;return null===t?Rh(e):t}function Rh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Lh(){const e=V.lFrame;return V.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Bh=Lh;function Oc(){const e=Lh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Wn(e){V.lFrame.selectedIndex=e}function cs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[gr]+=65536),(a>11>16&&(3&e[$])===t){e[$]+=2048,wt(4,a,o);try{o.call(a)}finally{wt(5,a,o)}}}else{wt(4,a,o);try{o.call(a)}finally{wt(5,a,o)}}}const br=-1;class xi{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Pc(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[mr],n--;return r}let Fc=!0;function hs(e){const t=Fc;return Fc=e,t}const qh=255,zh=5;let _S=0;const Gt={};function ps(e,t){const n=Wh(e,t);if(-1!==n)return n;const r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Rc(r.data,e),Rc(t,null),Rc(r.blueprint,null));const i=Lc(e,t),o=e.injectorIndex;if(function $h(e){return e!==br}(i)){const s=fs(i),a=ds(i,t),c=a[I].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|c[s+u]}return t[o+8]=i,o}function Rc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Wh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Lc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Zh(i),null===r)return br;if(n++,i=i[mr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return br}function Bc(e,t,n){!function CS(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ti)&&(r=n[Ti]),null==r&&(r=n[Ti]=_S++);const i=r&qh;t.data[e+(i>>zh)]|=1<=0?t&qh:kS:t}(n);if("function"==typeof o){if(!Ph(t,e,r))return r&L.Host?Gh(i,0,r):Qh(t,n,r,i);try{const s=o(r);if(null!=s||r&L.Optional)return s;Go()}finally{Bh()}}else if("number"==typeof o){let s=null,a=Wh(e,t),c=br,u=r&L.Host?t[$e][Ue]:null;for((-1===a||r&L.SkipSelf)&&(c=-1===a?Lc(e,t):t[a+8],c!==br&&Xh(r,!1)?(s=t[I],a=fs(c),t=ds(c,t)):a=-1);-1!==a;){const l=t[I];if(Jh(o,a,l.data)){const f=IS(a,t,n,s,r,u);if(f!==Gt)return f}c=t[a+8],c!==br&&Xh(r,t[I].data[a+8]===u)&&Jh(o,a,t)?(s=l,a=fs(c),t=ds(c,t)):a=-1}}return i}function IS(e,t,n,r,i,o){const s=t[I],a=s.data[e+8],l=function ms(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,c=e.directiveStart,l=o>>20,d=i?a+l:e.directiveEnd;for(let h=r?a:a+l;h=c&&p.type===n)return h}if(i){const h=s[c];if(h&&Ot(h)&&h.type===n)return c}return null}(a,s,n,null==r?Oi(a)&&Fc:r!=s&&0!=(3&a.type),i&L.Host&&o===a);return null!==l?Gn(t,s,l,a):Gt}function Gn(e,t,n,r){let i=e[n];const o=t.data;if(function bS(e){return e instanceof xi}(i)){const s=i;s.resolving&&function w0(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new O(-200,`Circular dependency in DI detected for ${e}${n}`)}(X(o[n]));const a=hs(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Dt(s.injectImpl):null;Ph(e,r,L.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function vS(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=bh(t);(n.preOrderHooks??(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==c&&Dt(c),hs(a),s.resolving=!1,Bh()}}return i}function Jh(e,t,n){return!!(n[t+(e>>zh)]&1<Array.isArray(n)?Qn(n,t):t(n))}function gs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var st=(()=>((st=st||{})[st.Important=1]="Important",st[st.DashCase=2]="DashCase",st))();const Kc=new Map;let r_=0;const Jc="__ngContext__";function qe(e,t){ht(t)?(e[Jc]=t[Ai],function o_(e){Kc.set(e[Ai],e)}(t)):e[Jc]=t}let Xc;function Zc(e,t){return Xc(e,t)}function Hi(e){const t=e[pe];return At(t)?t[pe]:t}function eu(e){return Ep(e[Mi])}function tu(e){return Ep(e[kt])}function Ep(e){for(;null!==e&&!At(e);)e=e[kt];return e}function Mr(e,t,n,r,i){if(null!=r){let o,s=!1;At(r)?o=r:ht(r)&&(s=!0,r=r[an]);const a=Le(r);0===e&&null!==n?null==i?Mp(t,n,a):Kn(t,n,a,i||null,!0):1===e&&null!==n?Kn(t,n,a,i||null,!0):2===e?function cu(e,t,n){const r=function Es(e,t){return e.parentNode(t)}(e,t);r&&function C_(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function M_(e,t,n,r,i){const o=n[ns];o!==Le(n)&&Mr(t,e,r,o,i);for(let a=Ke;a=0?r[i=s]():r[i=-s].unsubscribe(),o+=2}else{const s=r[i=n[o+1]];n[o].call(s)}if(null!==r){for(let o=i+1;o-1){const{encapsulation:o}=e.data[r.directiveStart+i];if(o===qt.None||o===qt.Emulated)return null}return pt(r,n)}}(e,t.parent,n)}function Kn(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Mp(e,t,n){e.appendChild(t,n)}function kp(e,t,n,r,i){null!==r?Kn(e,t,n,r,i):Mp(e,t,n)}let su,fu,Np=function Op(e,t,n){return 40&e.type?pt(e,n):null};function Ss(e,t,n,r){const i=Tp(e,r,t),o=t[W],a=function Ap(e,t,n){return Np(e,t,n)}(r.parent||t[Ue],r,t);if(null!=i)if(Array.isArray(n))for(let c=0;c{const s=o;yu(s,n,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&nm(i,n),n}function nm(e,t){for(let n=0;n{t.push(o)})}}function yu(e,t,n,r){if(!(e=x(e)))return!1;let i=null,o=sh(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const c=e.ngModule;if(o=sh(c),!o)return!1;i=c}const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of c)yu(u,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Qn(o.imports,l=>{yu(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}void 0!==u&&nm(u,t)}if(!a){const u=zn(i)||(()=>new i);t.push({provide:i,useFactory:u,deps:J},{provide:Zp,useValue:i,multi:!0},{provide:Jp,useValue:()=>j(i),multi:!0})}const c=o.providers;null==c||a||vu(c,l=>{t.push(l)})}}return i!==e&&void 0!==e.providers}function vu(e,t){for(let n of e)hc(n)&&(n=n.\u0275providers),Array.isArray(n)?vu(n,t):t(n)}const sC=re({provide:String,useValue:re});function Du(e){return null!==e&&"object"==typeof e&&sC in e}function Yn(e){return"function"==typeof e}const bu=new P("Set Injector scope."),Ms={},cC={};let wu;function ks(){return void 0===wu&&(wu=new em),wu}class Jn{}class om extends Jn{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Su(t,s=>this.processProvider(s)),this.records.set(Xp,Ar(void 0,this)),i.has("environment")&&this.records.set(Jn,Ar(void 0,this));const o=this.records.get(bu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Zp.multi,J,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=hr(this),r=Dt(void 0);try{return t()}finally{hr(n),Dt(r)}}get(t,n=Ei,r=L.Default){this.assertNotDestroyed(),r=Jo(r);const i=hr(this),o=Dt(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const c=function hC(e){return"function"==typeof e||"object"==typeof e&&e instanceof P}(t)&&Qo(t);a=c&&this.injectableDefInScope(c)?Ar(Eu(t),Ms):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?ks():this.parent).get(t,n=r&L.Optional&&n===Ei?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Yo]=s[Yo]||[]).unshift(oe(t)),i)throw s;return function P0(e,t,n,r){const i=e[Yo];throw t[uh]&&i.unshift(t[uh]),e.message=function F0(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==O0?e.slice(2):e;let i=oe(t);if(Array.isArray(t))i=t.map(oe).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):oe(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(A0,"\n ")}`}("\n"+e.message,i,n,r),e[k0]=i,e[Yo]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Dt(o),hr(i)}}resolveInjectorInitializers(){const t=hr(this),n=Dt(void 0);try{const r=this.get(Jp.multi,J,L.Self);for(const i of r)i()}finally{hr(t),Dt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(oe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(t){let n=Yn(t=x(t))?t:x(t&&t.provide);const r=function lC(e){return Du(e)?Ar(void 0,e.useValue):Ar(function sm(e,t,n){let r;if(Yn(e)){const i=x(e);return zn(i)||Eu(i)}if(Du(e))r=()=>x(e.useValue);else if(function im(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...yc(e.deps||[]));else if(function rm(e){return!(!e||!e.useExisting)}(e))r=()=>j(x(e.useExisting));else{const i=x(e&&(e.useClass||e.provide));if(!function fC(e){return!!e.deps}(e))return zn(i)||Eu(i);r=()=>new i(...yc(e.deps))}return r}(e),Ms)}(t);if(Yn(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Ar(void 0,Ms,!0),i.factory=()=>yc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ms&&(n.value=cC,n.value=n.factory()),"object"==typeof n.value&&n.value&&function dC(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=x(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Eu(e){const t=Qo(e),n=null!==t?t.factory:zn(e);if(null!==n)return n;if(e instanceof P)throw new O(204,!1);if(e instanceof Function)return function uC(e){const t=e.length;if(t>0)throw function Li(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new O(204,!1)}function Ar(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Su(e,t){for(const n of e)Array.isArray(n)?Su(n,t):n&&hc(n)?Su(n.\u0275providers,t):t(n)}class pC{}class am{}class gC{resolveComponentFactory(t){throw function mC(e){const t=Error(`No component factory found for ${oe(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let As=(()=>{class e{}return e.NULL=new gC,e})();function yC(){return Or(Be(),S())}function Or(e,t){return new Nr(pt(e,t))}let Nr=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=yC,e})();class um{}let bC=(()=>{class e{}return e.\u0275prov=Y({token:e,providedIn:"root",factory:()=>null}),e})();class _u{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const wC=new _u("15.2.9"),Cu={},Tu="ngOriginalError";function Iu(e){return e[Tu]}class xr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Iu(t);for(;n&&Iu(n);)n=Iu(n);return n||null}}function dm(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}const hm="ng-template";function NC(e,t,n){let r=0,i=!0;for(;ro?"":i[f+1].toLowerCase();const h=8&r?d:null;if(h&&-1!==dm(h,u,0)||2&r&&u!==d){if(Nt(r))return!1;s=!0}}}}else{if(!s&&!Nt(r)&&!Nt(c))return!1;if(s&&Nt(c))continue;s=!1,r=c|1&r}}return Nt(r)||s}function Nt(e){return 0==(1&e)}function FC(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""!==i&&!Nt(s)&&(t+=gm(o,i),i=""),r=s,o=o||!Nt(r);n++}return""!==i&&(t+=gm(o,i)),t}const H={};function wm(e,t=null,n=null,r){const i=Em(e,t,n,r);return i.resolveInjectorInitializers(),i}function Em(e,t=null,n=null,r,i=new Set){const o=[n||J,oC(e)];return r=r||("object"==typeof e?void 0:oe(e)),new om(o,t||ks(),r||null,i)}let Xn=(()=>{class e{static create(n,r){if(Array.isArray(n))return wm({name:""},r,n,"");{const i=n.name??"";return wm({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=Ei,e.NULL=new em,e.\u0275prov=Y({token:e,providedIn:"any",factory:()=>j(Xp)}),e.__NG_ELEMENT_ID__=-1,e})();function A(e,t=L.Default){const n=S();return null===n?j(e,t):Kh(Be(),n,x(e),t)}function km(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rue&&function ym(e,t,n,r){if(!r)if(3==(3&t[$])){const o=e.preOrderCheckHooks;null!==o&&us(t,o,n)}else{const o=e.preOrderHooks;null!==o&&ls(t,o,0,n)}Wn(n)}(e,t,ue,!1),wt(s?2:0,i),n(r,i)}finally{Wn(o),wt(s?3:1,i)}}function Pu(e,t,n){if(Ec(t)){const i=t.directiveEnd;for(let o=t.directiveStart;o0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,o)}}(e,t,r,Wi(e,n,i.hostVars,H),i)}function kT(e,t,n,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let c=0;c0&&Hu(n)}}function Hu(e){for(let r=eu(e);null!==r;r=tu(r))for(let i=Ke;i0&&Hu(o)}const n=e[I].components;if(null!==n)for(let r=0;r0&&Hu(i)}}function PT(e,t){const n=ot(t,e),r=n[I];(function FT(e,t){for(let n=t.length;n-1&&(function iu(e,t){if(e.length<=Ke)return;const n=Ke+t,r=e[n];if(r){const i=r[ki];null!==i&&i!==e&&_p(i,r),t>0&&(e[n-1][kt]=r[kt]);const o=gs(e,Ke+t);!function y_(e,t){Ui(e,t,t[W],2,null,null),t[an]=null,t[Ue]=null}(r[I],r);const s=o[zt];null!==s&&s.detachView(o[I]),r[pe]=null,r[kt]=null,r[$]&=-65}return r}(t,r),gs(n,r))}this._attachedToViewContainer=!1}!function Cp(e,t){if(!(128&t[$])){const n=t[W];n.destroyNode&&Ui(e,t,n,3,null,null),function b_(e){let t=e[Mi];if(!t)return ou(e[I],e);for(;t;){let n=null;if(ht(t))n=t[Mi];else{const r=t[Ke];r&&(n=r)}if(!n){for(;t&&!t[kt]&&t!==e;)ht(t)&&ou(t[I],t),t=t[pe];null===t&&(t=e),ht(t)&&ou(t[I],t),n=t&&t[kt]}t=n}}(t)}}(this._lView[I],this._lView)}onDestroy(t){!function Nm(e,t,n,r){const i=Bm(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&jm(e).push(r,i.length-1))}(this._lView[I],this._lView,null,t)}markForCheck(){Fs(this._cdRefInjectingView||this._lView)}detach(){this._lView[$]&=-65}reattach(){this._lView[$]|=64}detectChanges(){Rs(this._lView[I],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new O(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function D_(e,t){Ui(e,t,t[W],2,null,null)}(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=t}}class RT extends Gi{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Rs(t[I],t,t[we],!1)}checkNoChanges(){}get context(){return null}}class Um extends As{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ee(t);return new Qi(n,this.ngModule)}}function $m(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class BT{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Jo(r);const i=this.injector.get(t,Cu,r);return i!==Cu||n===Cu?i:this.parentInjector.get(t,n,r)}}class Qi extends am{get inputs(){return $m(this.componentDef.inputs)}get outputs(){return $m(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function HC(e){return e.map(VC).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof Jn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new BT(t,o):t,a=s.get(um,null);if(null===a)throw new O(407,!1);const c=s.get(bC,null),u=a.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",f=r?function hT(e,t,n){return e.selectRootElement(t,n===qt.ShadowDom)}(u,r,this.componentDef.encapsulation):ru(u,l,function LT(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(l)),d=this.componentDef.onPush?288:272,h=Lu(0,null,null,1,0,null,null,null,null,null),p=Ns(null,h,null,d,null,null,a,u,c,s,null);let m,v;Ac(p);try{const g=this.componentDef;let D,y=null;g.findHostDirectiveDefs?(D=[],y=new Map,g.findHostDirectiveDefs(g,D,y),D.push(g)):D=[g];const w=function VT(e,t){const n=e[I],r=ue;return e[r]=t,Rr(n,r,2,"#host",null)}(p,f),_=function HT(e,t,n,r,i,o,s,a){const c=i[I];!function UT(e,t,n,r){for(const i of e)t.mergedAttrs=Pi(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(Ls(t,t.mergedAttrs,!0),null!==n&&Lp(r,n,t))}(r,e,t,s);const u=o.createRenderer(t,n),l=Ns(i,Om(n),null,n.onPush?32:16,i[e.index],e,o,u,a||null,null,null);return c.firstCreatePass&&ju(c,e,r.length-1),Ps(i,l),i[e.index]=l}(w,f,g,D,p,a,u);v=function Ch(e,t){return e.data[t]}(h,ue),f&&function qT(e,t,n,r){if(r)Pc(e,n,["ng-version",wC.full]);else{const{attrs:i,classes:o}=function UC(e){const t=[],n=[];let r=1,i=2;for(;r0&&Rp(e,n,o.join(" "))}}(u,g,f,r),void 0!==n&&function zT(e,t,n){const r=e.projection=[];for(let i=0;is(Le(w[r.index])):r.index;let y=null;if(!s&&a&&(y=function pI(e,t,n,r){const i=e.cleanup;if(null!=i)for(let o=0;oc?a[c]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,d=!1;else{o=fg(r,t,l,o,!1);const w=n.listen(v,i,o);f.push(o,w),u&&u.push(i,D,g,g+1)}}else o=fg(r,t,l,o,!1);const h=r.outputs;let p;if(d&&null!==h&&(p=h[i])){const m=p.length;if(m)for(let v=0;v-1?ot(e.index,t):t);let c=lg(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=lg(t,n,u,s)&&c,u=u.__ngNextListenerFn__;return i&&!1===c&&(s.preventDefault(),s.returnValue=!1),c}}function We(e,t=""){const n=S(),r=K(),i=e+ue,o=r.firstCreatePass?Rr(r,i,1,t,null):r.data[i],s=n[i]=function nu(e,t){return e.createText(t)}(n[W],t);Ss(r,n,s,o),Wt(o,!1)}const Kr="en-US";let iy=Kr;class Yr{}class sk{}class Ay extends Yr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Um(this);const r=function dt(e,t){const n=e[fh]||null;if(!n&&!0===t)throw new Error(`Type ${oe(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function fn(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=Em(t,n,[{provide:Yr,useValue:this},{provide:As,useValue:this.componentFactoryResolver}],oe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class cl extends sk{constructor(t){super(),this.moduleType=t}create(t){return new Ay(this.moduleType,t)}}function ll(e){return t=>{setTimeout(e,void 0,t)}}const hn=class Rk extends $o{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&"object"==typeof t){const c=t;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=ll(o),i&&(i=ll(i)),s&&(s=ll(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof It&&t.add(a),a}};function Ks(...e){}const mv=new P("Application Initializer");let Ys=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ks,this.reject=Ks,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{o.subscribe({complete:a,error:c})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(j(mv,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const oo=new P("AppId",{providedIn:"root",factory:function gv(){return`${El()}${El()}${El()}`}});function El(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const yv=new P("Platform Initializer"),Sl=new P("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mn=new P("LocaleId",{providedIn:"root",factory:()=>_i(mn,L.Optional|L.SkipSelf)||function DA(){return typeof $localize<"u"&&$localize.locale||Kr}()}),_A=(()=>Promise.resolve(0))();function _l(e){typeof Zone>"u"?_A.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class je{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new hn(!1),this.onMicrotaskEmpty=new hn(!1),this.onStable=new hn(!1),this.onError=new hn(!1),typeof Zone>"u")throw new O(908,!1);Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function CA(){let e=ce.requestAnimationFrame,t=ce.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function MA(e){const t=()=>{!function IA(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ce,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Tl(e),e.isCheckStableRunning=!0,Cl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Tl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return bv(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),wv(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return bv(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),wv(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Tl(e),Cl(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!je.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(je.isInAngularZone())throw new O(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,TA,Ks,Ks);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const TA={};function Cl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Tl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function wv(e){e._nesting--,Cl(e)}class kA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new hn,this.onMicrotaskEmpty=new hn,this.onStable=new hn,this.onError=new hn}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}const Ev=new P(""),Js=new P("");let kl,Il=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,kl||(function AA(e){kl=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{je.assertNotInAngularZone(),_l(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())_l(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(j(je),j(Ml),j(Js))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),Ml=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return kl?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const gn=!1;let Mn=null;const Sv=new P("AllowMultipleToken"),Al=new P("PlatformDestroyListeners"),OA=new P("appBootstrapListener");function Cv(e,t,n=[]){const r=`Platform: ${t}`,i=new P(r);return(o=[])=>{let s=Ol();if(!s||s.injector.get(Sv,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function PA(e){if(Mn&&!Mn.get(Sv,!1))throw new O(400,!1);Mn=e;const t=e.get(Iv);(function _v(e){const t=e.get(yv,null);t&&t.forEach(n=>n())})(e)}(function Tv(e=[],t){return Xn.create({name:t,providers:[{provide:bu,useValue:"platform"},{provide:Al,useValue:new Set([()=>Mn=null])},...e]})}(a,r))}return function RA(e){const t=Ol();if(!t)throw new O(401,!1);return t}()}}function Ol(){return Mn?.get(Iv)??null}let Iv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function kv(e,t){let n;return n="noop"===e?new kA:("zone.js"===e?void 0:e)||new je(t),n}(r?.ngZone,function Mv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:je,useValue:i}];return i.run(()=>{const s=Xn.create({providers:o,parent:this.injector,name:n.moduleType.name}),a=n.create(s),c=a.injector.get(xr,null);if(!c)throw new O(402,!1);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:l=>{c.handleError(l)}});a.onDestroy(()=>{Xs(this._modules,a),u.unsubscribe()})}),function Av(e,t,n){try{const r=n();return Ku(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(c,i,()=>{const u=a.injector.get(Ys);return u.runInitializers(),u.donePromise.then(()=>(function oy(e){vt(e,"Expected localeId to be defined"),"string"==typeof e&&(iy=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(mn,Kr)||Kr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const i=Ov({},r);return function NA(e,t,n){const r=new cl(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(Nl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new O(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new O(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Al,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(j(Xn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Ov(e,t){return Array.isArray(t)?t.reduce(Ov,e):{...e,...t}}let Nl=(()=>{class e{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,i){this._zone=n,this._injector=r,this._exceptionHandler=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new be(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new be(a=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{je.assertNotInAngularZone(),_l(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{je.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=function v0(...e){const t=zo(e),n=function f0(e,t){return"number"==typeof sc(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?wn(r[0]):eh(n)(wi(r,t)):th}(o,s.pipe(function D0(e={}){const{connector:t=(()=>new $o),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,u=0,l=!1,f=!1;const d=()=>{a?.unsubscribe(),a=void 0},h=()=>{d(),s=c=void 0,l=f=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return $n((m,v)=>{u++,!f&&!l&&d();const g=c=c??t();v.add(()=>{u--,0===u&&!f&&!l&&(a=cc(p,i))}),g.subscribe(v),!s&&u>0&&(s=new Di({next:D=>g.next(D),error:D=>{f=!0,d(),a=cc(h,n,D),g.error(D)},complete:()=>{l=!0,d(),a=cc(h,r),g.complete()}}),wn(m).subscribe(s))})(o)}}()))}bootstrap(n,r){const i=n instanceof am;if(!this._injector.get(Ys).done){!i&&function Ii(e){const t=ee(e)||He(e)||it(e);return null!==t&&t.standalone}(n);throw new O(405,gn)}let s;s=i?n:this._injector.get(As).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function xA(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Yr),u=s.create(Xn.NULL,[],r||s.selector,a),l=u.location.nativeElement,f=u.injector.get(Ev,null);return f?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Xs(this.components,u),f?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new O(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Xs(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(OA,[]);r.push(...this._bootstrapListeners),r.forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Xs(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new O(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(j(je),j(Jn),j(xr))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Xs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ZA=Cv(null,"core",[]);let eO=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(j(Nl))},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({}),e})(),Ll=null;function na(){return Ll}class rO{}const Zt=new P("DocumentToken");function Jv(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}let DN=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({}),e})();class aD{}class YN extends rO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ef extends YN{static makeCurrent(){!function nO(e){Ll||(Ll=e)}(new ef)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function JN(){return lo=lo||document.querySelector("base"),lo?lo.getAttribute("href"):null}();return null==n?null:function XN(e){pa=pa||document.createElement("a"),pa.setAttribute("href",e);const t=pa.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){lo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Jv(document.cookie,t)}}let pa,lo=null;const dD=new P("TRANSITION_ID"),ex=[{provide:mv,useFactory:function ZN(e,t,n){return()=>{n.get(Ys).donePromise.then(()=>{const r=na(),i=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let o=0;o{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const ma=new P("EventManagerPlugins");let ga=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o{class e{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const i=this.usageCount;let o=i.get(n)??0;return o+=r,o>0?i.set(n,o):i.delete(n),o}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),fo=(()=>{class e extends pD{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(o=>o.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const i=this.doc.createElement("style");i.textContent=r,n.appendChild(i);const o=this.styleRef.get(r);o?o.push(i):this.styleRef.set(r,[i])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(j(Zt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const tf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},nf=/%COMP%/g,yD=new P("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function vD(e,t){return t.flat(100).map(n=>n.replace(nf,e))}function DD(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let rf=(()=>{class e{constructor(n,r,i,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestory=o,this.rendererByCompId=new Map,this.defaultRenderer=new of(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const i=this.getOrCreateRenderer(n,r);return i instanceof ED?i.applyToHost(n):i instanceof sf&&i.applyStyles(),i}getOrCreateRenderer(n,r){const i=this.rendererByCompId;let o=i.get(r.id);if(!o){const s=this.eventManager,a=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(r.encapsulation){case qt.Emulated:o=new ED(s,a,r,this.appId,c);break;case qt.ShadowDom:return new ux(s,a,n,r);default:o=new sf(s,a,r,c)}o.onDestroy=()=>i.delete(r.id),i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(j(ga),j(fo),j(oo),j(yD))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();class of{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(tf[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(wD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(wD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;const o=tf[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=tf[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(st.DashCase|st.Important)?t.style.setProperty(n,r,i&st.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&st.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,DD(r)):this.eventManager.addEventListener(t,n,DD(r))}}function wD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class ux extends of{constructor(t,n,r,i){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=vD(i.id,i.styles);for(const s of o){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class sf extends of{constructor(t,n,r,i,o=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=i,this.rendererUsageCount=0,this.styles=vD(o,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class ED extends sf{constructor(t,n,r,i,o){const s=i+"-"+r.id;super(t,n,r,o,s),this.contentAttr=function sx(e){return"_ngcontent-%COMP%".replace(nf,e)}(s),this.hostAttr=function ax(e){return"_nghost-%COMP%".replace(nf,e)}(s)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let lx=(()=>{class e extends hD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return e.\u0275fac=function(n){return new(n||e)(j(Zt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const SD=["alt","control","meta","shift"],fx={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dx={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let hx=(()=>{class e extends hD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,i){const o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>na().onAndCancel(n,o.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),SD.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=o,0!=r.length||0===o.length)return null;const c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let i=fx[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),!(null==i||!i)&&(i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),SD.forEach(s=>{s!==i&&(0,dx[s])(n)&&(o+=s+".")}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(j(Zt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const CD=[{provide:Sl,useValue:"browser"},{provide:yv,useValue:function px(){ef.makeCurrent()},multi:!0},{provide:Zt,useFactory:function gx(){return function P_(e){fu=e}(document),document},deps:[]}],yx=Cv(ZA,"browser",CD),TD=new P(""),ID=[{provide:Js,useClass:class tx{addToWindow(t){ce.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},ce.getAllAngularTestabilities=()=>t.getAllTestabilities(),ce.getAllAngularRootElements=()=>t.getAllRootElements(),ce.frameworkStabilizers||(ce.frameworkStabilizers=[]),ce.frameworkStabilizers.push(r=>{const i=ce.getAllAngularTestabilities();let o=i.length,s=!1;const a=function(c){s=s||c,o--,0==o&&r(s)};i.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?na().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:Ev,useClass:Il,deps:[je,Ml,Js]},{provide:Il,useClass:Il,deps:[je,Ml,Js]}],MD=[{provide:bu,useValue:"root"},{provide:xr,useFactory:function mx(){return new xr},deps:[]},{provide:ma,useClass:lx,multi:!0,deps:[Zt,je,Sl]},{provide:ma,useClass:hx,multi:!0,deps:[Zt]},{provide:rf,useClass:rf,deps:[ga,fo,oo,yD]},{provide:um,useExisting:rf},{provide:pD,useExisting:fo},{provide:fo,useClass:fo,deps:[Zt]},{provide:ga,useClass:ga,deps:[ma,je]},{provide:aD,useClass:nx,deps:[]},[]];let vx=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:oo,useValue:n.appId},{provide:dD,useExisting:oo},ex]}}}return e.\u0275fac=function(n){return new(n||e)(j(TD,12))},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:[...MD,...ID],imports:[DN,eO]}),e})();typeof window<"u"&&window;var te=(()=>{return(e=te||(te={}))[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",te;var e})();function ho(e){return!!e&&e<7}var uf="Invariant Violation",OD=Object.setPrototypeOf,Tx=void 0===OD?function(e,t){return e.__proto__=t,e}:OD,ND=function(e){function t(n){void 0===n&&(n=uf);var r=e.call(this,"number"==typeof n?uf+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=uf,Tx(r,t.prototype),r}return Mt(t,e),t}(Error);function rr(e,t){if(!e)throw new ND(t)}var e,ya=["debug","log","warn","error","silent"],lf=ya.indexOf("log");function va(e){return function(){if(ya.indexOf(e)>=lf)return(console[e]||console.log).apply(console,arguments)}}(e=rr||(rr={})).debug=va("debug"),e.log=va("log"),e.warn=va("warn"),e.error=va("error");var ff="3.11.3";function Bt(e){try{return e()}catch{}}const df=Bt(function(){return globalThis})||Bt(function(){return window})||Bt(function(){return self})||Bt(function(){return global})||Bt(function(){return Bt.constructor("return this")()});var xD=new Map;function hf(e){var t=xD.get(e)||1;return xD.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function PD(e,t){void 0===t&&(t=0);var n=hf("stringifyForDisplay");return JSON.stringify(e,function(r,i){return void 0===i?n:i},t).split(JSON.stringify(n)).join("")}function Da(e){return function(t){for(var n=[],r=1;r"}}function pf(e,t){if(void 0===t&&(t=[]),e)return df[FD]&&df[FD](e,t.map(RD))}function mf(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:ff,message:e,args:t.map(RD)})))}function LD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,a=!1,u=arguments[1];return new o(function(l){return i.subscribe({next:function(f){var d=!a;if(a=!0,!d||s)try{u=r(u,f)}catch(h){return l.error(h)}else u=f},error:function(f){l.error(f)},complete:function(){if(!a&&!s)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(u),l.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,o=new Array(i),s=0;s=0&&a.splice(d,1),u()}});a.push(f)},error:function(l){s.error(l)},complete:function(){u()}});function u(){c.closed&&0===a.length&&s.complete()}return function(){a.forEach(function(l){return l.unsubscribe()}),c.unsubscribe()}})},t[bf]=function(){return this},e.from=function(r){var i="function"==typeof this?this:e;if(null==r)throw new TypeError(r+" is not an object");var o=ba(r,bf);if(o){var s=o.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return function Ax(e){return e instanceof ae}(s)&&s.constructor===i?s:new i(function(a){return s.subscribe(a)})}if(vf("iterator")&&(o=ba(r,kx)))return new i(function(a){wa(function(){if(!a.closed){for(var u,c=function Ix(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function Mx(e,t){if(e){if("string"==typeof e)return LD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LD(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o.call(r));!(u=c()).done;)if(a.next(u.value),a.closed)return;a.complete()}})});if(Array.isArray(r))return new i(function(a){wa(function(){if(!a.closed){for(var c=0;c"u"&&(R(1===r.length,75,r.length),n=r[0].name.value),b(b({},e),{definitions:Qe([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function Ea(e){void 0===e&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function Sa(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return R(r,76,n),r||null;default:return null}}function Sf(){}yf()&&Object.defineProperty(ae,Symbol("extensions"),{value:{symbol:bf,hostReportError:Zr},configurable:!0});const Rx=Sf,Lx=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},Bx=typeof WeakMap<"u"?WeakMap:Map,jx=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Sf,unregister:Sf}};class _a{constructor(t=1/0,n=Rx){this.max=t,this.dispose=n,this.map=new Bx,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let i=0;i<10024;i++){const o=r.next().value;if(!o)break;this.unfinalizedNodes.delete(o);const s=o.key;delete o.key,o.keyRef=new Lx(s),this.registry.register(s,o,o)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new jx(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,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(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(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.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return!!n&&(this.deleteNode(n),!0)}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function Hx(){}class _f{constructor(t=1/0,n=Hx){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return!!n&&(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0)}}var Cf=new WeakSet;function UD(e){e.size<=(e.max||-1)||Cf.has(e)||(Cf.add(e),setTimeout(function(){e.clean(),Cf.delete(e)},100))}var $D=function(e,t){var n=new _a(e,t);return n.set=function(r,i){var o=_a.prototype.set.call(this,r,i);return UD(this),o},n},Ux=function(e,t){var n=new _f(e,t);return n.set=function(r,i){var o=_f.prototype.set.call(this,r,i);return UD(this),o},n},$x=Symbol.for("apollo.cacheSize"),vn=b({},df[$x]),ir={};function qD(e,t){ir[e]=t}var qx=!1!==globalThis.__DEV__?function Qx(){var e,t,n,r,i;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(t){var n=t[0];return[n,vn[n]||t[1]]})),sizes:b({print:null===(e=ir.print)||void 0===e?void 0:e.call(ir),parser:null===(t=ir.parser)||void 0===t?void 0:t.call(ir),canonicalStringify:null===(n=ir.canonicalStringify)||void 0===n?void 0:n.call(ir),links:If(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:GD(this.queryManager.documentTransform)}},null===(i=(r=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(r))}}:void 0,zx=!1!==globalThis.__DEV__?function Kx(){var e=this.config.fragments;return b(b({},zD.apply(this)),{addTypenameDocumentTransform:GD(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:An(this.storeReader.executeSelectionSet),executeSubSelectedArray:An(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:An(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:An(e?.findFragmentSpreads),lookup:An(e?.lookup),transform:An(e?.transform)}})}:void 0,Wx=!1!==globalThis.__DEV__?zD:void 0;function zD(){return{cache:{fragmentQueryDocuments:An(this.getFragmentDoc)}}}function An(e){return function Yx(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function WD(e){return null!=e}function GD(e){return Tf(e).map(function(t){return{cache:t}})}function Tf(e){return e?Qe(Qe([An(e?.performWork)],Tf(e?.left),!0),Tf(e?.right),!0).filter(WD):[]}function If(e){var t;return e?Qe(Qe([null===(t=e?.getMemoryInternals)||void 0===t?void 0:t.call(e)],If(e?.left),!0),If(e?.right),!0).filter(WD):[]}var ei,On=Object.assign(function(t){return JSON.stringify(t,Jx)},{reset:function(){ei=new Ux(vn.canonicalStringify||1e3)}});function Jx(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(Xx))return t;var i=JSON.stringify(r),o=ei.get(i);if(!o){r.sort();var s=JSON.stringify(r);o=ei.get(s)||r,ei.set(i,o),ei.set(s,o)}var a=Object.create(n);return o.forEach(function(c){a[c]=t[c]}),a}}return t}function Xx(e,t,n){return 0===t||n[t-1]<=e}function ti(e){return{__ref:String(e)}}function ne(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function ni(e,t,n,r){if(function nP(e){return"IntValue"===e.kind}(n)||function rP(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function tP(e){return"BooleanValue"===e.kind}(n)||function eP(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function oP(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(s){return ni(i,s.name,s.value,r)}),e[t.value]=i}else if(function iP(e){return"Variable"===e.kind}(n))e[t.value]=(r||{})[n.name.value];else if(function sP(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(s){var a={};return ni(a,t,s,r),a[t.value]});else if(function aP(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function cP(e){return"NullValue"===e.kind}(n))throw et(85,t.value,n.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&qD("canonicalStringify",function(){return ei.size}),On.reset();var lP=["connection","include","skip","client","rest","export","nonreactive"],mo=On,QD=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(a){i[a]=t[a]}),"".concat(n.connection.key,"(").concat(mo(i),")")}return n.connection.key}var o=e;if(t){var s=mo(t);o+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(a){-1===lP.indexOf(a)&&(n[a]&&Object.keys(n[a]).length?o+="@".concat(a,"(").concat(mo(n[a]),")"):o+="@".concat(a))}),o},{setStringify:function(e){var t=mo;return mo=e,t}});function Ca(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){return ni(n,r.name,r.value,t)}),n}return null}function Nn(e){return e.alias?e.alias.value:e.name.value}function Mf(e,t,n){for(var r,i=0,o=t.selections;iJD)return"[Array]";const n=Math.min(mP,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function vP(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>JD?"["+function bP(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map(([i,o])=>i+": "+ka(o,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}class wP{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class XD{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const ZD={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},EP=new Set(Object.keys(ZD));function eb(e){const t=e?.kind;return"string"==typeof t&&EP.has(t)}var or=(()=>(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(or||(or={})),or))(),M=(()=>(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(M||(M={})),M))();const sr=Object.freeze({});function Dn(e,t,n=ZD){const r=new Map;for(const g of Object.values(M))r.set(g,xf(t,g));let i,l,f,o=Array.isArray(e),s=[e],a=-1,c=[],u=e;const d=[],h=[];do{a++;const g=a===s.length,D=g&&0!==c.length;if(g){if(l=0===h.length?void 0:d[d.length-1],u=f,f=h.pop(),D)if(o){u=u.slice();let w=0;for(const[_,C]of c){const U=_-w;null===C?(u.splice(U,1),w++):u[U]=C}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[w,_]of c)u[w]=_}a=i.index,s=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(f){if(l=o?a:s[a],u=f[l],null==u)continue;d.push(l)}let y;if(!Array.isArray(u)){var p,m;if(eb(u)||Ma(!1,`Invalid AST Node: ${Nf(u)}.`),y=(g?null===(p=r.get(u.kind))||void 0===p?void 0:p.leave:null===(m=r.get(u.kind))||void 0===m?void 0:m.enter)?.call(t,u,l,f,d,h),y===sr)break;if(!1===y){if(!g){d.pop();continue}}else if(void 0!==y&&(c.push([l,y]),!g)){if(!eb(y)){d.pop();continue}u=y}}var v;void 0===y&&D&&c.push([l,u]),g?d.pop():(i={inArray:o,index:a,keys:s,edits:c,prev:i},o=Array.isArray(u),s=o?u:null!==(v=n[u.kind])&&void 0!==v?v:[],a=-1,c=[],f&&h.push(f),f=u)}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function xf(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function bo(e,t){var n=e.directives;return!n||!n.length||function CP(e){var t=[];return e&&e.length&&e.forEach(function(n){if(function _P(e){var t=e.name.value;return"skip"===t||"include"===t}(n)){var r=n.arguments,i=n.name.value;R(r&&1===r.length,71,i);var o=r[0];R(o.name&&"if"===o.name.value,72,i);var s=o.value;R(s&&("Variable"===s.kind||"BooleanValue"===s.kind),73,i),t.push({directive:n,ifArgument:o})}}),t}(n).every(function(r){var i=r.directive,o=r.ifArgument,s=!1;return"Variable"===o.value.kind?R(void 0!==(s=t&&t[o.value.name.value]),70,i.name.value):s=o.value.value,"skip"===i.name.value?!s:s})}function ar(e,t,n){var r=new Set(e),i=r.size;return Dn(t,{Directive:function(o){if(r.delete(o.name.value)&&(!n||!r.size))return sr}}),n?!r.size:r.size=0});var ob=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},Ff=Symbol(),HP=function(e){var t=Qe(Qe(Qe([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return ye(n)&&n.message||"Error message not found."}).join("\n")},oi=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=n.clientErrors,s=n.networkError,a=n.errorMessage,c=n.extraInfo,u=e.call(this,a)||this;return u.name="ApolloError",u.graphQLErrors=r||[],u.protocolErrors=i||[],u.clientErrors=o||[],u.networkError=s||null,u.message=a||HP(u),u.extraInfo=c,u.cause=Qe(Qe(Qe([s],r||[],!0),i||[],!0),o||[],!0).find(function(l){return!!l})||null,u.__proto__=t.prototype,u}return Mt(t,e),t}(Error),ve=Array.isArray;function en(e){return Array.isArray(e)&&e.length>0}var UP=Object.prototype.hasOwnProperty;function sb(){for(var e=[],t=0;t1)for(var r=new Pn,i=1;i=0;--a){var c=s[a],l=isNaN(+c)?{}:[];l[c]=o,o=l}n=r.merge(n,o)}),n}var cb=Object.prototype.hasOwnProperty;function QP(e){var t={};return e.split("\n").forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),o=n.slice(r+1).trim();t[i]=o}}),t}function ub(e,t){e.status>=300&&ob(e,function(){try{return JSON.parse(t)}catch{return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(i){var r=i;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function Rf(e){return 9===e||32===e}function wo(e){return e>=48&&e<=57}function lb(e){return e>=97&&e<=122||e>=65&&e<=90}function fb(e){return lb(e)||95===e}function XP(e){return lb(e)||wo(e)||95===e}function ZP(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s0===a?s:s.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function eF(e){let t=0;for(;te.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>k(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Q("(",k(e.variableDefinitions,", "),")"),n=k([e.operation,k([e.name,t]),k(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Q(" = ",n)+Q(" ",k(r," "))},SelectionSet:{leave:({selections:e})=>jt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Q("",e,": ")+t;let s=o+Q("(",k(n,", "),")");return s.length>80&&(s=o+Q("(\n",Na(k(n,"\n")),"\n)")),k([s,k(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Q(" ",k(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>k(["...",Q("on ",e),k(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Q("(",k(n,", "),")")} on ${t} ${Q("",k(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function tF(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(h=>0===h.length||Rf(h.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=a||c,l=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||s);let f="";const d=i&&Rf(e.charCodeAt(0));return(l&&!d||o)&&(f+="\n"),f+=n,(l||u)&&(f+="\n"),'"""'+f+'"""'}(e):function nF(e){return`"${e.replace(rF,iF)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+k(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+k(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Q("(",k(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Q("",e,"\n")+k(["schema",k(t," "),jt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+k(["scalar",t,k(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+k(["type",t,Q("implements ",k(n," & ")),k(r," "),jt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Q("",e,"\n")+t+(hb(n)?Q("(\n",Na(k(n,"\n")),"\n)"):Q("(",k(n,", "),")"))+": "+r+Q(" ",k(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Q("",e,"\n")+k([t+": "+n,Q("= ",r),k(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+k(["interface",t,Q("implements ",k(n," & ")),k(r," "),jt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Q("",e,"\n")+k(["union",t,k(n," "),Q("= ",k(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Q("",e,"\n")+k(["enum",t,k(n," "),jt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+k([t,k(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Q("",e,"\n")+k(["input",t,k(n," "),jt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Q("",e,"\n")+"directive @"+t+(hb(n)?Q("(\n",Na(k(n,"\n")),"\n)"):Q("(",k(n,", "),")"))+(r?" repeatable":"")+" on "+k(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>k(["extend schema",k(e," "),jt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>k(["extend scalar",e,k(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>k(["extend type",e,Q("implements ",k(t," & ")),k(n," "),jt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>k(["extend interface",e,Q("implements ",k(t," & ")),k(n," "),jt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>k(["extend union",e,k(t," "),Q("= ",k(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>k(["extend enum",e,k(t," "),jt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>k(["extend input",e,k(t," "),jt(n)]," ")}};function k(e,t=""){var n;return null!==(n=e?.filter(r=>r).join(t))&&void 0!==n?n:""}function jt(e){return Q("{\n",Na(k(e,"\n")),"\n}")}function Q(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Na(e){return Q(" ",e.replace(/\n/g,"\n "))}function hb(e){var t;return null!==(t=e?.some(n=>n.includes("\n")))&&void 0!==t&&t}var Eo,xa=Object.assign(function(e){var t=Eo.get(e);return t||(t=db(e),Eo.set(e,t)),t},{reset:function(){Eo=new $D(vn.print||2e3)}});xa.reset(),!1!==globalThis.__DEV__&&qD("print",function(){return Eo?Eo.size:0});var fF={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},pb=function(e,t){return t(e)};function Lf(e){return new ae(function(t){t.error(e)})}var gb={kind:M.FIELD,name:{kind:M.NAME,value:"__typename"}};function yb(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===M.FRAGMENT_SPREAD&&yb(t[n.name.value],t)})}function Bf(e){return yb(yo(e)||function dP(e){R("Document"===e.kind,81),R(e.definitions.length<=1,82);var t=e.definitions[0];return R("FragmentDefinition"===t.kind,83),t}(e),Ea(Ta(e)))?null:e}function Db(e){var t=new Map;return function(r){void 0===r&&(r=e);var i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function jf(e,t){go(t);for(var n=Db(""),r=Db(""),i=function(g){for(var D=0,y=void 0;D=0;--s)t.definitions[s].kind===M.OPERATION_DEFINITION&&++o;var a=function vb(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var i=t.get(r.name.value);return!i&&n.size&&n.forEach(function(o,s){s(r)&&(i=o)}),i}}(e),c=function(g){return en(g)&&g.map(a).some(function(D){return D&&D.remove})},u=new Map,l=!1,f={enter:function(g){if(c(g.directives))return l=!0,null}},d=Dn(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(g,D,y,w,_){var C=i(_);C&&C.variables.add(g.name.value)}},FragmentSpread:{enter:function(g,D,y,w,_){if(c(g.directives))return l=!0,null;var C=i(_);C&&C.fragmentSpreads.add(g.name.value)}},FragmentDefinition:{enter:function(g,D,y,w){u.set(JSON.stringify(w),g)},leave:function(g,D,y,w){return g===u.get(JSON.stringify(w))?g:o>0&&g.selectionSet.selections.every(function(C){return C.kind===M.FIELD&&"__typename"===C.name.value})?(r(g.name.value).removed=!0,l=!0,null):void 0}},Directive:{leave:function(g){if(a(g))return l=!0,null}}});if(!l)return t;var h=function(g){return g.transitiveVars||(g.transitiveVars=new Set(g.variables),g.removed||g.fragmentSpreads.forEach(function(D){h(r(D)).transitiveVars.forEach(function(y){g.transitiveVars.add(y)})})),g},p=new Set;d.definitions.forEach(function(g){g.kind===M.OPERATION_DEFINITION?h(n(g.name&&g.name.value)).fragmentSpreads.forEach(function(D){p.add(D)}):g.kind===M.FRAGMENT_DEFINITION&&0===o&&!r(g.name.value).removed&&p.add(g.name.value)}),p.forEach(function(g){h(r(g)).fragmentSpreads.forEach(function(D){p.add(D)})});var v={enter:function(g){if(function(g){return!(p.has(g)&&!r(g).removed)}(g.name.value))return null}};return Bf(Dn(d,{FragmentSpread:v,FragmentDefinition:v,OperationDefinition:{leave:function(g){if(g.variableDefinitions){var D=h(n(g.name&&g.name.value)).transitiveVars;if(D.size"u")throw et(38)}(r||wb);var d={http:{includeExtensions:s,preserveHeaderCase:a},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new ri(function(h){var p=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(h,n),m=h.getContext(),v={};if(m.clientAwareness){var g=m.clientAwareness,D=g.name,y=g.version;D&&(v["apollographql-client-name"]=D),y&&(v["apollographql-client-version"]=y)}var w=b(b({},v),m.headers),_={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:w};if(ar(["client"],h.query)){var C=bb(h.query);if(!C)return Lf(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));h.query=C}var De,U=function mb(e,t){for(var n=[],r=2;r-1;){if(v=void 0,U=[a.slice(0,m),a.slice(m+s.length)],a=U[1],g=(v=U[0]).indexOf("\r\n\r\n"),D=QP(v.slice(0,g)),(y=D["content-type"])&&-1===y.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(w=v.slice(g))if(_=ub(e,w),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)if(WP(_)){if(C={},"payload"in _){if(1===Object.keys(_).length&&null===_.payload)return[2];C=b({},_.payload)}"errors"in _&&(C=b(b({},C),{extensions:b(b({},"extensions"in C?C.extensions:null),(z={},z[Ff]=_.errors,z))})),t(C)}else t(_);else if(1===Object.keys(_).length&&"hasNext"in _&&!_.hasNext)return[2];m=a.indexOf(s)}return[3,1];case 3:return[2]}})})}(vi,EE):function YP(e){return function(t){return t.text().then(function(n){return ub(t,n)}).then(function(n){return!Array.isArray(n)&&!cb.call(n,"data")&&!cb.call(n,"errors")&&ob(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}(h)(vi).then(EE)}).then(function(){De=void 0,Tt.complete()}).catch(function(vi){De=void 0,function KP(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(vi,Tt)}),function(){De&&De.abort()}})})},wF=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,bF(n).request)||this;return r.options=n,r}return Mt(t,e),t}(ri);const{toString:Eb,hasOwnProperty:EF}=Object.prototype,Sb=Function.prototype.toString,Hf=new Map;function le(e,t){try{return Uf(e,t)}finally{Hf.clear()}}const _b=le;function Uf(e,t){if(e===t)return!0;const n=Eb.call(e);if(n!==Eb.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Tb(e,t))return!0;const i=Cb(e),o=Cb(t),s=i.length;if(s!==o.length)return!1;for(let a=0;a=0&&e.indexOf(t,n)===n}(i,_F)}}return!1}function Cb(e){return Object.keys(e).filter(SF,e)}function SF(e){return void 0!==this[e]}const _F="{ [native code] }";function Tb(e,t){let n=Hf.get(e);if(n){if(n.has(t))return!0}else Hf.set(e,n=new Set);return n.add(t),!1}const TF=()=>Object.create(null),{forEach:IF,slice:Ib}=Array.prototype,{hasOwnProperty:MF}=Object.prototype;class Fn{constructor(t=!0,n=TF){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return IF.call(t,r=>n=n.getChildTrie(r)),MF.call(n,"data")?n.data:n.data=this.makeData(Ib.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&rObject.create(null),{forEach:OF,slice:NF}=Array.prototype,{hasOwnProperty:xF}=Object.prototype;class $f{constructor(t=!0,n=AF){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return OF.call(t,r=>n=n.getChildTrie(r)),xF.call(n,"data")?n.data:n.data=this.makeData(NF.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&rglobalThis)||Ab(()=>global)||Object.create(null),zf=Ob[qf]||Array[qf]||function(e){try{Object.defineProperty(Ob,qf,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",PF++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=Ve;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===kb)break;return t!==Ve&&(Ve.slots[this.id]=n),!0}return Ve&&(Ve.slots[this.id]=kb),!1}getValue(){if(this.hasValue())return Ve.slots[this.id]}withValue(t,n,r,i){const s=Ve;Ve={parent:s,slots:{__proto__:null,[this.id]:t}};try{return n.apply(i,r)}finally{Ve=s}}static bind(t){const n=Ve;return function(){const r=Ve;try{return Ve=n,t.apply(this,arguments)}finally{Ve=r}}}static noContext(t,n,r){if(!Ve)return t.apply(r,n);{const i=Ve;try{return Ve=null,t.apply(r,n)}finally{Ve=i}}}}),So=new zf,{hasOwnProperty:BF}=Object.prototype,Gf=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Pa(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const _o=[],jF=100;function ai(e,t){if(!e)throw new Error(t||"assertion failure")}function xb(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Pb(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Fb(e){return e.slice(0)}let VF=(()=>{class e{constructor(n){this.fn=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}peek(){if(1===this.value.length&&!Rn(this))return Rb(this),this.value[0]}recompute(n){return ai(!this.recomputing,"already recomputing"),Rb(this),Rn(this)?function HF(e,t){return Ub(e),So.withValue(e,UF,[e,t]),function qF(e,t){if("function"==typeof e.subscribe)try{Pa(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function $F(e){e.dirty=!1,!Rn(e)&&Bb(e)}(e),Pb(e.value)}(this,n):Pb(this.value)}setDirty(){this.dirty||(this.dirty=!0,Lb(this),Pa(this))}dispose(){this.setDirty(),Ub(this),Qf(this,(n,r)=>{n.setDirty(),$b(n,this)})}forget(){this.dispose()}dependOn(n){n.add(this),this.deps||(this.deps=_o.pop()||new Set),this.deps.add(n)}forgetDeps(){this.deps&&(Gf(this.deps).forEach(n=>n.delete(this)),this.deps.clear(),_o.push(this.deps),this.deps=null)}}return e.count=0,e})();function Rb(e){const t=So.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Rn(e)?jb(t,e):Vb(t,e),t}function UF(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=Fb(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!xb(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(i){e.value[1]=i}e.recomputing=!1}function Rn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Lb(e){Qf(e,jb)}function Bb(e){Qf(e,Vb)}function Qf(e,t){const n=e.parents.size;if(n){const r=Gf(e.parents);for(let i=0;i0&&e.childValues.forEach((t,n)=>{$b(e,n)}),e.forgetDeps(),ai(null===e.dirtyChildren)}function $b(e,t){t.parents.delete(e),e.childValues.delete(t),Hb(e,t)}const zF={setDirty:!0,dispose:!0,forget:!0};function qb(e){const t=new Map,n=e&&e.subscribe;function r(i){const o=So.getValue();if(o){let s=t.get(i);s||t.set(i,s=new Set),o.dependOn(s),"function"==typeof n&&(Pa(s),s.unsubscribe=n(i))}}return r.dirty=function(o,s){const a=t.get(o);if(a){const c=s&&BF.call(zF,s)?s:"setDirty";Gf(a).forEach(u=>u[c]()),t.delete(o),Pa(a)}},r}let zb;function WF(...e){return(zb||(zb=new $f("function"==typeof WeakMap))).lookupArray(e)}const Kf=new Set;function Co(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=WF,normalizeResult:i,subscribe:o,cache:s=_f}=Object.create(null)){const a="function"==typeof s?new s(t,d=>d.dispose()):s,c=function(){const d=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===d)return e.apply(null,arguments);let h=a.get(d);h||(a.set(d,h=new VF(e)),h.normalizeResult=i,h.subscribe=o,h.forget=()=>a.delete(d));const p=h.recompute(Array.prototype.slice.call(arguments));return a.set(d,h),Kf.add(a),So.hasValue()||(Kf.forEach(m=>m.clean()),Kf.clear()),p};function u(d){const h=d&&a.get(d);h&&h.setDirty()}function l(d){const h=d&&a.get(d);if(h)return h.peek()}function f(d){return!!d&&a.delete(d)}return Object.defineProperty(c,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:a}),c.dirtyKey=u,c.dirty=function(){u(r.apply(null,arguments))},c.peekKey=l,c.peek=function(){return l(r.apply(null,arguments))},c.forgetKey=f,c.forget=function(){return f(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function GF(e){return e}var Wb=function(){function e(t,n){void 0===n&&(n=Object.create(null)),this.resultCache=nb?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=!1!==n.cache,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(GF,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e(function(i){return(t(i)?n:r).transformDocument(i)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new Fn(ii);this.performWork=Co(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var i=t.getCacheKey(r);if(i)return R(Array.isArray(i),69),n.lookupArray(i)},max:vn["documentTransform.cache"],cache:_a})}},e.prototype.performWork=function(t){return go(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e}();function Yf(e,t,n){return new ae(function(r){var i={then:function(c){return new Promise(function(u){return u(c())})}};function o(c,u){return function(l){if(c){var f=function(){return r.closed?0:c(l)};i=i.then(f,f).then(function(d){return r.next(d)},function(d){return r.error(d)})}else r[u](l)}}var s={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then(function(){return r.complete()})}},a=e.subscribe(s);return function(){return a.unsubscribe()}})}function Fa(e){return en(Jf(e))}function Jf(e){var t=en(e.errors)?e.errors.slice(0):[];return si(e)&&en(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function To(e,t,n){var r=[];e.forEach(function(i){return i[t]&&r.push(i)}),r.forEach(function(i){return i[t](n)})}function Gb(e){function t(n){Object.defineProperty(e,n,{value:ae})}return rb&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Qb(e){return e&&"function"==typeof e.then}var ci=function(e){function t(n){var r=e.call(this,function(i){return r.addObserver(i),function(){return r.removeObserver(i)}})||this;return r.observers=new Set,r.promise=new Promise(function(i,o){r.resolve=i,r.reject=o}),r.handlers={next:function(i){null!==r.sub&&(r.latest=["next",i],r.notify("next",i),To(r.observers,"next",i))},error:function(i){var o=r.sub;null!==o&&(o&&setTimeout(function(){return o.unsubscribe()}),r.sub=null,r.latest=["error",i],r.reject(i),r.notify("error",i),To(r.observers,"error",i))},complete:function(){var o=r.sub,s=r.sources;if(null!==o){var c=(void 0===s?[]:s).shift();c?Qb(c)?c.then(function(u){return r.sub=u.subscribe(r.handlers)},r.handlers.error):r.sub=c.subscribe(r.handlers):(o&&setTimeout(function(){return o.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),To(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(i){r.reject(i),r.sources=[],r.handlers.complete()},r.promise.catch(function(i){}),"function"==typeof n&&(n=[new ae(n)]),Qb(n)?n.then(function(i){return r.start(i)},r.handlers.error):r.start(n),r}return Mt(t,e),t.prototype.start=function(n){void 0===this.sub&&(this.sources=Array.from(n),this.handlers.complete())},t.prototype.deliverLastMessage=function(n){if(this.latest){var r=this.latest[0],i=n[r];i&&i.call(n,this.latest[1]),null===this.sub&&"next"===r&&n.complete&&n.complete()}},t.prototype.addObserver=function(n){this.observers.has(n)||(this.deliverLastMessage(n),this.observers.add(n))},t.prototype.removeObserver=function(n){this.observers.delete(n)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(n,r){var i=this.nextResultListeners;i.size&&(this.nextResultListeners=new Set,i.forEach(function(o){return o(n,r)}))},t.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(i,o){r||(r=!0,n(i,o))})},t}(ae);function ui(){for(var e=[],t=0;t0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t}(ae);function Zb(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(i,o){return this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(i,o):n}}):e.reobserve()}function JF(e){!1!==globalThis.__DEV__&&R.error(24,e.message,e.stack)}function ew(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&R.debug(25,e)}function ed(e){return"network-only"===e||"no-cache"===e||"standby"===e}Gb(Zf);var li=new(ii?WeakMap:Map);function td(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return li.set(e,(li.get(e)+1)%1e15),n.apply(this,arguments)})}function tw(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var nd=function(){function e(t,n){void 0===n&&(n=t.generateQueryId()),this.queryId=n,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;li.has(r)||(li.set(r,0),td(r,"evict"),td(r,"modify"),td(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||te.loading;return this.variables&&this.networkStatus!==te.loading&&!le(this.variables,t.variables)&&(n=te.setVariables),le(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.reset=function(){tw(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&le(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(n=this.observableQuery)||void 0===n?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var r,n=this,i=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&null!==(r=this.observableQuery)&&void 0!==r&&r.getLastError()||(this.updateLastDiff(t),!this.dirty&&!le(i&&i.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0))))},e.prototype.setObservableQuery=function(t){var n=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){n.getDiff().fromOptimisticTransaction?t.observe():Zb(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;tw(this),this.shouldNotify()&&this.listeners.forEach(function(n){return n(t)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(ho(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(t){var n=this;void 0===t&&(t=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=b(b({},this.getDiffOptions(t)),{watcher:this,callback:function(o){return n.setDiff(o)}});(!this.lastWatch||!le(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===li.get(this.cache)&&le(n,r.variables)&&le(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var o=this,s=new Pn,a=en(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&en(t.incremental)){var c=ab(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var u=this.getDiff();t.data=s.merge(u.result,t.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):0!==i&&(rd(t,r.errorPolicy)?this.cache.performTransaction(function(l){if(o.shouldWrite(t,r.variables))l.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:1===i}),o.lastWrite={result:t,variables:r.variables,dmCount:li.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(t.data=o.lastDiff.diff.result);var f=o.getDiffOptions(r.variables),d=l.diff(f);!o.stopped&&le(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(d,f),d.complete&&(t.data=d.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=te.ready},e.prototype.markError=function(t){return this.networkStatus=te.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e}();function rd(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Fa(e);return!r&&n&&e.data&&(r=!0),r}var XF=Object.prototype.hasOwnProperty,nw=Object.create(null),ZF=function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new $D(vn["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Fn(!1);var r=new Wb(function(o){return n.cache.transformDocument(o)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults;var i=t.documentTransform;this.documentTransform=i?r.concat(i).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(et(26))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return Ut(this,arguments,void 0,function(n){var r,i,o,s,a,c,u,l=n.mutation,f=n.variables,d=n.optimisticResponse,h=n.updateQueries,p=n.refetchQueries,m=void 0===p?[]:p,v=n.awaitRefetchQueries,g=void 0!==v&&v,D=n.update,y=n.onQueryUpdated,w=n.fetchPolicy,_=void 0===w?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.fetchPolicy)||"network-only":w,C=n.errorPolicy,U=void 0===C?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.errorPolicy)||"none":C,z=n.keepRootFields,ie=n.context;return tn(this,function(De){switch(De.label){case 0:return R(l,27),R("network-only"===_||"no-cache"===_,28),r=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),i=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),i?[4,this.localState.addExportedVariables(l,f,ie)]:[3,2];case 1:f=De.sent(),De.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[r]={mutation:l,variables:f,loading:!0,error:null}),s=d&&this.markMutationOptimistic(d,{mutationId:r,document:l,variables:f,fetchPolicy:_,errorPolicy:U,context:ie,updateQueries:h,update:D,keepRootFields:z}),this.broadcastQueries(),a=this,[2,new Promise(function(gi,yi){return Yf(a.getObservableFromLink(l,b(b({},ie),{optimisticResponse:s?d:void 0}),f,{},!1),function(Ge){if(Fa(Ge)&&"none"===U)throw new oi({graphQLErrors:Jf(Ge)});o&&(o.loading=!1,o.error=null);var Vn=b({},Ge);return"function"==typeof m&&(m=m(Vn)),"ignore"===U&&Fa(Vn)&&delete Vn.errors,a.markMutationResult({mutationId:r,result:Vn,document:l,variables:f,fetchPolicy:_,errorPolicy:U,context:ie,update:D,updateQueries:h,awaitRefetchQueries:g,refetchQueries:m,removeOptimistic:s?r:void 0,onQueryUpdated:y,keepRootFields:z})}).subscribe({next:function(Ge){a.broadcastQueries(),(!("hasNext"in Ge)||!1===Ge.hasNext)&&gi(Ge)},error:function(Ge){o&&(o.loading=!1,o.error=Ge),s&&a.cache.removeOptimistic(r),a.broadcastQueries(),yi(Ge instanceof oi?Ge:new oi({networkError:Ge}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;void 0===n&&(n=this.cache);var i=t.result,o=[],s="no-cache"===t.fetchPolicy;if(!s&&rd(i,t.errorPolicy)){if(si(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),si(i)&&en(i.incremental)){var a=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),c=void 0;a.result&&(c=ab(a.result,i)),typeof c<"u"&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var u=t.updateQueries;u&&this.queries.forEach(function(f,d){var h=f.observableQuery,p=h&&h.queryName;if(p&&XF.call(u,p)){var m=u[p],v=r.queries.get(d),g=v.document,D=v.variables,y=n.diff({query:g,variables:D,returnPartialData:!0,optimistic:!1}),w=y.result;if(y.complete&&w){var C=m(w,{mutationResult:i,queryName:g&&kf(g)||void 0,queryVariables:D});C&&o.push({result:C,dataId:"ROOT_QUERY",query:g,variables:D})}}})}if(o.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(f){s||o.forEach(function(m){return f.write(m)});var d=t.update,h=!function zP(e){return si(e)||function qP(e){return"hasNext"in e&&"data"in e}(e)}(i)||si(i)&&!i.hasNext;if(d){if(!s){var p=f.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});p.complete&&("incremental"in(i=b(b({},i),{data:p.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}h&&d(f,i,{context:t.context,variables:t.variables})}!s&&!t.keepRootFields&&h&&f.modify({id:"ROOT_MUTATION",fields:function(m,v){return"__typename"===v.fieldName?m:v.DELETE}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(f){return l.push(f)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i="function"==typeof t?t(n.variables,{IGNORE:nw}):t;return i!==nw&&(this.cache.recordOptimisticTransaction(function(o){try{r.markMutationResult(b(b({},n),{result:{data:i}}),o)}catch(s){!1!==globalThis.__DEV__&&R.error(s)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(t,n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:SP(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:ar(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:jf([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:Af(yo(t)),asQuery:b(b({},t),{definitions:t.definitions.map(function(i){return"OperationDefinition"===i.kind&&"query"!==i.operation?b(b({},i),{operation:"query"}):i})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return b(b({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);typeof(t=b(b({},t),{variables:this.getVariables(n,t.variables)})).notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new nd(this),i=new Zf({queryManager:this,queryInfo:r,options:t});return i.lastQuery=n,this.queries.set(i.queryId,r),r.init({document:n,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(t,n){var r=this;return void 0===n&&(n=this.generateQueryId()),R(t.query,29),R("Document"===t.query.kind,30),R(!t.returnPartialData,31),R(!t.pollInterval,32),this.fetchQuery(n,b(b({},t),{query:this.transform(t.query)})).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return void 0===t&&(t={discardWatches:!0}),this.cancelPendingFetches(et(33)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=te.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;void 0===t&&(t="active");var r=new Map,i=new Map,o=new Set;return Array.isArray(t)&&t.forEach(function(s){"string"==typeof s?i.set(s,!1):function Zx(e){return ye(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(s)?i.set(n.transform(s),!1):ye(s)&&s.query&&o.add(s)}),this.queries.forEach(function(s,a){var c=s.observableQuery,u=s.document;if(c){if("all"===t)return void r.set(a,c);var l=c.queryName;if("standby"===c.options.fetchPolicy||"active"===t&&!c.hasObservers())return;("active"===t||l&&i.has(l)||u&&i.has(u))&&(r.set(a,c),l&&i.set(l,!0),u&&i.set(u,!0))}}),o.size&&o.forEach(function(s){var a=hf("legacyOneTimeQuery"),c=n.getQuery(a).init({document:s.query,variables:s.variables}),u=new Zf({queryManager:n,queryInfo:c,options:b(b({},s),{fetchPolicy:"network-only"})});R(u.queryId===a),c.setObservableQuery(u),r.set(a,u)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(s,a){s||!1!==globalThis.__DEV__&&R.warn("string"==typeof a?34:35,a)}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;void 0===t&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,o){var s=i.options.fetchPolicy;i.resetLastResults(),(t||"standby"!==s&&"cache-only"!==s)&&r.push(i.refetch()),n.getQuery(o).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,i=t.fetchPolicy,o=t.errorPolicy,s=void 0===o?"none":o,a=t.variables,c=t.context,u=void 0===c?{}:c,l=t.extensions,f=void 0===l?{}:l;r=this.transform(r),a=this.getVariables(r,a);var d=function(p){return n.getObservableFromLink(r,u,p,f).map(function(m){"no-cache"!==i&&(rd(m,s)&&n.cache.write({query:r,result:m.data,dataId:"ROOT_SUBSCRIPTION",variables:p}),n.broadcastQueries());var v=Fa(m),g=function jP(e){return!!e.extensions&&Array.isArray(e.extensions[Ff])}(m);if(v||g){var D={};if(v&&(D.graphQLErrors=m.errors),g&&(D.protocolErrors=m.extensions[Ff]),"none"===s||g)throw new oi(D)}return"ignore"===s&&delete m.errors,m})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,a,u).then(d);return new ae(function(p){var m=null;return h.then(function(v){return m=v.subscribe(p)},p.error),function(){return m&&m.unsubscribe()}})}return d(a)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,i,o){var a,s=this;void 0===o&&(o=null!==(a=n?.queryDeduplication)&&void 0!==a?a:this.queryDeduplication);var c,u=this.getDocumentInfo(t),l=u.serverQuery,f=u.clientQuery;if(l){var h=this.inFlightLinkObservables,p=this.link,m={query:l,variables:r,operationName:kf(l)||void 0,context:this.prepareContext(b(b({},n),{forceFetch:!o})),extensions:i};if(n=m.context,o){var v=xa(l),g=On(r),D=h.lookup(v,g);if(!(c=D.observable)){var y=new ci([Of(p,m)]);c=D.observable=y,y.beforeNext(function(){h.remove(v,g)})}}else c=new ci([Of(p,m)])}else c=new ci([ae.of({data:{}})]),n=this.prepareContext(n);return f&&(c=Yf(c,function(w){return s.localState.runResolvers({document:f,remoteResult:w,context:n,variables:r})})),c},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return Yf(this.getObservableFromLink(o,r.context,r.variables),function(s){var a=Jf(s),c=a.length>0,u=r.errorPolicy;if(i>=t.lastRequestId){if(c&&"none"===u)throw t.markError(new oi({graphQLErrors:a}));t.markResult(s,o,r,n),t.markReady()}var l={data:s.data,loading:!1,networkStatus:te.ready};return c&&"none"===u&&(l.data=void 0),c&&"ignore"!==u&&(l.errors=a,l.networkStatus=te.error),l},function(s){var a=function VP(e){return e.hasOwnProperty("graphQLErrors")}(s)?s:new oi({networkError:s});throw i>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,n,r,i){var o=this;void 0===r&&(r=te.loading),void 0===i&&(i=n.query);var C,U,s=this.getVariables(i,n.variables),a=this.getQuery(t),c=this.defaultOptions.watchQuery,u=n.fetchPolicy,f=n.errorPolicy,h=n.returnPartialData,m=n.notifyOnNetworkStatusChange,g=n.context,y=Object.assign({},n,{query:i,variables:s,fetchPolicy:void 0===u?c&&c.fetchPolicy||"cache-first":u,errorPolicy:void 0===f?c&&c.errorPolicy||"none":f,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==m&&m,context:void 0===g?{}:g}),w=function(ie){y.variables=ie;var De=o.fetchQueryByPolicy(a,y,r);return"standby"!==y.fetchPolicy&&De.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",n),De},_=function(){return o.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(ie){_(),setTimeout(function(){return C.cancel(ie)})}),this.getDocumentInfo(y.query).hasClientExports)C=new ci(this.localState.addExportedVariables(y.query,y.variables,y.context).then(w).then(function(ie){return ie.sources})),U=!0;else{var z=w(y.variables);U=z.fromLink,C=new ci(z.sources)}return C.promise.then(_,_),{concast:C,fromLink:U}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,o=t.optimistic,s=void 0!==o&&o,a=t.removeOptimistic,c=void 0===a?s?hf("refetchQueries"):void 0:a,u=t.onQueryUpdated,l=new Map;i&&this.getObservableQueries(i).forEach(function(d,h){l.set(h,{oq:d,lastDiff:n.getQuery(h).getDiff()})});var f=new Map;return r&&this.cache.batch({update:r,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(d,h,p){var m=d.watcher instanceof nd&&d.watcher.observableQuery;if(m){if(u){l.delete(m.queryId);var v=u(m,h,p);return!0===v&&(v=m.refetch()),!1!==v&&f.set(m,v),v}null!==u&&l.set(m.queryId,{oq:m,lastDiff:p,diff:h})}}}),l.size&&l.forEach(function(d,h){var g,p=d.oq,m=d.lastDiff,v=d.diff;if(u){if(!v){var D=p.queryInfo;D.reset(),v=D.getDiff()}g=u(p,v,m)}(!u||!0===g)&&(g=p.refetch()),!1!==g&&f.set(p,g),h.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(h)}),c&&this.cache.removeOptimistic(c),f},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,o=n.query,s=n.variables,a=n.fetchPolicy,c=n.refetchWritePolicy,u=n.errorPolicy,l=n.returnPartialData,f=n.context,d=n.notifyOnNetworkStatusChange,h=t.networkStatus;t.init({document:o,variables:s,networkStatus:r});var p=function(){return t.getDiff()},m=function(w,_){void 0===_&&(_=t.networkStatus||te.loading);var C=w.result;!1!==globalThis.__DEV__&&!l&&!le(C,{})&&ew(w.missing);var U=function(z){return ae.of(b({data:z,loading:ho(_),networkStatus:_},w.complete?null:{partial:!0}))};return C&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:C},context:f,variables:s,onlyRunForcedResolvers:!0}).then(function(z){return U(z.data||void 0)}):"none"===u&&_===te.refetch&&Array.isArray(w.missing)?U(void 0):U(C)},v="no-cache"===a?0:r===te.refetch&&"merge"!==c?1:2,g=function(){return i.getResultsFromLink(t,v,{query:o,variables:s,context:f,fetchPolicy:a,errorPolicy:u})},D=d&&"number"==typeof h&&h!==r&&ho(r);switch(a){default:case"cache-first":return(y=p()).complete?{fromLink:!1,sources:[m(y,t.markReady())]}:l||D?{fromLink:!0,sources:[m(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var y;return(y=p()).complete||l||D?{fromLink:!0,sources:[m(y),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[m(p(),t.markReady())]};case"network-only":return D?{fromLink:!0,sources:[m(p()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return D?{fromLink:!0,sources:[m(t.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new nd(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){void 0===t&&(t={});var n=this.localState.prepareContext(t);return b(b(b({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e}();function rw(e){return e.kind===M.FIELD||e.kind===M.FRAGMENT_SPREAD||e.kind===M.INLINE_FRAGMENT}var id=new zf,ow=new WeakMap;function Io(e){var t=ow.get(e);return t||ow.set(e,t={vars:new Set,dep:qb()}),t}function sw(e){Io(e).vars.forEach(function(t){return t.forgetCache(e)})}function aR(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(c){Io(c).dep.dirty(r),function cR(e){e.broadcastWatches&&e.broadcastWatches()}(c)});var s=Array.from(n);n.clear(),s.forEach(function(c){return c(e)})}}else{var a=id.getValue();a&&(i(a),Io(a).dep(r))}return e};r.onNextChange=function(o){return n.add(o),function(){n.delete(o)}};var i=r.attachCache=function(o){return t.add(o),Io(o).vars.add(r),r};return r.forgetCache=function(o){return t.delete(o)},r}var uR=function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,o=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=sb(n.resolvers,r)}):this.resolvers=sb(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return Ut(this,arguments,void 0,function(n){var r=n.document,i=n.remoteResult,o=n.context,s=n.variables,a=n.onlyRunForcedResolvers,c=void 0!==a&&a;return tn(this,function(u){return r?[2,this.resolveDocument(r,i.data,o,s,this.fragmentMatcher,c).then(function(l){return b(b({},i),{data:l.result})})]:[2,i]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return ar(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return bb(t)},e.prototype.prepareContext=function(t){var n=this.cache;return b(b({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return Ut(this,arguments,void 0,function(n,r,i){return void 0===r&&(r={}),void 0===i&&(i={}),tn(this,function(o){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(i),r).then(function(s){return b(b({},r),s.exportedVariables)})]:[2,b({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Dn(t,{Directive:{enter:function(r){if("client"===r.name.value&&r.arguments&&(n=r.arguments.some(function(i){return"always"===i.name.value&&"BooleanValue"===i.value.kind&&!0===i.value.value})))return sr}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:DF(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return Ut(this,arguments,void 0,function(r,i,o,s,a,c){var u,l,f,d,h,p,m,v,g,D;return void 0===o&&(o={}),void 0===s&&(s={}),void 0===a&&(a=function(){return!0}),void 0===c&&(c=!1),tn(this,function(w){return u=vo(r),l=Ta(r),f=Ea(l),d=this.collectSelectionsToResolve(u,f),p=(h=u.operation)?h.charAt(0).toUpperCase()+h.slice(1):"Query",v=(m=this).cache,g=m.client,D={fragmentMap:f,context:b(b({},o),{cache:v,client:g}),variables:s,fragmentMatcher:a,defaultOperationType:p,exportedVariables:{},selectionsToResolve:d,onlyRunForcedResolvers:c},[2,this.resolveSelectionSet(u.selectionSet,!1,i,D).then(function(_){return{result:_,exportedVariables:D.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return Ut(this,void 0,void 0,function(){var o,s,a,c,u,l=this;return tn(this,function(f){return o=i.fragmentMap,s=i.context,a=i.variables,c=[r],u=function(d){return Ut(l,void 0,void 0,function(){var h;return tn(this,function(m){return(n||i.selectionsToResolve.has(d))&&bo(d,a)?xn(d)?[2,this.resolveField(d,n,r,i).then(function(v){var g;typeof v<"u"&&c.push(((g={})[Nn(d)]=v,g))})]:(function fP(e){return"InlineFragment"===e.kind}(d)?h=d:R(h=o[d.name.value],18,d.name.value),h&&h.typeCondition&&i.fragmentMatcher(r,h.typeCondition.name.value,s)?[2,this.resolveSelectionSet(h.selectionSet,n,r,i).then(function(v){c.push(v)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(u)).then(function(){return Oa(c)})]})})},e.prototype.resolveField=function(t,n,r,i){return Ut(this,void 0,void 0,function(){var o,s,a,c,u,l,f,d,h,p=this;return tn(this,function(m){return r?(o=i.variables,s=t.name.value,a=Nn(t),c=s!==a,u=r[a]||r[s],l=Promise.resolve(u),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(f=r.__typename||i.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(h=d[c?s:a])&&(l=Promise.resolve(id.withValue(this.cache,h,[r,Ca(t,o),i.context,{field:t,fragmentMap:i.fragmentMap}])))),[2,l.then(function(v){var g,D;if(void 0===v&&(v=u),t.directives&&t.directives.forEach(function(w){"export"===w.name.value&&w.arguments&&w.arguments.forEach(function(_){"as"===_.name.value&&"StringValue"===_.value.kind&&(i.exportedVariables[_.value.value]=v)})}),!t.selectionSet||null==v)return v;var y=null!==(D=null===(g=t.directives)||void 0===g?void 0:g.some(function(w){return"client"===w.name.value}))&&void 0!==D&&D;return Array.isArray(v)?p.resolveSubSelectedArray(t,n||y,v,i):t.selectionSet?p.resolveSelectionSet(t.selectionSet,n||y,v,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,i){var o=this;return Promise.all(r.map(function(s){return null===s?null:Array.isArray(s)?o.resolveSubSelectedArray(t,n,s,i):t.selectionSet?o.resolveSelectionSet(t.selectionSet,n,s,i):void 0}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(s){return!Array.isArray(s)},i=this.selectionsToResolveCache;return function o(s){if(!i.has(s)){var a=new Set;i.set(s,a),Dn(s,{Directive:function(c,u,l,f,d){"client"===c.name.value&&d.forEach(function(h){r(h)&&rw(h)&&a.add(h)})},FragmentSpread:function(c,u,l,f,d){var h=n[c.name.value];R(h,19,c.name.value);var p=o(h);p.size>0&&(d.forEach(function(m){r(m)&&rw(m)&&a.add(m)}),a.add(c),p.forEach(function(m){a.add(m)}))}})}return i.get(s)}(t)},e}();function od(e,t){return ui(e,t,t.variables&&{variables:ui(b(b({},e&&e.variables),t.variables))})}var aw=!1,sd=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw et(15);var r=t.uri,s=t.cache,a=t.documentTransform,c=t.ssrMode,u=void 0!==c&&c,l=t.ssrForceFetchDelay,f=void 0===l?0:l,d=t.connectToDevTools,h=t.queryDeduplication,p=void 0===h||h,m=t.defaultOptions,v=t.defaultContext,g=t.assumeImmutableResults,D=void 0===g?s.assumeImmutableResults:g,y=t.resolvers,w=t.typeDefs,_=t.fragmentMatcher,C=t.name,U=t.version,z=t.devtools,ie=t.link;ie||(ie=r?new wF({uri:r,credentials:t.credentials,headers:t.headers}):ri.empty()),this.link=ie,this.cache=s,this.disableNetworkFetches=u||f>0,this.queryDeduplication=p,this.defaultOptions=m||Object.create(null),this.typeDefs=w,this.devtoolsConfig=b(b({},z),{enabled:z?.enabled||d}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),f&&setTimeout(function(){return n.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=ff,this.localState=new uR({cache:s,client:this,resolvers:y,fragmentMatcher:_}),this.queryManager=new ZF({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:v,documentTransform:a,queryDeduplication:p,ssrMode:u,clientAwareness:{name:C,version:U},localState:this.localState,assumeImmutableResults:D,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!aw&&!1!==globalThis.__DEV__&&(aw=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,i=r&&r.userAgent,o=void 0;"string"==typeof i&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&!1!==globalThis.__DEV__&&R.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=od(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t=b(b({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=od(this.defaultOptions.query,t)),R("cache-and-network"!==t.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=b(b({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=od(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,n){return void 0===n&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){return this.cache.watchFragment(t)},e.prototype.readFragment=function(t,n){return void 0===n&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return!1!==t.broadcast&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return Of(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],i=[];n.forEach(function(s,a){r.push(a),i.push(s)});var o=Promise.all(i);return o.queries=r,o.results=i,o.catch(function(s){!1!==globalThis.__DEV__&&R.debug(17,s)}),o},e.prototype.getObservableQueries=function(t){return void 0===t&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();function fR(e,t){if(!Boolean(e))throw new Error(t??"Unexpected invariant triggered.")}!1!==globalThis.__DEV__&&(sd.prototype.getMemoryInternals=qx);const dR=/\r\n|[\n\r]/g;function ad(e,t){let n=0,r=1;for(const i of e.body.matchAll(dR)){if("number"==typeof i.index||fR(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function hR(e){return cw(e.source,ad(e.source,e.start))}function cw(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=t.line+(e.locationOffset.line-1),c=t.column+(1===t.line?n:0),u=`${e.name}:${s}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){const d=Math.floor(c/80),h=c%80,p=[];for(let m=0;m["|",m]),["|","^".padStart(h)],["|",p[d+1]]])}return u+uw([[s-1+" |",l[i-1]],[`${s} |`,f],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function uw(e){const t=e.filter(([r,i])=>void 0!==i),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join("\n")}class cd extends Error{constructor(t,...n){var r,i,o;const{nodes:s,source:a,positions:c,path:u,originalError:l,extensions:f}=function pR(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(n);super(t),this.name="GraphQLError",this.path=u??void 0,this.originalError=l??void 0,this.nodes=lw(Array.isArray(s)?s:s?[s]:void 0);const d=lw(null===(r=this.nodes)||void 0===r?void 0:r.map(p=>p.loc).filter(p=>null!=p));this.source=a??(null==d||null===(i=d[0])||void 0===i?void 0:i.source),this.positions=c??d?.map(p=>p.start),this.locations=c&&a?c.map(p=>ad(a,p)):d?.map(p=>ad(p.source,p.start));const h=function lR(e){return"object"==typeof e&&null!==e}(l?.extensions)?l?.extensions:void 0;this.extensions=null!==(o=f??h)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,cd):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+="\n\n"+hR(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+="\n\n"+cw(this.source,n);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function lw(e){return void 0===e||0===e.length?void 0:e}function Fe(e,t,n){return new cd(`Syntax Error: ${n}`,{source:e,positions:[t]})}var La=(()=>(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(La||(La={})),La))(),E=(()=>(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(E||(E={})),E))();class mR{constructor(t){const n=new XD(E.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==E.EOF)do{if(t.next)t=t.next;else{const n=yR(this,t.end);t.next=n,n.prev=t,t=n}}while(t.kind===E.COMMENT);return t}}function fi(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ba(e,t){return fw(e.charCodeAt(t))&&dw(e.charCodeAt(t+1))}function fw(e){return e>=55296&&e<=56319}function dw(e){return e>=56320&&e<=57343}function cr(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return E.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return'"'===r?"'\"'":`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ke(e,t,n,r,i){return new XD(t,n,r,e.line,1+n-e.lineStart,i)}function yR(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function SR(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Fe(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function _R(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o0||Ma(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ma(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class ja{constructor(t,n={}){const r=function IR(e){return TR(e,pw)}(t)?t:new pw(t);this._lexer=new mR(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(E.NAME);return this.node(t,{kind:M.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:M.DOCUMENT,definitions:this.many(E.SOF,this.parseDefinition,E.EOF)})}parseDefinition(){if(this.peek(E.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===E.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw Fe(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(E.BRACE_L))return this.node(t,{kind:M.OPERATION_DEFINITION,operation:or.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(E.NAME)&&(r=this.parseName()),this.node(t,{kind:M.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(E.NAME);switch(t.value){case"query":return or.QUERY;case"mutation":return or.MUTATION;case"subscription":return or.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(E.PAREN_L,this.parseVariableDefinition,E.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:M.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(E.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(E.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(E.DOLLAR),this.node(t,{kind:M.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:M.SELECTION_SET,selections:this.many(E.BRACE_L,this.parseSelection,E.BRACE_R)})}parseSelection(){return this.peek(E.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(E.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:M.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(E.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){return this.optionalMany(E.PAREN_L,t?this.parseConstArgument:this.parseArgument,E.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(E.COLON),this.node(n,{kind:M.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(E.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(E.NAME)?this.node(t,{kind:M.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:M.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this.node(t,!0===this._options.allowLegacyFragmentVariables?{kind:M.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:M.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case E.BRACKET_L:return this.parseList(t);case E.BRACE_L:return this.parseObject(t);case E.INT:return this.advanceLexer(),this.node(n,{kind:M.INT,value:n.value});case E.FLOAT:return this.advanceLexer(),this.node(n,{kind:M.FLOAT,value:n.value});case E.STRING:case E.BLOCK_STRING:return this.parseStringLiteral();case E.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:M.BOOLEAN,value:!0});case"false":return this.node(n,{kind:M.BOOLEAN,value:!1});case"null":return this.node(n,{kind:M.NULL});default:return this.node(n,{kind:M.ENUM,value:n.value})}case E.DOLLAR:if(t){if(this.expectToken(E.DOLLAR),this._lexer.token.kind===E.NAME)throw Fe(this._lexer.source,n.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(n)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:M.STRING,value:t.value,block:t.kind===E.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:M.LIST,values:this.any(E.BRACKET_L,()=>this.parseValueLiteral(t),E.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:M.OBJECT,fields:this.any(E.BRACE_L,()=>this.parseObjectField(t),E.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(E.COLON),this.node(n,{kind:M.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(E.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(E.AT),this.node(n,{kind:M.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(E.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(E.BRACKET_R),n=this.node(t,{kind:M.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(E.BANG)?this.node(t,{kind:M.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:M.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(E.STRING)||this.peek(E.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(E.BRACE_L,this.parseOperationTypeDefinition,E.BRACE_R);return this.node(t,{kind:M.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(E.COLON);const r=this.parseNamedType();return this.node(t,{kind:M.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:M.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:M.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(E.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseFieldDefinition,E.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(E.COLON);const o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:M.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(E.PAREN_L,this.parseInputValueDef,E.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(E.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(E.EQUALS)&&(o=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:M.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:M.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:M.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(E.EQUALS)?this.delimitedMany(E.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:M.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(E.BRACE_L,this.parseEnumValueDefinition,E.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:M.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Fe(this._lexer.source,this._lexer.token.start,`${Va(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:M.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(E.BRACE_L,this.parseInputValueDef,E.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===E.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(E.BRACE_L,this.parseOperationTypeDefinition,E.BRACE_R);if(0===n.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:M.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(t,{kind:M.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:M.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===o.length)throw this.unexpected();return this.node(t,{kind:M.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:M.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(E.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:M.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(E.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(La,n.value))return n;throw this.unexpected(t)}node(t,n){return!0!==this._options.noLocation&&(n.loc=new wP(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Fe(this._lexer.source,n.start,`Expected ${mw(t)}, found ${Va(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const n=this._lexer.token;if(n.kind!==E.NAME||n.value!==t)throw Fe(this._lexer.source,n.start,`Expected "${t}", found ${Va(n)}.`);this.advanceLexer()}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===E.NAME&&n.value===t&&(this.advanceLexer(),!0)}unexpected(t){const n=t??this._lexer.token;return Fe(this._lexer.source,n.start,`Unexpected ${Va(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do{r.push(n.call(this))}while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(void 0!==t&&n.kind!==E.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Fe(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Va(e){const t=e.value;return mw(e.kind)+(null!=t?` "${t}"`:"")}function mw(e){return function gR(e){return e===E.BANG||e===E.DOLLAR||e===E.AMP||e===E.PAREN_L||e===E.PAREN_R||e===E.SPREAD||e===E.COLON||e===E.EQUALS||e===E.AT||e===E.BRACKET_L||e===E.BRACKET_R||e===E.BRACE_L||e===E.PIPE||e===E.BRACE_R}(e)?`"${e}"`:e}var Ha=new Map,ld=new Map,gw=!0,Ua=!1;function yw(e){return e.replace(/[\s,]+/g," ").trim()}function NR(e){var t=yw(e);if(!Ha.has(t)){var n=function MR(e,t){return new ja(e,t).parseDocument()}(e,{experimentalFragmentVariables:Ua,allowLegacyFragmentVariables:Ua});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ha.set(t,function OR(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var o=r[i];o&&"object"==typeof o&&t.add(o)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function AR(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if("FragmentDefinition"===r.kind){var i=r.name.value,o=function kR(e){return yw(e.source.body.substring(e.start,e.end))}(r.loc),s=ld.get(i);s&&!s.has(o)?gw&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||ld.set(i,s=new Set),s.add(o),t.has(o)||(t.add(o),n.push(r))}else n.push(r)}),b(b({},e),{definitions:n})}(n)))}return Ha.get(t)}function di(e){for(var t=[],n=1;n(vw.delegate||Date).now(),delegate:void 0};class Ao{constructor(t,n=Ao.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}Ao.now=vw.now;class VR extends Ao{constructor(t,n=Ao.now){super(t,n),this.actions=[],this._active=!1}flush(t){const{actions:n}=this;if(this._active)return void n.push(t);let r;this._active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}}const UR=new class HR extends VR{}(class jR extends BR{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}schedule(t,n=0){return n>0?super.schedule(t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}execute(t,n){return n>0||this.closed?super.execute(t,n):this._execute(t,n)}requestAsyncId(t,n,r=0){return null!=r&&r>0||null==r&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}});function Dw(...e){return function $R(){return eh(1)}()(wi(e,zo(e)))}function bw(e){return new be(t=>(e().then(n=>{t.closed||(t.next(n),t.complete())},n=>{t.closed||t.error(n)}),()=>t.unsubscribe()))}class WR{constructor(t){this.zone=t,this.now=Date.now?Date.now:()=>+new Date}schedule(t,n=0,r){return this.zone.run(()=>UR.schedule(t,n,r))}}function ww(e){return e[Uo]=()=>e,e}function Ew(e,t){return e.pipe(ac(new WR(t)))}function Sw(e,t,n){return e&&typeof e[t]<"u"?e[t]:n}class QR{constructor(t,n,r){this.obsQuery=t;const i=Ew(wi(ww(this.obsQuery)),n);this.valueChanges=r.useInitialLoading?i.pipe(function GR(e){return function(n){return new be(function(i){const o=e.getCurrentResult(),{loading:s,errors:a,error:c,partial:u,data:l}=o,{partialRefetch:f,fetchPolicy:d}=e.options,h=a||c;return f&&u&&(!l||0===Object.keys(l).length)&&"cache-only"!==d&&!s&&!h&&i.next({...o,loading:!0,networkStatus:te.loading}),n.subscribe(i)})}}(this.obsQuery)):i,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(t){return this.obsQuery.refetch(t)}fetchMore(t){return this.obsQuery.fetchMore(t)}subscribeToMore(t){return this.obsQuery.subscribeToMore(t)}updateQuery(t){return this.obsQuery.updateQuery(t)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(t){return this.obsQuery.startPolling(t)}setOptions(t){return this.obsQuery.setOptions(t)}setVariables(t){return this.obsQuery.setVariables(t)}}const KR=new P("APOLLO_FLAGS"),_w=new P("APOLLO_OPTIONS"),YR=new P("APOLLO_NAMED_OPTIONS");class Cw{constructor(t,n,r){this.ngZone=t,this.flags=n,this._client=r,this.useInitialLoading=Sw(n,"useInitialLoading",!1),this.useMutationLoading=Sw(n,"useMutationLoading",!1)}watchQuery(t){return new QR(this.ensureClient().watchQuery({...t}),this.ngZone,{useInitialLoading:this.useInitialLoading,...t})}query(t){return bw(()=>this.ensureClient().query({...t}))}mutate(t){return function zR(e,t){return t?e.pipe(function qR(...e){const t=zo(e);return $n((n,r)=>{(t?Dw(e,n,t):Dw(e,n)).subscribe(r)})}({loading:!0}),nt(n=>({...n,loading:!!n.loading}))):e.pipe(nt(n=>({...n,loading:!1})))}(bw(()=>this.ensureClient().mutate({...t})),t.useMutationLoading??this.useMutationLoading)}subscribe(t,n){const r=wi(ww(this.ensureClient().subscribe({...t})));return n&&!0!==n.useZone?r:Ew(r,this.ngZone)}getClient(){return this.client}setClient(t){this.client=t}get client(){return this._client}set client(t){if(this._client)throw new Error("Client has been already defined");this._client=t}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(!this._client)throw new Error("Client has not been defined yet")}}let Tw=(()=>{class e extends Cw{constructor(n,r,i,o){if(super(n,o),this._ngZone=n,this.map=new Map,r&&this.createDefault(r),i&&"object"==typeof i)for(let s in i)i.hasOwnProperty(s)&&this.create(i[s],s)}create(n,r){fd(r)?this.createDefault(n):this.createNamed(r,n)}default(){return this}use(n){return fd(n)?this.default():this.map.get(n)}createDefault(n){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new sd(n))}createNamed(n,r){if(this.map.has(n))throw new Error(`Client ${n} has been already created`);this.map.set(n,new Cw(this._ngZone,this.flags,new sd(r)))}removeClient(n){fd(n)?this._client=void 0:this.map.delete(n)}}return e.\u0275fac=function(n){return new(n||e)(j(je),j(_w,8),j(YR,8),j(KR,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function fd(e){return!e||"default"===e}const JR=[Tw];let XR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:JR}),e})();const Iw=function ZR(e,...t){return di(e,...t)};var Mw=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Co(Fx,{max:vn["cache.fragmentQueryDocuments"]||1e3,cache:_a})}return e.prototype.batch=function(t){var i,n=this;return this.performTransaction(function(){return i=t.update(n)},"string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0),i},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){return void 0===n&&(n=!!t.optimistic),this.read(b(b({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.watchFragment=function(t){var f,n=this,r=t.fragment,i=t.fragmentName,o=t.from,s=t.optimistic,a=void 0===s||s,c=Ht(t,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(r,i),l=b(b({},c),{returnPartialData:!0,id:"string"==typeof o?o:this.identify(o),query:u,optimistic:a});return new ae(function(d){return n.watch(b(b({},l),{immediate:!0,callback:function(h){if(!f||!Yb(u,{data:f?.result},{data:h.result})){var p={data:h.result,complete:!!h.complete};h.missing&&(p.missing=Oa(h.missing.map(function(m){return m.missing}))),f=h,d.next(p)}}}))})},e.prototype.readFragment=function(t,n){return void 0===n&&(n=!!t.optimistic),this.read(b(b({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,i=Ht(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,o=t.fragmentName,s=Ht(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(i,o),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var i=r.readQuery(t),o=n(i);return null==o?i:(r.writeQuery(b(b({},t),{data:o})),o)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var i=r.readFragment(t),o=n(i);return null==o?i:(r.writeFragment(b(b({},t),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(Mw.prototype.getMemoryInternals=Wx);var kw=function(e){function t(n,r,i,o){var s,a=e.call(this,n)||this;if(a.message=n,a.path=r,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var c=a.path.length-1;c>=0;--c)a.missing=((s={})[a.path[c]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return Mt(t,e),t}(Error);function dd(e){return!1!==globalThis.__DEV__&&function eL(e){var t=new Set([e]);return t.forEach(function(n){ye(n)&&function tL(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){ye(n[r])&&t.add(n[r])})}),e}(e),e}var Re=Object.prototype.hasOwnProperty;function Oo(e){return null==e}function Aw(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=Oo(r)?Oo(i)?void 0:{_id:i}:{id:r}),Oo(r)&&!Oo(i)&&(r=i),!Oo(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Ow={dataIdFromObject:Aw,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Nw(e){var t=e.canonizeResults;return void 0===t?Ow.canonizeResults:t}var xw=/^[_a-z][_0-9a-z]*/i;function Ln(e){var t=e.match(xw);return t?t[0]:e}function hd(e,t,n){return!!ye(t)&&(ve(t)?t.every(function(r){return hd(e,r,n)}):e.selections.every(function(r){if(xn(r)&&bo(r,n)){var i=Nn(r);return Re.call(t,i)&&(!r.selectionSet||hd(r.selectionSet,t[i],n))}return!0}))}function hi(e){return ye(e)&&!ne(e)&&!ve(e)}function Pw(e,t){var n=Ea(Ta(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var qa=Object.create(null),pd=function(){return qa},Fw=Object.create(null),No=function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,o){return dd(ne(i)?r.get(i.__ref,o):i&&i[o])},this.canRead=function(i){return ne(i)?r.has(i.__ref):"object"==typeof i},this.toReference=function(i,o){if("string"==typeof i)return ti(i);if(ne(i))return i;var s=r.policies.identify(i)[0];if(s){var a=ti(s);return o&&r.merge(s,i),a}}}return e.prototype.toObject=function(){return b({},this.data)},e.prototype.has=function(t){return void 0!==this.lookup(t,!0)},e.prototype.get=function(t,n){if(this.group.depend(t,n),Re.call(this.data,t)){var r=this.data[t];if(r&&Re.call(r,n))return r[n]}return"__typename"===n&&Re.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof Bn?this.parent.get(t,n):void 0},e.prototype.lookup=function(t,n){return n&&this.group.depend(t,"__exists"),Re.call(this.data,t)?this.data[t]:this instanceof Bn?this.parent.lookup(t,n):this.policies.rootTypenamesById[t]?Object.create(null):void 0},e.prototype.merge=function(t,n){var i,r=this;ne(t)&&(t=t.__ref),ne(n)&&(n=n.__ref);var o="string"==typeof t?this.lookup(i=t):t,s="string"==typeof n?this.lookup(i=n):n;if(s){R("string"==typeof i,1);var a=new Pn(sL).merge(o,s);if(this.data[i]=a,a!==o&&(delete this.refs[i],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(s).forEach(function(u){if(!o||o[u]!==a[u]){c[u]=1;var l=Ln(u);l!==u&&!r.policies.hasKeyArgs(a.__typename,l)&&(c[l]=1),void 0===a[u]&&!(r instanceof Bn)&&delete a[u]}}),c.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[i]===a.__typename&&delete c.__typename,Object.keys(c).forEach(function(u){return r.group.dirty(i,u)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var o=Object.create(null),s=!1,a=!0,c={DELETE:qa,INVALIDATE:Fw,isReference:ne,toReference:this.toReference,canRead:this.canRead,readField:function(u,l){return r.policies.readField("string"==typeof u?{fieldName:u,from:l||ti(t)}:u,{store:r})}};if(Object.keys(i).forEach(function(u){var l=Ln(u),f=i[u];if(void 0!==f){var d="function"==typeof n?n:n[u]||n[l];if(d){var h=d===pd?qa:d(dd(f),b(b({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(t,u)}));if(h===Fw)r.group.dirty(t,u);else if(h===qa&&(h=void 0),h!==f&&(o[u]=h,s=!0,f=h,!1!==globalThis.__DEV__)){var p=function(_){if(void 0===r.lookup(_.__ref))return!1!==globalThis.__DEV__&&R.warn(2,_),!0};if(ne(h))p(h);else if(Array.isArray(h))for(var m=!1,v=void 0,g=0,D=h;g0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Bn?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(s){Re.call(r,s)&&(Object.keys(t.findChildRefIds(s)).forEach(n.add,n),delete r[s])});var i=Object.keys(r);if(i.length){for(var o=this;o instanceof Bn;)o=o.parent;i.forEach(function(s){return o.delete(s)})}return i},e.prototype.findChildRefIds=function(t){if(!Re.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(o){ne(o)&&(n[o.__ref]=!0),ye(o)&&Object.keys(o).forEach(function(s){var a=o[s];ye(a)&&i.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Rw=function(){function e(t,n){void 0===n&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?qb():null,this.keyMaker=new Fn(ii)},e.prototype.depend=function(t,n){if(this.d){this.d(md(t,n));var r=Ln(n);r!==n&&this.d(md(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(md(t,n),"__exists"===n?"forget":"setDirty")},e}();function md(e,t){return t+"#"+e}function Lw(e,t){xo(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(n){function r(i){var s=i.resultCaching,c=i.seed,u=n.call(this,i.policies,new Rw(void 0===s||s))||this;return u.stump=new oL(u),u.storageTrie=new Fn(ii),c&&u.replace(c),u}return Mt(r,n),r.prototype.addLayer=function(i,o){return this.stump.addLayer(i,o)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(e);e.Root=t}(No||(No={}));var Bn=function(e){function t(n,r,i,o){var s=e.call(this,r.policies,o)||this;return s.id=n,s.parent=r,s.replay=i,s.group=o,i(s),s}return Mt(t,e),t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(o){var s=r.data[o],a=i.lookup(o);a?s?s!==a&&Object.keys(s).forEach(function(c){le(s[c],a[c])||r.group.dirty(o,c)}):(r.group.dirty(o,"__exists"),Object.keys(a).forEach(function(c){r.group.dirty(o,c)})):r.delete(o)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return b(b({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Re.call(this.data,n)?b(b({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t}(No),oL=function(e){function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new Rw(n.group.caching,n.group))||this}return Mt(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t}(Bn);function sL(e,t,n){var r=e[n],i=t[n];return le(r,i)?r:i}function xo(e){return!!(e instanceof No&&e.group.caching)}var Bw=function(){function e(){this.known=new(nb?WeakSet:Set),this.pool=new Fn(ii),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return ye(t)&&this.known.has(t)},e.prototype.pass=function(t){if(ye(t)){var n=function aL(e){return ye(e)?ve(e)?e.slice(0):b({__proto__:Object.getPrototypeOf(e)},e):e}(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(ye(t)){var r=this.passes.get(t);if(r)return r;switch(Object.getPrototypeOf(t)){case Array.prototype:if(this.known.has(t))return t;var o=t.map(this.admit,this);return(s=this.pool.lookupArray(o)).array||(this.known.add(s.array=o),!1!==globalThis.__DEV__&&Object.freeze(o)),s.array;case null:case Object.prototype:if(this.known.has(t))return t;var a=Object.getPrototypeOf(t),c=[a],u=this.sortedKeys(t);c.push(u.json);var s,l=c.length;if(u.sorted.forEach(function(h){c.push(n.admit(t[h]))}),!(s=this.pool.lookupArray(c)).object){var f=s.object=Object.create(a);this.known.add(f),u.sorted.forEach(function(h,p){f[h]=c[l+p]}),!1!==globalThis.__DEV__&&Object.freeze(f)}return s.object}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var i=JSON.stringify(n);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:n,json:i})}return r.keys},e}();function jw(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var cL=function(){function e(t){var n=this;this.knownResults=new(ii?WeakMap:Map),this.config=ui(t,{addTypename:!1!==t.addTypename,canonizeResults:Nw(t)}),this.canon=t.canon||new Bw,this.executeSelectionSet=Co(function(r){var i,o=r.context.canonizeResults,s=jw(r);s[3]=!o;var a=(i=n.executeSelectionSet).peek.apply(i,s);return a?o?b(b({},a),{result:n.canon.admit(a.result)}):a:(Lw(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||vn["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:jw,makeCacheKey:function(r,i,o,s){if(xo(o.store))return o.store.makeCacheKey(r,ne(i)?i.__ref:i,o.varString,s)}}),this.executeSubSelectedArray=Co(function(r){return Lw(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||vn["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var i=r.field,o=r.array,s=r.context;if(xo(s.store))return s.store.makeCacheKey(i,o,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Bw},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,o=void 0===i?"ROOT_QUERY":i,s=t.variables,a=t.returnPartialData,c=void 0===a||a,u=t.canonizeResults,l=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;s=b(b({},Af(KD(r))),s);var p,d=ti(o),h=this.executeSelectionSet({selectionSet:vo(r).selectionSet,objectOrReference:d,enclosingRef:d,context:b({store:n,query:r,policies:f,variables:s,varString:On(s),canonizeResults:l},Pw(r,this.config.fragments))});if(h.missing&&(p=[new kw(uL(h.missing),h.missing,r,s)],!c))throw p[0];return{result:h.result,complete:!p,missing:p}},e.prototype.isFresh=function(t,n,r,i){if(xo(i.store)&&this.knownResults.get(t)===r){var o=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(o&&t===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,o=t.enclosingRef,s=t.context;if(ne(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var d,a=s.variables,c=s.policies,l=s.store.getFieldValue(i,"__typename"),f=[],h=new Pn;function p(y,w){var _;return y.missing&&(d=h.merge(d,((_={})[w]=y.missing,_))),y.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&f.push({__typename:l});var m=new Set(r.selections);m.forEach(function(y){var w,_;if(bo(y,a))if(xn(y)){var C=c.readField({fieldName:y.name.value,field:y,variables:s.variables,from:i},s),U=Nn(y);void 0===C?Vf.added(y)||(d=h.merge(d,((w={})[U]="Can't find field '".concat(y.name.value,"' on ").concat(ne(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),w))):ve(C)?C.length>0&&(C=p(n.executeSubSelectedArray({field:y,array:C,enclosingRef:o,context:s}),U)):y.selectionSet?null!=C&&(C=p(n.executeSelectionSet({selectionSet:y.selectionSet,objectOrReference:C,enclosingRef:ne(C)?C:o,context:s}),U)):s.canonizeResults&&(C=n.canon.pass(C)),void 0!==C&&f.push(((_={})[U]=C,_))}else{var z=Sa(y,s.lookupFragment);if(!z&&y.kind===M.FRAGMENT_SPREAD)throw et(9,y.name.value);z&&c.fragmentMatches(z,l)&&z.selectionSet.selections.forEach(m.add,m)}});var g={result:Oa(f),missing:d},D=s.canonizeResults?this.canon.admit(g):dd(g);return D.result&&this.knownResults.set(D.result,r),D},e.prototype.execSubSelectedArrayImpl=function(t){var a,n=this,r=t.field,i=t.array,o=t.enclosingRef,s=t.context,c=new Pn;function u(l,f){var d;return l.missing&&(a=c.merge(a,((d={})[f]=l.missing,d))),l.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(l,f){return null===l?null:ve(l)?u(n.executeSubSelectedArray({field:r,array:l,enclosingRef:o,context:s}),f):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:l,enclosingRef:ne(l)?l:o,context:s}),f):(!1!==globalThis.__DEV__&&function lL(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){ye(i)&&(R(!ne(i),10,function rL(e,t){return ne(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,i),t.name.value),Object.values(i).forEach(r.add,r))})}}(s.store,r,l),l)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:a}},e}();function uL(e){try{JSON.stringify(e,function(t,n){if("string"==typeof n)throw n;return n})}catch(t){return t}}var Vw=Object.create(null);function gd(e){var t=JSON.stringify(e);return Vw[t]||(Vw[t]=Object.create(null))}function Hw(e){var t=gd(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(s,a){return r.readField(a,s)},o=r.keyObject=yd(e,function(s){var a=pi(r.storeObject,s,i);return void 0===a&&n!==r.storeObject&&Re.call(n,s[0])&&(a=pi(n,s,qw)),R(void 0!==a,4,s.join("."),n),a});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function Uw(e){var t=gd(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,o=r.variables,s=r.fieldName,a=yd(e,function(u){var l=u[0],f=l.charAt(0);if("@"!==f)if("$"!==f){if(n)return pi(n,u)}else{var m=l.slice(1);if(o&&Re.call(o,m)){var v=u.slice(0);return v[0]=m,pi(o,v)}}else if(i&&en(i.directives)){var d=l.slice(1),h=i.directives.find(function(g){return g.name.value===d}),p=h&&Ca(h,o);return p&&pi(p,u.slice(1))}}),c=JSON.stringify(a);return(n||"{}"!==c)&&(s+=":"+c),s})}function yd(e,t){var n=new Pn;return $w(e).reduce(function(r,i){var o,s=t(i);if(void 0!==s){for(var a=i.length-1;a>=0;--a)(o={})[i[a]]=s,s=o;r=n.merge(r,s)}return r},Object.create(null))}function $w(e){var t=gd(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,o){ve(i)?($w(i).forEach(function(s){return n.push(r.concat(s))}),r.length=0):(r.push(i),ve(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function qw(e,t){return e[t]}function pi(e,t,n){return n=n||qw,zw(t.reduce(function r(i,o){return ve(i)?i.map(function(s){return r(s,o)}):i&&n(i,o)},e))}function zw(e){return ye(e)?ve(e)?e.map(zw):yd(Object.keys(e).sort(),function(t){return pi(e,t)}):e}function vd(e){return void 0!==e.args?e.args:e.field?Ca(e.field,e.variables):null}var fL=function(){},Ww=function(e,t){return t.fieldName},Gw=function(e,t,n){return(0,n.mergeObjects)(e,t)},Qw=function(e,t){return t},dL=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=b({dataIdFromObject:Aw},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,i=this,o=n&&(n.typename||(null===(r=n.storeObject)||void 0===r?void 0:r.__typename))||t.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var c,s=n&&n.storeObject||t,a=b(b({},n),{typename:o,storeObject:s,readField:n&&n.readField||function(){var d=Dd(arguments,s);return i.readField(d,{store:i.cache.data,variables:d.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l(b(b({},t),s),a);if(!ve(f)){c=f;break}l=Hw(f)}return c=c?String(c):void 0,a.keyObject?[c,a.keyObject]:[c]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var i=t[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,c=Ht(i,["queryType","mutationType","subscriptionType"]);o&&n.setRootTypename("Query",r),s&&n.setRootTypename("Mutation",r),a&&n.setRootTypename("Subscription",r),Re.call(n.toBeAdded,r)?n.toBeAdded[r].push(c):n.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(t,n){var r=this,i=this.getTypePolicy(t),o=n.keyFields,s=n.fields;function a(c,u){c.merge="function"==typeof u?u:!0===u?Gw:!1===u?Qw:c.merge}a(i,n.merge),i.keyFn=!1===o?fL:ve(o)?Hw(o):"function"==typeof o?o:i.keyFn,s&&Object.keys(s).forEach(function(c){var u=r.getFieldPolicy(t,c,!0),l=s[c];if("function"==typeof l)u.read=l;else{var f=l.keyArgs,d=l.read,h=l.merge;u.keyFn=!1===f?Ww:ve(f)?Uw(f):"function"==typeof f?f:u.keyFn,"function"==typeof d&&(u.read=d),a(u,h)}u.read&&u.merge&&(u.keyFn=u.keyFn||Ww)})},e.prototype.setRootTypename=function(t,n){void 0===n&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(R(!i||i===t,5,t),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(i){n.getSupertypeSet(i,!0).add(r);var o=i.match(xw);(!o||o[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Re.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(s,a){if(s.test(t)){var c=n.supertypeMap.get(a);c&&c.forEach(function(u){return i.add(u)})}})),i&&i.size&&i.forEach(function(s){var a=n.getTypePolicy(s),c=a.fields,u=Ht(a,["fields"]);Object.assign(r,u),Object.assign(r.fields,c)})}var o=this.toBeAdded[t];return o&&o.length&&o.splice(0).forEach(function(s){n.updateTypePolicy(t,s)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var i=this.getTypePolicy(t).fields;return i[n]||r&&(i[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,i){var o=this;if(!t.typeCondition)return!0;if(!n)return!1;var s=t.typeCondition.name.value;if(n===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(n,!0),c=[a],u=function(p){var m=o.getSupertypeSet(p,!1);m&&m.size&&c.indexOf(m)<0&&c.push(m)},l=!(!r||!this.fuzzySubtypes.size),f=!1,d=0;d1?e[1]:t}:(s=b({},r),Re.call(s,"from")||(s.from=t)),!1!==globalThis.__DEV__&&void 0===s.from&&!1!==globalThis.__DEV__&&R.warn(7,PD(Array.from(e))),void 0===s.variables&&(s.variables=n),s}function Yw(e){return function(n,r){if(ve(n)||ve(r))throw et(8);if(ye(n)&&ye(r)){var i=e.getFieldValue(n,"__typename"),o=e.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(ne(n)&&hi(r))return e.merge(n.__ref,r),n;if(hi(n)&&ne(r))return e.merge(n,r.__ref),r;if(hi(n)&&hi(r))return b(b({},n),r)}return r}}function bd(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:b(b({},e),{clientOnly:t,deferred:n})),i}var hL=function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,i=n.query,o=n.result,s=n.dataId,a=n.variables,c=n.overwrite,u=yo(i),l=function iL(){return new Pn}();a=b(b({},Af(u)),a);var f=b(b({store:t,written:Object.create(null),merge:function(h,p){return l.merge(h,p)},variables:a,varString:On(a)},Pw(i,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:s,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:f});if(!ne(d))throw et(11,o);return f.incomingById.forEach(function(h,p){var m=h.storeObject,v=h.mergeTree,g=h.fieldNodeSet,D=ti(p);if(v&&v.map.size){var y=r.applyMerges(v,D,m,f);if(ne(y))return;m=y}if(!1!==globalThis.__DEV__&&!f.overwrite){var w=Object.create(null);g.forEach(function(U){U.selectionSet&&(w[U.name.value]=!0)}),Object.keys(m).forEach(function(U){(function(U){return!0===w[Ln(U)]})(U)&&!function(U){var z=v&&v.map.get(U);return Boolean(z&&z.info&&z.info.merge)}(U)&&function pL(e,t,n,r){var i=function(f){var d=r.getFieldValue(f,n);return"object"==typeof d&&d},o=i(e);if(o){var s=i(t);if(s&&!ne(o)&&!le(o,s)&&!Object.keys(o).every(function(f){return void 0!==r.getFieldValue(s,f)})){var a=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=Ln(n),u="".concat(a,".").concat(c);if(!eE.has(u)){eE.add(u);var l=[];!ve(o)&&!ve(s)&&[o,s].forEach(function(f){var d=r.getFieldValue(f,"__typename");"string"==typeof d&&!l.includes(d)&&l.push(d)}),!1!==globalThis.__DEV__&&R.warn(14,c,a,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",u,b({},o),b({},s))}}}}(D,m,U,f.store)})}t.merge(p,m)}),t.retain(d.__ref),d},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,o=t.selectionSet,s=t.context,a=t.mergeTree,c=this.cache.policies,u=Object.create(null),l=r&&c.rootTypenamesById[r]||Mf(i,o,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof l&&(u.__typename=l);var f=function(){var y=Dd(arguments,u,s.variables);if(ne(y.from)){var w=s.incomingById.get(y.from.__ref);if(w){var _=c.readField(b(b({},y),{from:w.storeObject}),s);if(void 0!==_)return _}}return c.readField(y,s)},d=new Set;this.flattenFields(o,i,s,l).forEach(function(y,w){var _,C=Nn(w),U=i[C];if(d.add(w),void 0!==U){var z=c.getStoreFieldName({typename:l,fieldName:w.name.value,field:w,variables:y.variables}),ie=Xw(a,z),De=n.processFieldValue(U,w,w.selectionSet?bd(y,!1,!1):y,ie),gi=void 0;w.selectionSet&&(ne(De)||hi(De))&&(gi=f("__typename",De));var yi=c.getMergeFunction(l,w.name.value,gi);yi?ie.info={field:w,typename:l,merge:yi}:Zw(a,z),u=y.merge(u,((_={})[z]=De,_))}else!1!==globalThis.__DEV__&&!y.clientOnly&&!y.deferred&&!Vf.added(w)&&!c.getReadFunction(l,w.name.value)&&!1!==globalThis.__DEV__&&R.error(12,Nn(w),i)});try{var h=c.identify(i,{typename:l,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:u,readField:f}),m=h[1];r=r||h[0],m&&(u=s.merge(u,m))}catch(y){if(!r)throw y}if("string"==typeof r){var v=ti(r),g=s.written[r]||(s.written[r]=[]);if(g.indexOf(o)>=0||(g.push(o),this.reader&&this.reader.isFresh(i,v,o,s)))return v;var D=s.incomingById.get(r);return D?(D.storeObject=s.merge(D.storeObject,u),D.mergeTree=wd(D.mergeTree,a),d.forEach(function(y){return D.fieldNodeSet.add(y)})):s.incomingById.set(r,{storeObject:u,mergeTree:za(a)?void 0:a,fieldNodeSet:d}),v}return u},e.prototype.processFieldValue=function(t,n,r,i){var o=this;return n.selectionSet&&null!==t?ve(t)?t.map(function(s,a){var c=o.processFieldValue(s,n,r,Xw(i,a));return Zw(i,a),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i}):!1!==globalThis.__DEV__?Kb(t):t},e.prototype.flattenFields=function(t,n,r,i){void 0===i&&(i=Mf(n,t,r.fragmentMap));var o=new Map,s=this.cache.policies,a=new Fn(!1);return function c(u,l){var f=a.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach(function(d){if(bo(d,r.variables)){var h=l.clientOnly,p=l.deferred;if(!(h&&p)&&en(d.directives)&&d.directives.forEach(function(g){var D=g.name.value;if("client"===D&&(h=!0),"defer"===D){var y=Ca(g,r.variables);(!y||!1!==y.if)&&(p=!0)}}),xn(d)){var m=o.get(d);m&&(h=h&&m.clientOnly,p=p&&m.deferred),o.set(d,bd(r,h,p))}else{var v=Sa(d,r.lookupFragment);if(!v&&d.kind===M.FRAGMENT_SPREAD)throw et(13,d.name.value);v&&s.fragmentMatches(v,i,n,r.variables)&&c(v.selectionSet,bd(r,h,p))}}}))}(t,r),o},e.prototype.applyMerges=function(t,n,r,i,o){var s,a=this;if(t.map.size&&!ne(r)){var c=ve(r)||!ne(n)&&!hi(n)?void 0:n,u=r;c&&!o&&(o=[ne(c)?c.__ref:c]);var l,f=function(d,h){return ve(d)?"number"==typeof h?d[h]:void 0:i.store.getFieldValue(d,String(h))};t.map.forEach(function(d,h){var p=f(c,h),m=f(u,h);if(void 0!==m){o&&o.push(h);var v=a.applyMerges(d,p,m,i,o);v!==m&&(l=l||new Map).set(h,v),o&&R(o.pop()===h)}}),l&&(r=ve(u)?u.slice(0):b({},u),l.forEach(function(d,h){r[h]=d}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,o&&(s=i.store).getStorage.apply(s,o)):r},e}(),Jw=[];function Xw(e,t){var n=e.map;return n.has(t)||n.set(t,Jw.pop()||{map:new Map}),n.get(t)}function wd(e,t){if(e===t||!t||za(t))return e;if(!e||za(e))return t;var n=e.info&&t.info?b(b({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var s=new Set(t.map.keys());e.map.forEach(function(a,c){o.map.set(c,wd(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){o.map.set(a,wd(t.map.get(a),e.map.get(a)))})}return o}function za(e){return!e||!(e.info||e.map.size)}function Zw(e,t){var n=e.map,r=n.get(t);r&&za(r)&&(Jw.push(r),n.delete(t))}var eE=new Set,tE=function(e){function t(n){void 0===n&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new Wb(Vf),r.assumeImmutableResults=!0,r.makeVar=aR,r.txCount=0,r.config=function nL(e){return ui(Ow,e)}(n),r.addTypename=!!r.config.addTypename,r.policies=new dL({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return Mt(t,e),t.prototype.init=function(){var n=this.data=new No.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new hL(this,this.storeReader=new cL({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Nw(this.config),canon:n?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=Co(function(s,a){return r.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize||vn["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(s){var a=s.optimistic?r.optimisticData:r.data;if(xo(a))return a.makeCacheKey(s.query,s.callback,On({optimistic:s.optimistic,id:s.id,variables:s.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(s){return s.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return void 0===n&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,i=void 0!==r&&r;try{return this.storeReader.diffQueryAgainstStore(b(b({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(o){if(o instanceof kw)return null;throw o}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&!1!==n.broadcast&&this.broadcastWatches()}},t.prototype.modify=function(n){if(Re.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&!1!==n.broadcast&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(b(b({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||function sR(e){Io(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&sw(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;On.reset(),xa.reset(),this.addTypenameTransform.resetCache(),null===(r=this.config.fragments)||void 0===r||r.resetCaches();var i=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),i},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(ne(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){!1!==globalThis.__DEV__&&R.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Re.call(n,"id"))return!1;n=b(b({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&!1!==n.broadcast&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),On.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),sw(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var u,r=this,i=n.update,o=n.optimistic,s=void 0===o||o,a=n.removeOptimistic,c=n.onWatchUpdated,l=function(d){var p=r.data,m=r.optimisticData;++r.txCount,d&&(r.data=r.optimisticData=d);try{return u=i(r)}finally{--r.txCount,r.data=p,r.optimisticData=m}},f=new Set;return c&&!this.txCount&&this.broadcastWatches(b(b({},n),{onWatchUpdated:function(d){return f.add(d),!1}})),"string"==typeof s?this.optimisticData=this.optimisticData.addLayer(s,l):!1===s?l(this.data):l(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),c&&f.size?(this.broadcastWatches(b(b({},n),{onWatchUpdated:function(d,h){var p=c.call(this,d,h);return!1!==p&&f.delete(d),p}})),f.size&&f.forEach(function(d){return r.maybeBroadcastWatch.dirty(d)})):this.broadcastWatches(n),u},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||null!==r})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(i){return r.maybeBroadcastWatch(i,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var i=n.lastDiff,o=this.diff(n);r&&(n.optimistic&&"string"==typeof r.optimistic&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&!1===r.onWatchUpdated.call(this,n,o,i))||(!i||!le(i.result,o.result))&&n.callback(n.lastDiff=o,i)},t}(Mw);!1!==globalThis.__DEV__&&(tE.prototype.getMemoryInternals=zx);class Wa{}class Ed{}class Vt{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let i;if(i="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(o=>o.toString()),i.length>0){const o=n.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(n,o)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Vt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Vt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Vt?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const i=("a"===t.op?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":const o=t.value;if(o){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class vL{encodeKey(t){return nE(t)}encodeValue(t){return nE(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const bL=/%(\d[a-f0-9])/gi,wL={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function nE(e){return encodeURIComponent(e).replace(bL,(t,n)=>wL[n]??t)}function Ga(e){return`${e}`}class jn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new vL,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function DL(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{const o=i.indexOf("="),[s,a]=-1==o?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],i=Array.isArray(r)?r.map(Ga):[Ga(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new jn({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Ga(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const i=r.indexOf(Ga(t.value));-1!==i&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class EL{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function rE(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function iE(e){return typeof Blob<"u"&&e instanceof Blob}function oE(e){return typeof FormData<"u"&&e instanceof FormData}class Po{constructor(t,n,r,i){let o;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function SL(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Vt),this.context||(this.context=new EL),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(d,t.setHeaders[d]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((f,d)=>f.set(d,t.setParams[d]),u)),new Po(n,r,o,{params:u,headers:c,context:l,reportProgress:a,responseType:i,withCredentials:s})}}var Ae=(()=>((Ae=Ae||{})[Ae.Sent=0]="Sent",Ae[Ae.UploadProgress=1]="UploadProgress",Ae[Ae.ResponseHeader=2]="ResponseHeader",Ae[Ae.DownloadProgress=3]="DownloadProgress",Ae[Ae.Response=4]="Response",Ae[Ae.User=5]="User",Ae))();class Sd{constructor(t,n=200,r="OK"){this.headers=t.headers||new Vt,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class _d extends Sd{constructor(t={}){super(t),this.type=Ae.ResponseHeader}clone(t={}){return new _d({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Qa extends Sd{constructor(t={}){super(t),this.type=Ae.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Qa({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class sE extends Sd{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Cd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let aE=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Po)o=n;else{let c,u;c=i.headers instanceof Vt?i.headers:new Vt(i.headers),i.params&&(u=i.params instanceof jn?i.params:new jn({fromObject:i.params})),o=new Po(n,r,void 0!==i.body?i.body:null,{headers:c,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=function mL(...e){return wi(e,zo(e))}(o).pipe(function gL(e,t){return fe(t)?qo(e,t,1):qo(e,1)}(c=>this.handler.handle(c)));if(n instanceof Po||"events"===i.observe)return s;const a=s.pipe(function yL(e,t){return $n((n,r)=>{let i=0;n.subscribe(bi(r,o=>e.call(t,o,i++)&&r.next(o)))})}(c=>c instanceof Qa));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(nt(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(nt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(nt(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new jn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Cd(i,r))}post(n,r,i={}){return this.request("POST",n,Cd(i,r))}put(n,r,i={}){return this.request("PUT",n,Cd(i,r))}}return e.\u0275fac=function(n){return new(n||e)(j(Wa))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function cE(e,t){return t(e)}function CL(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}const IL=new P("HTTP_INTERCEPTORS"),Fo=new P("HTTP_INTERCEPTOR_FNS");function ML(){let e=null;return(t,n)=>(null===e&&(e=(_i(IL,{optional:!0})??[]).reduceRight(CL,cE)),e(t,n))}let uE=(()=>{class e extends Wa{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set(this.injector.get(Fo)));this.chain=r.reduceRight((i,o)=>function TL(e,t,n){return(r,i)=>n.runInContext(()=>t(r,o=>e(o,i)))}(i,o,this.injector),cE)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(j(Ed),j(Jn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const NL=/^\)\]\}',?\n/;let fE=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new be(r=>{const i=this.xhrFactory.build();if(i.open(n.method,n.urlWithParams),n.withCredentials&&(i.withCredentials=!0),n.headers.forEach((h,p)=>i.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&i.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();i.responseType="json"!==h?h:"text"}const o=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=i.statusText||"OK",p=new Vt(i.getAllResponseHeaders()),m=function xL(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||n.url;return s=new _d({headers:p,status:i.status,statusText:h,url:m}),s},c=()=>{let{headers:h,status:p,statusText:m,url:v}=a(),g=null;204!==p&&(g=typeof i.response>"u"?i.responseText:i.response),0===p&&(p=g?200:0);let D=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof g){const y=g;g=g.replace(NL,"");try{g=""!==g?JSON.parse(g):null}catch(w){g=y,D&&(D=!1,g={error:w,text:g})}}D?(r.next(new Qa({body:g,headers:h,status:p,statusText:m,url:v||void 0})),r.complete()):r.error(new sE({error:g,headers:h,status:p,statusText:m,url:v||void 0}))},u=h=>{const{url:p}=a(),m=new sE({error:h,status:i.status||0,statusText:i.statusText||"Unknown Error",url:p||void 0});r.error(m)};let l=!1;const f=h=>{l||(r.next(a()),l=!0);let p={type:Ae.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&i.responseText&&(p.partialText=i.responseText),r.next(p)},d=h=>{let p={type:Ae.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return i.addEventListener("load",c),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),n.reportProgress&&(i.addEventListener("progress",f),null!==o&&i.upload&&i.upload.addEventListener("progress",d)),i.send(o),r.next({type:Ae.Sent}),()=>{i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",c),i.removeEventListener("timeout",u),n.reportProgress&&(i.removeEventListener("progress",f),null!==o&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(j(aD))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const Td=new P("XSRF_ENABLED"),dE=new P("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),hE=new P("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class pE{}let RL=(()=>{class e{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Jv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(j(Zt),j(Sl),j(dE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function LL(e,t){const n=e.url.toLowerCase();if(!_i(Td)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=_i(pE).getToken(),i=_i(hE);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var _e=(()=>((_e=_e||{})[_e.Interceptors=0]="Interceptors",_e[_e.LegacyInterceptors=1]="LegacyInterceptors",_e[_e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",_e[_e.NoXsrfProtection=3]="NoXsrfProtection",_e[_e.JsonpSupport=4]="JsonpSupport",_e[_e.RequestsMadeViaParent=5]="RequestsMadeViaParent",_e))();function mi(e,t){return{\u0275kind:e,\u0275providers:t}}function BL(...e){const t=[aE,fE,uE,{provide:Wa,useExisting:uE},{provide:Ed,useExisting:fE},{provide:Fo,useValue:LL,multi:!0},{provide:Td,useValue:!0},{provide:pE,useClass:RL}];for(const n of e)t.push(...n.\u0275providers);return function iC(e){return{\u0275providers:e}}(t)}const mE=new P("LEGACY_INTERCEPTOR_FN");let VL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:[BL(mi(_e.LegacyInterceptors,[{provide:mE,useFactory:ML},{provide:Fo,useExisting:mE,multi:!0}]))]}),e})();class HL extends ri{constructor(t,n){super(),this.httpClient=t,this.options=n,this.print=db,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new ae(i=>{const o=r.getContext(),s=(D,y)=>function ur(...e){const t=e.find(n=>typeof n<"u");return typeof t>"u"?e[e.length-1]:t}(o[D],this.options[D],y);let a=s("method","POST");const c=s("includeQuery",!0),u=s("includeExtensions",!1),l=s("uri","graphql"),f=s("withCredentials"),d=s("useMultipart"),h=!0===this.options.useGETForQueries,p=r.query.definitions.some(D=>"OperationDefinition"===D.kind&&"query"===D.operation);h&&p&&(a="GET");const m={method:a,url:"function"==typeof l?l(r):l,body:{operationName:r.operationName,variables:r.variables},options:{withCredentials:f,useMultipart:d,headers:this.options.headers}};u&&(m.body.extensions=r.extensions),c&&(m.body.query=this.print(r.query));const v=function vE(e){let t=e.headers&&e.headers instanceof Vt?e.headers:new Vt(e.headers);if(e.clientAwareness){const{name:n,version:r}=e.clientAwareness;n&&!t.has("apollographql-client-name")&&(t=t.set("apollographql-client-name",n)),r&&!t.has("apollographql-client-version")&&(t=t.set("apollographql-client-version",r))}return t}(o);m.options.headers=((e,t)=>e&&t?t.keys().reduce((r,i)=>r.set(i,t.getAll(i)),e):t||e)(m.options.headers,v);const g=((e,t,n)=>{const r=-1!==["POST","PUT","PATCH"].indexOf(e.method.toUpperCase()),o=e.body.length;let a,s=e.options&&e.options.useMultipart;if(s){if(o)return new be(u=>u.error(new Error("File upload is not available when combined with Batching")));if(!r)return new be(u=>u.error(new Error("File upload is not available when GET is used")));if(!n)return new be(u=>u.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));a=n(e.body),s=!!a.files.size}let c={};if(o){if(!r)return new be(u=>u.error(new Error("Batching is not available for GET requests")));c={body:e.body}}else c=r?{body:s?a.clone:e.body}:{params:Object.keys(e.body).reduce((f,d)=>{const h=e.body[d];return f[d]=-1!==["variables","extensions"].indexOf(d.toLowerCase())?JSON.stringify(h):h,f},{})};if(s&&r){const u=new FormData;u.append("operations",JSON.stringify(c.body));const l={},f=a.files;let d=0;f.forEach(h=>{l[++d]=h}),u.append("map",JSON.stringify(l)),d=0,f.forEach((h,p)=>{u.append(++d+"",p,p.name)}),c.body=u}return t.request(e.method,e.url,{observe:"response",responseType:"json",reportProgress:!1,...c,...e.options})})(m,this.httpClient,this.options.extractFiles).subscribe({next:D=>{r.setContext({response:D}),i.next(D.body)},error:D=>i.error(D),complete:()=>i.complete()});return()=>{g.closed||g.unsubscribe()}})}request(t){return this.requester(t)}}let UL=(()=>{class e{constructor(n){this.httpClient=n}create(n){return new HL(this.httpClient,n)}}return e.\u0275fac=function(n){return new(n||e)(j(aE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$L=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=_n({type:e}),e.\u0275inj=nn({providers:[{provide:_w,useFactory:t=>{const n=new tE;return{link:t.create({uri:"https://graphqlpokemon.favware.tech/v7"}),cache:n,defaultOptions:{query:{fetchPolicy:"network-only",errorPolicy:"all"}}}},deps:[UL]}],imports:[XR]}),e})();class Ro extends $o{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}let yt=(()=>{class e{constructor(){this.raidTierSource=new Ro(""),this.pokemonListSource=new Ro(""),this.teraTypeSource=new Ro(""),this.moveListSource=new Ro(""),this.loadingSource=new Ro(!1),this.raidTier=this.raidTierSource.asObservable(),this.pokemonList=this.pokemonListSource.asObservable(),this.teraType=this.teraTypeSource.asObservable(),this.moveList=this.moveListSource.asObservable(),this.loading=this.loadingSource.asObservable()}changeRaidTier(n){this.raidTierSource.next(n)}changePokemon(n){this.pokemonListSource.next(n)}changeTeraType(n){this.teraTypeSource.next(n)}changeMoveList(n){this.moveListSource.next(n)}changeLoading(n){this.loadingSource.next(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const qL=Iw` query GetPokemon($pokemon: PokemonEnum!) { getPokemon(pokemon: $pokemon) { abilities {