1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4241],{253:(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)}`}},1902:(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.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={}))},2173:(e,t,r)=>{r.d(t,{of:()=>s});var i=r(41937),n=r(17171);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,i.lI)(e);return(0,n.H)(e,r)}},3446:(e,t,r)=>{r.d(t,{s:()=>i});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},4134:(e,t,r)=>{r.d(t,{_:()=>n});var i=r(15343);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(37084).vU)},5562:(e,t,r)=>{r.d(t,{N:()=>n});var i=r(48555);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")}}},6503:(e,t,r)=>{r.d(t,{X:()=>i});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},6601:(e,t,r)=>{r.d(t,{w:()=>i});var i=new(r(31390)).c(function(e){return e.complete()})},7235:(e,t,r)=>{r.d(t,{Fq:()=>i}),TransformStream;var i=class extends TransformStream{constructor(){super({transform(e,t){"string"!=typeof e&&(e=new TextDecoder().decode(e)),t.enqueue(JSON.parse(e))}})}}},8470:(e,t,r)=>{r.d(t,{Hp:()=>f,Fd:()=>c,CY:()=>h,Qh:()=>u});var i=r(57881),n=r(71806),s=r(34625),a=r(28627);let o=Symbol.for("apollo.internal.queryRef"),l=Symbol.for("apollo.internal.refPromise");function u(e){return{[o]:e,[l]:e.promise}}function c(e){return e[o]}function h(e,t){e[l]=t}let d=["context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"];class f{result;key={};observable;promise;subscription;listeners=new Set;autoDisposeTimeoutId;resolve;reject;references=0;softReferences=0;constructor(e,t){this.handleNext=this.handleNext.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,t.onDispose&&(this.onDispose=t.onDispose),this.setResult(),this.subscribeToQuery();let r=()=>{this.references||(this.autoDisposeTimeoutId=setTimeout(this.dispose,t.autoDisposeTimeoutMs??3e4))};this.promise.then(r,r)}get disposed(){return this.subscription.closed}get watchQueryOptions(){return this.observable.options}reinitialize(){let{observable:e}=this,t=this.watchQueryOptions.fetchPolicy,r="no-cache"===t||"standby"===t;try{r?e.applyOptions({fetchPolicy:"standby"}):(e.reset(),e.applyOptions({fetchPolicy:"cache-first"})),r||this.setResult(),this.subscribeToQuery()}finally{e.applyOptions({fetchPolicy:t})}}retain(){this.references++,clearTimeout(this.autoDisposeTimeoutId);let e=!1;return()=>{e||(e=!0,this.references--,setTimeout(()=>{this.references||this.dispose()}))}}softRetain(){this.softReferences++;let e=!1;return()=>{e||(e=!0,this.softReferences--,setTimeout(()=>{this.softReferences||this.references||this.dispose()}))}}didChangeOptions(e){return d.some(t=>t in e&&!(0,i.L)(this.watchQueryOptions[t],e[t]))}applyOptions(e){let{fetchPolicy:t}=this.watchQueryOptions;return"standby"===t&&t!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):this.observable.applyOptions(e),this.promise}listen(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}refetch(e){return this.initiateFetch(this.observable.refetch(e))}fetchMore(e){return this.initiateFetch(this.observable.fetchMore(e))}dispose(){this.subscription.unsubscribe()}onDispose(){}handleNext(e){if("pending"===this.promise.status)void 0===e.data&&(e.data=this.result.data,e.data&&(e.dataState="complete")),this.shouldReject(e)?this.reject?.(e.error):(this.result=e,this.resolve?.(e));else{if(e.data===this.result.data&&e.networkStatus===this.result.networkStatus)return;void 0===e.data&&(e.data=this.result.data),this.shouldReject(e)?this.promise=function(e){let t=Promise.reject(e);return t.catch(()=>{}),t.status="rejected",t.reason=e,t}(e.error):(this.result=e,this.promise=(0,s.$)(e)),this.deliver(this.promise)}}
1deliver(e){this.listeners.forEach(t=>t(e))}initiateFetch(e){return this.promise=this.createPendingPromise(),this.promise.catch(()=>{}),e.then(()=>{setTimeout(()=>{"pending"===this.promise.status&&(this.result=this.observable.getCurrentResult(),this.resolve?.(this.result))})}).catch(e=>this.reject?.(e)),e}subscribeToQuery(){this.subscription=this.observable.pipe((0,n.p)(e=>!(0,i.L)(e,this.result))).subscribe(this.handleNext),this.subscription.add(this.onDispose)}setResult(){let e=this.observable.getCurrentResult();(0,i.L)(e,this.result)||(this.result=e,this.promise=e.data?(0,s.$)(e):this.createPendingPromise())}shouldReject(e){let{errorPolicy:t="none"}=this.watchQueryOptions;return e.error&&"none"===t}createPendingPromise(){return(0,a.b)(new Promise((e,t)=>{this.resolve=e,this.reject=t}))}}},10124:(e,t,r)=>{r.d(t,{y:()=>n});var i=r(48555);function n(e){return(0,i.T)(null==e?void 0:e.then)}},10399:(e,t,r)=>{r.d(t,{D:()=>eK});var i=r(57881),n=r(41184),s=r(58347),a=r(29470),o=r(29850);function l(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}var u=r(33366),c=r(1902),h=r(83881);let d={kind:c.b.FIELD,name:{kind:c.b.NAME,value:"__typename"}},f=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,d]}}}})},{added:e=>e===d});var p=r(55446),y=r(24012),m=r(18828),v=r(28567),b=r(31390),g=r(25134),E=r(24338);function w(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 O{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}watchFragment(e){let t,{fragment:r,fragmentName:i,from:n,optimistic:s=!0,...a}=e,o=this.getFragmentDoc(r,i),l=void 0===n||"string"==typeof n?n:this.identify(n);if(p.g){let e=i||(0,g.E)(r).name.value;!l&&p.g&&m.V1.warn(109,e)}let u={...a,returnPartialData:!0,id:l,query:o,optimistic:s};return new b.c(r=>this.watch({...u,immediate:!0,callback:i=>{let n=i.result;if(null===n&&(n={}),t&&(0,E.a)(o,{data:t.result},{data:n},e.variables))return;let s={data:n,dataState:i.complete?"complete":"partial",complete:!!i.complete};i.missing&&(s.missing=i.missing.missing),t={...i,result:n},r.next(s)}}))}getFragmentDoc=(0,n.LV)(w,{max:s.v["cache.fragmentQueryDocuments"]||1e3,cache:v.l});readFragment(e,t=!!e.optimistic){return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({id:e,data:t,fragment:r,fragmentName:i,...n}){return this.write(Object.assign(n,{query:this.getFragmentDoc(r,i),dataId:e,result:t}))}updateQuery(e,t){return this.batch({update(r){let i=r.readQuery(e),n=t(i);return null==n?i:(r.writeQuery({...e,data:n}),n)}})}updateFragment(e,t){return this.batch({update(r){let i=r.readFragment(e),n=t(i);return null==n?i:(r.writeFragment({...e,data:n}),n)}})}}p.g&&(O.prototype.getMemoryInternals=y.tQ);var k=r(19158),T=r(37722);let{hasOwnProperty:S}=Object.prototype,_=function(e,t,r){return this.merge(e[r],t[r])};class N{reconciler;constructor(e=_){this.reconciler=e}merge(e,t,...r){return(0,T.U)(t)&&(0,T.U)(e)?(Object.keys(t).forEach(i=>
1{if(S.call(e,i)){let n=e[i];if(t[i]!==n){let s=this.reconciler(e,t,i,...r);s!==n&&((e=this.shallowCopyForMerge(e))[i]=s)}}else(e=this.shallowCopyForMerge(e))[i]=t[i]}),e):t}isObject=T.U;pastCopies=new Set;shallowCopyForMerge(e){return(0,T.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 I=r(65145),D=r(89730),C=r(17386),A=r(34019),R=r(94714),F=r(75372),P=r(33209),M=r(28451);let{hasOwnProperty:V}=Object.prototype;function L({__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 j={dataIdFromObject:L,resultCaching:!0},q=/^[_a-z][_0-9a-z]*/i;function U(e){let t=e.match(q);return t?t[0]:e}function Q(e){return(0,T.U)(e)&&!l(e)&&!(0,C.c)(e)}function B(e,t){let r=(0,P.J)((0,M.z)(e));return{fragmentMap:r,lookupFragment(e){let i=r[e];return!i&&t&&(i=t.lookup(e)),i||null}}}let z={},W=()=>z,$={};class K{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),V.call(this.data,e)){let r=this.data[e];if(r&&V.call(r,t))return r[t]}return"__typename"===t&&V.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof H?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),V.call(this.data,e))?this.data[e]:this instanceof H?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,95);let s=new N(Z).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=U(t);r===t||this.policies.hasKeyArgs(s.__typename,r)||(e[r]=1),void 0!==s[t]||this instanceof H||delete s[t]}}),e.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let i=this.lookup(e);if(i){let n={},s=!1,a=!0,o={DELETE:z,INVALIDATE:$,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})};
1if(Object.keys(i).forEach(u=>{let c=U(u),h=i[u];if(void 0===h)return;let d="function"==typeof t?t:t[u]||(r?void 0:t[c]);if(d){let t=d===W?z:d((0,I.G)(h),{...o,fieldName:c,storeFieldName:u,storage:this.getStorage(e,u)});if(t===$)this.group.dirty(e,u);else if(t===z&&(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(96,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(97,r);break}}}}}void 0!==h&&(a=!1)}),s)return this.merge(e,n),a&&(this instanceof H?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]:W}:W,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(V.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof H&&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=>{V.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&&V.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 H?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=>{V.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 H;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!V.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,T.U)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,T.U)(r)&&i.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,I.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 Y{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 k.b}depend(e,t){if(this.d){this.d(t+"#"+e);let r=U(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 G(e,t){ee(e)&&e.group.depend(t,"__exists")}class J extends K{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new Y(t)),r&&this.replace(r)}stump=new X(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new k.b;getStorage(){return this.storageTrie.lookupArray(arguments)}}K.Root=J;class H extends K{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 H(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 V.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 X extends H{constructor(e){super("EntityStore.Stump",e,()=>{},new Y(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function Z(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(35670),er=r(37537);function ei(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:i})=>(0,er.J)(r,e,i,t)),r}return null}let en=["connection","include","skip","client","rest","export","nonreactive"],es=a.M,ea=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=es(i);if("{}"!==n)return`${r.connection.key}(${n})`}return r.connection.key}let i=e;if(t){let e=es(t);"{}"!==e&&(i+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===en.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?i+=`@${e}(${es(r[e])})`:i+=`@${e}`)}),i},{setStringify(e){let t=es;return es=e,t}});var eo=r(60317),el=r(19774);let eu={};function ec(e){let t=JSON.stringify(e);return eu[t]||(eu[t]={})}function eh(e){let t=ec(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let i=(e,t)=>r.readField(t,e),n=r.keyObject=ef(e,e=>{let n=ey(r.storeObject,e,i);return void 0===n&&t!==r.storeObject&&V.call(t,e[0])&&(n=ey(t,e,ep)),(0,m.V1)(void 0!==n,98,e.join("."),t),n});return`${r.typename}:${JSON.stringify(n)}`})}function ed(e){let t=ec(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:i,fieldName:n})=>{let s=JSON.stringify(ef(e,e=>{let n=e[0],s=n.charAt(0);if("@"===s){if(r&&(0,el.E)(r.directives)){let t=n.slice(1),s=r.directives.find(e=>e.name.value===t),a=s&&ei(s,i);return a&&ey(a,e.slice(1))}return}if("$"===s){let t=n.slice(1);if(i&&V.call(i,t)){let r=e.slice(0);return r[0]=t,ey(i,r)}return}if(t)return ey(t,e)}));return(t||"{}"!==s)&&(n+=":"+s),n})}function ef(e,t){let r=new N;return(function e(t){let r=ec(t);if(!r.paths){let i=r.paths=[],n=[];t.forEach((r,s)=>{(0,C.c)(r)?(e(r).forEach(e=>i.push(n.concat(e))),n.length=0):(n.push(r),(0,C.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 ep(e,t){return e[t]}function ey(e,t,r){return r=r||ep,function e(t){return(0,T.U)(t)?(0,C.c)(t)?t.map(e):ef(Object.keys(t).sort(),e=>ey(t,e)):t}(t.reduce(function e(t,i){return(0,C.c)(t)?t.map(t=>e(t,i)):t&&r(t,i)},e))}let em=new n.DX,ev=new WeakMap;function eb(e){let t=ev.get(e);return t||ev.set(e,t={vars:new Set,dep:(0,n.yN)()}),t}function eg(e){eb(e).vars.forEach(t=>t.forgetCache(e))}function eE(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;eb(e).dep.dirty(i),(t=e).broadcastWatches&&t.broadcastWatches()});let n=Array.from(r);r.clear(),n.forEach(t=>t(e))}}else{let e=em.getValue();e&&(n(e),eb(e).dep(i))}return e};i.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let n=i.attachCache=e=>(t.add(e),eb(e).vars.add(i),i);return i.forgetCache=e=>t.delete(e),i}function ew(e){return void 0!==e.args?e.args:e.field?ei(e.field,e.variables):null}let eO=()=>void 0,ek=(e,t)=>t.fieldName,eT=(e,t,{mergeObjects:r})=>r(e,t),eS=(e,t)=>t;class e_{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:L,...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=ex(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,C.c)(t))l=eh(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),V.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?eT:!1===t?eS:e.merge}a(i,t.merge),i.keyFn=!1===n?eO:(0,C.c)(n)?eh(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?ek:(0,C.c)(e)?ed(e):"function"==typeof e?e:i.keyFn,"function"==typeof t&&(i.read=t),a(i,r)}i.read&&i.merge&&(i.keyFn=i.keyFn||ek)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];t!==i&&((0,m.V1)(!i||i===e,99,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(q);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!V.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(100,t,n),s.add(n)),!0;h.forEach(o),l&&c===a.length-1&&function e(t,r,i){return!!(0,T.U)(r)&&((0,C.c)(r)?r.every(r=>e(t,r,i)):t.selections.every(t=>{if((0,A.d)(t)&&(0,R.M)(t,i)){let n=(0,F.u)(t);return V.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=ew(e);for(;u;){let e=u(r,t);if((0,C.c)(e))u=ed(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,er.J)(n[e.name.value],t,i,r))})),s=null,t.arguments&&t.arguments.length&&(s={},t.arguments.forEach(({name:e,value:t})=>(0,er.J)(s,e,t,r))),ea(t.name.value,s,n)):ea(o,ew(e))),!1===i)?o:o===U(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=U(i),s=t.store.getFieldValue(r,i),a=this.getFieldPolicy(e.typename,n),o=a&&a.read;if(o){let n=eN(this,r,e,t,t.store.getStorage(l(r)?r.__ref:r,i));return em.withValue(this.cache,o,[s,n])}return s}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let i=this.getFieldPolicy(e,t),n=i&&i.merge;return!n&&r&&(n=(i=this.getTypePolicy(r))&&i.merge),n}runMergeFunction(e,t,{field:r,typename:i,merge:n},s,a){return n===eT?eI(s.store)(e,t):n===eS?t:(s.overwrite&&(e=void 0),n(e,t,eN(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:s.variables},s,a||{})))}}function eN(e,t,r,i,n){let s=e.getStoreFieldName(r),a=U(s),o=r.variables||i.variables,{toReference:u,canRead:c}=i.store;return{args:ew(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(ex(r,t,o),i),mergeObjects:eI(i.store)}}
1function ex(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},V.call(i,"from")||(i.from=t)),p.g&&void 0===i.from&&p.g&&m.V1.warn(101,(0,eo.p)(Array.from(e))),void 0===i.variables&&(i.variables=r),i}function eI(e){return function(t,r){if((0,C.c)(t)||(0,C.c)(r))throw(0,m.vA)(102);if((0,T.U)(t)&&(0,T.U)(r)){let i=e.getFieldValue(t,"__typename"),n=e.getFieldValue(r,"__typename");if(i&&n&&i!==n)return r;if(l(t)&&Q(r))return e.merge(t.__ref,r),t;if(Q(t)&&l(r))return e.merge(t,r.__ref),r;if(Q(t)&&Q(r))return{...t,...r}}return r}}var eD=r(80434),eC=r(81136),eA=r(52827),eR=r(90183);class eF 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__=eF.prototype}missing}function eP(e){return[e.selectionSet,e.objectOrReference,e.context]}class eM{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=(0,n.LV)(e=>{let t=eP(e),r=this.executeSelectionSet.peek(...t);return r||(G(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:s.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:eP,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=>(G(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,eD.w)((0,eC.A)(t)),...i};let l=x(r),u=this.executeSelectionSet({selectionSet:(0,eA.V)(t).selectionSet,objectOrReference:l,enclosingRef:l,context:{store:e,query:t,policies:o,variables:i,varString:(0,a.M)(i),...B(t,this.config.fragments)}});u.missing&&(s=new eF(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||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=[],d=new N;function p(e,t){return e.missing&&(n=d.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,R.M)(e,s))if((0,A.d)(e)){let s=a.readField({fieldName:e.name.value,field:e,variables:i.variables,from:t},i),o=(0,F.u)(e);void 0===s?f.added(e)||(n=d.merge(n,{[o]:`Can't find field '${e.name.value}' on ${l(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):(0,C.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,eR.H)(e,i.lookupFragment);if(!t&&e.kind===c.b.FRAGMENT_SPREAD)throw(0,m.vA)(103,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 N;for(let n=1;n<r;++n)t=i.merge(t,e[n])}return t}(h),missing:n},b=(0,I.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 N;
1function a(e,t){return e.missing&&(n=s.merge(n,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(i.store.canRead)),{result:t=t.map((t,n)=>null===t?null:(0,C.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,T.U)(r)&&((0,m.V1)(!l(r),104,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 eV=r(79637);let{toString:eL}=Object.prototype;function ej(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 eq{writeToStore(e,t){let{query:r,result:n,dataId:s,variables:o,overwrite:u}=t,c=(0,eV.V)(r),h=new N,d={store:e,written:{},merge:(e,t)=>h.merge(e,t),variables:o={...(0,eD.w)(c),...o},varString:(0,a.M)(o),...B(r,this.fragments),overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},f=this.processSelectionSet({result:n||{},dataId:s,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:d});if(!l(f))throw(0,m.vA)(105,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[U(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=U(r),h="".concat(u,".").concat(c);if(eW.has(h))return;eW.add(h);let d=[];(0,C.c)(a)||(0,C.c)(o)||[a,o].forEach(e=>{let t=n.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),p.g&&m.V1.warn(108,c,u,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",h,{...a},{...o})}(o,n,t,d.store)})}e.merge(r,n)}),e.retain(f.__ref),f}processSelectionSet(e){let{dataId:t,result:r,selectionSet:i,context:n,mergeTree:s}=e,{policies:a}=this.cache,o={},u=t&&a.rootTypenamesById[t]||e$(r,i,n.fragmentMap)||t&&n.store.get(t,"__typename");"string"==typeof u&&(o.__typename=u);let c=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let i=ex(t,o,n.variables);if(l(i.from)){let e=n.incomingById.get(i.from.__ref);if(e){let t=a.readField({...i,from:e.storeObject},n);if(void 0!==t)return t}}return a.readField(i,n)},h=new Set;this.flattenFields(i,r,n,u).forEach((e,t)=>{let i=r[(0,F.u)(t)];if(h.add(t),void 0!==i){let r,n=a.getStoreFieldName({typename:u,fieldName:t.name.value,field:t,variables:e.variables}),h=eQ(s,n),d=this.processFieldValue(i,t,t.selectionSet?ej(e,!1,!1):e,h);t.selectionSet&&(l(d)||Q(d))&&(r=c("__typename",d));let f=a.getMergeFunction(u,t.name.value,r);f?h.info={field:t,typename:u,merge:f}:ez(s,n),o=e.merge(o,{[n]:d})}else!p.g||e.clientOnly||e.deferred||f.added(t)||a.getReadFunction(u,t.name.value)||m.V1.error(106,(0,F.u)(t),r)});try{let[e,s]=a.identify(r,{typename:u,selectionSet:i,fragmentMap:n.fragmentMap,storeObject:o,readField:c});t=t||e,s&&(o=n.merge(o,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 l=n.incomingById.get(t);return l?(l.storeObject=n.merge(l.storeObject,o),l.mergeTree=function e(t,r){if(t===r||!r||eB(r))return t;if(!t||eB(t))return r;let i=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,n=t.map.size&&r.map.size,s={info:i,map:n?new Map:t.map.size?t.map:r.map};if(n){let i=new Set(r.map.keys());t.map.forEach((t,n)=>{s.map.set(n,e(t,r.map.get(n))),i.delete(n)}
1),i.forEach(i=>{s.map.set(i,e(r.map.get(i),t.map.get(i)))})}return s}(l.mergeTree,s),h.forEach(e=>l.fieldNodeSet.add(e))):n.incomingById.set(t,{storeObject:o,mergeTree:eB(s)?void 0:s,fieldNodeSet:h}),e}return o}processFieldValue(e,t,r,i){return t.selectionSet&&null!==e?(0,C.c)(e)?e.map((e,n)=>{let s=this.processFieldValue(e,t,r,eQ(i,n));return ez(i,n),s}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:i}):p.g?function e(t,r){switch(eL.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]:e$(t,e,r.fragmentMap),n=new Map,{policies:s}=this.cache,a=new k.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,R.M)(a,r.variables))return;let{clientOnly:o,deferred:u}=l;if(!(o&&u)&&(0,el.E)(a.directives)&&a.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(o=!0),"defer"===t){let t=ei(e,r.variables);t&&!1===t.if||(u=!0)}}),(0,A.d)(a)){let e=n.get(a);e&&(o=o&&e.clientOnly,u=u&&e.deferred),n.set(a,ej(r,o,u))}else{let n=(0,eR.H)(a,r.lookupFragment);if(!n&&a.kind===c.b.FRAGMENT_SPREAD)throw(0,m.vA)(107,a.name.value);n&&s.fragmentMatches(n,i,t,r.variables)&&e(n.selectionSet,ej(r,o,u))}}))}(e,r),n}applyMerges(e,t,r,i,n){if(e.map.size&&!l(r)){let s,a=!(0,C.c)(r)&&(l(t)||Q(t))?t:void 0,o=r;a&&!n&&(n=[l(a)?a.__ref:a]);let u=(e,t)=>(0,C.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,C.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 eU=[];function eQ(e,t){let{map:r}=e;return r.has(t)||r.set(t,eU.pop()||{map:new Map}),r.get(t)}function eB(e){return!e||!(e.info||e.map.size)}function ez(e,t){let{map:r}=e,i=r.get(t);i&&eB(i)&&(eU.push(i),r.delete(t))}let eW=new Set;function e$(e,t,r){let i;for(let r of t.selections)if((0,A.d)(r)){if("__typename"===r.name.value)return e[(0,F.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=e$(e,(0,eR.H)(t,r).selectionSet,r);if("string"==typeof i)return i}}class eK extends O{init(){let e=this.data=new K.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 eq(this,this.storeReader=new eM({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(V.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,eb(t).vars.forEach(e=>e.attachCache(t))),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&eg(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(V.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(),eg(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}broadcastWatches(e){this.txCount||this.watches.forEach(t=>this.maybeBroadcastWatch(t,e))}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(f),this.assumeImmutableResults=!0,this.makeVar=eE,this.txCount=0,this.config=(0,D.o)(j,e),this.policies=new e_({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}}p.g&&(eK.prototype.getMemoryInternals=y.cM)},10868:(e,t,r)=>{r.d(t,{Kn:()=>l,yU:()=>o,Uv:()=>u});var i=r(15343),n=r(48555),s=(0,r(70993).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(43238),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 d=this.initialTeardown;if((0,n.T)(d))try{d()}catch(e){o=e instanceof s?e.errors:[e]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=(0,i.Ju)(f),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()}},11311:(e,t,r)=>{r.d(t,{N:()=>i});function i(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}},11552:(e,t,r)=>{function i(){}r.d(t,{C:()=>n});class n{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},14274:(e,t,r)=>{r.d(t,{A:()=>o,V:()=>l});var i=r(28567),n=r(11552);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}},14760:(e,t,r)=>{r.d(t,{m:()=>a});var i=r(41063),n=r(18828),s=r(82850);function a(e){let t=i.useContext((0,s.l)()),r=e||t.client;return(0,n.V1)(!!r,28),r}},15343:(e,t,r)=>{r.d(t,{AQ:()=>d,C6:()=>n,Cl:()=>s,Ju:()=>l,N3:()=>h,YH:()=>o,fX:()=>c,sH:()=>a,xN:()=>f,zs:()=>u});var i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return(s=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function a(e,t,r,i){return new(r||(r=Promise))(function(n,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,o)}l((i=i.apply(e,t||[])).next())})}function o(e,t){var r,i,n,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){var u=[o,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(s=0)),s;)try{if(r=1,i&&(n=2&u[0]?i.return:u[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,u[1])).done)return n;switch(i=0,n&&(u=[2&u[0],n.value]),u[0]){case 0:case 1:n=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,i=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!n||u[1]>n[0]&&u[1]<n[3])){s.label=u[1];break}if(6===u[0]&&s.label<n[1]){s.label=n[1],n=u;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(u);break}n[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],i=0}finally{r=n=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function l(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,s=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}function c(e,t,r){if(r||2==arguments.length)for(var i,n=0,s=t.length;n<s;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function d(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(e,t||[]),s=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),i[Symbol.asyncIterator]=function(){return this},i;function a(e,t){n[e]&&(i[e]=function(t){return new Promise(function(r,i){s.push([e,t,r,i])>1||o(e,t)})},t&&(i[e]=t(i[e])))}function o(e,t){try{var r;(r=n[e](t)).value instanceof h?Promise.resolve(r.value.v).then(l,u):c(s[0][2],r)}catch(e){c(s[0][3],e)}}function l(e){o("next",e)}function u(e){o("throw",e)}function c(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}}function f(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=l(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise(function(i,n){var s,a,o;s=i,a=n,o=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){s({value:e,done:o})},a)})}}}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},17128:(e,t,r)=>{r.d(t,{C:()=>s,U:()=>a});var i=r(15343),n=r(48555);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)}},17171:(e,t,r)=>{r.d(t,{H:()=>E});var i=r(43244),n=r(11311),s=r(5562),a=r(4134);function o(e,t){return void 0===t&&(t=0),(0,s.N)(function(r,i){r.subscribe((0,a._)(i,function(r){return(0,n.N)(i,e,function(){return i.next(r)},t)},function(){return(0,n.N)(i,e,function(){return i.complete()},t)},function(r){return(0,n.N)(i,e,function(){return i.error(r)},t)}))})}function l(e,t){return void 0===t&&(t=0),(0,s.N)(function(r,i){i.add(e.schedule(function(){return r.subscribe(i)},t))})}var u=r(31390),c=r(74445),h=r(48555);function d(e,t){if(!e)throw Error("Iterable cannot be null");return new u.c(function(r){(0,n.N)(r,t,function(){var i=e[Symbol.asyncIterator]();(0,n.N)(r,t,function(){i.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}var f=r(66109),p=r(10124),y=r(6503),m=r(44129),v=r(96303),b=r(45615),g=r(17128);function E(e,t){return t?function(e,t){if(null!=e){if((0,f.l)(e))return(0,i.Tg)(e).pipe(l(t),o(t));if((0,y.X)(e))return new u.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,p.y)(e))return(0,i.Tg)(e).pipe(l(t),o(t));if((0,v.T)(e))return d(e,t);if((0,m.x)(e))return new u.c(function(r){var i;return(0,n.N)(r,t,function(){i=e[c.l](),(0,n.N)(r,t,function(){var e,t,n;try{t=(e=i.next()).value,n=e.done}catch(e){r.error(e);return}n?r.complete():r.next(t)},0,!0)}),function(){return(0,h.T)(null==i?void 0:i.return)&&i.return()}});if((0,g.U)(e))return d((0,g.C)(e),t)}throw(0,b.L)(e)}(e,t):(0,i.Tg)(e)}},17386:(e,t,r)=>{r.d(t,{c:()=>i});let i=Array.isArray},18828:(e,t,r)=>{r.d(t,{V1:()=>h,vA:()=>f});var i=r(55446),n=r(21287),s=r(72140),a=r(60317);let o="Invariant Violation";
1class 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 f(...t)}function d(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 f(e,...t){return new l(m(e,t)||v(e,t))}h.debug=d("debug"),h.log=d("log"),h.warn=d("warn"),h.error=d("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)}))}`}},19158:(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)}}},19522:(e,t,r)=>{r.d(t,{m:()=>s});var i=r(72252),n=r(76962);function s(e){n.f.setTimeout(function(){var t=i.$.onUnhandledError;if(t)t(e);else throw e})}},19774:(e,t,r)=>{r.d(t,{E:()=>i});function i(e){return Array.isArray(e)&&e.length>0}},21287:(e,t,r)=>{r.d(t,{A:()=>n});var i=r(59760);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")()})},24012:(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},24338:(e,t,r)=>{r.d(t,{a:()=>h});var i=r(57881),n=r(33209),s=r(28451),a=r(90183),o=r(52827),l=r(34019),u=r(75372),c=r(94714);function h(e,{data:t,...r},{data:h,...f},p){return(0,i.L)(r,f)&&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)||d(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),d=Array.isArray(l);if(h!==d)return!1;if(h&&d){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!!d(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 d(e){return!!e.directives&&e.directives.some(f)}function f(e){return"nonreactive"===e.name.value}},25134:(e,t,r)=>{r.d(t,{E:()=>n});var i=r(18828);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}},25506:(e,t,r)=>{r.d(t,{i:()=>f});var i=r(1902),n=r(83881),s=r(18828),a=r(81254),o=r(33209),l=r(25134),u=r(28451),c=r(79637),h=r(17386),d=r(19774);function f(e,t){var r;(0,a.s)(t);let f=p(""),y=p(""),m=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!(0,h.c)(r)){if(r.kind===i.b.OPERATION_DEFINITION)return f(r.name&&r.name.value);if(r.kind===i.b.FRAGMENT_DEFINITION)return y(r.name.value)}return s.V1.error(14),null},v=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===i.b.OPERATION_DEFINITION&&++v;let b=function(e){let t=new Map,r=new Map;
1return 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),g=e=>(0,d.E)(e)&&e.map(b).some(e=>e&&e.remove),E=new Map,w=!1,O={enter(e){if(g(e.directives))return w=!0,null}},k=(0,n.YR)(t,{Field:O,InlineFragment:O,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,i,n){let s=m(n);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,i,n){if(g(e.directives))return w=!0,null;let s=m(n);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,i){E.set(JSON.stringify(i),e)},leave:(e,t,r,n)=>e===E.get(JSON.stringify(n))?e:v>0&&e.selectionSet.selections.every(e=>e.kind===i.b.FIELD&&"__typename"===e.name.value)?(y(e.name.value).removed=!0,w=!0,null):void 0},Directive:{leave(e){if(b(e))return w=!0,null}}});if(!w)return t;let T=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{T(y(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),S=new Set;k.definitions.forEach(e=>{e.kind===i.b.OPERATION_DEFINITION?T(f(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{S.add(e)}):e.kind!==i.b.FRAGMENT_DEFINITION||0!==v||y(e.name.value).removed||S.add(e.name.value)}),S.forEach(e=>{T(y(e)).fragmentSpreads.forEach(e=>{S.add(e)})});let _={enter(e){let t;if(t=e.name.value,!S.has(t)||y(t).removed)return null}};return r=(0,n.YR)(k,{FragmentSpread:_,FragmentDefinition:_,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=T(f(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===i.b.FRAGMENT_SPREAD&&e(r[t.name.value],r))}((0,c.V)(r)||(0,l.E)(r),(0,o.J)((0,u.z)(r)))?r:null}function p(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}}},28451:(e,t,r)=>{r.d(t,{z:()=>i});function i(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}},28567:(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))}}},28627:(e,t,r)=>{r.d(t,{b:()=>i});function i(e){return"status"in e||(e.status="pending",e.then(t=>{"pending"===e.status&&(e.status="fulfilled",e.value=t)},t=>
1{"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}},29470:(e,t,r)=>{let i;r.d(t,{M:()=>l});var n=r(55446),s=r(58347),a=r(14274),o=r(76022);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()},29850:(e,t,r)=>{let i;r.d(t,{y:()=>g});var n=r(51379);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(83881);let u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=p(e.variableDefinitions)?d("(\n",c(e.variableDefinitions,"\n"),"\n)"):d("(",c(e.variableDefinitions,", "),")"),r=d("",e.description,"\n")+c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:i,description:n})=>d("",n,"\n")+e+": "+t+d(" = ",r)+d(" ",c(i," "))},SelectionSet:{leave:({selections:e})=>h(e)},Field:{leave({alias:e,name:t,arguments:r,directives:i,selectionSet:n}){let s=d("",e,": ")+t,a=s+d("(",c(r,", "),")");return a.length>80&&(a=s+d("(\n",f(c(r,"\n")),"\n)")),c([a,c(i," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+d(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",d("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:n,description:s})=>d("",s,"\n")+`fragment ${e}${d("(",c(r,", "),")")} `+`on ${t} ${d("",c(i," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.yo)(e):`"${e.replace(s,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+d("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>d("",e,"\n")+c(["schema",c(t," "),h(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>d("",e,"\n")+c(["type",t,d("implements ",c(r," & ")),c(i," "),h(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:i,directives:n})=>
1d("",e,"\n")+t+(p(r)?d("(\n",f(c(r,"\n")),"\n)"):d("(",c(r,", "),")"))+": "+i+d(" ",c(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:i,directives:n})=>d("",e,"\n")+c([t+": "+r,d("= ",i),c(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>d("",e,"\n")+c(["interface",t,d("implements ",c(r," & ")),c(i," "),h(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:i})=>d("",e,"\n")+c(["union",t,c(r," "),d("= ",c(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:i})=>d("",e,"\n")+c(["enum",t,c(r," "),h(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:i})=>d("",e,"\n")+c(["input",t,c(r," "),h(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:i,locations:n})=>d("",e,"\n")+"directive @"+t+(p(r)?d("(\n",f(c(r,"\n")),"\n)"):d("(",c(r,", "),")"))+(i?" repeatable":"")+" on "+c(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),h(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>c(["extend type",e,d("implements ",c(t," & ")),c(r," "),h(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>c(["extend interface",e,d("implements ",c(t," & ")),c(r," "),h(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),d("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),h(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),h(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>c([e,d(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>c([e,d(".",t),d("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>c(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>c(["@",e,d("(",t,":)")])}};function c(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function h(e){return d("{\n",f(c(e,"\n")),"\n}")}function d(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function f(e){return d(" ",e.replace(/\n/g,"\n "))}function p(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var y=r(55446),m=r(14274),v=r(76022),b=r(58347);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)},30276:(e,t,r)=>{r.d(t,{R:()=>eB});var i,n,s=r(72787),a=r(5562),o=r(4134);function l(e,t){return(0,a.N)(function(r,i){var n=0;r.subscribe((0,o._)(i,function(r){i.next(e.call(t,r,n++))}))})}var u=r(98005),c=r(18828);class h{isIncrementalResult(e){return!1}prepareRequest(e){return(0,c.V1)(!(0,u.d)(["defer"],e.query),64),e}extractErrors(){}startRequest=void 0}let d=r(41555).C.execute;var f=r(33366),p=r(55446),y=r(89730);function m(e,t){return(0,y.o)(e,t,t.variables&&{variables:(0,y.o)({...e&&e.variables,...t.variables})})}var v=r(81254),b=r(83881);function g(e){return(0,b.YR)(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}var E=r(24012),w=r(72140),O=r(19158),k=r(1902),T=r(31390),S=r(48555);function _(e,t){var r=(0,S.T)(e)?e:function(){return e},i=function(e){return e.error(r())};return new T.c(t?function(e){return t.schedule(i,0,e)}:i)}var N=r(43244);function x(e,t,r){return(void 0===r&&(r=1/0),(0,S.T)(t))?x(function(r,i){return l(function(e,n){return t(r,e,i,n)})((0,N.Tg)(e(r,i)))},r):("number"==typeof t&&(r=t),(0,a.N)(function(t,i){var n,s,a,l,u,c,h,d,f;return n=r,a=[],l=0,u=0,c=!1,h=function(){!c||a.length||l||i.complete()},d=function(e){return l<n?f(e):a.push(e)},f=function(t){l++;var r=!1;(0,N.Tg)(e(t,u++)).subscribe((0,o._)(i,function(e){s?d(e):i.next(e)},function(){r=!0},void 0,function(){if(r)try{for(l--;a.length&&l<n;)!function(){var e=a.shift();f(e)}();h()}catch(e){i.error(e)}}))},t.subscribe((0,o._)(i,d,function(){c=!0,h()})),function(){}}))}r(11311);var I=r(17171),D=r(70993),C=(0,D.L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}),A=r(2173);function R(e){return(0,a.N)(function(t,r){var i,n=null,s=!1;n=t.subscribe((0,o._)(r,void 0,void 0,function(a){i=(0,N.Tg)(e(a,R(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):s=!0})),s&&(n.unsubscribe(),n=null,i.subscribe(r))})}var F=r(71806),P=r(15343),M=r(10868),V=(0,D.L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),L=r(43238),j=r(58286),q=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,P.C6)(t,e),t.prototype.lift=function(e){var t=new U(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new V},t.prototype.next=function(e){var t=this;(0,j.Y)(function(){var r,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var n=(0,P.Ju)(t.currentObservers),s=n.next();!s.done;s=n.next())s.value.next(e)}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,j.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,j.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0}
1,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,i=this.isStopped,n=this.observers;return r||i?M.Kn:(this.currentObservers=null,n.push(e),new M.yU(function(){t.currentObservers=null,(0,L.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 T.c;return e.source=this,e},t.create=function(e,t){return new U(e,t)},t}(T.c),U=function(e){function t(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return(0,P.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:M.Kn},t}(q),Q=r(37084);function B(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new q}:t,i=e.resetOnError,n=void 0===i||i,s=e.resetOnComplete,o=void 0===s||s,l=e.resetOnRefCountZero,u=void 0===l||l;return function(e){var t,i,s,l=0,c=!1,h=!1,d=function(){null==i||i.unsubscribe(),i=void 0},f=function(){d(),t=s=void 0,c=h=!1},p=function(){var e=t;f(),null==e||e.unsubscribe()};return(0,a.N)(function(e,a){l++,h||c||d();var y=s=null!=s?s:r();a.add(function(){0!=--l||h||c||(i=z(p,u))}),y.subscribe(a),!t&&l>0&&(t=new Q.Ms({next:function(e){return y.next(e)},error:function(e){h=!0,d(),i=z(f,n,e),y.error(e)},complete:function(){c=!0,d(),i=z(f,o),y.complete()}}),(0,N.Tg)(e).subscribe(t))})(e)}}function z(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(!0===t)return void e();if(!1!==t){var n=new Q.Ms({next:function(){n.unsubscribe(),e()}});return(0,N.Tg)(t.apply(void 0,(0,P.fX)([],(0,P.zs)(r)))).subscribe(n)}}var W={now:function(){return(W.delegate||Date).now()},delegate:void 0},$=function(e){function t(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=W);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,P.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}(q),K=r(6601);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(i||(i={}));var Y=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,S.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?(0,A.of)(t):"E"===e?_(function(){return r}):"C"===e?K.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}(),G=r(88249),J=r(41937);function H(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x(G.D,1)((0,I.H)(e,(0,J.lI)(e)))}function X(e,t,r){var i=(0,S.T)(e)||t||r?{next:e,error:t,complete:r}:e;return i?(0,a.N)(function(e,t){null==(r=i.subscribe)||r.call(i);var r,n=!0;e.subscribe((0,o._)(t,function(e){var r;null==(r=i.next)||r.call(i,e),t.next(e)},function(){var e;n=!1,null==(e=i.complete)||e.call(i),t.complete()},function(e){var r;n=!1,null==(r=i.error)||r.call(i,e),t.error(e)},function(){var e,t;n&&(null==(e=i.unsubscribe)||e.call(i)),null==(t=i.finalize)||t.call(i)}))}):G.D}var Z=r(29470),ee=r(93933);function et(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}
1class er extends Error{static is(e){return(0,ee.t)(e,"CombinedGraphQLErrors")}static formatMessage=et;errors;data;extensions;constructor(e,t=e.errors||[]){super(er.formatMessage(t,{result:e,defaultFormatMessage:et})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",(0,ee.w)(this),Object.setPrototypeOf(this,er.prototype)}}var ei=r(50757);let en=new WeakSet;var es=r(79637),ea=r(33209),eo=r(28451),el=r(65145),eu=r(75372),ec=r(35670);function eh(e,t,r){return ec.y.withValue(!0,()=>{let i=function e(t,r,i,n,s){let{knownChanged:a}=i,o=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,i.mutableTargets);if(Array.isArray(t)){for(let[l,u]of Array.from(t.entries())){if(null===u){o[l]=null;continue}let t=e(u,r,i,n,p.g?`${s||""}[${l}]`:void 0);a.has(t)&&a.add(o),o[l]=t}return a.has(o)?o:t}for(let l of r.selections){let r;if(n&&a.add(o),l.kind===k.b.FIELD){let u=(0,eu.u)(l),h=l.selectionSet;if(void 0===(r=o[u]||t[u]))continue;if(h&&null!==r){let o=e(t[u],h,i,n,p.g?`${s||""}.${u}`:void 0);a.has(o)&&(r=o)}p.g||(o[u]=r),p.g&&(n&&"__typename"!==u&&!Object.getOwnPropertyDescriptor(o,u)?.value?Object.defineProperty(o,u,function(e,t,r,i,n){let s=()=>(ec.y.getValue()||(p.g&&c.V1.warn(40,i?`${n} '${i}'`:`anonymous ${n}`,`${r}.${e}`.replace(/^\./,"")),s=()=>t),t);return{get:()=>s(),set(e){s=()=>e},enumerable:!0,configurable:!0}}(u,r,s||"",i.operationName,i.operationType)):(delete o[u],o[u]=r))}if(l.kind===k.b.INLINE_FRAGMENT&&(!l.typeCondition||i.cache.fragmentMatches(l,t.__typename))&&(r=e(t,l.selectionSet,i,n,s)),l.kind===k.b.FRAGMENT_SPREAD){let n=l.name.value,a=i.fragmentMap[n]||(i.fragmentMap[n]=i.cache.lookupFragment(n));(0,c.V1)(a,39,n);let o=(0,ec.s)(l);"mask"!==o&&(r=e(t,a.selectionSet,i,"migrate"===o,s))}a.has(r)&&a.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&a.add(o),a.has(o)?o:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,el.G)(i),i})}var ed=r(57881),ef=r(58347),ep=r(29850);function ey(e){return 7!==e&&8!==e}var em=r(66975);function ev(e){return!!e.errors?.length}function eb(e,t=()=>void 0){return r=>new T.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 eg(e){let t={data:e.data};return e.error&&(t.error=e.error),t}var eE=r(14274),ew=r(25506),eO=r(80434),ek=r(37722),eT=r(253);!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"}(n||(n={}));var eS=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,P.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}(q),e_=r(24338),eN=r(81136);let{assign:ex,hasOwnProperty:eI}=Object,eD={loading:!0,networkStatus:n.loading,data:void 0,dataState:"empty",partial:!0},eC={loading:!1,networkStatus:n.ready,data:void 0,dataState:"empty",partial:!0};class eA{options;queryName;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);
1let{watchQuery:{fetchPolicy:i="cache-first"}={}}=e.defaultOptions,{fetchPolicy:n=i,initialFetchPolicy:s="standby"===n?i:n}=t;this.lastQuery=r,this.options={...t,initialFetchPolicy:s,fetchPolicy:n,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let a=(0,es.V)(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new eS({query:this.query,variables:this.variables,result:eD,meta:{}});let e=this.subject.pipe(X({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),eb(({query:e,variables:t,result:r,meta:i},n)=>{let{shouldEmit:s}=i;if(r===eD&&(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,e_.a)(s,a,r,t):(0,ed.L)(a,r))&&(0,ed.L)(o,t))return}if(!(3===s&&(!this.options.notifyOnNetworkStatusChange||(0,ed.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 q,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.queryManager.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=this.queryManager.prioritizeCacheValues?"cache-first":e||this.options.fetchPolicy,r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?n.ready:n.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:n.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:n.loading};case"standby":return eC;default:return eD}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,i="standby"===t||"no-cache"===t||this.waitForNetworkResult,n=!eR({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!==eD&&i!==eC)&&((0,ed.L)(i.data,e.result)||this.scheduleNotify())}},a=this.queryManager.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===n.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===eD&&(t=this.getInitialResult()),(0,ed.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",p.g&&e&&eI.call(e,"variables")){let t=(0,eN.A)(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!p.g||c.V1.warn(77,e,t.name?.value||t)}return e&&!(0,ed.L)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:n.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:i,updateQuery:s}){(0,c.V1)("cache-only"!==this.options.fetchPolicy,78,(0,em.n)(this.query,"(anonymous)"));let a={...(0,y.o)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:i}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};
1a.query=this.transformDocument(a.query),this.lastQuery=e?this.transformDocument(this.options.query):a.query;let o=!1,l="no-cache"!==this.options.fetchPolicy;l||(0,c.V1)(s,79);let{finalize:u,pushNotification:h}=this.pushOperation(n.fetchMore);return h({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3}),this.queryManager.fetchQuery(a,n.fetchMore).then(e=>{if(u(),l){let t=this.getCacheDiff();this.queryManager.cache.batch({update:t=>{s?t.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1},t=>s(t,{fetchMoreResult:e.data,variables:a.variables})):t.writeQuery({query:a.query,variables:a.variables,data:e.data})},onWatchUpdated:(e,r)=>{e.watcher!==this||(0,ed.L)(r.result,t.result)||(o=!0)}})}else{let t=this.getCurrentResult(),r=s(t.data,{fetchMoreResult:e.data,variables:a.variables});h({kind:"N",value:{...t,networkStatus:n.ready,loading:!1,data:r,dataState:"streaming"===t.dataState?"streaming":"complete"},source:"network"})}return this.maskResult(e)}).finally(()=>{u(),l&&!o&&h({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):c.V1.error(80,n));r&&this.updateQuery((e,i)=>r(e,{subscriptionData:t,...i}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,y.o)(this.options,e||{});ex(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,ed.L)(this.variables,e))?eg(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:n.setVariables}):eg(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),n=e(r,{variables:this.variables,complete:!!i,previousData:r});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):"variables-changed"===e?t.fetchPolicy=i:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,i){let s=this.options.fetchPolicy;e.context??={};let a=!1,o=e=>new T.c(r=>{try{return e.subscribe({next(e){a=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{a||(d.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:c,variables:h,meta:{shouldEmit:3,fetchPolicy:s}}))}}),{observable:l,fromLink:u}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{a=!0},fetchQueryOperator:o,observableQuery:this}),{query:c,variables:h}=this,d={abort:()=>{p.unsubscribe()},query:c,variables:h};this.activeOperations.add(d);let f=t==n.refetch||t==n.setVariables,p=(l=l.pipe(i,B())).pipe(X({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?d.override=t:delete d.override},finalize:()=>this.activeOperations.delete(d)})).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:c,variables:h,meta:t})}});return{fromLink:u,subscription:p,observable:l}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this;if(!r||!this.hasObservers()||"cache-only"===t){p.g&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(p.g&&c.V1.warn(81,(0,em.n)(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let i=()=>{this.pollingInfo&&(ey(this.networkStatus)||this.options.skipPollAttempt?.()?s():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:n.poll}).then(s,s))},s=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(i,e.interval))};s()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){var r,i;let s,a,o;this.isTornDown=!1;let{newNetworkStatus:l}=t||{};this.queryManager.obsQueries.add(this);let u=l===n.refetch||l===n.poll,c=this.variables,h=this.options.fetchPolicy,d=(0,y.o)(this.options,e||{}),f=u?d:ex(this.options,d),p=this.transformDocument(f.query);this.lastQuery=p,e&&"variables"in e&&(f.variables=this.getVariablesWithDefaults(e.variables)),!u&&(this.updatePolling(),e&&e.variables&&!(0,ed.L)(e.variables,c)&&"standby"!==f.fetchPolicy&&(f.fetchPolicy===h||"function"==typeof f.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",f),void 0===l&&(l=n.setVariables)));let m=this.networkStatus;l||(l=n.loading,m!==n.loading&&e?.variables&&!(0,ed.L)(e.variables,c)&&(l=n.setVariables),"standby"===f.fetchPolicy&&(l=n.ready)),"standby"===f.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:v,operator:b}=(i=e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source&&!e.value.loading)return e.value}},s="standby"===f.fetchPolicy?{data:void 0}:void 0,{promise:new Promise((e,t)=>
1{a=e,o=t}),operator:X({next(e){try{let t=i(e);void 0!==t&&(s=t)}catch(e){o(e)}},finalize:()=>{if(s)a(s);else{let e="The operation was aborted.",t="AbortError";o("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}),{subscription:g,observable:E,fromLink:w}=this.fetch(f,l,p,b);u||!w&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=g);let O=Object.assign(((r=v.then(e=>eg(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})).catch(()=>{}),r),{retain:()=>{let e=E.subscribe({}),t=()=>e.unsubscribe();return v.then(t,t),O}});return O}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,ed.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:n.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===n.streaming)return e;let t=Array.from(this.activeOperations.values()).findLast(e=>eR(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?eC:eD,{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=eb(e=>{let t,{query:r,variables:i,meta:s}=e;if("setResult"===e.source)return{query:r,variables:i,result:e.value,meta:s};if("C"===e.kind||!eR(e,this))return;let a=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===n.ready&&t.partial&&(!this.options.returnPartialData||a.result.networkStatus===n.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...eR(a,e)?a.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:n.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(s.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=eR(a,e)?a.result:this.getInitialResult(s.fetchPolicy),{resetError:i}=e.value,o=i?void 0:r.error,l=o?n.error:n.ready;t={...r,error:o,networkStatus:l}}return(0,c.V1)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=e
1y(t.networkStatus),{query:r,variables:i,result:t=this.maskResult(t),meta:s}});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 eR(e,t){return!!(e&&t&&e.query===t.query&&(0,ed.L)(e.variables,t.variables))}let eF={},eP=new WeakMap;function eM(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return eP.set(e,(eP.get(e)+1)%1e15),r.apply(this,arguments)})}let eV=new WeakMap;class eL{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){let r=this.cache=e.cache,i=(eV.get(e)||0)+1;eV.set(e,i),this.id=i+"",this.observableQuery=t,this.queryManager=e,eP.has(r)||(eP.set(r,0),eM(r,"evict"),eM(r,"modify"),eM(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===eP.get(this.cache)&&(0,ed.L)(t,r.variables)&&(0,ed.L)(e.data,r.result.data))}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(t)?(this.incremental||=i.startRequest({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||(ej(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}),this.lastWrite={result:l,variables:r,dmCount:eP.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:[]}),ev(s)&&"none"===t.errorPolicy)return Promise.resolve(s);let a=()=>({...s,dataState:this.hasNext?"streaming":"complete"});if(!n&&ej(s,t.errorPolicy)){i.push({result:s.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let n=e[r],{query:s,variables:o}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=n(l,{mutationResult:a(),queryName:s&&(0,em.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:eF}):e;return r!==eF&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){c.V1.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){0!==n&&(ej(e,i)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r}),this.queryManager.broadcastQueries())}}function ej(e,t="none"){let r=!ev(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class eq{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 f.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,c.vA)(83))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:i,refetchQueries:n=[],awaitRefetchQueries:s=!1,update:a,onQueryUpdated:o,fetchPolicy:u,errorPolicy:h,keepRootFields:d,context:f}){let y=new eL(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:m}=this.getDocumentInfo(e);t=this.getVariables(e,t),m&&(p.g&&(0,c.V1)(this.localState,84,(0,em.n)(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:f}));let v=this.mutationStore&&(this.mutationStore[y.id]={mutation:e,variables:t,loading:!0,error:null}),b=r&&y.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==u),errorPolicy:h,context:f,updateQueries:i,update:a,keepRootFields:d});return this.broadcastQueries(),new Promise((c,p)=>{let m={};return this.getObservableFromLink(e,{...f,optimisticResponse:b?r:void 0},t,{},!1).observable.pipe(eU(),x(r=>{let l={...r};return(0,I.H)(y.markMutationResult(l,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==u),errorPolicy:h,context:f,update:a,updateQueries:i,awaitRefetchQueries:s,refetchQueries:n,removeOptimistic:b?y.id:void 0,onQueryUpdated:o,keepRootFields:d}))})).pipe(l(e=>{if(ev(e)&&"none"===h)throw new er(e);return v&&(v.loading=!1,v.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!y.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:u,cause:m})};ev(t)&&(r.error=new er(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),c(r)}},error:e=>(v&&(v.loading=!1,v.error=e),b&&this.cache.removeOptimistic(y.id),this.broadcastQueries(),"ignore"===h)?c({data:void 0}):"all"===h?c({data:void 0,error:e}):void p(e)})})}fetchQuery(e,t){return(0,v.s)(e.query,s.cE.QUERY),(async()=>{var r,i,n;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(eb(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return eg(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 C)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new eE.A(ef.v["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){var r;let i,n=(0,es.V)(e),s={hasClientExports:(0,u.d)(["client","export"],e,!0),hasForcedResolvers:(i=!1,(0,b.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 b.sP}}}),i),hasNonreactiveDirective:(0,u.d)(["nonreactive"],e),hasIncrementalDirective:(0,u.d)(["defer"],e),nonReactiveQuery:(r=e,(0,b.YR)(r,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:k.b.DIRECTIVE,name:{kind:k.b.NAME,value:"nonreactive"}}
1]}}})),clientQuery:(0,u.d)(["client"],e)?e:null,serverQuery:(0,ew.i)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:(0,eO.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,v.s)(e.query,s.cE.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new eA({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,c.vA)(85)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,i=new Map,n=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),i.set(e,!1);else if((0,ek.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=(0,ep.y)(this.transform(e));r.set(t,(0,em.n)(e)),i.set(t,!1)}else(0,ek.U)(e)&&e.query&&n.add(e)}),this.obsQueries.forEach(r=>{let n=(0,ep.y)(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:s,options:{fetchPolicy:a}}=r;("active"!==e||"standby"!==a)&&("active"===e||s&&i.has(s)||n&&i.has(n))&&(t.add(r),s&&i.set(s,!0),n&&i.set(n,!0))}),n.size&&n.forEach(e=>{let r=new eA({queryManager:this,options:{...e,fetchPolicy:"network-only"}});t.add(r)}),p.g&&i.size&&i.forEach((e,t)=>{if(!e){let e=r.get(t);e?p.g&&c.V1.warn(86,e):p.g&&c.V1.warn(87)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:i}=r.options;(e||"standby"!==i)&&"cache-only"!==i&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:i}=e,{fetchPolicy:n,errorPolicy:a="none",context:o={},extensions:u={}}=e;return(0,v.s)(r,s.cE.SUBSCRIPTION),r=this.transform(r),i=this.getVariables(r,i),p.g&&(0,c.V1)(!this.getDocumentInfo(r).hasClientExports||this.localState,88,(0,em.n)(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?(0,I.H)(this.localState.getExportedVariables({client:this.client,document:r,variables:i,context:o})):(0,A.of)(i)).pipe(x(e=>{let{observable:i,restart:s}=this.getObservableFromLink(r,o,e,u),c=new eL(this);return t=s,i.pipe(l(t=>{c.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:a,cacheWriteBehavior:2*("no-cache"!==n)});let i={data:t.data??void 0};return ev(t)?i.error=new er(t):(0,ei.uR)(t)&&(i.error=t.extensions[ei.K$],delete t.extensions[ei.K$]),t.extensions&&Object.keys(t.extensions).length&&(i.extensions=t.extensions),i.error&&"none"===a&&(i.data=void 0),"ignore"===a&&delete i.error,i}),R(e=>"ignore"===a?(0,A.of)({data:void 0}):(0,A.of)({data:void 0,error:e})),(0,F.p)(e=>!!(e.data||e.error)))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new O.b(!1);getObservableFromLink(e,t,r,i,n=t?.queryDeduplication??this.queryDeduplication){let o={},{serverQuery:l,clientQuery:u,operationType:h,hasIncrementalDirective:f}=this.getDocumentInfo(e),y=(0,em.n)(e),m={client:this.client};if(l){let{inFlightLinkObservables:e,link:u}=this;try{let c=this.incrementalHandler.prepareRequest({query:l,variables:r,context:{...this.defaultContext,...t,queryDeduplication:n},extensions:i});function v(e){return new T.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 o.restart||=()=>{i.unsubscribe(),i=r()},()=>{i.unsubscribe(),o.restart=void 0}})}if(t=c.context,n){var b,g,E,w,O,k,S,N,D;let t=(0,ep.y)(l),i=(0,Z.M)(r);(o=e.lookup(t,i)).observable||(o.observable=d(u,c,m).pipe(v,(b=()=>{e.peek(t,i)===o&&e.remove(t,i)},(0,a.N)(function(e,t){try{e.subscribe(t)}finally{t.add(b)}}
1)),h===s.cE.SUBSCRIPTION?B():(g={refCount:!0},D=!1,g&&!0?(N=void 0===(O=g.bufferSize)?1/0:O,E=void 0===(k=g.windowTime)?1/0:k,D=void 0!==(S=g.refCount)&&S,w=g.scheduler):N=null!=g?g:1/0,B({connector:function(){return new $(N,E,w)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:D}))))}else o.observable=d(u,c,m).pipe(v)}catch(e){o.observable=_(()=>e)}}else o.observable=(0,A.of)({data:{}});if(u){let{operation:i}=(0,es.V)(e);p.g&&(0,c.V1)(this.localState,89,i[0].toUpperCase()+i.slice(1),y??"(anonymous)"),(0,c.V1)(!f,90,i[0].toUpperCase()+i.slice(1),y??"(anonymous)"),o.observable=o.observable.pipe(x(e=>(0,I.H)(this.localState.execute({client:this.client,document:u,remoteResult:e,context:t,variables:r}))))}return{restart:()=>o.restart?.(),observable:o.observable.pipe(R(e=>{var t;throw t=e=(0,ei.$b)(e),en.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:i}){let s=t.lastRequestId=this.generateRequestId(),{errorPolicy:a}=e,o=this.cache.transformForLink(e.query);return this.getObservableFromLink(o,e.context,e.variables).observable.pipe(l(s=>{let l=t.markQueryResult(s,{...e,document:o,cacheWriteBehavior:r}),u=ev(l);if(u&&"none"===a)throw t.resetLastWrite(),i?.resetNotifications(),new er(l);let c={data:l.data,...t.hasNext?{loading:!0,networkStatus:n.streaming,dataState:"streaming",partial:!0}:{dataState:l.data?"complete":"empty",loading:!1,networkStatus:n.ready,partial:!l.data}};return u&&("none"===a&&(c.data=void 0,c.dataState="empty"),"ignore"!==a&&(c.error=new er(l),"streaming"!==c.dataState&&(c.networkStatus=n.error))),c}),R(e=>{if(s>=t.lastRequestId&&"none"===a)throw t.resetLastWrite(),i?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:n.ready,partial:!0};return"ignore"!==a&&(r.error=e,r.networkStatus=n.error),(0,A.of)(r)}))}fetchObservableWithInfo(e,{networkStatus:t=n.loading,query:r=e.query,fetchQueryOperator:i=e=>e,onCacheHit:s=()=>{},observableQuery:a}){let o,l,u=this.getVariables(r,e.variables),h=this.defaultOptions.watchQuery,{fetchPolicy:d=h&&h.fetchPolicy||"cache-first",errorPolicy:f=h&&h.errorPolicy||"none",returnPartialData:y=!1,notifyOnNetworkStatusChange:m=!0,context:v={}}=e;this.prioritizeCacheValues&&("network-only"===d||"cache-and-network"===d)&&(d="cache-first");let b=Object.assign({},e,{query:r,variables:u,fetchPolicy:d,errorPolicy:f,returnPartialData:y,notifyOnNetworkStatusChange:m,context:v}),g=new eL(this,a),E=r=>{b.variables=r;let o="no-cache"===d?0:t===n.refetch&&"merge"!==b.refetchWritePolicy?1:2,l=this.fetchQueryByPolicy(b,{queryInfo:g,cacheWriteBehavior:o,onCacheHit:s,observableQuery:a});return l.observable=l.observable.pipe(i),"standby"!==b.fetchPolicy&&a?.applyNextFetchPolicy("after-fetch",e),l},w=()=>{this.fetchCancelFns.delete(g.id)};this.fetchCancelFns.set(g.id,e=>{O.next({kind:"E",error:e,source:"network"})});let O=new q;if(this.getDocumentInfo(b.query).hasClientExports)p.g&&(0,c.V1)(this.localState,91,(0,em.n)(b.query,"(anonymous)")),o=(0,I.H)(this.localState.getExportedVariables({client:this.client,document:b.query,variables:b.variables,context:b.context})).pipe(x(e=>E(e).observable)),l=!0;else{let e=E(b.variables);l=e.fromLink,o=e.observable}return{observable:new T.c(e=>{e.add(w),o.subscribe(e),O.subscribe(e)}).pipe(B()),fromLink:l}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:i=r?(0,eT.v)("refetchQueries"):void 0,onQueryUpdated:n}){let s=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy)return;let t=e.getCurrentResult();s.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let 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 eA&&!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(p.g){var i;let r,{fetchPolicy:n,cause:s={}}=e,a=(0,es.V)(t)?.operation;this.dataMasking&&"no-cache"===n&&(i=t,r=!0,(0,b.YR)(i,{FragmentSpread:e=>{if(!(r=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return b.sP}}),!r)&&!this.noCacheWarningsByCause.has(s)&&(this.noCacheWarningsByCause.add(s),p.g&&c.V1.warn(92,(0,em.n)(t,`Unnamed ${a??"operation"}`)))}return this.dataMasking?function(e,t,r){let i=(0,es.V)(t);return((0,c.V1)(i,43),null==e)?e:eh(e,i.selectionSet,{operationType:i.operation,operationName:i.name?.value,fragmentMap:(0,ea.J)((0,eo.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===k.b.FRAGMENT_DEFINITION);void 0===i&&((0,c.V1)(1===n.length,41,n.length),i=n[0].name.value);let s=n.find(e=>e.name.value===i);return((0,c.V1)(!!s,42,i),null==e||(0,ed.L)(e,{}))?e:eh(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:(0,ea.J)((0,eo.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:s,context:u},{cacheWriteBehavior:h,onCacheHit:d,queryInfo:f,observableQuery:y}){let m=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),v=(r,a)=>{var o;let l=r.result;p.g&&!s&&null!==l&&(o=r.missing,p.g&&o&&p.g&&c.V1.debug(82,o));let h=e=>(r.complete||s||(e=void 0),{data:e,dataState:r.complete?"complete":e?"partial":"empty",loading:ey(a),networkStatus:a,partial:!r.complete}),f=e=>(0,A.of)({kind:"N",value:h(e),source:"cache"});return(r.complete||s)&&this.getDocumentInfo(e).hasForcedResolvers?(p.g&&(0,c.V1)(this.localState,93,(0,em.n)(e,"(anonymous)")),d(),(0,I.H)(this.localState.execute({client:this.client,document:e,remoteResult:l?{data:l}:void 0,context:u,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0}
1).then(e=>({kind:"N",value:h(e.data||void 0),source:"cache"})))):f("none"===i&&a===n.refetch&&r.missing?void 0:l||void 0)},b=()=>this.getResultsFromLink({query:e,variables:t,context:u,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:h,queryInfo:f,observableQuery:y}).pipe(eU(),(0,a.N)(function(e,t){e.subscribe((0,o._)(t,function(e){t.next(Y.createNext(e))},function(){t.next(Y.createComplete()),t.complete()},function(e){t.next(Y.createError(e)),t.complete()}))}),l(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=m();if(e.complete)return{fromLink:!1,observable:v(e,n.ready)};if(s)return{fromLink:!0,observable:H(v(e,n.loading),b())};return{fromLink:!0,observable:b()}}case"cache-and-network":{let e=m();if(e.complete||s)return{fromLink:!0,observable:H(v(e,n.loading),b())};return{fromLink:!0,observable:b()}}case"cache-only":return{fromLink:!1,observable:H(v(m(),n.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:b()};case"standby":return{fromLink:!1,observable:K.w}}}}function eU(){let e=!1;return X({next(){e=!0},complete(){(0,c.V1)(e,94)}})}let eQ=!1;class eB{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){p.g&&((0,c.V1)(e.cache,65),(0,c.V1)(e.link,66));let{cache:t,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:n=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:o,assumeImmutableResults:l=t.assumeImmutableResults,localState:u,devtools:d,dataMasking:f,link:y,incrementalHandler:m=new h}=e;this.link=y,this.cache=t,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig={...d,enabled:d?.enabled??p.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 eq({client:this,defaultOptions:this.defaultOptions,defaultContext:o,documentTransform:r,queryDeduplication:s,ssrMode:i,dataMasking:!!f,clientOptions:e,incrementalHandler:m,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:u}),this.prioritizeCacheValues=i||n>0,n&&setTimeout(()=>{this.prioritizeCacheValues=!1},n),this.devtoolsConfig.enabled&&this.connectToDevTools()}connectToDevTools(){if("undefined"==typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!eQ&&p.g&&(eQ=!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&&p.g&&c.V1.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=m(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=m(this.defaultOptions.query,e)),p.g&&((0,c.V1)("cache-and-network"!==e.fetchPolicy,67),(0,c.V1)("standby"!==e.fetchPolicy,68),(0,c.V1)(e.query,69),(0,c.V1)("Document"===e.query.kind,70),(0,c.V1)(!e.returnPartialData,71),(0,c.V1)(!e.pollInterval,72),(0,c.V1)(!e.notifyOnNetworkStatusChange,73)),this.queryManager.query(e)}mutate(e){let t=m((0,y.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return p.g&&((0,c.V1)(t.mutation,74),(0,c.V1)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,75)),(0,v.s)(t.mutation,s.cE.MUTATION),this.queryManager.mutate(t)}subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe(l(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;return this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)}).pipe(l(r=>{if(p.g&&t){let t=this.queryManager.maskFragment({...e,data:r.data});return{...r,data:t}}return 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 d(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=>{p.g&&c.V1.debug(76,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 f.c(g);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}p.g&&(eB.prototype.getMemoryInternals=E.ep)},31390:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(37084),n=r(10868),s=r(3446),a=r(88249),o=r(72252),l=r(48555),u=r(58286),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}},33209:(e,t,r)=>{r.d(t,{J:()=>i});function i(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}},33366:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(28567),n=r(19158),s=r(41184),a=r(81254),o=r(18828),l=r(58347);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;
1right}},34019:(e,t,r)=>{r.d(t,{d:()=>i});function i(e){return"Field"===e.kind}},34625:(e,t,r)=>{r.d(t,{$:()=>i});function i(e){let t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}},35670:(e,t,r)=>{r.d(t,{s:()=>l,y:()=>o});var i=r(1902),n=r(41184),s=r(55446),a=r(18828);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"}},37084:(e,t,r)=>{r.d(t,{Ms:()=>v,vU:()=>f});var i=r(15343),n=r(48555),s=r(10868),a=r(72252),o=r(19522);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(76962),d=r(58286),f=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=E,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}(f);function b(e){a.$.useDeprecatedSynchronousErrorHandling?(0,d.l)(e):(0,o.m)(e)}function g(e,t){var r=a.$.onStoppedNotification;r&&h.f.setTimeout(function(){return r(e,t)})}var E={closed:!0,next:l,error:function(e){throw e},complete:l}},37537:(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(1902),n=r(18828)},37722:(e,t,r)=>{r.d(t,{U:()=>i});function i(e){return null!==e&&"object"==typeof e}},41184:(e,t,r)=>{let i;r.d(t,{DX:()=>d,yN:()=>F,LV:()=>V});var n=r(19158),s=r(11552);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),d=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:f,noContext:p}=d,y=new d,{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 E(e,t){if(!e)throw Error(t||"assertion failure")}function w(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 T(this),this.value[0]}recompute(e){var t,r,i;return E(!this.recomputing,"already recomputing"),T(this),_(this)?(t=this,r=e,C(t),y.withValue(t,S,[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){N(e,I)}(i)),O(t.value)):O(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,N(e,x),b(this))}dispose(){this.setDirty(),C(this),N(this,(e,t)=>{e.setDirty(),A(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 T(e){let t=y.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),_(e)?x(t,e):I(t,e),t}function S(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&&!w(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 N(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 x(e,t){E(e.childValues.has(t)),E(_(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&&N(e,x)}function I(e,t){E(e.childValues.has(t)),E(!_(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):w(r,t.value)||e.setDirty(),D(e,t),_(e)||N(e,I)}function D(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(g.length<100&&g.push(r),e.dirtyChildren=null))}function C(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{A(e,r)}),e.forgetDeps(),E(null===e.dirtyChildren)}function A(e,t){t.parents.delete(e),e.childValues.delete(t),D(e,t)}let R={setDirty:!0,dispose:!0,forget:!0};function F(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(R,r)?r:"setDirty";v(i).forEach(e=>e[n]()),t.delete(e),b(i)}},i}function P(...e){return(i||(i=new n.b("function"==typeof WeakMap))).lookupArray(e)}let M=new Set;function V(e,{max:t=65536,keyArgs:r,makeCacheKey:i=P,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),M.add(l),y.hasValue()||(M.forEach(e=>e.clean()),M.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 d(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=d,u.forget=function(){return d(i.apply(null,arguments))},u.makeCacheKey=i,u.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(u)}},41555:(e,t,r)=>{r.d(t,{C:()=>l});var i=r(6601),n=r(66975),s=r(79637),a=r(55446),o=r(18828);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(61,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(62),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)(63)}left;right}},41937:(e,t,r)=>{r.d(t,{lI:()=>n});var i=r(48555);function n(e){var t;return(t=e[e.length-1])&&(0,i.T)(t.schedule)?e.pop():void 0}},43238:(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)}}},43244:(e,t,r)=>{r.d(t,{Tg:()=>y});var i=r(15343),n=r(6503),s=r(10124),a=r(31390),o=r(66109),l=r(96303),u=r(45615),c=r(44129),h=r(17128),d=r(48555),f=r(19522),p=r(3446);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,d.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,f.m)})}if((0,l.T)(e))return m(e);
1if((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];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}},44129:(e,t,r)=>{r.d(t,{x:()=>s});var i=r(74445),n=r(48555);function s(e){return(0,n.T)(null==e?void 0:e[i.l])}},45615:(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.")}},48555:(e,t,r)=>{r.d(t,{T:()=>i});function i(e){return"function"==typeof e}},50757:(e,t,r)=>{r.d(t,{K$:()=>a,uR:()=>o,$b:()=>l});var i=r(83988),n=r(93933);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)}},51379:(e,t,r)=>{r.d(t,{OC:()=>n,yo:()=>s});var i=r(96936);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),d="",f=s&&(0,i.i0)(e.charCodeAt(0));return(h&&!f||a)&&(d+="\n"),d+=r,(h||c)&&(d+="\n"),'"""'+d+'"""'}},52827:(e,t,r)=>{r.d(t,{V:()=>s});var i=r(18828),n=r(81254);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)}},55446:(e,t,r)=>{r.d(t,{g:()=>i});let i=!1},57881:(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}},57898:(e,t,r)=>{r.d(t,{J1:()=>j});var i,n,s=r(15343);let a=/\r\n|[\n\r]/g;function o(e,t){let r=0,i=1;for(let n of e.body.matchAll(a)){if("number"==typeof n.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),n.index>=t)break;r=n.index+n[0].length,i+=1}return{line:i,column:t+1-r}}function l(e,t){let r=e.locationOffset.column-1,i="".padStart(r)+e.body,n=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?r:0,l=t.column+o,c=`${e.name}:${a}:${l} 2`,h=i.split(/\r\n|[\n\r]/g),d=h[n];if(d.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return c+u([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+u([[`${a-1} |`,h[n-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,h[n+1]]])}function u(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}
2class c extends Error{constructor(e,...t){var r,i,n;let{nodes:s,source:a,positions:l,path:u,originalError:d,extensions:f}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=d?d:void 0,this.nodes=h(Array.isArray(s)?s:s?[s]:void 0);let p=h(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==p||null==(i=p[0])?void 0:i.source,this.positions=null!=l?l:null==p?void 0:p.map(e=>e.start),this.locations=l&&a?l.map(e=>o(a,e)):null==p?void 0:p.map(e=>o(e.source,e.start));let y=!function(e){return"object"==typeof e&&null!==e}(null==d?void 0:d.extensions)||null==d?void 0:d.extensions;this.extensions=null!=(n=null!=f?f:y)?n:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let r of this.nodes){var t;r.loc&&(e+="\n\n"+l((t=r.loc).source,o(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+l(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function h(e){return void 0===e||0===e.length?void 0:e}function d(e,t,r){return new c(`Syntax Error: ${r}`,{source:e,positions:[t]})}var f=r(72787);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(i||(i={}));var p=r(1902),y=r(51379),m=r(96936);!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(n||(n={}));class v{constructor(e){let t=new f.ou(n.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==n.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,i=r.length,s=t;for(;s<i;){let t=r.charCodeAt(s);switch(t){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===r.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 35:return function(e,t){let r=e.source.body,i=r.length,s=t+1;for(;s<i;){let e=r.charCodeAt(s);if(10===e||13===e)break;if(b(e))++s;else if(g(r,s))s+=2;else break}return k(e,n.COMMENT,t,s,r.slice(t+1,s))}(e,s);case 33:return k(e,n.BANG,s,s+1);case 36:return k(e,n.DOLLAR,s,s+1);case 38:return k(e,n.AMP,s,s+1);case 40:return k(e,n.PAREN_L,s,s+1);case 41:return k(e,n.PAREN_R,s,s+1);case 46:if(46===r.charCodeAt(s+1)&&46===r.charCodeAt(s+2))return k(e,n.SPREAD,s,s+3);break;case 58:return k(e,n.COLON,s,s+1);case 61:return k(e,n.EQUALS,s,s+1);case 64:return k(e,n.AT,s,s+1);case 91:return k(e,n.BRACKET_L,s,s+1);case 93:return k(e,n.BRACKET_R,s,s+1);case 123:return k(e,n.BRACE_L,s,s+1);case 124:return k(e,n.PIPE,s,s+1);case 125:return k(e,n.BRACE_R,s,s+1);case 34:if(34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2))return function(e,t){let r=e.source.body,i=r.length,s=e.lineStart,a=t+3,o=a,l="",u=[];for(;a<i;){let i=r.charCodeAt(a);if(34===i&&34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)){l+=r.slice(o,a),u.push(l);let i=k(e,n.BLOCK_STRING,t,a+3,(0,y.OC)(u).join("\n"));return e.line+=u.length-1,e.lineStart=s,i}if(92===i&&34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)&&34===r.charCodeAt(a+3)){l+=r.slice(o,a),o=a+1,a+=4;continue}if(10===i||13===i){l+=r.slice(o,a),u.push(l),13===i&&10===r.charCodeAt(a+1)?a+=2:++a,l="",o=a,s=a;continue}if(b(i))++a;else if(g(r,a))a+=2;else throw d(e.source,a,`Invalid character within String: ${O(e,a)}.`)}throw d(e.source,a,"Unterminated string.")}(e,s);return function(e,t){let r=e.source.body,i=r.length,s=t+1,a=s,o="";for(;s<i;){let i=r.charCodeAt(s);if(34===i)return o+=r.slice(a,s),k(e,n.STRING,t,s+1,o);if(92===i){o+=r.slice(a,s);let t=117===r.charCodeAt(s+1)?123===r.charCodeAt(s+2)?function(e,t){let r=e.source.body,i=0,n=3;for(;n<12;){let e=r.charCodeAt(t+n++);if(125===e){if(n<5||!b(i))break;return{value:String.fromCodePoint(i),size:n}}if((i=i<<4|_(e))<0)break}throw d(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+n)}".`)}(e,s):function(e,t){let r=e.source.body,i=S(r,t+2);if(b(i))return{value:String.fromCodePoint(i),size:6};if(E(i)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=S(r,t+8);
2if(w(e))return{value:String.fromCodePoint(i,e),size:12}}throw d(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,s):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,s);o+=t.value,s+=t.size,a=s;continue}if(10===i||13===i)break;if(b(i))++s;else if(g(r,s))s+=2;else throw d(e.source,s,`Invalid character within String: ${O(e,s)}.`)}throw d(e.source,s,"Unterminated string.")}(e,s)}if((0,m.yp)(t)||45===t)return function(e,t,r){let i=e.source.body,s=t,a=r,o=!1;if(45===a&&(a=i.charCodeAt(++s)),48===a){if(a=i.charCodeAt(++s),(0,m.yp)(a))throw d(e.source,s,`Invalid number, unexpected digit after 0: ${O(e,s)}.`)}else s=T(e,s,a),a=i.charCodeAt(s);if(46===a&&(o=!0,a=i.charCodeAt(++s),s=T(e,s,a),a=i.charCodeAt(s)),(69===a||101===a)&&(o=!0,(43===(a=i.charCodeAt(++s))||45===a)&&(a=i.charCodeAt(++s)),s=T(e,s,a),a=i.charCodeAt(s)),46===a||(0,m.un)(a))throw d(e.source,s,`Invalid number, expected digit but got: ${O(e,s)}.`);return k(e,o?n.FLOAT:n.INT,t,s,i.slice(t,s))}(e,s,t);if((0,m.un)(t))return function(e,t){let r=e.source.body,i=r.length,s=t+1;for(;s<i;){let e=r.charCodeAt(s);if((0,m.xr)(e))++s;else break}return k(e,n.NAME,t,s,r.slice(t,s))}(e,s);throw d(e.source,s,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":b(t)||g(r,s)?`Unexpected character: ${O(e,s)}.`:`Invalid character: ${O(e,s)}.`)}return k(e,n.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===n.COMMENT);return e}}function b(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function g(e,t){return E(e.charCodeAt(t))&&w(e.charCodeAt(t+1))}function E(e){return e>=55296&&e<=56319}function w(e){return e>=56320&&e<=57343}function O(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return n.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function k(e,t,r,i,n){let s=e.line,a=1+r-e.lineStart;return new f.ou(t,r,i,s,a,n)}function T(e,t,r){if(!(0,m.yp)(r))throw d(e.source,t,`Invalid number, expected digit but got: ${O(e,t)}.`);let i=e.source.body,n=t+1;for(;(0,m.yp)(i.charCodeAt(n));)++n;return n}function S(e,t){return _(e.charCodeAt(t))<<12|_(e.charCodeAt(t+1))<<8|_(e.charCodeAt(t+2))<<4|_(e.charCodeAt(t+3))}function _(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var N=r(68480),x=r(91951);let I=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=(0,x.N)(e);throw Error(`Cannot use ${i} "${t}" from another module or realm. 3 4Ensure that there is only one instance of "graphql" in the node_modules 5directory. If different versions of "graphql" are the dependencies of other 6relied on modules, use "resolutions" to ensure only one version is installed. 7 8https://yarnpkg.com/en/docs/selective-version-resolutions 9 10Duplicate "graphql" modules cannot be used at the same time since different 11versions may have different capabilities and behavior. The data from one 12version used in the function from another could produce confusing and 13spurious results.`)}}return!1};class D{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,N.U)(!1,`Body must be a string. Received: ${(0,x.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,N.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,N.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class C{constructor(e,t={}){let{lexer:r,...i}=t;if(r)this._lexer=r;else{let t=I(e,D)?e:new D(e);this._lexer=new v(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(n.NAME);return this.node(e,{kind:p.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.b.DOCUMENT,definitions:this.many(n.SOF,this.parseDefinition,n.EOF)})}parseDefinition(){if(this.peek(n.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===n.BRACE_L)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===n.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
13ort descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(n.BRACE_L))return this.node(t,{kind:p.b.OPERATION_DEFINITION,operation:f.cE.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),i=this.parseOperationType();return this.peek(n.NAME)&&(e=this.parseName()),this.node(t,{kind:p.b.OPERATION_DEFINITION,operation:i,description:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(n.NAME);switch(e.value){case"query":return f.cE.QUERY;case"mutation":return f.cE.MUTATION;case"subscription":return f.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(n.PAREN_L,this.parseVariableDefinition,n.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.b.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(n.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(n.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(n.DOLLAR),this.node(e,{kind:p.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.b.SELECTION_SET,selections:this.many(n.BRACE_L,this.parseSelection,n.BRACE_R)})}parseSelection(){return this.peek(n.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,i=this.parseName();return this.expectOptionalToken(n.COLON)?(e=i,t=this.parseName()):t=i,this.node(r,{kind:p.b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(n.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(n.PAREN_L,t,n.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(n.COLON),this.node(t,{kind:p.b.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(n.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(n.NAME)?this.node(e,{kind:p.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:p.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:p.b.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:p.b.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case n.BRACKET_L:return this.parseList(e);case n.BRACE_L:return this.parseObject(e);case n.INT:return this.advanceLexer(),this.node(t,{kind:p.b.INT,value:t.value});case n.FLOAT:return this.advanceLexer(),this.node(t,{kind:p.b.FLOAT,value:t.value});case n.STRING:case n.BLOCK_STRING:return this.parseStringLiteral();case n.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:p.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:p.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:p.b.NULL});default:return this.node(t,{kind:p.b.ENUM,value:t.value})}case n.DOLLAR:if(e){if(this.expectToken(n.DOLLAR),this._lexer.token.kind===n.NAME){let e=this._lexer.token.value;throw d(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:p.b.STRING,value:e.value,block:e.kind===n.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:p.b.LIST,values:this.any(n.BRACKET_L,t,n.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:p.b.OBJECT,fields:this.any(n.BRACE_L,t,n.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(n.COLON),this.node(t,{kind:p.b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(n.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(n.AT),this.node(t,{kind:p.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(n.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(n.BRACKET_R),e=this.node(t,{kind:p.b.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(n.BANG)?this.node(t,{kind:p.b.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:p.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(n.STRING)||this.peek(n.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(n.BRACE_L,this.parseOperationTypeDefinition,n.BRACE_R);return this.node(e,{kind:p.b.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(n.COLON);let r=this.parseNamedType();return this.node(e,{kind:p.b.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:p.b.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:p.b.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:i,directives:n,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(n.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(n.BRACE_L,this.parseFieldDefinition,n.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(n.COLON);let s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:p.b.FIELD_DEFINITION,description:t,name:r,arguments:i,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(n.PAREN_L,this.parseInputValueDef,n.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),i=this.parseName();this.expectToken(n.COLON);let s=this.parseTypeReference();this.expectOptionalToken(n.EQUALS)&&(e=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(t,{kind:p.b.INPUT_VALUE_DEFINITION,description:r,name:i,type:s,defaultValue:e,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:p.b.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:i,directives:n,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(e,{kind:p.b.UNION_TYPE_DEFINITION,description:t,name:r,directives:i,types:n})}parseUnionMemberTypes(){return this.expectOptionalToken(n.EQUALS)?this.delimitedMany(n.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(e,{kind:p.b.ENUM_TYPE_DEFINITION,description:t,name:r,directives:i,values:n})}parseEnumValuesDefinition(){return this.optionalMany(n.BRACE_L,this.parseEnumValueDefinition,n.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:p.b.ENUM_VALUE_DEFINITION,description:t,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw d(this._lexer.source,this._lexer.token.start,`${A(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(e,{kind:p.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:i,fields:n})}parseInputFieldsDefinition(){return this.optionalMany(n.BRACE_L,this.parseInputValueDef,n.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===n.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(n.BRACE_L,this.parseOperationTypeDefinition,n.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.b.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:p.b.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:i,fields:n})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:i,fields:n})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.b.UNION_TYPE_EXTENSION,name:t,directives:r,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.b.ENUM_TYPE_EXTENSION,name:t,directives:r,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(n.AT);let r=this.parseName(),i=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:p.b.DIRECTIVE_DEFINITION,description:t,name:r,arguments:i,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(n.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(i,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,r=this._lexer.token,i=this.expectOptionalToken(n.AT),s=this.parseName();return(!i&&this.expectOptionalToken(n.DOT)&&(e=this.parseName()),(i||e)&&this.expectOptionalToken(n.PAREN_L)&&(t=this.parseName(),this.expectToken(n.COLON),this.expectToken(n.PAREN_R)),i)?t?this.node(r,{kind:p.b.DIRECTIVE_ARGUMENT_COORDINATE,name:s,argumentName:t}):this.node(r,{kind:p.b.DIRECTIVE_COORDINATE,name:s}):e?t?this.node(r,{kind:p.b.ARGUMENT_COORDINATE,name:s,fieldName:e,argumentName:t}):this.node(r,{kind:p.b.MEMBER_COORDINATE,name:s,memberName:e}):this.node(r,{kind:p.b.TYPE_COORDINATE,name:s})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new f.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw d(this._lexer.source,t.start,`Expected ${R(e)}, found ${A(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===n.NAME&&t.value===e)this.advanceLexer();else throw d(this._lexer.source,t.start,`Expected "${e}", found ${A(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===n.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return d(this._lexer.source,t.start,`Unexpected ${A(t)}.`)}any(e,t,r){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(r);)i.push(t.call(this));return i}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==n.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw d(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function A(e){let t=e.value;return R(e.kind)+(null!=t?` "${t}"`:"")}function R(e){return e===n.BANG||e===n.DOLLAR||e===n.AMP||e===n.PAREN_L||e===n.PAREN_R||e===n.DOT||e===n.SPREAD||e===n.COLON||e===n.EQUALS||e===n.AT||e===n.BRACKET_L||e===n.BRACKET_R||e===n.BRACE_L||e===n.PIPE||e===n.BRACE_R?`"${e}"`:e}var F=new Map,P=new Map,M=!0,V=!1;function L(e){return e.replace(/[\s,]+/g," ").trim()}function j(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[r+1]}),function(e){var t=L(e);if(!F.has(t)){var r,i,n,a,o,l=function(e,t){let r=new C(e,t),i=r.parseDocument
13();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:r.tokenCount}),i}(e,{experimentalFragmentVariables:V,allowLegacyFragmentVariables:V});if(!l||"Document"!==l.kind)throw Error("Not a valid GraphQL document.");F.set(t,((a=new Set((r=new Set,i=[],l.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,n=e.name.value,s=L((t=e.loc).source.body.substring(t.start,t.end)),a=P.get(n);a&&!a.has(s)?M&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||P.set(n,a=new Set),a.add(s),r.has(s)||(r.add(s),i.push(e))}else i.push(e)}),n=(0,s.Cl)((0,s.Cl)({},l),{definitions:i})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&a.add(r)})}),(o=n.loc)&&(delete o.startToken,delete o.endToken),n))}return F.get(t)}(i)}var q={gql:j,resetCaches:function(){F.clear(),P.clear()},disableFragmentWarnings:function(){M=!1},enableExperimentalFragmentVariables:function(){V=!0},disableExperimentalFragmentVariables:function(){V=!1}};!function(e){e.gql=q.gql,e.resetCaches=q.resetCaches,e.disableFragmentWarnings=q.disableFragmentWarnings,e.enableExperimentalFragmentVariables=q.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=q.disableExperimentalFragmentVariables}(j||(j={})),j.default=j},58286:(e,t,r)=>{r.d(t,{Y:()=>s,l:()=>a});var i=r(72252),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)}},58347:(e,t,r)=>{r.d(t,{v:()=>s});var i=r(21287);let n=Symbol.for("apollo.cacheSize"),s={...i.A[n]}},59760:(e,t,r)=>{r.d(t,{n:()=>i});function i(e){try{return e()}catch{}}},60317:(e,t,r)=>{r.d(t,{p:()=>n});var i=r(253);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>")}},65145:(e,t,r)=>{r.d(t,{G:()=>s});var i=r(55446),n=r(37722);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}},66109:(e,t,r)=>{r.d(t,{l:()=>s});var i=r(3446),n=r(48555);function s(e){return(0,n.T)(e[i.s])}},66975:(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}},68480:(e,t,r)=>{r.d(t,{U:()=>i});function i(e,t){if(!e)throw Error(t)}},70993:(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}},71806:(e,t,r)=>{r.d(t,{p:()=>s});var i=r(5562),n=r(4134);function s(e,t){return(0,i.N)(function(r,i){var s=0;r.subscribe((0,n._)(i,function(r){return e.call(t,r,s++)&&i.next(r)}))})}},72140:(e,t,r)=>{r.d(t,{r:()=>i});let i="4.0.10"},72252:(e,t,r)=>{r.d(t,{$:()=>i});var i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},72787:(e,t,r)=>{var i;r.d(t,{Ll:()=>l,aD:()=>a,aZ:()=>n,cE:()=>i,ou:()=>s});class 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:[],Float
13Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],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={}))},74445:(e,t,r)=>{r.d(t,{l:()=>i});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},75372:(e,t,r)=>{r.d(t,{u:()=>i});function i(e){return e.alias?e.alias.value:e.name.value}},76022:(e,t,r)=>{r.d(t,{D_:()=>n});let i={};function n(e,t){i[e]=t}},76962:(e,t,r)=>{r.d(t,{f:()=>n});var i=r(15343),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}},79637:(e,t,r)=>{r.d(t,{V:()=>n});var i=r(81254);function n(e){return(0,i.s)(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}},80434:(e,t,r)=>{r.d(t,{w:()=>n});var i=r(37537);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}},81136:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(18828),n=r(79637);function s(e){let t=(0,n.V)(e);return(0,i.V1)(t&&"query"===t.operation,13),t}},81254:(e,t,r)=>{r.d(t,{s:()=>h});var i=r(83881),n=r(1902),s=r(55446),a=r(18828),o=r(58347),l=r(66975),u=r(19158),c=r(14274);let h=function(e,{max:t}){let r=new u.b(!0),i=new c.A(t);return(...t)=>{let n=r.lookupArray(t),s=i.get(n);if(s){if(s.error)throw s.error;return s.result}let a=i.set(n,{});try{return a.result=e(...t)}catch(e){throw a.error=e,e}}}((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})},82850:(e,t,r)=>{r.d(t,{l:()=>a});var i=r(41063),n=r(18828);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({}
13),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},83881:(e,t,r)=>{r.d(t,{YR:()=>l,sP:()=>o});var i=r(68480),n=r(91951),s=r(72787),a=r(1902);let o=Object.freeze({});function l(e,t,r=s.aD){let u,c,h,d=new Map;for(let e of Object.values(a.b))d.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let f=Array.isArray(e),p=[e],y=-1,m=[],v=e,b=[],g=[];do{var E,w,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(f){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,f=u.inArray,u=u.prev}else if(h){if(null==(v=h[c=f?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==(E=d.get(v.kind))?void 0:E.leave:null==(w=d.get(v.kind))?void 0:w.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}}else 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:f,index:y,keys:p,edits:m,prev:u},p=(f=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}},83988:(e,t,r)=>{r.d(t,{d:()=>s});var i=r(93933);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)}}},88249:(e,t,r)=>{r.d(t,{D:()=>i});function i(e){return e}},89730:(e,t,r)=>{r.d(t,{o:()=>i});function i(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(r=>{let i=e[r];void 0!==i&&(t[r]=i)})}),t}},90183:(e,t,r)=>{r.d(t,{H:()=>n});var i=r(18828);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}}},91951:(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})},93933:(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})},94714:(e,t,r)=>{r.d(t,{M:()=>n});var i=r(18828);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})}},96303:(e,t,r)=>{r.d(t,{T:()=>n});var i=r(48555);function n(e){return Symbol.asyncIterator&&(0,i.T)(null==e?void 0:e[Symbol.asyncIterator])}},96936:(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})},98005:(e,t,r)=>{r.d(t,{d:()=>n});var i=r(83881);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}}}]);
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.