diff --git a/index.html b/index.html index 966166d4..77265325 100644 --- a/index.html +++ b/index.html @@ -30,6 +30,6 @@ - + \ No newline at end of file diff --git a/main.1f44e814426e2883.js b/main.1f44e814426e2883.js deleted file mode 100644 index fe441370..00000000 --- a/main.1f44e814426e2883.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict";(self.webpackChunktera_raid_info=self.webpackChunktera_raid_info||[]).push([[179],{742:()=>{function de(e){return"function"==typeof e}function No(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 xo=No(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 fr(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(de(r))try{r()}catch(o){t=o instanceof xo?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{Td(o)}catch(s){t=t??[],s instanceof xo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new xo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Td(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)&&fr(n,t)}remove(t){const{_finalizers:n}=this;n&&fr(n,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const e=new It;return e.closed=!0,e})();const _d=It.EMPTY;function Cd(e){return e instanceof It||e&&"closed"in e&&de(e.remove)&&de(e.add)&&de(e.unsubscribe)}function Td(e){de(e)?e():e.unsubscribe()}const Vn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Po={setTimeout(e,t,...n){const{delegate:r}=Po;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Po;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Id(e){Po.setTimeout(()=>{const{onUnhandledError:t}=Vn;if(!t)throw e;t(e)})}function Md(){}const rw=Ga("C",void 0,void 0);function Ga(e,t,n){return{kind:e,value:t,error:n}}let Hn=null;function Fo(e){if(Vn.useDeprecatedSynchronousErrorHandling){const t=!Hn;if(t&&(Hn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Hn;if(Hn=null,n)throw r}}else e()}class Wa extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Cd(t)&&t.add(this)):this.destination=lw}static create(t,n,r){return new mi(t,n,r)}next(t){this.isStopped?Ka(function ow(e){return Ga("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Ka(function iw(e){return Ga("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ka(rw,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 aw=Function.prototype.bind;function Qa(e,t){return aw.call(e,t)}class cw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ro(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ro(r)}else Ro(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ro(n)}}}class mi extends Wa{constructor(t,n,r){let i;if(super(),de(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&Vn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Qa(t.next,o),error:t.error&&Qa(t.error,o),complete:t.complete&&Qa(t.complete,o)}):i=t}this.destination=new cw(i)}}function Ro(e){Vn.useDeprecatedSynchronousErrorHandling?function sw(e){Vn.useDeprecatedSynchronousErrorHandling&&Hn&&(Hn.errorThrown=!0,Hn.error=e)}(e):Id(e)}function Ka(e,t){const{onStoppedNotification:n}=Vn;n&&Po.setTimeout(()=>n(e,t))}const lw={closed:!0,next:Md,error:function uw(e){throw e},complete:Md},Lo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ad(e){return e}let Ee=(()=>{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 dw(e){return e&&e instanceof Wa||function fw(e){return e&&de(e.next)&&de(e.error)&&de(e.complete)}(e)&&Cd(e)}(n)?n:new mi(n,r,i);return Fo(()=>{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=Od(r))((i,o)=>{const s=new mi({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)}[Lo](){return this}pipe(...n){return function kd(e){return 0===e.length?Ad:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=Od(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Od(e){var t;return null!==(t=e??Vn.Promise)&&void 0!==t?t:Promise}const hw=No(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Bo=(()=>{class e extends Ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Nd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new hw}next(n){Fo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Fo(()=>{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(){Fo(()=>{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?_d:(this.currentObservers=null,o.push(n),new It(()=>{this.currentObservers=null,fr(o,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){const n=new Ee;return n.source=this,n}}return e.create=(t,n)=>new Nd(t,n),e})();class Nd extends Bo{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:_d}}function Un(e){return t=>{if(function pw(e){return de(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 gi(e,t,n,r,i){return new mw(e,t,n,r,i)}class mw extends Wa{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 Un((n,r)=>{let i=0;n.subscribe(gi(r,o=>{r.next(e.call(t,o,i++))}))})}var Ya=function(e,t){return(Ya=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}Ya(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 Rd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ld(e){return de(e?.then)}function Bd(e){return de(e[Lo])}function jd(e){return Symbol.asyncIterator&&de(e?.[Symbol.asyncIterator])}function Vd(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 Hd=function xw(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ud(e){return de(e?.[Hd])}function $d(e){return function Pd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(h){return new Promise(function(p,m){o.push([d,h,p,m])>1||a(d,h)})})}function a(d,h){try{!function c(d){d.value instanceof wn?Promise.resolve(d.value.v).then(u,l):f(o[0][2],d)}(r[d](h))}catch(p){f(o[0][3],p)}}function u(d){a("next",d)}function l(d){a("throw",d)}function f(d,h){d(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield wn(n.read());if(i)return yield wn(void 0);yield yield wn(r)}}finally{n.releaseLock()}})}function qd(e){return de(e?.getReader)}function Sn(e){if(e instanceof Ee)return e;if(null!=e){if(Bd(e))return function Pw(e){return new Ee(t=>{const n=e[Lo]();if(de(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Rd(e))return function Fw(e){return new Ee(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Id)})}(e);if(jd(e))return zd(e);if(Ud(e))return function Lw(e){return new Ee(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(qd(e))return function Bw(e){return zd($d(e))}(e)}throw Vd(e)}function zd(e){return new Ee(t=>{(function jw(e,t){var n,r,i,o;return Ht(this,void 0,void 0,function*(){try{for(n=Fd(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 _n(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 jo(e,t,n=1/0){return de(t)?jo((r,i)=>nt((o,s)=>t(r,o,i,s))(Sn(e(r,i))),n):("number"==typeof t&&(n=t),Un((r,i)=>function Vw(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;Sn(n(m,l++)).subscribe(gi(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(gi(t,h,()=>{f=!0,d()})),()=>{a?.()}}(r,i,e,n)))}function Gd(e=1/0){return jo(Ad,e)}const Wd=new Ee(e=>e.complete());function Za(e){return e[e.length-1]}function Vo(e){return function Uw(e){return e&&de(e.schedule)}(Za(e))?e.pop():void 0}function ec(e,t=0){return Un((n,r)=>{n.subscribe(gi(r,i=>_n(r,e,()=>r.next(i),t),()=>_n(r,e,()=>r.complete(),t),i=>_n(r,e,()=>r.error(i),t)))})}function Qd(e,t=0){return Un((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Kd(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ee(n=>{_n(n,t,()=>{const r=e[Symbol.asyncIterator]();_n(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function yi(e,t){return t?function Kw(e,t){if(null!=e){if(Bd(e))return function qw(e,t){return Sn(e).pipe(Qd(t),ec(t))}(e,t);if(Rd(e))return function Gw(e,t){return new Ee(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Ld(e))return function zw(e,t){return Sn(e).pipe(Qd(t),ec(t))}(e,t);if(jd(e))return Kd(e,t);if(Ud(e))return function Ww(e,t){return new Ee(n=>{let r;return _n(n,t,()=>{r=e[Hd](),_n(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)}),()=>de(r?.return)&&r.return()})}(e,t);if(qd(e))return function Qw(e,t){return Kd($d(e),t)}(e,t)}throw Vd(e)}(e,t):Sn(e)}function tc(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new mi({next:()=>{r.unsubscribe(),e()}});return Sn(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 ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).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 rc(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Xw=re({__forward_ref__:re});function ic(e){return e.__forward_ref__=ic,e.toString=function(){return ie(this())},e}function x(e){return function oc(e){return"function"==typeof e&&e.hasOwnProperty(Xw)&&e.__forward_ref__===ic}(e)?e():e}function sc(e){return e&&!!e.\u0275providers}class O extends Error{constructor(t,n){super(Ho(t,n)),this.code=t}}function Ho(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 j(e){return"string"==typeof e?e:null==e?"":String(e)}(e)}function Uo(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 rn(e){return{providers:e.providers||[],imports:e.imports||[]}}function $o(e){return Jd(e,qo)||Jd(e,Zd)}function Jd(e,t){return e.hasOwnProperty(t)?e[t]:null}function Xd(e){return e&&(e.hasOwnProperty(ac)||e.hasOwnProperty(s0))?e[ac]:null}const qo=re({\u0275prov:re}),ac=re({\u0275inj:re}),Zd=re({ngInjectableDef:re}),s0=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 cc;function Dt(e){const t=cc;return cc=e,t}function eh(e,t,n){const r=$o(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 Uo(ie(e))}const se=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),vi={},uc="__NG_DI_FLAG__",zo="ngTempTokenPath",c0="ngTokenPath",u0=/\n/gm,l0="\u0275",th="__source";let Di;function dr(e){const t=Di;return Di=e,t}function f0(e,t=L.Default){if(void 0===Di)throw new O(-203,!1);return null===Di?eh(e,void 0,t):Di.get(e,t&L.Optional?null:void 0,t)}function V(e,t=L.Default){return(function a0(){return cc}()||f0)(x(e),t)}function bi(e,t=L.Default){return V(e,Go(t))}function Go(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function lc(e){const t=[];for(let n=0;n((Ut=Ut||{})[Ut.OnPush=0]="OnPush",Ut[Ut.Default=1]="Default",Ut))(),$t=(()=>{return(e=$t||($t={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",$t;var e})();const sn={},J=[],Wo=re({\u0275cmp:re}),fc=re({\u0275dir:re}),dc=re({\u0275pipe:re}),rh=re({\u0275mod:re}),an=re({\u0275fac:re}),wi=re({__NG_ELEMENT_ID__:re});let m0=0;function ft(e){return on(()=>{const t=function oh(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:ih(e.inputs,t),outputs:ih(e.outputs)}}(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ut.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||$t.Emulated,id:"c"+m0++,styles:e.styles||J,_:null,schemas:e.schemas||null,tView:null};!function sh(e){e.features?.forEach(t=>t(e))}(n);const r=e.dependencies;return n.directiveDefs=Qo(r,!1),n.pipeDefs=Qo(r,!0),n})}function y0(e){return ee(e)||$e(e)}function v0(e){return null!==e}function Tn(e){return on(()=>({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 ih(e,t){if(null==e)return sn;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[Wo]||null}function $e(e){return e[fc]||null}function it(e){return e[dc]||null}function Qo(e,t){if(!e)return null;const n=t?it:y0;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(v0)}const cn=0,I=1,$=2,ge=3,At=4,$n=5,qe=6,hr=7,we=8,Ko=9,Yo=10,G=11,hc=12,_i=13,ah=14,pr=15,ze=16,Ci=17,mr=18,qt=19,Ti=20,ch=21,ae=22,pc=1,uh=2,Jo=7,gr=9,Ke=10;function ht(e){return Array.isArray(e)&&"object"==typeof e[pc]}function kt(e){return Array.isArray(e)&&!0===e[pc]}function mc(e){return 0!=(4&e.flags)}function Ii(e){return e.componentOffset>-1}function Zo(e){return 1==(1&e.flags)}function Ot(e){return!!e.template}function b0(e){return 0!=(256&e[$])}function qn(e,t){return e.hasOwnProperty(an)?e[an]:null}class S0{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function dh(e){return e.type.prototype.ngOnChanges&&(e.setInput=C0),_0}function _0(){const e=ph(this),t=e?.current;if(t){const n=e.previous;if(n===sn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function C0(e,t,n,r){const i=this.declaredInputs[n],o=ph(e)||function T0(e,t){return e[hh]=t}(e,{previous:sn,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[i];s[i]=new S0(c&&c.currentValue,t,a===sn),e[r]=t}const hh="__ngSimpleChanges__";function ph(e){return e[hh]||null}const Et=function(e,t,n){};function je(e){for(;Array.isArray(e);)e=e[cn];return e}function pt(e,t){return je(t[e.index])}function ot(e,t){const n=t[e];return ht(n)?n:n[cn]}function ns(e){return 64==(64&e[$])}function In(e,t){return null==t?null:e[t]}function vh(e){e[mr]=0}function yc(e,t){e[$n]+=t;let n=e,r=e[ge];for(;null!==r&&(1===t&&1===n[$n]||-1===t&&0===n[$n]);)r[$n]+=t,n=r,r=r[ge]}const H={lFrame:Mh(null),bindingsEnabled:!0};function bh(){return H.bindingsEnabled}function S(){return H.lFrame.lView}function K(){return H.lFrame.tView}function Ve(){let e=Eh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Eh(){return H.lFrame.currentTNode}function zt(e,t){const n=H.lFrame;n.currentTNode=e,n.isParent=t}function vc(){return H.lFrame.isParent}function H0(e,t){const n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,bc(t)}function bc(e){H.lFrame.currentDirectiveIndex=e}function wc(e){H.lFrame.currentQueryIndex=e}function $0(e){const t=e[I];return 2===t.type?t.declTNode:1===t.type?e[qe]:null}function Th(e,t,n){if(n&L.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&L.Host||(i=$0(o),null===i||(o=o[pr],10&i.type))););if(null===i)return!1;t=i,e=o}const r=H.lFrame=Ih();return r.currentTNode=t,r.lView=e,!0}function Sc(e){const t=Ih(),n=e[I];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ih(){const e=H.lFrame,t=null===e?null:e.child;return null===t?Mh(e):t}function Mh(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 Ah(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const kh=Ah;function _c(){const e=Ah();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 zn(e){H.lFrame.selectedIndex=e}function rs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[mr]+=65536),(a>11>16&&(3&e[$])===t){e[$]+=2048,Et(4,a,o);try{o.call(a)}finally{Et(5,a,o)}}}else{Et(4,a,o);try{o.call(a)}finally{Et(5,a,o)}}}const Dr=-1;class Ai{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ic(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[pr],n--;return r}let Mc=!0;function cs(e){const t=Mc;return Mc=e,t}const Rh=255,Lh=5;let rS=0;const Gt={};function us(e,t){const n=Bh(e,t);if(-1!==n)return n;const r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Ac(r.data,e),Ac(t,null),Ac(r.blueprint,null));const i=kc(e,t),o=e.injectorIndex;if(function Fh(e){return e!==Dr}(i)){const s=ss(i),a=as(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 Ac(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Bh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function kc(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 Dr;if(n++,i=i[pr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Dr}function Oc(e,t,n){!function iS(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(wi)&&(r=n[wi]),null==r&&(r=n[wi]=rS++);const i=r&Rh;t.data[e+(i>>Lh)]|=1<=0?t&Rh:cS:t}(n);if("function"==typeof o){if(!Th(t,e,r))return r&L.Host?jh(i,0,r):Vh(t,n,r,i);try{const s=o(r);if(null!=s||r&L.Optional)return s;Uo()}finally{kh()}}else if("number"==typeof o){let s=null,a=Bh(e,t),c=Dr,u=r&L.Host?t[ze][qe]:null;for((-1===a||r&L.SkipSelf)&&(c=-1===a?kc(e,t):t[a+8],c!==Dr&&qh(r,!1)?(s=t[I],a=ss(c),t=as(c,t)):a=-1);-1!==a;){const l=t[I];if($h(o,a,l.data)){const f=sS(a,t,n,s,r,u);if(f!==Gt)return f}c=t[a+8],c!==Dr&&qh(r,t[I].data[a+8]===u)&&$h(o,a,t)?(s=l,a=ss(c),t=as(c,t)):a=-1}}return i}function sS(e,t,n,r,i,o){const s=t[I],a=s.data[e+8],l=function ls(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?Ii(a)&&Mc: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 Z0(e){return e instanceof Ai}(i)){const s=i;s.resolving&&function Zw(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=cs(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Dt(s.injectImpl):null;Th(e,r,L.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function J0(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=dh(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),cs(a),s.resolving=!1,kh()}}return i}function $h(e,t,n){return!!(n[t+(e>>Lh)]&1<Array.isArray(n)?Wn(n,t):t(n))}function fs(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 Uc=new Map;let RS=0;const qc="__ngContext__";function Ge(e,t){ht(t)?(e[qc]=t[Ti],function BS(e){Uc.set(e[Ti],e)}(t)):e[qc]=t}let zc;function Gc(e,t){return zc(e,t)}function Li(e){const t=e[ge];return kt(t)?t[ge]:t}function Wc(e){return pp(e[_i])}function Qc(e){return pp(e[At])}function pp(e){for(;null!==e&&!kt(e);)e=e[At];return e}function Ir(e,t,n,r,i){if(null!=r){let o,s=!1;kt(r)?o=r:ht(r)&&(s=!0,r=r[cn]);const a=je(r);0===e&&null!==n?null==i?bp(t,n,a):Qn(t,n,a,i||null,!0):1===e&&null!==n?Qn(t,n,a,i||null,!0):2===e?function tu(e,t,n){const r=function ys(e,t){return e.parentNode(t)}(e,t);r&&function i_(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function a_(e,t,n,r,i){const o=n[Jo];o!==je(n)&&Ir(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===$t.None||o===$t.Emulated)return null}return pt(r,n)}}(e,t.parent,n)}function Qn(e,t,n,r,i){e.insertBefore(t,n,r,i)}function bp(e,t,n){e.appendChild(t,n)}function Ep(e,t,n,r,i){null!==r?Qn(e,t,n,r,i):bp(e,t,n)}let Zc,iu,_p=function Sp(e,t,n){return 40&e.type?pt(e,n):null};function vs(e,t,n,r){const i=vp(e,r,t),o=t[G],a=function wp(e,t,n){return _p(e,t,n)}(r.parent||t[qe],r,t);if(null!=i)if(Array.isArray(n))for(let c=0;c{const s=o;lu(s,n,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&Qp(i,n),n}function Qp(e,t){for(let n=0;n{t.push(o)})}}function lu(e,t,n,r){if(!(e=x(e)))return!1;let i=null,o=Xd(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const c=e.ngModule;if(o=Xd(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)lu(u,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Wn(o.imports,l=>{lu(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}void 0!==u&&Qp(u,t)}if(!a){const u=qn(i)||(()=>new i);t.push({provide:i,useFactory:u,deps:J},{provide:zp,useValue:i,multi:!0},{provide:$p,useValue:()=>V(i),multi:!0})}const c=o.providers;null==c||a||fu(c,l=>{t.push(l)})}}return i!==e&&void 0!==e.providers}function fu(e,t){for(let n of e)sc(n)&&(n=n.\u0275providers),Array.isArray(n)?fu(n,t):t(n)}const j_=re({provide:String,useValue:re});function du(e){return null!==e&&"object"==typeof e&&j_ in e}function Kn(e){return"function"==typeof e}const hu=new F("Set Injector scope."),Ss={},H_={};let pu;function _s(){return void 0===pu&&(pu=new Gp),pu}class Yn{}class Jp extends Yn{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,gu(t,s=>this.processProvider(s)),this.records.set(qp,Ar(void 0,this)),i.has("environment")&&this.records.set(Yn,Ar(void 0,this));const o=this.records.get(hu);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=dr(this),r=Dt(void 0);try{return t()}finally{dr(n),Dt(r)}}get(t,n=vi,r=L.Default){this.assertNotDestroyed(),r=Go(r);const i=dr(this),o=Dt(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const c=function G_(e){return"function"==typeof e||"object"==typeof e&&e instanceof F}(t)&&$o(t);a=c&&this.injectableDefInScope(c)?Ar(mu(t),Ss):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?_s():this.parent).get(t,n=r&L.Optional&&n===vi?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[zo]=s[zo]||[]).unshift(ie(t)),i)throw s;return function h0(e,t,n,r){const i=e[zo];throw t[th]&&i.unshift(t[th]),e.message=function p0(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==l0?e.slice(2):e;let i=ie(t);if(Array.isArray(t))i=t.map(ie).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):ie(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(u0,"\n ")}`}("\n"+e.message,i,n,r),e[c0]=i,e[zo]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Dt(o),dr(i)}}resolveInjectorInitializers(){const t=dr(this),n=Dt(void 0);try{const r=this.get($p.multi,J,L.Self);for(const i of r)i()}finally{dr(t),Dt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(t){let n=Kn(t=x(t))?t:x(t&&t.provide);const r=function $_(e){return du(e)?Ar(void 0,e.useValue):Ar(function Xp(e,t,n){let r;if(Kn(e)){const i=x(e);return qn(i)||mu(i)}if(du(e))r=()=>x(e.useValue);else if(function Yp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...lc(e.deps||[]));else if(function Kp(e){return!(!e||!e.useExisting)}(e))r=()=>V(x(e.useExisting));else{const i=x(e&&(e.useClass||e.provide));if(!function q_(e){return!!e.deps}(e))return qn(i)||mu(i);r=()=>new i(...lc(e.deps))}return r}(e),Ss)}(t);if(Kn(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Ar(void 0,Ss,!0),i.factory=()=>lc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ss&&(n.value=H_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function z_(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 mu(e){const t=$o(e),n=null!==t?t.factory:qn(e);if(null!==n)return n;if(e instanceof F)throw new O(204,!1);if(e instanceof Function)return function U_(e){const t=e.length;if(t>0)throw function xi(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 gu(e,t){for(const n of e)Array.isArray(n)?gu(n,t):n&&sc(n)?gu(n.\u0275providers,t):t(n)}class W_{}class Zp{}class K_{resolveComponentFactory(t){throw function Q_(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Cs=(()=>{class e{}return e.NULL=new K_,e})();function Y_(){return kr(Ve(),S())}function kr(e,t){return new Or(pt(e,t))}let Or=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Y_,e})();class tm{}let Z_=(()=>{class e{}return e.\u0275prov=Y({token:e,providedIn:"root",factory:()=>null}),e})();class yu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const eC=new yu("15.2.9"),vu={},Du="ngOriginalError";function bu(e){return e[Du]}class Nr{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&&bu(t);for(;n&&bu(n);)n=bu(n);return n||null}}function im(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 om="ng-template";function fC(e,t,n){let r=0,i=!0;for(;ro?"":i[f+1].toLowerCase();const h=8&r?d:null;if(h&&-1!==im(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 pC(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+=cm(o,i),i=""),r=s,o=o||!Nt(r);n++}return""!==i&&(t+=cm(o,i)),t}const U={};function hm(e,t=null,n=null,r){const i=pm(e,t,n,r);return i.resolveInjectorInitializers(),i}function pm(e,t=null,n=null,r,i=new Set){const o=[n||J,B_(e)];return r=r||("object"==typeof e?void 0:ie(e)),new Jp(o,t||_s(),r||null,i)}let Jn=(()=>{class e{static create(n,r){if(Array.isArray(n))return hm({name:""},r,n,"");{const i=n.name??"";return hm({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=vi,e.NULL=new Gp,e.\u0275prov=Y({token:e,providedIn:"any",factory:()=>V(qp)}),e.__NG_ELEMENT_ID__=-1,e})();function k(e,t=L.Default){const n=S();return null===n?V(e,t):Hh(Ve(),n,x(e),t)}function Em(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rae&&function um(e,t,n,r){if(!r)if(3==(3&t[$])){const o=e.preOrderCheckHooks;null!==o&&is(t,o,n)}else{const o=e.preOrderHooks;null!==o&&os(t,o,0,n)}zn(n)}(e,t,ae,!1),Et(s?2:0,i),n(r,i)}finally{zn(o),Et(s?3:1,i)}}function Iu(e,t,n){if(mc(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,Ui(e,n,i.hostVars,U),i)}function cT(e,t,n,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let c=0;c0&&Pu(n)}}function Pu(e){for(let r=Wc(e);null!==r;r=Qc(r))for(let i=Ke;i0&&Pu(o)}const n=e[I].components;if(null!==n)for(let r=0;r0&&Pu(i)}}function hT(e,t){const n=ot(t,e),r=n[I];(function pT(e,t){for(let n=t.length;n-1&&(function Jc(e,t){if(e.length<=Ke)return;const n=Ke+t,r=e[n];if(r){const i=r[Ci];null!==i&&i!==e&&gp(i,r),t>0&&(e[n-1][At]=r[At]);const o=fs(e,Ke+t);!function YS(e,t){Bi(e,t,t[G],2,null,null),t[cn]=null,t[qe]=null}(r[I],r);const s=o[qt];null!==s&&s.detachView(o[I]),r[ge]=null,r[At]=null,r[$]&=-65}return r}(t,r),fs(n,r))}this._attachedToViewContainer=!1}!function yp(e,t){if(!(128&t[$])){const n=t[G];n.destroyNode&&Bi(e,t,n,3,null,null),function ZS(e){let t=e[_i];if(!t)return Xc(e[I],e);for(;t;){let n=null;if(ht(t))n=t[_i];else{const r=t[Ke];r&&(n=r)}if(!n){for(;t&&!t[At]&&t!==e;)ht(t)&&Xc(t[I],t),t=t[ge];null===t&&(t=e),ht(t)&&Xc(t[I],t),n=t&&t[At]}t=n}}(t)}}(this._lView[I],this._lView)}onDestroy(t){!function _m(e,t,n,r){const i=km(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&Om(e).push(r,i.length-1))}(this._lView[I],this._lView,null,t)}markForCheck(){ks(this._cdRefInjectingView||this._lView)}detach(){this._lView[$]&=-65}reattach(){this._lView[$]|=64}detectChanges(){Os(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 XS(e,t){Bi(e,t,t[G],2,null,null)}(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=t}}class mT extends $i{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Os(t[I],t,t[we],!1)}checkNoChanges(){}get context(){return null}}class Pm extends Cs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ee(t);return new qi(n,this.ngModule)}}function Fm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class yT{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Go(r);const i=this.injector.get(t,vu,r);return i!==vu||n===vu?i:this.parentInjector.get(t,n,r)}}class qi extends Zp{get inputs(){return Fm(this.componentDef.inputs)}get outputs(){return Fm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function bC(e){return e.map(DC).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof Yn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new yT(t,o):t,a=s.get(tm,null);if(null===a)throw new O(407,!1);const c=s.get(Z_,null),u=a.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",f=r?function GC(e,t,n){return e.selectRootElement(t,n===$t.ShadowDom)}(u,r,this.componentDef.encapsulation):Yc(u,l,function gT(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(l)),d=this.componentDef.onPush?288:272,h=ku(0,null,null,1,0,null,null,null,null,null),p=Is(null,h,null,d,null,null,a,u,c,s,null);let m,v;Sc(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 E=function DT(e,t){const n=e[I],r=ae;return e[r]=t,Fr(n,r,2,"#host",null)}(p,f),C=function bT(e,t,n,r,i,o,s,a){const c=i[I];!function ET(e,t,n,r){for(const i of e)t.mergedAttrs=ki(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(Ns(t,t.mergedAttrs,!0),null!==n&&Ap(r,n,t))}(r,e,t,s);const u=o.createRenderer(t,n),l=Is(i,Sm(n),null,n.onPush?32:16,i[e.index],e,o,u,a||null,null,null);return c.firstCreatePass&&Nu(c,e,r.length-1),As(i,l),i[e.index]=l}(E,f,g,D,p,a,u);v=function yh(e,t){return e.data[t]}(h,ae),f&&function ST(e,t,n,r){if(r)Ic(e,n,["ng-version",eC.full]);else{const{attrs:i,classes:o}=function EC(e){const t=[],n=[];let r=1,i=2;for(;r0&&Mp(e,n,o.join(" "))}}(u,g,f,r),void 0!==n&&function _T(e,t,n){const r=e.projection=[];for(let i=0;is(je(E[r.index])):r.index;let y=null;if(!s&&a&&(y=function WT(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=rg(r,t,l,o,!1);const E=n.listen(v,i,o);f.push(o,E),u&&u.push(i,D,g,g+1)}}else o=rg(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=ng(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=ng(t,n,u,s)&&c,u=u.__ngNextListenerFn__;return i&&!1===c&&(s.preventDefault(),s.returnValue=!1),c}}function Qe(e,t=""){const n=S(),r=K(),i=e+ae,o=r.firstCreatePass?Fr(r,i,1,t,null):r.data[i],s=n[i]=function Kc(e,t){return e.createText(t)}(n[G],t);vs(r,n,s,o),zt(o,!1)}const Qr="en-US";let Yg=Qr;class Kr{}class jM{}class wy extends Kr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Pm(this);const r=function dt(e,t){const n=e[rh]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function dn(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=pm(t,n,[{provide:Kr,useValue:this},{provide:Cs,useValue:this.componentFactoryResolver}],ie(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 tl extends jM{constructor(t){super(),this.moduleType=t}create(t){return new wy(this.moduleType,t)}}function rl(e){return t=>{setTimeout(e,void 0,t)}}const pn=class mA extends Bo{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=rl(o),i&&(i=rl(i)),s&&(s=rl(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof It&&t.add(a),a}};function qs(...e){}const av=new F("Application Initializer");let zs=(()=>{class e{constructor(n){this.appInits=n,this.resolve=qs,this.reject=qs,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)(V(av,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const to=new F("AppId",{providedIn:"root",factory:function cv(){return`${ml()}${ml()}${ml()}`}});function ml(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const uv=new F("Platform Initializer"),gl=new F("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),gn=new F("LocaleId",{providedIn:"root",factory:()=>bi(gn,L.Optional|L.SkipSelf)||function XA(){return typeof $localize<"u"&&$localize.locale||Qr}()}),rk=(()=>Promise.resolve(0))();function yl(e){typeof Zone>"u"?rk.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class He{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pn(!1),this.onMicrotaskEmpty=new pn(!1),this.onStable=new pn(!1),this.onError=new pn(!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 ik(){let e=se.requestAnimationFrame,t=se.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 ak(e){const t=()=>{!function sk(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Dl(e),e.isCheckStableRunning=!0,vl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Dl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return dv(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),hv(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return dv(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),hv(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,Dl(e),vl(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(!He.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(He.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,ok,qs,qs);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 ok={};function vl(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 Dl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function dv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function hv(e){e._nesting--,vl(e)}class ck{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pn,this.onMicrotaskEmpty=new pn,this.onStable=new pn,this.onError=new pn}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 pv=new F(""),Gs=new F("");let wl,bl=(()=>{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,wl||(function uk(e){wl=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:()=>{He.assertNotInAngularZone(),yl(()=>{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())yl(()=>{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)(V(He),V(El),V(Gs))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),El=(()=>{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 wl?.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 yn=!1;let kn=null;const mv=new F("AllowMultipleToken"),Sl=new F("PlatformDestroyListeners"),lk=new F("appBootstrapListener");function yv(e,t,n=[]){const r=`Platform: ${t}`,i=new F(r);return(o=[])=>{let s=_l();if(!s||s.injector.get(mv,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function hk(e){if(kn&&!kn.get(mv,!1))throw new O(400,!1);kn=e;const t=e.get(Dv);(function gv(e){const t=e.get(uv,null);t&&t.forEach(n=>n())})(e)}(function vv(e=[],t){return Jn.create({name:t,providers:[{provide:hu,useValue:"platform"},{provide:Sl,useValue:new Set([()=>kn=null])},...e]})}(a,r))}return function mk(e){const t=_l();if(!t)throw new O(401,!1);return t}()}}function _l(){return kn?.get(Dv)??null}let Dv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function Ev(e,t){let n;return n="noop"===e?new ck:("zone.js"===e?void 0:e)||new He(t),n}(r?.ngZone,function bv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:He,useValue:i}];return i.run(()=>{const s=Jn.create({providers:o,parent:this.injector,name:n.moduleType.name}),a=n.create(s),c=a.injector.get(Nr,null);if(!c)throw new O(402,!1);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:l=>{c.handleError(l)}});a.onDestroy(()=>{Ws(this._modules,a),u.unsubscribe()})}),function wv(e,t,n){try{const r=n();return Uu(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(zs);return u.runInitializers(),u.donePromise.then(()=>(function Jg(e){vt(e,"Expected localeId to be defined"),"string"==typeof e&&(Yg=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(gn,Qr)||Qr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const i=Sv({},r);return function fk(e,t,n){const r=new tl(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(Cl);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(Sl,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)(V(Jn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Sv(e,t){return Array.isArray(t)?t.reduce(Sv,e):{...e,...t}}let Cl=(()=>{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 Ee(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Ee(a=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{He.assertNotInAngularZone(),yl(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{He.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=function Yw(...e){const t=Vo(e),n=function $w(e,t){return"number"==typeof Za(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Sn(r[0]):Gd(n)(yi(r,t)):Wd}(o,s.pipe(function Jw(e={}){const{connector:t=(()=>new Bo),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 Un((m,v)=>{u++,!f&&!l&&d();const g=c=c??t();v.add(()=>{u--,0===u&&!f&&!l&&(a=tc(p,i))}),g.subscribe(v),!s&&u>0&&(s=new mi({next:D=>g.next(D),error:D=>{f=!0,d(),a=tc(h,n,D),g.error(D)},complete:()=>{l=!0,d(),a=tc(h,r),g.complete()}}),Sn(m).subscribe(s))})(o)}}()))}bootstrap(n,r){const i=n instanceof Zp;if(!this._injector.get(zs).done){!i&&function Si(e){const t=ee(e)||$e(e)||it(e);return null!==t&&t.standalone}(n);throw new O(405,yn)}let s;s=i?n:this._injector.get(Cs).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function dk(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Kr),u=s.create(Jn.NULL,[],r||s.selector,a),l=u.location.nativeElement,f=u.injector.get(pv,null);return f?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Ws(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;Ws(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(lk,[]);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),()=>Ws(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)(V(He),V(Yn),V(Nr))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ws(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nk=yv(null,"core",[]);let xk=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(V(Cl))},e.\u0275mod=Tn({type:e}),e.\u0275inj=rn({}),e})(),kl=null;function Js(){return kl}class Rk{}const Xt=new F("DocumentToken");function $v(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 XO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Tn({type:e}),e.\u0275inj=rn({}),e})();class Zv{}class AN extends Rk{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Wl extends AN{static makeCurrent(){!function Fk(e){kl||(kl=e)}(new Wl)}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 kN(){return so=so||document.querySelector("base"),so?so.getAttribute("href"):null}();return null==n?null:function ON(e){ua=ua||document.createElement("a"),ua.setAttribute("href",e);const t=ua.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){so=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return $v(document.cookie,t)}}let ua,so=null;const iD=new F("TRANSITION_ID"),xN=[{provide:av,useFactory:function NN(e,t,n){return()=>{n.get(zs).donePromise.then(()=>{const r=Js(),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 la=new F("EventManagerPlugins");let fa=(()=>{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})(),ao=(()=>{class e extends sD{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)(V(Xt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const Ql={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/"},Kl=/%COMP%/g,uD=new F("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function lD(e,t){return t.flat(100).map(n=>n.replace(Kl,e))}function fD(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Yl=(()=>{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 Jl(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const i=this.getOrCreateRenderer(n,r);return i instanceof pD?i.applyToHost(n):i instanceof Xl&&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 $t.Emulated:o=new pD(s,a,r,this.appId,c);break;case $t.ShadowDom:return new UN(s,a,n,r);default:o=new Xl(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)(V(fa),V(ao),V(to),V(uD))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();class Jl{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Ql[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(hD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(hD(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=Ql[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Ql[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,fD(r)):this.eventManager.addEventListener(t,n,fD(r))}}function hD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class UN extends Jl{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=lD(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 Xl extends Jl{constructor(t,n,r,i,o=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=i,this.rendererUsageCount=0,this.styles=lD(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 pD extends Xl{constructor(t,n,r,i,o){const s=i+"-"+r.id;super(t,n,r,o,s),this.contentAttr=function jN(e){return"_ngcontent-%COMP%".replace(Kl,e)}(s),this.hostAttr=function VN(e){return"_nghost-%COMP%".replace(Kl,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 $N=(()=>{class e extends oD{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)(V(Xt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const mD=["alt","control","meta","shift"],qN={"\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"},zN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let GN=(()=>{class e extends oD{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(()=>Js().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."),mD.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=qN[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"),mD.forEach(s=>{s!==i&&(0,zN[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)(V(Xt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const yD=[{provide:gl,useValue:"browser"},{provide:uv,useValue:function WN(){Wl.makeCurrent()},multi:!0},{provide:Xt,useFactory:function KN(){return function h_(e){iu=e}(document),document},deps:[]}],YN=yv(Nk,"browser",yD),vD=new F(""),DD=[{provide:Gs,useClass:class PN{addToWindow(t){se.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},se.getAllAngularTestabilities=()=>t.getAllTestabilities(),se.getAllAngularRootElements=()=>t.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(r=>{const i=se.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?Js().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:pv,useClass:bl,deps:[He,El,Gs]},{provide:bl,useClass:bl,deps:[He,El,Gs]}],bD=[{provide:hu,useValue:"root"},{provide:Nr,useFactory:function QN(){return new Nr},deps:[]},{provide:la,useClass:$N,multi:!0,deps:[Xt,He,gl]},{provide:la,useClass:GN,multi:!0,deps:[Xt]},{provide:Yl,useClass:Yl,deps:[fa,ao,to,uD]},{provide:tm,useExisting:Yl},{provide:sD,useExisting:ao},{provide:ao,useClass:ao,deps:[Xt]},{provide:fa,useClass:fa,deps:[la,He]},{provide:Zv,useClass:FN,deps:[]},[]];let JN=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:to,useValue:n.appId},{provide:iD,useExisting:to},xN]}}}return e.\u0275fac=function(n){return new(n||e)(V(vD,12))},e.\u0275mod=Tn({type:e}),e.\u0275inj=rn({providers:[...bD,...DD],imports:[XO,xk]}),e})();function co(e){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function ue(e,t,n){return(t=function sx(e){var t=function ox(e,t){if("object"!==co(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===co(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}typeof window<"u"&&window;class ax extends It{constructor(t,n){super()}schedule(t,n=0){return this}}const da={setInterval(e,t,...n){const{delegate:r}=da;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){const{delegate:t}=da;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};class cx extends ax{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return da.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return n;null!=n&&da.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let i,r=!1;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){const{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,fr(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}}const SD={now:()=>(SD.delegate||Date).now(),delegate:void 0};class uo{constructor(t,n=uo.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}uo.now=SD.now;class lx extends uo{constructor(t,n=uo.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 dx=new class fx extends lx{}(class ux extends cx{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)}});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 lo(e){return!!e&&e<7}var tf="Invariant Violation",_D=Object.setPrototypeOf,hx=void 0===_D?function(e,t){return e.__proto__=t,e}:_D,CD=function(e){function t(n){void 0===n&&(n=tf);var r=e.call(this,"number"==typeof n?tf+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=tf,hx(r,t.prototype),r}return Mt(t,e),t}(Error);function nr(e,t){if(!e)throw new CD(t)}var e,ha=["debug","log","warn","error","silent"],nf=ha.indexOf("log");function pa(e){return function(){if(ha.indexOf(e)>=nf)return(console[e]||console.log).apply(console,arguments)}}(e=nr||(nr={})).debug=pa("debug"),e.log=pa("log"),e.warn=pa("warn"),e.error=pa("error");var rf="3.8.1";function Bt(e){try{return e()}catch{}}const TD=Bt(function(){return globalThis})||Bt(function(){return window})||Bt(function(){return self})||Bt(function(){return global})||Bt(function(){return Bt.constructor("return this")()});var ID=new Map;function of(e){var t=ID.get(e)||1;return ID.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function MD(e,t){void 0===t&&(t=0);var n=of("stringifyForDisplay");return JSON.stringify(e,function(r,i){return void 0===i?n:i},t).split(JSON.stringify(n)).join("")}function ma(e){return function(t){for(var n=[],r=1;re.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[ff]=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=ga(r,ff);if(o){var s=o.call(r);if(Object(s)!==s)throw new TypeError(s+" is not an object");return function yx(e){return e instanceof ce}(s)&&s.constructor===i?s:new i(function(a){return s.subscribe(a)})}if(uf("iterator")&&(o=ga(r,gx)))return new i(function(a){ya(function(){if(!a.closed){for(var u,c=function px(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 kD(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 kD(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){ya(function(){if(!a.closed){for(var c=0;c"u"&&(B(1===r.length,69,r.length),n=r[0].name.value),b(b({},e),{definitions:nn([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function va(e){void 0===e&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function Da(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 B(r,70,n),r||null;default:return null}}function Zr(e){return{__ref:String(e)}}function ne(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function ei(e,t,n,r){if(function Tx(e){return"IntValue"===e.kind}(n)||function Ix(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function Cx(e){return"BooleanValue"===e.kind}(n)||function _x(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function Ax(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(s){return ei(i,s.name,s.value,r)}),e[t.value]=i}else if(function Mx(e){return"Variable"===e.kind}(n))e[t.value]=(r||{})[n.name.value];else if(function kx(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(s){var a={};return ei(a,t,s,r),a[t.value]});else if(function Ox(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function Nx(e){return"NullValue"===e.kind}(n))throw et(79,t.value,n.kind);e[t.value]=null}}cf()&&Object.defineProperty(ce,Symbol("extensions"),{value:{symbol:ff,hostReportError:Xr},configurable:!0});var Px=["connection","include","skip","client","rest","export","nonreactive"],pf=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(ho(i),")")}return n.connection.key}var o=e;if(t){var s=ho(t);o+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(a){-1===Px.indexOf(a)&&(n[a]&&Object.keys(n[a]).length?o+="@".concat(a,"(").concat(ho(n[a]),")"):o+="@".concat(a))}),o},{setStringify:function(e){var t=ho;return ho=e,t}}),ho=function(t){return JSON.stringify(t,Fx)};function Fx(e,t){return le(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(n,r){return n[r]=t[r],n},{})),t}function ba(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){return ei(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;iLD)return"[Array]";const n=Math.min(Vx,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function $x(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>LD?"["+function zx(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+": "+_a(o,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}class Gx{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 BD{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 jD={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"]},Wx=new Set(Object.keys(jD));function VD(e){const t=e?.kind;return"string"==typeof t&&Wx.has(t)}var rr=(()=>(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(rr||(rr={})),rr))(),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 ir=Object.freeze({});function Dn(e,t,n=jD){const r=new Map;for(const g of Object.values(M))r.set(g,bf(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 E=0;for(const[C,_]of c){const P=C-E;null===_?(u.splice(P,1),E++):u[P]=_}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[E,C]of c)u[E]=C}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(VD(u)||Sa(!1,`Invalid AST Node: ${Df(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===ir)break;if(!1===y){if(!g){d.pop();continue}}else if(void 0!==y&&(c.push([l,y]),!g)){if(!VD(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 bf(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 vo(e,t){var n=e.directives;return!n||!n.length||function Yx(e){var t=[];return e&&e.length&&e.forEach(function(n){if(function Kx(e){var t=e.name.value;return"skip"===t||"include"===t}(n)){var r=n.arguments,i=n.name.value;B(r&&1===r.length,65,i);var o=r[0];B(o.name&&"if"===o.name.value,66,i);var s=o.value;B(s&&("Variable"===s.kind||"BooleanValue"===s.kind),67,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?B(void 0!==(s=t&&t[o.value.name.value]),64,i.name.value):s=o.value.value,"skip"===i.name.value?!s:s})}function or(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 ir}}),n?!r.size:r.size=0});var wf=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},Sf=Symbol(),dP=function(e){var t=nn(nn(nn([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return le(n)&&n.message||"Error message not found."}).join("\n")},ni=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||dP(u),u.extraInfo=c,u.__proto__=t.prototype,u}return Mt(t,e),t}(Error),De=Array.isArray;function Zt(e){return Array.isArray(e)&&e.length>0}var hP=Object.prototype.hasOwnProperty;function qD(){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 GD=Object.prototype.hasOwnProperty;function DP(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 WD(e,t){e.status>=300&&wf(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 Cf(e){return 9===e||32===e}function Do(e){return e>=48&&e<=57}function QD(e){return e>=97&&e<=122||e>=65&&e<=90}function KD(e){return QD(e)||95===e}function SP(e){return QD(e)||Do(e)||95===e}function _P(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 CP(e){let t=0;for(;te.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>A(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Q("(",A(e.variableDefinitions,", "),")"),n=A([e.operation,A([e.name,t]),A(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Q(" = ",n)+Q(" ",A(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("(",A(n,", "),")");return s.length>80&&(s=o+Q("(\n",Ta(A(n,"\n")),"\n)")),A([s,A(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Q(" ",A(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>A(["...",Q("on ",e),A(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Q("(",A(n,", "),")")} on ${t} ${Q("",A(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function TP(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||Cf(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&&Cf(e.charCodeAt(0));return(l&&!d||o)&&(f+="\n"),f+=n,(l||u)&&(f+="\n"),'"""'+f+'"""'}(e):function IP(e){return`"${e.replace(MP,AP)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+A(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+A(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Q("(",A(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")+A(["schema",A(t," "),jt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+A(["scalar",t,A(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+A(["type",t,Q("implements ",A(n," & ")),A(r," "),jt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Q("",e,"\n")+t+(JD(n)?Q("(\n",Ta(A(n,"\n")),"\n)"):Q("(",A(n,", "),")"))+": "+r+Q(" ",A(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Q("",e,"\n")+A([t+": "+n,Q("= ",r),A(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+A(["interface",t,Q("implements ",A(n," & ")),A(r," "),jt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Q("",e,"\n")+A(["union",t,A(n," "),Q("= ",A(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Q("",e,"\n")+A(["enum",t,A(n," "),jt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+A([t,A(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Q("",e,"\n")+A(["input",t,A(n," "),jt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Q("",e,"\n")+"directive @"+t+(JD(n)?Q("(\n",Ta(A(n,"\n")),"\n)"):Q("(",A(n,", "),")"))+(r?" repeatable":"")+" on "+A(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>A(["extend schema",A(e," "),jt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>A(["extend scalar",e,A(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>A(["extend type",e,Q("implements ",A(t," & ")),A(n," "),jt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>A(["extend interface",e,Q("implements ",A(t," & ")),A(n," "),jt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>A(["extend union",e,A(t," "),Q("= ",A(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>A(["extend enum",e,A(t," "),jt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>A(["extend input",e,A(t," "),jt(n)]," ")}};function A(e,t=""){var n;return null!==(n=e?.filter(r=>r).join(t))&&void 0!==n?n:""}function jt(e){return Q("{\n",Ta(A(e,"\n")),"\n}")}function Q(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Ta(e){return Q(" ",e.replace(/\n/g,"\n "))}function JD(e){var t;return null!==(t=e?.some(n=>n.includes("\n")))&&void 0!==t&&t}var ii=bn?new WeakMap:void 0,XD=function(e){var t;return t=ii?.get(e),t||(t=YD(e),ii?.set(e,t)),t},RP={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},ZD=function(e,t){return t(e)};function Tf(e){return new ce(function(t){t.error(e)})}var tb={kind:M.FIELD,name:{kind:M.NAME,value:"__typename"}};function nb(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===M.FRAGMENT_SPREAD&&nb(t[n.name.value],t)})}function If(e){return nb(mo(e)||function Lx(e){B("Document"===e.kind,75),B(e.definitions.length<=1,76);var t=e.definitions[0];return B("FragmentDefinition"===t.kind,77),t}(e),va(Ea(e)))?null:e}function ib(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 Mf(e,t){po(t);for(var n=ib(""),r=ib(""),i=function(g){for(var D=0,y=void 0;D=0;--s)t.definitions[s].kind===M.OPERATION_DEFINITION&&++o;var a=function rb(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 Zt(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,E,C){var _=i(C);_&&_.variables.add(g.name.value)}},FragmentSpread:{enter:function(g,D,y,E,C){if(c(g.directives))return l=!0,null;var _=i(C);_&&_.fragmentSpreads.add(g.name.value)}},FragmentDefinition:{enter:function(g,D,y,E){u.set(JSON.stringify(E),g)},leave:function(g,D,y,E){return g===u.get(JSON.stringify(E))?g:o>0&&g.selectionSet.selections.every(function(_){return _.kind===M.FIELD&&"__typename"===_.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 If(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(35)}(r||sb);var d={http:{includeExtensions:s,preserveHeaderCase:a},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new ti(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 E=b(b({},v),m.headers),C={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:E};if(or(["client"],h.query)){var _=ob(h.query);if(!_)return Tf(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=_}var fe,P=function eb(e,t){for(var n=[],r=2;r-1;){if(g=void 0,z=[c.slice(0,v),c.slice(v+a.length)],c=z[1],D=(g=z[0]).indexOf("\r\n\r\n"),y=DP(g.slice(0,D)),(E=y["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(C=g.slice(D))if(_=WD(e,C),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)yP(_)?(P={},"payload"in _&&(P=b({},_.payload)),"errors"in _&&(P=b(b({},P),{extensions:b(b({},"extensions"in P?P.extensions:null),(me={},me[Sf]=_.errors,me))})),t(P)):t(_);else if(1===Object.keys(_).length&&"hasNext"in _&&!_.hasNext)return[2];v=c.indexOf(a)}return[3,1];case 3:return[2]}})})}(pi,tw):function EP(e){return function(t){return t.text().then(function(n){return WD(t,n)}).then(function(n){return t.status>=300&&wf(t,n,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(n)&&!GD.call(n,"data")&&!GD.call(n,"errors")&&wf(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}(h)(pi).then(tw)}).then(function(){fe=void 0,Tt.complete()}).catch(function(pi){fe=void 0,function bP(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(pi,Tt)}),function(){fe&&fe.abort()}})})},GP=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,zP(n).request)||this;return r.options=n,r}return Mt(t,e),t}(ti);const{toString:ab,hasOwnProperty:WP}=Object.prototype,cb=Function.prototype.toString,kf=new Map;function Ce(e,t){try{return Of(e,t)}finally{kf.clear()}}const ub=Ce;function Of(e,t){if(e===t)return!0;const n=ab.call(e);if(n!==ab.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(fb(e,t))return!0;const i=lb(e),o=lb(t),s=i.length;if(s!==o.length)return!1;for(let a=0;a=0&&e.indexOf(t,n)===n}(i,KP)}}return!1}function lb(e){return Object.keys(e).filter(QP,e)}function QP(e){return void 0!==this[e]}const KP="{ [native code] }";function fb(e,t){let n=kf.get(e);if(n){if(n.has(t))return!0}else kf.set(e,n=new Set);return n.add(t),!1}const JP=()=>Object.create(null),{forEach:XP,slice:ZP}=Array.prototype,{hasOwnProperty:eF}=Object.prototype;class Fn{constructor(t=!0,n=JP){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return XP.call(t,r=>n=n.getChildTrie(r)),eF.call(n,"data")?n.data:n.data=this.makeData(ZP.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&r0},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}(ce);function bb(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(){return this.nextFetchPolicy=r,"function"==typeof r?r.apply(this,arguments):n}}):e.reobserve()}function aF(e){!1!==globalThis.__DEV__&&B.error(21,e.message,e.stack)}function Eb(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&B.debug(22,e)}function jf(e){return"network-only"===e||"no-cache"===e||"standby"===e}function wb(e){return e.kind===M.FIELD||e.kind===M.FRAGMENT_SPREAD||e.kind===M.INLINE_FRAGMENT}function pF(){}mb(Bf);class mF{constructor(t=1/0,n=pF){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}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)}}let Ue=null;const _b={};let gF=1;function Cb(e){try{return e()}catch{}}const Vf="@wry/context:Slot",Tb=Cb(()=>globalThis)||Cb(()=>global)||Object.create(null),Hf=Tb[Vf]||Array[Vf]||function(e){try{Object.defineProperty(Tb,Vf,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",gF++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=Ue;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===_b)break;return t!==Ue&&(Ue.slots[this.id]=n),!0}return Ue&&(Ue.slots[this.id]=_b),!1}getValue(){if(this.hasValue())return Ue.slots[this.id]}withValue(t,n,r,i){const s=Ue;Ue={parent:s,slots:{__proto__:null,[this.id]:t}};try{return n.apply(i,r)}finally{Ue=s}}static bind(t){const n=Ue;return function(){const r=Ue;try{return Ue=n,t.apply(this,arguments)}finally{Ue=r}}}static noContext(t,n,r){if(!Ue)return t.apply(r,n);{const i=Ue;try{return Ue=null,t.apply(r,n)}finally{Ue=i}}}}),Eo=new Hf,{hasOwnProperty:bF}=Object.prototype,$f=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Aa(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const wo=[],EF=100;function ai(e,t){if(!e)throw new Error(t||"assertion failure")}function Mb(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}let _F=(()=>{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 Ab(this),this.value[0]}recompute(n){return ai(!this.recomputing,"already recomputing"),Ab(this),Rn(this)?function CF(e,t){return Fb(e),Eo.withValue(e,TF,[e,t]),function MF(e,t){if("function"==typeof e.subscribe)try{Aa(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function IF(e){e.dirty=!1,!Rn(e)&&Ob(e)}(e),Mb(e.value)}(this,n):Mb(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,kb(this),Aa(this))}dispose(){this.setDirty(),Fb(this),qf(this,(n,r)=>{n.setDirty(),Rb(n,this)})}forget(){this.dispose()}dependOn(n){n.add(this),this.deps||(this.deps=wo.pop()||new Set),this.deps.add(n)}forgetDeps(){this.deps&&($f(this.deps).forEach(n=>n.delete(this)),this.deps.clear(),wo.push(this.deps),this.deps=null)}}return e.count=0,e})();function Ab(e){const t=Eo.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Rn(e)?Nb(t,e):xb(t,e),t}function TF(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function Rn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function kb(e){qf(e,Nb)}function Ob(e){qf(e,xb)}function qf(e,t){const n=e.parents.size;if(n){const r=$f(e.parents);for(let i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),Pb(e,t),!Rn(e)&&Ob(e)}function Pb(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(wo.length0&&e.childValues.forEach((t,n)=>{Rb(e,n)}),e.forgetDeps(),ai(null===e.dirtyChildren)}function Rb(e,t){t.parents.delete(e),e.childValues.delete(t),Pb(e,t)}const AF={setDirty:!0,dispose:!0,forget:!0};function Lb(e){const t=new Map,n=e&&e.subscribe;function r(i){const o=Eo.getValue();if(o){let s=t.get(i);s||t.set(i,s=new Set),o.dependOn(s),"function"==typeof n&&(Aa(s),s.unsubscribe=n(i))}}return r.dirty=function(o,s){const a=t.get(o);if(a){const c=s&&bF.call(AF,s)?s:"setDirty";$f(a).forEach(u=>u[c]()),t.delete(o),Aa(a)}},r}let Bb;function kF(...e){return(Bb||(Bb=new Fn("function"==typeof WeakMap))).lookupArray(e)}const zf=new Set;function ka(e,{max:t=Math.pow(2,16),makeCacheKey:n=kF,keyArgs:r,subscribe:i}=Object.create(null)){const o=new mF(t,l=>l.dispose()),s=function(){const l=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===l)return e.apply(null,arguments);let f=o.get(l);f||(o.set(l,f=new _F(e)),f.subscribe=i,f.forget=()=>o.delete(l));const d=f.recompute(Array.prototype.slice.call(arguments));return o.set(l,f),zf.add(o),Eo.hasValue()||(zf.forEach(h=>h.clean()),zf.clear()),d};function a(l){const f=o.get(l);f&&f.setDirty()}function c(l){const f=o.get(l);if(f)return f.peek()}function u(l){return o.delete(l)}return Object.defineProperty(s,"size",{get:()=>o.map.size,configurable:!1,enumerable:!1}),Object.freeze(s.options={max:t,makeCacheKey:n,keyArgs:r,subscribe:i}),s.dirtyKey=a,s.dirty=function(){a(n.apply(null,arguments))},s.peekKey=c,s.peek=function(){return c(n.apply(null,arguments))},s.forgetKey=u,s.forget=function(){return u(n.apply(null,arguments))},s.makeCacheKey=n,s.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(s)}var Gf=new Hf,jb=new WeakMap;function So(e){var t=jb.get(e);return t||jb.set(e,t={vars:new Set,dep:Lb()}),t}function Vb(e){So(e).vars.forEach(function(t){return t.forgetCache(e)})}function NF(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(c){So(c).dep.dirty(r),function xF(e){e.broadcastWatches&&e.broadcastWatches()}(c)});var s=Array.from(n);n.clear(),s.forEach(function(c){return c(e)})}}else{var a=Gf.getValue();a&&(i(a),So(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),So(o).vars.add(r),r};return r.forgetCache=function(o){return t.delete(o)},r}var Hb=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=qD(n.resolvers,r)}):this.resolvers=qD(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){var n=t.document,r=t.remoteResult,i=t.context,o=t.variables,s=t.onlyRunForcedResolvers,a=void 0!==s&&s;return Ht(this,void 0,void 0,function(){return tn(this,function(c){return n?[2,this.resolveDocument(n,r.data,i,o,this.fragmentMatcher,a).then(function(u){return b(b({},r),{data:u.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return or(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return ob(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,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),Ht(this,void 0,void 0,function(){return tn(this,function(i){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,n)||{},this.prepareContext(r),n).then(function(o){return b(b({},n),o.exportedVariables)})]:[2,b({},n)]})})},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 ir}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:qP(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Ht(this,void 0,void 0,function(){var a,c,u,l,f,d,h,p,m,v;return tn(this,function(D){return a=go(t),c=Ea(t),u=va(c),l=this.collectSelectionsToResolve(a,u),d=(f=a.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=(h=this).cache,m=h.client,v={fragmentMap:u,context:b(b({},r),{cache:p,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,!1,n,v).then(function(y){return{result:y,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return Ht(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 Ht(l,void 0,void 0,function(){var h;return tn(this,function(m){return(n||i.selectionsToResolve.has(d))&&vo(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 Rx(e){return"InlineFragment"===e.kind}(d)?h=d:B(h=o[d.name.value],16,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 _f(c)})]})})},e.prototype.resolveField=function(t,n,r,i){return Ht(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(Gf.withValue(this.cache,h,[r,ba(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(E){"export"===E.name.value&&E.arguments&&E.arguments.forEach(function(C){"as"===C.name.value&&"StringValue"===C.value.kind&&(i.exportedVariables[C.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(E){return"client"===E.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)&&wb(h)&&a.add(h)})},FragmentSpread:function(c,u,l,f,d){var h=n[c.name.value];B(h,17,c.name.value);var p=o(h);p.size>0&&(d.forEach(function(m){r(m)&&wb(m)&&a.add(m)}),a.add(c),p.forEach(function(m){a.add(m)}))}})}return i.get(s)}(t)},e}(),ci=new(bn?WeakMap:Map);function Wf(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return ci.set(e,(ci.get(e)+1)%1e15),n.apply(this,arguments)})}function Ub(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Qf=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.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;ci.has(r)||(ci.set(r,0),Wf(r,"evict"),Wf(r,"modify"),Wf(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||te.loading;return this.variables&&this.networkStatus!==te.loading&&!Ce(this.variables,t.variables)&&(n=te.setVariables),Ce(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(){Ub(this),this.dirty=!1},e.prototype.getDiff=function(t){void 0===t&&(t=this.variables);var n=this.getDiffOptions(t);if(this.lastDiff&&Ce(n,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=t);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var i=this.cache.diff(n);return this.updateLastDiff(i,n),i},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 n=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!Ce(r&&r.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():bb(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;Ub(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(lo(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,this.subscriptions.forEach(function(n){return n.unsubscribe()});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||!Ce(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===ci.get(this.cache)&&Ce(n,r.variables)&&Ce(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var o=this,s=new Pn,a=Zt(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&Zt(t.incremental)){var c=zD(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&&(Kf(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:ci.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||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 Kf(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Ia(e);return!r&&n&&e.data&&(r=!0),r}var PF=Object.prototype.hasOwnProperty,FF=function(){function e(t){var n=t.cache,r=t.link,i=t.defaultOptions,o=t.documentTransform,s=t.queryDeduplication,a=void 0!==s&&s,c=t.onBroadcast,u=t.ssrMode,l=void 0!==u&&u,f=t.clientAwareness,d=void 0===f?{}:f,h=t.localState,p=t.assumeImmutableResults,m=void 0===p?!!n.assumeImmutableResults:p,v=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(bn?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var g=new pb(function(D){return v.cache.transformDocument(D)},{cache:!1});this.cache=n,this.link=r,this.defaultOptions=i||Object.create(null),this.queryDeduplication=a,this.clientAwareness=d,this.localState=h||new Hb({cache:n}),this.ssrMode=l,this.assumeImmutableResults=m,this.documentTransform=o?g.concat(o).concat(g):g,(this.onBroadcast=c)&&(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(23))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){var n,r,i=t.mutation,o=t.variables,s=t.optimisticResponse,a=t.updateQueries,c=t.refetchQueries,u=void 0===c?[]:c,l=t.awaitRefetchQueries,f=void 0!==l&&l,d=t.update,h=t.onQueryUpdated,p=t.fetchPolicy,m=void 0===p?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.fetchPolicy)||"network-only":p,v=t.errorPolicy,g=void 0===v?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":v,D=t.keepRootFields,y=t.context;return Ht(this,void 0,void 0,function(){var E,C,_,P;return tn(this,function(z){switch(z.label){case 0:return B(i,24),B("network-only"===m||"no-cache"===m,25),E=this.generateMutationId(),i=this.cache.transformForLink(this.transform(i)),C=this.getDocumentInfo(i).hasClientExports,o=this.getVariables(i,o),C?[4,this.localState.addExportedVariables(i,o,y)]:[3,2];case 1:o=z.sent(),z.label=2;case 2:return _=this.mutationStore&&(this.mutationStore[E]={mutation:i,variables:o,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:E,document:i,variables:o,fetchPolicy:m,errorPolicy:g,context:y,updateQueries:a,update:d,keepRootFields:D}),this.broadcastQueries(),P=this,[2,new Promise(function(me,fe){return Ff(P.getObservableFromLink(i,b(b({},y),{optimisticResponse:s}),o,!1),function(be){if(Ia(be)&&"none"===g)throw new ni({graphQLErrors:Rf(be)});_&&(_.loading=!1,_.error=null);var En=b({},be);return"function"==typeof u&&(u=u(En)),"ignore"===g&&Ia(En)&&delete En.errors,P.markMutationResult({mutationId:E,result:En,document:i,variables:o,fetchPolicy:m,errorPolicy:g,context:y,update:d,updateQueries:a,awaitRefetchQueries:f,refetchQueries:u,removeOptimistic:s?E:void 0,onQueryUpdated:h,keepRootFields:D})}).subscribe({next:function(be){P.broadcastQueries(),(!("hasNext"in be)||!1===be.hasNext)&&me(be)},error:function(be){_&&(_.loading=!1,_.error=be),s&&P.cache.removeOptimistic(E),P.broadcastQueries(),fe(be instanceof ni?be:new ni({networkError:be}))}})})]}})})},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&&Kf(i,t.errorPolicy)){if(ri(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),ri(i)&&Zt(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=zD(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&&PF.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}),E=y.result;if(y.complete&&E){var _=m(E,{mutationResult:i,queryName:g&&gf(g)||void 0,queryVariables:D});_&&o.push({result:_,dataId:"ROOT_QUERY",query:g,variables:D})}}})}if(o.length>0||t.refetchQueries||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 gP(e){return ri(e)||function mP(e){return"hasNext"in e&&"data"in e}(e)}(i)||ri(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):t;return this.cache.recordOptimisticTransaction(function(o){try{r.markMutationResult(b(b({},n),{result:{data:i}}),o)}catch(s){!1!==globalThis.__DEV__&&B.error(s)}},n.mutationId)},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:Qx(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:or(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:Mf([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:yf(mo(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 Qf(this),i=new Bf({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()),B(t.query,26),B("Document"===t.query.kind,27),B(!t.returnPartialData,28),B(!t.pollInterval,29),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(30)),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 Sx(e){return le(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(s)?i.set(n.transform(s),!1):le(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=of("legacyOneTimeQuery"),c=n.getQuery(a).init({document:s.query,variables:s.variables}),u=new Bf({queryManager:n,queryInfo:c,options:b(b({},s),{fetchPolicy:"network-only"})});B(u.queryId===a),c.setObservableQuery(u),r.set(a,u)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(s,a){s||!1!==globalThis.__DEV__&&B.warn("string"==typeof a?31:32,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=t.variables,a=t.context,c=void 0===a?{}:a;r=this.transform(r),s=this.getVariables(r,s);var u=function(f){return n.getObservableFromLink(r,c,f).map(function(d){"no-cache"!==i&&(Kf(d,o)&&n.cache.write({query:r,result:d.data,dataId:"ROOT_SUBSCRIPTION",variables:f}),n.broadcastQueries());var h=Ia(d),p=function lP(e){return!!e.extensions&&Array.isArray(e.extensions[Sf])}(d);if(h||p){var m={};throw h&&(m.graphQLErrors=d.errors),p&&(m.protocolErrors=d.extensions[Sf]),new ni(m)}return d})};if(this.getDocumentInfo(r).hasClientExports){var l=this.localState.addExportedVariables(r,s,c).then(u);return new ce(function(f){var d=null;return l.then(function(h){return d=h.subscribe(f)},f.error),function(){return d&&d.unsubscribe()}})}return u(s)},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){var s,o=this;void 0===i&&(i=null!==(s=n?.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var a,c=this.getDocumentInfo(t),u=c.serverQuery,l=c.clientQuery;if(u){var d=this.inFlightLinkObservables,h=this.link,p={query:u,variables:r,operationName:gf(u)||void 0,context:this.prepareContext(b(b({},n),{forceFetch:!i}))};if(n=p.context,i){var m=XD(u),v=d.get(m)||new Map;d.set(m,v);var g=sr(r);if(!(a=v.get(g))){var D=new oi([vf(h,p)]);v.set(g,a=D),D.beforeNext(function(){v.delete(g)&&v.size<1&&d.delete(m)})}}else a=new oi([vf(h,p)])}else a=new oi([ce.of({data:{}})]),n=this.prepareContext(n);return l&&(a=Ff(a,function(y){return o.localState.runResolvers({document:l,remoteResult:y,context:n,variables:r})})),a},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return Ff(this.getObservableFromLink(o,r.context,r.variables),function(s){var a=Rf(s),c=a.length>0;if(i>=t.lastRequestId){if(c&&"none"===r.errorPolicy)throw t.markError(new ni({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 fP(e){return e.hasOwnProperty("graphQLErrors")}(s)?s:new ni({networkError:s});throw i>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,n,r){var i=this;void 0===r&&(r=te.loading);var _,P,o=n.query,s=this.getVariables(o,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:o,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}),E=function(me){y.variables=me;var fe=i.fetchQueryByPolicy(a,y,r);return"standby"!==y.fetchPolicy&&fe.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",n),fe},C=function(){return i.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(me){C(),setTimeout(function(){return _.cancel(me)})}),this.getDocumentInfo(y.query).hasClientExports)_=new oi(this.localState.addExportedVariables(y.query,y.variables,y.context).then(E).then(function(me){return me.sources})),P=!0;else{var z=E(y.variables);P=z.fromLink,_=new oi(z.sources)}return _.promise.then(C,C),{concast:_,fromLink:P}},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?of("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 Qf&&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(s)},m=function(E,C){void 0===C&&(C=t.networkStatus||te.loading);var _=E.result;!1!==globalThis.__DEV__&&!l&&!Ce(_,{})&&Eb(E.missing);var P=function(z){return ce.of(b({data:z,loading:lo(C),networkStatus:C},E.complete?null:{partial:!0}))};return _&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:_},context:f,variables:s,onlyRunForcedResolvers:!0}).then(function(z){return P(z.data||void 0)}):"none"===u&&C===te.refetch&&Array.isArray(E.missing)?P(void 0):P(_)},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&&lo(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 Qf(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){void 0===t&&(t={});var n=this.localState.prepareContext(t);return b(b({},n),{clientAwareness:this.clientAwareness})},e}();function Yf(e,t){return si(e,t,t.variables&&{variables:si(b(b({},e&&e.variables),t.variables))})}var $b=!1,qb=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw et(13);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=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:d,p=t.queryDeduplication,m=void 0===p||p,v=t.defaultOptions,g=t.assumeImmutableResults,D=void 0===g?s.assumeImmutableResults:g,y=t.resolvers,E=t.typeDefs,C=t.fragmentMatcher,_=t.name,P=t.version,z=t.link;if(z||(z=r?new GP({uri:r,credentials:t.credentials,headers:t.headers}):ti.empty()),this.link=z,this.cache=s,this.disableNetworkFetches=u||f>0,this.queryDeduplication=m,this.defaultOptions=v||Object.create(null),this.typeDefs=E,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.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!$b&&h&&!1!==globalThis.__DEV__&&($b=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var me=window.navigator,fe=me&&me.userAgent,be=void 0;"string"==typeof fe&&(fe.indexOf("Chrome/")>-1?be="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":fe.indexOf("Firefox/")>-1&&(be="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),be&&!1!==globalThis.__DEV__&&B.log("Download the Apollo DevTools for a better development experience: %s",be)}this.version=rf,this.localState=new Hb({cache:s,client:this,resolvers:y,fragmentMatcher:C}),this.queryManager=new FF({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:a,queryDeduplication:m,ssrMode:u,clientAwareness:{name:_,version:P},localState:this.localState,assumeImmutableResults:D,onBroadcast:h?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0})}return 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=Yf(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=Yf(this.defaultOptions.query,t)),B("cache-and-network"!==t.fetchPolicy,14),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=Yf(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.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 vf(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__&&B.debug(15,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},e}();function LF(e,t){if(!Boolean(e))throw new Error(t??"Unexpected invariant triggered.")}const BF=/\r\n|[\n\r]/g;function Jf(e,t){let n=0,r=1;for(const i of e.body.matchAll(BF)){if("number"==typeof i.index||LF(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function jF(e){return zb(e.source,Jf(e.source,e.start))}function zb(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+Gb([[s-1+" |",l[i-1]],[`${s} |`,f],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function Gb(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 Xf extends Error{constructor(t,...n){var r,i,o;const{nodes:s,source:a,positions:c,path:u,originalError:l,extensions:f}=function VF(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=Wb(Array.isArray(s)?s:s?[s]:void 0);const d=Wb(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=>Jf(a,p)):d?.map(p=>Jf(p.source,p.start));const h=function RF(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,Xf):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"+jF(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+="\n\n"+zb(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 Wb(e){return void 0===e||0===e.length?void 0:e}function Le(e,t,n){return new Xf(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Oa=(()=>(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"}(Oa||(Oa={})),Oa))(),w=(()=>(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"}(w||(w={})),w))();class HF{constructor(t){const n=new BD(w.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!==w.EOF)do{if(t.next)t=t.next;else{const n=$F(this,t.end);t.next=n,n.prev=t,t=n}}while(t.kind===w.COMMENT);return t}}function ui(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Na(e,t){return Qb(e.charCodeAt(t))&&Kb(e.charCodeAt(t+1))}function Qb(e){return e>=55296&&e<=56319}function Kb(e){return e>=56320&&e<=57343}function ar(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return w.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return'"'===r?"'\"'":`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Oe(e,t,n,r,i){return new BD(t,n,r,e.line,1+n-e.lineStart,i)}function $F(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 KF(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 Le(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function YF(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o0||Sa(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Sa(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class xa{constructor(t,n={}){const r=function ZF(e){return XF(e,Jb)}(t)?t:new Jb(t);this._lexer=new HF(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(w.NAME);return this.node(t,{kind:M.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:M.DOCUMENT,definitions:this.many(w.SOF,this.parseDefinition,w.EOF)})}parseDefinition(){if(this.peek(w.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===w.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 Le(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(w.BRACE_L))return this.node(t,{kind:M.OPERATION_DEFINITION,operation:rr.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(w.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(w.NAME);switch(t.value){case"query":return rr.QUERY;case"mutation":return rr.MUTATION;case"subscription":return rr.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(w.PAREN_L,this.parseVariableDefinition,w.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:M.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(w.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(w.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(w.DOLLAR),this.node(t,{kind:M.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:M.SELECTION_SET,selections:this.many(w.BRACE_L,this.parseSelection,w.BRACE_R)})}parseSelection(){return this.peek(w.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(w.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(w.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){return this.optionalMany(w.PAREN_L,t?this.parseConstArgument:this.parseArgument,w.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(w.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(w.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(w.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 w.BRACKET_L:return this.parseList(t);case w.BRACE_L:return this.parseObject(t);case w.INT:return this.advanceLexer(),this.node(n,{kind:M.INT,value:n.value});case w.FLOAT:return this.advanceLexer(),this.node(n,{kind:M.FLOAT,value:n.value});case w.STRING:case w.BLOCK_STRING:return this.parseStringLiteral();case w.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 w.DOLLAR:if(t){if(this.expectToken(w.DOLLAR),this._lexer.token.kind===w.NAME)throw Le(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===w.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:M.LIST,values:this.any(w.BRACKET_L,()=>this.parseValueLiteral(t),w.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:M.OBJECT,fields:this.any(w.BRACE_L,()=>this.parseObjectField(t),w.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(w.COLON),this.node(n,{kind:M.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(w.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(w.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(w.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(w.BRACKET_R),n=this.node(t,{kind:M.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(w.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(w.STRING)||this.peek(w.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(w.BRACE_L,this.parseOperationTypeDefinition,w.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(w.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(w.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseFieldDefinition,w.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(w.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(w.PAREN_L,this.parseInputValueDef,w.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(w.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(w.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(w.EQUALS)?this.delimitedMany(w.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(w.BRACE_L,this.parseEnumValueDefinition,w.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 Le(this._lexer.source,this._lexer.token.start,`${Pa(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(w.BRACE_L,this.parseInputValueDef,w.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===w.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(w.BRACE_L,this.parseOperationTypeDefinition,w.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(w.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(w.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Oa,n.value))return n;throw this.unexpected(t)}node(t,n){return!0!==this._options.noLocation&&(n.loc=new Gx(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 Le(this._lexer.source,n.start,`Expected ${Xb(t)}, found ${Pa(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const n=this._lexer.token;if(n.kind!==w.NAME||n.value!==t)throw Le(this._lexer.source,n.start,`Expected "${t}", found ${Pa(n)}.`);this.advanceLexer()}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===w.NAME&&n.value===t&&(this.advanceLexer(),!0)}unexpected(t){const n=t??this._lexer.token;return Le(this._lexer.source,n.start,`Unexpected ${Pa(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!==w.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Le(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Pa(e){const t=e.value;return Xb(e.kind)+(null!=t?` "${t}"`:"")}function Xb(e){return function UF(e){return e===w.BANG||e===w.DOLLAR||e===w.AMP||e===w.PAREN_L||e===w.PAREN_R||e===w.SPREAD||e===w.COLON||e===w.EQUALS||e===w.AT||e===w.BRACKET_L||e===w.BRACKET_R||e===w.BRACE_L||e===w.PIPE||e===w.BRACE_R}(e)?`"${e}"`:e}var Fa=new Map,ed=new Map,Zb=!0,Ra=!1;function eE(e){return e.replace(/[\s,]+/g," ").trim()}function iR(e){var t=eE(e);if(!Fa.has(t)){var n=function eR(e,t){return new xa(e,t).parseDocument()}(e,{experimentalFragmentVariables:Ra,allowLegacyFragmentVariables:Ra});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Fa.set(t,function rR(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 nR(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if("FragmentDefinition"===r.kind){var i=r.name.value,o=function tR(e){return eE(e.source.body.substring(e.start,e.end))}(r.loc),s=ed.get(i);s&&!s.has(o)?Zb&&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||ed.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 Fa.get(t)}function li(e){for(var t=[],n=1;n(e().then(n=>{t.closed||(t.next(n),t.complete())},n=>{t.closed||t.error(n)}),()=>t.unsubscribe()))}(function(e){e.gql=Co_gql,e.resetCaches=Co_resetCaches,e.disableFragmentWarnings=Co_disableFragmentWarnings,e.enableExperimentalFragmentVariables=Co_enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Co_disableExperimentalFragmentVariables})(li||(li={})),li.default=li;class dR{constructor(t){ue(this,"zone",void 0),ue(this,"now",Date.now?Date.now:()=>+new Date),this.zone=t}schedule(t,n=0,r){return this.zone.run(()=>dx.schedule(t,n,r))}}function rE(e){return e[Lo]=()=>e,e}function iE(e,t){return e.pipe(ec(new dR(t)))}function oE(e,t,n){return e&&typeof e[t]<"u"?e[t]:n}class pR{constructor(t,n,r){ue(this,"obsQuery",void 0),ue(this,"valueChanges",void 0),ue(this,"queryId",void 0),this.obsQuery=t;const i=iE(yi(rE(this.obsQuery)),n);this.valueChanges=r.useInitialLoading?i.pipe(function hR(e){return function(n){return new Ee(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 mR=new F("APOLLO_FLAGS"),sE=new F("APOLLO_OPTIONS"),gR=new F("APOLLO_NAMED_OPTIONS");class aE{constructor(t,n,r){ue(this,"ngZone",void 0),ue(this,"flags",void 0),ue(this,"_client",void 0),ue(this,"useInitialLoading",void 0),ue(this,"useMutationLoading",void 0),this.ngZone=t,this.flags=n,this._client=r,this.useInitialLoading=oE(n,"useInitialLoading",!1),this.useMutationLoading=oE(n,"useMutationLoading",!1)}watchQuery(t){return new pR(this.ensureClient().watchQuery({...t}),this.ngZone,{useInitialLoading:this.useInitialLoading,...t})}query(t){return nE(()=>this.ensureClient().query({...t}))}mutate(t){return function fR(e,t){return t?e.pipe(function lR(...e){const t=Vo(e);return Un((n,r)=>{(t?tE(e,n,t):tE(e,n)).subscribe(r)})}({loading:!0}),nt(n=>({...n,loading:!!n.loading}))):e.pipe(nt(n=>({...n,loading:!1})))}(nE(()=>this.ensureClient().mutate({...t})),t.useMutationLoading??this.useMutationLoading)}subscribe(t,n){const r=yi(rE(this.ensureClient().subscribe({...t})));return n&&!0!==n.useZone?r:iE(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 cE=(()=>{class e extends aE{constructor(n,r,i,o){if(super(n,o),ue(this,"_ngZone",void 0),ue(this,"map",new Map),this._ngZone=n,r&&this.createDefault(r),i&&"object"==typeof i)for(let s in i)i.hasOwnProperty(s)&&this.create(i[s],s)}create(n,r){td(r)?this.createDefault(n):this.createNamed(r,n)}default(){return this}use(n){return td(n)?this.default():this.map.get(n)}createDefault(n){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new qb(n))}createNamed(n,r){if(this.map.has(n))throw new Error(`Client ${n} has been already created`);this.map.set(n,new aE(this._ngZone,this.flags,new qb(r)))}removeClient(n){td(n)?this._client=void 0:this.map.delete(n)}}return ue(e,"\u0275fac",function(n){return new(n||e)(V(He),V(sE,8),V(gR,8),V(mR,8))}),ue(e,"\u0275prov",Y({token:e,factory:e.\u0275fac})),e})();function td(e){return!e||"default"===e}const yR=[cE];let vR=(()=>{class e{}return ue(e,"\u0275fac",function(n){return new(n||e)}),ue(e,"\u0275mod",Tn({type:e})),ue(e,"\u0275inj",rn({providers:yR})),e})();const uE=function DR(e,...t){return li(e,...t)};var bR=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=ka(wx)}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.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=en(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=en(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}(),lE=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 nd(e){return!1!==globalThis.__DEV__&&function ER(e){var t=new Set([e]);return t.forEach(function(n){le(n)&&function wR(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){le(n[r])&&t.add(n[r])})}),e}(e),e}var Be=Object.prototype.hasOwnProperty;function To(e){return null==e}function fE(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=To(r)?To(i)?void 0:{_id:i}:{id:r}),To(r)&&!To(i)&&(r=i),!To(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var dE={dataIdFromObject:fE,addTypename:!0,resultCaching:!0,canonizeResults:!1};function hE(e){var t=e.canonizeResults;return void 0===t?dE.canonizeResults:t}var pE=/^[_a-z][_0-9a-z]*/i;function Ln(e){var t=e.match(pE);return t?t[0]:e}function rd(e,t,n){return!!le(t)&&(De(t)?t.every(function(r){return rd(e,r,n)}):e.selections.every(function(r){if(xn(r)&&vo(r,n)){var i=Nn(r);return Be.call(t,i)&&(!r.selectionSet||rd(r.selectionSet,t[i],n))}return!0}))}function fi(e){return le(e)&&!ne(e)&&!De(e)}function mE(e,t){var n=va(Ea(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var La=Object.create(null),id=function(){return La},gE=Object.create(null),Io=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 nd(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 Zr(i);if(ne(i))return i;var s=r.policies.identify(i)[0];if(s){var a=Zr(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),Be.call(this.data,t)){var r=this.data[t];if(r&&Be.call(r,n))return r[n]}return"__typename"===n&&Be.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"),Be.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){B("string"==typeof i,1);var a=new Pn(IR).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:La,INVALIDATE:gE,isReference:ne,toReference:this.toReference,canRead:this.canRead,readField:function(u,l){return r.policies.readField("string"==typeof u?{fieldName:u,from:l||Zr(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===id?La:d(nd(f),b(b({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(t,u)}));h===gE?r.group.dirty(t,u):(h===La&&(h=void 0),h!==f&&(o[u]=h,s=!0,f=h))}void 0!==f&&(a=!1)}}),s)return this.merge(t,o),a&&(this instanceof Bn?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,r){var i,o=this.lookup(t);if(o){var s=this.getFieldValue(o,"__typename"),a=n&&r?this.policies.getStoreFieldName({typename:s,fieldName:n,args:r}):n;return this.modify(t,a?((i={})[a]=id,i):id)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(Be.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof Bn&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(i){Be.call(t.policies.rootTypenamesById,i)||r.push(i)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(o){t&&Be.call(t,o)||n.delete(o)}),t){var r=t.__META,i=en(t,["__META"]);Object.keys(i).forEach(function(o){n.merge(o,i[o])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){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){Be.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(!Be.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),le(o)&&Object.keys(o).forEach(function(s){var a=o[s];le(a)&&i.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),yE=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?Lb():null,this.keyMaker=new Fn(bn)},e.prototype.depend=function(t,n){if(this.d){this.d(od(t,n));var r=Ln(n);r!==n&&this.d(od(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(od(t,n),"__exists"===n?"forget":"setDirty")},e}();function od(e,t){return t+"#"+e}function vE(e,t){Mo(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 yE(void 0===s||s))||this;return u.stump=new TR(u),u.storageTrie=new Fn(bn),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}(Io||(Io={}));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){Ce(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 Be.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}(Io),TR=function(e){function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new yE(n.group.caching,n.group))||this}return Mt(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Bn);function IR(e,t,n){var r=e[n],i=t[n];return Ce(r,i)?r:i}function Mo(e){return!!(e instanceof Io&&e.group.caching)}function DE(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var MR=function(){function e(t){var n=this;this.knownResults=new(bn?WeakMap:Map),this.config=si(t,{addTypename:!1!==t.addTypename,canonizeResults:hE(t)}),this.canon=t.canon||new Nf,this.executeSelectionSet=ka(function(r){var i,o=r.context.canonizeResults,s=DE(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:(vE(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize,keyArgs:DE,makeCacheKey:function(r,i,o,s){if(Mo(o.store))return o.store.makeCacheKey(r,ne(i)?i.__ref:i,o.varString,s)}}),this.executeSubSelectedArray=ka(function(r){return vE(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var i=r.field,o=r.array,s=r.context;if(Mo(s.store))return s.store.makeCacheKey(i,o,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Nf},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({},yf(FD(r))),s);var p,d=Zr(o),h=this.executeSelectionSet({selectionSet:go(r).selectionSet,objectOrReference:d,enclosingRef:d,context:b({store:n,query:r,policies:f,variables:s,varString:sr(s),canonizeResults:l},mE(r,this.config.fragments))});if(h.missing&&(p=[new lE(AR(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(Mo(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,E){var C;return y.missing&&(d=h.merge(d,((C={})[E]=y.missing,C))),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 E,C;if(vo(y,a))if(xn(y)){var _=c.readField({fieldName:y.name.value,field:y,variables:s.variables,from:i},s),P=Nn(y);void 0===_?Af.added(y)||(d=h.merge(d,((E={})[P]="Can't find field '".concat(y.name.value,"' on ").concat(ne(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),E))):De(_)?_=p(n.executeSubSelectedArray({field:y,array:_,enclosingRef:o,context:s}),P):y.selectionSet?null!=_&&(_=p(n.executeSelectionSet({selectionSet:y.selectionSet,objectOrReference:_,enclosingRef:ne(_)?_:o,context:s}),P)):s.canonizeResults&&(_=n.canon.pass(_)),void 0!==_&&f.push(((C={})[P]=_,C))}else{var z=Da(y,s.lookupFragment);if(!z&&y.kind===M.FRAGMENT_SPREAD)throw et(7,y.name.value);z&&c.fragmentMatches(z,l)&&z.selectionSet.selections.forEach(m.add,m)}});var g={result:_f(f),missing:d},D=s.canonizeResults?this.canon.admit(g):nd(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:De(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 kR(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){le(i)&&(B(!ne(i),8,function _R(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 AR(e){try{JSON.stringify(e,function(t,n){if("string"==typeof n)throw n;return n})}catch(t){return t}}var bE=Object.create(null);function sd(e){var t=JSON.stringify(e);return bE[t]||(bE[t]=Object.create(null))}function EE(e){var t=sd(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(s,a){return r.readField(a,s)},o=r.keyObject=ad(e,function(s){var a=di(r.storeObject,s,i);return void 0===a&&n!==r.storeObject&&Be.call(n,s[0])&&(a=di(n,s,_E)),B(void 0!==a,2,s.join("."),n),a});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function wE(e){var t=sd(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,o=r.variables,s=r.fieldName,a=ad(e,function(u){var l=u[0],f=l.charAt(0);if("@"!==f)if("$"!==f){if(n)return di(n,u)}else{var m=l.slice(1);if(o&&Be.call(o,m)){var v=u.slice(0);return v[0]=m,di(o,v)}}else if(i&&Zt(i.directives)){var d=l.slice(1),h=i.directives.find(function(g){return g.name.value===d}),p=h&&ba(h,o);return p&&di(p,u.slice(1))}}),c=JSON.stringify(a);return(n||"{}"!==c)&&(s+=":"+c),s})}function ad(e,t){var n=new Pn;return SE(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 SE(e){var t=sd(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,o){De(i)?(SE(i).forEach(function(s){return n.push(r.concat(s))}),r.length=0):(r.push(i),De(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function _E(e,t){return e[t]}function di(e,t,n){return n=n||_E,CE(t.reduce(function r(i,o){return De(i)?i.map(function(s){return r(s,o)}):i&&n(i,o)},e))}function CE(e){return le(e)?De(e)?e.map(CE):ad(Object.keys(e).sort(),function(t){return di(e,t)}):e}function cd(e){return void 0!==e.args?e.args:e.field?ba(e.field,e.variables):null}pf.setStringify(sr);var OR=function(){},TE=function(e,t){return t.fieldName},IE=function(e,t,n){return(0,n.mergeObjects)(e,t)},ME=function(e,t){return t},NR=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:fE},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=ud(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(!De(f)){c=f;break}l=EE(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=en(i,["queryType","mutationType","subscriptionType"]);o&&n.setRootTypename("Query",r),s&&n.setRootTypename("Mutation",r),a&&n.setRootTypename("Subscription",r),Be.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?IE:!1===u?ME:c.merge}a(i,n.merge),i.keyFn=!1===o?OR:De(o)?EE(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?TE:De(f)?wE(f):"function"==typeof f?f:u.keyFn,"function"==typeof d&&(u.read=d),a(u,h)}u.read&&u.merge&&(u.keyFn=u.keyFn||TE)})},e.prototype.setRootTypename=function(t,n){void 0===n&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(B(!i||i===t,3,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(pE);(!o||o[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Be.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=en(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),Be.call(s,"from")||(s.from=t)),!1!==globalThis.__DEV__&&void 0===s.from&&!1!==globalThis.__DEV__&&B.warn(5,MD(Array.from(e))),void 0===s.variables&&(s.variables=n),s}function kE(e){return function(n,r){if(De(n)||De(r))throw et(6);if(le(n)&&le(r)){var i=e.getFieldValue(n,"__typename"),o=e.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(ne(n)&&fi(r))return e.merge(n.__ref,r),n;if(fi(n)&&ne(r))return e.merge(n,r.__ref),r;if(fi(n)&&fi(r))return b(b({},n),r)}return r}}function ld(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 xR=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=mo(i),l=function CR(){return new Pn}();a=b(b({},yf(u)),a);var f=b(b({store:t,written:Object.create(null),merge:function(h,p){return l.merge(h,p)},variables:a,varString:sr(a)},mE(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(9,o);return f.incomingById.forEach(function(h,p){var m=h.storeObject,v=h.mergeTree,g=h.fieldNodeSet,D=Zr(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 E=Object.create(null);g.forEach(function(P){P.selectionSet&&(E[P.name.value]=!0)}),Object.keys(m).forEach(function(P){(function(P){return!0===E[Ln(P)]})(P)&&!function(P){var z=v&&v.map.get(P);return Boolean(z&&z.info&&z.info.merge)}(P)&&function PR(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)&&!Ce(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(!PE.has(u)){PE.add(u);var l=[];!De(o)&&!De(s)&&[o,s].forEach(function(f){var d=r.getFieldValue(f,"__typename");"string"==typeof d&&!l.includes(d)&&l.push(d)}),!1!==globalThis.__DEV__&&B.warn(12,c,a,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",u,o,s)}}}}(D,m,P,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=ud(arguments,u,s.variables);if(ne(y.from)){var E=s.incomingById.get(y.from.__ref);if(E){var C=c.readField(b(b({},y),{from:E.storeObject}),s);if(void 0!==C)return C}}return c.readField(y,s)},d=new Set;this.flattenFields(o,i,s,l).forEach(function(y,E){var C,_=Nn(E),P=i[_];if(d.add(E),void 0!==P){var z=c.getStoreFieldName({typename:l,fieldName:E.name.value,field:E,variables:y.variables}),me=NE(a,z),fe=n.processFieldValue(P,E,E.selectionSet?ld(y,!1,!1):y,me),be=void 0;E.selectionSet&&(ne(fe)||fi(fe))&&(be=f("__typename",fe));var En=c.getMergeFunction(l,E.name.value,be);En?me.info={field:E,typename:l,merge:En}:xE(a,z),u=y.merge(u,((C={})[z]=fe,C))}else!1!==globalThis.__DEV__&&!y.clientOnly&&!y.deferred&&!Af.added(E)&&!c.getReadFunction(l,E.name.value)&&!1!==globalThis.__DEV__&&B.error(10,Nn(E),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=Zr(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=fd(D.mergeTree,a),d.forEach(function(y){return D.fieldNodeSet.add(y)})):s.incomingById.set(r,{storeObject:u,mergeTree:Ba(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?De(t)?t.map(function(s,a){var c=o.processFieldValue(s,n,r,NE(i,a));return xE(i,a),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i}):!1!==globalThis.__DEV__?yb(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(vo(d,r.variables)){var h=l.clientOnly,p=l.deferred;if(!(h&&p)&&Zt(d.directives)&&d.directives.forEach(function(g){var D=g.name.value;if("client"===D&&(h=!0),"defer"===D){var y=ba(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,ld(r,h,p))}else{var v=Da(d,r.lookupFragment);if(!v&&d.kind===M.FRAGMENT_SPREAD)throw et(11,d.name.value);v&&s.fragmentMatches(v,i,n,r.variables)&&c(v.selectionSet,ld(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=De(r)||!ne(n)&&!fi(n)?void 0:n,u=r;c&&!o&&(o=[ne(c)?c.__ref:c]);var l,f=function(d,h){return De(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&&B(o.pop()===h)}}),l&&(r=De(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}(),OE=[];function NE(e,t){var n=e.map;return n.has(t)||n.set(t,OE.pop()||{map:new Map}),n.get(t)}function fd(e,t){if(e===t||!t||Ba(t))return e;if(!e||Ba(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,fd(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){o.map.set(a,fd(t.map.get(a),e.map.get(a)))})}return o}function Ba(e){return!e||!(e.info||e.map.size)}function xE(e,t){var n=e.map,r=n.get(t);r&&Ba(r)&&(OE.push(r),n.delete(t))}var PE=new Set,FR=function(e){function t(n){void 0===n&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new pb(Af),r.assumeImmutableResults=!0,r.makeVar=NF,r.txCount=0,r.config=function SR(e){return si(dE,e)}(n),r.addTypename=!!r.config.addTypename,r.policies=new NR({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 Io.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 xR(this,this.storeReader=new MR({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:hE(this.config),canon:n?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=ka(function(s,a){return r.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(s){var a=s.optimistic?r.optimisticData:r.data;if(Mo(a))return a.makeCacheKey(s.query,s.callback,sr({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 lE)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(Be.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 OF(e){So(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&&Vb(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){sr.reset();var r=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),r},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__&&B.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Be.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(),sr.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Vb(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||!Ce(i.result,o.result))&&n.callback(n.lastDiff=o,i)},t}(bR);class ja{}class dd{}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 jR{encodeKey(t){return FE(t)}encodeValue(t){return FE(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const HR=/%(\d[a-f0-9])/gi,UR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function FE(e){return encodeURIComponent(e).replace(HR,(t,n)=>UR[n]??t)}function Va(e){return`${e}`}class jn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new jR,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function VR(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(Va):[Va(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(Va(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(Va(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 $R{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 LE(e){return typeof Blob<"u"&&e instanceof Blob}function BE(e){return typeof FormData<"u"&&e instanceof FormData}class Ao{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 qR(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 $R),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 Ao(n,r,o,{params:u,headers:c,context:l,reportProgress:a,responseType:i,withCredentials:s})}}var Ne=(()=>((Ne=Ne||{})[Ne.Sent=0]="Sent",Ne[Ne.UploadProgress=1]="UploadProgress",Ne[Ne.ResponseHeader=2]="ResponseHeader",Ne[Ne.DownloadProgress=3]="DownloadProgress",Ne[Ne.Response=4]="Response",Ne[Ne.User=5]="User",Ne))();class hd{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 pd extends hd{constructor(t={}){super(t),this.type=Ne.ResponseHeader}clone(t={}){return new pd({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 Ha extends hd{constructor(t={}){super(t),this.type=Ne.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ha({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 jE extends hd{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 md(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 VE=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Ao)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 Ao(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 RR(...e){return yi(e,Vo(e))}(o).pipe(function LR(e,t){return de(t)?jo(e,t,1):jo(e,1)}(c=>this.handler.handle(c)));if(n instanceof Ao||"events"===i.observe)return s;const a=s.pipe(function BR(e,t){return Un((n,r)=>{let i=0;n.subscribe(gi(r,o=>e.call(t,o,i++)&&r.next(o)))})}(c=>c instanceof Ha));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,md(i,r))}post(n,r,i={}){return this.request("POST",n,md(i,r))}put(n,r,i={}){return this.request("PUT",n,md(i,r))}}return e.\u0275fac=function(n){return new(n||e)(V(ja))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function HE(e,t){return t(e)}function GR(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}const QR=new F("HTTP_INTERCEPTORS"),ko=new F("HTTP_INTERCEPTOR_FNS");function KR(){let e=null;return(t,n)=>(null===e&&(e=(bi(QR,{optional:!0})??[]).reduceRight(GR,HE)),e(t,n))}let UE=(()=>{class e extends ja{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(ko)));this.chain=r.reduceRight((i,o)=>function WR(e,t,n){return(r,i)=>n.runInContext(()=>t(r,o=>e(o,i)))}(i,o,this.injector),HE)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(V(dd),V(Yn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const ZR=/^\)\]\}',?\n/;let qE=(()=>{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 Ee(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 eL(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 pd({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(ZR,"");try{g=""!==g?JSON.parse(g):null}catch(E){g=y,D&&(D=!1,g={error:E,text:g})}}D?(r.next(new Ha({body:g,headers:h,status:p,statusText:m,url:v||void 0})),r.complete()):r.error(new jE({error:g,headers:h,status:p,statusText:m,url:v||void 0}))},u=h=>{const{url:p}=a(),m=new jE({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:Ne.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:Ne.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:Ne.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)(V(Zv))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const gd=new F("XSRF_ENABLED"),zE=new F("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),GE=new F("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class WE{}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=$v(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(V(Xt),V(gl),V(zE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function iL(e,t){const n=e.url.toLowerCase();if(!bi(gd)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=bi(WE).getToken(),i=bi(GE);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var Te=(()=>((Te=Te||{})[Te.Interceptors=0]="Interceptors",Te[Te.LegacyInterceptors=1]="LegacyInterceptors",Te[Te.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Te[Te.NoXsrfProtection=3]="NoXsrfProtection",Te[Te.JsonpSupport=4]="JsonpSupport",Te[Te.RequestsMadeViaParent=5]="RequestsMadeViaParent",Te))();function hi(e,t){return{\u0275kind:e,\u0275providers:t}}function oL(...e){const t=[VE,qE,UE,{provide:ja,useExisting:UE},{provide:dd,useExisting:qE},{provide:ko,useValue:iL,multi:!0},{provide:gd,useValue:!0},{provide:WE,useClass:rL}];for(const n of e)t.push(...n.\u0275providers);return function L_(e){return{\u0275providers:e}}(t)}const QE=new F("LEGACY_INTERCEPTOR_FN");let aL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Tn({type:e}),e.\u0275inj=rn({providers:[oL(hi(Te.LegacyInterceptors,[{provide:QE,useFactory:KR},{provide:ko,useExisting:QE,multi:!0}]))]}),e})();class cL extends ti{constructor(t,n){super(),ue(this,"httpClient",void 0),ue(this,"options",void 0),ue(this,"requester",void 0),ue(this,"print",YD),this.httpClient=t,this.options=n,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new ce(i=>{const o=r.getContext(),s=(D,y)=>function cr(...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 JE(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 Ee(u=>u.error(new Error("File upload is not available when combined with Batching")));if(!r)return new Ee(u=>u.error(new Error("File upload is not available when GET is used")));if(!n)return new Ee(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 Ee(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){ue(this,"httpClient",void 0),this.httpClient=n}create(n){return new cL(this.httpClient,n)}}return ue(e,"\u0275fac",function(n){return new(n||e)(V(VE))}),ue(e,"\u0275prov",Y({token:e,factory:e.\u0275fac,providedIn:"root"})),e})(),lL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Tn({type:e}),e.\u0275inj=rn({providers:[{provide:sE,useFactory:t=>{const n=new FR;return{link:t.create({uri:"https://graphqlpokemon.favware.tech/v7"}),cache:n,defaultOptions:{query:{fetchPolicy:"network-only",errorPolicy:"all"}}}},deps:[uL]}],imports:[vR]}),e})();class Oo extends Bo{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 Oo(""),this.pokemonListSource=new Oo(""),this.teraTypeSource=new Oo(""),this.moveListSource=new Oo(""),this.loadingSource=new Oo(!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 fL=uE` - query GetPokemon($pokemon: PokemonEnum!) { - getPokemon(pokemon: $pokemon) { - abilities { - first { - name - key - desc - shortDesc - } - second { - name - key - desc - shortDesc - } - hidden { - name - key - desc - shortDesc - } - } - key - num - types { - name - } - baseStats { - hp - attack - defense - specialattack - specialdefense - speed - } - learnsets { - generation8 { - dreamworldMoves { - ...LearnsetMoveFragment - } - eggMoves { - ...LearnsetMoveFragment - } - eventMoves { - ...LearnsetMoveFragment - } - tmMoves { - ...LearnsetMoveFragment - } - tutorMoves { - ...LearnsetMoveFragment - } - virtualTransferMoves { - ...LearnsetMoveFragment - } - levelUpMoves { - generation - move { - ...MoveFragment - } - } - } - } - } - } - - fragment MoveFragment on Move { - key - accuracy - basePower - category - desc - name - pp - priority - shortDesc - target - type - } - fragment LearnsetMoveFragment on LearnsetMove { - generation - move { - ...MoveFragment - } - } -`,dL=uE` - query getMove($move: MovesEnum!) { - getMove(move: $move) { - key - name - shortDesc - type - basePower - pp - category - accuracy - priority - target - desc - } - } -`;let ur=(()=>{class e{constructor(n){this.apollo=n}getAbilities(){return this.pokemon.pipe(nt(n=>n.getPokemon.abilities))}getDexNumber(){return this.pokemon.pipe(nt(n=>n.getPokemon.num))}getMove(n){return this.apollo.query({query:dL,variables:{move:n}}).pipe(nt(r=>r.data))}getMoves(){return this.pokemon.pipe(nt(n=>n.getPokemon.learnsets))}getPokemon(n){return this.pokemon=this.apollo.query({query:fL,variables:{pokemon:n}}).pipe(nt(r=>r.data)),this.pokemon}getStats(){return this.pokemon.pipe(nt(n=>n.getPokemon.baseStats))}getTypes(){return this.pokemon.pipe(nt(n=>n.getPokemon.types))}}return e.\u0275fac=function(n){return new(n||e)(V(cE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Ie=(()=>(function(e){e.Bug="Bug",e.Dark="Dark",e.Dragon="Dragon",e.Electric="Electric",e.Fairy="Fairy",e.Fighting="Fighting",e.Fire="Fire",e.Flying="Flying",e.Ghost="Ghost",e.Grass="Grass",e.Ground="Ground",e.Ice="Ice",e.Normal="Normal",e.Poison="Poison",e.Psychic="Psychic",e.Rock="Rock",e.Steel="Steel",e.Water="Water"}(Ie||(Ie={})),Ie))();const yd=[{name:Ie.Bug,matchup:{offense:{double:["dark","grass","psychic"],immune:[],normal:["bug","dragon","electric","ground","ice","normal","rock","water"],resisted:["fairy","fighting","fire","flying","ghost","poison","steel"]},defense:{double:["fire","flying","rock"],immune:[],normal:["bug","dark","dragon","electric","fairy","ghost","ice","normal","poison","psychic","steel","water"],resisted:["fighting","grass","ground"]}}},{name:Ie.Dark,matchup:{offense:{double:["ghost","psychic"],immune:[],normal:["bug","dragon","electric","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["dark","fairy","fighting"]},defense:{double:["bug","fairy","fighting"],immune:["psychic"],normal:["dragon","electric","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["dark","ghost"]}}},{name:Ie.Dragon,matchup:{offense:{double:["dragon"],immune:["fairy"],normal:["bug","dark","electric","fighting","fire","flying","ghost","grass","ground","ice","normal","poison","psychic","rock","water"],resisted:["steel"]},defense:{double:["dragon","fairy","ice"],immune:[],normal:["bug","dark","fighting","flying","ghost","ground","normal","poison","psychic","rock","steel"],resisted:["electric","fire","grass","water"]}}},{name:Ie.Electric,matchup:{offense:{double:["flying","water"],immune:["ground"],normal:["bug","dark","fairy","fighting","fire","ghost","ice","normal","poison","psychic","rock","steel"],resisted:["dragon","electric","grass"]},defense:{double:["ground"],immune:[],normal:["bug","dark","dragon","fairy","fighting","fire","ghost","grass","ice","normal","poison","psychic","rock","water"],resisted:["electric","flying","steel"]}}},{name:Ie.Fairy,matchup:{offense:{double:["dark","dragon","fighting"],immune:[],normal:["bug","electric","fairy","flying","ghost","grass","ground","ice","normal","psychic","rock","water"],resisted:["fire","poison","steel"]},defense:{double:["poison","steel"],immune:["dragon"],normal:["electric","fairy","fire","flying","ghost","grass","ground","ice","normal","psychic","rock","water"],resisted:["bug","dark","fighting"]}}},{name:Ie.Fighting,matchup:{offense:{double:["dark","ice","normal","rock","steel"],immune:["ghost"],normal:["dragon","electric","fighting","fire","grass","ground","water"],resisted:["bug","fairy","flying","poison","psychic"]},defense:{double:["fairy","flying","psychic"],immune:[],normal:["dragon","electric","fighting","fire","ghost","grass","ground","ice","normal","poison","steel","water"],resisted:["bug","dark","rock"]}}},{name:Ie.Fire,matchup:{offense:{double:["bug","grass","ice","steel"],immune:[],normal:["dark","electric","fairy","fighting","flying","ghost","ground","normal","poison","psychic"],resisted:["dragon","fire","rock","water"]},defense:{double:["ground","rock","water"],immune:[],normal:["dark","dragon","electric","fighting","flying","ghost","normal","poison","psychic"],resisted:["bug","fairy","fire","grass","ice","steel"]}}},{name:Ie.Flying,matchup:{offense:{double:["bug","fighting","grass"],immune:[],normal:["dark","dragon","fairy","fire","flying","ghost","ground","ice","normal","poison","psychic","water"],resisted:["electric","rock","steel"]},defense:{double:["electric","ice","rock"],immune:["ground"],normal:["dark","dragon","fairy","fire","flying","ghost","normal","poison","psychic","steel","water"],resisted:["bug","fighting","grass"]}}},{name:Ie.Ghost,matchup:{offense:{double:["ghost","psychic"],immune:["normal"],normal:["bug","dragon","electric","fairy","fighting","fire","flying","grass","ground","ice","poison","rock","steel","water"],resisted:["dark"]},defense:{double:["dark","ghost"],immune:["fighting","normal"],normal:["dragon","electric","fairy","fire","flying","grass","ground","ice","psychic","rock","steel","water"],resisted:["bug","poison"]}}},{name:Ie.Grass,matchup:{offense:{double:["ground","rock","water"],immune:[],normal:["dark","electric","fairy","fighting","ghost","ice","normal","psychic"],resisted:["bug","dragon","fire","flying","grass","poison","steel"]},defense:{double:["bug","fire","flying","ice","poison"],immune:[],normal:["dark","dragon","fairy","fighting","ghost","normal","psychic","rock","steel"],resisted:["electric","grass","ground","water"]}}},{name:Ie.Ground,matchup:{offense:{double:["electric","fire","poison","rock","steel"],immune:["flying"],normal:["dark","dragon","fairy","fighting","ghost","ground","ice","normal","psychic","water"],resisted:["bug","grass"]},defense:{double:["grass","ice","water"],immune:["electric"],normal:["bug","dark","dragon","fairy","fighting","fire","flying","ghost","ground","normal","psychic","steel"],resisted:["poison","rock"]}}},{name:Ie.Ice,matchup:{offense:{double:["dragon","flying","grass","ground"],immune:[],normal:["bug","dark","electric","fairy","fighting","ghost","normal","poison","psychic","rock"],resisted:["fire","ice","steel","water"]},defense:{double:["fighting","fire","rock","steel"],immune:[],normal:["bug","dark","dragon","electric","fairy","flying","ghost","grass","ground","normal","poison","psychic","water"],resisted:["ice"]}}},{name:Ie.Normal,matchup:{offense:{double:[],immune:["ghost"],normal:["bug","dark","dragon","electric","fairy","fighting","fire","flying","grass","ground","ice","normal","poison","psychic","water"],resisted:["rock","steel"]},defense:{double:["fighting"],immune:["ghost"],normal:["bug","dark","dragon","electric","fairy","fire","flying","grass","ground","ice","normal","poison","psychic","rock","steel","water"],resisted:[]}}},{name:Ie.Poison,matchup:{offense:{double:["fairy","grass"],immune:["steel"],normal:["bug","dark","dragon","electric","fighting","fire","flying","ice","normal","psychic","water"],resisted:["ghost","ground","poison","rock"]},defense:{double:["ground","psychic"],immune:[],normal:["dark","dragon","electric","fire","flying","ghost","ice","normal","rock","steel","water"],resisted:["bug","fairy","fighting","grass","poison"]}}},{name:Ie.Psychic,matchup:{offense:{double:["fighting","poison"],immune:["dark"],normal:["bug","dragon","electric","fairy","fire","flying","ghost","grass","ground","ice","normal","rock","water"],resisted:["psychic","steel"]},defense:{double:["bug","dark","ghost"],immune:[],normal:["dragon","electric","fairy","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["fighting","psychic"]}}},{name:Ie.Rock,matchup:{offense:{double:["bug","fire","flying","ice"],immune:[],normal:["dark","dragon","electric","fairy","ghost","grass","normal","poison","psychic","rock","water"],resisted:["fighting","ground","steel"]},defense:{double:["fighting","grass","ground","steel","water"],immune:[],normal:["bug","dark","dragon","electric","fairy","ghost","ice","psychic","rock"],resisted:["fire","flying","normal","poison"]}}},{name:Ie.Steel,matchup:{offense:{double:["fairy","ice","rock"],immune:[],normal:["bug","dark","dragon","fighting","flying","ghost","grass","ground","normal","poison","psychic"],resisted:["electric","fire","steel","water"]},defense:{double:["fighting","fire","ground"],immune:["poison"],normal:["dark","electric","ghost","water"],resisted:["bug","dragon","fairy","flying","grass","ice","normal","psychic","rock","steel"]}}},{name:Ie.Water,matchup:{offense:{double:["fire","ground","rock"],immune:[],normal:["bug","dark","electric","fairy","fighting","flying","ghost","ice","normal","poison","psychic","steel"],resisted:["dragon","grass","water"]},defense:{double:["electric","grass"],immune:[],normal:["bug","dark","dragon","fairy","fighting","flying","ghost","ground","normal","poison","psychic","rock"],resisted:["fire","ice","steel","water"]}}}];let vd=(()=>{class e{advantages(n,r=!1){const i=[];return yd.filter(o=>o.name.includes(n)).forEach(o=>{const s=o.matchup.offense;s.double.forEach(a=>{i.push({name:a,multiplier:2})}),r&&(s.resisted.forEach(a=>{i.push({name:a,multiplier:.5})}),s.immune.forEach(a=>{i.push({name:a,multiplier:0})}))}),i}weaknesses(n){const r=[];return yd.filter(i=>i.name.includes(n)).forEach(i=>{const o=i.matchup.defense;o.double.forEach(s=>{r.push({name:s,multiplier:2})}),o.resisted.forEach(s=>{r.push({name:s,multiplier:.5})}),o.immune.forEach(s=>{r.push({name:s,multiplier:0})})}),r}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function $a(e){return e.toLowerCase().replace(/\w/,t=>t.toUpperCase())}function lr(e){(e?[e]:["pokemonTypes","pokemonImageNormal","pokemonImageShiny","pokemonAbility","pokemonStatsWrapper","pokemonMoves","pokemonHerbs","pokemonTypeAdvantages","pokemonTeraWeaknesses","pokemonTeraAdvantages"]).forEach(n=>{document.getElementById(n).innerHTML=""})}function tt(e,t){e.innerHTML+=t}function Dd(e){return`
${$a(e.name)} - ${e.multiplier}x
`}function XE(e,t,n){return String(e).padStart(t,n)}let hL=(()=>{class e{constructor(n){this.stateService=n}valueChanged(){const n=document.getElementById("raidTier");this.stateService.changeRaidTier(n.options[n.selectedIndex].value)}}return e.\u0275fac=function(n){return new(n||e)(k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-raid-tier"]],decls:7,vars:0,consts:[["id","raidTier",3,"change"],["value",""],["value","5"],["value","6"]],template:function(n,r){1&n&&(ye(0,"select",0),zr("change",function(){return r.valueChanged()}),ye(1,"option",1),Qe(2,"-- Tier --"),Pe(),ye(3,"option",2),Qe(4,"5 Star"),Pe(),ye(5,"option",3),Qe(6,"6 Star"),Pe()())},encapsulation:2}),e})();const qa=[{name:"Raichu",info:{moves:["Discharge","Iron Tail","Charm","Nuzzle","Electric Terrain","Thunder Wave"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Arcanine",info:{moves:["Flamethrower","Crunch","Extreme Speed","Fire Fang","Sunny Day","Leer"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slowbro",info:{moves:["Zen Headbutt","Liquidation","Yawn","Water Pulse","Curse"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Cloyster",info:{moves:["Icicle Spear","Hydro Pump","Ice Shard","Supersonic","Shell Smash"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Gengar",info:{moves:["Shadow Ball","Sludge Bomb","Confuse Ray","Spite","Hypnosis"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Scyther",info:{moves:["Aerial Ace","X-Scissor","Slash","Agility","Focus Energy","Swords Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tauros (Fire)",formName:"taurospaldeafire",imageAlt:"-b",info:{moves:["Flare Blitz","Close Combat","Flamethrower","Headbutt","Work Up","Sunny Day"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tauros (Water)",formName:"taurospaldeawater",imageAlt:"-a",info:{moves:["Wave Crash","Close Combat","Surf","Headbutt","Work Up","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Gyarados",info:{moves:["Aqua Tail","Twister","Hurricane","Crunch","Scary Face","Taunt","Dragon Dance","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Ditto",info:{moves:["Transform"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Eevee",info:{moves:["Tera Blast","Take Down","Shadow Ball","Tickle","Yawn","Calm Mind"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Dragonite",info:{moves:["Dragon Rush","Aerial Ace","Extreme Speed","Hurricane","Safeguard","Dragon Dance","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slowking",info:{moves:["Psychic","Surf","Yawn","Water Pulse","Psychic Terrain","Calm Mind"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Scizor",info:{moves:["Iron Head","X-Scissor","Bullet Punch","Slash","Iron Defense","Focus Energy"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Delibird",info:{moves:["Present","Drill Peck","Ice Punch","Blizzard","Snowscape"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Houndoom",info:{moves:["Flamethrower","Crunch","Taunt","Will-O-Wisp","Sunny Day","Howl"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Blissey",info:{moves:["Dazzling Gleam","Hyper Voice","Sing"],specialMoves:["Seismic Toss","Gravity"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Tyranitar",info:{moves:["Rock Slide","Crunch","Screech","Dark Pulse","Dragon Dance","Sandstorm"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Gardevoir",info:{moves:["Psychic","Moonblast","Draining Kiss","Misty Terrain","Calm Mind","Psychic Terrain"],specialMoves:["Disable"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Breloom",info:{moves:["Seed Bomb","Mach Punch","Worry Seed","Headbutt","Grassy Terrain"],specialMoves:["Spore"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slaking",info:{moves:["Facade","Shadow Claw","Play Rough","Swagger","Encore"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hariyama",info:{moves:["Reversal","Brick Break","Brine","Heavy Slam","Scary Face","Taunt","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Sableye",info:{moves:["Shadow Claw","Foul Play","Will-O-Wisp","Night Shade","Flatter","Torment"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Camerupt",info:{moves:["Flamethrower","Earth Power","Yawn","Eruption","Sunny Day"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Altaria",info:{moves:["Dragon Pulse","Hurricane","Sing","Mist","Safeguard"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Glalie",info:{moves:["Freeze-Dry","Crunch","Headbutt","Frost Breath","Snowscape"],specialMoves:["Disable"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Salamence",info:{moves:["Aerial Ace","Hyper Voice","Draco Meteor","Dragon Dance","Focus Energy"],specialMoves:["Dragon Rush"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Staraptor",info:{moves:["Close Combat","Brave Bird","Quick Attack"],specialMoves:["Double-Edge"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Luxray",info:{moves:["Crunch","Wild Charge","Discharge","Thunder Wave","Electric Terrain","Leer"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Drifblim",info:{moves:["Hex","Air Slash","Thunder Wave","Shadow Ball","Will-O-Wisp"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Mismagius",info:{moves:["Mystical Fire","Shadow Ball","Confuse Ray","Taunt","Nasty Plot"],specialMoves:["Light Screen"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Honchkrow",info:{moves:["Night Slash","Hurricane","Haze","Wing Attack","Nasty Plot"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Bronzong",info:{moves:["Flash Cannon","Extrasensory","Metal Sound","Payback","Rain Dance","Calm Mind","Reflect"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Garchomp",info:{moves:["Earthquake","Dragon Claw","Iron Head","Slash","Sandstorm","Bulldoze"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hippowdon",info:{moves:["Earthquake","Yawn","Rock Slide","Body Slam"],specialMoves:["Stockpile"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Abomasnow",info:{moves:["Energy Ball","Ice Punch","Ice Shard","Leer","Blizzard","Snowscape","Aurora Veil"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Weavile",info:{moves:["Ice Punch","Night Slash","Taunt","Facade","Swords Dance"],specialMoves:["Reflect"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Magnezone",info:{moves:["Thunderbolt","Flash Cannon","Tri Attack","Thunder Wave","Magnet Rise","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Gallade",info:{moves:["Psycho Cut","Brick Break","Fury Cutter","Hypnosis","Psychic Terrain"],specialMoves:["Disable","Shadow Sneak"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Froslass",info:{moves:["Frost Breath","Shadow Ball","Scary Face","Draining Kiss","Snowscape","Aurora Veil"],specialMoves:["Disable"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Rotom",info:{moves:["Discharge","Uproar","Hex","Thunder Wave","Charge","Eerie Impulse"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Krookodile",info:{moves:["Earthquake","Crunch","Sand Tomb","Torment","Hone Claws"],specialMoves:["Counter"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Zoroark",info:{moves:["Night Daze","Shadow Claw","Taunt","Hyper Voice","Torment","Nasty Plot"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Gothitelle",info:{moves:["Psychic","Thunder Wave","Thunderbolt","Stored Power","Calm Mind","Light Screen"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Amoonguss",info:{moves:["Energy Ball","Sludge Bomb","Spore","Clear Smog","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Eelektross",info:{moves:["Wild Charge","Flamethrower","Discharge","Crush Claw","Thunder Wave","Coil"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Haxorus",info:{moves:["Dragon Claw","Crunch","Giga Impact","Dragon Dance"],specialMoves:["Harden","First Impression"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Braviary",info:{moves:["Acrobatics","Crush Claw","Superpower","Air Slash","Tailwind","Hone Claws"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hydreigon",info:{moves:["Dark Pulse","Dragon Pulse","Scary Face","Dragon Rush","Taunt","Reflect","Nasty Plot"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Volcarona",info:{moves:["Fire Blast","Bug Buzz","Hurricane","Will-O-Wisp","Sunny Day","Quiver Dance"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Talonflame",info:{moves:["Acrobatics","Flare Blitz","Steel Wing","Heat Wave","Bulk Up"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Florges",info:{moves:["Petal Dance","Moonblast","Psychic","Safeguard","Grassy Terrain","Calm Mind"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Dragalge",info:{moves:["Dragon Pulse","Sludge Bomb","Water Pulse","Toxic","Acid Spray","Draco Meteor"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Clawitzer",info:{moves:["Water Pulse","Dragon Pulse","Aura Sphere","Crabhammer","Rain Dance"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Goodra",info:{moves:["Water Pulse","Dragon Pulse","Sludge Bomb","Power Whip","Rain Dance","Draco Meteor"],specialMoves:["Acid Armor"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Avalugg",info:{moves:["Icicle Crash","Double-Edge","Crunch","Ice Fang","Snowscape","Iron Defense"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Noivern",info:{moves:["Air Slash","Dragon Pulse","Acrobatics","Boomburst","Tailwind"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Mudsdale",info:{moves:["High Horsepower","Body Press","Rock Smash","Heavy Slam","Scary Face","Iron Defense"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tsareena",info:{moves:["High Jump Kick","Power Whip","Stomp","Trop Kick","Reflect","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Oranguru",info:{moves:["Facade","Psychic","Stored Power","Yawn","Calm Mind","Light Screen"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Passimian",info:{moves:["Reversal","Rock Smash","Facade","Gunk Shot","Taunt","Trailblaze","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Mimikyu",info:{moves:["Play Rough","Shadow Claw","Will-O-Wisp","Shadow Sneak","Light Screen","Taunt"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Greedent",info:{moves:["Body Slam","Body Press","Bullet Seed","Tail Whip","Stockpile"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Corviknight",info:{moves:["Steel Wing","Drill Peck","Taunt","Body Press","Iron Defense","Hone Claws"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Coalossal",info:{moves:["Heat Crash","Stone Edge","Incinerate","Ancient Power","Sandstorm","Tar Shot","Fire Blast"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Flapple",info:{moves:["Grav Apple","Dragon Breath","Dragon Rush","Trailblaze","Grassy Terrain","Iron Defense","Dragon Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Appletun",info:{moves:["Apple Acid","Dragon Pulse","Giga Drain","Body Press","Growth"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Toxtricity (Amped)",formName:"toxtricity",info:{moves:["Overdrive","Poison Jab","Nuzzle","Boomburst","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Toxtricity (Low Key)",formName:"toxtricity",imageAlt:"-l",info:{moves:["Overdrive","Poison Jab","Nuzzle","Boomburst","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Polteageist",info:{moves:["Shadow Ball","Mega Drain","Astonish","Will-O-Wisp","Shell Smash"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Hatterene",info:{moves:["Dazzling Gleam","Psychic","Dark Pulse","Charm","Misty Terrain","Calm Mind","Psychic Terrain"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Grimmsnarl",info:{moves:["Spirit Break","False Surrender","Scary Face","Foul Play","Light Screen","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Falinks",info:{moves:["Megahorn","Reversal","Headbutt","Brick Break","No Retreat"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Pincurchin",info:{moves:["Zing Zap","Thunder","Surf","Poison Jab","Rain Dance","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Indeedee (Male)",formName:"indeedee",info:{moves:["Psychic","Hyper Voice","Shadow Ball","Trick Room","Play Nice","Calm Mind"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Indeedee (Female)",formName:"indeedee",imageAlt:"-f",info:{moves:["Psychic","Hyper Voice","Shadow Ball","Trick Room","Play Nice","Calm Mind"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Copperajah",info:{moves:["Heavy Slam","Strength","High Horsepower","Sandstorm","Iron Defense"],specialMoves:["Curse"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Dragapult",info:{moves:["Shadow Ball","Dragon Darts","Thunderbolt","Hex","Reflect","Light Screen"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Pawmot",info:{moves:["Wild Charge","Close Combat","Nuzzle","Double Shock"],specialMoves:["Sweet Kiss"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Arboliva",info:{moves:["Energy Ball","Hyper Voice","Earth Power","Charm","Sunny Day","Growth","Leaf Storm"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Garganacl",info:{moves:["Salt Cure","Rock Slide","Hammer Arm","Sandstorm"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Armarouge",info:{moves:["Armor Cannon","Psychic","Night Shade","Will-O-Wisp","Sunny Day","Calm Mind"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Ceruledge",info:{moves:["Bitter Blade","Shadow Claw","Psycho Cut","Will-O-Wisp","Sunny Day","Swords Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Mabosstiff",info:{moves:["Crunch","Play Rough","Take Down","Swagger","Taunt"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Brambleghast",info:{moves:["Giga Drain","Shadow Ball","Power Whip","Infestation","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tinkaton",info:{moves:["Gigaton Hammer","Play Rough","Brutal Swing","Rock Smash","Thunder Wave"],specialMoves:["Charm","Misty Terrain"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Bombirdier",info:{moves:["Rock Slide","Sucker Punch","Brave Bird","Torment","Knock Off","Feather Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Palafin",info:{moves:["Liquidation","Acrobatics","Charm","Rain Dance","Bulk Up"],specialMoves:["Boomburst"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Revavroom",info:{moves:["Spin Out","Taunt","Gunk Shot","Overheat","Scary Face","Shift Gear"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Orthworm",info:{moves:["Iron Head","Earthquake","Stomping Tantrum","Wrap","Sandstorm","Coil"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Glimmora",info:{moves:["Power Gem","Sludge Bomb","Mortal Spin","Ancient Power","Sandstorm","Tera Blast"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Cetitan",info:{moves:["Ice Spinner","Liquidation","Snowscape"],specialMoves:["Yawn","Entrainment"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Dondozo",info:{moves:["Order Up","Waterfall","Heavy Slam","Tickle","Rain Dance"],specialMoves:["Stockpile"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Tatsugiri (Curly)",formName:"tatsugiri",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Tatsugiri (Droopy)",formName:"tatsugiri",imageAlt:"-d",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Tatsugiri (Stretchy)",formName:"tatsugiri",imageAlt:"-s",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Annihilape",info:{moves:["Shadow Claw","Close Combat","Outrage","Leer","Taunt","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Kingambit",info:{moves:["Iron Head","Night Slash","Torment","Slash","Taunt","Metal Burst"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Baxcalibur",info:{moves:["Dragon Claw","Icicle Crash","Ice Shard","Body Press","Snowscape"],herbs:[{name:"Spicy",chance:10.87}]}}],za=[{name:"Gengar",info:{moves:["Shadow Ball","Sludge Bomb","Dazzling Gleam","Will-O-Wisp","Hypnosis"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Tauros",formName:"taurospaldea",imageAlt:"-p",info:{moves:["Close Combat","Thrash","Zen Headbutt","Raging Bull","Bulk Up"],specialMoves:["Screech"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Tauros (Fire)",formName:"taurospaldeafire",imageAlt:"-b",info:{moves:["Flare Blitz","Close Combat","Flamethrower","Headbutt","Sunny Day","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Tauros (Water)",formName:"taurospaldeawater",imageAlt:"-a",info:{moves:["Wave Crash","Close Combat","Surf","Headbutt","Rain Dance","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Gyarados",info:{moves:["Aqua Tail","Crunch","Hurricane","Ice Fang","Taunt","Dragon Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Ditto",info:{moves:["Transform"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Vaporeon",info:{moves:["Tera Blast","Surf","Hyper Voice","Rain Dance","Calm Mind"],specialMoves:["Yawn"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Jolteon",info:{moves:["Tera Blast","Thunderbolt","Shadow Ball","Thunder Wave","Electric Terrain","Calm Mind"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Flareon",info:{moves:["Tera Blast","Flare Blitz","Lava Plume","Will-O-Wisp","Sunny Day"],specialMoves:["Curse"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Dragonite",info:{moves:["Dragon Rush","Extreme Speed","Dragon Dance","Aqua Tail","Light Screen"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Espeon",info:{moves:["Tera Blast","Psychic","Psyshock","Psychic Terrain","Calm Mind"],specialMoves:["Tickle"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Umbreon",info:{moves:["Tera Blast","Dark Pulse","Foul Play","Calm Mind"],specialMoves:["Curse","Tickle"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Slowking",info:{moves:["Surf","Psyshock","Trick Room","Flamethrower","Light Screen","Rain Dance","Calm Mind"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Scizor",info:{moves:["X-Scissor","Bullet Punch","Close Combat","Iron Head","Iron Defense","Focus Energy"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Heracross",info:{moves:["Megahorn","Close Combat","Thrash","Leer","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Blissey",info:{moves:["Dazzling Gleam","Hyper Voice","Sing","Light Screen","Defense Curl"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Tyranitar",info:{moves:["Stone Edge","Crunch","Screech","Rock Blast","Iron Defense"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Pelipper",info:{moves:["Hurricane","Hydro Pump","Mist","Supersonic","Rain Dance","Agility"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Gardevoir",info:{moves:["Moonblast","Psychic","Calm Mind","Thunder Wave","Misty Terrain","Psychic Terrain"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Breloom",info:{moves:["Bullet Seed","Low Sweep","Aerial Ace","Grassy Terrain"],specialMoves:["Spore"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Torkoal",info:{moves:["Lava Plume","Yawn","Clear Smog","Body Slam","Sunny Day","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Salamence",info:{moves:["Outrage","Dual Wingbeat","Flamethrower","Tera Blast","Dragon Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Staraptor",info:{moves:["Close Combat","Brave Bird"],specialMoves:["Double-Edge","Feather Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Garchomp",info:{moves:["Outrage","Earthquake","Flamethrower","Rock Slide","Swords Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Hippowdon",info:{moves:["Earthquake","Ice Fang","Yawn","Rock Slide"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Magnezone",info:{moves:["Thunder","Flash Cannon","Tri Attack","Thunder Wave","Rain Dance","Iron Defense","Electric Terrain"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Leafeon",info:{moves:["Tera Blast","Leaf Blade","Charm","Sunny Day","Swords Dance"],specialMoves:["Double Kick"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Glaceon",info:{moves:["Tera Blast","Ice Beam","Blizzard","Charm","Snowscape","Calm Mind"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Gallade",info:{moves:["Psycho Cut","Close Combat","Will-O-Wisp","Aerial Ace","Hypnosis","Psychic Terrain"],specialMoves:["Disable"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Amoonguss",info:{moves:["Energy Ball","Foul Play","Spore","Sludge Bomb","Grassy Terrain"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Haxorus",info:{moves:["Outrage","Crunch","Giga Impact","Dragon Dance"],specialMoves:["First Impression"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Hydreigon",info:{moves:["Dark Pulse","Dragon Pulse","Crunch","Taunt","Work Up","Nasty Plot"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Volcarona",info:{moves:["Bug Buzz","Flamethrower","Hurricane","Tailwind","Amnesia","Sunny Day","Light Screen","Quiver Dance"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Talonflame",info:{moves:["Brave Bird","Flare Blitz","Flamethrower","Tera Blast","Sunny Day","Swords Dance"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Dragalge",info:{moves:["Dragon Pulse","Sludge Bomb","Water Pulse","Toxic","Acid Spray","Draco Meteor"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Clawitzer",info:{moves:["Water Pulse","Dragon Pulse","Aura Sphere","Crabhammer","Rain Dance"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Sylveon",info:{moves:["Tera Blast","Hyper Voice","Moonblast","Misty Terrain","Calm Mind"],specialMoves:["Yawn"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Goodra",info:{moves:["Dragon Pulse","Surf","Sludge Bomb","Power Whip","Rain Dance"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Avalugg",info:{moves:["Icicle Crash","Heavy Slam","Snowscape","Ice Spinner","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Lycanroc",imageAlt:"-d",info:{moves:["Accelerock","Rock Slide","Crunch","Taunt","Sandstorm"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Toxapex",info:{moves:["Water Pulse","Liquidation","Poison Jab","Pin Missile","Chilling Water","Toxic"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Mimikyu",info:{moves:["Play Rough","Shadow Claw","Shadow Sneak","Wood Hammer","Misty Terrain","Swords Dance"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Corviknight",info:{moves:["Iron Head","Drill Peck","Body Press","Hone Claws","Tailwind"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Pincurchin",info:{moves:["Zing Zap","Thunder","Surf","Poison Jab","Thunder Wave","Electric Terrain"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Frosmoth",info:{moves:["Blizzard","Bug Buzz","Hurricane","Snowscape"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Dragapult",info:{moves:["Shadow Ball","Dragon Pulse","Thunderbolt","Flamethrower","Reflect","Light Screen"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Pawmot",info:{moves:["Wild Charge","Close Combat","Double Shock","Nuzzle","Electric Terrain"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Maushold",imageAlt:"-f",info:{moves:["Play Rough","Take Down","Low Kick","Charm","Tidy Up"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Dachsbun",info:{moves:["Play Rough","Double-Edge","Bite","Baby-Doll Eyes"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Garganacl",info:{moves:["Stone Edge","Heavy Slam","Salt Cure","Hammer Arm","Sandstorm","Rock Slide"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Armarouge",info:{moves:["Armor Cannon","Psychic","Night Shade","Will-O-Wisp","Calm Mind","Sunny Day"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Ceruledge",info:{moves:["Bitter Blade","Shadow Claw","Psycho Cut","Will-O-Wisp","Sunny Day"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Kilowattrel",info:{moves:["Hurricane","Thunder","Uproar","Scary Face"],specialMoves:["Charge","Rain Dance"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Mabosstiff",info:{moves:["Crunch","Reversal","Outrage","Take Down","Taunt"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Grafaiai",info:{moves:["Knock Off","Gunk Shot","Take Down","Flatter"],specialMoves:["Toxic"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Toedscruel",info:{moves:["Energy Ball","Earth Power","Spore","Hex","Grassy Terrain"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Klawf",info:{moves:["Stone Edge","Rock Smash","X-Scissor","Sandstorm","Knock Off","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Tinkaton",info:{moves:["Gigaton Hammer","Play Rough","Knock Off","Thunder Wave","Sweet Kiss"],specialMoves:["Misty Terrain"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Bombirdier",info:{moves:["Rock Slide","Acrobatics","Knock Off","Feather Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Revavroom",info:{moves:["Gunk Shot","Overheat","Iron Head","Taunt","Scary Face","Shift Gear"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Cyclizar",info:{moves:["Double-Edge","Dragon Claw","Dragon Pulse","Knock Off","Shift Gear"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Orthworm",info:{moves:["Iron Head","Earthquake","Smack Down","Sandstorm","Coil"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Glimmora",info:{moves:["Power Gem","Sludge Wave","Hyper Beam","Rock Polish","Sandstorm"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Cetitan",info:{moves:["Ice Spinner","Body Slam","Snowscape","Stomping Tantrum"],specialMoves:["Yawn"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Dondozo",info:{moves:["Wave Crash","Order Up","Heavy Slam","Yawn","Rain Dance","Curse"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Annihilape",info:{moves:["Close Combat","Shadow Claw","Assurance","Focus Energy","Bulk Up","Rage Fist"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Clodsire",info:{moves:["Earthquake","Poison Jab","Megahorn","Yawn"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Farigiraf",info:{moves:["Twin Beam","Hyper Voice","Low Kick","Agility"],specialMoves:["Uproar"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Kingambit",info:{moves:["Iron Head","Night Slash","Kowtow Cleave","Thunder Wave","Swords Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Baxcalibur",info:{moves:["Snowscape","Body Press"],specialMoves:["Icicle Spear","Dragon Rush"],herbs:[{name:"Spicy",chance:13.64}]}}];let pL=(()=>{class e{constructor(n,r){this.stateService=n,this.graphqlService=r,this.pokemonList=document.getElementById("pokemonList")}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.populatePokemonList(n)})}ngAfterViewInit(){this.pokemonList=document.getElementById("pokemonList")}populatePokemonList(n){this.pokemonList&&(this.resetPokemonList(),("5"==n?qa:za).sort((i,o)=>i.name.localeCompare(o.name)).forEach(i=>{const o=document.createElement("option");o.value=i.name,o.text=i.name,i.formName&&(o.id=i.formName),this.pokemonList.add(o)}))}resetPokemonList(){this.pokemonList.innerHTML="",this.pokemonList.innerHTML=''}valueChanged(){const n=document.getElementById("pokemonList"),i=n.options[n.selectedIndex],o=i.id;lr(),i.value&&(this.graphqlService.getPokemon(o||i.value.toLowerCase()),this.stateService.changePokemon(i.value),document.getElementById("pokemonContent").style.display="none",this.stateService.changeLoading(!0))}}return e.\u0275fac=function(n){return new(n||e)(k(yt),k(ur))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-list"]],decls:3,vars:0,consts:[["id","pokemonList",3,"change"],["value",""]],template:function(n,r){1&n&&(ye(0,"select",0),zr("change",function(){return r.valueChanged()}),ye(1,"option",1),Qe(2,"-- Pokemon --"),Pe()())},encapsulation:2}),e})(),mL=(()=>{class e{constructor(n){this.stateService=n}ngOnInit(){yd.forEach(n=>{const r=document.createElement("option");r.value=n.name,r.text=n.name,document.getElementById("teraList").add(r)})}valueChanged(){const n=document.getElementById("teraList");this.stateService.changeTeraType(n.options[n.selectedIndex].value)}}return e.\u0275fac=function(n){return new(n||e)(k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-tera-type"]],decls:3,vars:0,consts:[["id","teraList",3,"change"],["value",""]],template:function(n,r){1&n&&(ye(0,"select",0),zr("change",function(){return r.valueChanged()}),ye(1,"option",1),Qe(2,"-- Tera Type --"),Pe()())},encapsulation:2}),e})(),gL=(()=>{class e{constructor(n){this.stateService=n,this.raidTier="",this.pokemonList="",this.teraType=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n}),this.stateService.teraType.subscribe(n=>{this.teraType=n})}shareRaid(){let n=location.origin+"/tera-raid-info/";n+=this.raidTier,n+="/"+this.pokemonList,n+="/"+this.teraType,navigator.clipboard.writeText(n),document.getElementById("shareText").innerText="Copied to Clipboard"}shareRaidMouseOut(){document.getElementById("shareText").innerText="Share Raid"}}return e.\u0275fac=function(n){return new(n||e)(k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-share-raid"]],decls:3,vars:0,consts:[["id","shareRaid",1,"share",3,"click","mouseout"],["id","shareText",1,"shareText"]],template:function(n,r){1&n&&(ye(0,"div",0),zr("click",function(){return r.shareRaid()})("mouseout",function(){return r.shareRaidMouseOut()}),ye(1,"div",1),Qe(2,"Share Raid"),Pe()())},encapsulation:2}),e})(),yL=(()=>{class e{constructor(n,r){this.grapghqlService=n,this.stateService=r,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setImages()})}setImages(){this.pokemonList&&this.grapghqlService.getDexNumber().subscribe(n=>{let i="";("5"==this.raidTier?qa:za).filter(o=>o.name==this.pokemonList).forEach(o=>{o.imageAlt&&(i=o.imageAlt)}),tt(document.getElementById("pokemonImageNormal"),`Normal`),tt(document.getElementById("pokemonImageShiny"),`Shiny`)})}}return e.\u0275fac=function(n){return new(n||e)(k(ur),k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-images"]],decls:2,vars:0,consts:[["id","pokemonImageNormal",1,"imgNormal"],["id","pokemonImageShiny",1,"imgShiny"]],template:function(n,r){1&n&&ct(0,"div",0)(1,"div",1)},encapsulation:2}),e})(),vL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r,this.pokemonList=""}ngOnInit(){this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setTypes()})}setTypes(){this.pokemonList&&this.graphqlService.getTypes().subscribe(n=>{n.forEach(r=>{tt(document.getElementById("pokemonTypes"),this.createTypeDisplay(r.name))})})}createTypeDisplay(n){return`
${n}
`}}return e.\u0275fac=function(n){return new(n||e)(k(ur),k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-types"]],decls:1,vars:0,consts:[["id","pokemonTypes"]],template:function(n,r){1&n&&ct(0,"div",0)},encapsulation:2}),e})(),DL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r}ngOnInit(){this.stateService.pokemonList.subscribe(n=>{n&&this.setStats()})}setStats(){this.graphqlService.getStats().subscribe(n=>{tt(document.getElementById("pokemonStatsWrapper"),this.createStatsDisplay(n))})}createStatsDisplay(n){let r='

Base Stats

';return r+=`

HP

${n.hp}

`,r+=`

Atk

${n.attack}

`,r+=`

Def

${n.defense}

`,r+=`

Sp.Atk

${n.specialattack}

`,r+=`

Sp.Def

${n.specialdefense}

`,r+=`

Spd

${n.speed}

`,r}}return e.\u0275fac=function(n){return new(n||e)(k(ur),k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-stats"]],decls:1,vars:0,consts:[["id","pokemonStatsWrapper"]],template:function(n,r){1&n&&ct(0,"div",0)},encapsulation:2}),e})(),bL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setAbilities()})}setAbilities(){if(this.pokemonList){const n=document.getElementById("pokemonAbility");this.graphqlService.getAbilities().subscribe(r=>{tt(n,"

Ability:

"),tt(n,this.createAbilityDiv(r.first)),r.second&&tt(n,this.createAbilityDiv(r.second)),this.canShowHidden()&&r.hidden&&tt(n,this.createAbilityDiv(r.hidden,!0))})}}createAbilityDiv(n,r){return`
${n.name}${r?" (H)":""}
`}canShowHidden(){return"6"==this.raidTier||"5"==this.raidTier&&"Ditto"==this.pokemonList}}return e.\u0275fac=function(n){return new(n||e)(k(ur),k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-ability"]],decls:1,vars:0,consts:[["id","pokemonAbility"]],template:function(n,r){1&n&&ct(0,"div",0)},encapsulation:2}),e})(),EL=(()=>{class e{constructor(n,r,i){this.stateService=n,this.typeCalcService=r,this.graphqlService=i,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setMoves()})}setMoves(){const n=document.getElementById("pokemonMoves"),r="5"==this.raidTier?qa:za,i=[],o=[];let s=[];this.pokemonList&&(r.filter(a=>a.name==this.pokemonList).forEach(a=>{a.info.specialMoves&&a.info.specialMoves.sort((c,u)=>c.localeCompare(u)).forEach(c=>{this.graphqlService.getMove(c.toLowerCase().replaceAll(" ","").replaceAll("-","")).subscribe(u=>{i.push(u.getMove)})})}),this.graphqlService.getMoves().subscribe(a=>{tt(n,"

Moves:

"),r.filter(f=>f.name==this.pokemonList).forEach(f=>{f.info.moves.sort((d,h)=>d.localeCompare(h)).forEach(d=>{a.generation8.dreamworldMoves&&a.generation8.dreamworldMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.eggMoves&&a.generation8.eggMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.eventMoves&&a.generation8.eventMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.levelUpMoves&&a.generation8.levelUpMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.tmMoves&&a.generation8.tmMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.tutorMoves&&a.generation8.tutorMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.virtualTransferMoves&&a.generation8.virtualTransferMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)})})}),[...new Map(i.map(f=>[f.key,f])).values()].sort((f,d)=>f.name.localeCompare(d.name)).sort((f,d)=>"Status"!=f.category&&"Status"==d.category?-1:1).forEach(f=>{const d=this.createMoveDiv(f);tt(document.getElementById("pokemonMoves"),d),o.push(d),"Status"!=f.category&&s.push(f.type)}),this.stateService.changeMoveList(o.join("")),s=[...new Set(s)];let u=[];s.forEach(f=>{const d=this.typeCalcService.advantages(f);u=u.concat(d)});const l=[];u=[...new Map(u.map(f=>[f.name,f])).values()],u.sort((f,d)=>f.name.localeCompare(d.name)).forEach(f=>{l.push(Dd(f))}),l.length&&tt(document.getElementById("pokemonTypeAdvantages"),"

Type Advantages:

"+l.join(""))}))}createMoveDiv(n){let r=`
${n.name}`;if(r+='
',r+=`
${n.category.toString()}
`,r+=`
Pwr: ${"0"==n.basePower?"--":n.basePower}
`,r+=`
PP: ${n.pp}
`,r+=`
Acc: ${n.accuracy}
`,r+=`
${"No additional effect."==n.desc?n.shortDesc:n.desc}
`,"Status"!=n.category){const i=this.typeCalcService.advantages(n.type.toString()),o=[];i.forEach(s=>{2==s.multiplier&&o.push(`${$a(s.name)}`)}),o.length&&(r+=`
Advantages: ${o.join(", ")}
`)}return r+="
",r}}return e.\u0275fac=function(n){return new(n||e)(k(yt),k(vd),k(ur))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-moves"]],decls:1,vars:0,consts:[["id","pokemonMoves",1,"pokemonMoves"]],template:function(n,r){1&n&&ct(0,"div",0)},encapsulation:2}),e})(),wL=(()=>{class e{constructor(n){this.stateService=n,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setHerbs()})}setHerbs(){this.pokemonList&&(tt(document.getElementById("pokemonHerbs"),"

Herbs Dropped:

"),("5"==this.raidTier?qa:za).filter(r=>r.name==this.pokemonList).forEach(r=>{r.info.herbs.sort((i,o)=>i.name.localeCompare(o.name)).forEach(i=>{tt(document.getElementById("pokemonHerbs"),this.createHerbDiv(i))})}))}createHerbDiv(n){return`
${n.name} - ${n.chance}%
`}}return e.\u0275fac=function(n){return new(n||e)(k(yt))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-herbs"]],decls:1,vars:0,consts:[[1,"pokemonHerbs"]],template:function(n,r){1&n&&ct(0,"div",0)},encapsulation:2}),e})(),SL=(()=>{class e{constructor(n,r){this.stateService=n,this.typeCalcService=r,this.raidTier="",this.pokemonList="",this.teraType="",this.moveList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.handleChange()}),this.stateService.teraType.subscribe(n=>{this.teraType=n,this.handleChange()}),this.stateService.moveList.subscribe(n=>{this.moveList=n,this.handleChange()})}handleChange(){this.pokemonList&&(lr("pokemonTeraAdvantages"),lr("pokemonTeraWeaknesses"),this.pokemonList&&(this.raidTier&&this.teraType&&this.setTypeWeaknesses(),this.moveList&&this.teraType&&this.moveList.includes("Tera Blast")&&this.setTeraTypeAdvantages()),this.teraType?(this.pokemonList&&this.raidTier&&this.setTypeWeaknesses(),this.moveList.includes("Tera Blast")&&this.setTeraTypeAdvantages()):(lr("pokemonTeraAdvantages"),lr("pokemonTeraWeaknesses")),this.stateService.changeLoading(!1))}setTeraTypeAdvantages(){lr("pokemonTeraAdvantages");const n=[];this.typeCalcService.advantages(this.teraType).forEach(i=>{n.push(Dd(i))}),n.length&&tt(document.getElementById("pokemonTeraAdvantages"),"

Tera Advantages:

"+n.join(""))}setTypeWeaknesses(){lr("pokemonTeraWeaknesses");const n=[];this.typeCalcService.weaknesses(this.teraType).forEach(i=>{n.push(Dd(i))}),n.length&&tt(document.getElementById("pokemonTeraWeaknesses"),"

Tera Weaknesses:

"+n.join(""))}}return e.\u0275fac=function(n){return new(n||e)(k(yt),k(vd))},e.\u0275cmp=ft({type:e,selectors:[["app-pokemon-type-matchups"]],decls:3,vars:0,consts:[["id","pokemonTypeAdvantages",1,"pokemonTypeMatchups"],["id","pokemonTeraWeaknesses",1,"pokemonTypeMatchups"],["id","pokemonTeraAdvantages",1,"pokemonTypeMatchups"]],template:function(n,r){1&n&&ct(0,"div",0)(1,"div",1)(2,"div",2)},encapsulation:2}),e})(),_L=(()=>{class e{constructor(n){this.stateService=n,this.title="Tera Raid Info"}ngOnInit(){this.stateService.loading.subscribe(n=>{document.getElementById("dataLoading").hidden=!n,0==n&&(document.getElementById("pokemonContent").style.display="")})}ngAfterViewInit(){document.getElementById("dataLoading").hidden=!0,this.deleteCache(),this.autoPopulateSelections()}autoPopulateSelections(n,r){const i=n||window.location.href,o=r||window.location.origin;if(i.replace(o+"/tera-raid-info/","")){const s=i.replace(o+"/tera-raid-info/","").split("/"),a=new Event("change");if(Number(s[0])){const c=document.getElementById("raidTier");c.value=s[0],c.dispatchEvent(a)}if(s[1]){let c=$a(s[1].replaceAll("%20"," ").toLowerCase());const u=c.match(/(\(.*\))/);if(u){const f=u[0].split(" ");for(let d=0;d{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Tn({type:e,bootstrap:[_L]}),e.\u0275inj=rn({providers:[yt,ur,vd],imports:[JN,lL,aL]}),e})();YN().bootstrapModule(CL).catch(e=>console.error(e))}},de=>{de(de.s=742)}]); \ No newline at end of file diff --git a/main.f50691c381d5c150.js b/main.f50691c381d5c150.js new file mode 100644 index 00000000..e2d5a4d6 --- /dev/null +++ b/main.f50691c381d5c150.js @@ -0,0 +1,103 @@ +"use strict";(self.webpackChunktera_raid_info=self.webpackChunktera_raid_info||[]).push([[179],{588:()=>{function fe(e){return"function"==typeof e}function ko(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 Oo=ko(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 lr(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Tt{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 Oo?o.errors:[o]}const{_finalizers:i}=this;if(i){this._finalizers=null;for(const o of i)try{_d(o)}catch(s){t=t??[],s instanceof Oo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Oo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)_d(t);else{if(t instanceof Tt){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)&&lr(n,t)}remove(t){const{_finalizers:n}=this;n&&lr(n,t),t instanceof Tt&&t._removeParent(this)}}Tt.EMPTY=(()=>{const e=new Tt;return e.closed=!0,e})();const wd=Tt.EMPTY;function Sd(e){return e instanceof Tt||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}function _d(e){fe(e)?e():e.unsubscribe()}const jn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},No={setTimeout(e,t,...n){const{delegate:r}=No;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=No;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Cd(e){No.setTimeout(()=>{const{onUnhandledError:t}=jn;if(!t)throw e;t(e)})}function Td(){}const tw=qa("C",void 0,void 0);function qa(e,t,n){return{kind:e,value:t,error:n}}let Vn=null;function xo(e){if(jn.useDeprecatedSynchronousErrorHandling){const t=!Vn;if(t&&(Vn={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=Vn;if(Vn=null,n)throw r}}else e()}class za extends Tt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Sd(t)&&t.add(this)):this.destination=cw}static create(t,n,r){return new pi(t,n,r)}next(t){this.isStopped?Wa(function rw(e){return qa("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Wa(function nw(e){return qa("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Wa(tw,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 ow=Function.prototype.bind;function Ga(e,t){return ow.call(e,t)}class sw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Po(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Po(r)}else Po(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Po(n)}}}class pi extends za{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&&jn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Ga(t.next,o),error:t.error&&Ga(t.error,o),complete:t.complete&&Ga(t.complete,o)}):i=t}this.destination=new sw(i)}}function Po(e){jn.useDeprecatedSynchronousErrorHandling?function iw(e){jn.useDeprecatedSynchronousErrorHandling&&Vn&&(Vn.errorThrown=!0,Vn.error=e)}(e):Cd(e)}function Wa(e,t){const{onStoppedNotification:n}=jn;n&&No.setTimeout(()=>n(e,t))}const cw={closed:!0,next:Td,error:function aw(e){throw e},complete:Td},Fo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Id(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 lw(e){return e&&e instanceof za||function uw(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}(e)&&Sd(e)}(n)?n:new pi(n,r,i);return xo(()=>{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=Ad(r))((i,o)=>{const s=new pi({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)}[Fo](){return this}pipe(...n){return function Md(e){return 0===e.length?Id:1===e.length?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=Ad(n))((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Ad(e){var t;return null!==(t=e??jn.Promise)&&void 0!==t?t:Promise}const fw=ko(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ro=(()=>{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 kd(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new fw}next(n){xo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){xo(()=>{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(){xo(()=>{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?wd:(this.currentObservers=null,o.push(n),new Tt(()=>{this.currentObservers=null,lr(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 kd(t,n),e})();class kd extends Ro{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:wd}}function Hn(e){return t=>{if(function dw(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 mi(e,t,n,r,i){return new hw(e,t,n,r,i)}class hw extends za{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 tt(e,t){return Hn((n,r)=>{let i=0;n.subscribe(mi(r,o=>{r.next(e.call(t,o,i++))}))})}var Qa=function(e,t){return(Qa=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 It(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}Qa(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 Pd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Fd(e){return fe(e?.then)}function Rd(e){return fe(e[Fo])}function Ld(e){return Symbol.asyncIterator&&fe(e?.[Symbol.asyncIterator])}function Bd(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 jd=function Ow(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Vd(e){return fe(e?.[jd])}function Hd(e){return function Nd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(h){return new Promise(function(p,m){o.push([d,h,p,m])>1||a(d,h)})})}function a(d,h){try{!function c(d){d.value instanceof En?Promise.resolve(d.value.v).then(u,l):f(o[0][2],d)}(r[d](h))}catch(p){f(o[0][3],p)}}function u(d){a("next",d)}function l(d){a("throw",d)}function f(d,h){d(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:i}=yield En(n.read());if(i)return yield En(void 0);yield yield En(r)}}finally{n.releaseLock()}})}function Ud(e){return fe(e?.getReader)}function wn(e){if(e instanceof be)return e;if(null!=e){if(Rd(e))return function Nw(e){return new be(t=>{const n=e[Fo]();if(fe(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Pd(e))return function xw(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,Cd)})}(e);if(Ld(e))return $d(e);if(Vd(e))return function Fw(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Ud(e))return function Rw(e){return $d(Hd(e))}(e)}throw Bd(e)}function $d(e){return new be(t=>{(function Lw(e,t){var n,r,i,o;return Vt(this,void 0,void 0,function*(){try{for(n=xd(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 Sn(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 Lo(e,t,n=1/0){return fe(t)?Lo((r,i)=>tt((o,s)=>t(r,o,i,s))(wn(e(r,i))),n):("number"==typeof t&&(n=t),Hn((r,i)=>function Bw(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(mi(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(mi(t,h,()=>{f=!0,d()})),()=>{a?.()}}(r,i,e,n)))}function qd(e=1/0){return Lo(Id,e)}const zd=new be(e=>e.complete());function Ja(e){return e[e.length-1]}function Bo(e){return function Vw(e){return e&&fe(e.schedule)}(Ja(e))?e.pop():void 0}function Xa(e,t=0){return Hn((n,r)=>{n.subscribe(mi(r,i=>Sn(r,e,()=>r.next(i),t),()=>Sn(r,e,()=>r.complete(),t),i=>Sn(r,e,()=>r.error(i),t)))})}function Gd(e,t=0){return Hn((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Wd(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{Sn(n,t,()=>{const r=e[Symbol.asyncIterator]();Sn(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function gi(e,t){return t?function Ww(e,t){if(null!=e){if(Rd(e))return function Uw(e,t){return wn(e).pipe(Gd(t),Xa(t))}(e,t);if(Pd(e))return function qw(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(Fd(e))return function $w(e,t){return wn(e).pipe(Gd(t),Xa(t))}(e,t);if(Ld(e))return Wd(e,t);if(Vd(e))return function zw(e,t){return new be(n=>{let r;return Sn(n,t,()=>{r=e[jd](),Sn(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(Ud(e))return function Gw(e,t){return Wd(Hd(e),t)}(e,t)}throw Bd(e)}(e,t):wn(e)}function Za(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new pi({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 ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ie).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 tc(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Yw=re({__forward_ref__:re});function nc(e){return e.__forward_ref__=nc,e.toString=function(){return ie(this())},e}function x(e){return function rc(e){return"function"==typeof e&&e.hasOwnProperty(Yw)&&e.__forward_ref__===nc}(e)?e():e}function ic(e){return e&&!!e.\u0275providers}class O extends Error{constructor(t,n){super(jo(t,n)),this.code=t}}function jo(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 j(e){return"string"==typeof e?e:null==e?"":String(e)}(e)}function Vo(e,t){throw new O(-201,!1)}function yt(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 Ho(e){return Kd(e,Uo)||Kd(e,Jd)}function Kd(e,t){return e.hasOwnProperty(t)?e[t]:null}function Yd(e){return e&&(e.hasOwnProperty(oc)||e.hasOwnProperty(rS))?e[oc]:null}const Uo=re({\u0275prov:re}),oc=re({\u0275inj:re}),Jd=re({ngInjectableDef:re}),rS=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 sc;function vt(e){const t=sc;return sc=e,t}function Xd(e,t,n){const r=Ho(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 Vo(ie(e))}const se=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),yi={},ac="__NG_DI_FLAG__",$o="ngTempTokenPath",oS="ngTokenPath",sS=/\n/gm,aS="\u0275",Zd="__source";let vi;function fr(e){const t=vi;return vi=e,t}function cS(e,t=L.Default){if(void 0===vi)throw new O(-203,!1);return null===vi?Xd(e,void 0,t):vi.get(e,t&L.Optional?null:void 0,t)}function V(e,t=L.Default){return(function iS(){return sc}()||cS)(x(e),t)}function Di(e,t=L.Default){return V(e,qo(t))}function qo(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function cc(e){const t=[];for(let n=0;n((Ht=Ht||{})[Ht.OnPush=0]="OnPush",Ht[Ht.Default=1]="Default",Ht))(),Ut=(()=>{return(e=Ut||(Ut={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ut;var e})();const on={},J=[],zo=re({\u0275cmp:re}),uc=re({\u0275dir:re}),lc=re({\u0275pipe:re}),th=re({\u0275mod:re}),sn=re({\u0275fac:re}),Ei=re({__NG_ELEMENT_ID__:re});let dS=0;function lt(e){return rn(()=>{const t=function rh(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:nh(e.inputs,t),outputs:nh(e.outputs)}}(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ht.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ut.Emulated,id:"c"+dS++,styles:e.styles||J,_:null,schemas:e.schemas||null,tView:null};!function ih(e){e.features?.forEach(t=>t(e))}(n);const r=e.dependencies;return n.directiveDefs=Go(r,!1),n.pipeDefs=Go(r,!0),n})}function pS(e){return ee(e)||Ue(e)}function mS(e){return null!==e}function Cn(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 nh(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[zo]||null}function Ue(e){return e[uc]||null}function rt(e){return e[lc]||null}function Go(e,t){if(!e)return null;const n=t?rt:pS;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(mS)}const an=0,I=1,$=2,me=3,Mt=4,Un=5,$e=6,dr=7,Ee=8,Wo=9,Qo=10,G=11,fc=12,Si=13,oh=14,hr=15,qe=16,_i=17,pr=18,$t=19,Ci=20,sh=21,ae=22,dc=1,ah=2,Ko=7,mr=9,Qe=10;function dt(e){return Array.isArray(e)&&"object"==typeof e[dc]}function At(e){return Array.isArray(e)&&!0===e[dc]}function hc(e){return 0!=(4&e.flags)}function Ti(e){return e.componentOffset>-1}function Jo(e){return 1==(1&e.flags)}function kt(e){return!!e.template}function yS(e){return 0!=(256&e[$])}function $n(e,t){return e.hasOwnProperty(sn)?e[sn]:null}class bS{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function lh(e){return e.type.prototype.ngOnChanges&&(e.setInput=wS),ES}function ES(){const e=dh(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 wS(e,t,n,r){const i=this.declaredInputs[n],o=dh(e)||function SS(e,t){return e[fh]=t}(e,{previous:on,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[i];s[i]=new bS(c&&c.currentValue,t,a===on),e[r]=t}const fh="__ngSimpleChanges__";function dh(e){return e[fh]||null}const bt=function(e,t,n){};function Be(e){for(;Array.isArray(e);)e=e[an];return e}function ht(e,t){return Be(t[e.index])}function it(e,t){const n=t[e];return dt(n)?n:n[an]}function es(e){return 64==(64&e[$])}function Tn(e,t){return null==t?null:e[t]}function gh(e){e[pr]=0}function mc(e,t){e[Un]+=t;let n=e,r=e[me];for(;null!==r&&(1===t&&1===n[Un]||-1===t&&0===n[Un]);)r[Un]+=t,n=r,r=r[me]}const H={lFrame:Th(null),bindingsEnabled:!0};function vh(){return H.bindingsEnabled}function S(){return H.lFrame.lView}function K(){return H.lFrame.tView}function je(){let e=Dh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Dh(){return H.lFrame.currentTNode}function qt(e,t){const n=H.lFrame;n.currentTNode=e,n.isParent=t}function gc(){return H.lFrame.isParent}function BS(e,t){const n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,vc(t)}function vc(e){H.lFrame.currentDirectiveIndex=e}function bc(e){H.lFrame.currentQueryIndex=e}function VS(e){const t=e[I];return 2===t.type?t.declTNode:1===t.type?e[$e]:null}function _h(e,t,n){if(n&L.SkipSelf){let i=t,o=e;for(;!(i=i.parent,null!==i||n&L.Host||(i=VS(o),null===i||(o=o[hr],10&i.type))););if(null===i)return!1;t=i,e=o}const r=H.lFrame=Ch();return r.currentTNode=t,r.lView=e,!0}function Ec(e){const t=Ch(),n=e[I];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ch(){const e=H.lFrame,t=null===e?null:e.child;return null===t?Th(e):t}function Th(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 Ih(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Mh=Ih;function wc(){const e=Ih();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 qn(e){H.lFrame.selectedIndex=e}function ts(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[pr]+=65536),(a>11>16&&(3&e[$])===t){e[$]+=2048,bt(4,a,o);try{o.call(a)}finally{bt(5,a,o)}}}else{bt(4,a,o);try{o.call(a)}finally{bt(5,a,o)}}}const vr=-1;class Mi{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Cc(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;o>16}(e),r=t;for(;n>0;)r=r[hr],n--;return r}let Tc=!0;function ss(e){const t=Tc;return Tc=e,t}const Ph=255,Fh=5;let e0=0;const zt={};function as(e,t){const n=Rh(e,t);if(-1!==n)return n;const r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Ic(r.data,e),Ic(t,null),Ic(r.blueprint,null));const i=Mc(e,t),o=e.injectorIndex;if(function xh(e){return e!==vr}(i)){const s=is(i),a=os(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 Ic(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Mc(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=$h(i),null===r)return vr;if(n++,i=i[hr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return vr}function Ac(e,t,n){!function t0(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ei)&&(r=n[Ei]),null==r&&(r=n[Ei]=e0++);const i=r&Ph;t.data[e+(i>>Fh)]|=1<=0?t&Ph:s0:t}(n);if("function"==typeof o){if(!_h(t,e,r))return r&L.Host?Lh(i,0,r):Bh(t,n,r,i);try{const s=o(r);if(null!=s||r&L.Optional)return s;Vo()}finally{Mh()}}else if("number"==typeof o){let s=null,a=Rh(e,t),c=vr,u=r&L.Host?t[qe][$e]:null;for((-1===a||r&L.SkipSelf)&&(c=-1===a?Mc(e,t):t[a+8],c!==vr&&Uh(r,!1)?(s=t[I],a=is(c),t=os(c,t)):a=-1);-1!==a;){const l=t[I];if(Hh(o,a,l.data)){const f=r0(a,t,n,s,r,u);if(f!==zt)return f}c=t[a+8],c!==vr&&Uh(r,t[I].data[a+8]===u)&&Hh(o,a,t)?(s=l,a=is(c),t=os(c,t)):a=-1}}return i}function r0(e,t,n,r,i,o){const s=t[I],a=s.data[e+8],l=function cs(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&&kt(h)&&h.type===n)return c}return null}(a,s,n,null==r?Ti(a)&&Tc:r!=s&&0!=(3&a.type),i&L.Host&&o===a);return null!==l?zn(t,s,l,a):zt}function zn(e,t,n,r){let i=e[n];const o=t.data;if(function YS(e){return e instanceof Mi}(i)){const s=i;s.resolving&&function Jw(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=ss(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?vt(s.injectImpl):null;_h(e,r,L.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function QS(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const s=lh(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&&vt(c),ss(a),s.resolving=!1,Mh()}}return i}function Hh(e,t,n){return!!(n[t+(e>>Fh)]&1<Array.isArray(n)?Gn(n,t):t(n))}function us(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var ot=(()=>((ot=ot||{})[ot.Important=1]="Important",ot[ot.DashCase=2]="DashCase",ot))();const Vc=new Map;let P0=0;const Uc="__ngContext__";function ze(e,t){dt(t)?(e[Uc]=t[Ci],function R0(e){Vc.set(e[Ci],e)}(t)):e[Uc]=t}let $c;function qc(e,t){return $c(e,t)}function Ri(e){const t=e[me];return At(t)?t[me]:t}function zc(e){return dp(e[Si])}function Gc(e){return dp(e[Mt])}function dp(e){for(;null!==e&&!At(e);)e=e[Mt];return e}function Tr(e,t,n,r,i){if(null!=r){let o,s=!1;At(r)?o=r:dt(r)&&(s=!0,r=r[an]);const a=Be(r);0===e&&null!==n?null==i?vp(t,n,a):Wn(t,n,a,i||null,!0):1===e&&null!==n?Wn(t,n,a,i||null,!0):2===e?function Zc(e,t,n){const r=function ms(e,t){return e.parentNode(t)}(e,t);r&&function n_(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function o_(e,t,n,r,i){const o=n[Ko];o!==Be(n)&&Tr(t,e,r,o,i);for(let a=Qe;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===Ut.None||o===Ut.Emulated)return null}return ht(r,n)}}(e,t.parent,n)}function Wn(e,t,n,r,i){e.insertBefore(t,n,r,i)}function vp(e,t,n){e.appendChild(t,n)}function Dp(e,t,n,r,i){null!==r?Wn(e,t,n,r,i):vp(e,t,n)}let Jc,nu,wp=function Ep(e,t,n){return 40&e.type?ht(e,n):null};function gs(e,t,n,r){const i=gp(e,r,t),o=t[G],a=function bp(e,t,n){return wp(e,t,n)}(r.parent||t[$e],r,t);if(null!=i)if(Array.isArray(n))for(let c=0;c{const s=o;cu(s,n,[],r)&&(i||(i=[]),i.push(s))}),void 0!==i&&Gp(i,n),n}function Gp(e,t){for(let n=0;n{t.push(o)})}}function cu(e,t,n,r){if(!(e=x(e)))return!1;let i=null,o=Yd(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const c=e.ngModule;if(o=Yd(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)cu(u,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let u;r.add(i);try{Gn(o.imports,l=>{cu(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}void 0!==u&&Gp(u,t)}if(!a){const u=$n(i)||(()=>new i);t.push({provide:i,useFactory:u,deps:J},{provide:$p,useValue:i,multi:!0},{provide:Hp,useValue:()=>V(i),multi:!0})}const c=o.providers;null==c||a||uu(c,l=>{t.push(l)})}}return i!==e&&void 0!==e.providers}function uu(e,t){for(let n of e)ic(n)&&(n=n.\u0275providers),Array.isArray(n)?uu(n,t):t(n)}const L_=re({provide:String,useValue:re});function lu(e){return null!==e&&"object"==typeof e&&L_ in e}function Qn(e){return"function"==typeof e}const fu=new F("Set Injector scope."),Es={},j_={};let du;function ws(){return void 0===du&&(du=new qp),du}class Kn{}class Kp extends Kn{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,pu(t,s=>this.processProvider(s)),this.records.set(Up,Mr(void 0,this)),i.has("environment")&&this.records.set(Kn,Mr(void 0,this));const o=this.records.get(fu);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get($p.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=fr(this),r=vt(void 0);try{return t()}finally{fr(n),vt(r)}}get(t,n=yi,r=L.Default){this.assertNotDestroyed(),r=qo(r);const i=fr(this),o=vt(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const c=function q_(e){return"function"==typeof e||"object"==typeof e&&e instanceof F}(t)&&Ho(t);a=c&&this.injectableDefInScope(c)?Mr(hu(t),Es):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?ws():this.parent).get(t,n=r&L.Optional&&n===yi?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[$o]=s[$o]||[]).unshift(ie(t)),i)throw s;return function lS(e,t,n,r){const i=e[$o];throw t[Zd]&&i.unshift(t[Zd]),e.message=function fS(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==aS?e.slice(2):e;let i=ie(t);if(Array.isArray(t))i=t.map(ie).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):ie(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(sS,"\n ")}`}("\n"+e.message,i,n,r),e[oS]=i,e[$o]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{vt(o),fr(i)}}resolveInjectorInitializers(){const t=fr(this),n=vt(void 0);try{const r=this.get(Hp.multi,J,L.Self);for(const i of r)i()}finally{fr(t),vt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(t){let n=Qn(t=x(t))?t:x(t&&t.provide);const r=function H_(e){return lu(e)?Mr(void 0,e.useValue):Mr(function Yp(e,t,n){let r;if(Qn(e)){const i=x(e);return $n(i)||hu(i)}if(lu(e))r=()=>x(e.useValue);else if(function Qp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...cc(e.deps||[]));else if(function Wp(e){return!(!e||!e.useExisting)}(e))r=()=>V(x(e.useExisting));else{const i=x(e&&(e.useClass||e.provide));if(!function U_(e){return!!e.deps}(e))return $n(i)||hu(i);r=()=>new i(...cc(e.deps))}return r}(e),Es)}(t);if(Qn(t)||!0!==t.multi)this.records.get(n);else{let i=this.records.get(n);i||(i=Mr(void 0,Es,!0),i.factory=()=>cc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Es&&(n.value=j_,n.value=n.factory()),"object"==typeof n.value&&n.value&&function $_(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 hu(e){const t=Ho(e),n=null!==t?t.factory:$n(e);if(null!==n)return n;if(e instanceof F)throw new O(204,!1);if(e instanceof Function)return function V_(e){const t=e.length;if(t>0)throw function Ni(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new O(204,!1)}function Mr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function pu(e,t){for(const n of e)Array.isArray(n)?pu(n,t):n&&ic(n)?pu(n.\u0275providers,t):t(n)}class z_{}class Jp{}class W_{resolveComponentFactory(t){throw function G_(e){const t=Error(`No component factory found for ${ie(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ss=(()=>{class e{}return e.NULL=new W_,e})();function Q_(){return Ar(je(),S())}function Ar(e,t){return new kr(ht(e,t))}let kr=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Q_,e})();class Zp{}let J_=(()=>{class e{}return e.\u0275prov=Y({token:e,providedIn:"root",factory:()=>null}),e})();class mu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const X_=new mu("15.2.9"),gu={},yu="ngOriginalError";function vu(e){return e[yu]}class Or{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&&vu(t);for(;n&&vu(n);)n=vu(n);return n||null}}function nm(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 rm="ng-template";function uC(e,t,n){let r=0,i=!0;for(;ro?"":i[f+1].toLowerCase();const h=8&r?d:null;if(h&&-1!==nm(h,u,0)||2&r&&u!==d){if(Ot(r))return!1;s=!0}}}}else{if(!s&&!Ot(r)&&!Ot(c))return!1;if(s&&Ot(c))continue;s=!1,r=c|1&r}}return Ot(r)||s}function Ot(e){return 0==(1&e)}function dC(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&&!Ot(s)&&(t+=sm(o,i),i=""),r=s,o=o||!Ot(r);n++}return""!==i&&(t+=sm(o,i)),t}const U={};function fm(e,t=null,n=null,r){const i=dm(e,t,n,r);return i.resolveInjectorInitializers(),i}function dm(e,t=null,n=null,r,i=new Set){const o=[n||J,R_(e)];return r=r||("object"==typeof e?void 0:ie(e)),new Kp(o,t||ws(),r||null,i)}let Yn=(()=>{class e{static create(n,r){if(Array.isArray(n))return fm({name:""},r,n,"");{const i=n.name??"";return fm({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=yi,e.NULL=new qp,e.\u0275prov=Y({token:e,providedIn:"any",factory:()=>V(Up)}),e.__NG_ELEMENT_ID__=-1,e})();function k(e,t=L.Default){const n=S();return null===n?V(e,t):jh(je(),n,x(e),t)}function Dm(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;rae&&function am(e,t,n,r){if(!r)if(3==(3&t[$])){const o=e.preOrderCheckHooks;null!==o&&ns(t,o,n)}else{const o=e.preOrderHooks;null!==o&&rs(t,o,0,n)}qn(n)}(e,t,ae,!1),bt(s?2:0,i),n(r,i)}finally{qn(o),bt(s?3:1,i)}}function Cu(e,t,n){if(hc(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,Hi(e,n,i.hostVars,U),i)}function sT(e,t,n,r,i,o){const s=o[t];if(null!==s){const a=r.setInput;for(let c=0;c0&&Nu(n)}}function Nu(e){for(let r=zc(e);null!==r;r=Gc(r))for(let i=Qe;i0&&Nu(o)}const n=e[I].components;if(null!==n)for(let r=0;r0&&Nu(i)}}function fT(e,t){const n=it(t,e),r=n[I];(function dT(e,t){for(let n=t.length;n-1&&(function Kc(e,t){if(e.length<=Qe)return;const n=Qe+t,r=e[n];if(r){const i=r[_i];null!==i&&i!==e&&pp(i,r),t>0&&(e[n-1][Mt]=r[Mt]);const o=us(e,Qe+t);!function Q0(e,t){Li(e,t,t[G],2,null,null),t[an]=null,t[$e]=null}(r[I],r);const s=o[$t];null!==s&&s.detachView(o[I]),r[me]=null,r[Mt]=null,r[$]&=-65}return r}(t,r),us(n,r))}this._attachedToViewContainer=!1}!function mp(e,t){if(!(128&t[$])){const n=t[G];n.destroyNode&&Li(e,t,n,3,null,null),function J0(e){let t=e[Si];if(!t)return Yc(e[I],e);for(;t;){let n=null;if(dt(t))n=t[Si];else{const r=t[Qe];r&&(n=r)}if(!n){for(;t&&!t[Mt]&&t!==e;)dt(t)&&Yc(t[I],t),t=t[me];null===t&&(t=e),dt(t)&&Yc(t[I],t),n=t&&t[Mt]}t=n}}(t)}}(this._lView[I],this._lView)}onDestroy(t){!function wm(e,t,n,r){const i=Mm(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&Am(e).push(r,i.length-1))}(this._lView[I],this._lView,null,t)}markForCheck(){Ms(this._cdRefInjectingView||this._lView)}detach(){this._lView[$]&=-65}reattach(){this._lView[$]|=64}detectChanges(){As(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 Y0(e,t){Li(e,t,t[G],2,null,null)}(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=t}}class hT extends Ui{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;As(t[I],t,t[Ee],!1)}checkNoChanges(){}get context(){return null}}class Nm extends Ss{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ee(t);return new $i(n,this.ngModule)}}function xm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class mT{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=qo(r);const i=this.injector.get(t,gu,r);return i!==gu||n===gu?i:this.parentInjector.get(t,n,r)}}class $i extends Jp{get inputs(){return xm(this.componentDef.inputs)}get outputs(){return xm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function vC(e){return e.map(yC).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=(i=i||this.ngModule)instanceof Kn?i:i?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new mT(t,o):t,a=s.get(Zp,null);if(null===a)throw new O(407,!1);const c=s.get(J_,null),u=a.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",f=r?function qC(e,t,n){return e.selectRootElement(t,n===Ut.ShadowDom)}(u,r,this.componentDef.encapsulation):Qc(u,l,function pT(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(l)),d=this.componentDef.onPush?288:272,h=Mu(0,null,null,1,0,null,null,null,null,null),p=Cs(null,h,null,d,null,null,a,u,c,s,null);let m,v;Ec(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 E=function yT(e,t){const n=e[I],r=ae;return e[r]=t,Pr(n,r,2,"#host",null)}(p,f),C=function vT(e,t,n,r,i,o,s,a){const c=i[I];!function DT(e,t,n,r){for(const i of e)t.mergedAttrs=Ai(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(ks(t,t.mergedAttrs,!0),null!==n&&Ip(r,n,t))}(r,e,t,s);const u=o.createRenderer(t,n),l=Cs(i,Em(n),null,n.onPush?32:16,i[e.index],e,o,u,a||null,null,null);return c.firstCreatePass&&ku(c,e,r.length-1),Is(i,l),i[e.index]=l}(E,f,g,D,p,a,u);v=function mh(e,t){return e.data[t]}(h,ae),f&&function ET(e,t,n,r){if(r)Cc(e,n,["ng-version",X_.full]);else{const{attrs:i,classes:o}=function DC(e){const t=[],n=[];let r=1,i=2;for(;r0&&Tp(e,n,o.join(" "))}}(u,g,f,r),void 0!==n&&function wT(e,t,n){const r=e.projection=[];for(let i=0;is(Be(E[r.index])):r.index;let y=null;if(!s&&a&&(y=function zT(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=tg(r,t,l,o,!1);const E=n.listen(v,i,o);f.push(o,E),u&&u.push(i,D,g,g+1)}}else o=tg(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?it(e.index,t):t);let c=eg(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=eg(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+ae,o=r.firstCreatePass?Pr(r,i,1,t,null):r.data[i],s=n[i]=function Wc(e,t){return e.createText(t)}(n[G],t);gs(r,n,s,o),qt(o,!1)}const Wr="en-US";let Qg=Wr;class Qr{}class LM{}class by extends Qr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Nm(this);const r=function ft(e,t){const n=e[th]||null;if(!n&&!0===t)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function fn(e){return e instanceof Function?e():e}(r.bootstrap),this._r3Injector=dm(t,n,[{provide:Qr,useValue:this},{provide:Ss,useValue:this.componentFactoryResolver}],ie(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 Zu extends LM{constructor(t){super(),this.moduleType=t}create(t){return new by(this.moduleType,t)}}function tl(e){return t=>{setTimeout(e,void 0,t)}}const hn=class hA extends Ro{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=tl(o),i&&(i=tl(i)),s&&(s=tl(s)));const a=super.subscribe({next:i,error:o,complete:s});return t instanceof Tt&&t.add(a),a}};function Us(...e){}const ov=new F("Application Initializer");let $s=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Us,this.reject=Us,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)(V(ov,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const eo=new F("AppId",{providedIn:"root",factory:function sv(){return`${hl()}${hl()}${hl()}`}});function hl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const av=new F("Platform Initializer"),pl=new F("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mn=new F("LocaleId",{providedIn:"root",factory:()=>Di(mn,L.Optional|L.SkipSelf)||function YA(){return typeof $localize<"u"&&$localize.locale||Wr}()}),tk=(()=>Promise.resolve(0))();function ml(e){typeof Zone>"u"?tk.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ve{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 nk(){let e=se.requestAnimationFrame,t=se.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 ok(e){const t=()=>{!function ik(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,yl(e),e.isCheckStableRunning=!0,gl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),yl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{try{return lv(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),fv(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return lv(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),fv(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,yl(e),gl(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(!Ve.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(Ve.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,rk,Us,Us);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 rk={};function gl(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 yl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function lv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function fv(e){e._nesting--,gl(e)}class sk{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 dv=new F(""),qs=new F("");let bl,vl=(()=>{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,bl||(function ak(e){bl=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:()=>{Ve.assertNotInAngularZone(),ml(()=>{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())ml(()=>{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)(V(Ve),V(Dl),V(qs))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})(),Dl=(()=>{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 bl?.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 An=null;const hv=new F("AllowMultipleToken"),El=new F("PlatformDestroyListeners"),ck=new F("appBootstrapListener");function mv(e,t,n=[]){const r=`Platform: ${t}`,i=new F(r);return(o=[])=>{let s=wl();if(!s||s.injector.get(hv,!1)){const a=[...n,...o,{provide:i,useValue:!0}];e?e(a):function fk(e){if(An&&!An.get(hv,!1))throw new O(400,!1);An=e;const t=e.get(yv);(function pv(e){const t=e.get(av,null);t&&t.forEach(n=>n())})(e)}(function gv(e=[],t){return Yn.create({name:t,providers:[{provide:fu,useValue:"platform"},{provide:El,useValue:new Set([()=>An=null])},...e]})}(a,r))}return function hk(e){const t=wl();if(!t)throw new O(401,!1);return t}()}}function wl(){return An?.get(yv)??null}let yv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function Dv(e,t){let n;return n="noop"===e?new sk:("zone.js"===e?void 0:e)||new Ve(t),n}(r?.ngZone,function vv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),o=[{provide:Ve,useValue:i}];return i.run(()=>{const s=Yn.create({providers:o,parent:this.injector,name:n.moduleType.name}),a=n.create(s),c=a.injector.get(Or,null);if(!c)throw new O(402,!1);return i.runOutsideAngular(()=>{const u=i.onError.subscribe({next:l=>{c.handleError(l)}});a.onDestroy(()=>{zs(this._modules,a),u.unsubscribe()})}),function bv(e,t,n){try{const r=n();return Vu(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($s);return u.runInitializers(),u.donePromise.then(()=>(function Kg(e){yt(e,"Expected localeId to be defined"),"string"==typeof e&&(Qg=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(mn,Wr)||Wr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const i=Ev({},r);return function uk(e,t,n){const r=new Zu(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(Sl);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(El,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)(V(Yn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Ev(e,t){return Array.isArray(t)?t.reduce(Ev,e):{...e,...t}}let Sl=(()=>{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(()=>{Ve.assertNotInAngularZone(),ml(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Ve.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=function Qw(...e){const t=Bo(e),n=function Hw(e,t){return"number"==typeof Ja(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?wn(r[0]):qd(n)(gi(r,t)):zd}(o,s.pipe(function Kw(e={}){const{connector:t=(()=>new Ro),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 Hn((m,v)=>{u++,!f&&!l&&d();const g=c=c??t();v.add(()=>{u--,0===u&&!f&&!l&&(a=Za(p,i))}),g.subscribe(v),!s&&u>0&&(s=new pi({next:D=>g.next(D),error:D=>{f=!0,d(),a=Za(h,n,D),g.error(D)},complete:()=>{l=!0,d(),a=Za(h,r),g.complete()}}),wn(m).subscribe(s))})(o)}}()))}bootstrap(n,r){const i=n instanceof Jp;if(!this._injector.get($s).done){!i&&function wi(e){const t=ee(e)||Ue(e)||rt(e);return null!==t&&t.standalone}(n);throw new O(405,gn)}let s;s=i?n:this._injector.get(Ss).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function lk(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Qr),u=s.create(Yn.NULL,[],r||s.selector,a),l=u.location.nativeElement,f=u.injector.get(dv,null);return f?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),zs(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;zs(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(ck,[]);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),()=>zs(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)(V(Ve),V(Kn),V(Or))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function zs(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const kk=mv(null,"core",[]);let Ok=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(V(Sl))},e.\u0275mod=Cn({type:e}),e.\u0275inj=nn({}),e})(),Ml=null;function Ks(){return Ml}class Pk{}const Jt=new F("DocumentToken");function Hv(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 YO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Cn({type:e}),e.\u0275inj=nn({}),e})();class Jv{}class IN extends Pk{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class zl extends IN{static makeCurrent(){!function xk(e){Ml||(Ml=e)}(new zl)}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 MN(){return oo=oo||document.querySelector("base"),oo?oo.getAttribute("href"):null}();return null==n?null:function AN(e){aa=aa||document.createElement("a"),aa.setAttribute("href",e);const t=aa.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){oo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Hv(document.cookie,t)}}let aa,oo=null;const nD=new F("TRANSITION_ID"),ON=[{provide:ov,useFactory:function kN(e,t,n){return()=>{n.get($s).donePromise.then(()=>{const r=Ks(),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 ca=new F("EventManagerPlugins");let ua=(()=>{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})(),so=(()=>{class e extends iD{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)(V(Jt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const Gl={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/"},Wl=/%COMP%/g,aD=new F("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function cD(e,t){return t.flat(100).map(n=>n.replace(Wl,e))}function uD(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Ql=(()=>{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 Kl(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const i=this.getOrCreateRenderer(n,r);return i instanceof dD?i.applyToHost(n):i instanceof Yl&&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 Ut.Emulated:o=new dD(s,a,r,this.appId,c);break;case Ut.ShadowDom:return new VN(s,a,n,r);default:o=new Yl(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)(V(ua),V(so),V(eo),V(aD))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();class Kl{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Gl[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(fD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(fD(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=Gl[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const i=Gl[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&(ot.DashCase|ot.Important)?t.style.setProperty(n,r,i&ot.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ot.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,uD(r)):this.eventManager.addEventListener(t,n,uD(r))}}function fD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class VN extends Kl{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=cD(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 Yl extends Kl{constructor(t,n,r,i,o=r.id){super(t),this.sharedStylesHost=n,this.removeStylesOnCompDestory=i,this.rendererUsageCount=0,this.styles=cD(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 dD extends Yl{constructor(t,n,r,i,o){const s=i+"-"+r.id;super(t,n,r,o,s),this.contentAttr=function LN(e){return"_ngcontent-%COMP%".replace(Wl,e)}(s),this.hostAttr=function BN(e){return"_nghost-%COMP%".replace(Wl,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 HN=(()=>{class e extends rD{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)(V(Jt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const hD=["alt","control","meta","shift"],UN={"\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"},$N={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let qN=(()=>{class e extends rD{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(()=>Ks().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."),hD.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=UN[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"),hD.forEach(s=>{s!==i&&(0,$N[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)(V(Jt))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const mD=[{provide:pl,useValue:"browser"},{provide:av,useValue:function zN(){zl.makeCurrent()},multi:!0},{provide:Jt,useFactory:function WN(){return function f_(e){nu=e}(document),document},deps:[]}],QN=mv(kk,"browser",mD),gD=new F(""),yD=[{provide:qs,useClass:class NN{addToWindow(t){se.getAngularTestability=(r,i=!0)=>{const o=t.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},se.getAllAngularTestabilities=()=>t.getAllTestabilities(),se.getAllAngularRootElements=()=>t.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(r=>{const i=se.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?Ks().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:dv,useClass:vl,deps:[Ve,Dl,qs]},{provide:vl,useClass:vl,deps:[Ve,Dl,qs]}],vD=[{provide:fu,useValue:"root"},{provide:Or,useFactory:function GN(){return new Or},deps:[]},{provide:ca,useClass:HN,multi:!0,deps:[Jt,Ve,pl]},{provide:ca,useClass:qN,multi:!0,deps:[Jt]},{provide:Ql,useClass:Ql,deps:[ua,so,eo,aD]},{provide:Zp,useExisting:Ql},{provide:iD,useExisting:so},{provide:so,useClass:so,deps:[Jt]},{provide:ua,useClass:ua,deps:[ca,Ve]},{provide:Jv,useClass:xN,deps:[]},[]];let KN=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:eo,useValue:n.appId},{provide:nD,useExisting:eo},ON]}}}return e.\u0275fac=function(n){return new(n||e)(V(gD,12))},e.\u0275mod=Cn({type:e}),e.\u0275inj=nn({providers:[...vD,...yD],imports:[YO,Ok]}),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 ao(e){return!!e&&e<7}var Zl="Invariant Violation",ED=Object.setPrototypeOf,rx=void 0===ED?function(e,t){return e.__proto__=t,e}:ED,wD=function(e){function t(n){void 0===n&&(n=Zl);var r=e.call(this,"number"==typeof n?Zl+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Zl,rx(r,t.prototype),r}return It(t,e),t}(Error);function tr(e,t){if(!e)throw new wD(t)}var e,la=["debug","log","warn","error","silent"],ef=la.indexOf("log");function fa(e){return function(){if(la.indexOf(e)>=ef)return(console[e]||console.log).apply(console,arguments)}}(e=tr||(tr={})).debug=fa("debug"),e.log=fa("log"),e.warn=fa("warn"),e.error=fa("error");var tf="3.8.1";function Lt(e){try{return e()}catch{}}const SD=Lt(function(){return globalThis})||Lt(function(){return window})||Lt(function(){return self})||Lt(function(){return global})||Lt(function(){return Lt.constructor("return this")()});var _D=new Map;function nf(e){var t=_D.get(e)||1;return _D.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function CD(e,t){void 0===t&&(t=0);var n=nf("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;re.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[uf]=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=ha(r,uf);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 ce}(s)&&s.constructor===i?s:new i(function(a){return s.subscribe(a)})}if(af("iterator")&&(o=ha(r,sx)))return new i(function(a){pa(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 ox(e,t){if(e){if("string"==typeof e)return ID(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 ID(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){pa(function(){if(!a.closed){for(var c=0;c"u"&&(B(1===r.length,69,r.length),n=r[0].name.value),b(b({},e),{definitions:tn([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function ma(e){void 0===e&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function ga(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 B(r,70,n),r||null;default:return null}}function Xr(e){return{__ref:String(e)}}function ne(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Zr(e,t,n,r){if(function gx(e){return"IntValue"===e.kind}(n)||function yx(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function mx(e){return"BooleanValue"===e.kind}(n)||function px(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function Dx(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(s){return Zr(i,s.name,s.value,r)}),e[t.value]=i}else if(function vx(e){return"Variable"===e.kind}(n))e[t.value]=(r||{})[n.name.value];else if(function bx(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(s){var a={};return Zr(a,t,s,r),a[t.value]});else if(function Ex(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function wx(e){return"NullValue"===e.kind}(n))throw Ze(79,t.value,n.kind);e[t.value]=null}}sf()&&Object.defineProperty(ce,Symbol("extensions"),{value:{symbol:uf,hostReportError:Jr},configurable:!0});var _x=["connection","include","skip","client","rest","export","nonreactive"],df=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(uo(i),")")}return n.connection.key}var o=e;if(t){var s=uo(t);o+="(".concat(s,")")}return n&&Object.keys(n).forEach(function(a){-1===_x.indexOf(a)&&(n[a]&&Object.keys(n[a]).length?o+="@".concat(a,"(").concat(uo(n[a]),")"):o+="@".concat(a))}),o},{setStringify:function(e){var t=uo;return uo=e,t}}),uo=function(t){return JSON.stringify(t,Cx)};function Cx(e,t){return ue(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(n,r){return n[r]=t[r],n},{})),t}function ya(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){return Zr(n,r.name,r.value,t)}),n}return null}function On(e){return e.alias?e.alias.value:e.name.value}function hf(e,t,n){for(var r,i=0,o=t.selections;iPD)return"[Array]";const n=Math.min(kx,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function xx(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>PD?"["+function Fx(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+": "+Ea(o,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}class Rx{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 FD{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 RD={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"]},Lx=new Set(Object.keys(RD));function LD(e){const t=e?.kind;return"string"==typeof t&&Lx.has(t)}var nr=(()=>(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(nr||(nr={})),nr))(),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 rr=Object.freeze({});function vn(e,t,n=RD){const r=new Map;for(const g of Object.values(M))r.set(g,vf(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 E=0;for(const[C,_]of c){const P=C-E;null===_?(u.splice(P,1),E++):u[P]=_}}else{u=Object.defineProperties({},Object.getOwnPropertyDescriptors(u));for(const[E,C]of c)u[E]=C}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(LD(u)||ba(!1,`Invalid AST Node: ${yf(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===rr)break;if(!1===y){if(!g){d.pop();continue}}else if(void 0!==y&&(c.push([l,y]),!g)){if(!LD(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 vf(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 mo(e,t){var n=e.directives;return!n||!n.length||function Vx(e){var t=[];return e&&e.length&&e.forEach(function(n){if(function jx(e){var t=e.name.value;return"skip"===t||"include"===t}(n)){var r=n.arguments,i=n.name.value;B(r&&1===r.length,65,i);var o=r[0];B(o.name&&"if"===o.name.value,66,i);var s=o.value;B(s&&("Variable"===s.kind||"BooleanValue"===s.kind),67,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?B(void 0!==(s=t&&t[o.value.name.value]),64,i.name.value):s=o.value.value,"skip"===i.name.value?!s:s})}function ir(e,t,n){var r=new Set(e),i=r.size;return vn(t,{Directive:function(o){if(r.delete(o.name.value)&&(!n||!r.size))return rr}}),n?!r.size:r.size=0});var bf=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},Ef=Symbol(),nP=function(e){var t=tn(tn(tn([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return ue(n)&&n.message||"Error message not found."}).join("\n")},ti=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||nP(u),u.extraInfo=c,u.__proto__=t.prototype,u}return It(t,e),t}(Error),ve=Array.isArray;function Xt(e){return Array.isArray(e)&&e.length>0}var rP=Object.prototype.hasOwnProperty;function HD(){for(var e=[],t=0;t1)for(var r=new xn,i=1;i=0;--a){var c=s[a],l=isNaN(+c)?{}:[];l[c]=o,o=l}n=r.merge(n,o)}),n}var $D=Object.prototype.hasOwnProperty;function uP(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 qD(e,t){e.status>=300&&bf(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 Sf(e){return 9===e||32===e}function go(e){return e>=48&&e<=57}function zD(e){return e>=97&&e<=122||e>=65&&e<=90}function GD(e){return zD(e)||95===e}function hP(e){return zD(e)||go(e)||95===e}function pP(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 mP(e){let t=0;for(;te.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>A(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Q("(",A(e.variableDefinitions,", "),")"),n=A([e.operation,A([e.name,t]),A(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Q(" = ",n)+Q(" ",A(r," "))},SelectionSet:{leave:({selections:e})=>Bt(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Q("",e,": ")+t;let s=o+Q("(",A(n,", "),")");return s.length>80&&(s=o+Q("(\n",Sa(A(n,"\n")),"\n)")),A([s,A(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Q(" ",A(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>A(["...",Q("on ",e),A(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Q("(",A(n,", "),")")} on ${t} ${Q("",A(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function gP(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||Sf(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&&Sf(e.charCodeAt(0));return(l&&!d||o)&&(f+="\n"),f+=n,(l||u)&&(f+="\n"),'"""'+f+'"""'}(e):function yP(e){return`"${e.replace(vP,DP)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+A(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+A(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Q("(",A(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")+A(["schema",A(t," "),Bt(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+A(["scalar",t,A(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+A(["type",t,Q("implements ",A(n," & ")),A(r," "),Bt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Q("",e,"\n")+t+(QD(n)?Q("(\n",Sa(A(n,"\n")),"\n)"):Q("(",A(n,", "),")"))+": "+r+Q(" ",A(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Q("",e,"\n")+A([t+": "+n,Q("= ",r),A(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Q("",e,"\n")+A(["interface",t,Q("implements ",A(n," & ")),A(r," "),Bt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Q("",e,"\n")+A(["union",t,A(n," "),Q("= ",A(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Q("",e,"\n")+A(["enum",t,A(n," "),Bt(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Q("",e,"\n")+A([t,A(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Q("",e,"\n")+A(["input",t,A(n," "),Bt(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Q("",e,"\n")+"directive @"+t+(QD(n)?Q("(\n",Sa(A(n,"\n")),"\n)"):Q("(",A(n,", "),")"))+(r?" repeatable":"")+" on "+A(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>A(["extend schema",A(e," "),Bt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>A(["extend scalar",e,A(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>A(["extend type",e,Q("implements ",A(t," & ")),A(n," "),Bt(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>A(["extend interface",e,Q("implements ",A(t," & ")),A(n," "),Bt(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>A(["extend union",e,A(t," "),Q("= ",A(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>A(["extend enum",e,A(t," "),Bt(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>A(["extend input",e,A(t," "),Bt(n)]," ")}};function A(e,t=""){var n;return null!==(n=e?.filter(r=>r).join(t))&&void 0!==n?n:""}function Bt(e){return Q("{\n",Sa(A(e,"\n")),"\n}")}function Q(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Sa(e){return Q(" ",e.replace(/\n/g,"\n "))}function QD(e){var t;return null!==(t=e?.some(n=>n.includes("\n")))&&void 0!==t&&t}var ri=Dn?new WeakMap:void 0,KD=function(e){var t;return t=ri?.get(e),t||(t=WD(e),ri?.set(e,t)),t},TP={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},YD=function(e,t){return t(e)};function _f(e){return new ce(function(t){t.error(e)})}var XD={kind:M.FIELD,name:{kind:M.NAME,value:"__typename"}};function ZD(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===M.FRAGMENT_SPREAD&&ZD(t[n.name.value],t)})}function Cf(e){return ZD(fo(e)||function Ix(e){B("Document"===e.kind,75),B(e.definitions.length<=1,76);var t=e.definitions[0];return B("FragmentDefinition"===t.kind,77),t}(e),ma(va(e)))?null:e}function tb(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 Tf(e,t){lo(t);for(var n=tb(""),r=tb(""),i=function(g){for(var D=0,y=void 0;D=0;--s)t.definitions[s].kind===M.OPERATION_DEFINITION&&++o;var a=function eb(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 Xt(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=vn(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(g,D,y,E,C){var _=i(C);_&&_.variables.add(g.name.value)}},FragmentSpread:{enter:function(g,D,y,E,C){if(c(g.directives))return l=!0,null;var _=i(C);_&&_.fragmentSpreads.add(g.name.value)}},FragmentDefinition:{enter:function(g,D,y,E){u.set(JSON.stringify(E),g)},leave:function(g,D,y,E){return g===u.get(JSON.stringify(E))?g:o>0&&g.selectionSet.selections.every(function(_){return _.kind===M.FIELD&&"__typename"===_.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 Cf(vn(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 Ze(35)}(r||rb);var d={http:{includeExtensions:s,preserveHeaderCase:a},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new ei(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 E=b(b({},v),m.headers),C={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:E};if(ir(["client"],h.query)){var _=nb(h.query);if(!_)return _f(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=_}var le,P=function JD(e,t){for(var n=[],r=2;r-1;){if(g=void 0,z=[c.slice(0,v),c.slice(v+a.length)],c=z[1],D=(g=z[0]).indexOf("\r\n\r\n"),y=uP(g.slice(0,D)),(E=y["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(C=g.slice(D))if(_=qD(e,C),Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _||"payload"in _)aP(_)?(P={},"payload"in _&&(P=b({},_.payload)),"errors"in _&&(P=b(b({},P),{extensions:b(b({},"extensions"in P?P.extensions:null),(pe={},pe[Ef]=_.errors,pe))})),t(P)):t(_);else if(1===Object.keys(_).length&&"hasNext"in _&&!_.hasNext)return[2];v=c.indexOf(a)}return[3,1];case 3:return[2]}})})}(hi,ZE):function fP(e){return function(t){return t.text().then(function(n){return qD(t,n)}).then(function(n){return t.status>=300&&bf(t,n,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(n)&&!$D.call(n,"data")&&!$D.call(n,"errors")&&bf(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}(h)(hi).then(ZE)}).then(function(){le=void 0,Ct.complete()}).catch(function(hi){le=void 0,function lP(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(hi,Ct)}),function(){le&&le.abort()}})})},RP=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,FP(n).request)||this;return r.options=n,r}return It(t,e),t}(ei);const{toString:ib,hasOwnProperty:LP}=Object.prototype,ob=Function.prototype.toString,Mf=new Map;function _e(e,t){try{return Af(e,t)}finally{Mf.clear()}}const sb=_e;function Af(e,t){if(e===t)return!0;const n=ib.call(e);if(n!==ib.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(cb(e,t))return!0;const i=ab(e),o=ab(t),s=i.length;if(s!==o.length)return!1;for(let a=0;a=0&&e.indexOf(t,n)===n}(i,jP)}}return!1}function ab(e){return Object.keys(e).filter(BP,e)}function BP(e){return void 0!==this[e]}const jP="{ [native code] }";function cb(e,t){let n=Mf.get(e);if(n){if(n.has(t))return!0}else Mf.set(e,n=new Set);return n.add(t),!1}const HP=()=>Object.create(null),{forEach:UP,slice:$P}=Array.prototype,{hasOwnProperty:qP}=Object.prototype;class Pn{constructor(t=!0,n=HP){this.weakness=t,this.makeData=n}lookup(...t){return this.lookupArray(t)}lookupArray(t){let n=this;return UP.call(t,r=>n=n.getChildTrie(r)),qP.call(n,"data")?n.data:n.data=this.makeData($P.call(t))}peek(...t){return this.peekArray(t)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&r0},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}(ce);function yb(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(){return this.nextFetchPolicy=r,"function"==typeof r?r.apply(this,arguments):n}}):e.reobserve()}function JP(e){!1!==globalThis.__DEV__&&B.error(21,e.message,e.stack)}function vb(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&B.debug(22,e)}function Lf(e){return"network-only"===e||"no-cache"===e||"standby"===e}function Db(e){return e.kind===M.FIELD||e.kind===M.FRAGMENT_SPREAD||e.kind===M.INLINE_FRAGMENT}function iF(){}db(Rf);class oF{constructor(t=1/0,n=iF){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}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)}}let He=null;const Eb={};let sF=1;function wb(e){try{return e()}catch{}}const Bf="@wry/context:Slot",Sb=wb(()=>globalThis)||wb(()=>global)||Object.create(null),jf=Sb[Bf]||Array[Bf]||function(e){try{Object.defineProperty(Sb,Bf,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",sF++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=He;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===Eb)break;return t!==He&&(He.slots[this.id]=n),!0}return He&&(He.slots[this.id]=Eb),!1}getValue(){if(this.hasValue())return He.slots[this.id]}withValue(t,n,r,i){const s=He;He={parent:s,slots:{__proto__:null,[this.id]:t}};try{return n.apply(i,r)}finally{He=s}}static bind(t){const n=He;return function(){const r=He;try{return He=n,t.apply(this,arguments)}finally{He=r}}}static noContext(t,n,r){if(!He)return t.apply(r,n);{const i=He;try{return He=null,t.apply(r,n)}finally{He=i}}}}),vo=new jf,{hasOwnProperty:lF}=Object.prototype,Hf=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function Ta(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const Do=[],fF=100;function si(e,t){if(!e)throw new Error(t||"assertion failure")}function Cb(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}let pF=(()=>{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&&!Fn(this))return Tb(this),this.value[0]}recompute(n){return si(!this.recomputing,"already recomputing"),Tb(this),Fn(this)?function mF(e,t){return Nb(e),vo.withValue(e,gF,[e,t]),function vF(e,t){if("function"==typeof e.subscribe)try{Ta(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function yF(e){e.dirty=!1,!Fn(e)&&Mb(e)}(e),Cb(e.value)}(this,n):Cb(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,Ib(this),Ta(this))}dispose(){this.setDirty(),Nb(this),Uf(this,(n,r)=>{n.setDirty(),xb(n,this)})}forget(){this.dispose()}dependOn(n){n.add(this),this.deps||(this.deps=Do.pop()||new Set),this.deps.add(n)}forgetDeps(){this.deps&&(Hf(this.deps).forEach(n=>n.delete(this)),this.deps.clear(),Do.push(this.deps),this.deps=null)}}return e.count=0,e})();function Tb(e){const t=vo.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Fn(e)?Ab(t,e):kb(t,e),t}function gF(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function Fn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Ib(e){Uf(e,Ab)}function Mb(e){Uf(e,kb)}function Uf(e,t){const n=e.parents.size;if(n){const r=Hf(e.parents);for(let i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),Ob(e,t),!Fn(e)&&Mb(e)}function Ob(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(Do.length0&&e.childValues.forEach((t,n)=>{xb(e,n)}),e.forgetDeps(),si(null===e.dirtyChildren)}function xb(e,t){t.parents.delete(e),e.childValues.delete(t),Ob(e,t)}const DF={setDirty:!0,dispose:!0,forget:!0};function Pb(e){const t=new Map,n=e&&e.subscribe;function r(i){const o=vo.getValue();if(o){let s=t.get(i);s||t.set(i,s=new Set),o.dependOn(s),"function"==typeof n&&(Ta(s),s.unsubscribe=n(i))}}return r.dirty=function(o,s){const a=t.get(o);if(a){const c=s&&lF.call(DF,s)?s:"setDirty";Hf(a).forEach(u=>u[c]()),t.delete(o),Ta(a)}},r}let Fb;function bF(...e){return(Fb||(Fb=new Pn("function"==typeof WeakMap))).lookupArray(e)}const $f=new Set;function Ia(e,{max:t=Math.pow(2,16),makeCacheKey:n=bF,keyArgs:r,subscribe:i}=Object.create(null)){const o=new oF(t,l=>l.dispose()),s=function(){const l=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===l)return e.apply(null,arguments);let f=o.get(l);f||(o.set(l,f=new pF(e)),f.subscribe=i,f.forget=()=>o.delete(l));const d=f.recompute(Array.prototype.slice.call(arguments));return o.set(l,f),$f.add(o),vo.hasValue()||($f.forEach(h=>h.clean()),$f.clear()),d};function a(l){const f=o.get(l);f&&f.setDirty()}function c(l){const f=o.get(l);if(f)return f.peek()}function u(l){return o.delete(l)}return Object.defineProperty(s,"size",{get:()=>o.map.size,configurable:!1,enumerable:!1}),Object.freeze(s.options={max:t,makeCacheKey:n,keyArgs:r,subscribe:i}),s.dirtyKey=a,s.dirty=function(){a(n.apply(null,arguments))},s.peekKey=c,s.peek=function(){return c(n.apply(null,arguments))},s.forgetKey=u,s.forget=function(){return u(n.apply(null,arguments))},s.makeCacheKey=n,s.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(s)}var qf=new jf,Rb=new WeakMap;function bo(e){var t=Rb.get(e);return t||Rb.set(e,t={vars:new Set,dep:Pb()}),t}function Lb(e){bo(e).vars.forEach(function(t){return t.forgetCache(e)})}function wF(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(c){bo(c).dep.dirty(r),function SF(e){e.broadcastWatches&&e.broadcastWatches()}(c)});var s=Array.from(n);n.clear(),s.forEach(function(c){return c(e)})}}else{var a=qf.getValue();a&&(i(a),bo(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),bo(o).vars.add(r),r};return r.forgetCache=function(o){return t.delete(o)},r}var Bb=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=HD(n.resolvers,r)}):this.resolvers=HD(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){var n=t.document,r=t.remoteResult,i=t.context,o=t.variables,s=t.onlyRunForcedResolvers,a=void 0!==s&&s;return Vt(this,void 0,void 0,function(){return en(this,function(c){return n?[2,this.resolveDocument(n,r.data,i,o,this.fragmentMatcher,a).then(function(u){return b(b({},r),{data:u.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return ir(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return nb(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,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),Vt(this,void 0,void 0,function(){return en(this,function(i){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,n)||{},this.prepareContext(r),n).then(function(o){return b(b({},n),o.exportedVariables)})]:[2,b({},n)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return vn(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 rr}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:PP(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Vt(this,void 0,void 0,function(){var a,c,u,l,f,d,h,p,m,v;return en(this,function(D){return a=ho(t),c=va(t),u=ma(c),l=this.collectSelectionsToResolve(a,u),d=(f=a.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=(h=this).cache,m=h.client,v={fragmentMap:u,context:b(b({},r),{cache:p,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,!1,n,v).then(function(y){return{result:y,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return Vt(this,void 0,void 0,function(){var o,s,a,c,u,l=this;return en(this,function(f){return o=i.fragmentMap,s=i.context,a=i.variables,c=[r],u=function(d){return Vt(l,void 0,void 0,function(){var h;return en(this,function(m){return(n||i.selectionsToResolve.has(d))&&mo(d,a)?Nn(d)?[2,this.resolveField(d,n,r,i).then(function(v){var g;typeof v<"u"&&c.push(((g={})[On(d)]=v,g))})]:(function Tx(e){return"InlineFragment"===e.kind}(d)?h=d:B(h=o[d.name.value],16,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 wf(c)})]})})},e.prototype.resolveField=function(t,n,r,i){return Vt(this,void 0,void 0,function(){var o,s,a,c,u,l,f,d,h,p=this;return en(this,function(m){return r?(o=i.variables,s=t.name.value,a=On(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(qf.withValue(this.cache,h,[r,ya(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(E){"export"===E.name.value&&E.arguments&&E.arguments.forEach(function(C){"as"===C.name.value&&"StringValue"===C.value.kind&&(i.exportedVariables[C.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(E){return"client"===E.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),vn(s,{Directive:function(c,u,l,f,d){"client"===c.name.value&&d.forEach(function(h){r(h)&&Db(h)&&a.add(h)})},FragmentSpread:function(c,u,l,f,d){var h=n[c.name.value];B(h,17,c.name.value);var p=o(h);p.size>0&&(d.forEach(function(m){r(m)&&Db(m)&&a.add(m)}),a.add(c),p.forEach(function(m){a.add(m)}))}})}return i.get(s)}(t)},e}(),ai=new(Dn?WeakMap:Map);function zf(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return ai.set(e,(ai.get(e)+1)%1e15),n.apply(this,arguments)})}function jb(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Gf=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.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=t.cache;ai.has(r)||(ai.set(r,0),zf(r,"evict"),zf(r,"modify"),zf(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||te.loading;return this.variables&&this.networkStatus!==te.loading&&!_e(this.variables,t.variables)&&(n=te.setVariables),_e(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(){jb(this),this.dirty=!1},e.prototype.getDiff=function(t){void 0===t&&(t=this.variables);var n=this.getDiffOptions(t);if(this.lastDiff&&_e(n,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=t);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var i=this.cache.diff(n);return this.updateLastDiff(i,n),i},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 n=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!_e(r&&r.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():yb(t)})):delete this.oqListener)},e.prototype.notify=function(){var t=this;jb(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(ao(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,this.subscriptions.forEach(function(n){return n.unsubscribe()});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||!_e(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===ai.get(this.cache)&&_e(n,r.variables)&&_e(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var o=this,s=new xn,a=Xt(t.errors)?t.errors.slice(0):[];if(this.reset(),"incremental"in t&&Xt(t.incremental)){var c=UD(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&&(Wf(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:ai.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||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 Wf(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!_a(e);return!r&&n&&e.data&&(r=!0),r}var _F=Object.prototype.hasOwnProperty,CF=function(){function e(t){var n=t.cache,r=t.link,i=t.defaultOptions,o=t.documentTransform,s=t.queryDeduplication,a=void 0!==s&&s,c=t.onBroadcast,u=t.ssrMode,l=void 0!==u&&u,f=t.clientAwareness,d=void 0===f?{}:f,h=t.localState,p=t.assumeImmutableResults,m=void 0===p?!!n.assumeImmutableResults:p,v=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Dn?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var g=new fb(function(D){return v.cache.transformDocument(D)},{cache:!1});this.cache=n,this.link=r,this.defaultOptions=i||Object.create(null),this.queryDeduplication=a,this.clientAwareness=d,this.localState=h||new Bb({cache:n}),this.ssrMode=l,this.assumeImmutableResults=m,this.documentTransform=o?g.concat(o).concat(g):g,(this.onBroadcast=c)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(Ze(23))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){var n,r,i=t.mutation,o=t.variables,s=t.optimisticResponse,a=t.updateQueries,c=t.refetchQueries,u=void 0===c?[]:c,l=t.awaitRefetchQueries,f=void 0!==l&&l,d=t.update,h=t.onQueryUpdated,p=t.fetchPolicy,m=void 0===p?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.fetchPolicy)||"network-only":p,v=t.errorPolicy,g=void 0===v?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":v,D=t.keepRootFields,y=t.context;return Vt(this,void 0,void 0,function(){var E,C,_,P;return en(this,function(z){switch(z.label){case 0:return B(i,24),B("network-only"===m||"no-cache"===m,25),E=this.generateMutationId(),i=this.cache.transformForLink(this.transform(i)),C=this.getDocumentInfo(i).hasClientExports,o=this.getVariables(i,o),C?[4,this.localState.addExportedVariables(i,o,y)]:[3,2];case 1:o=z.sent(),z.label=2;case 2:return _=this.mutationStore&&(this.mutationStore[E]={mutation:i,variables:o,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:E,document:i,variables:o,fetchPolicy:m,errorPolicy:g,context:y,updateQueries:a,update:d,keepRootFields:D}),this.broadcastQueries(),P=this,[2,new Promise(function(pe,le){return xf(P.getObservableFromLink(i,b(b({},y),{optimisticResponse:s}),o,!1),function(De){if(_a(De)&&"none"===g)throw new ti({graphQLErrors:Pf(De)});_&&(_.loading=!1,_.error=null);var bn=b({},De);return"function"==typeof u&&(u=u(bn)),"ignore"===g&&_a(bn)&&delete bn.errors,P.markMutationResult({mutationId:E,result:bn,document:i,variables:o,fetchPolicy:m,errorPolicy:g,context:y,update:d,updateQueries:a,awaitRefetchQueries:f,refetchQueries:u,removeOptimistic:s?E:void 0,onQueryUpdated:h,keepRootFields:D})}).subscribe({next:function(De){P.broadcastQueries(),(!("hasNext"in De)||!1===De.hasNext)&&pe(De)},error:function(De){_&&(_.loading=!1,_.error=De),s&&P.cache.removeOptimistic(E),P.broadcastQueries(),le(De instanceof ti?De:new ti({networkError:De}))}})})]}})})},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&&Wf(i,t.errorPolicy)){if(ni(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),ni(i)&&Xt(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=UD(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&&_F.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}),E=y.result;if(y.complete&&E){var _=m(E,{mutationResult:i,queryName:g&&pf(g)||void 0,queryVariables:D});_&&o.push({result:_,dataId:"ROOT_QUERY",query:g,variables:D})}}})}if(o.length>0||t.refetchQueries||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 sP(e){return ni(e)||function oP(e){return"hasNext"in e&&"data"in e}(e)}(i)||ni(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):t;return this.cache.recordOptimisticTransaction(function(o){try{r.markMutationResult(b(b({},n),{result:{data:i}}),o)}catch(s){!1!==globalThis.__DEV__&&B.error(s)}},n.mutationId)},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:Bx(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:ir(["nonreactive"],t),clientQuery:this.localState.clientQuery(t),serverQuery:Tf([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],t),defaultVars:mf(fo(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 Gf(this),i=new Rf({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()),B(t.query,26),B("Document"===t.query.kind,27),B(!t.returnPartialData,28),B(!t.pollInterval,29),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(Ze(30)),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 hx(e){return ue(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(s)?i.set(n.transform(s),!1):ue(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=nf("legacyOneTimeQuery"),c=n.getQuery(a).init({document:s.query,variables:s.variables}),u=new Rf({queryManager:n,queryInfo:c,options:b(b({},s),{fetchPolicy:"network-only"})});B(u.queryId===a),c.setObservableQuery(u),r.set(a,u)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(s,a){s||!1!==globalThis.__DEV__&&B.warn("string"==typeof a?31:32,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=t.variables,a=t.context,c=void 0===a?{}:a;r=this.transform(r),s=this.getVariables(r,s);var u=function(f){return n.getObservableFromLink(r,c,f).map(function(d){"no-cache"!==i&&(Wf(d,o)&&n.cache.write({query:r,result:d.data,dataId:"ROOT_SUBSCRIPTION",variables:f}),n.broadcastQueries());var h=_a(d),p=function eP(e){return!!e.extensions&&Array.isArray(e.extensions[Ef])}(d);if(h||p){var m={};throw h&&(m.graphQLErrors=d.errors),p&&(m.protocolErrors=d.extensions[Ef]),new ti(m)}return d})};if(this.getDocumentInfo(r).hasClientExports){var l=this.localState.addExportedVariables(r,s,c).then(u);return new ce(function(f){var d=null;return l.then(function(h){return d=h.subscribe(f)},f.error),function(){return d&&d.unsubscribe()}})}return u(s)},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){var s,o=this;void 0===i&&(i=null!==(s=n?.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var a,c=this.getDocumentInfo(t),u=c.serverQuery,l=c.clientQuery;if(u){var d=this.inFlightLinkObservables,h=this.link,p={query:u,variables:r,operationName:pf(u)||void 0,context:this.prepareContext(b(b({},n),{forceFetch:!i}))};if(n=p.context,i){var m=KD(u),v=d.get(m)||new Map;d.set(m,v);var g=or(r);if(!(a=v.get(g))){var D=new ii([gf(h,p)]);v.set(g,a=D),D.beforeNext(function(){v.delete(g)&&v.size<1&&d.delete(m)})}}else a=new ii([gf(h,p)])}else a=new ii([ce.of({data:{}})]),n=this.prepareContext(n);return l&&(a=xf(a,function(y){return o.localState.runResolvers({document:l,remoteResult:y,context:n,variables:r})})),a},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(r.query);return xf(this.getObservableFromLink(o,r.context,r.variables),function(s){var a=Pf(s),c=a.length>0;if(i>=t.lastRequestId){if(c&&"none"===r.errorPolicy)throw t.markError(new ti({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 tP(e){return e.hasOwnProperty("graphQLErrors")}(s)?s:new ti({networkError:s});throw i>=t.lastRequestId&&t.markError(a),a})},e.prototype.fetchConcastWithInfo=function(t,n,r){var i=this;void 0===r&&(r=te.loading);var _,P,o=n.query,s=this.getVariables(o,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:o,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}),E=function(pe){y.variables=pe;var le=i.fetchQueryByPolicy(a,y,r);return"standby"!==y.fetchPolicy&&le.sources.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",n),le},C=function(){return i.fetchCancelFns.delete(t)};if(this.fetchCancelFns.set(t,function(pe){C(),setTimeout(function(){return _.cancel(pe)})}),this.getDocumentInfo(y.query).hasClientExports)_=new ii(this.localState.addExportedVariables(y.query,y.variables,y.context).then(E).then(function(pe){return pe.sources})),P=!0;else{var z=E(y.variables);P=z.fromLink,_=new ii(z.sources)}return _.promise.then(C,C),{concast:_,fromLink:P}},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?nf("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 Gf&&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(s)},m=function(E,C){void 0===C&&(C=t.networkStatus||te.loading);var _=E.result;!1!==globalThis.__DEV__&&!l&&!_e(_,{})&&vb(E.missing);var P=function(z){return ce.of(b({data:z,loading:ao(C),networkStatus:C},E.complete?null:{partial:!0}))};return _&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:_},context:f,variables:s,onlyRunForcedResolvers:!0}).then(function(z){return P(z.data||void 0)}):"none"===u&&C===te.refetch&&Array.isArray(E.missing)?P(void 0):P(_)},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&&ao(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 Gf(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){void 0===t&&(t={});var n=this.localState.prepareContext(t);return b(b({},n),{clientAwareness:this.clientAwareness})},e}();function Qf(e,t){return oi(e,t,t.variables&&{variables:oi(b(b({},e&&e.variables),t.variables))})}var Vb=!1,Hb=function(){function e(t){var n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Ze(13);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=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:d,p=t.queryDeduplication,m=void 0===p||p,v=t.defaultOptions,g=t.assumeImmutableResults,D=void 0===g?s.assumeImmutableResults:g,y=t.resolvers,E=t.typeDefs,C=t.fragmentMatcher,_=t.name,P=t.version,z=t.link;if(z||(z=r?new RP({uri:r,credentials:t.credentials,headers:t.headers}):ei.empty()),this.link=z,this.cache=s,this.disableNetworkFetches=u||f>0,this.queryDeduplication=m,this.defaultOptions=v||Object.create(null),this.typeDefs=E,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.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Vb&&h&&!1!==globalThis.__DEV__&&(Vb=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var pe=window.navigator,le=pe&&pe.userAgent,De=void 0;"string"==typeof le&&(le.indexOf("Chrome/")>-1?De="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":le.indexOf("Firefox/")>-1&&(De="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),De&&!1!==globalThis.__DEV__&&B.log("Download the Apollo DevTools for a better development experience: %s",De)}this.version=tf,this.localState=new Bb({cache:s,client:this,resolvers:y,fragmentMatcher:C}),this.queryManager=new CF({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:a,queryDeduplication:m,ssrMode:u,clientAwareness:{name:_,version:P},localState:this.localState,assumeImmutableResults:D,onBroadcast:h?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0})}return 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=Qf(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=Qf(this.defaultOptions.query,t)),B("cache-and-network"!==t.fetchPolicy,14),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=Qf(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.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 gf(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__&&B.debug(15,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},e}();function IF(e,t){if(!Boolean(e))throw new Error(t??"Unexpected invariant triggered.")}const MF=/\r\n|[\n\r]/g;function Kf(e,t){let n=0,r=1;for(const i of e.body.matchAll(MF)){if("number"==typeof i.index||IF(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function AF(e){return Ub(e.source,Kf(e.source,e.start))}function Ub(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+$b([[s-1+" |",l[i-1]],[`${s} |`,f],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function $b(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 Yf extends Error{constructor(t,...n){var r,i,o;const{nodes:s,source:a,positions:c,path:u,originalError:l,extensions:f}=function kF(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=qb(Array.isArray(s)?s:s?[s]:void 0);const d=qb(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=>Kf(a,p)):d?.map(p=>Kf(p.source,p.start));const h=function TF(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,Yf):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"+AF(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+="\n\n"+Ub(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 qb(e){return void 0===e||0===e.length?void 0:e}function Re(e,t,n){return new Yf(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Ma=(()=>(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"}(Ma||(Ma={})),Ma))(),w=(()=>(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"}(w||(w={})),w))();class OF{constructor(t){const n=new FD(w.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!==w.EOF)do{if(t.next)t=t.next;else{const n=xF(this,t.end);t.next=n,n.prev=t,t=n}}while(t.kind===w.COMMENT);return t}}function ci(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Aa(e,t){return zb(e.charCodeAt(t))&&Gb(e.charCodeAt(t+1))}function zb(e){return e>=55296&&e<=56319}function Gb(e){return e>=56320&&e<=57343}function sr(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return w.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 FD(t,n,r,e.line,1+n-e.lineStart,i)}function xF(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 jF(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 Re(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function VF(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o0||ba(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||ba(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class ka{constructor(t,n={}){const r=function $F(e){return UF(e,Qb)}(t)?t:new Qb(t);this._lexer=new OF(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(w.NAME);return this.node(t,{kind:M.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:M.DOCUMENT,definitions:this.many(w.SOF,this.parseDefinition,w.EOF)})}parseDefinition(){if(this.peek(w.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===w.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 Re(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(w.BRACE_L))return this.node(t,{kind:M.OPERATION_DEFINITION,operation:nr.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(w.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(w.NAME);switch(t.value){case"query":return nr.QUERY;case"mutation":return nr.MUTATION;case"subscription":return nr.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(w.PAREN_L,this.parseVariableDefinition,w.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:M.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(w.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(w.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(w.DOLLAR),this.node(t,{kind:M.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:M.SELECTION_SET,selections:this.many(w.BRACE_L,this.parseSelection,w.BRACE_R)})}parseSelection(){return this.peek(w.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(w.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(w.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){return this.optionalMany(w.PAREN_L,t?this.parseConstArgument:this.parseArgument,w.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(w.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(w.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(w.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 w.BRACKET_L:return this.parseList(t);case w.BRACE_L:return this.parseObject(t);case w.INT:return this.advanceLexer(),this.node(n,{kind:M.INT,value:n.value});case w.FLOAT:return this.advanceLexer(),this.node(n,{kind:M.FLOAT,value:n.value});case w.STRING:case w.BLOCK_STRING:return this.parseStringLiteral();case w.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 w.DOLLAR:if(t){if(this.expectToken(w.DOLLAR),this._lexer.token.kind===w.NAME)throw Re(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===w.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:M.LIST,values:this.any(w.BRACKET_L,()=>this.parseValueLiteral(t),w.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:M.OBJECT,fields:this.any(w.BRACE_L,()=>this.parseObjectField(t),w.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(w.COLON),this.node(n,{kind:M.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(w.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(w.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(w.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(w.BRACKET_R),n=this.node(t,{kind:M.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(w.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(w.STRING)||this.peek(w.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(w.BRACE_L,this.parseOperationTypeDefinition,w.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(w.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(w.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(w.BRACE_L,this.parseFieldDefinition,w.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(w.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(w.PAREN_L,this.parseInputValueDef,w.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(w.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(w.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(w.EQUALS)?this.delimitedMany(w.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(w.BRACE_L,this.parseEnumValueDefinition,w.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 Re(this._lexer.source,this._lexer.token.start,`${Oa(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(w.BRACE_L,this.parseInputValueDef,w.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===w.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(w.BRACE_L,this.parseOperationTypeDefinition,w.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(w.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(w.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Ma,n.value))return n;throw this.unexpected(t)}node(t,n){return!0!==this._options.noLocation&&(n.loc=new Rx(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 Re(this._lexer.source,n.start,`Expected ${Kb(t)}, found ${Oa(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const n=this._lexer.token;if(n.kind!==w.NAME||n.value!==t)throw Re(this._lexer.source,n.start,`Expected "${t}", found ${Oa(n)}.`);this.advanceLexer()}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===w.NAME&&n.value===t&&(this.advanceLexer(),!0)}unexpected(t){const n=t??this._lexer.token;return Re(this._lexer.source,n.start,`Unexpected ${Oa(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!==w.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Re(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Oa(e){const t=e.value;return Kb(e.kind)+(null!=t?` "${t}"`:"")}function Kb(e){return function NF(e){return e===w.BANG||e===w.DOLLAR||e===w.AMP||e===w.PAREN_L||e===w.PAREN_R||e===w.SPREAD||e===w.COLON||e===w.EQUALS||e===w.AT||e===w.BRACKET_L||e===w.BRACKET_R||e===w.BRACE_L||e===w.PIPE||e===w.BRACE_R}(e)?`"${e}"`:e}var Na=new Map,Xf=new Map,Yb=!0,xa=!1;function Jb(e){return e.replace(/[\s,]+/g," ").trim()}function QF(e){var t=Jb(e);if(!Na.has(t)){var n=function qF(e,t){return new ka(e,t).parseDocument()}(e,{experimentalFragmentVariables:xa,allowLegacyFragmentVariables:xa});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Na.set(t,function WF(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 GF(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if("FragmentDefinition"===r.kind){var i=r.name.value,o=function zF(e){return Jb(e.source.body.substring(e.start,e.end))}(r.loc),s=Xf.get(i);s&&!s.has(o)?Yb&&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||Xf.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 Na.get(t)}function ui(e){for(var t=[],n=1;n(Xb.delegate||Date).now(),delegate:void 0};class So{constructor(t,n=So.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}}So.now=Xb.now;class nR extends So{constructor(t,n=So.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 iR=new class rR extends nR{}(class tR extends eR{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 Zb(...e){return function oR(){return qd(1)}()(gi(e,Bo(e)))}function eE(e){return new be(t=>(e().then(n=>{t.closed||(t.next(n),t.complete())},n=>{t.closed||t.error(n)}),()=>t.unsubscribe()))}class cR{constructor(t){this.zone=t,this.now=Date.now?Date.now:()=>+new Date}schedule(t,n=0,r){return this.zone.run(()=>iR.schedule(t,n,r))}}function tE(e){return e[Fo]=()=>e,e}function nE(e,t){return e.pipe(Xa(new cR(t)))}function rE(e,t,n){return e&&typeof e[t]<"u"?e[t]:n}class lR{constructor(t,n,r){this.obsQuery=t;const i=nE(gi(tE(this.obsQuery)),n);this.valueChanges=r.useInitialLoading?i.pipe(function uR(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 fR=new F("APOLLO_FLAGS"),iE=new F("APOLLO_OPTIONS"),dR=new F("APOLLO_NAMED_OPTIONS");class oE{constructor(t,n,r){this.ngZone=t,this.flags=n,this._client=r,this.useInitialLoading=rE(n,"useInitialLoading",!1),this.useMutationLoading=rE(n,"useMutationLoading",!1)}watchQuery(t){return new lR(this.ensureClient().watchQuery({...t}),this.ngZone,{useInitialLoading:this.useInitialLoading,...t})}query(t){return eE(()=>this.ensureClient().query({...t}))}mutate(t){return function aR(e,t){return t?e.pipe(function sR(...e){const t=Bo(e);return Hn((n,r)=>{(t?Zb(e,n,t):Zb(e,n)).subscribe(r)})}({loading:!0}),tt(n=>({...n,loading:!!n.loading}))):e.pipe(tt(n=>({...n,loading:!1})))}(eE(()=>this.ensureClient().mutate({...t})),t.useMutationLoading??this.useMutationLoading)}subscribe(t,n){const r=gi(tE(this.ensureClient().subscribe({...t})));return n&&!0!==n.useZone?r:nE(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 sE=(()=>{class e extends oE{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){Zf(r)?this.createDefault(n):this.createNamed(r,n)}default(){return this}use(n){return Zf(n)?this.default():this.map.get(n)}createDefault(n){if(this.getClient())throw new Error("Apollo has been already created.");return this.setClient(new Hb(n))}createNamed(n,r){if(this.map.has(n))throw new Error(`Client ${n} has been already created`);this.map.set(n,new oE(this._ngZone,this.flags,new Hb(r)))}removeClient(n){Zf(n)?this._client=void 0:this.map.delete(n)}}return e.\u0275fac=function(n){return new(n||e)(V(Ve),V(iE,8),V(dR,8),V(fR,8))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function Zf(e){return!e||"default"===e}const hR=[sE];let pR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Cn({type:e}),e.\u0275inj=nn({providers:hR}),e})();const aE=function mR(e,...t){return ui(e,...t)};var gR=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Ia(dx)}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.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=Zt(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=Zt(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}(),cE=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 It(t,e),t}(Error);function ed(e){return!1!==globalThis.__DEV__&&function yR(e){var t=new Set([e]);return t.forEach(function(n){ue(n)&&function vR(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){ue(n[r])&&t.add(n[r])})}),e}(e),e}var Le=Object.prototype.hasOwnProperty;function _o(e){return null==e}function uE(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=_o(r)?_o(i)?void 0:{_id:i}:{id:r}),_o(r)&&!_o(i)&&(r=i),!_o(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var lE={dataIdFromObject:uE,addTypename:!0,resultCaching:!0,canonizeResults:!1};function fE(e){var t=e.canonizeResults;return void 0===t?lE.canonizeResults:t}var dE=/^[_a-z][_0-9a-z]*/i;function Rn(e){var t=e.match(dE);return t?t[0]:e}function td(e,t,n){return!!ue(t)&&(ve(t)?t.every(function(r){return td(e,r,n)}):e.selections.every(function(r){if(Nn(r)&&mo(r,n)){var i=On(r);return Le.call(t,i)&&(!r.selectionSet||td(r.selectionSet,t[i],n))}return!0}))}function li(e){return ue(e)&&!ne(e)&&!ve(e)}function hE(e,t){var n=ma(va(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var Fa=Object.create(null),nd=function(){return Fa},pE=Object.create(null),Co=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 ed(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 Xr(i);if(ne(i))return i;var s=r.policies.identify(i)[0];if(s){var a=Xr(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),Le.call(this.data,t)){var r=this.data[t];if(r&&Le.call(r,n))return r[n]}return"__typename"===n&&Le.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof Ln?this.parent.get(t,n):void 0},e.prototype.lookup=function(t,n){return n&&this.group.depend(t,"__exists"),Le.call(this.data,t)?this.data[t]:this instanceof Ln?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){B("string"==typeof i,1);var a=new xn(SR).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=Rn(u);l!==u&&!r.policies.hasKeyArgs(a.__typename,l)&&(c[l]=1),void 0===a[u]&&!(r instanceof Ln)&&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:Fa,INVALIDATE:pE,isReference:ne,toReference:this.toReference,canRead:this.canRead,readField:function(u,l){return r.policies.readField("string"==typeof u?{fieldName:u,from:l||Xr(t)}:u,{store:r})}};if(Object.keys(i).forEach(function(u){var l=Rn(u),f=i[u];if(void 0!==f){var d="function"==typeof n?n:n[u]||n[l];if(d){var h=d===nd?Fa:d(ed(f),b(b({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(t,u)}));h===pE?r.group.dirty(t,u):(h===Fa&&(h=void 0),h!==f&&(o[u]=h,s=!0,f=h))}void 0!==f&&(a=!1)}}),s)return this.merge(t,o),a&&(this instanceof Ln?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,r){var i,o=this.lookup(t);if(o){var s=this.getFieldValue(o,"__typename"),a=n&&r?this.policies.getStoreFieldName({typename:s,fieldName:n,args:r}):n;return this.modify(t,a?((i={})[a]=nd,i):nd)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(Le.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof Ln&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(i){Le.call(t.policies.rootTypenamesById,i)||r.push(i)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(o){t&&Le.call(t,o)||n.delete(o)}),t){var r=t.__META,i=Zt(t,["__META"]);Object.keys(i).forEach(function(o){n.merge(o,i[o])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){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 Ln?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){Le.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 Ln;)o=o.parent;i.forEach(function(s){return o.delete(s)})}return i},e.prototype.findChildRefIds=function(t){if(!Le.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),ue(o)&&Object.keys(o).forEach(function(s){var a=o[s];ue(a)&&i.add(a)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),mE=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?Pb():null,this.keyMaker=new Pn(Dn)},e.prototype.depend=function(t,n){if(this.d){this.d(rd(t,n));var r=Rn(n);r!==n&&this.d(rd(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(rd(t,n),"__exists"===n?"forget":"setDirty")},e}();function rd(e,t){return t+"#"+e}function gE(e,t){To(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 mE(void 0===s||s))||this;return u.stump=new wR(u),u.storageTrie=new Pn(Dn),c&&u.replace(c),u}return It(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}(Co||(Co={}));var Ln=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 It(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){_e(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 Le.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}(Co),wR=function(e){function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new mE(n.group.caching,n.group))||this}return It(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Ln);function SR(e,t,n){var r=e[n],i=t[n];return _e(r,i)?r:i}function To(e){return!!(e instanceof Co&&e.group.caching)}function yE(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var _R=function(){function e(t){var n=this;this.knownResults=new(Dn?WeakMap:Map),this.config=oi(t,{addTypename:!1!==t.addTypename,canonizeResults:fE(t)}),this.canon=t.canon||new kf,this.executeSelectionSet=Ia(function(r){var i,o=r.context.canonizeResults,s=yE(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:(gE(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize,keyArgs:yE,makeCacheKey:function(r,i,o,s){if(To(o.store))return o.store.makeCacheKey(r,ne(i)?i.__ref:i,o.varString,s)}}),this.executeSubSelectedArray=Ia(function(r){return gE(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(r){var i=r.field,o=r.array,s=r.context;if(To(s.store))return s.store.makeCacheKey(i,o,s.varString)}})}return e.prototype.resetCanon=function(){this.canon=new kf},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({},mf(ND(r))),s);var p,d=Xr(o),h=this.executeSelectionSet({selectionSet:ho(r).selectionSet,objectOrReference:d,enclosingRef:d,context:b({store:n,query:r,policies:f,variables:s,varString:or(s),canonizeResults:l},hE(r,this.config.fragments))});if(h.missing&&(p=[new cE(CR(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(To(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 xn;function p(y,E){var C;return y.missing&&(d=h.merge(d,((C={})[E]=y.missing,C))),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 E,C;if(mo(y,a))if(Nn(y)){var _=c.readField({fieldName:y.name.value,field:y,variables:s.variables,from:i},s),P=On(y);void 0===_?If.added(y)||(d=h.merge(d,((E={})[P]="Can't find field '".concat(y.name.value,"' on ").concat(ne(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),E))):ve(_)?_=p(n.executeSubSelectedArray({field:y,array:_,enclosingRef:o,context:s}),P):y.selectionSet?null!=_&&(_=p(n.executeSelectionSet({selectionSet:y.selectionSet,objectOrReference:_,enclosingRef:ne(_)?_:o,context:s}),P)):s.canonizeResults&&(_=n.canon.pass(_)),void 0!==_&&f.push(((C={})[P]=_,C))}else{var z=ga(y,s.lookupFragment);if(!z&&y.kind===M.FRAGMENT_SPREAD)throw Ze(7,y.name.value);z&&c.fragmentMatches(z,l)&&z.selectionSet.selections.forEach(m.add,m)}});var g={result:wf(f),missing:d},D=s.canonizeResults?this.canon.admit(g):ed(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 xn;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 TR(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){ue(i)&&(B(!ne(i),8,function bR(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 CR(e){try{JSON.stringify(e,function(t,n){if("string"==typeof n)throw n;return n})}catch(t){return t}}var vE=Object.create(null);function id(e){var t=JSON.stringify(e);return vE[t]||(vE[t]=Object.create(null))}function DE(e){var t=id(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(s,a){return r.readField(a,s)},o=r.keyObject=od(e,function(s){var a=fi(r.storeObject,s,i);return void 0===a&&n!==r.storeObject&&Le.call(n,s[0])&&(a=fi(n,s,wE)),B(void 0!==a,2,s.join("."),n),a});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function bE(e){var t=id(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,o=r.variables,s=r.fieldName,a=od(e,function(u){var l=u[0],f=l.charAt(0);if("@"!==f)if("$"!==f){if(n)return fi(n,u)}else{var m=l.slice(1);if(o&&Le.call(o,m)){var v=u.slice(0);return v[0]=m,fi(o,v)}}else if(i&&Xt(i.directives)){var d=l.slice(1),h=i.directives.find(function(g){return g.name.value===d}),p=h&&ya(h,o);return p&&fi(p,u.slice(1))}}),c=JSON.stringify(a);return(n||"{}"!==c)&&(s+=":"+c),s})}function od(e,t){var n=new xn;return EE(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 EE(e){var t=id(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,o){ve(i)?(EE(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 wE(e,t){return e[t]}function fi(e,t,n){return n=n||wE,SE(t.reduce(function r(i,o){return ve(i)?i.map(function(s){return r(s,o)}):i&&n(i,o)},e))}function SE(e){return ue(e)?ve(e)?e.map(SE):od(Object.keys(e).sort(),function(t){return fi(e,t)}):e}function sd(e){return void 0!==e.args?e.args:e.field?ya(e.field,e.variables):null}df.setStringify(or);var IR=function(){},_E=function(e,t){return t.fieldName},CE=function(e,t,n){return(0,n.mergeObjects)(e,t)},TE=function(e,t){return t},MR=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:uE},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=ad(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=DE(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=Zt(i,["queryType","mutationType","subscriptionType"]);o&&n.setRootTypename("Query",r),s&&n.setRootTypename("Mutation",r),a&&n.setRootTypename("Subscription",r),Le.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?CE:!1===u?TE:c.merge}a(i,n.merge),i.keyFn=!1===o?IR:ve(o)?DE(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?_E:ve(f)?bE(f):"function"==typeof f?f:u.keyFn,"function"==typeof d&&(u.read=d),a(u,h)}u.read&&u.merge&&(u.keyFn=u.keyFn||_E)})},e.prototype.setRootTypename=function(t,n){void 0===n&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(B(!i||i===t,3,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(dE);(!o||o[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Le.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=Zt(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),Le.call(s,"from")||(s.from=t)),!1!==globalThis.__DEV__&&void 0===s.from&&!1!==globalThis.__DEV__&&B.warn(5,CD(Array.from(e))),void 0===s.variables&&(s.variables=n),s}function ME(e){return function(n,r){if(ve(n)||ve(r))throw Ze(6);if(ue(n)&&ue(r)){var i=e.getFieldValue(n,"__typename"),o=e.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(ne(n)&&li(r))return e.merge(n.__ref,r),n;if(li(n)&&ne(r))return e.merge(n,r.__ref),r;if(li(n)&&li(r))return b(b({},n),r)}return r}}function cd(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 AR=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=fo(i),l=function ER(){return new xn}();a=b(b({},mf(u)),a);var f=b(b({store:t,written:Object.create(null),merge:function(h,p){return l.merge(h,p)},variables:a,varString:or(a)},hE(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 Ze(9,o);return f.incomingById.forEach(function(h,p){var m=h.storeObject,v=h.mergeTree,g=h.fieldNodeSet,D=Xr(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 E=Object.create(null);g.forEach(function(P){P.selectionSet&&(E[P.name.value]=!0)}),Object.keys(m).forEach(function(P){(function(P){return!0===E[Rn(P)]})(P)&&!function(P){var z=v&&v.map.get(P);return Boolean(z&&z.info&&z.info.merge)}(P)&&function kR(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)&&!_e(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=Rn(n),u="".concat(a,".").concat(c);if(!NE.has(u)){NE.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__&&B.warn(12,c,a,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",u,o,s)}}}}(D,m,P,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]||hf(i,o,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof l&&(u.__typename=l);var f=function(){var y=ad(arguments,u,s.variables);if(ne(y.from)){var E=s.incomingById.get(y.from.__ref);if(E){var C=c.readField(b(b({},y),{from:E.storeObject}),s);if(void 0!==C)return C}}return c.readField(y,s)},d=new Set;this.flattenFields(o,i,s,l).forEach(function(y,E){var C,_=On(E),P=i[_];if(d.add(E),void 0!==P){var z=c.getStoreFieldName({typename:l,fieldName:E.name.value,field:E,variables:y.variables}),pe=kE(a,z),le=n.processFieldValue(P,E,E.selectionSet?cd(y,!1,!1):y,pe),De=void 0;E.selectionSet&&(ne(le)||li(le))&&(De=f("__typename",le));var bn=c.getMergeFunction(l,E.name.value,De);bn?pe.info={field:E,typename:l,merge:bn}:OE(a,z),u=y.merge(u,((C={})[z]=le,C))}else!1!==globalThis.__DEV__&&!y.clientOnly&&!y.deferred&&!If.added(E)&&!c.getReadFunction(l,E.name.value)&&!1!==globalThis.__DEV__&&B.error(10,On(E),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=Xr(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=ud(D.mergeTree,a),d.forEach(function(y){return D.fieldNodeSet.add(y)})):s.incomingById.set(r,{storeObject:u,mergeTree:Ra(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,kE(i,a));return OE(i,a),c}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i}):!1!==globalThis.__DEV__?pb(t):t},e.prototype.flattenFields=function(t,n,r,i){void 0===i&&(i=hf(n,t,r.fragmentMap));var o=new Map,s=this.cache.policies,a=new Pn(!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(mo(d,r.variables)){var h=l.clientOnly,p=l.deferred;if(!(h&&p)&&Xt(d.directives)&&d.directives.forEach(function(g){var D=g.name.value;if("client"===D&&(h=!0),"defer"===D){var y=ya(g,r.variables);(!y||!1!==y.if)&&(p=!0)}}),Nn(d)){var m=o.get(d);m&&(h=h&&m.clientOnly,p=p&&m.deferred),o.set(d,cd(r,h,p))}else{var v=ga(d,r.lookupFragment);if(!v&&d.kind===M.FRAGMENT_SPREAD)throw Ze(11,d.name.value);v&&s.fragmentMatches(v,i,n,r.variables)&&c(v.selectionSet,cd(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)&&!li(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&&B(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}(),AE=[];function kE(e,t){var n=e.map;return n.has(t)||n.set(t,AE.pop()||{map:new Map}),n.get(t)}function ud(e,t){if(e===t||!t||Ra(t))return e;if(!e||Ra(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,ud(a,t.map.get(c))),s.delete(c)}),s.forEach(function(a){o.map.set(a,ud(t.map.get(a),e.map.get(a)))})}return o}function Ra(e){return!e||!(e.info||e.map.size)}function OE(e,t){var n=e.map,r=n.get(t);r&&Ra(r)&&(AE.push(r),n.delete(t))}var NE=new Set,OR=function(e){function t(n){void 0===n&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new fb(If),r.assumeImmutableResults=!0,r.makeVar=wF,r.txCount=0,r.config=function DR(e){return oi(lE,e)}(n),r.addTypename=!!r.config.addTypename,r.policies=new MR({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return It(t,e),t.prototype.init=function(){var n=this.data=new Co.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 AR(this,this.storeReader=new _R({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:fE(this.config),canon:n?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=Ia(function(s,a){return r.broadcastWatch(s,a)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(s){var a=s.optimistic?r.optimisticData:r.data;if(To(a))return a.makeCacheKey(s.query,s.callback,or({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 cE)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(Le.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 EF(e){bo(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&&Lb(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){or.reset();var r=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),r},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__&&B.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Le.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(),or.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Lb(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||!_e(i.result,o.result))&&n.callback(n.lastDiff=o,i)},t}(gR);class La{}class ld{}class jt{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 jt?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 jt;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof jt?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 FR{encodeKey(t){return xE(t)}encodeValue(t){return xE(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const LR=/%(\d[a-f0-9])/gi,BR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xE(e){return encodeURIComponent(e).replace(LR,(t,n)=>BR[n]??t)}function Ba(e){return`${e}`}class Bn{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new FR,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function RR(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(Ba):[Ba(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 Bn({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(Ba(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(Ba(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 jR{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 PE(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function FE(e){return typeof Blob<"u"&&e instanceof Blob}function RE(e){return typeof FormData<"u"&&e instanceof FormData}class Io{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 VR(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 jt),this.context||(this.context=new jR),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 Io(n,r,o,{params:u,headers:c,context:l,reportProgress:a,responseType:i,withCredentials:s})}}var Oe=(()=>((Oe=Oe||{})[Oe.Sent=0]="Sent",Oe[Oe.UploadProgress=1]="UploadProgress",Oe[Oe.ResponseHeader=2]="ResponseHeader",Oe[Oe.DownloadProgress=3]="DownloadProgress",Oe[Oe.Response=4]="Response",Oe[Oe.User=5]="User",Oe))();class fd{constructor(t,n=200,r="OK"){this.headers=t.headers||new jt,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 dd extends fd{constructor(t={}){super(t),this.type=Oe.ResponseHeader}clone(t={}){return new dd({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 ja extends fd{constructor(t={}){super(t),this.type=Oe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new ja({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 LE extends fd{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 hd(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 BE=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Io)o=n;else{let c,u;c=i.headers instanceof jt?i.headers:new jt(i.headers),i.params&&(u=i.params instanceof Bn?i.params:new Bn({fromObject:i.params})),o=new Io(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 NR(...e){return gi(e,Bo(e))}(o).pipe(function xR(e,t){return fe(t)?Lo(e,t,1):Lo(e,1)}(c=>this.handler.handle(c)));if(n instanceof Io||"events"===i.observe)return s;const a=s.pipe(function PR(e,t){return Hn((n,r)=>{let i=0;n.subscribe(mi(r,o=>e.call(t,o,i++)&&r.next(o)))})}(c=>c instanceof ja));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(tt(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(tt(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(tt(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(tt(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 Bn).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,hd(i,r))}post(n,r,i={}){return this.request("POST",n,hd(i,r))}put(n,r,i={}){return this.request("PUT",n,hd(i,r))}}return e.\u0275fac=function(n){return new(n||e)(V(La))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function jE(e,t){return t(e)}function UR(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}const qR=new F("HTTP_INTERCEPTORS"),Mo=new F("HTTP_INTERCEPTOR_FNS");function zR(){let e=null;return(t,n)=>(null===e&&(e=(Di(qR,{optional:!0})??[]).reduceRight(UR,jE)),e(t,n))}let VE=(()=>{class e extends La{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(Mo)));this.chain=r.reduceRight((i,o)=>function $R(e,t,n){return(r,i)=>n.runInContext(()=>t(r,o=>e(o,i)))}(i,o,this.injector),jE)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(V(ld),V(Kn))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const KR=/^\)\]\}',?\n/;let UE=(()=>{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 jt(i.getAllResponseHeaders()),m=function YR(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 dd({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(KR,"");try{g=""!==g?JSON.parse(g):null}catch(E){g=y,D&&(D=!1,g={error:E,text:g})}}D?(r.next(new ja({body:g,headers:h,status:p,statusText:m,url:v||void 0})),r.complete()):r.error(new LE({error:g,headers:h,status:p,statusText:m,url:v||void 0}))},u=h=>{const{url:p}=a(),m=new LE({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:Oe.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:Oe.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:Oe.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)(V(Jv))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();const pd=new F("XSRF_ENABLED"),$E=new F("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),qE=new F("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class zE{}let ZR=(()=>{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=Hv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(V(Jt),V(pl),V($E))},e.\u0275prov=Y({token:e,factory:e.\u0275fac}),e})();function eL(e,t){const n=e.url.toLowerCase();if(!Di(pd)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=Di(zE).getToken(),i=Di(qE);return null!=r&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var Ce=(()=>((Ce=Ce||{})[Ce.Interceptors=0]="Interceptors",Ce[Ce.LegacyInterceptors=1]="LegacyInterceptors",Ce[Ce.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ce[Ce.NoXsrfProtection=3]="NoXsrfProtection",Ce[Ce.JsonpSupport=4]="JsonpSupport",Ce[Ce.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ce))();function di(e,t){return{\u0275kind:e,\u0275providers:t}}function tL(...e){const t=[BE,UE,VE,{provide:La,useExisting:VE},{provide:ld,useExisting:UE},{provide:Mo,useValue:eL,multi:!0},{provide:pd,useValue:!0},{provide:zE,useClass:ZR}];for(const n of e)t.push(...n.\u0275providers);return function F_(e){return{\u0275providers:e}}(t)}const GE=new F("LEGACY_INTERCEPTOR_FN");let rL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Cn({type:e}),e.\u0275inj=nn({providers:[tL(di(Ce.LegacyInterceptors,[{provide:GE,useFactory:zR},{provide:Mo,useExisting:GE,multi:!0}]))]}),e})();class iL extends ei{constructor(t,n){super(),this.httpClient=t,this.options=n,this.print=WD,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=r=>new ce(i=>{const o=r.getContext(),s=(D,y)=>function ar(...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 KE(e){let t=e.headers&&e.headers instanceof jt?e.headers:new jt(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 oL=(()=>{class e{constructor(n){this.httpClient=n}create(n){return new iL(this.httpClient,n)}}return e.\u0275fac=function(n){return new(n||e)(V(BE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),sL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Cn({type:e}),e.\u0275inj=nn({providers:[{provide:iE,useFactory:t=>{const n=new OR;return{link:t.create({uri:"https://graphqlpokemon.favware.tech/v7"}),cache:n,defaultOptions:{query:{fetchPolicy:"network-only",errorPolicy:"all"}}}},deps:[oL]}],imports:[pR]}),e})();class Ao extends Ro{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 gt=(()=>{class e{constructor(){this.raidTierSource=new Ao(""),this.pokemonListSource=new Ao(""),this.teraTypeSource=new Ao(""),this.moveListSource=new Ao(""),this.loadingSource=new Ao(!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 aL=aE` + query GetPokemon($pokemon: PokemonEnum!) { + getPokemon(pokemon: $pokemon) { + abilities { + first { + name + key + desc + shortDesc + } + second { + name + key + desc + shortDesc + } + hidden { + name + key + desc + shortDesc + } + } + key + num + types { + name + } + baseStats { + hp + attack + defense + specialattack + specialdefense + speed + } + learnsets { + generation8 { + dreamworldMoves { + ...LearnsetMoveFragment + } + eggMoves { + ...LearnsetMoveFragment + } + eventMoves { + ...LearnsetMoveFragment + } + tmMoves { + ...LearnsetMoveFragment + } + tutorMoves { + ...LearnsetMoveFragment + } + virtualTransferMoves { + ...LearnsetMoveFragment + } + levelUpMoves { + generation + move { + ...MoveFragment + } + } + } + } + } + } + + fragment MoveFragment on Move { + key + accuracy + basePower + category + desc + name + pp + priority + shortDesc + target + type + } + fragment LearnsetMoveFragment on LearnsetMove { + generation + move { + ...MoveFragment + } + } +`,cL=aE` + query getMove($move: MovesEnum!) { + getMove(move: $move) { + key + name + shortDesc + type + basePower + pp + category + accuracy + priority + target + desc + } + } +`;let cr=(()=>{class e{constructor(n){this.apollo=n}getAbilities(){return this.pokemon.pipe(tt(n=>n.getPokemon.abilities))}getDexNumber(){return this.pokemon.pipe(tt(n=>n.getPokemon.num))}getMove(n){return this.apollo.query({query:cL,variables:{move:n}}).pipe(tt(r=>r.data))}getMoves(){return this.pokemon.pipe(tt(n=>n.getPokemon.learnsets))}getPokemon(n){return this.pokemon=this.apollo.query({query:aL,variables:{pokemon:n}}).pipe(tt(r=>r.data)),this.pokemon}getStats(){return this.pokemon.pipe(tt(n=>n.getPokemon.baseStats))}getTypes(){return this.pokemon.pipe(tt(n=>n.getPokemon.types))}}return e.\u0275fac=function(n){return new(n||e)(V(sE))},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Te=(()=>(function(e){e.Bug="Bug",e.Dark="Dark",e.Dragon="Dragon",e.Electric="Electric",e.Fairy="Fairy",e.Fighting="Fighting",e.Fire="Fire",e.Flying="Flying",e.Ghost="Ghost",e.Grass="Grass",e.Ground="Ground",e.Ice="Ice",e.Normal="Normal",e.Poison="Poison",e.Psychic="Psychic",e.Rock="Rock",e.Steel="Steel",e.Water="Water"}(Te||(Te={})),Te))();const md=[{name:Te.Bug,matchup:{offense:{double:["dark","grass","psychic"],immune:[],normal:["bug","dragon","electric","ground","ice","normal","rock","water"],resisted:["fairy","fighting","fire","flying","ghost","poison","steel"]},defense:{double:["fire","flying","rock"],immune:[],normal:["bug","dark","dragon","electric","fairy","ghost","ice","normal","poison","psychic","steel","water"],resisted:["fighting","grass","ground"]}}},{name:Te.Dark,matchup:{offense:{double:["ghost","psychic"],immune:[],normal:["bug","dragon","electric","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["dark","fairy","fighting"]},defense:{double:["bug","fairy","fighting"],immune:["psychic"],normal:["dragon","electric","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["dark","ghost"]}}},{name:Te.Dragon,matchup:{offense:{double:["dragon"],immune:["fairy"],normal:["bug","dark","electric","fighting","fire","flying","ghost","grass","ground","ice","normal","poison","psychic","rock","water"],resisted:["steel"]},defense:{double:["dragon","fairy","ice"],immune:[],normal:["bug","dark","fighting","flying","ghost","ground","normal","poison","psychic","rock","steel"],resisted:["electric","fire","grass","water"]}}},{name:Te.Electric,matchup:{offense:{double:["flying","water"],immune:["ground"],normal:["bug","dark","fairy","fighting","fire","ghost","ice","normal","poison","psychic","rock","steel"],resisted:["dragon","electric","grass"]},defense:{double:["ground"],immune:[],normal:["bug","dark","dragon","fairy","fighting","fire","ghost","grass","ice","normal","poison","psychic","rock","water"],resisted:["electric","flying","steel"]}}},{name:Te.Fairy,matchup:{offense:{double:["dark","dragon","fighting"],immune:[],normal:["bug","electric","fairy","flying","ghost","grass","ground","ice","normal","psychic","rock","water"],resisted:["fire","poison","steel"]},defense:{double:["poison","steel"],immune:["dragon"],normal:["electric","fairy","fire","flying","ghost","grass","ground","ice","normal","psychic","rock","water"],resisted:["bug","dark","fighting"]}}},{name:Te.Fighting,matchup:{offense:{double:["dark","ice","normal","rock","steel"],immune:["ghost"],normal:["dragon","electric","fighting","fire","grass","ground","water"],resisted:["bug","fairy","flying","poison","psychic"]},defense:{double:["fairy","flying","psychic"],immune:[],normal:["dragon","electric","fighting","fire","ghost","grass","ground","ice","normal","poison","steel","water"],resisted:["bug","dark","rock"]}}},{name:Te.Fire,matchup:{offense:{double:["bug","grass","ice","steel"],immune:[],normal:["dark","electric","fairy","fighting","flying","ghost","ground","normal","poison","psychic"],resisted:["dragon","fire","rock","water"]},defense:{double:["ground","rock","water"],immune:[],normal:["dark","dragon","electric","fighting","flying","ghost","normal","poison","psychic"],resisted:["bug","fairy","fire","grass","ice","steel"]}}},{name:Te.Flying,matchup:{offense:{double:["bug","fighting","grass"],immune:[],normal:["dark","dragon","fairy","fire","flying","ghost","ground","ice","normal","poison","psychic","water"],resisted:["electric","rock","steel"]},defense:{double:["electric","ice","rock"],immune:["ground"],normal:["dark","dragon","fairy","fire","flying","ghost","normal","poison","psychic","steel","water"],resisted:["bug","fighting","grass"]}}},{name:Te.Ghost,matchup:{offense:{double:["ghost","psychic"],immune:["normal"],normal:["bug","dragon","electric","fairy","fighting","fire","flying","grass","ground","ice","poison","rock","steel","water"],resisted:["dark"]},defense:{double:["dark","ghost"],immune:["fighting","normal"],normal:["dragon","electric","fairy","fire","flying","grass","ground","ice","psychic","rock","steel","water"],resisted:["bug","poison"]}}},{name:Te.Grass,matchup:{offense:{double:["ground","rock","water"],immune:[],normal:["dark","electric","fairy","fighting","ghost","ice","normal","psychic"],resisted:["bug","dragon","fire","flying","grass","poison","steel"]},defense:{double:["bug","fire","flying","ice","poison"],immune:[],normal:["dark","dragon","fairy","fighting","ghost","normal","psychic","rock","steel"],resisted:["electric","grass","ground","water"]}}},{name:Te.Ground,matchup:{offense:{double:["electric","fire","poison","rock","steel"],immune:["flying"],normal:["dark","dragon","fairy","fighting","ghost","ground","ice","normal","psychic","water"],resisted:["bug","grass"]},defense:{double:["grass","ice","water"],immune:["electric"],normal:["bug","dark","dragon","fairy","fighting","fire","flying","ghost","ground","normal","psychic","steel"],resisted:["poison","rock"]}}},{name:Te.Ice,matchup:{offense:{double:["dragon","flying","grass","ground"],immune:[],normal:["bug","dark","electric","fairy","fighting","ghost","normal","poison","psychic","rock"],resisted:["fire","ice","steel","water"]},defense:{double:["fighting","fire","rock","steel"],immune:[],normal:["bug","dark","dragon","electric","fairy","flying","ghost","grass","ground","normal","poison","psychic","water"],resisted:["ice"]}}},{name:Te.Normal,matchup:{offense:{double:[],immune:["ghost"],normal:["bug","dark","dragon","electric","fairy","fighting","fire","flying","grass","ground","ice","normal","poison","psychic","water"],resisted:["rock","steel"]},defense:{double:["fighting"],immune:["ghost"],normal:["bug","dark","dragon","electric","fairy","fire","flying","grass","ground","ice","normal","poison","psychic","rock","steel","water"],resisted:[]}}},{name:Te.Poison,matchup:{offense:{double:["fairy","grass"],immune:["steel"],normal:["bug","dark","dragon","electric","fighting","fire","flying","ice","normal","psychic","water"],resisted:["ghost","ground","poison","rock"]},defense:{double:["ground","psychic"],immune:[],normal:["dark","dragon","electric","fire","flying","ghost","ice","normal","rock","steel","water"],resisted:["bug","fairy","fighting","grass","poison"]}}},{name:Te.Psychic,matchup:{offense:{double:["fighting","poison"],immune:["dark"],normal:["bug","dragon","electric","fairy","fire","flying","ghost","grass","ground","ice","normal","rock","water"],resisted:["psychic","steel"]},defense:{double:["bug","dark","ghost"],immune:[],normal:["dragon","electric","fairy","fire","flying","grass","ground","ice","normal","poison","rock","steel","water"],resisted:["fighting","psychic"]}}},{name:Te.Rock,matchup:{offense:{double:["bug","fire","flying","ice"],immune:[],normal:["dark","dragon","electric","fairy","ghost","grass","normal","poison","psychic","rock","water"],resisted:["fighting","ground","steel"]},defense:{double:["fighting","grass","ground","steel","water"],immune:[],normal:["bug","dark","dragon","electric","fairy","ghost","ice","psychic","rock"],resisted:["fire","flying","normal","poison"]}}},{name:Te.Steel,matchup:{offense:{double:["fairy","ice","rock"],immune:[],normal:["bug","dark","dragon","fighting","flying","ghost","grass","ground","normal","poison","psychic"],resisted:["electric","fire","steel","water"]},defense:{double:["fighting","fire","ground"],immune:["poison"],normal:["dark","electric","ghost","water"],resisted:["bug","dragon","fairy","flying","grass","ice","normal","psychic","rock","steel"]}}},{name:Te.Water,matchup:{offense:{double:["fire","ground","rock"],immune:[],normal:["bug","dark","electric","fairy","fighting","flying","ghost","ice","normal","poison","psychic","steel"],resisted:["dragon","grass","water"]},defense:{double:["electric","grass"],immune:[],normal:["bug","dark","dragon","fairy","fighting","flying","ghost","ground","normal","poison","psychic","rock"],resisted:["fire","ice","steel","water"]}}}];let gd=(()=>{class e{advantages(n,r=!1){const i=[];return md.filter(o=>o.name.includes(n)).forEach(o=>{const s=o.matchup.offense;s.double.forEach(a=>{i.push({name:a,multiplier:2})}),r&&(s.resisted.forEach(a=>{i.push({name:a,multiplier:.5})}),s.immune.forEach(a=>{i.push({name:a,multiplier:0})}))}),i}weaknesses(n){const r=[];return md.filter(i=>i.name.includes(n)).forEach(i=>{const o=i.matchup.defense;o.double.forEach(s=>{r.push({name:s,multiplier:2})}),o.resisted.forEach(s=>{r.push({name:s,multiplier:.5})}),o.immune.forEach(s=>{r.push({name:s,multiplier:0})})}),r}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ha(e){return e.toLowerCase().replace(/\w/,t=>t.toUpperCase())}function ur(e){(e?[e]:["pokemonTypes","pokemonImageNormal","pokemonImageShiny","pokemonAbility","pokemonStatsWrapper","pokemonMoves","pokemonHerbs","pokemonTypeAdvantages","pokemonTeraWeaknesses","pokemonTeraAdvantages"]).forEach(n=>{document.getElementById(n).innerHTML=""})}function et(e,t){e.innerHTML+=t}function yd(e){return`
${Ha(e.name)} - ${e.multiplier}x
`}function YE(e,t,n){return String(e).padStart(t,n)}let uL=(()=>{class e{constructor(n){this.stateService=n}valueChanged(){const n=document.getElementById("raidTier");this.stateService.changeRaidTier(n.options[n.selectedIndex].value)}}return e.\u0275fac=function(n){return new(n||e)(k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-raid-tier"]],decls:7,vars:0,consts:[["id","raidTier",3,"change"],["value",""],["value","5"],["value","6"]],template:function(n,r){1&n&&(ge(0,"select",0),qr("change",function(){return r.valueChanged()}),ge(1,"option",1),We(2,"-- Tier --"),xe(),ge(3,"option",2),We(4,"5 Star"),xe(),ge(5,"option",3),We(6,"6 Star"),xe()())},encapsulation:2}),e})();const Ua=[{name:"Raichu",info:{moves:["Discharge","Iron Tail","Charm","Nuzzle","Electric Terrain","Thunder Wave"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Arcanine",info:{moves:["Flamethrower","Crunch","Extreme Speed","Fire Fang","Sunny Day","Leer"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slowbro",info:{moves:["Zen Headbutt","Liquidation","Yawn","Water Pulse","Curse"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Cloyster",info:{moves:["Icicle Spear","Hydro Pump","Ice Shard","Supersonic","Shell Smash"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Gengar",info:{moves:["Shadow Ball","Sludge Bomb","Confuse Ray","Spite","Hypnosis"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Scyther",info:{moves:["Aerial Ace","X-Scissor","Slash","Agility","Focus Energy","Swords Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tauros (Fire)",formName:"taurospaldeafire",imageAlt:"-b",info:{moves:["Flare Blitz","Close Combat","Flamethrower","Headbutt","Work Up","Sunny Day"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tauros (Water)",formName:"taurospaldeawater",imageAlt:"-a",info:{moves:["Wave Crash","Close Combat","Surf","Headbutt","Work Up","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Gyarados",info:{moves:["Aqua Tail","Twister","Hurricane","Crunch","Scary Face","Taunt","Dragon Dance","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Ditto",info:{moves:["Transform"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Eevee",info:{moves:["Tera Blast","Take Down","Shadow Ball","Tickle","Yawn","Calm Mind"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Dragonite",info:{moves:["Dragon Rush","Aerial Ace","Extreme Speed","Hurricane","Safeguard","Dragon Dance","Rain Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slowking",info:{moves:["Psychic","Surf","Yawn","Water Pulse","Psychic Terrain","Calm Mind"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Scizor",info:{moves:["Iron Head","X-Scissor","Bullet Punch","Slash","Iron Defense","Focus Energy"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Delibird",info:{moves:["Present","Drill Peck","Ice Punch","Blizzard","Snowscape"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Houndoom",info:{moves:["Flamethrower","Crunch","Taunt","Will-O-Wisp","Sunny Day","Howl"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Blissey",info:{moves:["Dazzling Gleam","Hyper Voice","Sing"],specialMoves:["Seismic Toss","Gravity"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Tyranitar",info:{moves:["Rock Slide","Crunch","Screech","Dark Pulse","Dragon Dance","Sandstorm"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Gardevoir",info:{moves:["Psychic","Moonblast","Draining Kiss","Misty Terrain","Calm Mind","Psychic Terrain"],specialMoves:["Disable"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Breloom",info:{moves:["Seed Bomb","Mach Punch","Worry Seed","Headbutt","Grassy Terrain"],specialMoves:["Spore"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Slaking",info:{moves:["Facade","Shadow Claw","Play Rough","Swagger","Encore"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hariyama",info:{moves:["Reversal","Brick Break","Brine","Heavy Slam","Scary Face","Taunt","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Sableye",info:{moves:["Shadow Claw","Foul Play","Will-O-Wisp","Night Shade","Flatter","Torment"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Camerupt",info:{moves:["Flamethrower","Earth Power","Yawn","Eruption","Sunny Day"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Altaria",info:{moves:["Dragon Pulse","Hurricane","Sing","Mist","Safeguard"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Glalie",info:{moves:["Freeze-Dry","Crunch","Headbutt","Frost Breath","Snowscape"],specialMoves:["Disable"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Salamence",info:{moves:["Aerial Ace","Hyper Voice","Draco Meteor","Dragon Dance","Focus Energy"],specialMoves:["Dragon Rush"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Staraptor",info:{moves:["Close Combat","Brave Bird","Quick Attack"],specialMoves:["Double-Edge"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Luxray",info:{moves:["Crunch","Wild Charge","Discharge","Thunder Wave","Electric Terrain","Leer"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Drifblim",info:{moves:["Hex","Air Slash","Thunder Wave","Shadow Ball","Will-O-Wisp"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Mismagius",info:{moves:["Mystical Fire","Shadow Ball","Confuse Ray","Taunt","Nasty Plot"],specialMoves:["Light Screen"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Honchkrow",info:{moves:["Night Slash","Hurricane","Haze","Wing Attack","Nasty Plot"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Bronzong",info:{moves:["Flash Cannon","Extrasensory","Metal Sound","Payback","Rain Dance","Calm Mind","Reflect"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Garchomp",info:{moves:["Earthquake","Dragon Claw","Iron Head","Slash","Sandstorm","Bulldoze"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hippowdon",info:{moves:["Earthquake","Yawn","Rock Slide","Body Slam"],specialMoves:["Stockpile"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Abomasnow",info:{moves:["Energy Ball","Ice Punch","Ice Shard","Leer","Blizzard","Snowscape","Aurora Veil"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Weavile",info:{moves:["Ice Punch","Night Slash","Taunt","Facade","Swords Dance"],specialMoves:["Reflect"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Magnezone",info:{moves:["Thunderbolt","Flash Cannon","Tri Attack","Thunder Wave","Magnet Rise","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Gallade",info:{moves:["Psycho Cut","Brick Break","Fury Cutter","Hypnosis","Psychic Terrain"],specialMoves:["Disable","Shadow Sneak"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Froslass",info:{moves:["Frost Breath","Shadow Ball","Scary Face","Draining Kiss","Snowscape","Aurora Veil"],specialMoves:["Disable"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Rotom",info:{moves:["Discharge","Uproar","Hex","Thunder Wave","Charge","Eerie Impulse"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Krookodile",info:{moves:["Earthquake","Crunch","Sand Tomb","Torment","Hone Claws"],specialMoves:["Counter"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Zoroark",info:{moves:["Night Daze","Shadow Claw","Taunt","Hyper Voice","Torment","Nasty Plot"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Gothitelle",info:{moves:["Psychic","Thunder Wave","Thunderbolt","Stored Power","Calm Mind","Light Screen"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Amoonguss",info:{moves:["Energy Ball","Sludge Bomb","Spore","Clear Smog","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Eelektross",info:{moves:["Wild Charge","Flamethrower","Discharge","Crush Claw","Thunder Wave","Coil"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Haxorus",info:{moves:["Dragon Claw","Crunch","Giga Impact","Dragon Dance"],specialMoves:["Harden","First Impression"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Braviary",info:{moves:["Acrobatics","Crush Claw","Superpower","Air Slash","Tailwind","Hone Claws"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Hydreigon",info:{moves:["Dark Pulse","Dragon Pulse","Scary Face","Dragon Rush","Taunt","Reflect","Nasty Plot"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Volcarona",info:{moves:["Fire Blast","Bug Buzz","Hurricane","Will-O-Wisp","Sunny Day","Quiver Dance"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Talonflame",info:{moves:["Acrobatics","Flare Blitz","Steel Wing","Heat Wave","Bulk Up"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Florges",info:{moves:["Petal Dance","Moonblast","Psychic","Safeguard","Grassy Terrain","Calm Mind"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Dragalge",info:{moves:["Dragon Pulse","Sludge Bomb","Water Pulse","Toxic","Acid Spray","Draco Meteor"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Clawitzer",info:{moves:["Water Pulse","Dragon Pulse","Aura Sphere","Crabhammer","Rain Dance"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Goodra",info:{moves:["Water Pulse","Dragon Pulse","Sludge Bomb","Power Whip","Rain Dance","Draco Meteor"],specialMoves:["Acid Armor"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Avalugg",info:{moves:["Icicle Crash","Double-Edge","Crunch","Ice Fang","Snowscape","Iron Defense"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Noivern",info:{moves:["Air Slash","Dragon Pulse","Acrobatics","Boomburst","Tailwind"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Mudsdale",info:{moves:["High Horsepower","Body Press","Rock Smash","Heavy Slam","Scary Face","Iron Defense"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tsareena",info:{moves:["High Jump Kick","Power Whip","Stomp","Trop Kick","Reflect","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Oranguru",info:{moves:["Facade","Psychic","Stored Power","Yawn","Calm Mind","Light Screen"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Passimian",info:{moves:["Reversal","Rock Smash","Facade","Gunk Shot","Taunt","Trailblaze","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Mimikyu",info:{moves:["Play Rough","Shadow Claw","Will-O-Wisp","Shadow Sneak","Light Screen","Taunt"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Greedent",info:{moves:["Body Slam","Body Press","Bullet Seed","Tail Whip","Stockpile"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Corviknight",info:{moves:["Steel Wing","Drill Peck","Taunt","Body Press","Iron Defense","Hone Claws"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Coalossal",info:{moves:["Heat Crash","Stone Edge","Incinerate","Ancient Power","Sandstorm","Tar Shot","Fire Blast"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Flapple",info:{moves:["Grav Apple","Dragon Breath","Dragon Rush","Trailblaze","Grassy Terrain","Iron Defense","Dragon Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Appletun",info:{moves:["Apple Acid","Dragon Pulse","Giga Drain","Body Press","Growth"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Toxtricity (Amped)",formName:"toxtricity",info:{moves:["Overdrive","Poison Jab","Nuzzle","Boomburst","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Toxtricity (Low Key)",formName:"toxtricity",imageAlt:"-l",info:{moves:["Overdrive","Poison Jab","Nuzzle","Boomburst","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Polteageist",info:{moves:["Shadow Ball","Mega Drain","Astonish","Will-O-Wisp","Shell Smash"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Hatterene",info:{moves:["Dazzling Gleam","Psychic","Dark Pulse","Charm","Misty Terrain","Calm Mind","Psychic Terrain"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Grimmsnarl",info:{moves:["Spirit Break","False Surrender","Scary Face","Foul Play","Light Screen","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Falinks",info:{moves:["Megahorn","Reversal","Headbutt","Brick Break","No Retreat"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Pincurchin",info:{moves:["Zing Zap","Thunder","Surf","Poison Jab","Rain Dance","Electric Terrain"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Indeedee (Male)",formName:"indeedee",info:{moves:["Psychic","Hyper Voice","Shadow Ball","Trick Room","Play Nice","Calm Mind"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Indeedee (Female)",formName:"indeedee",imageAlt:"-f",info:{moves:["Psychic","Hyper Voice","Shadow Ball","Trick Room","Play Nice","Calm Mind"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Copperajah",info:{moves:["Heavy Slam","Strength","High Horsepower","Sandstorm","Iron Defense"],specialMoves:["Curse"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Dragapult",info:{moves:["Shadow Ball","Dragon Darts","Thunderbolt","Hex","Reflect","Light Screen"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Pawmot",info:{moves:["Wild Charge","Close Combat","Nuzzle","Double Shock"],specialMoves:["Sweet Kiss"],herbs:[{name:"Sweet",chance:10.87}]}},{name:"Arboliva",info:{moves:["Energy Ball","Hyper Voice","Earth Power","Charm","Sunny Day","Growth","Leaf Storm"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Garganacl",info:{moves:["Salt Cure","Rock Slide","Hammer Arm","Sandstorm"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Armarouge",info:{moves:["Armor Cannon","Psychic","Night Shade","Will-O-Wisp","Sunny Day","Calm Mind"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Ceruledge",info:{moves:["Bitter Blade","Shadow Claw","Psycho Cut","Will-O-Wisp","Sunny Day","Swords Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Mabosstiff",info:{moves:["Crunch","Play Rough","Take Down","Swagger","Taunt"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Brambleghast",info:{moves:["Giga Drain","Shadow Ball","Power Whip","Infestation","Grassy Terrain"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Tinkaton",info:{moves:["Gigaton Hammer","Play Rough","Brutal Swing","Rock Smash","Thunder Wave"],specialMoves:["Charm","Misty Terrain"],herbs:[{name:"Sour",chance:10.87}]}},{name:"Bombirdier",info:{moves:["Rock Slide","Sucker Punch","Brave Bird","Torment","Knock Off","Feather Dance"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Palafin",info:{moves:["Liquidation","Acrobatics","Charm","Rain Dance","Bulk Up"],specialMoves:["Boomburst"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Revavroom",info:{moves:["Spin Out","Taunt","Gunk Shot","Overheat","Scary Face","Shift Gear"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Orthworm",info:{moves:["Iron Head","Earthquake","Stomping Tantrum","Wrap","Sandstorm","Coil"],herbs:[{name:"Salty",chance:10.87}]}},{name:"Glimmora",info:{moves:["Power Gem","Sludge Bomb","Mortal Spin","Ancient Power","Sandstorm","Tera Blast"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Cetitan",info:{moves:["Ice Spinner","Liquidation","Snowscape"],specialMoves:["Yawn","Entrainment"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Dondozo",info:{moves:["Order Up","Waterfall","Heavy Slam","Tickle","Rain Dance"],specialMoves:["Stockpile"],herbs:[{name:"Spicy",chance:10.87},{name:"Sweet",chance:10.87},{name:"Salty",chance:10.87},{name:"Bitter",chance:10.87},{name:"Sour",chance:10.879}]}},{name:"Tatsugiri (Curly)",formName:"tatsugiri",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Tatsugiri (Droopy)",formName:"tatsugiri",imageAlt:"-d",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Tatsugiri (Stretchy)",formName:"tatsugiri",imageAlt:"-s",info:{moves:["Water Pulse","Dragon Pulse","Rapid Spin","Counter","Chilling Water"],herbs:[{name:"Bitter",chance:10.87}]}},{name:"Annihilape",info:{moves:["Shadow Claw","Close Combat","Outrage","Leer","Taunt","Bulk Up"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Kingambit",info:{moves:["Iron Head","Night Slash","Torment","Slash","Taunt","Metal Burst"],herbs:[{name:"Spicy",chance:10.87}]}},{name:"Baxcalibur",info:{moves:["Dragon Claw","Icicle Crash","Ice Shard","Body Press","Snowscape"],herbs:[{name:"Spicy",chance:10.87}]}}],$a=[{name:"Gengar",info:{moves:["Shadow Ball","Sludge Bomb","Dazzling Gleam","Will-O-Wisp","Hypnosis"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Tauros",formName:"taurospaldea",imageAlt:"-p",info:{moves:["Close Combat","Thrash","Zen Headbutt","Raging Bull","Bulk Up"],specialMoves:["Screech"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Tauros (Fire)",formName:"taurospaldeafire",imageAlt:"-b",info:{moves:["Flare Blitz","Close Combat","Flamethrower","Headbutt","Sunny Day","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Tauros (Water)",formName:"taurospaldeawater",imageAlt:"-a",info:{moves:["Wave Crash","Close Combat","Surf","Headbutt","Rain Dance","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Gyarados",info:{moves:["Aqua Tail","Crunch","Hurricane","Ice Fang","Taunt","Dragon Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Ditto",info:{moves:["Transform"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Vaporeon",info:{moves:["Tera Blast","Surf","Hyper Voice","Rain Dance","Calm Mind"],specialMoves:["Yawn"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Jolteon",info:{moves:["Tera Blast","Thunderbolt","Shadow Ball","Thunder Wave","Electric Terrain","Calm Mind"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Flareon",info:{moves:["Tera Blast","Flare Blitz","Lava Plume","Will-O-Wisp","Sunny Day"],specialMoves:["Curse"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Dragonite",info:{moves:["Dragon Rush","Extreme Speed","Dragon Dance","Aqua Tail","Light Screen"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Espeon",info:{moves:["Tera Blast","Psychic","Psyshock","Psychic Terrain","Calm Mind"],specialMoves:["Tickle"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Umbreon",info:{moves:["Tera Blast","Dark Pulse","Foul Play","Calm Mind"],specialMoves:["Curse","Tickle"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Slowking",info:{moves:["Surf","Psyshock","Trick Room","Flamethrower","Light Screen","Rain Dance","Calm Mind"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Scizor",info:{moves:["X-Scissor","Bullet Punch","Close Combat","Iron Head","Iron Defense","Focus Energy"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Heracross",info:{moves:["Megahorn","Close Combat","Thrash","Leer","Bulk Up"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Blissey",info:{moves:["Dazzling Gleam","Hyper Voice","Sing","Light Screen","Defense Curl"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Tyranitar",info:{moves:["Stone Edge","Crunch","Screech","Rock Blast","Iron Defense"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Pelipper",info:{moves:["Hurricane","Hydro Pump","Mist","Supersonic","Rain Dance","Agility"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Gardevoir",info:{moves:["Moonblast","Psychic","Calm Mind","Thunder Wave","Misty Terrain","Psychic Terrain"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Breloom",info:{moves:["Bullet Seed","Low Sweep","Aerial Ace","Grassy Terrain"],specialMoves:["Spore"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Torkoal",info:{moves:["Lava Plume","Yawn","Clear Smog","Body Slam","Sunny Day","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Salamence",info:{moves:["Outrage","Dual Wingbeat","Flamethrower","Tera Blast","Dragon Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Staraptor",info:{moves:["Close Combat","Brave Bird"],specialMoves:["Double-Edge","Feather Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Garchomp",info:{moves:["Outrage","Earthquake","Flamethrower","Rock Slide","Swords Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Hippowdon",info:{moves:["Earthquake","Ice Fang","Yawn","Rock Slide"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Magnezone",info:{moves:["Thunder","Flash Cannon","Tri Attack","Thunder Wave","Rain Dance","Iron Defense","Electric Terrain"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Leafeon",info:{moves:["Tera Blast","Leaf Blade","Charm","Sunny Day","Swords Dance"],specialMoves:["Double Kick"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Glaceon",info:{moves:["Tera Blast","Ice Beam","Blizzard","Charm","Snowscape","Calm Mind"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Gallade",info:{moves:["Psycho Cut","Close Combat","Will-O-Wisp","Aerial Ace","Hypnosis","Psychic Terrain"],specialMoves:["Disable"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Amoonguss",info:{moves:["Energy Ball","Foul Play","Spore","Sludge Bomb","Grassy Terrain"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Haxorus",info:{moves:["Outrage","Crunch","Giga Impact","Dragon Dance"],specialMoves:["First Impression"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Hydreigon",info:{moves:["Dark Pulse","Dragon Pulse","Crunch","Taunt","Work Up","Nasty Plot"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Volcarona",info:{moves:["Bug Buzz","Flamethrower","Hurricane","Tailwind","Amnesia","Sunny Day","Light Screen","Quiver Dance"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Talonflame",info:{moves:["Brave Bird","Flare Blitz","Flamethrower","Tera Blast","Sunny Day","Swords Dance"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Dragalge",info:{moves:["Dragon Pulse","Sludge Bomb","Water Pulse","Toxic","Acid Spray","Draco Meteor"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Clawitzer",info:{moves:["Water Pulse","Dragon Pulse","Aura Sphere","Crabhammer","Rain Dance"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Sylveon",info:{moves:["Tera Blast","Hyper Voice","Moonblast","Misty Terrain","Calm Mind"],specialMoves:["Yawn"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Goodra",info:{moves:["Dragon Pulse","Surf","Sludge Bomb","Power Whip","Rain Dance"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Avalugg",info:{moves:["Icicle Crash","Heavy Slam","Snowscape","Ice Spinner","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Lycanroc",imageAlt:"-d",info:{moves:["Accelerock","Rock Slide","Crunch","Taunt","Sandstorm"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Toxapex",info:{moves:["Water Pulse","Liquidation","Poison Jab","Pin Missile","Chilling Water","Toxic"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Mimikyu",info:{moves:["Play Rough","Shadow Claw","Shadow Sneak","Wood Hammer","Misty Terrain","Swords Dance"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Corviknight",info:{moves:["Iron Head","Drill Peck","Body Press","Hone Claws","Tailwind"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Pincurchin",info:{moves:["Zing Zap","Thunder","Surf","Poison Jab","Thunder Wave","Electric Terrain"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Frosmoth",info:{moves:["Blizzard","Bug Buzz","Hurricane","Snowscape"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Dragapult",info:{moves:["Shadow Ball","Dragon Pulse","Thunderbolt","Flamethrower","Reflect","Light Screen"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Pawmot",info:{moves:["Wild Charge","Close Combat","Double Shock","Nuzzle","Electric Terrain"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Maushold",imageAlt:"-f",info:{moves:["Play Rough","Take Down","Low Kick","Charm","Tidy Up"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Dachsbun",info:{moves:["Play Rough","Double-Edge","Bite","Baby-Doll Eyes"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Garganacl",info:{moves:["Stone Edge","Heavy Slam","Salt Cure","Hammer Arm","Sandstorm","Rock Slide"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Armarouge",info:{moves:["Armor Cannon","Psychic","Night Shade","Will-O-Wisp","Calm Mind","Sunny Day"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Ceruledge",info:{moves:["Bitter Blade","Shadow Claw","Psycho Cut","Will-O-Wisp","Sunny Day"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Kilowattrel",info:{moves:["Hurricane","Thunder","Uproar","Scary Face"],specialMoves:["Charge","Rain Dance"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Mabosstiff",info:{moves:["Crunch","Reversal","Outrage","Take Down","Taunt"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Grafaiai",info:{moves:["Knock Off","Gunk Shot","Take Down","Flatter"],specialMoves:["Toxic"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Toedscruel",info:{moves:["Energy Ball","Earth Power","Spore","Hex","Grassy Terrain"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Klawf",info:{moves:["Stone Edge","Rock Smash","X-Scissor","Sandstorm","Knock Off","Iron Defense"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Tinkaton",info:{moves:["Gigaton Hammer","Play Rough","Knock Off","Thunder Wave","Sweet Kiss"],specialMoves:["Misty Terrain"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Bombirdier",info:{moves:["Rock Slide","Acrobatics","Knock Off","Feather Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Revavroom",info:{moves:["Gunk Shot","Overheat","Iron Head","Taunt","Scary Face","Shift Gear"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Cyclizar",info:{moves:["Double-Edge","Dragon Claw","Dragon Pulse","Knock Off","Shift Gear"],herbs:[{name:"Sweet",chance:13.64}]}},{name:"Orthworm",info:{moves:["Iron Head","Earthquake","Smack Down","Sandstorm","Coil"],herbs:[{name:"Salty",chance:13.64}]}},{name:"Glimmora",info:{moves:["Power Gem","Sludge Wave","Hyper Beam","Rock Polish","Sandstorm"],herbs:[{name:"Bitter",chance:13.64}]}},{name:"Cetitan",info:{moves:["Ice Spinner","Body Slam","Snowscape","Stomping Tantrum"],specialMoves:["Yawn"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Dondozo",info:{moves:["Wave Crash","Order Up","Heavy Slam","Yawn","Rain Dance","Curse"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Annihilape",info:{moves:["Close Combat","Shadow Claw","Assurance","Focus Energy","Bulk Up","Rage Fist"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Clodsire",info:{moves:["Earthquake","Poison Jab","Megahorn","Yawn"],herbs:[{name:"Sour",chance:13.64}]}},{name:"Farigiraf",info:{moves:["Twin Beam","Hyper Voice","Low Kick","Agility"],specialMoves:["Uproar"],herbs:[{name:"Spicy",chance:13.64},{name:"Sweet",chance:13.64},{name:"Salty",chance:13.64},{name:"Bitter",chance:13.64},{name:"Sour",chance:13.64}]}},{name:"Kingambit",info:{moves:["Iron Head","Night Slash","Kowtow Cleave","Thunder Wave","Swords Dance"],herbs:[{name:"Spicy",chance:13.64}]}},{name:"Baxcalibur",info:{moves:["Snowscape","Body Press"],specialMoves:["Icicle Spear","Dragon Rush"],herbs:[{name:"Spicy",chance:13.64}]}}];let lL=(()=>{class e{constructor(n,r){this.stateService=n,this.graphqlService=r,this.pokemonList=document.getElementById("pokemonList")}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.populatePokemonList(n)})}ngAfterViewInit(){this.pokemonList=document.getElementById("pokemonList")}populatePokemonList(n){this.pokemonList&&(this.resetPokemonList(),("5"==n?Ua:$a).sort((i,o)=>i.name.localeCompare(o.name)).forEach(i=>{const o=document.createElement("option");o.value=i.name,o.text=i.name,i.formName&&(o.id=i.formName),this.pokemonList.add(o)}))}resetPokemonList(){this.pokemonList.innerHTML="",this.pokemonList.innerHTML=''}valueChanged(){const n=document.getElementById("pokemonList"),i=n.options[n.selectedIndex],o=i.id;ur(),i.value&&(this.graphqlService.getPokemon(o||i.value.toLowerCase()),this.stateService.changePokemon(i.value),document.getElementById("pokemonContent").style.display="none",this.stateService.changeLoading(!0))}}return e.\u0275fac=function(n){return new(n||e)(k(gt),k(cr))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-list"]],decls:3,vars:0,consts:[["id","pokemonList",3,"change"],["value",""]],template:function(n,r){1&n&&(ge(0,"select",0),qr("change",function(){return r.valueChanged()}),ge(1,"option",1),We(2,"-- Pokemon --"),xe()())},encapsulation:2}),e})(),fL=(()=>{class e{constructor(n){this.stateService=n}ngOnInit(){md.forEach(n=>{const r=document.createElement("option");r.value=n.name,r.text=n.name,document.getElementById("teraList").add(r)})}valueChanged(){const n=document.getElementById("teraList");this.stateService.changeTeraType(n.options[n.selectedIndex].value)}}return e.\u0275fac=function(n){return new(n||e)(k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-tera-type"]],decls:3,vars:0,consts:[["id","teraList",3,"change"],["value",""]],template:function(n,r){1&n&&(ge(0,"select",0),qr("change",function(){return r.valueChanged()}),ge(1,"option",1),We(2,"-- Tera Type --"),xe()())},encapsulation:2}),e})(),dL=(()=>{class e{constructor(n){this.stateService=n,this.raidTier="",this.pokemonList="",this.teraType=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n}),this.stateService.teraType.subscribe(n=>{this.teraType=n})}shareRaid(){let n=location.origin+"/tera-raid-info/";n+=this.raidTier,n+="/"+this.pokemonList,n+="/"+this.teraType,navigator.clipboard.writeText(n),document.getElementById("shareText").innerText="Copied to Clipboard"}shareRaidMouseOut(){document.getElementById("shareText").innerText="Share Raid"}}return e.\u0275fac=function(n){return new(n||e)(k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-share-raid"]],decls:3,vars:0,consts:[["id","shareRaid",1,"share",3,"click","mouseout"],["id","shareText",1,"shareText"]],template:function(n,r){1&n&&(ge(0,"div",0),qr("click",function(){return r.shareRaid()})("mouseout",function(){return r.shareRaidMouseOut()}),ge(1,"div",1),We(2,"Share Raid"),xe()())},encapsulation:2}),e})(),hL=(()=>{class e{constructor(n,r){this.grapghqlService=n,this.stateService=r,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setImages()})}setImages(){this.pokemonList&&this.grapghqlService.getDexNumber().subscribe(n=>{let i="";("5"==this.raidTier?Ua:$a).filter(o=>o.name==this.pokemonList).forEach(o=>{o.imageAlt&&(i=o.imageAlt)}),et(document.getElementById("pokemonImageNormal"),`Normal`),et(document.getElementById("pokemonImageShiny"),`Shiny`)})}}return e.\u0275fac=function(n){return new(n||e)(k(cr),k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-images"]],decls:2,vars:0,consts:[["id","pokemonImageNormal",1,"imgNormal"],["id","pokemonImageShiny",1,"imgShiny"]],template:function(n,r){1&n&&at(0,"div",0)(1,"div",1)},encapsulation:2}),e})(),pL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r,this.pokemonList=""}ngOnInit(){this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setTypes()})}setTypes(){this.pokemonList&&this.graphqlService.getTypes().subscribe(n=>{n.forEach(r=>{et(document.getElementById("pokemonTypes"),this.createTypeDisplay(r.name))})})}createTypeDisplay(n){return`
${n}
`}}return e.\u0275fac=function(n){return new(n||e)(k(cr),k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-types"]],decls:1,vars:0,consts:[["id","pokemonTypes"]],template:function(n,r){1&n&&at(0,"div",0)},encapsulation:2}),e})(),mL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r}ngOnInit(){this.stateService.pokemonList.subscribe(n=>{n&&this.setStats()})}setStats(){this.graphqlService.getStats().subscribe(n=>{et(document.getElementById("pokemonStatsWrapper"),this.createStatsDisplay(n))})}createStatsDisplay(n){let r='

Base Stats

';return r+=`

HP

${n.hp}

`,r+=`

Atk

${n.attack}

`,r+=`

Def

${n.defense}

`,r+=`

Sp.Atk

${n.specialattack}

`,r+=`

Sp.Def

${n.specialdefense}

`,r+=`

Spd

${n.speed}

`,r}}return e.\u0275fac=function(n){return new(n||e)(k(cr),k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-stats"]],decls:1,vars:0,consts:[["id","pokemonStatsWrapper"]],template:function(n,r){1&n&&at(0,"div",0)},encapsulation:2}),e})(),gL=(()=>{class e{constructor(n,r){this.graphqlService=n,this.stateService=r,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setAbilities()})}setAbilities(){if(this.pokemonList){const n=document.getElementById("pokemonAbility");this.graphqlService.getAbilities().subscribe(r=>{et(n,"

Ability:

"),et(n,this.createAbilityDiv(r.first)),r.second&&et(n,this.createAbilityDiv(r.second)),this.canShowHidden()&&r.hidden&&et(n,this.createAbilityDiv(r.hidden,!0))})}}createAbilityDiv(n,r){return`
${n.name}${r?" (H)":""}
`}canShowHidden(){return"6"==this.raidTier||"5"==this.raidTier&&"Ditto"==this.pokemonList}}return e.\u0275fac=function(n){return new(n||e)(k(cr),k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-ability"]],decls:1,vars:0,consts:[["id","pokemonAbility"]],template:function(n,r){1&n&&at(0,"div",0)},encapsulation:2}),e})(),yL=(()=>{class e{constructor(n,r,i){this.stateService=n,this.typeCalcService=r,this.graphqlService=i,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setMoves()})}setMoves(){const n=document.getElementById("pokemonMoves"),r="5"==this.raidTier?Ua:$a,i=[],o=[];let s=[];this.pokemonList&&(r.filter(a=>a.name==this.pokemonList).forEach(a=>{a.info.specialMoves&&a.info.specialMoves.sort((c,u)=>c.localeCompare(u)).forEach(c=>{this.graphqlService.getMove(c.toLowerCase().replaceAll(" ","").replaceAll("-","")).subscribe(u=>{i.push(u.getMove)})})}),this.graphqlService.getMoves().subscribe(a=>{et(n,"

Moves:

"),r.filter(f=>f.name==this.pokemonList).forEach(f=>{f.info.moves.sort((d,h)=>d.localeCompare(h)).forEach(d=>{a.generation8.dreamworldMoves&&a.generation8.dreamworldMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.eggMoves&&a.generation8.eggMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.eventMoves&&a.generation8.eventMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.levelUpMoves&&a.generation8.levelUpMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.tmMoves&&a.generation8.tmMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.tutorMoves&&a.generation8.tutorMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)}),a.generation8.virtualTransferMoves&&a.generation8.virtualTransferMoves.filter(h=>h.move.name==d).forEach(h=>{i.push(h.move)})})}),[...new Map(i.map(f=>[f.key,f])).values()].sort((f,d)=>f.name.localeCompare(d.name)).sort((f,d)=>"Status"!=f.category&&"Status"==d.category?-1:1).forEach(f=>{const d=this.createMoveDiv(f);et(document.getElementById("pokemonMoves"),d),o.push(d),"Status"!=f.category&&s.push(f.type)}),this.stateService.changeMoveList(o.join("")),s=[...new Set(s)];let u=[];s.forEach(f=>{const d=this.typeCalcService.advantages(f);u=u.concat(d)});const l=[];u=[...new Map(u.map(f=>[f.name,f])).values()],u.sort((f,d)=>f.name.localeCompare(d.name)).forEach(f=>{l.push(yd(f))}),l.length&&et(document.getElementById("pokemonTypeAdvantages"),"

Type Advantages:

"+l.join(""))}))}createMoveDiv(n){let r=`
${n.name}`;if(r+='
',r+=`
${n.category.toString()}
`,r+=`
Pwr: ${"0"==n.basePower?"--":n.basePower}
`,r+=`
PP: ${n.pp}
`,r+=`
Acc: ${n.accuracy}
`,r+=`
${"No additional effect."==n.desc?n.shortDesc:n.desc}
`,"Status"!=n.category){const i=this.typeCalcService.advantages(n.type.toString()),o=[];i.forEach(s=>{2==s.multiplier&&o.push(`${Ha(s.name)}`)}),o.length&&(r+=`
Advantages: ${o.join(", ")}
`)}return r+="
",r}}return e.\u0275fac=function(n){return new(n||e)(k(gt),k(gd),k(cr))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-moves"]],decls:1,vars:0,consts:[["id","pokemonMoves",1,"pokemonMoves"]],template:function(n,r){1&n&&at(0,"div",0)},encapsulation:2}),e})(),vL=(()=>{class e{constructor(n){this.stateService=n,this.raidTier="",this.pokemonList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.setHerbs()})}setHerbs(){this.pokemonList&&(et(document.getElementById("pokemonHerbs"),"

Herbs Dropped:

"),("5"==this.raidTier?Ua:$a).filter(r=>r.name==this.pokemonList).forEach(r=>{r.info.herbs.sort((i,o)=>i.name.localeCompare(o.name)).forEach(i=>{et(document.getElementById("pokemonHerbs"),this.createHerbDiv(i))})}))}createHerbDiv(n){return`
${n.name} - ${n.chance}%
`}}return e.\u0275fac=function(n){return new(n||e)(k(gt))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-herbs"]],decls:1,vars:0,consts:[[1,"pokemonHerbs"]],template:function(n,r){1&n&&at(0,"div",0)},encapsulation:2}),e})(),DL=(()=>{class e{constructor(n,r){this.stateService=n,this.typeCalcService=r,this.raidTier="",this.pokemonList="",this.teraType="",this.moveList=""}ngOnInit(){this.stateService.raidTier.subscribe(n=>{this.raidTier=n}),this.stateService.pokemonList.subscribe(n=>{this.pokemonList=n,this.handleChange()}),this.stateService.teraType.subscribe(n=>{this.teraType=n,this.handleChange()}),this.stateService.moveList.subscribe(n=>{this.moveList=n,this.handleChange()})}handleChange(){this.pokemonList&&(ur("pokemonTeraAdvantages"),ur("pokemonTeraWeaknesses"),this.pokemonList&&(this.raidTier&&this.teraType&&this.setTypeWeaknesses(),this.moveList&&this.teraType&&this.moveList.includes("Tera Blast")&&this.setTeraTypeAdvantages()),this.teraType?(this.pokemonList&&this.raidTier&&this.setTypeWeaknesses(),this.moveList.includes("Tera Blast")&&this.setTeraTypeAdvantages()):(ur("pokemonTeraAdvantages"),ur("pokemonTeraWeaknesses")),this.stateService.changeLoading(!1))}setTeraTypeAdvantages(){ur("pokemonTeraAdvantages");const n=[];this.typeCalcService.advantages(this.teraType).forEach(i=>{n.push(yd(i))}),n.length&&et(document.getElementById("pokemonTeraAdvantages"),"

Tera Advantages:

"+n.join(""))}setTypeWeaknesses(){ur("pokemonTeraWeaknesses");const n=[];this.typeCalcService.weaknesses(this.teraType).forEach(i=>{n.push(yd(i))}),n.length&&et(document.getElementById("pokemonTeraWeaknesses"),"

Tera Weaknesses:

"+n.join(""))}}return e.\u0275fac=function(n){return new(n||e)(k(gt),k(gd))},e.\u0275cmp=lt({type:e,selectors:[["app-pokemon-type-matchups"]],decls:3,vars:0,consts:[["id","pokemonTypeAdvantages",1,"pokemonTypeMatchups"],["id","pokemonTeraWeaknesses",1,"pokemonTypeMatchups"],["id","pokemonTeraAdvantages",1,"pokemonTypeMatchups"]],template:function(n,r){1&n&&at(0,"div",0)(1,"div",1)(2,"div",2)},encapsulation:2}),e})(),bL=(()=>{class e{constructor(n){this.stateService=n,this.title="Tera Raid Info"}ngOnInit(){this.stateService.loading.subscribe(n=>{document.getElementById("dataLoading").hidden=!n,0==n&&(document.getElementById("pokemonContent").style.display="")})}ngAfterViewInit(){document.getElementById("dataLoading").hidden=!0,this.deleteCache(),this.autoPopulateSelections()}autoPopulateSelections(n,r){const i=n||window.location.href,o=r||window.location.origin;if(i.replace(o+"/tera-raid-info/","")){const s=i.replace(o+"/tera-raid-info/","").split("/"),a=new Event("change");if(Number(s[0])){const c=document.getElementById("raidTier");c.value=s[0],c.dispatchEvent(a)}if(s[1]){let c=Ha(s[1].replaceAll("%20"," ").toLowerCase());const u=c.match(/(\(.*\))/);if(u){const f=u[0].split(" ");for(let d=0;d{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Cn({type:e,bootstrap:[bL]}),e.\u0275inj=nn({providers:[gt,cr,gd],imports:[KN,sL,rL]}),e})();QN().bootstrapModule(EL).catch(e=>console.error(e))}},fe=>{fe(fe.s=588)}]); \ No newline at end of file