1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4740],{44:(e,t,r)=>{r.d(t,{b:()=>o});let i=()=>Object.create(null),{forEach:n,slice:s}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class o{constructor(e=!0,t=i){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return n.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(s.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,i=e.length;t&&r<i;++r){let i=t.mapFor(e[r],!1);t=i&&i.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],i=this.mapFor(r,!1),n=i&&i.get(r);n&&(t=n.removeArray(s.call(e,1)),n.data||n.weak||n.strong&&n.strong.size||i.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new o(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},3462:(e,t,r)=>{r.d(t,{V1:()=>h,vA:()=>d});var i=r(24108),n=r(9201),s=r(97410),a=r(31623);let o="Invariant Violation";class l extends Error{constructor(e=o){super(e),this.name=o,Object.setPrototypeOf(this,l.prototype)}}let u=["debug","log","warn","error","silent"],c=u.indexOf(i.g?"log":"silent");function h(e,...t){if(!e)throw d(...t)}function f(e){return function(t,...r){if(u.indexOf(e)>=c){let i=console[e]||console.log;if("number"==typeof t){let e=t;(t=m(e))||(t=v(e,r),r=[])}i(t,...r)}}}function d(e,...t){return new l(m(e,t)||v(e,t))}h.debug=f("debug"),h.log=f("log"),h.warn=f("warn"),h.error=f("error");let p=Symbol.for("ApolloErrorMessageHandler_"+s.r);function y(e){if("string"==typeof e)return e;try{return(0,a.p)(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function m(e,t=[]){if(e)return n.A[p]&&n.A[p](e,t.map(y))}function v(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,y(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:s.r,message:e,args:t.map(y)}))}`}},3800:(e,t,r)=>{r.d(t,{M:()=>n});var i=r(3462);function n({directives:e},t){return!e||!e.length||(function(e){let t=[];return e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let r=e.arguments,n=e.name.value;(0,i.V1)(r&&1===r.length,16,n);let s=r[0];(0,i.V1)(s.name&&"if"===s.name.value,17,n);let a=s.value;(0,i.V1)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),18,n),t.push({directive:e,ifArgument:s})}),t})(e).every(({directive:e,ifArgument:r})=>{let n=!1;return"Variable"===r.value.kind?(n=t&&t[r.value.name.value],(0,i.V1)(void 0!==n,15,e.name.value)):n=r.value.value,"skip"===e.name.value?!n:n})}},4478:(e,t,r)=>{r.d(t,{R:()=>e1});var i,n=r(35570),s=r(63704),a=r(52511),o=r(3462);class l{isIncrementalResult(e){return!1}prepareRequest(e){return(0,o.V1)(!(0,a.d)(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0}let u=r(22443).C.execute;var c=r(68432),h=r(24108),f=r(64805),d=r(51777),p=r(73820),y=r(20824),m=r(28390),v=r(50424);function b(e){return(0,v.YR)(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}var g=r(97210),w=r(97410),S=r(44),O=r(11619),k=r(19837),E=r(39097);function T(e,t){var r=(0,E.T)(e)?e:function(){return e},i=function(e){return e.error(r())};return new k.c(t?function(e){return t.schedule(i,0,e)}:i)}var _=r(8286),x=r(96948);function C(e,t,r,i,n){void 0===i&&(i=0),void 0===n&&(n=!1);var s=t.schedule(function(){r(),n?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!n)return s}var N=r(28400);function I(e,t,r){return(void 0===r&&(r=1/0),(0,E.T)(t))?I(function(r,i){return(0,s.T)(function(e,n){return t(r,e,i,n)})((0,_.Tg)(e(r,i)))},r):("number"==typeof t&&(r=t),(0,x.N)(function(t,i){var n,s,a,o,l,u,c,h,f;return n=r,a=[],o=0,l=0,u=!1,c=function(){!u||a.length||o||i.complete()},h=function(e){return o<n?f(e):a.push(e)},f=function(t){o++;var r=!1;(0,_.Tg)(e(t,l++)).subscribe((0,N._)(i,function(e){s?h(e):i.next(e)},function(){r=!0},void 0,function(){if(r)try{for(o--;a.length&&o<n;)!function(){var e=a.shift();f(e)}();c()}catch(e){i.error(e)}}))},t.subscribe((0,N._)(i,h,function(){u=!0,c()})),function(){}}))}function D(e,t){return void 0===t&&(t=0),(0,x.N)(function(r,i){r.subscribe((0,N._)(i,function(r){return C(i,e,function(){return i.next(r)},t)},function(){return C(i,e,function(){return i.complete()},t)},function(r){return C(i,e,function(){return i.error(r)},t)}
1))})}function F(e,t){return void 0===t&&(t=0),(0,x.N)(function(r,i){i.add(e.schedule(function(){return r.subscribe(i)},t))})}var A=r(69899);function R(e,t){if(!e)throw Error("Iterable cannot be null");return new k.c(function(r){C(r,t,function(){var i=e[Symbol.asyncIterator]();C(r,t,function(){i.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}var M=r(99455),j=r(73694),V=r(82241),P=r(45907),q=r(74073),L=r(50933),z=r(31590);function Q(e,t){return t?function(e,t){if(null!=e){if((0,M.l)(e))return(0,_.Tg)(e).pipe(F(t),D(t));if((0,V.X)(e))return new k.c(function(r){var i=0;return t.schedule(function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||this.schedule())})});if((0,j.y)(e))return(0,_.Tg)(e).pipe(F(t),D(t));if((0,q.T)(e))return R(e,t);if((0,P.x)(e))return new k.c(function(r){var i;return C(r,t,function(){i=e[A.l](),C(r,t,function(){var e,t,n;try{t=(e=i.next()).value,n=e.done}catch(e){r.error(e);return}n?r.complete():r.next(t)},0,!0)}),function(){return(0,E.T)(null==i?void 0:i.return)&&i.return()}});if((0,z.U)(e))return R((0,z.C)(e),t)}throw(0,L.L)(e)}(e,t):(0,_.Tg)(e)}var U=(0,r(10899).L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}),W=r(89526);function B(e){return(0,W.m)(e[e.length-1])?e.pop():void 0}function $(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=B(e);return Q(e,r)}function Y(e){return(0,x.N)(function(t,r){var i,n=null,s=!1;n=t.subscribe((0,N._)(r,void 0,void 0,function(a){i=(0,_.Tg)(e(a,Y(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):s=!0})),s&&(n.unsubscribe(),n=null,i.subscribe(r))})}function J(e,t){return(0,x.N)(function(r,i){var n=0;r.subscribe((0,N._)(i,function(r){return e.call(t,r,n++)&&i.next(r)}))})}var H=r(77241),G=r(34098),K=r(31536),X=r(47211);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(i||(i={}));var Z=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,i,n,s=e.kind,a=e.value,o=e.error;if("string"!=typeof s)throw TypeError('Invalid notification, missing "kind"');"N"===s?null==(r=t.next)||r.call(t,a):"E"===s?null==(i=t.error)||i.call(t,o):null==(n=t.complete)||n.call(t)}(this,e)},e.prototype.do=function(e,t,r){var i=this.kind,n=this.value,s=this.error;return"N"===i?null==e?void 0:e(n):"E"===i?null==t?void 0:t(s):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return(0,E.T)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,i="N"===e?$(t):"E"===e?T(function(){return r}):"C"===e?X.w:0;if(!i)throw TypeError("Unexpected notification kind "+e);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}(),ee=r(77163);function et(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return I(ee.D,1)(Q(e,B(e)))}var er=r(29279),ei=r(10496),en=r(91647);function es(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}
1class ea extends Error{static is(e){return(0,en.t)(e,"CombinedGraphQLErrors")}static formatMessage=es;errors;data;extensions;constructor(e,t=e.errors||[]){super(ea.formatMessage(t,{result:e,defaultFormatMessage:es})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",(0,en.w)(this),Object.setPrototypeOf(this,ea.prototype)}}var eo=r(9334);let el=new WeakSet;var eu=r(50339),ec=r(85935),eh=r(70333),ef=r(19711),ed=r(38750),ep=r(79312);function ey(e,t,r){return ep.y.withValue(!0,()=>{let i=function e(t,r,i,n,s){let{knownChanged:a}=i,l=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,i.mutableTargets);if(Array.isArray(t)){for(let[o,u]of Array.from(t.entries())){if(null===u){l[o]=null;continue}let t=e(u,r,i,n,h.g?`${s||""}[${o}]`:void 0);a.has(t)&&a.add(l),l[o]=t}return a.has(l)?l:t}for(let u of r.selections){let r;if(n&&a.add(l),u.kind===O.b.FIELD){let c=(0,ed.u)(u),f=u.selectionSet;if(void 0===(r=l[c]||t[c]))continue;if(f&&null!==r){let o=e(t[c],f,i,n,h.g?`${s||""}.${c}`:void 0);a.has(o)&&(r=o)}h.g||(l[c]=r),h.g&&(n&&"__typename"!==c&&!Object.getOwnPropertyDescriptor(l,c)?.value?Object.defineProperty(l,c,function(e,t,r,i,n){let s=()=>(ep.y.getValue()||(h.g&&o.V1.warn(40,i?`${n} '${i}'`:`anonymous ${n}`,`${r}.${e}`.replace(/^\./,"")),s=()=>t),t);return{get:()=>s(),set(e){s=()=>e},enumerable:!0,configurable:!0}}(c,r,s||"",i.operationName,i.operationType)):(delete l[c],l[c]=r))}if(u.kind===O.b.INLINE_FRAGMENT&&(!u.typeCondition||i.cache.fragmentMatches(u,t.__typename))&&(r=e(t,u.selectionSet,i,n,s)),u.kind===O.b.FRAGMENT_SPREAD){let n=u.name.value,a=i.fragmentMap[n]||(i.fragmentMap[n]=i.cache.lookupFragment(n));(0,o.V1)(a,39,n);let l=(0,ep.s)(u);"mask"!==l&&(r=e(t,a.selectionSet,i,"migrate"===l,s))}a.has(r)&&a.add(l)}return"__typename"in t&&!("__typename"in l)&&(l.__typename=t.__typename),Object.keys(l).length!==Object.keys(t).length&&a.add(l),a.has(l)?l:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,ef.G)(i),i})}var em=r(88924),ev=r(12477),eb=r(74742);function eg(e){return 7===e||8===e}function ew(e){return!!e.errors?.length}function eS(e,t=()=>void 0){return r=>new k.c(i=>{let n=t();return r.subscribe({next(t){let r;try{r=e(t,n)}catch(e){i.error(e)}void 0!==r&&i.next(r)},error(e){i.error(e)},complete(){i.complete()}})})}function eO(e){let t={data:e.data};return e.error&&(t.error=e.error),t}var ek=r(56312),eE=r(9760),eT=r(66628),e_=r(32380);function ex(e){let t=new Map;return function(r=e){let i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}var eC=r(10148),eN=r(72292),eI=r(19616),eD=r(49167),eF=r(24982),eA=r(71450),eR=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,eA.C6)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(K.B),eM=r(73044),ej=r(87842),eV=r(10433);let{assign:eP,hasOwnProperty:eq}=Object,eL={loading:!0,networkStatus:eF.p.loading,data:void 0,dataState:"empty",partial:!0},ez={loading:!1,networkStatus:eF.p.ready,data:void 0,dataState:"empty",partial:!0};class eQ{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);
1let{watchQuery:{fetchPolicy:i="cache-first"}={}}=e.defaultOptions,{fetchPolicy:n=i,initialFetchPolicy:s="standby"===n?i:n}=t;t[eI._K]&&((0,o.V1)("standby"===n,82),this.variablesUnknown=!0),this.lastQuery=r,this.options={...t,initialFetchPolicy:s,fetchPolicy:n,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let a=(0,eu.V)(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new eR({query:this.query,variables:this.variables,result:eL,meta:{}});let e=this.subject.pipe((0,er.M)({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),eS(({query:e,variables:t,result:r,meta:i},n)=>{let{shouldEmit:s}=i;if(r===eL&&(n.previous=void 0,n.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===s)return;if(1===s)return l();let{previous:a,previousVariables:o}=n;if(a){let i=this.queryManager.getDocumentInfo(e),n=this.queryManager.dataMasking,s=n?i.nonReactiveQuery:e;if((n||i.hasNonreactiveDirective?(0,eM.a)(s,a,r,t):(0,em.L)(a,r))&&(0,em.L)(o,t))return}if(!(3===s&&(!this.options.notifyOnNetworkStatusChange||(0,em.L)(a,r))))return l();function l(){return n.previous=r,n.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new K.B,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&("network-only"===t||"cache-and-network"===t)&&(t="cache-first");let r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?eF.p.ready:eF.p.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:eF.p.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:eF.p.loading};case"standby":return ez;default:return eL}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,i="standby"===t||"no-cache"===t||this.waitForNetworkResult,n=!eU({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||n)&&this.unsubscribeFromCache?.(),i||!n)return;let s={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);if((t.hasClientExports||t.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===e)return;let{result:i}=this.subject.getValue();(e.complete||!i.error&&i!==eL&&i!==ez)&&((0,em.L)(i.data,e.result)||this.scheduleNotify())}},a=this.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===eF.p.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===eL&&(t=this.getInitialResult()),(0,em.L)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",h.g&&e&&eq.call(e,"variables")){let t=(0,ej.A)(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!h.g||o.V1.warn(83,e,t.name?.value||t)}return e&&!(0,em.L)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:eF.p.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:i,updateQuery:n}){(0,o.V1)("cache-only"!==this.options.fetchPolicy,84,(0,d.n)(this.query,"(anonymous)"));let s={...(0,p.o)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:i}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};s.query=this.transformDocument(s.query),this.lastQuery=e?this.transformDocument(this.options.query):s.query;let a=!1,l="no-cache"!==this.options.fetchPolicy;l||(0,o.V1)(n,85);let{finalize:u,pushNotification:c}=this.pushOperation(eF.p.fetchMore);c({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:h,operator:f}=eW(),{observable:y}=this.queryManager.fetchObservableWithInfo(s,{networkStatus:eF.p.fetchMore,exposeExtensions:!0}),m=y.pipe(f,J(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{a=!1;let t=e.value,r=t[eI.X];if(eg(e.value.networkStatus)&&u(),l){let e=this.getCacheDiff();this.cache.batch({update:e=>{n?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:r},e=>n(e,{fetchMoreResult:t.data,variables:s.variables})):e.writeQuery({query:s.query,variables:s.variables,data:t.data,extensions:r})},onWatchUpdated:(r,i)=>{if(r.watcher===this&&!(0,em.L)(i.result,e.result)){a=!0;let e=this.getCurrentResult();eg(t.networkStatus)||c({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===eF.p.error?eF.p.ready:t.networkStatus,loading:!1,data:i.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{let e=this.getCurrentResult(),r=n(e.data,{fetchMoreResult:t.data,variables:s.variables});c({kind:"N",value:{...e,networkStatus:eF.p.ready,loading:!1,data:r,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return(0,eV.X)(h.then(e=>eO(this.maskResult(e))).finally(()=>
1{if(m.unsubscribe(),u(),l&&!a){let e=this.getCurrentResult();"streaming"===e.dataState?c({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:eF.p.ready}}):c({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:i}=e,{error:n}=t;if(n)return void(i?i(n):o.V1.error(86,n));r&&this.updateQuery((e,i)=>r(e,{subscriptionData:t,...i}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,p.o)(this.options,e||{});eP(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,em.L)(this.variables,e))?eO(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:eF.p.setVariables}):eO(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),n=e(r,{variables:this.variables,complete:!!i,previousData:r});n&&(this.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):"variables-changed"===e?t.fetchPolicy=i:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,i){let n=this.options.fetchPolicy;e.context??={};let s=!1,a=e=>new k.c(r=>{try{return e.subscribe({next(e){s=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{s||(h.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:c,meta:{shouldEmit:3,fetchPolicy:n}}))}}),{observable:o,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{s=!0},fetchQueryOperator:a,observableQuery:this}),{query:u,variables:c}=this,h={abort:()=>{d.unsubscribe()},query:u,variables:c};this.activeOperations.add(h);let f=t==eF.p.refetch||t==eF.p.setVariables,d=(o=o.pipe(i,(0,H.u)())).pipe((0,er.M)({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?h.override=t:delete h.override},finalize:()=>this.activeOperations.delete(h)})).subscribe({next:e=>{let t={};f&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(f=!1,t.shouldEmit=1),this.input.next({...e,query:u,variables:c,meta:t})}});return{fromLink:l,subscription:d,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this,i=()=>{let{options:e}=this;return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(i()){h.g&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(h.g&&o.V1.warn(87,(0,d.n)(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let n=()=>{if(i())return this.cancelPolling();this.pollingInfo&&(!eg(this.networkStatus)||this.options.skipPollAttempt?.()?s():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:eF.p.poll}).then(s,s))},s=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};s()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:r}=t||{};this.queryManager.obsQueries.add(this);let i=r===eF.p.refetch||r===eF.p.poll,n=this.variables,s=this.options.fetchPolicy,a=(0,p.o)(this.options,e||{});this.variablesUnknown&&="standby"===a.fetchPolicy;
1let o=i?a:eP(this.options,a),l=this.transformDocument(o.query);this.lastQuery=l,e&&"variables"in e&&(o.variables=this.getVariablesWithDefaults(e.variables)),!i&&(this.updatePolling(),e&&e.variables&&!(0,em.L)(e.variables,n)&&"standby"!==o.fetchPolicy&&(o.fetchPolicy===s||"function"==typeof o.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",o),void 0===r&&(r=eF.p.setVariables)));let u=this.networkStatus;r||(r=eF.p.loading,u!==eF.p.loading&&e?.variables&&!(0,em.L)(e.variables,n)&&(r=eF.p.setVariables),"standby"===o.fetchPolicy&&(r=eF.p.ready)),"standby"===o.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:c,operator:h}=eW("standby"===o.fetchPolicy?{data:void 0}:void 0),{subscription:f,observable:d,fromLink:y}=this.fetch(o,r,l,h);i||!y&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=f);let m=Object.assign((0,eV.X)(c.then(e=>eO(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=d.subscribe({}),t=()=>e.unsubscribe();return c.then(t,t),m}});return m}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();(0,em.L)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:eF.p.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:i}=this,n=()=>{this.activeOperations.delete(s)},s={override:e,abort:()=>{t=!0,n()},query:r,variables:i};return this.activeOperations.add(s),{finalize:n,pushNotification:(e,n)=>{t||this.input.next({...e,query:r,variables:i,meta:{...n}})}}}calculateNetworkStatus(e){if(e===eF.p.streaming)return e;let t=Array.from(this.activeOperations.values()).reverse().find(e=>eU(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?ez:eL,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=eS(e=>{let t,{query:r,variables:i,meta:n}=e;if("setResult"===e.source)return{query:r,variables:i,result:e.value,meta:n};if("C"===e.kind||!eU(e,this))return;let s=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===eF.p.ready&&t.partial&&(!this.options.returnPartialData||s.result.networkStatus===eF.p.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...eU(s,e)?s.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:eF.p.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(n.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=eU(s,e)?s.result:this.getInitialResult(n.fetchPolicy),{resetError:i}=e.value,a=i?void 0:r.error,o=a?eF.p.error:eF.p.ready;t={...r,error:a,networkStatus:o}}return(0,o.V1)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=!eg(t.networkStatus),t=this.maskResult(t),void 0!==s.result.data&&t.data!==s.result.data&&(0,em.L)(t.data,s.result.data)&&(t.data=s.result.data),{query:r,variables:i,result:t,meta:n}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,i):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function eU(e,t){return!!(e&&t&&e.query===t.query&&(0,em.L)(e.variables,t.variables))}function eW(e){let t=e,r,i;return{promise:new Promise((e,t)=>
1{r=e,i=t}),operator:(0,er.M)({next(e){if("E"===e.kind)return i(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(t=e.value)},finalize:()=>{if(t)r(t);else{let e="The operation was aborted.",t="AbortError";i("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}}let eB={},e$=new WeakMap;function eY(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return e$.set(e,(e$.get(e)+1)%1e15),r.apply(this,arguments)})}let eJ=new WeakMap;class eH{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){let r=this.cache=e.cache,i=(eJ.get(e)||0)+1;eJ.set(e,i),this.id=i+"",this.observableQuery=t,this.queryManager=e,e$.has(r)||(e$.set(r,0),eY(r,"evict"),eY(r,"modify"),eY(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;return!(r&&r.dmCount===e$.get(this.cache)&&(0,em.L)(t,r.variables)&&(0,em.L)(e.data,r.result.data)&&e.extensions?.[eI.DH]===r.result.extensions?.[eI.DH])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(t)?(this.incremental||=i.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){let s={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let a=0===n,o=a?void 0:this.cache.diff(s),l=this.maybeHandleIncrementalResult(o?.result,e,t);return a||(eG(l,i)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)}
1,update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===n,extensions:l.extensions}),this.lastWrite={result:l,variables:r,dmCount:e$.get(this.cache)};else if(o&&o.complete){l={...l,data:o.result};return}let i=e.diff(s);i.complete&&(l={...l,data:i.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let i=[],n=0===t.cacheWriteBehavior,s=this.maybeHandleIncrementalResult(n?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(s={...s,errors:[]}),ew(s)&&"none"===t.errorPolicy)return Promise.resolve(s);let a=()=>({...s,dataState:this.hasNext?"streaming":"complete"});if(!n&&eG(s,t.errorPolicy)){i.push({result:s.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:s.extensions});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let n=e[r],{query:s,variables:o}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=n(l,{mutationResult:a(),queryName:s&&(0,d.n)(s)||void 0,queryVariables:o});e&&i.push({result:e,dataId:"ROOT_QUERY",query:s,variables:o})}})}let o=t.refetchQueries;if("function"==typeof o&&(o=o(a())),i.length>0||(o||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];
1if(this.queryManager.refetchQueries({updateCache:e=>{n||i.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!n){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(s={...s,data:r.result})}this.hasNext||r(e,s,{context:t.context,variables:t.variables})}n||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:o,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:eB}):e;return r!==eB&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){o.V1.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){0!==n&&(eG(e,i)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function eG(e,t="none"){let r=!ew(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class eK{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){let t=new c.c(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;let r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,o.vA)(89))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:i,refetchQueries:n=[],awaitRefetchQueries:a=!1,update:l,onQueryUpdated:u,fetchPolicy:c,errorPolicy:f,keepRootFields:p,context:y}){let m=new eH(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:v}=this.getDocumentInfo(e);t=this.getVariables(e,t),v&&(h.g&&(0,o.V1)(this.localState,90,(0,d.n)(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:y}));let b=this.mutationStore&&(this.mutationStore[m.id]={mutation:e,variables:t,loading:!0,error:null}),g=r&&m.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==c),errorPolicy:f,context:y,updateQueries:i,update:l,keepRootFields:p});return this.broadcastQueries(),new Promise((o,h)=>{let d={};return this.getObservableFromLink(e,{...y,optimisticResponse:g?r:void 0},t,c,{},!1).observable.pipe(eX(),I(r=>{let s={...r};return Q(m.markMutationResult(s,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==c),errorPolicy:f,context:y,update:l,updateQueries:i,awaitRefetchQueries:a,refetchQueries:n,removeOptimistic:g?m.id:void 0,onQueryUpdated:u,keepRootFields:p}))})).pipe((0,s.T)(e=>{if(ew(e)&&"none"===f)throw new ea(eZ(e));return b&&(b.loading=!1,b.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!m.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:c,cause:d})};ew(t)&&(r.error=new ea(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),o(r)}},error:e=>(b&&(b.loading=!1,b.error=e),g&&this.cache.removeOptimistic(m.id),this.broadcastQueries(),"ignore"===f)?o({data:void 0}):"all"===f?o({data:void 0,error:e}):void h(e)})})}fetchQuery(e,t){return(0,y.s)(e.query,n.cE.QUERY),(async()=>{var r,i,n;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(eS(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return eO(e.value)}})),n="object"==typeof(i={defaultValue:{data:void 0}}),new Promise(function(e,t){var s,a=!1;r.subscribe({next:function(e){s=e,a=!0},error:t,complete:function(){a?e(s):n?e(i.defaultValue):t(new U)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new ek.A(ev.v["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){var r;let i,n=(0,eu.V)(e),s={hasClientExports:(0,a.d)(["client","export"],e,!0),hasForcedResolvers:(i=!1,(0,v.YR)(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(i=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return v.sP}}}),i),hasNonreactiveDirective:(0,a.d)(["nonreactive"],e),hasIncrementalDirective:(0,a.d)(["defer"],e),nonReactiveQuery:(r=e,(0,v.YR)(r,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:O.b.DIRECTIVE,name:{kind:O.b.NAME,value:"nonreactive"}}
1]}}})),clientQuery:(0,a.d)(["client"],e)?e:null,serverQuery:function(e,t){var r;(0,y.s)(t);let i=ex(""),n=ex(""),s=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!(0,eT.c)(r)){if(r.kind===O.b.OPERATION_DEFINITION)return i(r.name&&r.name.value);if(r.kind===O.b.FRAGMENT_DEFINITION)return n(r.name.value)}return o.V1.error(14),null},a=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===O.b.OPERATION_DEFINITION&&++a;let l=function(e){let t=new Map,r=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),e=>{let i=t.get(e.name.value);return!i&&r.size&&r.forEach((t,r)=>{r(e)&&(i=t)}),i}}(e),u=e=>(0,e_.E)(e)&&e.map(l).some(e=>e&&e.remove),c=new Map,h=!1,f={enter(e){if(u(e.directives))return h=!0,null}},d=(0,v.YR)(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,i,n){let a=s(n);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,i,n){if(u(e.directives))return h=!0,null;let a=s(n);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,i){c.set(JSON.stringify(i),e)},leave:(e,t,r,i)=>e===c.get(JSON.stringify(i))?e:a>0&&e.selectionSet.selections.every(e=>e.kind===O.b.FIELD&&"__typename"===e.name.value)?(n(e.name.value).removed=!0,h=!0,null):void 0},Directive:{leave(e){if(l(e))return h=!0,null}}});if(!h)return t;let p=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{p(n(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),m=new Set;d.definitions.forEach(e=>{e.kind===O.b.OPERATION_DEFINITION?p(i(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{m.add(e)}):e.kind!==O.b.FRAGMENT_DEFINITION||0!==a||n(e.name.value).removed||m.add(e.name.value)}),m.forEach(e=>{p(n(e)).fragmentSpreads.forEach(e=>{m.add(e)})});let b={enter(e){let t;if(t=e.name.value,!m.has(t)||n(t).removed)return null}};return r=(0,v.YR)(d,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=p(i(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===O.b.FRAGMENT_SPREAD&&e(r[t.name.value],r))}((0,eu.V)(r)||(0,eE.E)(r),(0,ec.J)((0,eh.z)(r)))?r:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:(0,eC.w)(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,s)}let i=t.get(e);if(i.violation)throw i.violation;return i}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,i=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(i)}}watchQuery(e){(0,y.s)(e.query,n.cE.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new eQ({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,o.vA)(91)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,i=new Map,n=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),i.set(e,!1);else if((0,eN.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=(0,eb.y)(this.transform(e));r.set(t,(0,d.n)(e)),i.set(t,!1)}else(0,eN.U)(e)&&e.query&&n.add(e)}),this.obsQueries.forEach(r=>{let n=(0,eb.y)(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:s,options:{fetchPolicy:a}}=r;("active"!==e||"standby"!==a)&&("active"===e||s&&i.has(s)||n&&i.has(n))&&(t.add(r),s&&i.set(s,!0),n&&i.set(n,!0))}
1),n.size&&n.forEach(e=>{let r=new eQ({queryManager:this,options:{...(0,f.l)(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(r)}),h.g&&i.size&&i.forEach((e,t)=>{if(!e){let e=r.get(t);e?h.g&&o.V1.warn(92,e):h.g&&o.V1.warn(93)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:i}=r.options;(e||"standby"!==i)&&"cache-only"!==i&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:i}=e,{fetchPolicy:a="cache-first",errorPolicy:l="none",context:u={},extensions:c={}}=e;return(0,y.s)(r,n.cE.SUBSCRIPTION),r=this.transform(r),i=this.getVariables(r,i),h.g&&(0,o.V1)(!this.getDocumentInfo(r).hasClientExports||this.localState,94,(0,d.n)(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?Q(this.localState.getExportedVariables({client:this.client,document:r,variables:i,context:u})):$(i)).pipe(I(e=>{let{observable:i,restart:n}=this.getObservableFromLink(r,u,e,a,c),o=new eH(this);return t=n,i.pipe((0,s.T)(t=>{o.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:l,cacheWriteBehavior:2*("no-cache"!==a)});let i={data:t.data??void 0};return ew(t)?i.error=new ea(t):(0,eo.uR)(t)&&(i.error=t.extensions[eo.K$],delete t.extensions[eo.K$]),t.extensions&&Object.keys(t.extensions).length&&(i.extensions=t.extensions),i.error&&"none"===l&&(i.data=void 0),"ignore"===l&&delete i.error,i}),Y(e=>"ignore"===l?$({data:void 0}):$({data:void 0,error:e})),J(e=>!!(e.data||e.error)))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new S.b(!1);getObservableFromLink(e,t,r,i,s,a=t?.queryDeduplication??this.queryDeduplication){let l={},{serverQuery:c,clientQuery:f,operationType:p,hasIncrementalDirective:y}=this.getDocumentInfo(e),m=(0,d.n)(e),v={client:this.client};if(c){let{inFlightLinkObservables:e,link:i}=this;try{let o=this.incrementalHandler.prepareRequest({query:c,variables:r,context:{...this.defaultContext,...t,queryDeduplication:a},extensions:s});function b(e){return new k.c(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let i=r();return l.restart||=()=>{i.unsubscribe(),i=r()},()=>{i.unsubscribe(),l.restart=void 0}})}if(t=o.context,a){var g;let t=(0,eb.y)(c),s=(0,ei.M)(r);(l=e.lookup(t,s)).observable||(l.observable=u(i,o,v).pipe(b,(g=()=>{e.peek(t,s)===l&&e.remove(t,s)},(0,x.N)(function(e,t){try{e.subscribe(t)}finally{t.add(g)}})),p===n.cE.SUBSCRIPTION?(0,H.u)():(0,G.t)({refCount:!0})))}else l.observable=u(i,o,v).pipe(b)}catch(e){l.observable=T(()=>e)}}else l.observable=$({data:{}});if(f){let{operation:n}=(0,eu.V)(e);h.g&&(0,o.V1)(this.localState,95,n[0].toUpperCase()+n.slice(1),m??"(anonymous)"),(0,o.V1)(!y,96,n[0].toUpperCase()+n.slice(1),m??"(anonymous)"),l.observable=l.observable.pipe(I(e=>Q(this.localState.execute({client:this.client,document:f,remoteResult:e,context:t,variables:r,fetchPolicy:i}))))}return{restart:()=>l.restart?.(),observable:l.observable.pipe(Y(e=>{var t;throw t=e=(0,eo.$b)(e),el.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:n}){let a=t.lastRequestId=this.generateRequestId(),{errorPolicy:o}=e,l=this.cache.transformForLink(e.query);return this.getObservableFromLink(l,e.context,e.variables,e.fetchPolicy).observable.pipe((0,s.T)(s=>{let a=t.markQueryResult(s,{...e,document:l,cacheWriteBehavior:r}),u=ew(a);if(u&&"none"===o)throw t.resetLastWrite(),i?.resetNotifications(),new ea(eZ(a));let c={data:a.data,...t.hasNext?{loading:!0,networkStatus:eF.p.streaming,dataState:"streaming",partial:!0}:{dataState:a.data?"complete":"empty",loading:!1,networkStatus:eF.p.ready,partial:!a.data}};return n&&"extensions"in a&&(c[eI.X]=a.extensions),u&&("none"===o&&(c.data=void 0,c.dataState="empty"),"ignore"!==o&&(c.error=new ea(eZ(a)),"streaming"!==c.dataState&&(c.networkStatus=eF.p.error))),c}),Y(e=>{if(a>=t.lastRequestId&&"none"===o)throw t.resetLastWrite(),i?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:eF.p.ready,partial:!0};return"ignore"!==o&&(r.error=e,r.networkStatus=eF.p.error),$(r)}))}fetchObservableWithInfo(e,{networkStatus:t=eF.p.loading,query:r=e.query,fetchQueryOperator:i=e=>e,onCacheHit:n=()=>{},observableQuery:s,exposeExtensions:a}){let l,u,c=this.getVariables(r,e.variables),{fetchPolicy:f="cache-first",errorPolicy:p="none",returnPartialData:y=!1,notifyOnNetworkStatusChange:m=!0,context:v={}}=e;this.prioritizeCacheValues&&("network-only"===f||"cache-and-network"===f)&&(f="cache-first");let b=Object.assign({},e,{query:r,variables:c,fetchPolicy:f,errorPolicy:p,returnPartialData:y,notifyOnNetworkStatusChange:m,context:v}),g=new eH(this,s),w=r=>{b.variables=r;let o="no-cache"===f?0:t===eF.p.refetch&&"merge"!==b.refetchWritePolicy?1:2,l=this.fetchQueryByPolicy(b,{queryInfo:g,cacheWriteBehavior:o,onCacheHit:n,observableQuery:s,exposeExtensions:a});return l.observable=l.observable.pipe(i),"standby"!==b.fetchPolicy&&s?.applyNextFetchPolicy("after-fetch",e),l},S=()=>{this.fetchCancelFns.delete(g.id)};this.fetchCancelFns.set(g.id,e=>{O.next({kind:"E",error:e,source:"network"})});let O=new K.B;if(this.getDocumentInfo(b.query).hasClientExports)h.g&&(0,o.V1)(this.localState,97,(0,d.n)(b.query,"(anonymous)")),l=Q(this.localState.getExportedVariables({client:this.client,document:b.query,variables:b.variables,context:b.context})).pipe(I(e=>w(e).observable)),u=!0;else{let e=w(b.variables);u=e.fromLink,l=e.observable}return{observable:new k.c(e=>{e.add(S),l.subscribe(e),O.subscribe(e)}).pipe((0,H.u)()),fromLink:u}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:i=r?(0,eD.v)("refetchQueries"):void 0,onQueryUpdated:n}){let s=new Map;
1t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;let t=e.getCurrentResult();s.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let a=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(e,r,i){let o=e.watcher;if(o instanceof eQ&&!t.has(o)){if(t.add(o),n){s.delete(o);let e=n(o,r,i);return!0===e&&(e=o.refetch().retain()),!1!==e&&a.set(o,e),e}null!==n&&"cache-only"!==o.options.fetchPolicy&&s.set(o,{oq:o,lastDiff:i,diff:r})}}})}return s.size&&s.forEach(({oq:e,lastDiff:t,diff:r})=>{let i;n&&(r||(r=e.getCacheDiff()),i=n(e,r,t)),n&&!0!==i||(i=e.refetch().retain()),!1!==i&&a.set(e,i)}),i&&this.cache.removeOptimistic(i),a}noCacheWarningsByCause=new WeakSet;maskOperation(e){let{document:t,data:r}=e;if(h.g){var i;let r,{fetchPolicy:n,cause:s={}}=e,a=(0,eu.V)(t)?.operation;this.dataMasking&&"no-cache"===n&&(i=t,r=!0,(0,v.YR)(i,{FragmentSpread:e=>{if(!(r=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return v.sP}}),!r)&&!this.noCacheWarningsByCause.has(s)&&(this.noCacheWarningsByCause.add(s),h.g&&o.V1.warn(98,(0,d.n)(t,`Unnamed ${a??"operation"}`)))}return this.dataMasking?function(e,t,r){let i=(0,eu.V)(t);return((0,o.V1)(i,43),null==e)?e:ey(e,i.selectionSet,{operationType:i.operation,operationName:i.name?.value,fragmentMap:(0,ec.J)((0,eh.z)(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(r,t,this.cache):r}maskFragment(e){let{data:t,fragment:r,fragmentName:i}=e;return this.dataMasking?function(e,t,r,i){let n=t.definitions.filter(e=>e.kind===O.b.FRAGMENT_DEFINITION);void 0===i&&((0,o.V1)(1===n.length,41,n.length),i=n[0].name.value);let s=n.find(e=>e.name.value===i);return((0,o.V1)(!!s,42,i),null==e||(0,em.L)(e,{}))?e:ey(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:(0,ec.J)((0,eh.z)(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(t,r,this.cache,i):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:i,returnPartialData:n,context:a},{cacheWriteBehavior:l,onCacheHit:u,queryInfo:c,observableQuery:f,exposeExtensions:p}){let y=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),m=(s,l)=>{var c;let f=s.result;h.g&&!n&&null!==f&&(c=s.missing,h.g&&c&&h.g&&o.V1.debug(88,c));let p=e=>(s.complete||n||(e=void 0),{data:e,dataState:s.complete?"complete":e?"partial":"empty",loading:!eg(l),networkStatus:l,partial:!s.complete}),y=e=>$({kind:"N",value:p(e),source:"cache"});return(s.complete||n)&&this.getDocumentInfo(e).hasForcedResolvers?(h.g&&(0,o.V1)(this.localState,99,(0,d.n)(e,"(anonymous)")),u(),Q(this.localState.execute({client:this.client,document:e,remoteResult:f?{data:f}:void 0,context:a,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(e=>({kind:"N",value:p(e.data||void 0),source:"cache"})))):y("none"===i&&l===eF.p.refetch&&s.missing?void 0:f||void 0)},v=()=>this.getResultsFromLink({query:e,variables:t,context:a,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:l,queryInfo:c,observableQuery:f,exposeExtensions:p}).pipe(eX(),(0,x.N)(function(e,t){e.subscribe((0,N._)(t,function(e){t.next(Z.createNext(e))},function(){t.next(Z.createComplete()),t.complete()},function(e){t.next(Z.createError(e)),t.complete()}))}),(0,s.T)(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=y();if(e.complete)return{fromLink:!1,observable:m(e,eF.p.ready)};if(n)return{fromLink:!0,observable:et(m(e,eF.p.loading),v())};return{fromLink:!0,observable:v()}}case"cache-and-network":{let e=y();if(e.complete||n)return{fromLink:!0,observable:et(m(e,eF.p.loading),v())};return{fromLink:!0,observable:v()}}case"cache-only":return{fromLink:!1,observable:et(m(y(),eF.p.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:v()};case"standby":return{fromLink:!1,observable:X.w}}}}function eX(){let e=!1;return(0,er.M)({next(){e=!0},complete(){(0,o.V1)(e,100)}})}function eZ(e){if(e.extensions?.[eI.DH]==null)return e;let{extensions:{[eI.DH]:t,...r},...i}=e;return Object.keys(r).length>0&&(i.extensions=r),i}let e0=!1;class e1{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){h.g&&((0,o.V1)(e.cache,68),(0,o.V1)(e.link,69));let{cache:t,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:n=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:u,assumeImmutableResults:c=t.assumeImmutableResults,localState:f,devtools:d,dataMasking:p,link:y,incrementalHandler:m=new l,experiments:v=[],refetchEventManager:b}=e;this.link=y,this.cache=t,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig={...d,enabled:d?.enabled??h.g},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=w.r,this.queryManager=new eK({client:this,defaultOptions:this.defaultOptions,defaultContext:u,documentTransform:r,queryDeduplication:s,ssrMode:i,dataMasking:!!p,clientOptions:e,incrementalHandler:m,assumeImmutableResults:c,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:f}),this.prioritizeCacheValues=i||n>0,n&&setTimeout(()=>{this.prioritizeCacheValues=!1},n),this.devtoolsConfig.enabled&&this.connectToDevTools(),v.forEach(t=>t.call(this,e)),this.refetchEventManager=b,this.refetchEventManager?.connect(this)}connectToDevTools(){if("undefined"==typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!e0&&h.g&&(e0=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e,t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&h.g&&o.V1.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(e){let{refetchOn:t}=e;if(this.defaultOptions.watchQuery){let r,i=this.defaultOptions.watchQuery.refetchOn;t&&"object"==typeof t&&("object"==typeof i?r={...i,...t}:null!=i&&(r=e=>{let r=t[e.source]??i;return"function"==typeof r?r(e):r})),e=(0,f.l)(this.defaultOptions.watchQuery,e),r&&(e.refetchOn=r)}if(h.g){let{query:r}=e,{refetchEventManager:i}=this;if(t){let e=(0,d.n)(r,"(anonymous)");i?"object"==typeof t&&Object.keys(t).forEach(t=>{!i.hasSource(t)&&h.g&&o.V1.warn(71,t,e)}):h.g&&o.V1.warn(70,e)}}return this.queryManager.watchQuery(e)}query=e=>(this.defaultOptions.query&&(e=(0,f.l)(this.defaultOptions.query,e)),h.g&&((0,o.V1)("cache-and-network"!==e.fetchPolicy,72),(0,o.V1)("standby"!==e.fetchPolicy,73),(0,o.V1)(e.query,74),(0,o.V1)("Document"===e.query.kind,75),(0,o.V1)(!e.returnPartialData,76),(0,o.V1)(!e.pollInterval,77),(0,o.V1)(!e.notifyOnNetworkStatusChange,78)),this.queryManager.query(e));mutate=e=>{let t=(0,f.l)((0,p.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return h.g&&((0,o.V1)(t.mutation,79),(0,o.V1)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,80)),(0,y.s)(t.mutation,n.cE.MUTATION),this.queryManager.mutate(t)};subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe((0,s.T)(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking,r=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return h.g?(0,m.Q)(r,Symbol.for("apollo.transform.dev.mask"),t=>({...t,data:this.queryManager.maskFragment({...e,data:t.data})})):r}
1readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return u(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],i=[];t.forEach((e,t)=>{r.push(t),i.push(e)});let n=Promise.all(i);return n.queries=r,n.results=i,n.catch(e=>{h.g&&o.V1.debug(81,e)}),n}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new c.c(b);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}h.g&&(e1.prototype.getMemoryInternals=g.ep)},4932:(e,t,r)=>{r.d(t,{l:()=>a});var i=r(12115),n=r(3462);let s=Symbol.for("__APOLLO_CONTEXT__");function a(){(0,n.V1)(!0,37);let e=i.createContext[s];return e||(Object.defineProperty(i.createContext,s,{value:e=i.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},5270:(e,t,r)=>{r.d(t,{d:()=>s});var i=r(91647);function n(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class s extends Error{static is(e){return(0,i.t)(e,"CombinedProtocolErrors")}static formatMessage=n;errors;constructor(e){super(s.formatMessage(e,{defaultFormatMessage:n})),this.name="CombinedProtocolErrors",this.errors=e,(0,i.w)(this),Object.setPrototypeOf(this,s.prototype)}}},8286:(e,t,r)=>{r.d(t,{Tg:()=>y});var i=r(71450),n=r(82241),s=r(73694),a=r(19837),o=r(99455),l=r(74073),u=r(50933),c=r(45907),h=r(31590),f=r(39097),d=r(55180),p=r(60488);function y(e){if(e instanceof a.c)return e;if(null!=e){var t,r,y,v,b;if((0,o.l)(e)){return t=e,new a.c(function(e){var r=t[p.s]();if((0,f.T)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if((0,n.X)(e)){return r=e,new a.c(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if((0,s.y)(e)){return y=e,new a.c(function(e){y.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,d.m)})}if((0,l.T)(e))return m(e);if((0,c.x)(e)){return v=e,new a.c(function(e){var t,r;try{for(var n=(0,i.Ju)(v),s=n.next();!s.done;s=n.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if((0,h.U)(e)){return b=e,m((0,h.C)(b))}}throw(0,u.L)(e)}function m(e){return new a.c(function(t){(function(e,t){var r,n,s,a;return(0,i.sH)(this,void 0,void 0,function(){var o;return(0,i.YH)(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=(0,i.xN)(e),l.label=1;case 1:return[4,r.next()];case 2:if((n=l.sent()).done)return[3,4];if(o=n.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s={error:l.sent()},[3,11];case 6:if(l.trys.push([6,,9,10]),!(n&&!n.done&&(a=r.return)))return[3,8];return[4,a.call(r)];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];
1case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}},8481:(e,t,r)=>{r.d(t,{V:()=>s});var i=r(3462),n=r(20824);function s(e){let t;for(let r of((0,n.s)(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,i.vA)(12)}},9201:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(18782);let n=(0,i.n)(()=>globalThis)||(0,i.n)(()=>window)||(0,i.n)(()=>self)||(0,i.n)(()=>global)||(0,i.n)(function(){return i.n.constructor("return this")()})},9334:(e,t,r)=>{r.d(t,{K$:()=>a,uR:()=>o,$b:()=>l});var i=r(5270),n=r(91647);class s extends Error{static is(e){return(0,n.t)(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",(0,n.w)(this),Object.setPrototypeOf(this,s.prototype)}}let a=Symbol();function o(e){return"extensions"in e&&i.d.is(e.extensions[a])}function l(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)?e:"string"==typeof e?Error(e,{cause:e}):new s(e)}},9760:(e,t,r)=>{r.d(t,{E:()=>n});var i=r(3462);function n(e){(0,i.V1)("Document"===e.kind,6),(0,i.V1)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,i.V1)("FragmentDefinition"===t.kind,8),t}},10148:(e,t,r)=>{r.d(t,{w:()=>n});var i=r(61783);function n(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&(0,i.J)(t,e.variable.name,e.defaultValue)}),t}},10433:(e,t,r)=>{r.d(t,{X:()=>i});function i(e){return e.catch(()=>{}),e}},10496:(e,t,r)=>{let i;r.d(t,{M:()=>l});var n=r(24108),s=r(12477),a=r(56312),o=r(66572);let l=Object.assign(function(e){return JSON.stringify(e,u)},{reset(){i=new a.V(s.v.canonicalStringify||1e3)}});function u(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let r=Object.keys(t);if(r.every(c))return t;let n=JSON.stringify(r),s=i.get(n);if(!s){r.sort();let e=JSON.stringify(r);s=i.get(e)||r,i.set(n,s),i.set(e,s)}let a=Object.create(e);return s.forEach(e=>{a[e]=t[e]}),a}}return t}function c(e,t,r){return 0===t||r[t-1]<=e}n.g&&(0,o.D_)("canonicalStringify",()=>i.size),l.reset()},10899:(e,t,r)=>{r.d(t,{L:()=>i});function i(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},11069:(e,t,r)=>{r.d(t,{B:()=>s});var i=r(44),n=r(56312);function s(e,{max:t,makeCacheKey:r=e=>e}){let s=new i.b(!0),a=new n.A(t);return(...t)=>{let i=s.lookupArray(r(t)),n=a.get(i);if(n){if(n.error)throw n.error;return n.result}let o=a.set(i,{});try{return o.result=e(...t)}catch(e){throw o.error=e,e}}}},11619:(e,t,r)=>{var i;r.d(t,{b:()=>i}),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.DIRECTIVE_EXTENSION="DirectiveExtension",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",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(i||(i={}))},11933:(e,t,r)=>{r.d(t,{D:()=>tc});
1var i=r(88924),n=r(33566),s=r(12477),a=r(10496),o=r(74742);function l(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}var u=r(68432),c=r(11619),h=r(50424);let f={kind:c.b.FIELD,name:{kind:c.b.NAME,value:"__typename"}},d=Object.assign(function(e){return(0,h.YR)(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===c.b.OPERATION_DEFINITION)return;let{selections:i}=e;if(!(!i||i.some(e=>e.kind===c.b.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===c.b.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...i,f]}}}})},{added:e=>e===f});var p=r(24108),y=r(97210),m=r(3462),v=r(55137),b=r(44),g=r(63704),w=r(29279),S=r(34098),O=r(19837),k=r(77163),E=r(96948),T=r(28400);function _(e,t){return e===t}var x=r(77241),C=r(37305),N=r(71450),I=function(e){function t(t,r){return e.call(this)||this}return(0,N.C6)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(41449).yU),D={setInterval:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var n=D.delegate;return(null==n?void 0:n.setInterval)?n.setInterval.apply(n,(0,N.fX)([e,t],(0,N.zs)(r))):setInterval.apply(void 0,(0,N.fX)([e,t],(0,N.zs)(r)))},clearInterval:function(e){var t=D.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},F=r(12668),A=function(e){function t(t,r){var i=e.call(this,t,r)||this;
1return i.scheduler=t,i.work=r,i.pending=!1,i}return(0,N.C6)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),D.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&D.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,i=!1;try{this.work(e)}catch(e){i=!0,r=e||Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,i=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,F.o)(i,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(I),R=r(91239),M=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=R.U.now,e}(),j=new(function(e){function t(t,r){void 0===r&&(r=M.now);var i=e.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return(0,N.C6)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(M))(A),V=(r(89526),r(9760)),P=r(28390),q=r(47211),L=r(73044);function z(e,t){let r=t,i=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,m.vA)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===r&&((0,m.V1)(1===i.length,11,i.length),r=i[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class Q{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new b.b(!0);watchFragment(e){let t,{fragment:r,fragmentName:n,from:s}=e,a=this.getFragmentDoc(r,n),o=(Array.isArray(s)?s:[s]).map(e=>{let t=null==e?e:this.toCacheId(e);if(p.g){let e=n||(0,V.E)(r).name.value;void 0===t&&p.g&&m.V1.warn(118,e)}return t});if(!Array.isArray(s)){let t=this.watchSingleFragment(o[0],a,e);return null===s?t:(0,P.Q)(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}function l(e){let r=e.reduce((e,t,r)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[r]=t.missing),e),{data:[],dataState:"complete",complete:!0});return(0,i.L)(t,r)||(t=r),t}if(0===o.length)return $;let u=!1,c=o.map(t=>this.watchSingleFragment(t,a,e));return Object.assign((0===c.length?q.w:new O.c(e=>{let t,{length:r}=c,i=Array(r),n=new Map;c.forEach((e,t)=>{n.has(e)||n.set(e,new Set),n.get(e).add(t)});let s=n.size,a=n.size;n.forEach((r,n)=>{let o=!1,l=n.subscribe({next:s=>{r.forEach(e=>i[e]=s),!o&&(o=!0,a--),!a&&((t||=new Set(c.filter(e=>e.dirty))).delete(n),t.size||(e.next(i.slice()),t=void 0))},complete:()=>{--s||e.complete()},error:e.error.bind(e)});e.add(l)})})).pipe((0,g.T)(l),(0,w.M)({subscribe:()=>u=!0,unsubscribe:()=>u=!1}),(0,S.t)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>u&&t?t:l(c.map(e=>e.getCurrentResult()))})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,r){if(null===e)return W;let{optimistic:i=!0,variables:n}=r,s=[t,(0,a.M)({id:e,optimistic:i,variables:n})],o=this.fragmentWatches.lookupArray(s);if(!o.observable){var l,u;let a,h=!1;function c(e){let i=e.result;return a&&(0,L.a)(t,{data:a.data},{data:i},r.variables)||(a={data:i,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(a.missing=e.missing.missing)),a}let f=new O.c(r=>{h=!0;let a=this.watch({variables:n,returnPartialData:!0,id:e,query:t,optimistic:i,immediate:!0,callback:e=>{f.dirty=!0,this.onAfterBroadcast(()=>{r.next(c(e)),f.dirty=!1})}});return()=>{h=!1,a(),this.fragmentWatches.removeArray(s)}}).pipe((void 0===u&&(u=k.D),l=null!=l?l:_,(0,E.N)(function(e,t){var r,i=!0;e.subscribe((0,T._)(t,function(e){var n=u(e);(i||!l(r,n))&&(i=!1,r=n,t.next(e))}))})),(0,x.u)({connector:()=>new C.m(1),resetOnRefCountZero:()=>{var e;return void 0===e&&(e=j),new O.c(function(t){var r=0;r<0&&(r=0);var i=0;return e.schedule(function(){t.closed||(t.next(i++),t.complete())},r)})}}));o.observable=Object.assign(f,{dirty:!1,getCurrentResult:()=>h&&a?a:c(this.diff({id:e,query:t,returnPartialData:!0,optimistic:i,variables:n}))})}return o.observable}getFragmentDoc=(0,n.LV)(z,{max:s.v["cache.fragmentQueryDocuments"]||1e3,cache:v.l,makeCacheKey:function(...e){return n.NS.bind(null,...e)}(this)});
1readFragment(e,t=!!e.optimistic){let r=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:r,...i}){let n=void 0!==i.from?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(t,r),dataId:n,result:e}))}updateQuery(e,t){return this.batch({update(r){let i=r.readQuery(e),n=t(i);return null==n?i:(r.writeQuery({...e,data:n}),n)}})}updateFragment(e,t){return this.batch({update(r){let i=r.readFragment(e),n=t(i);return null==n?i:(r.writeFragment({...e,data:n}),n)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}p.g&&(Q.prototype.getMemoryInternals=y.tQ);let U=Object.freeze({data:null,dataState:"complete",complete:!0}),W=Object.assign(new O.c(e=>{e.next(U)}),{dirty:!1,getCurrentResult:()=>U}),B=Object.freeze({data:[],dataState:"complete",complete:!0}),$=Object.assign(new O.c(e=>{e.next(B)}),{getCurrentResult:()=>B});var Y=r(72292);let{hasOwnProperty:J}=Object.prototype,H=function(e,t,r){return this.merge(e[r],t[r])},G=e=>isNaN(+e)?{}:[];class K{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||H}merge(e,t,r={}){let i=r.atPath;if(i?.length){let[n,...s]=i;void 0===e&&(e=G(n));let a=e[n];void 0===a&&s.length&&(a=G(s[0]));let o=this.merge(a,t,{...r,atPath:s});return a!==o&&((e=this.shallowCopyForMerge(e))[n]=o),e}return(Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),(0,Y.U)(t)&&(0,Y.U)(e))?(Object.keys(t).forEach(r=>{if(J.call(e,r)){let i=e[r];if(t[r]!==i){let n=this.reconciler(e,t,r);n!==i&&((e=this.shallowCopyForMerge(e))[r]=n)}}else(e=this.shallowCopyForMerge(e))[r]=t[r]}),e):t}isObject=Y.U;pastCopies=new Set;shallowCopyForMerge(e){return(0,Y.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}function X(e){return{__ref:String(e)}}var Z=r(19711),ee=r(73820),et=r(66628),er=r(82089),ei=r(3800),en=r(38750),es=r(85935),ea=r(70333);let{hasOwnProperty:eo}=Object.prototype;function el({__typename:e,id:t,_id:r},i){if("string"==typeof e&&(i&&(i.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let eu={dataIdFromObject:el,resultCaching:!0},ec=/^[_a-z][_0-9a-z]*/i;function eh(e){let t=e.match(ec);return t?t[0]:e}function ef(e){return(0,Y.U)(e)&&!l(e)&&!(0,et.c)(e)}function ed(e,t){let r=(0,es.J)((0,ea.z)(e));return{fragmentMap:r,lookupFragment(e){let i=r[e];return!i&&t&&(i=t.lookup(e)),i||null}}}let ep={},ey=()=>ep,em={};class ev{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),eo.call(this.data,e)){let r=this.data[e];if(r&&eo.call(r,t))return r[t]}return"__typename"===t&&eo.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof eS?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),eo.call(this.data,e))?this.data[e]:this instanceof eS?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;l(e)&&(e=e.__ref),l(t)&&(t=t.__ref);let i="string"==typeof e?this.lookup(r=e):e,n="string"==typeof t?this.lookup(r=t):t;if(!n)return;(0,m.V1)("string"==typeof r,104);let s=new K({reconciler:ek}).merge(i,n);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){let e={};i||(e.__exists=1),Object.keys(n).forEach(t=>{if(!i||i[t]!==s[t]){e[t]=1;let r=eh(t);r===t||this.policies.hasKeyArgs(s.__typename,r)||(e[r]=1),void 0!==s[t]||this instanceof eS||delete s[t]}}),e.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let i=this.lookup(e);if(i){let n={}
1,s=!1,a=!0,o={DELETE:ep,INVALIDATE:em,isReference:l,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||X(e)}:t,{store:this})};if(Object.keys(i).forEach(u=>{let c=eh(u),h=i[u];if(void 0===h)return;let f="function"==typeof t?t:t[u]||(r?void 0:t[c]);if(f){let t=f===ey?ep:f((0,Z.G)(h),{...o,fieldName:c,storeFieldName:u,storage:this.getStorage(e,u)});if(t===em)this.group.dirty(e,u);else if(t===ep&&(t=void 0),t!==h&&(n[u]=t,s=!0,h=t,p.g)){let e=e=>{if(void 0===this.lookup(e.__ref))return p.g&&m.V1.warn(105,e),!0};if(l(t))e(t);else if(Array.isArray(t)){let r,i=!1;for(let n of t){if(l(n)){if(i=!0,e(n))break}else if("object"==typeof n&&n){let[e]=this.policies.identify(n);e&&(r=n)}if(i&&void 0!==r){p.g&&m.V1.warn(106,r);break}}}}}void 0!==h&&(a=!1)}),s)return this.merge(e,n),a&&(this instanceof eS?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let i=this.lookup(e);if(i){let n=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:n,fieldName:t,args:r}):t;return this.modify(e,s?{[s]:ey}:ey,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(eo.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof eS&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{eo.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&eo.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof eS?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{eo.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof eS;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!eo.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let i=new Set([r]);i.forEach(e=>{l(e)&&(t[e.__ref]=!0),(0,Y.U)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,Y.U)(r)&&i.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,Z.G)(l(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>l(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return X(e);if(l(e))return e;let[r]=this.policies.identify(e);if(r){let i=X(r);return t&&this.merge(r,e),i}};get supportsResultCaching(){return this.group.caching}}class eb{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?(0,n.yN)():null,this.keyMaker=new b.b}depend(e,t){if(this.d){this.d(t+"#"+e);let r=eh(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function eg(e,t){eE(e)&&e.group.depend(t,"__exists")}class ew extends ev{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new eb(t)),r&&this.replace(r)}stump=new eO(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new b.b;getStorage(){return this.storageTrie.lookupArray(arguments)}}ev.Root=ew;class eS extends ev{id;parent;replay;group;
1constructor(e,t,r,i){super(t.policies,i),this.id=e,this.parent=t,this.replay=r,this.group=i,r(this)}addLayer(e,t){return new eS(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{let r=this.data[e],n=t.lookup(e);n?r?r!==n&&Object.keys(r).forEach(t=>{(0,i.L)(r[t],n[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(n).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return eo.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class eO extends eS{constructor(e){super("EntityStore.Stump",e,()=>{},new eb(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function ek(e,t,r){let n=e[r],s=t[r];return(0,i.L)(n,s)?n:s}function eE(e){return!!(e&&e.supportsResultCaching)}var eT=r(79312),e_=r(19616),ex=r(61783);function eC(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:i})=>(0,ex.J)(r,e,i,t)),r}return null}let eN=["connection","include","skip","client","rest","export","nonreactive","stream"],eI=a.M,eD=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let i={};e.forEach(e=>{i[e]=t[e]});let n=eI(i);if("{}"!==n)return`${r.connection.key}(${n})`}return r.connection.key}let i=e;if(t){let e=eI(t);"{}"!==e&&(i+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===eN.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?i+=`@${e}(${eI(r[e])})`:i+=`@${e}`)}),i},{setStringify(e){let t=eI;return eI=e,t}});var eF=r(31623),eA=r(32380);let eR={};function eM(e){let t=JSON.stringify(e);return eR[t]||(eR[t]={})}function ej(e){let t=eM(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let i=(e,t)=>r.readField(t,e),n=r.keyObject=eP(e,e=>{let n=eL(r.storeObject,e,i);return void 0===n&&t!==r.storeObject&&eo.call(t,e[0])&&(n=eL(t,e,eq)),(0,m.V1)(void 0!==n,107,e.join("."),t),n});return`${r.typename}:${JSON.stringify(n)}`})}function eV(e){let t=eM(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:i,fieldName:n})=>{let s=JSON.stringify(eP(e,e=>{let n=e[0],s=n.charAt(0);if("@"===s){if(r&&(0,eA.E)(r.directives)){let t=n.slice(1),s=r.directives.find(e=>e.name.value===t),a=s&&eC(s,i);return a&&eL(a,e.slice(1))}return}if("$"===s){let t=n.slice(1);if(i&&eo.call(i,t)){let r=e.slice(0);return r[0]=t,eL(i,r)}return}if(t)return eL(t,e)}));return(t||"{}"!==s)&&(n+=":"+s),n})}function eP(e,t){let r=new K;return(function e(t){let r=eM(t);if(!r.paths){let i=r.paths=[],n=[];t.forEach((r,s)=>{(0,et.c)(r)?(e(r).forEach(e=>i.push(n.concat(e))),n.length=0):(n.push(r),(0,et.c)(t[s+1])||(i.push(n.slice(0)),n.length=0))})}return r.paths})(e).reduce((e,i)=>{let n=t(i);if(void 0!==n){for(let e=i.length-1;e>=0;--e)n={[i[e]]:n};e=r.merge(e,n)}return e},{})}function eq(e,t){return e[t]}function eL(e,t,r){return r=r||eq,function e(t){return(0,Y.U)(t)?(0,et.c)(t)?t.map(e):eP(Object.keys(t).sort(),e=>eL(t,e)):t}(t.reduce(function e(t,i){return(0,et.c)(t)?t.map(t=>e(t,i)):t&&r(t,i)},e))}let ez=new n.DX,eQ=new WeakMap;function eU(e){let t=eQ.get(e);return t||eQ.set(e,t={vars:new Set,dep:(0,n.yN)()}),t}function eW(e){eU(e).vars.forEach(t=>t.forgetCache(e))}function eB(e){let t=new Set,r=new Set,i=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(e=>{var t;eU(e).dep.dirty(i),(t=e).broadcastWatches&&t.broadcastWatches()});let n=Array.from(r);r.clear(),n.forEach(t=>t(e))}}else{let e=ez.getValue();e&&(n(e),eU(e).dep(i))}return e};i.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let n=i.attachCache=e=>(t.add(e),eU(e).vars.add(i),i);return i.forgetCache=e=>t.delete(e),i}function e$(e){return void 0!==e.args?e.args:e.field?eC(e.field,e.variables):null}let eY=()=>void 0,eJ=(e,t)=>t.fieldName,eH=(e,t,{mergeObjects:r})=>r(e,t),eG=(e,t)=>t,eK=(e,t,{streamFieldInfo:r,existingData:i})=>{if(!e&&!i)return t;let n=[],s=e??i,a=r?.isLastChunk?t.length:Math.max(s.length,t.length);for(let e=0;e<a;e++)n[e]=void 0===t[e]?s[e]:t[e];return n};class eX{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:el,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){let r,i=this,n=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let s=t&&t.storeObject||e,a={...t,typename:n,storeObject:s,readField:t&&t.readField||((...e)=>{let t=e0(e,s);return i.readField(t,{store:i.cache.data,variables:t.variables})})},o=n&&this.getTypePolicy(n),l=o&&o.keyFn||this.config.dataIdFromObject;return eT.y.withValue(!0,()=>{for(;l;){let t=l({...e,...s},a);if((0,et.c)(t))l=ej(t);else{r=t;break}}}),r=r?String(r):void 0,a.keyObject?[r,a.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:i,subscriptionType:n,...s}=e[t];r&&this.setRootTypename("Query",t),i&&this.setRootTypename("Mutation",t),n&&this.setRootTypename("Subscription",t),eo.call(this.toBeAdded,t)?this.toBeAdded[t].push(s):this.toBeAdded[t]=[s]})}updateTypePolicy(e,t,r){let i=this.getTypePolicy(e),{keyFields:n,fields:s}=t;function a(e,t){e.merge="function"==typeof t?t:!0===t?eH:!1===t?eG:e.merge}a(i,t.merge),i.keyFn=!1===n?eY:(0,et.c)(n)?ej(n):"function"==typeof n?n:i.keyFn,s&&Object.keys(s).forEac
1h(t=>{let i=r[t];i&&i?.typename===e||(i=r[t]={typename:e});let n=s[t];if("function"==typeof n)i.read=n;else{let{keyArgs:e,read:t,merge:r}=n;i.keyFn=!1===e?eJ:(0,et.c)(e)?eV(e):"function"==typeof e?e:i.keyFn,"function"==typeof t&&(i.read=t),a(i,r)}i.read&&i.merge&&(i.keyFn=i.keyFn||eJ)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];t!==i&&((0,m.V1)(!i||i===e,108,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(ec);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!eo.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,i)=>{if(t.test(e)){let e=this.supertypeMap.get(i);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...i}=this.getTypePolicy(e);Object.assign(t,i),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,i){if(!e.typeCondition)return!0;if(!t)return!1;let n=e.typeCondition.name.value;if(t===n)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(n)){let s=this.getSupertypeSet(t,!0),a=[s],o=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>a.indexOf(t)&&a.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1;for(let c=0;c<a.length;++c){let h=a[c];if(h.has(n))return s.has(n)||(u&&p.g&&m.V1.warn(109,t,n),s.add(n)),!0;h.forEach(o),l&&c===a.length-1&&function e(t,r,i){return!!(0,Y.U)(r)&&((0,et.c)(r)?r.every(r=>e(t,r,i)):t.selections.every(t=>{if((0,er.d)(t)&&(0,ei.M)(t,i)){let n=(0,en.u)(t);return eo.call(r,n)&&(!t.selectionSet||e(t.selectionSet,r[n],i))}return!0}))}(e.selectionSet,r,i)&&(l=!1,u=!0,this.fuzzySubtypes.forEach((e,r)=>{let i=t.match(e);i&&i[0]===t&&o(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let i,n,s,{typename:a,fieldName:o}=e,l=this.getFieldPolicy(a,o),u=l&&l.keyFn;if(u&&a){let t={typename:a,fieldName:o,field:e.field||null,variables:e.variables},r=e$(e);for(;u;){let e=u(r,t);if((0,et.c)(e))u=eV(e);else{i=e||o;break}}}return(void 0===i&&(i=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(e=>{n[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:i})=>(0,ex.J)(n[e.name.value],t,i,r))})),s=null,t.arguments&&t.arguments.length&&(s={},t.arguments.forEach(({name:e,value:t})=>(0,ex.J)(s,e,t,r))),eD(t.name.value,s,n)):eD(o,e$(e))),!1===i)?o:o===eh(i)?i:o+":"+i}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let i=t.store.getFieldValue(r,"__typename");i&&(e.typename=i)}let i=this.getStoreFieldName(e),n=eh(i),s=t.store.getFieldValue(r,i),a=this.getFieldPolicy(e.typename,n),o=a&&a.read;if(o){let n=eZ(this,r,e,t,t.store.getStorage(l(r)?r.__ref:r,i));return ez.withValue(this.cache,o,[s,n])}return s}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let i=this.getFieldPolicy(e,t),n=i&&i.merge;return!n&&r&&(n=(i=this.getTypePolicy(r))&&i.merge),n}runMergeFunction(e,t,{field:r,typename:n,merge:s,path:a},o,l){let u=e;if(s===eH)return e1(o.store)(e,t);if(s===eG)return t;o.overwrite&&(e=void 0);let c=o.extensions?.[e_.DH]?.deref()?.peekArray(a);if(c){let{current:e,previous:r}=c;if(r&&(0,i.L)(r.incoming,t)&&(0,i.L)(r.streamFieldInfo,e))return r.result}let h=s(e,t,function(e,t,r,i,n,s){let a={...eZ(e,t,r,i,n),extensions:i.extensions,existingData:s},o=i.extensions;if(o&&e_.DH in o){let{[e_.DH]:e,...t}=o,i=e?.deref()?.peekArray(r.path);i&&(a.streamFieldInfo=i.current),a.extensions=0===Object.keys(t).length?void 0:t}return a}(this,void 0,{typename:n,fieldName:r.name.value,field:r,variables:o.variables,path:a},o,l||{},u));return c&&(c.previous={incoming:t,streamFieldInfo:c.current,result:h}),h}}function eZ(e,t,r,i,n){let s=e.getStoreFieldName(r),a=eh(s),o=r.variables||i.variables,{toReference:u,canRead:c}=i.store;return{args:e$(r),field:r.field||null,fieldName:a,storeFieldName:s,variables:o,isReference:l,toReference:u,storage:n,cache:e.cache,canRead:c,readField:(...r)=>e.readField(e0(r,t,o),i),mergeObjects:e1(i.store)}}
1function e0(e,t,r){let i,{0:n,1:s,length:a}=e;return"string"==typeof n?i={fieldName:n,from:a>1?s:t}:(i={...n},eo.call(i,"from")||(i.from=t)),p.g&&void 0===i.from&&p.g&&m.V1.warn(110,(0,eF.p)(Array.from(e))),void 0===i.variables&&(i.variables=r),i}function e1(e){return function(t,r){if((0,et.c)(t)||(0,et.c)(r))throw(0,m.vA)(111);if((0,Y.U)(t)&&(0,Y.U)(r)){let i=e.getFieldValue(t,"__typename"),n=e.getFieldValue(r,"__typename");if(i&&n&&i!==n)return r;if(l(t)&&ef(r))return e.merge(t.__ref,r),t;if(ef(t)&&l(r))return e.merge(t,r.__ref),r;if(ef(t)&&ef(r))return{...t,...r}}return r}}var e4=r(10148),e9=r(87842),e2=r(8481),e3=r(65481);class e7 extends Error{message;path;query;variables;constructor(e,t,r,i){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=e7.prototype}missing}function e8(e){return[e.selectionSet,e.objectOrReference,e.context]}class e6{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=(0,n.LV)(e=>{let t=e8(e),r=this.executeSelectionSet.peek(...t);return r||(eg(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:s.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:e8,makeCacheKey(e,t,r){if(eE(r.store))return r.store.makeCacheKey(e,l(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=(0,n.LV)(e=>(eg(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:s.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(eE(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:i,returnPartialData:n=!0}){let s,o=this.config.cache.policies;i={...(0,e4.w)((0,e9.A)(t)),...i};let l=X(r),u=this.executeSelectionSet({selectionSet:(0,e2.V)(t).selectionSet,objectOrReference:l,enclosingRef:l,context:{store:e,query:t,policies:o,variables:i,varString:(0,a.M)(i),...ed(t,this.config.fragments)}});u.missing&&(s=new e7(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(u.missing),u.missing,t,i));let c=!s,{result:h}=u;return{result:c?h:n?0===Object.keys(h).length?null:h:null,complete:c,missing:s}}isFresh(e,t,r,i){if(eE(i.store)&&this.knownResults.get(e)===r){let n=this.executeSelectionSet.peek(r,t,i);if(n&&e===n.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:i}){let n;if(l(t)&&!i.policies.rootTypenamesById[t.__ref]&&!i.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:s,policies:a,store:o}=i,u=o.getFieldValue(t,"__typename"),h=[],f=new K;function p(e,t){return e.missing&&(n=f.merge(n,{[t]:e.missing})),e.result}"string"!=typeof u||a.rootIdsByTypename[u]||h.push({__typename:u});let y=new Set(e.selections);y.forEach(e=>{if((0,ei.M)(e,s))if((0,er.d)(e)){let s=a.readField({fieldName:e.name.value,field:e,variables:i.variables,from:t},i),o=(0,en.u)(e);void 0===s?d.added(e)||(n=f.merge(n,{[o]:`Can't find field '${e.name.value}' on ${l(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):(0,et.c)(s)?s.length>0&&(s=p(this.executeSubSelectedArray({field:e,array:s,enclosingRef:r,context:i}),o)):e.selectionSet&&null!=s&&(s=p(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:s,enclosingRef:l(s)?s:r,context:i}),o)),void 0!==s&&h.push({[o]:s})}else{let t=(0,e3.H)(e,i.lookupFragment);if(!t&&e.kind===c.b.FRAGMENT_SPREAD)throw(0,m.vA)(112,e.name.value);t&&a.fragmentMatches(t,u)&&t.selectionSet.selections.forEach(y.add,y)}});let v={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let i=new K;for(let n=1;n<r;++n)t=i.merge(t,e[n])}return t}(h),missing:n},b=(0,Z.G)(v);return b.result&&this.knownResults.set(b.result,e),b}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:i}){let n,s=new K;
1function a(e,t){return e.missing&&(n=s.merge(n,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||i.store.canRead(e))),{result:t=t.map((t,n)=>null===t?null:(0,et.c)(t)?a(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:i}),n):e.selectionSet?a(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:l(t)?t:r,context:i}),n):(p.g&&function(e,t,r){if(!t.selectionSet){let i=new Set([r]);i.forEach(r=>{(0,Y.U)(r)&&((0,m.V1)(!l(r),113,l(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(i.add,i))})}}(i.store,e,t),t)),missing:n}}}var e5=r(50339),te=r(52511);let{toString:tt}=Object.prototype;function tr(e,t,r){let i="".concat(t).concat(r),n=e.flavors.get(i);return n||e.flavors.set(i,n=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),n}class ti{writeToStore(e,t){let{query:r,result:n,dataId:s,variables:o,overwrite:u,extensions:c}=t,h=(0,e5.V)(r),f=new K,d={store:e,written:{},merge:(e,t)=>f.merge(e,t),variables:o={...(0,e4.w)(h),...o},varString:(0,a.M)(o),...ed(r,this.fragments),overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:c},y=this.processSelectionSet({result:n||{},dataId:s,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:d,path:[]});if(!l(y))throw(0,m.vA)(114,n);return d.incomingById.forEach((t,r)=>{let{storeObject:n,mergeTree:s,fieldNodeSet:a}=t,o=X(r);if(s&&s.map.size){let e=this.applyMerges(s,o,n,d);if(l(e))return;n=e}if(p.g&&!d.overwrite){let e={};a.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(n).forEach(t=>{!0!==e[eh(t)]||(e=>{let t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)})(t)||function(e,t,r,n){let s=e=>{let t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=s(e);if(!a)return;let o=s(t);if(!o||l(a)||(0,i.L)(a,o)||Object.keys(a).every(e=>void 0!==n.getFieldValue(o,e)))return;let u=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=eh(r),h="".concat(u,".").concat(c);
1if(tl.has(h))return;tl.add(h);let f=[];(0,et.c)(a)||(0,et.c)(o)||[a,o].forEach(e=>{let t=n.getFieldValue(e,"__typename");"string"!=typeof t||f.includes(t)||f.push(t)}),p.g&&m.V1.warn(117,c,u,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",h,Array.isArray(a)?[...a]:{...a},Array.isArray(o)?[...o]:{...o})}(o,n,t,d.store)})}e.merge(r,n)}),e.retain(y.__ref),y}processSelectionSet(e){let{dataId:t,result:r,selectionSet:i,context:n,mergeTree:s,path:a}=e,{policies:o}=this.cache,u={},c=t&&o.rootTypenamesById[t]||tu(r,i,n.fragmentMap)||t&&n.store.get(t,"__typename");"string"==typeof c&&(u.__typename=c);let h=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let i=e0(t,u,n.variables);if(l(i.from)){let e=n.incomingById.get(i.from.__ref);if(e){let t=o.readField({...i,from:e.storeObject},n);if(void 0!==t)return t}}return o.readField(i,n)},f=new Set;this.flattenFields(i,r,n,c).forEach((e,t)=>{let i=r[(0,en.u)(t)],n=[...a,t.name.value];if(f.add(t),void 0!==i){var y;let r,a=o.getStoreFieldName({typename:c,fieldName:t.name.value,field:t,variables:e.variables}),f=ts(s,a),d=this.processFieldValue(i,t,t.selectionSet?tr(e,!1,!1):e,f,n);t.selectionSet&&(l(d)||ef(d))&&(r=h("__typename",d));let p=o.getMergeFunction(c,t.name.value,r);p?f.info={field:t,typename:c,merge:p,path:n}:(0,te.d)(["stream"],t)&&Array.isArray(d)&&(null==(y=e.extensions)?void 0:y[e_.DH])?f.info={field:t,typename:c,merge:eK,path:n}:to(s,a),u=e.merge(u,{[a]:d})}else!p.g||e.clientOnly||e.deferred||d.added(t)||o.getReadFunction(c,t.name.value)||m.V1.error(115,(0,en.u)(t),r)});try{let[e,s]=o.identify(r,{typename:c,selectionSet:i,fragmentMap:n.fragmentMap,storeObject:u,readField:h});t=t||e,s&&(u=n.merge(u,s))}catch(e){if(!t)throw e}if("string"==typeof t){let e=X(t),a=n.written[t]||(n.written[t]=[]);if(a.indexOf(i)>=0||(a.push(i),this.reader&&this.reader.isFresh(r,e,i,n)))return e;let o=n.incomingById.get(t);return o?(o.storeObject=n.merge(o.storeObject,u),o.mergeTree=function e(t,r){if(t===r||!r||ta(r))return t;if(!t||ta(t))return r;let i=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,n=t.map.size&&r.map.size,s={info:i,map:n?new Map:t.map.size?t.map:r.map};if(n){let i=new Set(r.map.keys());t.map.forEach((t,n)=>{s.map.set(n,e(t,r.map.get(n))),i.delete(n)}
1),i.forEach(i=>{s.map.set(i,e(r.map.get(i),t.map.get(i)))})}return s}(o.mergeTree,s),f.forEach(e=>o.fieldNodeSet.add(e))):n.incomingById.set(t,{storeObject:u,mergeTree:ta(s)?void 0:s,fieldNodeSet:f}),e}return u}processFieldValue(e,t,r,i,n){return t.selectionSet&&null!==e?(0,et.c)(e)?e.map((e,s)=>{let a=this.processFieldValue(e,t,r,ts(i,s),[...n,s]);return to(i,s),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:i,path:n}):p.g?function e(t,r){switch(tt.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach(n=>{i[n]=e(t[n],r)}),i}default:return t}}(e):e}flattenFields(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tu(t,e,r.fragmentMap),n=new Map,{policies:s}=this.cache,a=new b.b(!1);return!function e(o,l){let u=a.lookup(o,l.clientOnly,l.deferred);u.visited||(u.visited=!0,o.selections.forEach(a=>{if(!(0,ei.M)(a,r.variables))return;let{clientOnly:o,deferred:u}=l;if(!(o&&u)&&(0,eA.E)(a.directives)&&a.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(o=!0),"defer"===t){let t=eC(e,r.variables);t&&!1===t.if||(u=!0)}}),(0,er.d)(a)){let e=n.get(a);e&&(o=o&&e.clientOnly,u=u&&e.deferred),n.set(a,tr(r,o,u))}else{let n=(0,e3.H)(a,r.lookupFragment);if(!n&&a.kind===c.b.FRAGMENT_SPREAD)throw(0,m.vA)(116,a.name.value);n&&s.fragmentMatches(n,i,t,r.variables)&&e(n.selectionSet,tr(r,o,u))}}))}(e,r),n}applyMerges(e,t,r,i,n){if(e.map.size&&!l(r)){let s,a=!(0,et.c)(r)&&(l(t)||ef(t))?t:void 0,o=r;a&&!n&&(n=[l(a)?a.__ref:a]);let u=(e,t)=>(0,et.c)(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=u(a,t),l=u(o,t);if(void 0===l)return;n&&n.push(t);let c=this.applyMerges(e,r,l,i,n);c!==l&&(s=s||new Map).set(t,c),n&&(0,m.V1)(n.pop()===t)}),s&&(r=(0,et.c)(o)?o.slice(0):{...o},s.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,i,n&&i.store.getStorage(...n)):r}constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}}let tn=[];function ts(e,t){let{map:r}=e;return r.has(t)||r.set(t,tn.pop()||{map:new Map}),r.get(t)}function ta(e){return!e||!(e.info||e.map.size)}function to(e,t){let{map:r}=e,i=r.get(t);i&&ta(i)&&(tn.push(i),r.delete(t))}let tl=new Set;function tu(e,t,r){let i;for(let r of t.selections)if((0,er.d)(r)){if("__typename"===r.name.value)return e[(0,en.u)(r)]}else i?i.push(r):i=[r];if("string"==typeof e.__typename)return e.__typename;if(i)for(let t of i){let i=tu(e,(0,e3.H)(t,r).selectionSet,r);if("string"==typeof i)return i}}class tc extends Q{init(){let e=this.data=new ev.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),null==e||e.resetCaches(),this.storeWriter=new ti(this,this.storeReader=new e6({cache:this,fragments:e}),e),this.maybeBroadcastWatch=(0,n.LV)((e,t)=>this.broadcastWatch(e,t),{max:s.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(eE(t)){let{optimistic:r,id:i,variables:n}=e;return t.makeCacheKey(e.query,e.callback,(0,a.M)({optimistic:r,id:i,variables:n}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(eo.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;
1return this.watches.size||(t=this,eU(t).vars.forEach(e=>e.attachCache(t))),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&eW(this),this.maybeBroadcastWatch.forget(e)}}gc(e){a.M.reset(),o.y.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(l(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){p.g&&m.V1.warn(e)}}evict(e){if(!e.id){if(eo.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),a.M.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),eW(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}batch(e){let t,{update:r,optimistic:i=!0,removeOptimistic:n,onWatchUpdated:s}=e,a=e=>{let{data:i,optimisticData:n}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=i,this.optimisticData=n}},o=new Set;return s&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>
1(o.add(e),!1)}),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,a):!1===i?a(this.data):a(),"string"==typeof n&&(this.optimisticData=this.optimisticData.removeLayer(n)),s&&o.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=s.call(this,e,t);return!1!==r&&o.delete(e),r}}),o.size&&o.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){let t=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=e=>{r.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),r.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,i.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))}constructor(e={}){super(),this.watches=new Set,this.addTypenameTransform=new u.c(d),this.assumeImmutableResults=!0,this.makeVar=eB,this.txCount=0,this.config=(0,ee.o)(eu,e),this.policies=new eX({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}}p.g&&(tc.prototype.getMemoryInternals=y.cM)},12477:(e,t,r)=>{r.d(t,{v:()=>s});var i=r(9201);let n=Symbol.for("apollo.cacheSize"),s={...i.A[n]}},12668:(e,t,r)=>{r.d(t,{o:()=>i});function i(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}},14192:(e,t,r)=>{r.d(t,{f:()=>n});var i=r(71450),n={setTimeout:function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];var a=n.delegate;return(null==a?void 0:a.setTimeout)?a.setTimeout.apply(a,(0,i.fX)([e,t],(0,i.zs)(r))):setTimeout.apply(void 0,(0,i.fX)([e,t],(0,i.zs)(r)))},clearTimeout:function(e){var t=n.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},18782:(e,t,r)=>{r.d(t,{n:()=>i});function i(e){try{return e()}catch{}}},19616:(e,t,r)=>{r.d(t,{DH:()=>n,X:()=>i,_K:()=>s});let i=Symbol.for("apollo.result.extensions"),n=Symbol.for("apollo.result.streamInfo"),s=Symbol.for("apollo.observableQuery.variablesUnknown")},19711:(e,t,r)=>{r.d(t,{G:()=>s});var i=r(24108),n=r(72292);function s(e){return i.g&&function(e){let t=new Set([e]);t.forEach(e=>{(0,n.U)(e)&&function(e){if(i.g&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(r=>{(0,n.U)(e[r])&&t.add(e[r])})})}(e),e}},19837:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(46796),n=r(41449),s=r(60488),a=r(77163),o=r(29846),l=r(39097),u=r(75968),c=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var s=this,a=!function(e){return e&&e instanceof i.vU||e&&(0,l.T)(e.next)&&(0,l.T)(e.error)&&(0,l.T)(e.complete)&&(0,n.Uv)(e)}(e)?new i.Ms(e,t,r):e;return(0,u.Y)(function(){var e=s.operator,t=s.source;a.add(e?e.call(a,t):t?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=h(t))(function(t,n){var s=new i.Ms({next:function(t){try{e(t)}catch(e){n(e),s.unsubscribe()}},error:n,complete:t});r.subscribe(s)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[s.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?a.D:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=h(e))(function(e,r){var i;t.subscribe(function(e){return i=e},function(e){return r(e)},function(){return e(i)})})},e.create=function(t){return new e(t)},e}();function h(e){var t;return null!=(t=null!=e?e:o.$.Promise)?t:Promise}},20824:(e,t,r)=>{r.d(t,{s:()=>u});
1var i=r(50424),n=r(11619),s=r(24108),a=r(3462),o=r(12477),l=r(51777);let u=(0,r(11069).B)((e,t)=>{(0,a.V1)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);s.g&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,a.vA)(2,e.kind)}),(0,a.V1)(r.length<=1,3,r.length)),t&&(0,a.V1)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),(0,i.YR)(e,{Field(t,i,s,o){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let i=e,s=[];for(let e of o)(i=i[e]).kind===n.b.FIELD&&s.push(i.alias?.value||i.name.value);throw s.splice(-1,1,t.name.value),(0,a.vA)(5,t.alias.value,s.join("."),r[0].operation,(0,l.n)(e,"(anonymous)"))}}})},{max:o.v.checkDocument||2e3})},22443:(e,t,r)=>{r.d(t,{C:()=>l});var i=r(47211),n=r(51777),s=r(50339),a=r(24108),o=r(3462);class l{static empty(){return new l(()=>i.w)}static from(e){if(0===e.length)return l.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new l((e,t)=>t(e))){return Object.assign(new l((i,n)=>{let s=e(i);return a.g&&"boolean"!=typeof s&&a.g&&o.V1.warn(63,s),s?t.request(i,n):r.request(i,n)}),{left:t,right:r})}static execute(e,t,r){return e.request(function(e,{client:t}){let r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:(0,n.n)(e.query),operationType:(0,s.V)(e.query).operation},i={...e.context},a=()=>Object.freeze({...i});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{i="function"==typeof e?{...i,...e(a())}:{...i,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:a}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>(a.g&&a.g&&o.V1.warn(64),i.w))}static concat(...e){return l.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(l.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new l((r,i)=>e.request(r,e=>t.request(e,i))),{left:e,right:t})}request(e,t){throw(0,o.vA)(65)}left;right}},24108:(e,t,r)=>{r.d(t,{g:()=>i});let i=!1},24982:(e,t,r)=>{var i;r.d(t,{p:()=>i}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e[e.streaming=9]="streaming"}(i||(i={}))},28390:(e,t,r)=>{r.d(t,{Q:()=>s});var i=r(63704),n=r(34098);let s=(0,r(11069).B)(function(e,t,r){let s,a;function o(e){return e!==s&&(a=r(s=e)),a}return Object.assign(e.pipe((0,i.T)(o),(0,n.t)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>o(e.getCurrentResult())})},{max:1,makeCacheKey:e=>e.slice(0,2)})},28400:(e,t,r)=>{r.d(t,{_:()=>n});var i=r(71450);function n(e,t,r,i,n){return new s(e,t,r,i,n)}var s=function(e){function t(t,r,i,n,s,a){var o=e.call(this,t)||this;return o.onFinalize=s,o.shouldUnsubscribe=a,o._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,o._error=n?function(e){try{n(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,o}return(0,i.C6)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(r(46796).vU)},29279:(e,t,r)=>{r.d(t,{M:()=>o});var i=r(39097),n=r(96948),s=r(28400),a=r(77163);function o(e,t,r){var o=(0,i.T)(e)||t||r?{next:e,error:t,complete:r}:e;return o?(0,n.N)(function(e,t){null==(r=o.subscribe)||r.call(o);var r,i=!0;e.subscribe((0,s._)(t,function(e){var r;null==(r=o.next)||r.call(o,e),t.next(e)},function(){var e;i=!1,null==(e=o.complete)||e.call(o),t.complete()},function(e){var r;i=!1,null==(r=o.error)||r.call(o,e),t.error(e)},function(){var e,t;i&&(null==(e=o.unsubscribe)||e.call(o)),null==(t=o.finalize)||t.call(o)}))}):a.D}},29846:(e,t,r)=>{r.d(t,{$:()=>i});var i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNext
1Context:!1}},31536:(e,t,r)=>{r.d(t,{B:()=>u});var i=r(71450),n=r(19837),s=r(41449),a=(0,r(10899).L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),o=r(12668),l=r(75968),u=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,i.C6)(t,e),t.prototype.lift=function(e){var t=new c(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new a},t.prototype.next=function(e){var t=this;(0,l.Y)(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var s=(0,i.Ju)(t.currentObservers),a=s.next();!a.done;a=s.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,l.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,l.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,i=this.isStopped,n=this.observers;return r||i?s.Kn:(this.currentObservers=null,n.push(e),new s.yU(function(){t.currentObservers=null,(0,o.o)(n,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,i=this.isStopped;t?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new n.c;return e.source=this,e},t.create=function(e,t){return new c(e,t)},t}(n.c),c=function(e){function t(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return(0,i.C6)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:s.Kn},t}(u)},31590:(e,t,r)=>{r.d(t,{C:()=>s,U:()=>a});var i=r(71450),n=r(39097);function s(e){return(0,i.AQ)(this,arguments,function(){var t,r,n;return(0,i.YH)(this,function(s){switch(s.label){case 0:t=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,(0,i.N3)(t.read())];case 3:if(n=(r=s.sent()).value,!r.done)return[3,5];return[4,(0,i.N3)(void 0)];case 4:return[2,s.sent()];case 5:return[4,(0,i.N3)(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function a(e){return(0,n.T)(null==e?void 0:e.getReader)}},31623:(e,t,r)=>{r.d(t,{p:()=>n});var i=r(49167);function n(e,t=0){let r=(0,i.v)("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?r:t,t).split(JSON.stringify(r)).join("<undefined>")}},32380:(e,t,r)=>{r.d(t,{E:()=>i});function i(e){return Array.isArray(e)&&e.length>0}},33566:(e,t,r)=>{let i;r.d(t,{DX:()=>f,NS:()=>M,yN:()=>R,LV:()=>V});var n=r(44),s=r(66278);let a=null,o={},l=1;function u(e){try{return e()}catch(e){}}let c="@wry/context:Slot",h=u(()=>globalThis)||u(()=>global)||Object.create(null),f=h[c]||Array[c]||function(e){try{Object.defineProperty(h,c,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=a;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===o)break;return e!==a&&(a.slots[this.id]=t),!0}return a&&(a.slots[this.id]=o),!1}getValue(){if(this.hasValue())return a.slots[this.id]}
1withValue(e,t,r,i){let n={__proto__:null,[this.id]:e},s=a;a={parent:s,slots:n};try{return t.apply(i,r)}finally{a=s}}static bind(e){let t=a;return function(){let r=a;try{return a=t,e.apply(this,arguments)}finally{a=r}}}static noContext(e,t,r){if(!a)return e.apply(r,t);{let i=a;try{return a=null,e.apply(r,t)}finally{a=i}}}}),{bind:d,noContext:p}=f,y=new f,{hasOwnProperty:m}=Object.prototype,v=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function b(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let g=[];function w(e,t){if(!e)throw Error(t||"assertion failure")}function S(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function O(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class k{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++k.count}peek(){if(1===this.value.length&&!_(this))return E(this),this.value[0]}recompute(e){var t,r,i;return w(!this.recomputing,"already recomputing"),E(this),_(this)?(t=this,r=e,D(t),y.withValue(t,T,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{b(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((i=t).dirty=!1,_(i)||function(e){x(e,N)}(i)),O(t.value)):O(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,x(e,C),b(this))}dispose(){this.setDirty(),D(this),x(this,(e,t)=>{e.setDirty(),F(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=g.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(v(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),g.push(this.deps),this.deps=null)}}function E(e){let t=y.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),_(e)?C(t,e):N(t,e),t}function T(e,t){let r;e.recomputing=!0;let{normalizeResult:i}=e;i&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),i&&r&&!S(r,e.value))try{e.value[0]=i(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function _(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}k.count=0;function x(e,t){let r=e.parents.size;if(r){let i=v(e.parents);for(let n=0;n<r;++n)t(i[n],e)}}function C(e,t){w(e.childValues.has(t)),w(_(t));let r=!_(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=g.pop()||new Set;e.dirtyChildren.add(t),r&&x(e,C)}function N(e,t){w(e.childValues.has(t)),w(!_(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):S(r,t.value)||e.setDirty(),I(e,t),_(e)||x(e,N)}function I(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(g.length<100&&g.push(r),e.dirtyChildren=null))}function D(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{F(e,r)}),e.forgetDeps(),w(null===e.dirtyChildren)}function F(e,t){t.parents.delete(e),e.childValues.delete(t),I(e,t)}let A={setDirty:!0,dispose:!0,forget:!0};function R(e){let t=new Map,r=e&&e.subscribe;function i(e){let i=y.getValue();if(i){let n=t.get(e);n||t.set(e,n=new Set),i.dependOn(n),"function"==typeof r&&(b(n),n.unsubscribe=r(e))}}return i.dirty=function(e,r){let i=t.get(e);if(i){let n=r&&m.call(A,r)?r:"setDirty";v(i).forEach(e=>e[n]()),t.delete(e),b(i)}},i}function M(...e){return(i||(i=new n.b("function"==typeof WeakMap))).lookupArray(e)}let j=new Set;function V(e,{max:t=65536,keyArgs:r,makeCacheKey:i=M,normalizeResult:n,subscribe:a,cache:o=s.C}=Object.create(null)){let l="function"==typeof o?new o(t,e=>e.dispose()):o,u=function(){let t=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let s=l.get(t);s||(l.set(t,s=new k(e)),s.normalizeResult=n,s.subscribe=a,s.forget=()=>l.delete(t));let o=s.recompute(Array.prototype.slice.call(arguments));return l.set(t,s),j.add(l),y.hasValue()||(j.forEach(e=>e.clean()),j.clear()),o};function c(e){let t=e&&l.get(e);t&&t.setDirty()}function h(e){let t=e&&l.get(e);if(t)return t.peek()}function f(e){return!!e&&l.delete(e)}return Object.defineProperty(u,"size",{get:()=>l.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:i,normalizeResult:n,subscribe:a,cache:l}),u.dirtyKey=c,u.dirty=function(){c(i.apply(null,arguments))},u.peekKey=h,u.peek=function(){return h(i.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(i.apply(null,arguments))},u.makeCacheKey=i,u.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(u)}},34098:(e,t,r)=>{r.d(t,{t:()=>s});var i=r(37305),n=r(77241);function s(e,t,r){var s,a,o,l,u=!1;return e&&"object"==typeof e?(l=void 0===(s=e.bufferSize)?1/0:s,t=void 0===(a=e.windowTime)?1/0:a,u=void 0!==(o=e.refCount)&&o,r=e.scheduler):l=null!=e?e:1/0,(0,n.u)({connector:function(){return new i.m(l,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},35570:(e,t,r)=>{var i;r.d(t,{Ll:()=>l,aD:()=>a,aZ:()=>n,cE:()=>i,ou:()=>s});
1class n{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class s{constructor(e,t,r,i,n,s){this.kind=e,this.start=t,this.end=r,this.line=i,this.column=n,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let a={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},o=new Set(Object.keys(a));function l(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(i||(i={}))},37305:(e,t,r)=>{r.d(t,{m:()=>a});var i=r(71450),n=r(31536),s=r(91239),a=function(e){function t(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=s.U);var n=e.call(this)||this;return n._bufferSize=t,n._windowTime=r,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,r),n}return(0,i.C6)(t,e),t.prototype.next=function(t){var r=this.isStopped,i=this._buffer,n=this._infiniteTimeWindow,s=this._timestampProvider,a=this._windowTime;!r&&(i.push(t),n||i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),n=0;n<i.length&&!e.closed;n+=r?1:2)e.next(i[n]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,i=this._infiniteTimeWindow,n=(i?1:2)*e;if(e<1/0&&n<r.length&&r.splice(0,r.length-n),!i){for(var s=t.now(),a=0,o=1;o<r.length&&r[o]<=s;o+=2)a=o;a&&r.splice(0,a+1)}},t}(n.B)},38750:(e,t,r)=>{r.d(t,{u:()=>i});function i(e){return e.alias?e.alias.value:e.name.value}},39097:(e,t,r)=>{r.d(t,{T:()=>i});function i(e){return"function"==typeof e}},40391:(e,t,r)=>{r.d(t,{U:()=>i});function i(e,t){if(!e)throw Error(t)}},41449:(e,t,r)=>{r.d(t,{Kn:()=>l,yU:()=>o,Uv:()=>u});var i=r(71450),n=r(39097),s=(0,r(10899).L)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}),a=r(12668),o=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,a,o,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=(0,i.Ju)(l),h=u.next();!h.done;h=u.next())h.value.remove(this)}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else l.remove(this);var f=this.initialTeardown;
1if((0,n.T)(f))try{f()}catch(e){o=e instanceof s?e.errors:[e]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=(0,i.Ju)(d),y=p.next();!y.done;y=p.next()){var m=y.value;try{c(m)}catch(e){o=null!=o?o:[],e instanceof s?o=(0,i.fX)((0,i.fX)([],(0,i.zs)(o)),(0,i.zs)(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{y&&!y.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}}if(o)throw new s(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)c(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,a.o)(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&(0,a.o)(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}
1(),l=o.EMPTY;function u(e){return e instanceof o||e&&"closed"in e&&(0,n.T)(e.remove)&&(0,n.T)(e.add)&&(0,n.T)(e.unsubscribe)}function c(e){(0,n.T)(e)?e():e.unsubscribe()}},45907:(e,t,r)=>{r.d(t,{x:()=>s});var i=r(69899),n=r(39097);function s(e){return(0,n.T)(null==e?void 0:e[i.l])}},46796:(e,t,r)=>{r.d(t,{Ms:()=>v,vU:()=>d});var i=r(71450),n=r(39097),s=r(41449),a=r(29846),o=r(55180);function l(){}var u=c("C",void 0,void 0);function c(e,t,r){return{kind:e,value:t,error:r}}var h=r(14192),f=r(75968),d=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,s.Uv)(t)&&t.add(r)):r.destination=w,r}return(0,i.C6)(t,e),t.create=function(e,t,r){return new v(e,t,r)},t.prototype.next=function(e){this.isStopped?g(c("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?g(c("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?g(u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(s.yU),p=Function.prototype.bind;function y(e,t){return p.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){b(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){b(e)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){b(e)}},e}(),v=function(e){function t(t,r,i){var s,o,l=e.call(this)||this;return(0,n.T)(t)||!t?s={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=i?i:void 0}:l&&a.$.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},s={next:t.next&&y(t.next,o),error:t.error&&y(t.error,o),complete:t.complete&&y(t.complete,o)}):s=t,l.destination=new m(s),l}return(0,i.C6)(t,e),t}(d);function b(e){a.$.useDeprecatedSynchronousErrorHandling?(0,f.l)(e):(0,o.m)(e)}function g(e,t){var r=a.$.onStoppedNotification;r&&h.f.setTimeout(function(){return r(e,t)})}var w={closed:!0,next:l,error:function(e){throw e},complete:l}},47211:(e,t,r)=>{r.d(t,{w:()=>i});var i=new(r(19837)).c(function(e){return e.complete()})},48420:(e,t,r)=>{r.d(t,{P:()=>N});var i=r(22443),n=r(73820);class s extends i.C{constructor(e={}){super((t,r)=>{let i=t.client,s=i.queryManager.clientOptions,a=t.getContext();{let{name:r,version:i,transport:o="headers"}=(0,n.o)({},s.clientAwareness,e.clientAwareness,a.clientAwareness);"headers"===o&&t.setContext(({headers:e})=>({headers:(0,n.o)({"apollographql-client-name":r,"apollographql-client-version":i},e)}))}{let{transport:r="extensions"}=(0,n.o)({},s.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,n.o)({clientLibrary:{name:"@apollo/client",version:i.version}},t.extensions)),"headers"===r&&t.setContext(({headers:e})=>({headers:(0,n.o)({"apollographql-library-name":"@apollo/client","apollographql-library-version":i.version},e)}))}return r(t)})}}var a=r(19837),o=r(50424),l=r(50339);function u(e,t){return(0,l.V)(e)?.operation===t}var c=r(24108),h=r(18782),f=r(3462),d=r(9334),p=r(5270),y=r(91647);class m extends Error{static is(e){return(0,y.t)(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,y.w)(this),Object.setPrototypeOf(this,m.prototype)}}class v extends Error{static is(e){return(0,y.t)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,y.w)(this),Object.setPrototypeOf(this,v.prototype)}}var b=r(72292);let{hasOwnProperty:g}=Object.prototype;async function*w(e){let t,r=new TextDecoder("utf-8"),i=e.headers?.get("content-type"),n=i?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),s="\r\n--"+(n?n[1]??n[2]??n[3]??"-":"-"),a="";(0,f.V1)(e.body&&"function"==typeof e.body.getReader,62);
1let o=e.body.getReader(),l=!1,u=!1,c=()=>u&&"-"==a[0]&&"-"==a[1];try{for(;!l;){({value:t,done:l}=await o.read());let e="string"==typeof t?t:r.decode(t),i=a.length-s.length+1,n=(a+=e).indexOf(s,i);for(;n>-1&&!c();){let e;u=!0,[e,a]=[a.slice(0,n),a.slice(n+s.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let i=e.slice(0,r).trim().toLowerCase(),n=e.slice(r+1).trim();t[i]=n}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let i=e.slice(t);i&&(yield i),n=a.indexOf(s)}if(c())return}throw Error("premature end of multipart body")}finally{o.cancel()}}async function S(e,t){for await(let r of w(e)){let i=O(e,r);if(0!=Object.keys(i).length)if((0,b.U)(i)&&"payload"in i){if(1===Object.keys(i).length&&null===i.payload)return;let e={...i.payload};"errors"in i&&(e.extensions={...e.extensions,[d.K$]:new p.d(i.errors??[])}),t(e)}else t(i)}}function O(e,t){if(e.status>=300)throw new m(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new v(r,{response:e,bodyText:t})}}var k=r(74742);let E={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},T=(e,t)=>t(e),_=(0,h.n)(()=>fetch);function x(){}class C extends i.C{constructor(e={}){let{uri:t="/graphql",fetch:r,print:i=T,includeExtensions:s,preserveHeaderCase:l,useGETForQueries:d,includeUnusedVariables:p=!1,...y}=e;c.g&&(0,f.V1)(r||_||"undefined"!=typeof fetch,61);let b={http:(0,n.o)({includeExtensions:s,preserveHeaderCase:l}),options:y.fetchOptions,credentials:y.credentials,headers:y.headers};super(e=>{let n=((e,t)=>{let r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")})(e,t),s=e.getContext(),l={...s.http};u(e.query,"subscription")&&(l.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...l.accept||[]]);let{options:c,body:f}=function(e,t,...r){let i={},n={};r.forEach(e=>{i={...i,...e.options,headers:{...i.headers,...e.headers}},e.credentials&&(i.credentials=e.credentials),i.headers.accept=(e.http?.accept||[]).concat(i.headers.accept).join(","),n={...n,...e.http}}),i.headers=function(e,t){if(!t){let t={};
1return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let i={};return Object.keys(r).forEach(e=>{i[r[e].originalName]=r[e].value}),i}(i.headers,n.preserveHeaderCase);let{operationName:s,extensions:a,variables:o,query:l}=e,u={operationName:s,variables:o};return n.includeExtensions&&Object.keys(a||{}).length&&(u.extensions=a),n.includeQuery&&(u.query=t(l,k.y)),{options:i,body:u}}(e,i,E,b,{http:l,options:s.fetchOptions,credentials:s.credentials,headers:s.headers});f.variables&&!p&&(f.variables=function(e,t){let r={...e},i=new Set(Object.keys(e));return(0,o.YR)(t,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&i.delete(e.name.value)}}),i.forEach(e=>{delete r[e]}),r}(f.variables,e.query));let y=new AbortController,w=()=>{y=void 0};if(c.signal){let e=c.signal,t=()=>{y?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),w=()=>{y?.signal.removeEventListener("abort",w),y=void 0,e.removeEventListener("abort",t),w=x},y.signal.addEventListener("abort",w,{once:!0})}return c.signal=y.signal,d&&!u(e.query,"mutation")&&(c.method="GET"),new a.c(t=>{if("GET"===c.method){let{newURI:e,parseError:t}=function(e,t){let r=[],i=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}i("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}i("extensions",e)}let n="",s=e,a=e.indexOf("#");-1!==a&&(n=e.substr(a),s=e.substr(0,a));let o=-1===s.indexOf("?")?"?":"&";return{newURI:s+o+r.join("&")+n}}(n,f);if(t)throw t;n=e}else c.body=JSON.stringify(f);let i=r||(0,h.n)(()=>fetch)||_,s=t.next.bind(t);return i(n,c).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?S(t,s):(function(e){return t=>t.text().then(r=>{let i=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new v(r,{response:e,bodyText:t})}return O(e,t)}(t,r);if(!Array.isArray(i)&&!g.call(i,"data")&&!g.call(i,"errors"))throw new m(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return i})})(e)(t).then(s)}).then(()=>{w(),t.complete()}).catch(e=>{w(),t.error(e)}),()=>{y&&y.abort()}})})}}class N extends i.C{constructor(e={}){let{left:t,right:r,request:n}=i.C.from([new s(e),new C(e)]);super(n),Object.assign(this,{left:t,right:r})}}},48872:(e,t,r)=>{function i(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let i=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,i)}else if(Array.isArray(t)){var n=t,s=i;if(0===n.length)return"[]";if(s.length>2)return"[Array]";let r=Math.min(10,n.length),a=n.length-r,o=[];for(let t=0;t<r;++t)o.push(e(n[t],s));return 1===a?o.push("... 1 more item"):a>1&&o.push(`... ${a} more items`),"["+o.join(", ")+"]"}var a=t,o=i;let l=Object.entries(a);return 0===l.length?"{}":o.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(a)+"]":"{ "+l.map(([t,r])=>t+": "+e(r,o)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}r.d(t,{N:()=>i})},49167:(e,t,r)=>{r.d(t,{v:()=>n});let i=new Map;function n(e){let t=i.get(e)||1;return i.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}},50339:(e,t,r)=>{r.d(t,{V:()=>n});var i=r(20824);function n(e){return(0,i.s)(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}},50424:(e,t,r)=>{r.d(t,{YR:()=>l,sP:()=>o});var i=r(40391),n=r(48872),s=r(35570),a=r(11619);let o=Object.freeze({});function l(e,t,r=s.aD){let u,c,h,f=new Map;for(let e of Object.values(a.b))f.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let d=Array.isArray(e),p=[e],y=-1,m=[],v=e,b=[],g=[];do{var w,S,O;let e,a=++y===p.length,l=a&&0!==m.length;if(a){if(c=0===g.length?void 0:b[b.length-1],v=h,h=g.pop(),l)if(d){v=v.slice();let e=0;for(let[t,r]of m){let i=t-e;null===r?(v.splice(i,1),e++):v[i]=r}}else for(let[e,t]of(v={...v},m))v[e]=t;y=u.index,p=u.keys,m=u.edits,d=u.inArray,u=u.prev}else if(h){if(null==(v=h[c=d?y:p[y]]))continue;b.push(c)}if(!Array.isArray(v)){(0,s.Ll)(v)||(0,i.U)(!1,`Invalid AST Node: ${(0,n.N)(v)}.`);let r=a?null==(w=f.get(v.kind))?void 0:w.leave:null==(S=f.get(v.kind))?void 0:S.enter;if((e=null==r?void 0:r.call(t,v,c,h,b,g))===o)break;if(!1===e){if(!a){b.pop();continue}}
1else if(void 0!==e&&(m.push([c,e]),!a))if((0,s.Ll)(e))v=e;else{b.pop();continue}}void 0===e&&l&&m.push([c,v]),a?b.pop():(u={inArray:d,index:y,keys:p,edits:m,prev:u},p=(d=Array.isArray(v))?v:null!=(O=r[v.kind])?O:[],y=-1,m=[],h&&g.push(h),h=v)}while(void 0!==u);return 0!==m.length?m[m.length-1][1]:e}},50933:(e,t,r)=>{r.d(t,{L:()=>i});function i(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},51777:(e,t,r)=>{r.d(t,{n:()=>i});function i(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}},52511:(e,t,r)=>{r.d(t,{d:()=>n});var i=r(50424);function n(e,t,r){let n=new Set(e),s=n.size;return(0,i.YR)(t,{Directive(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.sP}}),r?!n.size:n.size<s}},53957:(e,t,r)=>{r.d(t,{m:()=>s});var i=r(19837),n=r(22443);class s extends n.C{constructor(e){super((t,r)=>{let{...n}=t;return Object.defineProperty(n,"client",{enumerable:!1,value:t.client}),new i.c(i=>{let s=!1;return Promise.resolve(n).then(r=>e(t.getContext(),r)).then(t.setContext).then(()=>{s||r(t).subscribe(i)}).catch(i.error.bind(i)),()=>{s=!0}})})}}},55137:(e,t,r)=>{function i(){}r.d(t,{l:()=>o});let n="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},s="undefined"!=typeof WeakMap?WeakMap:Map,a="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:i,unregister:i}};class o{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new s,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new n(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},55180:(e,t,r)=>{r.d(t,{m:()=>s});var i=r(29846),n=r(14192);function s(e){n.f.setTimeout(function(){var t=i.$.onUnhandledError;if(t)t(e);else throw e})}},55575:(e,t,r)=>{function i(e){return 9===e||32===e}function n(e){return e>=48&&e<=57}function s(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return s(e)||95===e}function o(e){return s(e)||n(e)||95===e}r.d(t,{i0:()=>i,un:()=>a,xr:()=>o,yp:()=>n})},56312:(e,t,r)=>{r.d(t,{A:()=>o,V:()=>l});var i=r(55137),n=r(66278);let s=new WeakSet;function a(e){!(e.size<=(e.max||-1))&&(s.has(e)||(s.add(e),setTimeout(()=>{e.clean(),s.delete(e)},100)))}let o=function(e,t){let r=new i.l(e,t);return r.set=function(e,t){let r=i.l.prototype.set.call(this,e,t);return a(this),r},r},l=function(e,t){let r=new n.C(e,t);return r.set=function(e,t){let r=n.C.prototype.set.call(this,e,t);return a(this),r},r}},60488:(e,t,r)=>{r.d(t,{s:()=>i});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},61783:(e,t,r)=>{r.d(t,{J:()=>function e(t,r,s,a){if(s.kind===i.b.INT||s.kind===i.b.FLOAT)t[r.value]=Number(s.value);else if(s.kind===i.b.BOOLEAN||s.kind===i.b.STRING)t[r.value]=s.value;else if(s.kind===i.b.OBJECT){let i={};s.fields.map(t=>e(i,t.name,t.value,a)),t[r.value]=i}else if(s.kind===i.b.VARIABLE){let e=(a||{})[s.name.value];t[r.value]=e}else if(s.kind===i.b.LIST)t[r.value]=s.values.map(t=>{let i={};return e(i,r,t,a),i[r.value]});else if(s.kind===i.b.ENUM)t[r.value]=s.value;else if(s.kind===i.b.NULL)t[r.value]=null;else throw(0,n.vA)(19,r.value,s.kind)}});var i=r(11619),n=r(3462)},63704:(e,t,r)=>{r.d(t,{T:()=>s});var i=r(96948),n=r(28400);function s(e,t){return(0,i.N)(function(r,i){var s=0;r.subscribe((0,n._)(i,function(r){i.next(e.call(t,r,s++))}))})}},64805:(e,t,r)=>{r.d(t,{l:()=>n});var i=r(73820);function n(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)({...e&&e.variables,...t.variables})})}},65481:(e,t,r)=>{r.d(t,{H:()=>n});var i=r(3462);function n(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let n=t&&t[r];return(0,i.V1)(n,9,r),n||null}default:return null}}},66278:(e,t,r)=>{function i(){}r.d(t,{C:()=>n});
1class n{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},66572:(e,t,r)=>{r.d(t,{D_:()=>n});let i={};function n(e,t){i[e]=t}},66628:(e,t,r)=>{r.d(t,{c:()=>i});let i=Array.isArray},68432:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(55137),n=r(44),s=r(33566),a=r(20824),o=r(3462),l=r(12477);function u(e){return e}class c{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new c(u,{cache:!1})}static split(e,t,r=c.identity()){return Object.assign(new c(i=>(e(i)?t:r).transformDocument(i),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new n.b;this.performWork=(0,s.LV)(c.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,o.V1)(Array.isArray(r),20),e.lookupArray(r)},max:l.v["documentTransform.cache"],cache:i.l})}}performWork(e){return(0,a.s)(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new c(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}},69899:(e,t,r)=>{r.d(t,{l:()=>i});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},70333:(e,t,r)=>{r.d(t,{z:()=>i});function i(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}},72292:(e,t,r)=>{r.d(t,{U:()=>i});function i(e){return null!==e&&"object"==typeof e}},73044:(e,t,r)=>{r.d(t,{a:()=>h});var i=r(88924),n=r(85935),s=r(70333),a=r(65481),o=r(8481),l=r(82089),u=r(38750),c=r(3800);function h(e,{data:t,...r},{data:h,...d},p){return(0,i.L)(r,d)&&function e(t,r,n,s){if(r===n)return!0;let o=new Set;return t.selections.every(t=>{if(o.has(t)||(o.add(t),!(0,c.M)(t,s.variables)||f(t)))return!0;if((0,l.d)(t)){let a=(0,u.u)(t),o=r&&r[a],l=n&&n[a],c=t.selectionSet;if(!c)return(0,i.L)(o,l);let h=Array.isArray(o),f=Array.isArray(l);if(h!==f)return!1;if(h&&f){let t=o.length;if(l.length!==t)return!1;for(let r=0;r<t;++r)if(!e(c,o[r],l[r],s))return!1;return!0}return e(c,o,l,s)}{let i=(0,a.H)(t,s.fragmentMap);if(i)return!!f(i)||e(i.selectionSet,r,n,s)}})}((0,o.V)(e).selectionSet,t,h,{fragmentMap:(0,n.J)((0,s.z)(e)),variables:p})}function f(e){return!!e.directives&&e.directives.some(d)}function d(e){return"nonreactive"===e.name.value}},73694:(e,t,r)=>{r.d(t,{y:()=>n});var i=r(39097);function n(e){return(0,i.T)(null==e?void 0:e.then)}},73820:(e,t,r)=>{r.d(t,{o:()=>i});function i(...e){let t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(r=>{let i=e[r];void 0!==i&&(t[r]=i)})}),t}},74073:(e,t,r)=>{r.d(t,{T:()=>n});var i=r(39097);function n(e){return Symbol.asyncIterator&&(0,i.T)(null==e?void 0:e[Symbol.asyncIterator])}},74742:(e,t,r)=>{let i;r.d(t,{y:()=>g});var n=r(92498);let s=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return o[e.charCodeAt(0)]}let o=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var l=r(50424);let u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=p(e.variableDefinitions)?f("(\n",c(e.variableDefinitions,"\n"),"\n)"):f("(",c(e.variableDefinitions,", "),")"),r=f("",e.description,"\n")+c([e.o
1peration,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:i,description:n})=>f("",n,"\n")+e+": "+t+f(" = ",r)+f(" ",c(i," "))},SelectionSet:{leave:({selections:e})=>h(e)},Field:{leave({alias:e,name:t,arguments:r,directives:i,selectionSet:n}){let s=f("",e,": ")+t,a=s+f("(",c(r,", "),")");return a.length>80&&(a=s+f("(\n",d(c(r,"\n")),"\n)")),c([a,c(i," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+f(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",f("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:n,description:s})=>f("",s,"\n")+`fragment ${e}${f("(",c(r,", "),")")} `+`on ${t} ${f("",c(i," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.yo)(e):`"${e.replace(s,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+f("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>f("",e,"\n")+c(["schema",c(t," "),h(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>f("",e,"\n")+c(["type",t,f("implements ",c(r," & ")),c(i," "),h(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:i,directives:n})=>f("",e,"\n")+t+(p(r)?f("(\n",d(c(r,"\n")),"\n)"):f("(",c(r,", "),")"))+": "+i+f(" ",c(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:i,directives:n})=>f("",e,"\n")+c([t+": "+r,f("= ",i),c(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>f("",e,"\n")+c(["interface",t,f("implements ",c(r," & ")),c(i," "),h(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:i})=>f("",e,"\n")+c(["union",t,c(r," "),f("= ",c(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:i})=>f("",e,"\n")+c(["enum",t,c(r," "),h(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:i})=>f("",e,"\n")+c(["input",t,c(r," "),h(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:i,repeatable:n,locations:s})=>f("",e,"\n")+"directive @"+t+(p(r)?f("(\n",d(c(r,"\n")),"\n)"):f("(",c(r,", "),")"))+f(" ",c(i," "))+(n?" repeatable":"")+" on "+c(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),h(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>c(["extend type",e,f("implements ",c(t," & ")),c(r," "),h(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>c(["extend interface",e,f("implements ",c(t," & ")),c(r," "),h(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),f("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),h(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),h(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>c(["extend directive @"+e,c(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>c([e,f(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>c([e,f(".",t),f("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>c(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>c(["@",e,f("(",t,":)")])}};function c(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function h(e){return f("{\n",d(c(e,"\n")),"\n}")}function f(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function d(e){return f(" ",e.replace(/\n/g,"\n "))}function p(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var y=r(24108),m=r(56312),v=r(66572),b=r(12477);let g=Object.assign(e=>{let t=i.get(e);!t&&(t=(0,l.YR)(e,u),i.set(e,t));return t},{reset(){i=new m.A(b.v.print||2e3)}});g.reset(),y.g&&(0,v.D_)("print",()=>i?i.size:0)},75968:(e,t,r)=>{r.d(t,{Y:()=>s,l:()=>a});var i=r(29846),n=null;function s(e){if(i.$.useDeprecatedSynchronousErrorHandling){var t=!n;if(t&&(n={errorThrown:!1,error:null}),e(),t){var r=n,s=r.errorThrown,a=r.error;if(n=null,s)throw a}}else e()}function a(e){i.$.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=e)}},77163:(e,t,r)=>{r.d(t,{D:()=>i});function i(e){return e}},77241:(e,t,r)=>{r.d(t,{u:()=>l});var i=r(71450),n=r(8286),s=r(31536),a=r(46796),o=r(96948);function l(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new s.B}:t,i=e.resetOnError,l=void 0===i||i,c=e.resetOnComplete,h=void 0===c||c,f=e.resetOnRefCountZero,d=void 0===f||f;return function(e){var t,i,s,c=0,f=!1,p=!1,y=function(){null==i||i.unsubscribe(),i=void 0},m=function(){y(),t=s=void 0,f=p=!1},v=function(){var e=t;m(),null==e||e.unsubscribe()};return(0,o.N)(function(e,o){c++,p||f||y();var b=s=null!=s?s:r();o.add(function(){0!=--c||p||f||(i=u(v,d))}),b.subscribe(o),!t&&c>0&&(t=new a.Ms({next:function(e){return b.next(e)},error:function(e){p=!0,y(),i=u(m,l,e),b.error(e)},complete:function(){f=!0,y(),i=u(m,h),b.complete()}}),(0,n.Tg)(e).subscribe(t))})(e)}}function u(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(!0===t)return void e();if(!1!==t){var o=new a.Ms({next:function(){o.unsubscribe(),e()}});return(0,n.Tg)(t.apply(void 0,(0,i.fX)([],(0,i.zs)(r)))).subscribe(o)}}},79312:(e,t,r)=>{r.d(t,{s:()=>l,y:()=>o});var i=r(11619),n=r(33566),s=r(24108),a=r(3462);let o=new n.DX;function l(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(s.g&&r&&(r.value.kind===i.b.VARIABLE?s.g&&a.V1.warn(44):r.value.kind!==i.b.STRING?s.g&&a.V1.warn(45):"migrate"!==r.value.value&&s.g&&a.V1.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}},82089:(e,t,r)=>{r.d(t,{d:()=>i});function i(e){return"Field"===e.kind}},82241:(e,t,r)=>{r.d(t,{X:()=>i});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},85935:(e,t,r)=>{r.d(t,{J:()=>i});function i(e=[]){let t={};
1return e.forEach(e=>{t[e.name.value]=e}),t}},87842:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(3462),n=r(50339);function s(e){let t=(0,n.V)(e);return(0,i.V1)(t&&"query"===t.operation,13),t}},88924:(e,t,r)=>{r.d(t,{L:()=>o});let{toString:i,hasOwnProperty:n}=Object.prototype,s=Function.prototype.toString,a=new Map;function o(e,t){try{return function e(t,r){if(t===r)return!0;let a=i.call(t);if(a!==i.call(r))return!1;switch(a){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(h(t,r))return!0;let i=l(t),s=l(r),a=i.length;if(a!==s.length)return!1;for(let e=0;e<a;++e)if(!n.call(r,i[e]))return!1;for(let n=0;n<a;++n){let s=i[n];if(!e(t[s],r[s]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(h(t,r))return!0;let i=t.entries(),n="[object Map]"===a;for(;;){let t=i.next();if(t.done)break;let[s,a]=t.value;if(!r.has(s)||n&&!e(a,r.get(s)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=s.call(t);if(e!==s.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,c)}}return!1}(e,t)}finally{a.clear()}}function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}let c="{ [native code] }";function h(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},89526:(e,t,r)=>{r.d(t,{m:()=>n});var i=r(39097);function n(e){return e&&(0,i.T)(e.schedule)}},91239:(e,t,r)=>{r.d(t,{U:()=>i});var i={now:function(){return(i.delegate||Date).now()},delegate:void 0}},91647:(e,t,r)=>{function i(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function n(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}r.d(t,{t:()=>i,w:()=>n})},92498:(e,t,r)=>{r.d(t,{OC:()=>n,yo:()=>s});var i=r(55575);function n(e){var t,r;let n=Number.MAX_SAFE_INTEGER,s=null,a=-1;for(let t=0;t<e.length;++t){let o=e[t],l=function(e){let t=0;for(;t<e.length&&(0,i.i0)(e.charCodeAt(t));)++t;return t}(o);l!==o.length&&(s=null!=(r=s)?r:t,a=t,0!==t&&l<n&&(n=l))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!=(t=s)?t:0,a+1)}function s(e,t){let r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),s=1===n.length,a=n.length>1&&n.slice(1).every(e=>0===e.length||(0,i.i0)(e.charCodeAt(0))),o=r.endsWith('\\"""'),l=e.endsWith('"')&&!o,u=e.endsWith("\\"),c=l||u,h=!(null!=t&&t.minimize)&&(!s||e.length>70||c||a||o),f="",d=s&&(0,i.i0)(e.charCodeAt(0));return(h&&!d||a)&&(f+="\n"),f+=r,(h||c)&&(f+="\n"),'"""'+f+'"""'}},96948:(e,t,r)=>{r.d(t,{N:()=>n});var i=r(39097);function n(e){return function(t){if((0,i.T)(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}},97210:(e,t,r)=>{function i(){throw Error("only supported in development mode")}r.d(t,{cM:()=>a,ep:()=>s,tQ:()=>n});let n=i,s=i,a=i},97410:(e,t,r)=>{r.d(t,{r:()=>i});let i="4.2.2"},99455:(e,t,r)=>{r.d(t,{l:()=>s});var i=r(60488),n=r(39097);function s(e){return(0,n.T)(e[i.s])}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.