@fugood/bricks-cli 2.24.10 → 2.24.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/146.js +1 -0
- package/lib/153.js +1 -1
- package/lib/169.js +1 -0
- package/lib/209.js +1 -0
- package/lib/336.js +1 -0
- package/lib/378.js +1 -0
- package/lib/480.js +1 -0
- package/lib/611.js +1 -0
- package/lib/627.js +1 -0
- package/lib/632.js +1 -0
- package/lib/637.js +1 -0
- package/lib/657.js +1 -0
- package/lib/7.js +1 -0
- package/lib/700.js +863 -0
- package/lib/703.js +1 -1
- package/lib/718.js +1 -0
- package/lib/737.js +1 -1
- package/lib/779.js +1 -1
- package/lib/890.js +1 -1
- package/lib/90.js +1 -0
- package/lib/996.js +1 -0
- package/lib/index.js +1 -863
- package/package.json +1 -1
- package/lib/63.js +0 -1
package/lib/378.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __webpack_esm_id__=378;export const __webpack_esm_ids__=[378];export const __webpack_esm_modules__={4649:(e,t,n)=>{n.d(t,{BREAK:()=>Ht.sP,BreakingChangeType:()=>Io,DEFAULT_DEPRECATION_REASON:()=>nt,DangerousChangeType:()=>wo,DirectiveLocation:()=>Ue.H,ExecutableDefinitionsRule:()=>Xt,FieldsOnCorrectTypeRule:()=>Zt,FragmentsOnCompositeTypesRule:()=>en,GRAPHQL_MAX_INT:()=>je,GRAPHQL_MIN_INT:()=>qe,GraphQLBoolean:()=>He,GraphQLDeprecatedDirective:()=>rt,GraphQLDirective:()=>Ze,GraphQLEnumType:()=>Fe,GraphQLError:()=>c.eO,GraphQLFloat:()=>Ge,GraphQLID:()=>Ye,GraphQLIncludeDirective:()=>et,GraphQLInputObjectType:()=>Le,GraphQLInt:()=>Qe,GraphQLInterfaceType:()=>De,GraphQLList:()=>se,GraphQLNonNull:()=>ue,GraphQLObjectType:()=>Ee,GraphQLOneOfDirective:()=>it,GraphQLScalarType:()=>be,GraphQLSchema:()=>Dt,GraphQLSkipDirective:()=>tt,GraphQLSpecifiedByDirective:()=>ot,GraphQLString:()=>Be,GraphQLUnionType:()=>Re,Kind:()=>S.b,KnownArgumentNamesRule:()=>tn,KnownDirectivesRule:()=>rn,KnownFragmentNamesRule:()=>on,KnownTypeNamesRule:()=>an,Lexer:()=>eo.JG,Location:()=>l.aZ,LoneAnonymousOperationRule:()=>un,LoneSchemaDefinitionRule:()=>cn,MaxIntrospectionDepthRule:()=>pn,NoDeprecatedCustomRule:()=>io,NoFragmentCyclesRule:()=>fn,NoSchemaIntrospectionCustomRule:()=>ao,NoUndefinedVariablesRule:()=>dn,NoUnusedFragmentsRule:()=>hn,NoUnusedVariablesRule:()=>yn,OperationTypeNode:()=>l.cE,OverlappingFieldsCanBeMergedRule:()=>gn,PossibleFragmentSpreadsRule:()=>An,PossibleTypeExtensionsRule:()=>Fn,ProvidedRequiredArgumentsRule:()=>$n,ScalarLeafsRule:()=>xn,SchemaMetaFieldDef:()=>Tt,SingleFieldSubscriptionsRule:()=>er,Source:()=>Kr.k,Token:()=>l.ou,TokenKind:()=>to.Y,TypeInfo:()=>Jt,TypeKind:()=>bt,TypeMetaFieldDef:()=>Nt,TypeNameMetaFieldDef:()=>_t,UniqueArgumentDefinitionNamesRule:()=>nr,UniqueArgumentNamesRule:()=>rr,UniqueDirectiveNamesRule:()=>or,UniqueDirectivesPerLocationRule:()=>ir,UniqueEnumValueNamesRule:()=>ar,UniqueFieldDefinitionNamesRule:()=>sr,UniqueFragmentNamesRule:()=>cr,UniqueInputFieldNamesRule:()=>lr,UniqueOperationNamesRule:()=>pr,UniqueOperationTypesRule:()=>fr,UniqueTypeNamesRule:()=>dr,UniqueVariableNamesRule:()=>hr,ValidationContext:()=>Ir,ValuesOfCorrectTypeRule:()=>yr,VariablesAreInputTypesRule:()=>vr,VariablesInAllowedPositionRule:()=>gr,__Directive:()=>dt,__DirectiveLocation:()=>ht,__EnumValue:()=>gt,__Field:()=>mt,__InputValue:()=>vt,__Schema:()=>ft,__Type:()=>yt,__TypeKind:()=>Et,assertAbstractType:()=>ae,assertCompositeType:()=>oe,assertDirective:()=>Xe,assertEnumType:()=>G,assertEnumValueName:()=>k,assertInputObjectType:()=>H,assertInputType:()=>X,assertInterfaceType:()=>U,assertLeafType:()=>ne,assertListType:()=>J,assertName:()=>F,assertNamedType:()=>ye,assertNonNullType:()=>z,assertNullableType:()=>fe,assertObjectType:()=>C,assertOutputType:()=>ee,assertScalarType:()=>x,assertSchema:()=>St,assertType:()=>L,assertUnionType:()=>q,assertValidName:()=>Ho,assertValidSchema:()=>Ft,assertWrappingType:()=>le,astFromValue:()=>lt,buildASTSchema:()=>bo,buildClientSchema:()=>fo,buildSchema:()=>Eo,coerceInputValue:()=>Un,concatAST:()=>jo,createSourceEventStream:()=>oo,defaultFieldResolver:()=>Hr,defaultTypeResolver:()=>Br,doTypesOverlap:()=>Pe,execute:()=>kr,executeSync:()=>$r,extendSchema:()=>ho,findBreakingChanges:()=>Jo,findDangerousChanges:()=>Wo,formatError:()=>c.Wk,getArgumentValues:()=>Hn,getDirectiveValues:()=>Yn,getEnterLeaveForKind:()=>Ht.XO,getIntrospectionQuery:()=>uo,getLocation:()=>Xr.g,getNamedType:()=>me,getNullableType:()=>de,getOperationAST:()=>co,getOperationRootType:()=>lo,getVariableValues:()=>Bn,getVisitFn:()=>Ht.UY,graphql:()=>Jr,graphqlSync:()=>Wr,introspectionFromSchema:()=>po,introspectionTypes:()=>Ot,isAbstractType:()=>ie,isCompositeType:()=>re,isConstValueNode:()=>Kt.TZ,isDefinitionNode:()=>Kt.MD,isDirective:()=>Ke,isEnumType:()=>Q,isEqualType:()=>Me,isExecutableDefinitionNode:()=>Kt._m,isInputObjectType:()=>B,isInputType:()=>K,isInterfaceType:()=>P,isIntrospectionType:()=>It,isLeafType:()=>te,isListType:()=>Y,isNamedType:()=>he,isNonNullType:()=>W,isNullableType:()=>pe,isObjectType:()=>M,isOutputType:()=>Z,isRequiredArgument:()=>Se,isRequiredInputField:()=>xe,isScalarType:()=>V,isSchema:()=>wt,isSchemaCoordinateNode:()=>Kt.gj,isSelectionNode:()=>Kt.VK,isSpecifiedDirective:()=>st,isSpecifiedScalarType:()=>We,isType:()=>$,isTypeDefinitionNode:()=>Kt.a6,isTypeExtensionNode:()=>Kt.i7,isTypeNode:()=>Kt.dI,isTypeSubTypeOf:()=>Ce,isTypeSystemDefinitionNode:()=>Kt.xu,isTypeSystemExtensionNode:()=>Kt.fT,isUnionType:()=>j,isValidNameError:()=>Yo,isValueNode:()=>Kt.aR,isWrappingType:()=>ce,lexicographicSortSchema:()=>To,locatedError:()=>Ar,parse:()=>s.qg,parseConstValue:()=>s.u8,parseSchemaCoordinate:()=>s.Ng,parseType:()=>s.Mb,parseValue:()=>s.$x,print:()=>D.y,printError:()=>c.yJ,printIntrospectionSchema:()=>Ro,printLocation:()=>Zr.V,printSchema:()=>Do,printSourceLocation:()=>Zr.C,printType:()=>$o,recommendedRules:()=>Er,resolveASTSchemaCoordinate:()=>pi,resolveObjMapThunk:()=>ge,resolveReadonlyArrayThunk:()=>ve,resolveSchemaCoordinate:()=>li,responsePathAsArray:()=>Pn,separateOperations:()=>qo,specifiedDirectives:()=>at,specifiedRules:()=>Tr,specifiedScalarTypes:()=>Je,stripIgnoredCharacters:()=>Bo,subscribe:()=>ro,syntaxError:()=>so.I,typeFromAST:()=>Yt,validate:()=>wr,validateSchema:()=>At,valueFromAST:()=>Qn,valueFromASTUntyped:()=>R,version:()=>r,versionInfo:()=>o,visit:()=>Ht.YR,visitInParallel:()=>Ht.oP,visitWithTypeInfo:()=>zt}),n.r(t);const r="16.12.0",o=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});var i=n(93217);function a(e){return"function"==typeof(null==e?void 0:e.then)}var s=n(93367),u=n(35198),c=n(48255),l=n(59762);const p=5;function f(e,t){const[n,r]=t?[e,t]:[void 0,e];let o=" Did you mean ";n&&(o+=n+" ");const i=r.map(e=>`"${e}"`);switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,p),s=a.pop();return o+a.join(", ")+", or "+s+"?"}function d(e){return e}var h=n(50792),y=n(91070);function m(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function v(e,t,n){const r=Object.create(null);for(const o of e)r[t(o)]=n(o);return r}function g(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function b(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let o=e.charCodeAt(n),i=t.charCodeAt(r);if(N(o)&&N(i)){let a=0;do{++n,a=10*a+o-E,o=e.charCodeAt(n)}while(N(o)&&a>0);let s=0;do{++r,s=10*s+i-E,i=t.charCodeAt(r)}while(N(i)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(o<i)return-1;if(o>i)return 1;++n,++r}}return e.length-t.length}const E=48,T=57;function N(e){return!isNaN(e)&&E<=e&&e<=T}function _(e,t){const n=Object.create(null),r=new O(e),o=Math.floor(.4*e.length)+1;for(const e of t){const t=r.measure(e,o);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{const r=n[e]-n[t];return 0!==r?r:b(e,t)})}class O{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=I(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=I(n),o=this._inputArray;if(r.length<o.length){const e=r;r=o,o=e}const i=r.length,a=o.length;if(i-a>t)return;const s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=i;e++){const n=s[(e-1)%3],i=s[e%3];let u=i[0]=e;for(let t=1;t<=a;t++){const a=r[e-1]===o[t-1]?0:1;let c=Math.min(n[t]+1,i[t-1]+1,n[t-1]+a);if(e>1&&t>1&&r[e-1]===o[t-2]&&r[e-2]===o[t-1]){const n=s[(e-2)%3][t-2];c=Math.min(c,n+1)}c<u&&(u=c),i[t]=c}if(u>t)return}const u=s[i%3][a];return u<=t?u:void 0}}function I(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function w(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}var S=n(42455),D=n(92704);function R(e,t){switch(e.kind){case S.b.NULL:return null;case S.b.INT:return parseInt(e.value,10);case S.b.FLOAT:return parseFloat(e.value);case S.b.STRING:case S.b.ENUM:case S.b.BOOLEAN:return e.value;case S.b.LIST:return e.values.map(e=>R(e,t));case S.b.OBJECT:return v(e.fields,e=>e.name.value,e=>R(e.value,t));case S.b.VARIABLE:return null==t?void 0:t[e.name.value]}}var A=n(25881);function F(e){if(null!=e||(0,i.U)(!1,"Must provide name."),"string"==typeof e||(0,i.U)(!1,"Expected name to be a string."),0===e.length)throw new c.eO("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,A.xr)(e.charCodeAt(t)))throw new c.eO(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,A.un)(e.charCodeAt(0)))throw new c.eO(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function k(e){if("true"===e||"false"===e||"null"===e)throw new c.eO(`Enum values cannot be named: ${e}`);return F(e)}function $(e){return V(e)||M(e)||P(e)||j(e)||Q(e)||B(e)||Y(e)||W(e)}function L(e){if(!$(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL type.`);return e}function V(e){return(0,h.h)(e,be)}function x(e){if(!V(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Scalar type.`);return e}function M(e){return(0,h.h)(e,Ee)}function C(e){if(!M(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Object type.`);return e}function P(e){return(0,h.h)(e,De)}function U(e){if(!P(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Interface type.`);return e}function j(e){return(0,h.h)(e,Re)}function q(e){if(!j(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Union type.`);return e}function Q(e){return(0,h.h)(e,Fe)}function G(e){if(!Q(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Enum type.`);return e}function B(e){return(0,h.h)(e,Le)}function H(e){if(!B(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Input Object type.`);return e}function Y(e){return(0,h.h)(e,se)}function J(e){if(!Y(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL List type.`);return e}function W(e){return(0,h.h)(e,ue)}function z(e){if(!W(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Non-Null type.`);return e}function K(e){return V(e)||Q(e)||B(e)||ce(e)&&K(e.ofType)}function X(e){if(!K(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL input type.`);return e}function Z(e){return V(e)||M(e)||P(e)||j(e)||Q(e)||ce(e)&&Z(e.ofType)}function ee(e){if(!Z(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL output type.`);return e}function te(e){return V(e)||Q(e)}function ne(e){if(!te(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL leaf type.`);return e}function re(e){return M(e)||P(e)||j(e)}function oe(e){if(!re(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL composite type.`);return e}function ie(e){return P(e)||j(e)}function ae(e){if(!ie(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL abstract type.`);return e}class se{constructor(e){$(e)||(0,i.U)(!1,`Expected ${(0,u.N)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class ue{constructor(e){pe(e)||(0,i.U)(!1,`Expected ${(0,u.N)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function ce(e){return Y(e)||W(e)}function le(e){if(!ce(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL wrapping type.`);return e}function pe(e){return $(e)&&!W(e)}function fe(e){if(!pe(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL nullable type.`);return e}function de(e){if(e)return W(e)?e.ofType:e}function he(e){return V(e)||M(e)||P(e)||j(e)||Q(e)||B(e)}function ye(e){if(!he(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL named type.`);return e}function me(e){if(e){let t=e;for(;ce(t);)t=t.ofType;return t}}function ve(e){return"function"==typeof e?e():e}function ge(e){return"function"==typeof e?e():e}class be{constructor(e){var t,n,r,o;const a=null!==(t=e.parseValue)&&void 0!==t?t:d;this.name=F(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:d,this.parseValue=a,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>a(R(e,t)),this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(o=e.extensionASTNodes)&&void 0!==o?o:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,i.U)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,u.N)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,i.U)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,i.U)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Ee{constructor(e){var t;this.name=F(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Ne(e),this._interfaces=()=>Te(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,i.U)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,u.N)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ie(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Te(e){var t;const n=ve(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,i.U)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Ne(e){const t=ge(e.fields);return Oe(t)||(0,i.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),g(t,(t,n)=>{var r;Oe(t)||(0,i.U)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,i.U)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,u.N)(t.resolve)}.`);const o=null!==(r=t.args)&&void 0!==r?r:{};return Oe(o)||(0,i.U)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:F(n),description:t.description,type:t.type,args:_e(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:w(t.extensions),astNode:t.astNode}})}function _e(e){return Object.entries(e).map(([e,t])=>({name:F(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:w(t.extensions),astNode:t.astNode}))}function Oe(e){return(0,y.Z)(e)&&!Array.isArray(e)}function Ie(e){return g(e,e=>({description:e.description,type:e.type,args:we(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function we(e){return v(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Se(e){return W(e.type)&&void 0===e.defaultValue}class De{constructor(e){var t;this.name=F(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Ne.bind(void 0,e),this._interfaces=Te.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,i.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,u.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ie(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Re{constructor(e){var t;this.name=F(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Ae.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,i.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,u.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ae(e){const t=ve(e.types);return Array.isArray(t)||(0,i.U)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Fe{constructor(e){var t;this.name=F(e.name),this.description=e.description,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:$e(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=$e(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=m(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));const t=this._valueLookup.get(e);if(void 0===t)throw new c.eO(`Enum "${this.name}" cannot represent value: ${(0,u.N)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,u.N)(e);throw new c.eO(`Enum "${this.name}" cannot represent non-string value: ${t}.`+ke(this,t))}const t=this.getValue(e);if(null==t)throw new c.eO(`Value "${e}" does not exist in "${this.name}" enum.`+ke(this,e));return t.value}parseLiteral(e,t){if(e.kind!==S.b.ENUM){const t=(0,D.y)(e);throw new c.eO(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+ke(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,D.y)(e);throw new c.eO(`Value "${t}" does not exist in "${this.name}" enum.`+ke(this,t),{nodes:e})}return n.value}toConfig(){const e=v(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ke(e,t){return f("the enum value",_(t,e.getValues().map(e=>e.name)))}function $e(e,t){return Oe(t)||(0,i.U)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(Oe(n)||(0,i.U)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,u.N)(n)}.`),{name:k(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:w(n.extensions),astNode:n.astNode}))}class Le{constructor(e){var t,n;this.name=F(e.name),this.description=e.description,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=Ve.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=g(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function Ve(e){const t=ge(e.fields);return Oe(t)||(0,i.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),g(t,(t,n)=>(!("resolve"in t)||(0,i.U)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:F(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:w(t.extensions),astNode:t.astNode}))}function xe(e){return W(e.type)&&void 0===e.defaultValue}function Me(e,t){return e===t||(W(e)&&W(t)||!(!Y(e)||!Y(t)))&&Me(e.ofType,t.ofType)}function Ce(e,t,n){return t===n||(W(n)?!!W(t)&&Ce(e,t.ofType,n.ofType):W(t)?Ce(e,t.ofType,n):Y(n)?!!Y(t)&&Ce(e,t.ofType,n.ofType):!Y(t)&&(ie(n)&&(P(t)||M(t))&&e.isSubType(n,t)))}function Pe(e,t,n){return t===n||(ie(t)?ie(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!ie(n)&&e.isSubType(n,t))}var Ue=n(42868);const je=2147483647,qe=-2147483648,Qe=new be({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=ze(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new c.eO(`Int cannot represent non-integer value: ${(0,u.N)(t)}`);if(n>je||n<qe)throw new c.eO("Int cannot represent non 32-bit signed integer value: "+(0,u.N)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new c.eO(`Int cannot represent non-integer value: ${(0,u.N)(e)}`);if(e>je||e<qe)throw new c.eO(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==S.b.INT)throw new c.eO(`Int cannot represent non-integer value: ${(0,D.y)(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>je||t<qe)throw new c.eO(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),Ge=new be({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=ze(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new c.eO(`Float cannot represent non numeric value: ${(0,u.N)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new c.eO(`Float cannot represent non numeric value: ${(0,u.N)(e)}`);return e},parseLiteral(e){if(e.kind!==S.b.FLOAT&&e.kind!==S.b.INT)throw new c.eO(`Float cannot represent non numeric value: ${(0,D.y)(e)}`,e);return parseFloat(e.value)}}),Be=new be({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=ze(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new c.eO(`String cannot represent value: ${(0,u.N)(e)}`)},parseValue(e){if("string"!=typeof e)throw new c.eO(`String cannot represent a non string value: ${(0,u.N)(e)}`);return e},parseLiteral(e){if(e.kind!==S.b.STRING)throw new c.eO(`String cannot represent a non string value: ${(0,D.y)(e)}`,{nodes:e});return e.value}}),He=new be({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=ze(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new c.eO(`Boolean cannot represent a non boolean value: ${(0,u.N)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new c.eO(`Boolean cannot represent a non boolean value: ${(0,u.N)(e)}`);return e},parseLiteral(e){if(e.kind!==S.b.BOOLEAN)throw new c.eO(`Boolean cannot represent a non boolean value: ${(0,D.y)(e)}`,{nodes:e});return e.value}}),Ye=new be({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=ze(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new c.eO(`ID cannot represent value: ${(0,u.N)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new c.eO(`ID cannot represent value: ${(0,u.N)(e)}`)},parseLiteral(e){if(e.kind!==S.b.STRING&&e.kind!==S.b.INT)throw new c.eO("ID cannot represent a non-string and non-integer value: "+(0,D.y)(e),{nodes:e});return e.value}}),Je=Object.freeze([Be,Qe,Ge,He,Ye]);function We(e){return Je.some(({name:t})=>e.name===t)}function ze(e){if((0,y.Z)(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!(0,y.Z)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function Ke(e){return(0,h.h)(e,Ze)}function Xe(e){if(!Ke(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL directive.`);return e}class Ze{constructor(e){var t,n;this.name=F(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=w(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,i.U)(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};(0,y.Z)(r)&&!Array.isArray(r)||(0,i.U)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=_e(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:we(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const et=new Ze({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ue.H.FIELD,Ue.H.FRAGMENT_SPREAD,Ue.H.INLINE_FRAGMENT],args:{if:{type:new ue(He),description:"Included when true."}}}),tt=new Ze({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ue.H.FIELD,Ue.H.FRAGMENT_SPREAD,Ue.H.INLINE_FRAGMENT],args:{if:{type:new ue(He),description:"Skipped when true."}}}),nt="No longer supported",rt=new Ze({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ue.H.FIELD_DEFINITION,Ue.H.ARGUMENT_DEFINITION,Ue.H.INPUT_FIELD_DEFINITION,Ue.H.ENUM_VALUE],args:{reason:{type:Be,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:nt}}}),ot=new Ze({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ue.H.SCALAR],args:{url:{type:new ue(Be),description:"The URL that specifies the behavior of this scalar."}}}),it=new Ze({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ue.H.INPUT_OBJECT],args:{}}),at=Object.freeze([et,tt,rt,ot,it]);function st(e){return at.some(({name:t})=>t===e.name)}var ut=n(71306);function ct(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function lt(e,t){if(W(t)){const n=lt(e,t.ofType);return(null==n?void 0:n.kind)===S.b.NULL?null:n}if(null===e)return{kind:S.b.NULL};if(void 0===e)return null;if(Y(t)){const n=t.ofType;if(ct(e)){const t=[];for(const r of e){const e=lt(r,n);null!=e&&t.push(e)}return{kind:S.b.LIST,values:t}}return lt(e,n)}if(B(t)){if(!(0,y.Z)(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=lt(e[r.name],r.type);t&&n.push({kind:S.b.OBJECT_FIELD,name:{kind:S.b.NAME,value:r.name},value:t})}return{kind:S.b.OBJECT,fields:n}}if(te(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:S.b.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return pt.test(e)?{kind:S.b.INT,value:e}:{kind:S.b.FLOAT,value:e}}if("string"==typeof n)return Q(t)?{kind:S.b.ENUM,value:n}:t===Ye&&pt.test(n)?{kind:S.b.INT,value:n}:{kind:S.b.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,u.N)(n)}.`)}(0,ut.V)(!1,"Unexpected input type: "+(0,u.N)(t))}const pt=/^-?(?:0|[1-9][0-9]*)$/,ft=new Ee({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Be,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ue(new se(new ue(yt))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new ue(yt),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:yt,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:yt,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ue(new se(new ue(dt))),resolve:e=>e.getDirectives()}})}),dt=new Ee({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new ue(Be),resolve:e=>e.name},description:{type:Be,resolve:e=>e.description},isRepeatable:{type:new ue(He),resolve:e=>e.isRepeatable},locations:{type:new ue(new se(new ue(ht))),resolve:e=>e.locations},args:{type:new ue(new se(new ue(vt))),args:{includeDeprecated:{type:He,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),ht=new Fe({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Ue.H.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Ue.H.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Ue.H.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Ue.H.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Ue.H.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Ue.H.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Ue.H.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Ue.H.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Ue.H.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Ue.H.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Ue.H.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Ue.H.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Ue.H.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Ue.H.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Ue.H.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Ue.H.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Ue.H.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Ue.H.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Ue.H.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),yt=new Ee({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new ue(Et),resolve:e=>V(e)?bt.SCALAR:M(e)?bt.OBJECT:P(e)?bt.INTERFACE:j(e)?bt.UNION:Q(e)?bt.ENUM:B(e)?bt.INPUT_OBJECT:Y(e)?bt.LIST:W(e)?bt.NON_NULL:void(0,ut.V)(!1,`Unexpected type: "${(0,u.N)(e)}".`)},name:{type:Be,resolve:e=>"name"in e?e.name:void 0},description:{type:Be,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Be,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new se(new ue(mt)),args:{includeDeprecated:{type:He,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(M(e)||P(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new se(new ue(yt)),resolve(e){if(M(e)||P(e))return e.getInterfaces()}},possibleTypes:{type:new se(new ue(yt)),resolve(e,t,n,{schema:r}){if(ie(e))return r.getPossibleTypes(e)}},enumValues:{type:new se(new ue(gt)),args:{includeDeprecated:{type:He,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Q(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new se(new ue(vt)),args:{includeDeprecated:{type:He,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(B(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:yt,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:He,resolve:e=>{if(B(e))return e.isOneOf}}})}),mt=new Ee({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new ue(Be),resolve:e=>e.name},description:{type:Be,resolve:e=>e.description},args:{type:new ue(new se(new ue(vt))),args:{includeDeprecated:{type:He,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new ue(yt),resolve:e=>e.type},isDeprecated:{type:new ue(He),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Be,resolve:e=>e.deprecationReason}})}),vt=new Ee({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new ue(Be),resolve:e=>e.name},description:{type:Be,resolve:e=>e.description},type:{type:new ue(yt),resolve:e=>e.type},defaultValue:{type:Be,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=lt(n,t);return r?(0,D.y)(r):null}},isDeprecated:{type:new ue(He),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Be,resolve:e=>e.deprecationReason}})}),gt=new Ee({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new ue(Be),resolve:e=>e.name},description:{type:Be,resolve:e=>e.description},isDeprecated:{type:new ue(He),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Be,resolve:e=>e.deprecationReason}})});var bt;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(bt||(bt={}));const Et=new Fe({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:bt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:bt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:bt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:bt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:bt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:bt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:bt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:bt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Tt={name:"__schema",type:new ue(ft),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Nt={name:"__type",type:yt,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ue(Be),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},_t={name:"__typename",type:new ue(Be),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ot=Object.freeze([ft,dt,ht,yt,mt,vt,gt,Et]);function It(e){return Ot.some(({name:t})=>e.name===t)}function wt(e){return(0,h.h)(e,Dt)}function St(e){if(!wt(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL schema.`);return e}class Dt{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,y.Z)(e)||(0,i.U)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,i.U)(!1,`"types" must be Array if provided but got: ${(0,u.N)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,i.U)(!1,`"directives" must be Array if provided but got: ${(0,u.N)(e.directives)}.`),this.description=e.description,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:at;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),Rt(t,r);null!=this._queryType&&Rt(this._queryType,r),null!=this._mutationType&&Rt(this._mutationType,r),null!=this._subscriptionType&&Rt(this._subscriptionType,r);for(const e of this._directives)if(Ke(e))for(const t of e.args)Rt(t.type,r);Rt(ft,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of r){if(null==e)continue;const t=e.name;if(t||(0,i.U)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,P(e)){for(const t of e.getInterfaces())if(P(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(M(e))for(const t of e.getInterfaces())if(P(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case l.cE.QUERY:return this.getQueryType();case l.cE.MUTATION:return this.getMutationType();case l.cE.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return j(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),j(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function Rt(e,t){const n=me(e);if(!t.has(n))if(t.add(n),j(n))for(const e of n.getTypes())Rt(e,t);else if(M(n)||P(n)){for(const e of n.getInterfaces())Rt(e,t);for(const e of Object.values(n.getFields())){Rt(e.type,t);for(const n of e.args)Rt(n.type,t)}}else if(B(n))for(const e of Object.values(n.getFields()))Rt(e.type,t);return t}function At(e){if(St(e),e.__validationErrors)return e.__validationErrors;const t=new kt(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!M(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,u.N)(n)}.`,null!==(r=$t(t,l.cE.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const o=t.getMutationType();var i;o&&!M(o)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,u.N)(o)}.`,null!==(i=$t(t,l.cE.MUTATION))&&void 0!==i?i:o.astNode);const a=t.getSubscriptionType();var s;a&&!M(a)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,u.N)(a)}.`,null!==(s=$t(t,l.cE.SUBSCRIPTION))&&void 0!==s?s:a.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(Ke(n)){Lt(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args){var t;if(Lt(e,r),K(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,u.N)(r.type)}.`,r.astNode),Se(r)&&null!=r.deprecationReason)e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Bt(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,u.N)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return o;function o(i){if(t[i.name])return;t[i.name]=!0,r[i.name]=n.length;const a=Object.values(i.getFields());for(const t of a)if(W(t.type)&&B(t.type.ofType)){const i=t.type.ofType,a=r[i.name];if(n.push(t),void 0===a)o(i);else{const t=n.slice(a),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${i.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[i.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))he(r)?(It(r)||Lt(e,r),M(r)||P(r)?(Vt(e,r),xt(e,r)):j(r)?Pt(e,r):Q(r)?Ut(e,r):B(r)&&(jt(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${(0,u.N)(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Ft(e){const t=At(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}class kt{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new c.eO(e,{nodes:n}))}getErrors(){return this._errors}}function $t(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function Lt(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Vt(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var r;if(Lt(e,a),!Z(a.type))e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,u.N)(a.type)}.`,null===(r=a.astNode)||void 0===r?void 0:r.type);for(const n of a.args){const r=n.name;var o,i;if(Lt(e,n),!K(n.type))e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${(0,u.N)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type);if(Se(n)&&null!=n.deprecationReason)e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[Bt(n.astNode),null===(i=n.astNode)||void 0===i?void 0:i.type])}}}function xt(e,t){const n=Object.create(null);for(const r of t.getInterfaces())P(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Qt(t,r)):(n[r.name]=!0,Ct(e,t,r),Mt(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Qt(t,r)):e.reportError(`Type ${(0,u.N)(t)} must only implement Interface types, it cannot implement ${(0,u.N)(r)}.`,Qt(t,r))}function Mt(e,t,n){const r=t.getFields();for(const c of Object.values(n.getFields())){const l=c.name,p=r[l];if(p){var o,i;if(!Ce(e.schema,p.type,c.type))e.reportError(`Interface field ${n.name}.${l} expects type ${(0,u.N)(c.type)} but ${t.name}.${l} is type ${(0,u.N)(p.type)}.`,[null===(o=c.astNode)||void 0===o?void 0:o.type,null===(i=p.astNode)||void 0===i?void 0:i.type]);for(const r of c.args){const o=r.name,i=p.args.find(e=>e.name===o);var a,s;if(i){if(!Me(r.type,i.type))e.reportError(`Interface field argument ${n.name}.${l}(${o}:) expects type ${(0,u.N)(r.type)} but ${t.name}.${l}(${o}:) is type ${(0,u.N)(i.type)}.`,[null===(a=r.astNode)||void 0===a?void 0:a.type,null===(s=i.astNode)||void 0===s?void 0:s.type])}else e.reportError(`Interface field argument ${n.name}.${l}(${o}:) expected but ${t.name}.${l} does not provide it.`,[r.astNode,p.astNode])}for(const r of p.args){const o=r.name;!c.args.find(e=>e.name===o)&&Se(r)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${o} that is missing from the Interface field ${n.name}.${l}.`,[r.astNode,c.astNode])}}else e.reportError(`Interface field ${n.name}.${l} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes])}}function Ct(e,t,n){const r=t.getInterfaces();for(const o of n.getInterfaces())r.includes(o)||e.reportError(o===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${o.name} because it is implemented by ${n.name}.`,[...Qt(n,o),...Qt(t,n)])}function Pt(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const o of n)r[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,Gt(t,o.name)):(r[o.name]=!0,M(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,u.N)(o)}.`,Gt(t,String(o))))}function Ut(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)Lt(e,t)}function jt(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const i of n){var r,o;if(Lt(e,i),!K(i.type))e.reportError(`The type of ${t.name}.${i.name} must be Input Type but got: ${(0,u.N)(i.type)}.`,null===(r=i.astNode)||void 0===r?void 0:r.type);if(xe(i)&&null!=i.deprecationReason)e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[Bt(i.astNode),null===(o=i.astNode)||void 0===o?void 0:o.type]);t.isOneOf&&qt(t,i,e)}}function qt(e,t,n){var r;W(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type);void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Qt(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function Gt(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function Bt(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===rt.name)}var Ht=n(90424);function Yt(e,t){switch(t.kind){case S.b.LIST_TYPE:{const n=Yt(e,t.type);return n&&new se(n)}case S.b.NON_NULL_TYPE:{const n=Yt(e,t.type);return n&&new ue(n)}case S.b.NAMED_TYPE:return e.getType(t.name.value)}}class Jt{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:Wt,t&&(K(t)&&this._inputTypeStack.push(t),re(t)&&this._parentTypeStack.push(t),Z(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case S.b.SELECTION_SET:{const e=me(this.getType());this._parentTypeStack.push(re(e)?e:void 0);break}case S.b.FIELD:{const n=this.getParentType();let r,o;n&&(r=this._getFieldDef(t,n,e),r&&(o=r.type)),this._fieldDefStack.push(r),this._typeStack.push(Z(o)?o:void 0);break}case S.b.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case S.b.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(M(n)?n:void 0);break}case S.b.INLINE_FRAGMENT:case S.b.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?Yt(t,n):me(this.getType());this._typeStack.push(Z(r)?r:void 0);break}case S.b.VARIABLE_DEFINITION:{const n=Yt(t,e.type);this._inputTypeStack.push(K(n)?n:void 0);break}case S.b.ARGUMENT:{var n;let t,r;const o=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();o&&(t=o.args.find(t=>t.name===e.name.value),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(K(r)?r:void 0);break}case S.b.LIST:{const e=de(this.getInputType()),t=Y(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(K(t)?t:void 0);break}case S.b.OBJECT_FIELD:{const t=me(this.getInputType());let n,r;B(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(K(n)?n:void 0);break}case S.b.ENUM:{const t=me(this.getInputType());let n;Q(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case S.b.SELECTION_SET:this._parentTypeStack.pop();break;case S.b.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case S.b.DIRECTIVE:this._directive=null;break;case S.b.OPERATION_DEFINITION:case S.b.INLINE_FRAGMENT:case S.b.FRAGMENT_DEFINITION:this._typeStack.pop();break;case S.b.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case S.b.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case S.b.LIST:case S.b.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case S.b.ENUM:this._enumValue=null}}}function Wt(e,t,n){const r=n.name.value;return r===Tt.name&&e.getQueryType()===t?Tt:r===Nt.name&&e.getQueryType()===t?Nt:r===_t.name&&re(t)?_t:M(t)||P(t)?t.getFields()[r]:void 0}function zt(e,t){return{enter(...n){const r=n[0];e.enter(r);const o=(0,Ht.XO)(t,r.kind).enter;if(o){const i=o.apply(t,n);return void 0!==i&&(e.leave(r),(0,l.Ll)(i)&&e.enter(i)),i}},leave(...n){const r=n[0],o=(0,Ht.XO)(t,r.kind).leave;let i;return o&&(i=o.apply(t,n)),e.leave(r),i}}}var Kt=n(3420);function Xt(e){return{Document(t){for(const n of t.definitions)if(!(0,Kt._m)(n)){const t=n.kind===S.b.SCHEMA_DEFINITION||n.kind===S.b.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new c.eO(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function Zt(e){return{Field(t){const n=e.getParentType();if(n){if(!e.getFieldDef()){const r=e.getSchema(),o=t.name.value;let i=f("to use an inline fragment on",function(e,t,n){if(!ie(t))return[];const r=new Set,o=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),o[a.name]=1;for(const e of a.getInterfaces()){var i;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(i=o[e.name])&&void 0!==i?i:0)+1)}}return[...r].sort((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:P(t)&&e.isSubType(t,n)?-1:P(n)&&e.isSubType(n,t)?1:b(t.name,n.name)}).map(e=>e.name)}(r,n,o));""===i&&(i=f(function(e,t){if(M(e)||P(e)){return _(t,Object.keys(e.getFields()))}return[]}(n,o))),e.reportError(new c.eO(`Cannot query field "${o}" on type "${n.name}".`+i,{nodes:t}))}}}}}function en(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=Yt(e.getSchema(),n);if(t&&!re(t)){const t=(0,D.y)(n);e.reportError(new c.eO(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=Yt(e.getSchema(),t.typeCondition);if(n&&!re(n)){const n=(0,D.y)(t.typeCondition);e.reportError(new c.eO(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function tn(e){return{...nn(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),o=e.getParentType();if(!n&&r&&o){const n=t.name.value,i=_(n,r.args.map(e=>e.name));e.reportError(new c.eO(`Unknown argument "${n}" on field "${o.name}.${r.name}".`+f(i),{nodes:t}))}}}}function nn(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():at;for(const e of r)t[e.name]=e.args.map(e=>e.name);const o=e.getDocument().definitions;for(const e of o)if(e.kind===S.b.DIRECTIVE_DEFINITION){var i;const n=null!==(i=e.arguments)&&void 0!==i?i:[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){const r=n.name.value,o=t[r];if(n.arguments&&o)for(const t of n.arguments){const n=t.name.value;if(!o.includes(n)){const i=_(n,o);e.reportError(new c.eO(`Unknown argument "${n}" on directive "@${r}".`+f(i),{nodes:t}))}}return!1}}}function rn(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():at;for(const e of r)t[e.name]=e.locations;const o=e.getDocument().definitions;for(const e of o)e.kind===S.b.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,r,o,i,a){const s=n.name.value,p=t[s];if(!p)return void e.reportError(new c.eO(`Unknown directive "@${s}".`,{nodes:n}));const f=function(e){const t=e[e.length-1];switch("kind"in t||(0,ut.V)(!1),t.kind){case S.b.OPERATION_DEFINITION:return function(e){switch(e){case l.cE.QUERY:return Ue.H.QUERY;case l.cE.MUTATION:return Ue.H.MUTATION;case l.cE.SUBSCRIPTION:return Ue.H.SUBSCRIPTION}}(t.operation);case S.b.FIELD:return Ue.H.FIELD;case S.b.FRAGMENT_SPREAD:return Ue.H.FRAGMENT_SPREAD;case S.b.INLINE_FRAGMENT:return Ue.H.INLINE_FRAGMENT;case S.b.FRAGMENT_DEFINITION:return Ue.H.FRAGMENT_DEFINITION;case S.b.VARIABLE_DEFINITION:return Ue.H.VARIABLE_DEFINITION;case S.b.SCHEMA_DEFINITION:case S.b.SCHEMA_EXTENSION:return Ue.H.SCHEMA;case S.b.SCALAR_TYPE_DEFINITION:case S.b.SCALAR_TYPE_EXTENSION:return Ue.H.SCALAR;case S.b.OBJECT_TYPE_DEFINITION:case S.b.OBJECT_TYPE_EXTENSION:return Ue.H.OBJECT;case S.b.FIELD_DEFINITION:return Ue.H.FIELD_DEFINITION;case S.b.INTERFACE_TYPE_DEFINITION:case S.b.INTERFACE_TYPE_EXTENSION:return Ue.H.INTERFACE;case S.b.UNION_TYPE_DEFINITION:case S.b.UNION_TYPE_EXTENSION:return Ue.H.UNION;case S.b.ENUM_TYPE_DEFINITION:case S.b.ENUM_TYPE_EXTENSION:return Ue.H.ENUM;case S.b.ENUM_VALUE_DEFINITION:return Ue.H.ENUM_VALUE;case S.b.INPUT_OBJECT_TYPE_DEFINITION:case S.b.INPUT_OBJECT_TYPE_EXTENSION:return Ue.H.INPUT_OBJECT;case S.b.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,ut.V)(!1),t.kind===S.b.INPUT_OBJECT_TYPE_DEFINITION?Ue.H.INPUT_FIELD_DEFINITION:Ue.H.ARGUMENT_DEFINITION}default:(0,ut.V)(!1,"Unexpected kind: "+(0,u.N)(t.kind))}}(a);f&&!p.includes(f)&&e.reportError(new c.eO(`Directive "@${s}" may not be used on ${f}.`,{nodes:n}))}}}function on(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new c.eO(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function an(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const t of e.getDocument().definitions)(0,Kt.a6)(t)&&(r[t.name.value]=!0);const o=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,i,a,s,u){const l=t.name.value;if(!n[l]&&!r[l]){var p;const n=null!==(p=u[2])&&void 0!==p?p:a,r=null!=n&&("kind"in(d=n)&&((0,Kt.xu)(d)||(0,Kt.fT)(d)));if(r&&sn.includes(l))return;const i=_(l,r?sn.concat(o):o);e.reportError(new c.eO(`Unknown type "${l}".`+f(i),{nodes:t}))}var d}}}const sn=[...Je,...Ot].map(e=>e.name);function un(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===S.b.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new c.eO("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function cn(e){var t,n,r;const o=e.getSchema(),i=null!==(t=null!==(n=null!==(r=null==o?void 0:o.astNode)&&void 0!==r?r:null==o?void 0:o.getQueryType())&&void 0!==n?n:null==o?void 0:o.getMutationType())&&void 0!==t?t:null==o?void 0:o.getSubscriptionType();let a=0;return{SchemaDefinition(t){i?e.reportError(new c.eO("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new c.eO("Must provide only one schema definition.",{nodes:t})),++a)}}}const ln=3;function pn(e){function t(n,r=Object.create(null),o=0){if(n.kind===S.b.FRAGMENT_SPREAD){const i=n.name.value;if(!0===r[i])return!1;const a=e.getFragment(i);if(!a)return!1;try{return r[i]=!0,t(a,r,o)}finally{r[i]=void 0}}if(n.kind===S.b.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++o>=ln)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,o))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new c.eO("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function fn(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(i){if(t[i.name.value])return;const a=i.name.value;t[a]=!0;const s=e.getFragmentSpreads(i.selectionSet);if(0!==s.length){r[a]=n.length;for(const t of s){const i=t.name.value,a=r[i];if(n.push(t),void 0===a){const t=e.getFragment(i);t&&o(t)}else{const t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new c.eO(`Cannot spread fragment "${i}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}}}function dn(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:o}of r){const r=o.name.value;!0!==t[r]&&e.reportError(new c.eO(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function hn(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new c.eO(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function yn(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)r[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==r[t]&&e.reportError(new c.eO(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}}function mn(e){switch(e.kind){case S.b.OBJECT:return{...e,fields:(t=e.fields,t.map(e=>({...e,value:mn(e.value)})).sort((e,t)=>b(e.name.value,t.name.value)))};case S.b.LIST:return{...e,values:e.values.map(mn)};case S.b.INT:case S.b.FLOAT:case S.b.STRING:case S.b.BOOLEAN:case S.b.NULL:case S.b.ENUM:case S.b.VARIABLE:return e}var t}function vn(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+vn(t)).join(" and "):e}function gn(e){const t=new Dn,n=new Rn,r=new Map;return{SelectionSet(o){const i=function(e,t,n,r,o,i){const a=[],[s,u]=In(e,t,o,i);if(function(e,t,n,r,o,i){for(const[a,s]of Object.entries(i))if(s.length>1)for(let i=0;i<s.length;i++)for(let u=i+1;u<s.length;u++){const c=Nn(e,n,r,o,!1,a,s[i],s[u]);c&&t.push(c)}}(e,a,t,n,r,s),0!==u.length)for(let o=0;o<u.length;o++){bn(e,a,t,n,r,!1,s,u[o]);for(let i=o+1;i<u.length;i++)En(e,a,t,n,r,!1,u[o],u[i])}return a}(e,r,t,n,e.getParentType(),o);for(const[[t,n],r,o]of i){const i=vn(n);e.reportError(new c.eO(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}}function bn(e,t,n,r,o,i,a,s){if(r.has(a,s,i))return;r.add(a,s,i);const u=e.getFragment(s);if(!u)return;const[c,l]=wn(e,n,u);if(a!==c){Tn(e,t,n,r,o,i,a,c);for(const s of l)bn(e,t,n,r,o,i,a,s)}}function En(e,t,n,r,o,i,a,s){if(a===s)return;if(o.has(a,s,i))return;o.add(a,s,i);const u=e.getFragment(a),c=e.getFragment(s);if(!u||!c)return;const[l,p]=wn(e,n,u),[f,d]=wn(e,n,c);Tn(e,t,n,r,o,i,l,f);for(const s of d)En(e,t,n,r,o,i,a,s);for(const a of p)En(e,t,n,r,o,i,a,s)}function Tn(e,t,n,r,o,i,a,s){for(const[u,c]of Object.entries(a)){const a=s[u];if(a)for(const s of c)for(const c of a){const a=Nn(e,n,r,o,i,u,s,c);a&&t.push(a)}}}function Nn(e,t,n,r,o,i,a,s){const[c,l,p]=a,[f,d,h]=s,y=o||c!==f&&M(c)&&M(f);if(!y){const e=l.name.value,t=d.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[l],[d]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const o=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{const t=e.value,n=o.get(e.name.value);return void 0!==n&&_n(t)===_n(n)})}(l,d))return[[i,"they have differing arguments"],[l],[d]]}const m=null==p?void 0:p.type,v=null==h?void 0:h.type;if(m&&v&&On(m,v))return[[i,`they return conflicting types "${(0,u.N)(m)}" and "${(0,u.N)(v)}"`],[l],[d]];const g=l.selectionSet,b=d.selectionSet;if(g&&b){const o=function(e,t,n,r,o,i,a,s,u){const c=[],[l,p]=In(e,t,i,a),[f,d]=In(e,t,s,u);Tn(e,c,t,n,r,o,l,f);for(const i of d)bn(e,c,t,n,r,o,l,i);for(const i of p)bn(e,c,t,n,r,o,f,i);for(const i of p)for(const a of d)En(e,c,t,n,r,o,i,a);return c}(e,t,n,r,y,me(m),g,me(v),b);return function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(o,i,l,d)}}function _n(e){return(0,D.y)(mn(e))}function On(e,t){return Y(e)?!Y(t)||On(e.ofType,t.ofType):!!Y(t)||(W(e)?!W(t)||On(e.ofType,t.ofType):!!W(t)||!(!te(e)&&!te(t))&&e!==t)}function In(e,t,n,r){const o=t.get(r);if(o)return o;const i=Object.create(null),a=Object.create(null);Sn(e,n,r,i,a);const s=[i,Object.keys(a)];return t.set(r,s),s}function wn(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const o=Yt(e.getSchema(),n.typeCondition);return In(e,t,o,n.selectionSet)}function Sn(e,t,n,r,o){for(const i of n.selections)switch(i.kind){case S.b.FIELD:{const e=i.name.value;let n;(M(t)||P(t))&&(n=t.getFields()[e]);const o=i.alias?i.alias.value:e;r[o]||(r[o]=[]),r[o].push([t,i,n]);break}case S.b.FRAGMENT_SPREAD:o[i.name.value]=!0;break;case S.b.INLINE_FRAGMENT:{const n=i.typeCondition,a=n?Yt(e.getSchema(),n):t;Sn(e,a,i.selectionSet,r,o);break}}}class Dn{constructor(){this._data=new Map}has(e,t,n){var r;const o=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==o&&(!!n||n===o)}add(e,t,n){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class Rn{constructor(){this._orderedPairSet=new Dn}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}}function An(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(re(n)&&re(r)&&!Pe(e.getSchema(),n,r)){const o=(0,u.N)(r),i=(0,u.N)(n);e.reportError(new c.eO(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=function(e,t){const n=e.getFragment(t);if(n){const t=Yt(e.getSchema(),n.typeCondition);if(re(t))return t}}(e,n),o=e.getParentType();if(r&&o&&!Pe(e.getSchema(),r,o)){const i=(0,u.N)(o),a=(0,u.N)(r);e.reportError(new c.eO(`Fragment "${n}" cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}}}}function Fn(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)(0,Kt.a6)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const o=r.name.value,i=n[o],a=null==t?void 0:t.getType(o);let s;if(i?s=kn[i.kind]:a&&(s=function(e){if(V(e))return S.b.SCALAR_TYPE_EXTENSION;if(M(e))return S.b.OBJECT_TYPE_EXTENSION;if(P(e))return S.b.INTERFACE_TYPE_EXTENSION;if(j(e))return S.b.UNION_TYPE_EXTENSION;if(Q(e))return S.b.ENUM_TYPE_EXTENSION;if(B(e))return S.b.INPUT_OBJECT_TYPE_EXTENSION;(0,ut.V)(!1,"Unexpected type: "+(0,u.N)(e))}(a)),s){if(s!==r.kind){const t=function(e){switch(e){case S.b.SCALAR_TYPE_EXTENSION:return"scalar";case S.b.OBJECT_TYPE_EXTENSION:return"object";case S.b.INTERFACE_TYPE_EXTENSION:return"interface";case S.b.UNION_TYPE_EXTENSION:return"union";case S.b.ENUM_TYPE_EXTENSION:return"enum";case S.b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,ut.V)(!1,"Unexpected kind: "+(0,u.N)(e))}}(r.kind);e.reportError(new c.eO(`Cannot extend non-${t} type "${o}".`,{nodes:i?[i,r]:r}))}}else{const i=_(o,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new c.eO(`Cannot extend type "${o}" because it is not defined.`+f(i),{nodes:r.name}))}}}const kn={[S.b.SCALAR_TYPE_DEFINITION]:S.b.SCALAR_TYPE_EXTENSION,[S.b.OBJECT_TYPE_DEFINITION]:S.b.OBJECT_TYPE_EXTENSION,[S.b.INTERFACE_TYPE_DEFINITION]:S.b.INTERFACE_TYPE_EXTENSION,[S.b.UNION_TYPE_DEFINITION]:S.b.UNION_TYPE_EXTENSION,[S.b.ENUM_TYPE_DEFINITION]:S.b.ENUM_TYPE_EXTENSION,[S.b.INPUT_OBJECT_TYPE_DEFINITION]:S.b.INPUT_OBJECT_TYPE_EXTENSION};function $n(e){return{...Ln(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const o=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const n of r.args)if(!o.has(n.name)&&Se(n)){const o=(0,u.N)(n.type);e.reportError(new c.eO(`Field "${r.name}" argument "${n.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}}}function Ln(e){var t;const n=Object.create(null),r=e.getSchema(),o=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:at;for(const e of o)n[e.name]=m(e.args.filter(Se),e=>e.name);const i=e.getDocument().definitions;for(const e of i)if(e.kind===S.b.DIRECTIVE_DEFINITION){var a;const t=null!==(a=e.arguments)&&void 0!==a?a:[];n[e.name.value]=m(t.filter(Vn),e=>e.name.value)}return{Directive:{leave(t){const r=t.name.value,o=n[r];if(o){var i;const n=null!==(i=t.arguments)&&void 0!==i?i:[],a=new Set(n.map(e=>e.name.value));for(const[n,i]of Object.entries(o))if(!a.has(n)){const o=$(i.type)?(0,u.N)(i.type):(0,D.y)(i.type);e.reportError(new c.eO(`Directive "@${r}" argument "${n}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}}}}function Vn(e){return e.type.kind===S.b.NON_NULL_TYPE&&null==e.defaultValue}function xn(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(te(me(n))){if(r){const o=t.name.value,i=(0,u.N)(n);e.reportError(new c.eO(`Field "${o}" must not have a selection since type "${i}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=t.name.value,o=(0,u.N)(n);e.reportError(new c.eO(`Field "${r}" of type "${o}" must have at least one field selected.`,{nodes:t}))}}else{const r=t.name.value,o=(0,u.N)(n);e.reportError(new c.eO(`Field "${r}" of type "${o}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function Mn(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function Cn(e,t,n){return{prev:e,key:t,typename:n}}function Pn(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Un(e,t,n=jn){return qn(e,t,n,void 0)}function jn(e,t,n){let r="Invalid value "+(0,u.N)(t);throw e.length>0&&(r+=` at "value${Mn(e)}"`),n.message=r+": "+n.message,n}function qn(e,t,n,r){if(W(t))return null!=e?qn(e,t.ofType,n,r):void n(Pn(r),e,new c.eO(`Expected non-nullable type "${(0,u.N)(t)}" not to be null.`));if(null==e)return null;if(Y(t)){const o=t.ofType;return ct(e)?Array.from(e,(e,t)=>{const i=Cn(r,t,void 0);return qn(e,o,n,i)}):[qn(e,o,n,r)]}if(B(t)){if(!(0,y.Z)(e)||Array.isArray(e))return void n(Pn(r),e,new c.eO(`Expected type "${t.name}" to be an object.`));const o={},i=t.getFields();for(const a of Object.values(i)){const i=e[a.name];if(void 0!==i)o[a.name]=qn(i,a.type,n,Cn(r,a.name,t.name));else if(void 0!==a.defaultValue)o[a.name]=a.defaultValue;else if(W(a.type)){const t=(0,u.N)(a.type);n(Pn(r),e,new c.eO(`Field "${a.name}" of required type "${t}" was not provided.`))}}for(const o of Object.keys(e))if(!i[o]){const i=_(o,Object.keys(t.getFields()));n(Pn(r),e,new c.eO(`Field "${o}" is not defined by type "${t.name}".`+f(i)))}if(t.isOneOf){const i=Object.keys(o);1!==i.length&&n(Pn(r),e,new c.eO(`Exactly one key must be specified for OneOf type "${t.name}".`));const a=i[0],s=o[a];null===s&&n(Pn(r).concat(a),s,new c.eO(`Field "${a}" must be non-null.`))}return o}if(te(t)){let o;try{o=t.parseValue(e)}catch(o){return void(o instanceof c.eO?n(Pn(r),e,o):n(Pn(r),e,new c.eO(`Expected type "${t.name}". `+o.message,{originalError:o})))}return void 0===o&&n(Pn(r),e,new c.eO(`Expected type "${t.name}".`)),o}(0,ut.V)(!1,"Unexpected input type: "+(0,u.N)(t))}function Qn(e,t,n){if(e){if(e.kind===S.b.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const o=n[r];if(null===o&&W(t))return;return o}if(W(t)){if(e.kind===S.b.NULL)return;return Qn(e,t.ofType,n)}if(e.kind===S.b.NULL)return null;if(Y(t)){const r=t.ofType;if(e.kind===S.b.LIST){const t=[];for(const o of e.values)if(Gn(o,n)){if(W(r))return;t.push(null)}else{const e=Qn(o,r,n);if(void 0===e)return;t.push(e)}return t}const o=Qn(e,r,n);if(void 0===o)return;return[o]}if(B(t)){if(e.kind!==S.b.OBJECT)return;const r=Object.create(null),o=m(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=o[e.name];if(!t||Gn(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(W(e.type))return;continue}const i=Qn(t.value,e.type,n);if(void 0===i)return;r[e.name]=i}if(t.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if(te(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}(0,ut.V)(!1,"Unexpected input type: "+(0,u.N)(t))}}function Gn(e,t){return e.kind===S.b.VARIABLE&&(null==t||void 0===t[e.name.value])}function Bn(e,t,n,r){const o=[],i=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const o={};for(const i of t){const t=i.variable.name.value,a=Yt(e,i.type);if(!K(a)){const e=(0,D.y)(i.type);r(new c.eO(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:i.type}));continue}if(!Jn(n,t)){if(i.defaultValue)o[t]=Qn(i.defaultValue,a);else if(W(a)){const e=(0,u.N)(a);r(new c.eO(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:i}))}continue}const s=n[t];if(null===s&&W(a)){const e=(0,u.N)(a);r(new c.eO(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:i}));continue}o[t]=Un(s,a,(e,n,o)=>{let a=`Variable "$${t}" got invalid value `+(0,u.N)(n);e.length>0&&(a+=` at "${t}${Mn(e)}"`),r(new c.eO(a+"; "+o.message,{nodes:i,originalError:o}))})}return o}(e,t,n,e=>{if(null!=i&&o.length>=i)throw new c.eO("Too many errors processing variables, error limit reached. Execution aborted.");o.push(e)});if(0===o.length)return{coerced:r}}catch(e){o.push(e)}return{errors:o}}function Hn(e,t,n){var r;const o={},i=m(null!==(r=t.arguments)&&void 0!==r?r:[],e=>e.name.value);for(const r of e.args){const e=r.name,a=r.type,s=i[e];if(!s){if(void 0!==r.defaultValue)o[e]=r.defaultValue;else if(W(a))throw new c.eO(`Argument "${e}" of required type "${(0,u.N)(a)}" was not provided.`,{nodes:t});continue}const l=s.value;let p=l.kind===S.b.NULL;if(l.kind===S.b.VARIABLE){const t=l.name.value;if(null==n||!Jn(n,t)){if(void 0!==r.defaultValue)o[e]=r.defaultValue;else if(W(a))throw new c.eO(`Argument "${e}" of required type "${(0,u.N)(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}p=null==n[t]}if(p&&W(a))throw new c.eO(`Argument "${e}" of non-null type "${(0,u.N)(a)}" must not be null.`,{nodes:l});const f=Qn(l,a,n);if(void 0===f)throw new c.eO(`Argument "${e}" has invalid value ${(0,D.y)(l)}.`,{nodes:l});o[e]=f}return o}function Yn(e,t,n){var r;const o=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(o)return Hn(e,o,n)}function Jn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Wn(e,t,n,r,o){const i=new Map;return zn(e,t,n,r,o,i,new Set),i}function zn(e,t,n,r,o,i,a){for(const s of o.selections)switch(s.kind){case S.b.FIELD:{if(!Kn(n,s))continue;const e=Zn(s),t=i.get(e);void 0!==t?t.push(s):i.set(e,[s]);break}case S.b.INLINE_FRAGMENT:if(!Kn(n,s)||!Xn(e,s,r))continue;zn(e,t,n,r,s.selectionSet,i,a);break;case S.b.FRAGMENT_SPREAD:{const o=s.name.value;if(a.has(o)||!Kn(n,s))continue;a.add(o);const u=t[o];if(!u||!Xn(e,u,r))continue;zn(e,t,n,r,u.selectionSet,i,a);break}}}function Kn(e,t){const n=Yn(tt,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=Yn(et,t,e);return!1!==(null==r?void 0:r.if)}function Xn(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=Yt(e,r);return o===n||!!ie(o)&&e.isSubType(o,n)}function Zn(e){return e.alias?e.alias.value:e.name.value}function er(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const o=t.name?t.name.value:null,i=Object.create(null),a=e.getDocument(),s=Object.create(null);for(const e of a.definitions)e.kind===S.b.FRAGMENT_DEFINITION&&(s[e.name.value]=e);const u=Wn(n,s,i,r,t.selectionSet);if(u.size>1){const t=[...u.values()].slice(1).flat();e.reportError(new c.eO(null!=o?`Subscription "${o}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of u.values()){t[0].name.value.startsWith("__")&&e.reportError(new c.eO(null!=o?`Subscription "${o}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}function tr(e,t){const n=new Map;for(const r of e){const e=t(r),o=n.get(e);void 0===o?n.set(e,[r]):o.push(r)}return n}function nr(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,o=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of o){var i;n(`${r}.${e.name.value}`,null!==(i=e.arguments)&&void 0!==i?i:[])}return!1}function n(t,n){const r=tr(n,e=>e.name.value);for(const[n,o]of r)o.length>1&&e.reportError(new c.eO(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:o.map(e=>e.name)}));return!1}}function rr(e){return{Field:t,Directive:t};function t(t){var n;const r=tr(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value);for(const[t,n]of r)n.length>1&&e.reportError(new c.eO(`There can be only one argument named "${t}".`,{nodes:n.map(e=>e.name)}))}}function or(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const o=r.name.value;if(null==n||!n.getDirective(o))return t[o]?e.reportError(new c.eO(`There can be only one directive named "@${o}".`,{nodes:[t[o],r.name]})):t[o]=r.name,!1;e.reportError(new c.eO(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}function ir(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():at;for(const e of r)t[e.name]=!e.isRepeatable;const o=e.getDocument().definitions;for(const e of o)e.kind===S.b.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const i=Object.create(null),a=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===S.b.SCHEMA_DEFINITION||n.kind===S.b.SCHEMA_EXTENSION)r=i;else if((0,Kt.a6)(n)||(0,Kt.i7)(n)){const e=n.name.value;r=a[e],void 0===r&&(a[e]=r=Object.create(null))}else r=Object.create(null);for(const o of n.directives){const n=o.name.value;t[n]&&(r[n]?e.reportError(new c.eO(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],o]})):r[n]=o)}}}}function ar(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(t){var o;const i=t.name.value;r[i]||(r[i]=Object.create(null));const a=null!==(o=t.values)&&void 0!==o?o:[],s=r[i];for(const t of a){const r=t.name.value,o=n[i];Q(o)&&o.getValue(r)?e.reportError(new c.eO(`Enum value "${i}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new c.eO(`Enum value "${i}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function sr(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(t){var o;const i=t.name.value;r[i]||(r[i]=Object.create(null));const a=null!==(o=t.fields)&&void 0!==o?o:[],s=r[i];for(const t of a){const r=t.name.value;ur(n[i],r)?e.reportError(new c.eO(`Field "${i}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new c.eO(`Field "${i}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function ur(e,t){return!!(M(e)||P(e)||B(e))&&null!=e.getFields()[t]}function cr(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new c.eO(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function lr(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,ut.V)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new c.eO(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function pr(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new c.eO(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function fr(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const i=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const t of i){const o=t.operation,i=n[o];r[o]?e.reportError(new c.eO(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:t})):i?e.reportError(new c.eO(`There can be only one ${o} type in schema.`,{nodes:[i,t]})):n[o]=t}return!1}}function dr(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const o=r.name.value;if(null==n||!n.getType(o))return t[o]?e.reportError(new c.eO(`There can be only one type named "${o}".`,{nodes:[t[o],r.name]})):t[o]=r.name,!1;e.reportError(new c.eO(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}function hr(e){return{OperationDefinition(t){var n;const r=tr(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value);for(const[t,n]of r)n.length>1&&e.reportError(new c.eO(`There can be only one variable named "$${t}".`,{nodes:n.map(e=>e.variable.name)}))}}}function yr(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!Y(de(e.getParentInputType())))return mr(e,t),!1},ObjectValue(t){const n=me(e.getInputType());if(!B(n))return mr(e,t),!1;const r=m(t.fields,e=>e.name.value);for(const o of Object.values(n.getFields())){if(!r[o.name]&&xe(o)){const r=(0,u.N)(o.type);e.reportError(new c.eO(`Field "${n.name}.${o.name}" of required type "${r}" was not provided.`,{nodes:t}))}}n.isOneOf&&function(e,t,n,r){var o;const i=Object.keys(r);if(1!==i.length)return void e.reportError(new c.eO(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const a=null===(o=r[i[0]])||void 0===o?void 0:o.value;a&&a.kind!==S.b.NULL||e.reportError(new c.eO(`Field "${n.name}.${i[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){const n=me(e.getParentInputType());if(!e.getInputType()&&B(n)){const r=_(t.name.value,Object.keys(n.getFields()));e.reportError(new c.eO(`Field "${t.name.value}" is not defined by type "${n.name}".`+f(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();W(n)&&e.reportError(new c.eO(`Expected value of type "${(0,u.N)(n)}", found ${(0,D.y)(t)}.`,{nodes:t}))},EnumValue:t=>mr(e,t),IntValue:t=>mr(e,t),FloatValue:t=>mr(e,t),StringValue:t=>mr(e,t),BooleanValue:t=>mr(e,t)}}function mr(e,t){const n=e.getInputType();if(!n)return;const r=me(n);if(!te(r)){const r=(0,u.N)(n);return void e.reportError(new c.eO(`Expected value of type "${r}", found ${(0,D.y)(t)}.`,{nodes:t}))}try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,u.N)(n);e.reportError(new c.eO(`Expected value of type "${r}", found ${(0,D.y)(t)}.`,{nodes:t}))}}catch(r){const o=(0,u.N)(n);r instanceof c.eO?e.reportError(r):e.reportError(new c.eO(`Expected value of type "${o}", found ${(0,D.y)(t)}; `+r.message,{nodes:t,originalError:r}))}}function vr(e){return{VariableDefinition(t){const n=Yt(e.getSchema(),t.type);if(void 0!==n&&!K(n)){const n=t.variable.name.value,r=(0,D.y)(t.type);e.reportError(new c.eO(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function gr(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:n,type:o,defaultValue:i,parentType:a}of r){const r=n.name.value,s=t[r];if(s&&o){const t=e.getSchema(),l=Yt(t,s.type);if(l&&!br(t,l,s.defaultValue,o,i)){const t=(0,u.N)(l),i=(0,u.N)(o);e.reportError(new c.eO(`Variable "$${r}" of type "${t}" used in position expecting type "${i}".`,{nodes:[s,n]}))}B(a)&&a.isOneOf&&pe(l)&&e.reportError(new c.eO(`Variable "$${r}" is of type "${l}" but must be non-nullable to be used for OneOf Input Object "${a}".`,{nodes:[s,n]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function br(e,t,n,r,o){if(W(r)&&!W(t)){if(!(null!=n&&n.kind!==S.b.NULL)&&!(void 0!==o))return!1;return Ce(e,t,r.ofType)}return Ce(e,t,r)}const Er=Object.freeze([pn]),Tr=Object.freeze([Xt,pr,un,er,an,en,vr,xn,Zt,cr,on,hn,An,fn,hr,dn,yn,rn,ir,tn,rr,yr,$n,gr,gn,lr,...Er]),Nr=Object.freeze([cn,fr,dr,ar,sr,nr,or,an,rn,ir,Fn,nn,rr,lr,Ln]);class _r{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===S.b.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===S.b.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let o;for(;o=r.pop();)for(const e of this.getFragmentSpreads(o)){const o=e.name.value;if(!0!==n[o]){n[o]=!0;const e=this.getFragment(o);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class Or extends _r{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Ir extends _r{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new Jt(this._schema);(0,Ht.YR)(e,zt(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function wr(e,t,n=Tr,r,o=new Jt(e)){var a;const s=null!==(a=null==r?void 0:r.maxErrors)&&void 0!==a?a:100;t||(0,i.U)(!1,"Must provide document."),Ft(e);const u=Object.freeze({}),l=[],p=new Ir(e,t,o,e=>{if(l.length>=s)throw l.push(new c.eO("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(e)}),f=(0,Ht.oP)(n.map(e=>e(p)));try{(0,Ht.YR)(t,zt(o,f))}catch(e){if(e!==u)throw e}return l}function Sr(e,t,n=Nr){const r=[],o=new Or(e,t,e=>{r.push(e)}),i=n.map(e=>e(o));return(0,Ht.YR)(e,(0,Ht.oP)(i)),r}function Dr(e){return Promise.all(Object.values(e)).then(t=>{const n=Object.create(null);for(const[r,o]of Object.keys(e).entries())n[o]=t[r];return n})}class Rr extends Error{constructor(e){super("Unexpected error value: "+(0,u.N)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function Ar(e,t,n){var r;const o=(i=e)instanceof Error?i:new Rr(i);var i,a;return a=o,Array.isArray(a.path)?o:new c.eO(o.message,{nodes:null!==(r=o.nodes)&&void 0!==r?r:t,source:o.source,positions:o.positions,path:n,originalError:o})}const Fr=function(e){let t;return function(n,r,o){void 0===t&&(t=new WeakMap);let i=t.get(n);void 0===i&&(i=new WeakMap,t.set(n,i));let a=i.get(r);void 0===a&&(a=new WeakMap,i.set(r,a));let s=a.get(o);return void 0===s&&(s=e(n,r,o),a.set(o,s)),s}}((e,t,n)=>function(e,t,n,r,o){const i=new Map,a=new Set;for(const s of o)s.selectionSet&&zn(e,t,n,r,s.selectionSet,i,a);return i}(e.schema,e.fragments,e.variableValues,t,n));function kr(e){arguments.length<2||(0,i.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:o}=e;Vr(t,n,r);const s=xr(e);if(!("schema"in s))return{errors:s};try{const{operation:e}=s,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new c.eO(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const o=Wn(e.schema,e.fragments,e.variableValues,r,t.selectionSet),i=void 0;switch(t.operation){case l.cE.QUERY:return Mr(e,r,n,i,o);case l.cE.MUTATION:return function(e,t,n,r,o){return function(e,t,n){let r=n;for(const n of e)r=a(r)?r.then(e=>t(e,n)):t(r,n);return r}(o.entries(),(o,[i,s])=>{const u=Cn(r,i,t.name),c=Cr(e,t,n,s,u);return void 0===c?o:a(c)?c.then(e=>(o[i]=e,o)):(o[i]=c,o)},Object.create(null))}(e,r,n,i,o);case l.cE.SUBSCRIPTION:return Mr(e,r,n,i,o)}}(s,e,o);return a(t)?t.then(e=>Lr(e,s.errors),e=>(s.errors.push(e),Lr(null,s.errors))):Lr(t,s.errors)}catch(e){return s.errors.push(e),Lr(null,s.errors)}}function $r(e){const t=kr(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Lr(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function Vr(e,t,n){t||(0,i.U)(!1,"Must provide document."),Ft(e),null==n||(0,y.Z)(n)||(0,i.U)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function xr(e){var t,n,r;const{schema:o,document:i,rootValue:a,contextValue:s,variableValues:u,operationName:l,fieldResolver:p,typeResolver:f,subscribeFieldResolver:d,options:h}=e;let y;const m=Object.create(null);for(const e of i.definitions)switch(e.kind){case S.b.OPERATION_DEFINITION:if(null==l){if(void 0!==y)return[new c.eO("Must provide operation name if query contains multiple operations.")];y=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===l&&(y=e);break;case S.b.FRAGMENT_DEFINITION:m[e.name.value]=e}if(!y)return null!=l?[new c.eO(`Unknown operation named "${l}".`)]:[new c.eO("Must provide an operation.")];const v=Bn(o,null!==(n=y.variableDefinitions)&&void 0!==n?n:[],null!=u?u:{},{maxErrors:null!==(r=null==h?void 0:h.maxCoercionErrors)&&void 0!==r?r:50});return v.errors?v.errors:{schema:o,fragments:m,rootValue:a,contextValue:s,operation:y,variableValues:v.coerced,fieldResolver:null!=p?p:Hr,typeResolver:null!=f?f:Br,subscribeFieldResolver:null!=d?d:Hr,errors:[]}}function Mr(e,t,n,r,o){const i=Object.create(null);let s=!1;try{for(const[u,c]of o.entries()){const o=Cr(e,t,n,c,Cn(r,u,t.name));void 0!==o&&(i[u]=o,a(o)&&(s=!0))}}catch(e){if(s)return Dr(i).finally(()=>{throw e});throw e}return s?Dr(i):i}function Cr(e,t,n,r,o){var i;const s=Yr(e.schema,t,r[0]);if(!s)return;const u=s.type,c=null!==(i=s.resolve)&&void 0!==i?i:e.fieldResolver,l=Pr(e,s,r,t,o);try{const t=Hn(s,r[0],e.variableValues),i=c(n,t,e.contextValue,l);let p;return p=a(i)?i.then(t=>jr(e,u,r,l,o,t)):jr(e,u,r,l,o,i),a(p)?p.then(void 0,t=>Ur(Ar(t,r,Pn(o)),u,e)):p}catch(t){return Ur(Ar(t,r,Pn(o)),u,e)}}function Pr(e,t,n,r,o){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:o,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Ur(e,t,n){if(W(t))throw e;return n.errors.push(e),null}function jr(e,t,n,r,o,i){if(i instanceof Error)throw i;if(W(t)){const a=jr(e,t.ofType,n,r,o,i);if(null===a)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==i?null:Y(t)?function(e,t,n,r,o,i){if(!ct(i))throw new c.eO(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const s=t.ofType;let u=!1;const l=Array.from(i,(t,i)=>{const c=Cn(o,i,void 0);try{let o;return o=a(t)?t.then(t=>jr(e,s,n,r,c,t)):jr(e,s,n,r,c,t),a(o)?(u=!0,o.then(void 0,t=>Ur(Ar(t,n,Pn(c)),s,e))):o}catch(t){return Ur(Ar(t,n,Pn(c)),s,e)}});return u?Promise.all(l):l}(e,t,n,r,o,i):te(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,u.N)(e)}.serialize(${(0,u.N)(t)})\` to return non-nullable value, returned: ${(0,u.N)(n)}`);return n}(t,i):ie(t)?function(e,t,n,r,o,i){var s;const u=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,l=u(i,c,r,t);if(a(l))return l.then(a=>Qr(e,qr(a,e,t,n,r,i),n,r,o,i));return Qr(e,qr(l,e,t,n,r,i),n,r,o,i)}(e,t,n,r,o,i):M(t)?Qr(e,t,n,r,o,i):void(0,ut.V)(!1,"Cannot complete value of unexpected output type: "+(0,u.N)(t))}function qr(e,t,n,r,o,i){if(null==e)throw new c.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(M(e))throw new c.eO("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new c.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,u.N)(i)}, received "${(0,u.N)(e)}".`);const a=t.schema.getType(e);if(null==a)throw new c.eO(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!M(a))throw new c.eO(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new c.eO(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function Qr(e,t,n,r,o,i){const s=Fr(e,t,n);if(t.isTypeOf){const u=t.isTypeOf(i,e.contextValue,r);if(a(u))return u.then(r=>{if(!r)throw Gr(t,i,n);return Mr(e,t,i,o,s)});if(!u)throw Gr(t,i,n)}return Mr(e,t,i,o,s)}function Gr(e,t,n){return new c.eO(`Expected value of type "${e.name}" but got: ${(0,u.N)(t)}.`,{nodes:n})}const Br=function(e,t,n,r){if((0,y.Z)(e)&&"string"==typeof e.__typename)return e.__typename;const o=n.schema.getPossibleTypes(r),i=[];for(let r=0;r<o.length;r++){const s=o[r];if(s.isTypeOf){const o=s.isTypeOf(e,t,n);if(a(o))i[r]=o;else if(o)return i.length&&Promise.allSettled(i).catch(()=>{}),s.name}}return i.length?Promise.all(i).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return o[t].name}):void 0},Hr=function(e,t,n,r){if((0,y.Z)(e)||"function"==typeof e){const o=e[r.fieldName];return"function"==typeof o?e[r.fieldName](t,n,r):o}};function Yr(e,t,n){const r=n.name.value;return r===Tt.name&&e.getQueryType()===t?Tt:r===Nt.name&&e.getQueryType()===t?Nt:r===_t.name?_t:t.getFields()[r]}function Jr(e){return new Promise(t=>t(zr(e)))}function Wr(e){const t=zr(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function zr(e){arguments.length<2||(0,i.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:o,variableValues:a,operationName:u,fieldResolver:c,typeResolver:l}=e,p=At(t);if(p.length>0)return{errors:p};let f;try{f=(0,s.qg)(n)}catch(e){return{errors:[e]}}const d=wr(t,f);return d.length>0?{errors:d}:kr({schema:t,document:f,rootValue:r,contextValue:o,variableValues:a,operationName:u,fieldResolver:c,typeResolver:l})}var Kr=n(39537),Xr=n(73971),Zr=n(8238),eo=n(98472),to=n(12039);function no(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function ro(e){arguments.length<2||(0,i.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await oo(e);if(!no(t))return t;return function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t,t=>kr({...e,rootValue:t}))}async function oo(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:o}=t;Vr(n,r,o);const i=xr(t);if(!("schema"in i))return{errors:i};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:o,rootValue:i}=e,a=t.getSubscriptionType();if(null==a)throw new c.eO("Schema is not configured to execute subscription operation.",{nodes:r});const s=Wn(t,n,o,a,r.selectionSet),[u,l]=[...s.entries()][0],p=Yr(t,a,l[0]);if(!p){const e=l[0].name.value;throw new c.eO(`The subscription field "${e}" is not defined.`,{nodes:l})}const f=Cn(void 0,u,a.name),d=Pr(e,p,l,a,f);try{var h;const t=Hn(p,l[0],o),n=e.contextValue,r=null!==(h=p.subscribe)&&void 0!==h?h:e.subscribeFieldResolver,a=await r(i,t,n,d);if(a instanceof Error)throw a;return a}catch(e){throw Ar(e,l,Pn(f))}}(i);if(!no(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,u.N)(e)}.`);return e}catch(e){if(e instanceof c.eO)return{errors:[e]};throw e}}function io(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const o=e.getParentType();null!=o||(0,ut.V)(!1),e.reportError(new c.eO(`The field ${o.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const o=e.getDirective();if(null!=o)e.reportError(new c.eO(`Directive "@${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const o=e.getParentType(),i=e.getFieldDef();null!=o&&null!=i||(0,ut.V)(!1),e.reportError(new c.eO(`Field "${o.name}.${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=me(e.getParentInputType());if(B(n)){const r=n.getFields()[t.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new c.eO(`The input field ${n.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const o=me(e.getInputType());null!=o||(0,ut.V)(!1),e.reportError(new c.eO(`The enum value "${o.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function ao(e){return{Field(t){const n=me(e.getType());n&&It(n)&&e.reportError(new c.eO(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var so=n(59841);function uo(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",o=t.directiveIsRepeatable?"isRepeatable":"",i=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}const s=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${i}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${o}\n locations\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${s}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${a("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${a("isDeprecated")}\n ${a("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}function co(e,t){let n=null;for(const o of e.definitions){var r;if(o.kind===S.b.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(r=o.name)||void 0===r?void 0:r.value)===t)return o}return n}function lo(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new c.eO("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new c.eO("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new c.eO("Schema is not configured for subscriptions.",{nodes:t});return n}throw new c.eO("Can only have query, mutation and subscription operations.",{nodes:t})}function po(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},r=$r({schema:e,document:(0,s.qg)(uo(n))});return!r.errors&&r.data||(0,ut.V)(!1),r.data}function fo(e,t){(0,y.Z)(e)&&(0,y.Z)(e.__schema)||(0,i.U)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,u.N)(e)}.`);const n=e.__schema,r=v(n.types,e=>e.name,e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case bt.SCALAR:return new be({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case bt.OBJECT:return new Ee({name:(n=e).name,description:n.description,interfaces:()=>m(n),fields:()=>g(n)});case bt.INTERFACE:return new De({name:(t=e).name,description:t.description,interfaces:()=>m(t),fields:()=>g(t)});case bt.UNION:return function(e){if(!e.possibleTypes){const t=(0,u.N)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new Re({name:e.name,description:e.description,types:()=>e.possibleTypes.map(d)})}(e);case bt.ENUM:return function(e){if(!e.enumValues){const t=(0,u.N)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new Fe({name:e.name,description:e.description,values:v(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case bt.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,u.N)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new Le({name:e.name,description:e.description,fields:()=>E(e.inputFields),isOneOf:e.isOneOf})}(e)}var t;var n;var r;const o=(0,u.N)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(e));for(const e of[...Je,...Ot])r[e.name]&&(r[e.name]=e);const o=n.queryType?d(n.queryType):null,a=n.mutationType?d(n.mutationType):null,c=n.subscriptionType?d(n.subscriptionType):null,l=n.directives?n.directives.map(function(e){if(!e.args){const t=(0,u.N)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,u.N)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new Ze({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:E(e.args)})}):[];return new Dt({description:n.description,query:o,mutation:a,subscription:c,types:Object.values(r),directives:l,assumeValid:null==t?void 0:t.assumeValid});function p(e){if(e.kind===bt.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new se(p(t))}if(e.kind===bt.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=p(t);return new ue(fe(n))}return f(e)}function f(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,u.N)(e)}.`);const n=r[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function d(e){return C(f(e))}function h(e){return U(f(e))}function m(e){if(null===e.interfaces&&e.kind===bt.INTERFACE)return[];if(!e.interfaces){const t=(0,u.N)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(h)}function g(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,u.N)(e)}.`);return v(e.fields,e=>e.name,b)}function b(e){const t=p(e.type);if(!Z(t)){const e=(0,u.N)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,u.N)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:E(e.args)}}function E(e){return v(e,e=>e.name,T)}function T(e){const t=p(e.type);if(!K(t)){const e=(0,u.N)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?Qn((0,s.$x)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function ho(e,t,n){St(e),null!=t&&t.kind===S.b.DOCUMENT||(0,i.U)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){const n=Sr(e,t);if(0!==n.length)throw new Error(n.map(e=>e.message).join("\n\n"))}(t,e);const r=e.toConfig(),o=yo(r,t,n);return r===o?e:new Dt(o)}function yo(e,t,n){var r,o,i,a;const s=[],c=Object.create(null),l=[];let p;const f=[];for(const e of t.definitions)if(e.kind===S.b.SCHEMA_DEFINITION)p=e;else if(e.kind===S.b.SCHEMA_EXTENSION)f.push(e);else if((0,Kt.a6)(e))s.push(e);else if((0,Kt.i7)(e)){const t=e.name.value,n=c[t];c[t]=n?n.concat([e]):[e]}else e.kind===S.b.DIRECTIVE_DEFINITION&&l.push(e);if(0===Object.keys(c).length&&0===s.length&&0===l.length&&0===f.length&&null==p)return e;const d=Object.create(null);for(const t of e.types)d[t.name]=b(t);for(const e of s){var h;const t=e.name.value;d[t]=null!==(h=mo[t])&&void 0!==h?h:k(e)}const y={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...p&&N([p]),...N(f)};return{description:null===(r=p)||void 0===r||null===(o=r.description)||void 0===o?void 0:o.value,...y,types:Object.values(d),directives:[...e.directives.map(function(e){const t=e.toConfig();return new Ze({...t,args:g(t.args,T)})}),...l.map(function(e){var t;return new Ze({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:w(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!==(i=p)&&void 0!==i?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a};function m(e){return Y(e)?new se(m(e.ofType)):W(e)?new ue(m(e.ofType)):v(e)}function v(e){return d[e.name]}function b(e){return It(e)||We(e)?e:V(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];let o=n.specifiedByURL;for(const e of r){var i;o=null!==(i=go(e))&&void 0!==i?i:o}return new be({...n,specifiedByURL:o,extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):M(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Ee({...n,interfaces:()=>[...e.getInterfaces().map(v),...A(r)],fields:()=>({...g(n.fields,E),...I(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):P(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new De({...n,interfaces:()=>[...e.getInterfaces().map(v),...A(r)],fields:()=>({...g(n.fields,E),...I(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):j(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Re({...n,types:()=>[...e.getTypes().map(v),...F(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Q(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[e.name])&&void 0!==t?t:[];return new Fe({...n,values:{...n.values,...R(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):B(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=c[n.name])&&void 0!==t?t:[];return new Le({...n,fields:()=>({...g(n.fields,e=>({...e,type:m(e.type)})),...D(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):void(0,ut.V)(!1,"Unexpected type: "+(0,u.N)(e))}function E(e){return{...e,type:m(e.type),args:e.args&&g(e.args,T)}}function T(e){return{...e,type:m(e.type)}}function N(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=_(n.type)}return t}function _(e){var t;const n=e.name.value,r=null!==(t=mo[n])&&void 0!==t?t:d[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function O(e){return e.kind===S.b.LIST_TYPE?new se(O(e.type)):e.kind===S.b.NON_NULL_TYPE?new ue(O(e.type)):_(e)}function I(e){const t=Object.create(null);for(const o of e){var n;const e=null!==(n=o.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:O(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:w(n.arguments),deprecationReason:vo(n),astNode:n}}}return t}function w(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=O(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:Qn(e.defaultValue,t),deprecationReason:vo(e),astNode:e}}return n}function D(e){const t=Object.create(null);for(const o of e){var n;const e=null!==(n=o.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=O(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:Qn(n.defaultValue,e),deprecationReason:vo(n),astNode:n}}}return t}function R(e){const t=Object.create(null);for(const o of e){var n;const e=null!==(n=o.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:vo(n),astNode:n}}}return t}function A(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(_))&&void 0!==t?t:[]})}function F(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(_))&&void 0!==t?t:[]})}function k(e){var t;const n=e.name.value,r=null!==(t=c[n])&&void 0!==t?t:[];switch(e.kind){case S.b.OBJECT_TYPE_DEFINITION:{var o;const t=[e,...r];return new Ee({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>A(t),fields:()=>I(t),astNode:e,extensionASTNodes:r})}case S.b.INTERFACE_TYPE_DEFINITION:{var i;const t=[e,...r];return new De({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>A(t),fields:()=>I(t),astNode:e,extensionASTNodes:r})}case S.b.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new Fe({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:R(t),astNode:e,extensionASTNodes:r})}case S.b.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new Re({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>F(t),astNode:e,extensionASTNodes:r})}case S.b.SCALAR_TYPE_DEFINITION:var u;return new be({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,specifiedByURL:go(e),astNode:e,extensionASTNodes:r});case S.b.INPUT_OBJECT_TYPE_DEFINITION:{var l;const t=[e,...r];return new Le({name:n,description:null===(l=e.description)||void 0===l?void 0:l.value,fields:()=>D(t),astNode:e,extensionASTNodes:r,isOneOf:(p=e,Boolean(Yn(it,p)))})}}var p}}const mo=m([...Je,...Ot],e=>e.name);function vo(e){const t=Yn(rt,e);return null==t?void 0:t.reason}function go(e){const t=Yn(ot,e);return null==t?void 0:t.url}function bo(e,t){null!=e&&e.kind===S.b.DOCUMENT||(0,i.U)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=Sr(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}(e);const n=yo({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const r=[...n.directives,...at.filter(e=>n.directives.every(t=>t.name!==e.name))];return new Dt({...n,directives:r})}function Eo(e,t){return bo((0,s.qg)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function To(e){const t=e.toConfig(),n=v(_o(t.types),e=>e.name,function(e){if(V(e)||It(e))return e;if(M(e)){const t=e.toConfig();return new Ee({...t,interfaces:()=>c(t.interfaces),fields:()=>s(t.fields)})}if(P(e)){const t=e.toConfig();return new De({...t,interfaces:()=>c(t.interfaces),fields:()=>s(t.fields)})}if(j(e)){const t=e.toConfig();return new Re({...t,types:()=>c(t.types)})}if(Q(e)){const t=e.toConfig();return new Fe({...t,values:No(t.values,e=>e)})}if(B(e)){const t=e.toConfig();return new Le({...t,fields:()=>No(t.fields,e=>({...e,type:r(e.type)}))})}(0,ut.V)(!1,"Unexpected type: "+(0,u.N)(e))});return new Dt({...t,types:Object.values(n),directives:_o(t.directives).map(function(e){const t=e.toConfig();return new Ze({...t,locations:Oo(t.locations,e=>e),args:a(t.args)})}),query:i(t.query),mutation:i(t.mutation),subscription:i(t.subscription)});function r(e){return Y(e)?new se(r(e.ofType)):W(e)?new ue(r(e.ofType)):o(e)}function o(e){return n[e.name]}function i(e){return e&&o(e)}function a(e){return No(e,e=>({...e,type:r(e.type)}))}function s(e){return No(e,e=>({...e,type:r(e.type),args:e.args&&a(e.args)}))}function c(e){return _o(e).map(o)}}function No(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(b))n[r]=t(e[r]);return n}function _o(e){return Oo(e,e=>e.name)}function Oo(e,t){return e.slice().sort((e,n)=>b(t(e),t(n)))}var Io,wo,So=n(67714);function Do(e){return Fo(e,e=>!st(e),Ao)}function Ro(e){return Fo(e,st,It)}function Ao(e){return!We(e)&&!It(e)}function Fo(e,t,n){const r=e.getDirectives().filter(t),o=Object.values(e.getTypeMap()).filter(n);return[ko(e),...r.map(e=>function(e){return Uo(e)+"directive @"+e.name+Mo(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e)),...o.map(e=>$o(e))].filter(Boolean).join("\n\n")}function ko(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const o=e.getSubscriptionType();return o&&t.push(` subscription: ${o.name}`),Uo(e)+`schema {\n${t.join("\n")}\n}`}function $o(e){return V(e)?function(e){return Uo(e)+`scalar ${e.name}`+function(e){if(null==e.specifiedByURL)return"";return` @specifiedBy(url: ${(0,D.y)({kind:S.b.STRING,value:e.specifiedByURL})})`}(e)}(e):M(e)?function(e){return Uo(e)+`type ${e.name}`+Lo(e)+Vo(e)}(e):P(e)?function(e){return Uo(e)+`interface ${e.name}`+Lo(e)+Vo(e)}(e):j(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Uo(e)+"union "+e.name+n}(e):Q(e)?function(e){const t=e.getValues().map((e,t)=>Uo(e," ",!t)+" "+e.name+Po(e.deprecationReason));return Uo(e)+`enum ${e.name}`+xo(t)}(e):B(e)?function(e){const t=Object.values(e.getFields()).map((e,t)=>Uo(e," ",!t)+" "+Co(e));return Uo(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+xo(t)}(e):void(0,ut.V)(!1,"Unexpected type: "+(0,u.N)(e))}function Lo(e){const t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function Vo(e){return xo(Object.values(e.getFields()).map((e,t)=>Uo(e," ",!t)+" "+e.name+Mo(e.args," ")+": "+String(e.type)+Po(e.deprecationReason)))}function xo(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Mo(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(Co).join(", ")+")":"(\n"+e.map((e,n)=>Uo(e," "+t,!n)+" "+t+Co(e)).join("\n")+"\n"+t+")"}function Co(e){const t=lt(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,D.y)(t)}`),n+Po(e.deprecationReason)}function Po(e){if(null==e)return"";if(e!==nt){return` @deprecated(reason: ${(0,D.y)({kind:S.b.STRING,value:e})})`}return" @deprecated"}function Uo(e,t="",n=!0){const{description:r}=e;if(null==r)return"";return(t&&!n?"\n"+t:t)+(0,D.y)({kind:S.b.STRING,value:r,block:(0,So.CS)(r)}).replace(/\n/g,"\n"+t)+"\n"}function jo(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:S.b.DOCUMENT,definitions:t}}function qo(e){const t=[],n=Object.create(null);for(const r of e.definitions)switch(r.kind){case S.b.OPERATION_DEFINITION:t.push(r);break;case S.b.FRAGMENT_DEFINITION:n[r.name.value]=Go(r.selectionSet)}const r=Object.create(null);for(const o of t){const t=new Set;for(const e of Go(o.selectionSet))Qo(t,n,e);r[o.name?o.name.value:""]={kind:S.b.DOCUMENT,definitions:e.definitions.filter(e=>e===o||e.kind===S.b.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function Qo(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)Qo(e,t,n)}}function Go(e){const t=[];return(0,Ht.YR)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function Bo(e){const t=(0,Kr._)(e)?e:new Kr.k(e),n=t.body,r=new eo.JG(t);let o="",i=!1;for(;r.advance().kind!==to.Y.EOF;){const e=r.token,t=e.kind,a=!(0,eo.Z_)(e.kind);i&&(a||e.kind===to.Y.SPREAD)&&(o+=" ");const s=n.slice(e.start,e.end);t===to.Y.BLOCK_STRING?o+=(0,So.yo)(e.value,{minimize:!0}):o+=s,i=a}return o}function Ho(e){const t=Yo(e);if(t)throw t;return e}function Yo(e){if("string"==typeof e||(0,i.U)(!1,"Expected name to be a string."),e.startsWith("__"))return new c.eO(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{F(e)}catch(e){return e}}function Jo(e,t){return zo(e,t).filter(e=>e.type in Io)}function Wo(e,t){return zo(e,t).filter(e=>e.type in wo)}function zo(e,t){return[...Xo(e,t),...Ko(e,t)]}function Ko(e,t){const n=[],r=ci(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:Io.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of r.persisted){const r=ci(e.args,t.args);for(const t of r.added)Se(t)&&n.push({type:Io.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:Io.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:Io.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:Io.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function Xo(e,t){const n=[],r=ci(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:Io.TYPE_REMOVED,description:We(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of r.persisted)Q(e)&&Q(t)?n.push(...ti(e,t)):j(e)&&j(t)?n.push(...ei(e,t)):B(e)&&B(t)?n.push(...Zo(e,t)):M(e)&&M(t)||P(e)&&P(t)?n.push(...ri(e,t),...ni(e,t)):e.constructor!==t.constructor&&n.push({type:Io.TYPE_CHANGED_KIND,description:`${e.name} changed from ${si(e)} to ${si(t)}.`});return n}function Zo(e,t){const n=[],r=ci(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)xe(t)?n.push({type:Io.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:wo.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:Io.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,o]of r.persisted){ai(t.type,o.type)||n.push({type:Io.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(o.type)}.`})}return n}function ei(e,t){const n=[],r=ci(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:wo.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:Io.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function ti(e,t){const n=[],r=ci(e.getValues(),t.getValues());for(const t of r.added)n.push({type:wo.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:Io.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function ni(e,t){const n=[],r=ci(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:wo.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:Io.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function ri(e,t){const n=[],r=ci(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:Io.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,o]of r.persisted){n.push(...oi(e,t,o));ii(t.type,o.type)||n.push({type:Io.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(o.type)}.`})}return n}function oi(e,t,n){const r=[],o=ci(t.args,n.args);for(const n of o.removed)r.push({type:Io.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,i]of o.persisted){if(ai(n.type,i.type)){if(void 0!==n.defaultValue)if(void 0===i.defaultValue)r.push({type:wo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const o=ui(n.defaultValue,n.type),a=ui(i.defaultValue,i.type);o!==a&&r.push({type:wo.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${o} to ${a}.`})}}else r.push({type:Io.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(i.type)}.`})}for(const n of o.added)Se(n)?r.push({type:Io.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:wo.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function ii(e,t){return Y(e)?Y(t)&&ii(e.ofType,t.ofType)||W(t)&&ii(e,t.ofType):W(e)?W(t)&&ii(e.ofType,t.ofType):he(t)&&e.name===t.name||W(t)&&ii(e,t.ofType)}function ai(e,t){return Y(e)?Y(t)&&ai(e.ofType,t.ofType):W(e)?W(t)&&ai(e.ofType,t.ofType)||!W(t)&&ai(e.ofType,t):he(t)&&e.name===t.name}function si(e){return V(e)?"a Scalar type":M(e)?"an Object type":P(e)?"an Interface type":j(e)?"a Union type":Q(e)?"an Enum type":B(e)?"an Input type":void(0,ut.V)(!1,"Unexpected type: "+(0,u.N)(e))}function ui(e,t){const n=lt(e,t);return null!=n||(0,ut.V)(!1),(0,D.y)(mn(n))}function ci(e,t){const n=[],r=[],o=[],i=m(e,({name:e})=>e),a=m(t,({name:e})=>e);for(const t of e){const e=a[t.name];void 0===e?r.push(t):o.push([t,e])}for(const e of t)void 0===i[e.name]&&n.push(e);return{added:n,persisted:o,removed:r}}function li(e,t){return pi(e,(0,s.Ng)(t))}function pi(e,t){switch(t.kind){case S.b.TYPE_COORDINATE:return function(e,t){const n=t.name.value,r=e.getType(n);if(null!=r)return{kind:"NamedType",type:r}}(e,t);case S.b.MEMBER_COORDINATE:return function(e,t){const n=t.name.value,r=e.getType(n);if(!r)throw new Error(`Expected ${(0,u.N)(n)} to be defined as a type in the schema.`);if(!(Q(r)||B(r)||M(r)||P(r)))throw new Error(`Expected ${(0,u.N)(n)} to be an Enum, Input Object, Object or Interface type.`);if(Q(r)){const e=t.memberName.value,n=r.getValue(e);if(null==n)return;return{kind:"EnumValue",type:r,enumValue:n}}if(B(r)){const e=t.memberName.value,n=r.getFields()[e];if(null==n)return;return{kind:"InputField",type:r,inputField:n}}const o=t.memberName.value,i=r.getFields()[o];if(null!=i)return{kind:"Field",type:r,field:i}}(e,t);case S.b.ARGUMENT_COORDINATE:return function(e,t){const n=t.name.value,r=e.getType(n);if(null==r)throw new Error(`Expected ${(0,u.N)(n)} to be defined as a type in the schema.`);if(!M(r)&&!P(r))throw new Error(`Expected ${(0,u.N)(n)} to be an object type or interface type.`);const o=t.fieldName.value,i=r.getFields()[o];if(null==i)throw new Error(`Expected ${(0,u.N)(o)} to exist as a field of type ${(0,u.N)(n)} in the schema.`);const a=t.argumentName.value,s=i.args.find(e=>e.name===a);if(null!=s)return{kind:"FieldArgument",type:r,field:i,fieldArgument:s}}(e,t);case S.b.DIRECTIVE_COORDINATE:return function(e,t){const n=t.name.value,r=e.getDirective(n);if(r)return{kind:"Directive",directive:r}}(e,t);case S.b.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){const n=t.name.value,r=e.getDirective(n);if(!r)throw new Error(`Expected ${(0,u.N)(n)} to be defined as a directive in the schema.`);const{argumentName:{value:o}}=t,i=r.args.find(e=>e.name===o);if(i)return{kind:"DirectiveArgument",directive:r,directiveArgument:i}}(e,t)}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Io||(Io={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(wo||(wo={}))},7029:(e,t,n)=>{n.d(t,{AutoCleanedStrongCache:()=>Y.V,AutoCleanedWeakCache:()=>Y.A,Concast:()=>k.E,DEV:()=>r.DEV,DeepMerger:()=>m.ZI,DocumentTransform:()=>i.c,Observable:()=>N.c,addNonReactiveToNamedFragments:()=>l.x3,addTypenameToDocument:()=>l.XY,argumentsObjectFromField:()=>c.MB,asyncMap:()=>F.x,buildQueryFromSelectionSet:()=>l.zc,cacheSizes:()=>J.v,canUseAsyncIteratorSymbol:()=>M.uJ,canUseDOM:()=>M.Sw,canUseLayoutEffect:()=>M.JR,canUseSymbol:()=>M.ol,canUseWeakMap:()=>M.et,canUseWeakSet:()=>M.En,canonicalStringify:()=>Q.M,checkDocument:()=>s.sw,cloneDeep:()=>D.m,compact:()=>C.o,concatPagination:()=>v,createFragmentMap:()=>a.JG,createFulfilledPromise:()=>_,createRejectedPromise:()=>O,fixObservableSubclass:()=>$.r,getDefaultValues:()=>s.wY,getDirectiveNames:()=>o.sx,getFragmentDefinition:()=>s.E4,getFragmentDefinitions:()=>s.zK,getFragmentFromSelection:()=>a.HQ,getFragmentMaskMode:()=>o.s7,getFragmentQueryDocument:()=>a.ct,getGraphQLErrorsFromResult:()=>x.M,getInclusionDirectives:()=>o.tY,getMainDefinition:()=>s.Vn,getOperationDefinition:()=>s.Vu,getOperationName:()=>s.n4,getQueryDefinition:()=>s.AT,getStoreKeyName:()=>c.o5,getTypenameFromResult:()=>c.D$,graphQLResultHasError:()=>x.t,hasAllDirectives:()=>o.I5,hasAnyDirectives:()=>o.hE,hasClientExports:()=>o.f2,hasDirectives:()=>o.d8,isApolloPayloadResult:()=>q.Nw,isArray:()=>L.c,isDocumentNode:()=>c.Kc,isExecutionPatchIncrementalResult:()=>q.ST,isExecutionPatchInitialResult:()=>q.EQ,isExecutionPatchResult:()=>q.YX,isField:()=>c.dt,isFullyUnmaskedOperation:()=>a.s6,isInlineFragment:()=>c.kd,isMutationOperation:()=>f,isNonEmptyArray:()=>L.E,isNonNullObject:()=>V.U,isPlainObject:()=>V.Q,isQueryOperation:()=>d,isReference:()=>c.A_,isStatefulPromise:()=>I,isSubscriptionOperation:()=>h,iterateObserversSafely:()=>A.w,makeReference:()=>c.WU,makeUniqueId:()=>P.v,maybe:()=>r.maybe,maybeDeepFreeze:()=>R.G,mergeDeep:()=>m.D9,mergeDeepArray:()=>m.IM,mergeIncrementalData:()=>q.bd,mergeOptions:()=>j.l,offsetLimitPagination:()=>g,omitDeep:()=>G,preventUnhandledRejection:()=>S.X,print:()=>u.y,relayStylePagination:()=>b,removeArgumentsFromDocument:()=>l.it,removeClientSetsFromDocument:()=>l.er,removeConnectionDirectiveFromDocument:()=>l.hX,removeDirectivesFromDocument:()=>l.iz,removeFragmentSpreadFromDocument:()=>l.TC,resultKeyNameFromField:()=>c.ue,shouldInclude:()=>o.MS,storeKeyNameFromField:()=>c.Ii,stringifyForDisplay:()=>U.p,stripTypename:()=>H,valueToObjectRepresentation:()=>c.J,wrapPromiseWithState:()=>w}),n.r(t);var r=n(79212),o=n(82307),i=n(9354),a=n(2904),s=n(3777),u=n(38678),c=n(28907),l=n(53925);function p(e,t){var n;return(null===(n=(0,s.Vu)(e))||void 0===n?void 0:n.operation)===t}function f(e){return p(e,"mutation")}function d(e){return p(e,"query")}function h(e){return p(e,"subscription")}var y=n(85608),m=n(30671);function v(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t){return e?(0,y.__spreadArray)((0,y.__spreadArray)([],e,!0),t,!0):t}}}function g(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t,n){var r=n.args,o=e?e.slice(0):[];if(t)if(r)for(var i=r.offset,a=void 0===i?0:i,s=0;s<t.length;++s)o[a+s]=t[s];else o.push.apply(o,t);return o}}}function b(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var n=t.canRead,r=t.readField;if(!e)return e;var o=[],i="",a="";e.edges.forEach(function(e){n(r("node",e))&&(o.push(e),e.cursor&&(i=i||e.cursor||"",a=e.cursor||a))}),o.length>1&&i===a&&(i="");var s=e.pageInfo||{},u=s.startCursor,c=s.endCursor;return(0,y.__assign)((0,y.__assign)({},E(e)),{edges:o,pageInfo:(0,y.__assign)((0,y.__assign)({},e.pageInfo),{startCursor:u||i,endCursor:c||a})})},merge:function(e,t,n){var r=n.args,o=n.isReference,i=n.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var a=t.edges?t.edges.map(function(e){return o(e=(0,y.__assign)({},e))&&(e.cursor=i("cursor",e)),e}):[];if(t.pageInfo){var s=t.pageInfo,u=s.startCursor,c=s.endCursor,l=a[0],p=a[a.length-1];l&&u&&(l.cursor=u),p&&c&&(p.cursor=c);var f=l&&l.cursor;f&&!u&&(t=(0,m.D9)(t,{pageInfo:{startCursor:f}}));var d=p&&p.cursor;d&&!c&&(t=(0,m.D9)(t,{pageInfo:{endCursor:d}}))}var h=e.edges,v=[];if(r&&r.after)(g=h.findIndex(function(e){return e.cursor===r.after}))>=0&&(h=h.slice(0,g+1));else if(r&&r.before){var g;v=(g=h.findIndex(function(e){return e.cursor===r.before}))<0?h:h.slice(g),h=[]}else t.edges&&(h=[]);var b=(0,y.__spreadArray)((0,y.__spreadArray)((0,y.__spreadArray)([],h,!0),a,!0),v,!0),T=(0,y.__assign)((0,y.__assign)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var N=t.pageInfo,_=N.hasPreviousPage,O=N.hasNextPage,I=(u=N.startCursor,c=N.endCursor,(0,y.__rest)(N,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(T,I),h.length||(void 0!==_&&(T.hasPreviousPage=_),void 0!==u&&(T.startCursor=u)),v.length||(void 0!==O&&(T.hasNextPage=O),void 0!==c&&(T.endCursor=c))}return(0,y.__assign)((0,y.__assign)((0,y.__assign)({},E(e)),E(t)),{edges:b,pageInfo:T})}}}var E=function(e){return(0,y.__rest)(e,T)},T=["edges","pageInfo"];var N=n(36054);function _(e){var t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function O(e){var t=Promise.reject(e);return t.catch(function(){}),t.status="rejected",t.reason=e,t}function I(e){return"status"in e}function w(e){if(I(e))return e;var t=e;return t.status="pending",t.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}),e}var S=n(30234),D=n(20906),R=n(57236),A=n(87613),F=n(5762),k=n(45637),$=n(35892),L=n(73767),V=n(21777),x=n(32710),M=n(51360),C=n(50492),P=n(21461),U=n(86563),j=n(31507),q=n(37396),Q=n(44214);function G(e,t){return B(e,t)}function B(e,t,n){if(void 0===n&&(n=new Map),n.has(e))return n.get(e);var r=!1;if(Array.isArray(e)){var o=[];if(n.set(e,o),e.forEach(function(e,i){var a=B(e,t,n);r||(r=a!==e),o[i]=a}),r)return o}else if((0,V.Q)(e)){var i=Object.create(Object.getPrototypeOf(e));if(n.set(e,i),Object.keys(e).forEach(function(o){if(o!==t){var a=B(e[o],t,n);r||(r=a!==e[o]),i[o]=a}else r=!0}),r)return i}return e}function H(e){return G(e,"__typename")}var Y=n(45078),J=n(555)},25979:(e,t,n)=>{n.r(t),n.d(t,{createOperation:()=>u.k,filterOperationVariables:()=>l.X,fromError:()=>r.N,fromPromise:()=>i.S,throwServerError:()=>a.A,toPromise:()=>o.h,transformOperation:()=>c.A,validateOperation:()=>s.K});n(79212);var r=n(93161),o=n(60441),i=n(22594),a=n(3848),s=n(46192),u=n(16878),c=n(38414),l=n(70783)},39283:(e,t,n)=>{n.r(t),n.d(t,{disableWarningsSlot:()=>r.yV,maskFragment:()=>o.z,maskOperation:()=>i.m});var r=n(47150),o=n(62959),i=n(28354)},54506:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(85608),o=n(79212),i=n(29891),a=n(12534),s=n(55888),u=n(7029),c=n(77545),l=n(53570),p=n(77634),f=n(44592),d=n(39283),h=n(4649),y=n(25979),m=n(19371),v=n(94370);function g(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var b=g(s);function E(e){return null!==e&&"object"==typeof e}var T,N=Object.prototype.hasOwnProperty,_=function(e,t,n){return this.merge(e[n],t[n])},O=function(){function e(e){void 0===e&&(e=_),this.reconciler=e,this.isObject=E,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];return E(t)&&E(e)?(Object.keys(t).forEach(function(i){if(N.call(e,i)){var a=e[i];if(t[i]!==a){var s=n.reconciler.apply(n,r.__spreadArray([e,t,i],o,!1));s!==a&&((e=n.shallowCopyForMerge(e))[i]=s)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return E(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):r.__assign({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function I(e,t){var n=e,r=new O;return"incremental"in t&&function(e){return Array.isArray(e)&&e.length>0}(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,o=e.path,i=o.length-1;i>=0;--i){var a=o[i],s=!isNaN(+a)?[]:{};s[a]=t,t=s}n=r.merge(n,t)}),n}function w(e){return!!e&&e<7}function S(e,t,n,o){var i=t.data,a=r.__rest(t,["data"]),s=n.data,c=r.__rest(n,["data"]);return b(a,c)&&D(u.getMainDefinition(e).selectionSet,i,s,{fragmentMap:u.createFragmentMap(u.getFragmentDefinitions(e)),variables:o})}function D(e,t,n,r){if(t===n)return!0;var o=new Set;return e.selections.every(function(e){if(o.has(e))return!0;if(o.add(e),!u.shouldInclude(e,r.variables))return!0;if(R(e))return!0;if(u.isField(e)){var i=u.resultKeyNameFromField(e),a=t&&t[i],s=n&&n[i],c=e.selectionSet;if(!c)return b(a,s);var l=Array.isArray(a),p=Array.isArray(s);if(l!==p)return!1;if(l&&p){var f=a.length;if(s.length!==f)return!1;for(var d=0;d<f;++d)if(!D(c,a[d],s[d],r))return!1;return!0}return D(c,a,s,r)}var h=u.getFragmentFromSelection(e,r.fragmentMap);return h?!!R(h)||D(h.selectionSet,t,n,r):void 0})}function R(e){return!!e.directives&&e.directives.some(A)}function A(e){return"nonreactive"===e.name.value}t.NetworkStatus=void 0,(T=t.NetworkStatus||(t.NetworkStatus={}))[T.loading=1]="loading",T[T.setVariables=2]="setVariables",T[T.fetchMore=3]="fetchMore",T[T.refetch=4]="refetch",T[T.poll=6]="poll",T[T.ready=7]="ready",T[T.error=8]="error";var F=Object.assign,k=Object.hasOwnProperty,$=function(e){function n(t){var o=t.queryManager,i=t.queryInfo,a=t.options,s=this,c=n.inactiveOnCreation.getValue();(s=e.call(this,function(e){c&&(o.queries.set(s.queryId,i),c=!1);try{var t=e._subscription._observer;t&&!t.error&&(t.error=L)}catch(e){}var n=!s.observers.size;s.observers.add(e);var r=s.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(s.maskResult(r.result)),n&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this).observers=new Set,s.subscriptions=new Set,s.dirty=!1,s.queryInfo=i,s.queryManager=o,s.waitForOwnResult=x(a.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var l=o.defaultOptions.watchQuery,p=(void 0===l?{}:l).fetchPolicy,f=void 0===p?"cache-first":p,d=a.fetchPolicy,h=void 0===d?f:d,y=a.initialFetchPolicy,m=void 0===y?"standby"===h?f:h:y;s.options=r.__assign(r.__assign({},a),{initialFetchPolicy:m,fetchPolicy:h}),s.queryId=i.queryId||o.generateQueryId();var v=u.getOperationDefinition(s.query);return s.queryName=v&&v.name&&v.name.value,s}return r.__extends(n,e),Object.defineProperty(n.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),n.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){o.unsubscribe()},0)},error:n},o=e.subscribe(r)})},n.prototype.resetDiff=function(){this.queryInfo.resetDiff()},n.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var n=this.getLastResult(!0),o=this.queryInfo.networkStatus||n&&n.networkStatus||t.NetworkStatus.ready,i=r.__assign(r.__assign({},n),{loading:w(o),networkStatus:o}),a=this.options.fetchPolicy,u=void 0===a?"cache-first":a;if(x(u)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(i.data=c.result),s.equal(i.data,{})&&(i.data=void 0),c.complete?(delete i.partial,!c.complete||i.networkStatus!==t.NetworkStatus.loading||"cache-first"!==u&&"cache-only"!==u||(i.networkStatus=t.NetworkStatus.ready,i.loading=!1)):i.partial=!0,i.networkStatus===t.NetworkStatus.ready&&(i.error||i.errors)&&(i.networkStatus=t.NetworkStatus.error),!1===globalThis.__DEV__||c.complete||this.options.partialRefetch||i.loading||i.data||i.error||V(c.missing)}return e&&this.updateLastResult(i),i},n.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},n.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var n=this.queryManager.getDocumentInfo(this.query),r=this.queryManager.dataMasking,o=r?n.nonReactiveQuery:this.query;return(r||n.hasNonreactiveDirective?!S(o,this.last.result,e,this.variables):!s.equal(this.last.result,e))||t&&!s.equal(this.last.variables,t)},n.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||s.equal(n.variables,this.variables)))return n[e]},n.prototype.getLastResult=function(e){return this.getLast("result",e)},n.prototype.getLastError=function(e){return this.getLast("error",e)},n.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},n.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},n.prototype.refetch=function(e){var n,i={pollInterval:0},a=this.options.fetchPolicy;if(i.fetchPolicy="no-cache"===a?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&k.call(e,"variables")){var c=u.getQueryDefinition(this.query),l=c.variableDefinitions;l&&l.some(function(e){return"variables"===e.variable.name.value})||!1!==globalThis.__DEV__&&o.invariant.warn(21,e,(null===(n=c.name)||void 0===n?void 0:n.value)||c)}return e&&!s.equal(this.options.variables,e)&&(i.variables=this.options.variables=r.__assign(r.__assign({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(i,t.NetworkStatus.refetch)},n.prototype.fetchMore=function(e){var n=this,i=r.__assign(r.__assign({},e.query?e:r.__assign(r.__assign(r.__assign(r.__assign({},this.options),{query:this.options.query}),e),{variables:r.__assign(r.__assign({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var a=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):i.query;var s=this.queryInfo,u=s.networkStatus;s.networkStatus=t.NetworkStatus.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var c=new Set,l=null==e?void 0:e.updateQuery,p="no-cache"!==this.options.fetchPolicy;return p||o.invariant(l,22),this.queryManager.fetchQuery(a,i,t.NetworkStatus.fetchMore).then(function(o){if(n.queryManager.removeQuery(a),s.networkStatus===t.NetworkStatus.fetchMore&&(s.networkStatus=u),p)n.queryManager.cache.batch({update:function(t){var r=e.updateQuery;r?t.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(e){return r(e,{fetchMoreResult:o.data,variables:i.variables})}):t.writeQuery({query:i.query,variables:i.variables,data:o.data})},onWatchUpdated:function(e){c.add(e.query)}});else{var f=n.getLast("result"),d=l(f.data,{fetchMoreResult:o.data,variables:i.variables});n.reportResult(r.__assign(r.__assign({},f),{networkStatus:u,loading:w(u),data:d}),n.variables)}return n.maskResult(o)}).finally(function(){p&&!c.has(n.query)&&n.reobserveCacheFirst()})},n.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var o=e.updateQuery;o&&t.updateQuery(function(e,t){return o(e,r.__assign({subscriptionData:n},t))})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&o.invariant.error(23,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},n.prototype.setOptions=function(e){return this.reobserve(e)},n.prototype.silentSetOptions=function(e){var t=u.compact(this.options,e||{});F(this.options,t)},n.prototype.setVariables=function(e){return s.equal(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},t.NetworkStatus.setVariables):Promise.resolve())},n.prototype.updateQuery=function(e){var t=this.queryManager,n=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),r=n.result,o=n.complete,i=e(r,{variables:this.variables,complete:!!o,previousData:r});i&&(t.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())},n.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},n.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},n.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,o=t.initialFetchPolicy,i=void 0===o?r:o;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):t.fetchPolicy="variables-changed"===e?i:t.nextFetchPolicy)}return t.fetchPolicy},n.prototype.fetch=function(e,t,n){var r=this.queryManager.getOrCreateQuery(this.queryId);return r.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(r,e,t,n)},n.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var n=this.pollingInfo,r=this.options.pollInterval;if(r&&this.hasObservers()){if(!n||n.interval!==r){o.invariant(r,24),(n||(this.pollingInfo={})).interval=r;var i=function(){var n,r;e.pollingInfo&&(w(e.queryInfo.networkStatus)||(null===(r=(n=e.options).skipPollAttempt)||void 0===r?void 0:r.call(n))?a():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},t.NetworkStatus.poll).then(a,a))},a=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(i,t.interval))};a()}}else n&&(clearTimeout(n.timeout),delete this.pollingInfo)}},n.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!s.equal(t,this.last.variables)&&(n=void 0),this.last=r.__assign({result:this.queryManager.assumeImmutableResults?e:u.cloneDeep(e),variables:t},n?{error:n}:null)},n.prototype.reobserveAsConcast=function(e,n){var o=this;this.isTornDown=!1;var i=n===t.NetworkStatus.refetch||n===t.NetworkStatus.fetchMore||n===t.NetworkStatus.poll,a=this.options.variables,c=this.options.fetchPolicy,p=u.compact(this.options,e||{}),f=i?p:F(this.options,p),d=this.transformDocument(f.query);this.lastQuery=d,i||(this.updatePolling(),!e||!e.variables||s.equal(e.variables,a)||"standby"===f.fetchPolicy||f.fetchPolicy!==c&&"function"!=typeof f.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",f),void 0===n&&(n=t.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=x(f.fetchPolicy));var h=function(){o.concast===v&&(o.waitForOwnResult=!1)},y=f.variables&&r.__assign({},f.variables),m=this.fetch(f,n,d),v=m.concast,g=m.fromLink,b={next:function(e){s.equal(o.variables,y)&&(h(),o.reportResult(e,y))},error:function(e){s.equal(o.variables,y)&&(l.isApolloError(e)||(e=new l.ApolloError({networkError:e})),h(),o.reportError(e,y))}};return i||!g&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=v,this.observer=b),v.addObserver(b),v},n.prototype.reobserve=function(e,t){return u.preventUnhandledRejection(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},n.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.last;this.resetLastResults();var r=this.subscribe.apply(this,e);return this.last=n,r},n.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},n.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||r)&&u.iterateObserversSafely(this.observers,"next",this.maskResult(e))},n.prototype.reportError=function(e,n){var o=r.__assign(r.__assign({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:t.NetworkStatus.error,loading:!1});this.updateLastResult(o,n),u.iterateObserversSafely(this.observers,"error",this.last.error=e)},n.prototype.hasObservers=function(){return this.observers.size>0},n.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},n.prototype.transformDocument=function(e){return this.queryManager.transform(e)},n.prototype.maskResult=function(e){return e&&"data"in e?r.__assign(r.__assign({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},n.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},n.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},n.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},n.prototype.notify=function(){(this.cancelNotifyTimeout(),this.dirty)&&("cache-only"!=this.options.fetchPolicy&&"cache-and-network"!=this.options.fetchPolicy&&w(this.queryInfo.networkStatus)||(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()));this.dirty=!1},n.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,r){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,r):t}}):this.reobserve()},n.inactiveOnCreation=new p.Slot,n}(u.Observable);function L(e){!1!==globalThis.__DEV__&&o.invariant.error(25,e.message,e.stack)}function V(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&o.invariant.debug(26,e)}function x(e){return"network-only"===e||"no-cache"===e||"standby"===e}u.fixObservableSubclass($);var M=new(u.canUseWeakMap?WeakMap:Map);function C(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return M.set(e,(M.get(e)+1)%1e15),n.apply(this,arguments)})}var P=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;M.has(n)||(M.set(n,0),C(n,"evict"),C(n,"modify"),C(n,"reset"))}return e.prototype.init=function(e){var n=e.networkStatus||t.NetworkStatus.loading;return this.variables&&this.networkStatus!==t.NetworkStatus.loading&&!s.equal(this.variables,e.variables)&&(n=t.NetworkStatus.setVariables),s.equal(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&s.equal(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError())||(this.updateLastDiff(e),s.equal(r&&r.result,e&&e.result)||null===(n=this.observableQuery)||void 0===n||n.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null===(e=this.observableQuery)||void 0===e||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null===(e=this.cancelWatch)||void 0===e||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var o=r.__assign(r.__assign({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&s.equal(o,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=o))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===M.get(this.cache)&&s.equal(t,n.variables)&&s.equal(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var o,i=this,a=new u.DeepMerger,c=u.isNonEmptyArray(e.errors)?e.errors.slice(0):[];if(null===(o=this.observableQuery)||void 0===o||o.resetNotifications(),"incremental"in e&&u.isNonEmptyArray(e.incremental)){var l=u.mergeIncrementalData(this.getDiff().result,e);e.data=l}else if("hasNext"in e&&e.hasNext){var p=this.getDiff();e.data=a.merge(p.result,e.data)}this.graphQLErrors=c,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(U(e,n.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:M.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(n.variables),u=o.diff(a);!i.stopped&&s.equal(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(u,a),u.complete&&(e.data=u.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=t.NetworkStatus.ready},e.prototype.markError=function(e){var n;return this.networkStatus=t.NetworkStatus.error,this.lastWrite=void 0,null===(n=this.observableQuery)||void 0===n||n.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function U(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!u.graphQLResultHasError(e);return!r&&n&&e.data&&(r=!0),r}var j=Object.prototype.hasOwnProperty,q=Object.create(null),Q=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new u.AutoCleanedWeakCache(u.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new f.Trie(!1),this.noCacheWarningsByQueryId=new Set;var n=new u.DocumentTransform(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(o.newInvariantError(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return r.__awaiter(this,arguments,void 0,function(e){var t,n,i,a,s,c,p,f=e.mutation,d=e.variables,h=e.optimisticResponse,y=e.updateQueries,m=e.refetchQueries,v=void 0===m?[]:m,g=e.awaitRefetchQueries,b=void 0!==g&&g,E=e.update,T=e.onQueryUpdated,N=e.fetchPolicy,_=void 0===N?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.fetchPolicy)||"network-only":N,O=e.errorPolicy,I=void 0===O?(null===(p=this.defaultOptions.mutate)||void 0===p?void 0:p.errorPolicy)||"none":O,w=e.keepRootFields,S=e.context;return r.__generator(this,function(e){switch(e.label){case 0:return o.invariant(f,28),o.invariant("network-only"===_||"no-cache"===_,29),t=this.generateMutationId(),f=this.cache.transformForLink(this.transform(f)),n=this.getDocumentInfo(f).hasClientExports,d=this.getVariables(f,d),n?[4,this.localState.addExportedVariables(f,d,S)]:[3,2];case 1:d=e.sent(),e.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[t]={mutation:f,variables:d,loading:!0,error:null}),a=h&&this.markMutationOptimistic(h,{mutationId:t,document:f,variables:d,fetchPolicy:_,errorPolicy:I,context:S,updateQueries:y,update:E,keepRootFields:w}),this.broadcastQueries(),s=this,[2,new Promise(function(e,n){return u.asyncMap(s.getObservableFromLink(f,r.__assign(r.__assign({},S),{optimisticResponse:a?h:void 0}),d,{},!1),function(e){if(u.graphQLResultHasError(e)&&"none"===I)throw new l.ApolloError({graphQLErrors:u.getGraphQLErrorsFromResult(e)});i&&(i.loading=!1,i.error=null);var n=r.__assign({},e);return"function"==typeof v&&(v=v(n)),"ignore"===I&&u.graphQLResultHasError(n)&&delete n.errors,s.markMutationResult({mutationId:t,result:n,document:f,variables:d,fetchPolicy:_,errorPolicy:I,context:S,update:E,updateQueries:y,awaitRefetchQueries:b,refetchQueries:v,removeOptimistic:a?t:void 0,onQueryUpdated:T,keepRootFields:w})}).subscribe({next:function(n){s.broadcastQueries(),"hasNext"in n&&!1!==n.hasNext||e(r.__assign(r.__assign({},n),{data:s.maskOperation({document:f,data:n.data,fetchPolicy:_,id:t})}))},error:function(e){i&&(i.loading=!1,i.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),n(e instanceof l.ApolloError?e:new l.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var o=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&U(o,e.errorPolicy)){if(u.isExecutionPatchIncrementalResult(o)||i.push({result:o.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),u.isExecutionPatchIncrementalResult(o)&&u.isNonEmptyArray(o.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;s.result&&(c=I(s.result,o)),void 0!==c&&(o.data=c,i.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,r){var a=e.observableQuery,s=a&&a.queryName;if(s&&j.call(l,s)){var c=l[s],p=n.queries.get(r),f=p.document,d=p.variables,h=t.diff({query:f,variables:d,returnPartialData:!0,optimistic:!1}),y=h.result;if(h.complete&&y){var m=c(y,{mutationResult:o,queryName:f&&u.getOperationName(f)||void 0,queryVariables:d});m&&i.push({result:m,dataId:"ROOT_QUERY",query:f,variables:d})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var p=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var s=e.update,c=!u.isExecutionPatchResult(o)||u.isExecutionPatchIncrementalResult(o)&&!o.hasNext;if(s){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(o=r.__assign(r.__assign({},o),{data:l.result}))&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}c&&s(t,o,{context:e.context,variables:e.variables})}a||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return p.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(p).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(e,t){var n=this,i="function"==typeof e?e(t.variables,{IGNORE:q}):e;return i!==q&&(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(r.__assign(r.__assign({},t),{result:{data:i}}),e)}catch(e){!1!==globalThis.__DEV__&&o.invariant.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:u.hasClientExports(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:u.hasDirectives(["nonreactive"],e),nonReactiveQuery:u.addNonReactiveToNamedFragments(e),clientQuery:this.localState.clientQuery(e),serverQuery:u.removeDirectivesFromDocument([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:u.getDefaultValues(u.getOperationDefinition(e)),asQuery:r.__assign(r.__assign({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?r.__assign(r.__assign({},e),{operation:"query"}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return r.__assign(r.__assign({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=r.__assign(r.__assign({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new P(this),o=new $({queryManager:this,queryInfo:n,options:e});return o.lastQuery=t,$.inactiveOnCreation.getValue()||this.queries.set(o.queryId,n),n.init({document:t,observableQuery:o,variables:o.variables}),o},e.prototype.query=function(e,t){var n=this;void 0===t&&(t=this.generateQueryId()),o.invariant(e.query,30),o.invariant("Document"===e.query.kind,31),o.invariant(!e.returnPartialData,32),o.invariant(!e.pollInterval,33);var i=this.transform(e.query);return this.fetchQuery(t,r.__assign(r.__assign({},e),{query:i})).then(function(o){return o&&r.__assign(r.__assign({},o),{data:n.maskOperation({document:i,data:o.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(o.newInvariantError(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=t.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,i=new Map,a=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)i.set(e,e),a.set(e,!1);else if(u.isDocumentNode(e)){var n=u.print(t.transform(e));i.set(n,u.getOperationName(e)),a.set(n,!1)}else u.isNonNullObject(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,r){var o=t.observableQuery,i=t.document;if(o){if("all"===e)return void n.set(r,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&a.has(s)||i&&a.has(u.print(i)))&&(n.set(r,o),s&&a.set(s,!0),i&&a.set(u.print(i),!0))}}),s.size&&s.forEach(function(e){var i=u.makeUniqueId("legacyOneTimeQuery"),a=t.getOrCreateQuery(i).init({document:e.query,variables:e.variables}),s=new $({queryManager:t,queryInfo:a,options:r.__assign(r.__assign({},e),{fetchPolicy:"network-only"})});o.invariant(s.queryId===i),a.setObservableQuery(s),n.set(i,s)}),!1!==globalThis.__DEV__&&a.size&&a.forEach(function(e,t){if(!e){var n=i.get(t);n?!1!==globalThis.__DEV__&&o.invariant.warn(35,n):!1!==globalThis.__DEV__&&o.invariant.warn(36)}}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,o){var i=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==i&&"cache-only"!==i)&&n.push(r.refetch()),(t.queries.get(o)||r.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.variables,o=e.fetchPolicy,i=e.errorPolicy,a=void 0===i?"none":i,s=e.context,c=void 0===s?{}:s,p=e.extensions,f=void 0===p?{}:p;n=this.transform(n),r=this.getVariables(n,r);var d=function(e){return t.getObservableFromLink(n,c,e,f).map(function(r){"no-cache"!==o&&(U(r,a)&&t.cache.write({query:n,result:r.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var i=u.graphQLResultHasError(r),s=l.graphQLResultHasProtocolErrors(r);if(i||s){var c={};if(i&&(c.graphQLErrors=r.errors),s&&(c.protocolErrors=r.extensions[l.PROTOCOL_ERRORS_SYMBOL]),"none"===a||s)throw new l.ApolloError(c)}return"ignore"===a&&delete r.errors,r})};if(this.getDocumentInfo(n).hasClientExports){var h=this.localState.addExportedVariables(n,r,c).then(d);return new u.Observable(function(e){var t=null;return h.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(r)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null===(t=this.queries.get(e))||void 0===t||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null===(t=e.observableQuery)||void 0===t?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,o,a){var s,l,p=this;void 0===a&&(a=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var f=this.getDocumentInfo(e),d=f.serverQuery,h=f.clientQuery;if(d){var y=this.inFlightLinkObservables,m=this.link,v={query:d,variables:n,operationName:u.getOperationName(d)||void 0,context:this.prepareContext(r.__assign(r.__assign({},t),{forceFetch:!a})),extensions:o};if(t=v.context,a){var g=u.print(d),b=c.canonicalStringify(n),E=y.lookup(g,b);if(!(l=E.observable)){var T=new u.Concast([i.execute(m,v)]);l=E.observable=T,T.beforeNext(function e(t,n){"next"===t&&"hasNext"in n&&n.hasNext?T.beforeNext(e):y.remove(g,b)})}}else l=new u.Concast([i.execute(m,v)])}else l=new u.Concast([u.Observable.of({data:{}})]),t=this.prepareContext(t);return h&&(l=u.asyncMap(l,function(e){return p.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})})),l},e.prototype.getResultsFromLink=function(e,n,r){var o=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return u.asyncMap(this.getObservableFromLink(i,r.context,r.variables),function(a){var s=u.getGraphQLErrorsFromResult(a),c=s.length>0,p=r.errorPolicy;if(o>=e.lastRequestId){if(c&&"none"===p)throw e.markError(new l.ApolloError({graphQLErrors:s}));e.markResult(a,i,r,n),e.markReady()}var f={data:a.data,loading:!1,networkStatus:t.NetworkStatus.ready};return c&&"none"===p&&(f.data=void 0),c&&"ignore"!==p&&(f.errors=s,f.networkStatus=t.NetworkStatus.error),f},function(t){var n=l.isApolloError(t)?t:new l.ApolloError({networkError:t});throw o>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,n,r,o){var i=this;void 0===r&&(r=t.NetworkStatus.loading),void 0===o&&(o=n.query);var a,s,c=this.getVariables(o,n.variables),l=this.defaultOptions.watchQuery,p=n.fetchPolicy,f=void 0===p?l&&l.fetchPolicy||"cache-first":p,d=n.errorPolicy,h=void 0===d?l&&l.errorPolicy||"none":d,y=n.returnPartialData,m=void 0!==y&&y,v=n.notifyOnNetworkStatusChange,g=void 0!==v&&v,b=n.context,E=void 0===b?{}:b,T=Object.assign({},n,{query:o,variables:c,fetchPolicy:f,errorPolicy:h,returnPartialData:m,notifyOnNetworkStatusChange:g,context:E}),N=function(t){T.variables=t;var o=i.fetchQueryByPolicy(e,T,r);return"standby"!==T.fetchPolicy&&o.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",n),o},_=function(){return i.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){_(),setTimeout(function(){return a.cancel(e)})}),this.getDocumentInfo(T.query).hasClientExports)a=new u.Concast(this.localState.addExportedVariables(T.query,T.variables,T.context).then(N).then(function(e){return e.sources})),s=!0;else{var O=N(T.variables);s=O.fromLink,a=new u.Concast(O.sources)}return a.promise.then(_,_),{concast:a,fromLink:s}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,o=e.optimistic,i=void 0!==o&&o,a=e.removeOptimistic,s=void 0===a?i?u.makeUniqueId("refetchQueries"):void 0:a,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){l.set(n,{oq:e,lastDiff:(t.queries.get(n)||e.queryInfo).getDiff()})});var p=new Map;return n&&this.cache.batch({update:n,optimistic:i&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof P&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var o=c(r,t,n);return!0===o&&(o=r.refetch()),!1!==o&&p.set(r,o),o}null!==c&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach(function(e,n){var r,o=e.oq,i=e.lastDiff,a=e.diff;c&&(a||(a=t.cache.diff(o.queryInfo.getDiffOptions())),r=c(o,a,i)),c&&!0!==r||(r=o.refetch()),!1!==r&&p.set(o,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),p},e.prototype.maskOperation=function(e){var t,n,r,i=e.document,a=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,c=e.id,l=null===(t=u.getOperationDefinition(i))||void 0===t?void 0:t.operation,p=(null!==(n=null==l?void 0:l[0])&&void 0!==n?n:"o")+c;!this.dataMasking||"no-cache"!==s||u.isFullyUnmaskedOperation(i)||this.noCacheWarningsByQueryId.has(p)||(this.noCacheWarningsByQueryId.add(p),!1!==globalThis.__DEV__&&o.invariant.warn(37,null!==(r=u.getOperationName(i))&&void 0!==r?r:"Unnamed ".concat(null!=l?l:"operation")))}return this.dataMasking?d.maskOperation(a,i,this.cache):a},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,r=e.fragmentName;return this.dataMasking?d.maskFragment(t,n,this.cache,r):t},e.prototype.fetchQueryByPolicy=function(e,n,o){var i=this,a=n.query,c=n.variables,l=n.fetchPolicy,p=n.refetchWritePolicy,f=n.errorPolicy,d=n.returnPartialData,h=n.context,y=n.notifyOnNetworkStatusChange,m=e.networkStatus;e.init({document:a,variables:c,networkStatus:o});var v=function(){return e.getDiff()},g=function(n,o){void 0===o&&(o=e.networkStatus||t.NetworkStatus.loading);var l=n.result;!1===globalThis.__DEV__||d||s.equal(l,{})||V(n.missing);var p=function(e){return u.Observable.of(r.__assign({data:e,loading:w(o),networkStatus:o},n.complete?null:{partial:!0}))};return l&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:l},context:h,variables:c,onlyRunForcedResolvers:!0}).then(function(e){return p(e.data||void 0)}):"none"===f&&o===t.NetworkStatus.refetch&&Array.isArray(n.missing)?p(void 0):p(l)},b="no-cache"===l?0:o===t.NetworkStatus.refetch&&"merge"!==p?1:2,E=function(){return i.getResultsFromLink(e,b,{query:a,variables:c,context:h,fetchPolicy:l,errorPolicy:f})},T=y&&"number"==typeof m&&m!==o&&w(o);switch(l){default:case"cache-first":return(N=v()).complete?{fromLink:!1,sources:[g(N,e.markReady())]}:d||T?{fromLink:!0,sources:[g(N),E()]}:{fromLink:!0,sources:[E()]};case"cache-and-network":var N;return(N=v()).complete||d||T?{fromLink:!0,sources:[g(N),E()]}:{fromLink:!0,sources:[E()]};case"cache-only":return{fromLink:!1,sources:[g(v(),e.markReady())]};case"network-only":return T?{fromLink:!0,sources:[g(v()),E()]}:{fromLink:!0,sources:[E()]};case"no-cache":return T?{fromLink:!0,sources:[g(e.getDiff()),E()]}:{fromLink:!0,sources:[E()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new P(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return r.__assign(r.__assign(r.__assign({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),G=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=u.mergeDeep(t.resolvers,e)}):this.resolvers=u.mergeDeep(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return r.__awaiter(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,o=e.context,i=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return r.__generator(this,function(e){return t?[2,this.resolveDocument(t,n.data,o,i,this.fragmentMatcher,s).then(function(e){return r.__assign(r.__assign({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return u.hasDirectives(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return u.removeClientSetsFromDocument(e)},e.prototype.prepareContext=function(e){var t=this.cache;return r.__assign(r.__assign({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return r.__awaiter(this,arguments,void 0,function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),r.__generator(this,function(o){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return r.__assign(r.__assign({},t),e.exportedVariables)})]:[2,r.__assign({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return h.visit(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return h.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:u.buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return r.__awaiter(this,arguments,void 0,function(e,t,n,o,i,a){var s,c,l,p,f,d,h,y,m,v;return void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),r.__generator(this,function(g){return s=u.getMainDefinition(e),c=u.getFragmentDefinitions(e),l=u.createFragmentMap(c),p=this.collectSelectionsToResolve(s,l),f=s.operation,d=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",y=(h=this).cache,m=h.client,v={fragmentMap:l,context:r.__assign(r.__assign({},n),{cache:y,client:m}),variables:o,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:p,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,false,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,i){return r.__awaiter(this,void 0,void 0,function(){var a,s,c,l,p,f=this;return r.__generator(this,function(d){return a=i.fragmentMap,s=i.context,c=i.variables,l=[n],p=function(e){return r.__awaiter(f,void 0,void 0,function(){var p,f;return r.__generator(this,function(r){return(t||i.selectionsToResolve.has(e))&&u.shouldInclude(e,c)?u.isField(e)?[2,this.resolveField(e,t,n,i).then(function(t){var n;void 0!==t&&l.push(((n={})[u.resultKeyNameFromField(e)]=t,n))})]:(u.isInlineFragment(e)?p=e:(p=a[e.name.value],o.invariant(p,19,e.name.value)),p&&p.typeCondition&&(f=p.typeCondition.name.value,i.fragmentMatcher(n,f,s))?[2,this.resolveSelectionSet(p.selectionSet,t,n,i).then(function(e){l.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(p)).then(function(){return u.mergeDeepArray(l)})]})})},e.prototype.resolveField=function(e,t,n,o){return r.__awaiter(this,void 0,void 0,function(){var i,a,s,l,p,f,d,h,y,m=this;return r.__generator(this,function(r){return n?(i=o.variables,a=e.name.value,s=u.resultKeyNameFromField(e),l=a!==s,p=n[s]||n[a],f=Promise.resolve(p),o.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(d=n.__typename||o.defaultOperationType,(h=this.resolvers&&this.resolvers[d])&&(y=h[l?a:s])&&(f=Promise.resolve(c.cacheSlot.withValue(this.cache,y,[n,u.argumentsObjectFromField(e,i),o.context,{field:e,fragmentMap:o.fragmentMap}])))),[2,f.then(function(n){var r,i;if(void 0===n&&(n=p),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(o.exportedVariables[e.value.value]=n)})}),!e.selectionSet)return n;if(null==n)return n;var a=null!==(i=null===(r=e.directives)||void 0===r?void 0:r.some(function(e){return"client"===e.name.value}))&&void 0!==i&&i;return Array.isArray(n)?m.resolveSubSelectedArray(e,t||a,n,o):e.selectionSet?m.resolveSelectionSet(e.selectionSet,t||a,n,o):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var o=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?o.resolveSubSelectedArray(e,t,n,r):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var a=new Set;r.set(i,a),h.visit(i,{Directive:function(e,t,r,o,i){"client"===e.name.value&&i.forEach(function(e){n(e)&&h.isSelectionNode(e)&&a.add(e)})},FragmentSpread:function(r,i,s,u,c){var l=t[r.name.value];o.invariant(l,20,r.name.value);var p=e(l);p.size>0&&(c.forEach(function(e){n(e)&&h.isSelectionNode(e)&&a.add(e)}),a.add(r),p.forEach(function(e){a.add(e)}))}})}return r.get(i)}(e)},e}(),B=Symbol.for("apollo.cacheSize"),H=r.__assign({},o.global[B]),Y={},J=!1!==globalThis.__DEV__?function(){var e,t,n,o,i;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],n=e[1];return[t,H[t]||n]})),sizes:r.__assign({print:null===(e=Y.print)||void 0===e?void 0:e.call(Y),parser:null===(t=Y.parser)||void 0===t?void 0:t.call(Y),canonicalStringify:null===(n=Y.canonicalStringify)||void 0===n?void 0:n.call(Y),links:K(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:(a=this.queryManager.documentTransform,z(a).map(function(e){return{cache:e}}))}},null===(i=(o=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(o))};var a}:void 0;function W(e){return null!=e}function z(e){return e?r.__spreadArray(r.__spreadArray([(t=null==e?void 0:e.performWork,function(e){return!!e&&"dirtyKey"in e}(t)?t.size:void 0)],z(null==e?void 0:e.left),!0),z(null==e?void 0:e.right),!0).filter(W):[];var t}function K(e){var t;return e?r.__spreadArray(r.__spreadArray([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],K(null==e?void 0:e.left),!0),K(null==e?void 0:e.right),!0).filter(W):[]}var X=!1,Z=function(){function e(e){var t,n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw o.newInvariantError(16);var s=e.uri,u=e.credentials,c=e.headers,l=e.cache,p=e.documentTransform,f=e.ssrMode,d=void 0!==f&&f,h=e.ssrForceFetchDelay,y=void 0===h?0:h,m=e.connectToDevTools,v=e.queryDeduplication,g=void 0===v||v,b=e.defaultOptions,E=e.defaultContext,T=e.assumeImmutableResults,N=void 0===T?l.assumeImmutableResults:T,_=e.resolvers,O=e.typeDefs,I=e.fragmentMatcher,w=e.name,S=e.version,D=e.devtools,R=e.dataMasking,A=e.link;A||(A=s?new a.HttpLink({uri:s,credentials:u,headers:c}):i.ApolloLink.empty()),this.link=A,this.cache=l,this.disableNetworkFetches=d||y>0,this.queryDeduplication=g,this.defaultOptions=b||Object.create(null),this.typeDefs=O,this.devtoolsConfig=r.__assign(r.__assign({},D),{enabled:null!==(t=null==D?void 0:D.enabled)&&void 0!==t?t:m}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),y&&setTimeout(function(){return n.disableNetworkFetches=!1},y),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version="3.13.8",this.localState=new G({cache:l,client:this,resolvers:_,fragmentMatcher:I}),this.queryManager=new Q({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:E,documentTransform:p,queryDeduplication:g,ssrMode:d,dataMasking:!!R,clientAwareness:{name:w,version:S},localState:this.localState,assumeImmutableResults:N,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,X||!1===globalThis.__DEV__||(X=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&o.invariant.log("Download the Apollo DevTools for a better development experience: %s",n)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=u.mergeOptions(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=r.__assign(r.__assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=u.mergeOptions(this.defaultOptions.query,e)),o.invariant("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=r.__assign(r.__assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=u.mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(o){return r.__assign(r.__assign({},o),{data:t.queryManager.maskOperation({document:e.query,data:o.data,fetchPolicy:e.fetchPolicy,id:n})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment(r.__assign(r.__assign({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return i.execute(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){!1!==globalThis.__DEV__&&o.invariant.debug(18,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();for(var ee in!1!==globalThis.__DEV__&&(Z.prototype.getMemoryInternals=J),m.setVerbosity(!1!==globalThis.__DEV__?"log":"silent"),t.DocumentTransform=u.DocumentTransform,t.Observable=u.Observable,t.isReference=u.isReference,t.makeReference=u.makeReference,t.mergeOptions=u.mergeOptions,t.ApolloCache=c.ApolloCache,t.Cache=c.Cache,t.InMemoryCache=c.InMemoryCache,t.MissingFieldError=c.MissingFieldError,t.defaultDataIdFromObject=c.defaultDataIdFromObject,t.makeVar=c.makeVar,t.ApolloError=l.ApolloError,t.isApolloError=l.isApolloError,t.fromError=y.fromError,t.fromPromise=y.fromPromise,t.throwServerError=y.throwServerError,t.toPromise=y.toPromise,t.setLogVerbosity=m.setVerbosity,t.disableExperimentalFragmentVariables=v.disableExperimentalFragmentVariables,t.disableFragmentWarnings=v.disableFragmentWarnings,t.enableExperimentalFragmentVariables=v.enableExperimentalFragmentVariables,t.gql=v.gql,t.resetCaches=v.resetCaches,t.ApolloClient=Z,t.ObservableQuery=$,t.isNetworkRequestSettled=function(e){return 7===e||8===e},i)"default"===ee||t.hasOwnProperty(ee)||(t[ee]=i[ee]);for(var ee in a)"default"===ee||t.hasOwnProperty(ee)||(t[ee]=a[ee])},77545:(e,t,n)=>{n.d(t,{ApolloCache:()=>r.k,Cache:()=>o.l,EntityStore:()=>u.D_,InMemoryCache:()=>l.D,MissingFieldError:()=>i.Z,Policies:()=>f.l,cacheSlot:()=>p.bl,canonicalStringify:()=>s.M,createFragmentRegistry:()=>b,defaultDataIdFromObject:()=>c.or,fieldNameFromStoreName:()=>c.iJ,isReference:()=>a.A_,makeReference:()=>a.WU,makeVar:()=>p.UT}),n.r(t);n(79212);var r=n(42495),o=n(84673),i=n(65702),a=n(28907),s=n(44214),u=n(83906),c=n(35207),l=n(29222),p=n(777),f=n(38338),d=n(85608),h=n(90424),y=n(77634),m=n(3777),v=n(555),g=n(54019);function b(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(E.bind.apply(E,(0,d.__spreadArray)([void 0],e,!1)))}var E=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.registry=Object.create(null),this.resetCaches(),e.length&&this.register.apply(this,e)}return e.prototype.register=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=new Map;return t.forEach(function(e){(0,m.zK)(e).forEach(function(e){r.set(e.name.value,e)})}),r.forEach(function(t,n){t!==e.registry[n]&&(e.registry[n]=t,e.invalidate(n))}),this},e.prototype.invalidate=function(e){},e.prototype.resetCaches=function(){var t=e.prototype;this.invalidate=(this.lookup=(0,y.wrap)(t.lookup.bind(this),{makeCacheKey:function(e){return e},max:v.v["fragmentRegistry.lookup"]||1e3})).dirty,this.transform=(0,y.wrap)(t.transform.bind(this),{cache:g.l,max:v.v["fragmentRegistry.transform"]||2e3}),this.findFragmentSpreads=(0,y.wrap)(t.findFragmentSpreads.bind(this),{cache:g.l,max:v.v["fragmentRegistry.findFragmentSpreads"]||4e3})},e.prototype.lookup=function(e){return this.registry[e]||null},e.prototype.transform=function(e){var t=this,n=new Map;(0,m.zK)(e).forEach(function(e){n.set(e.name.value,e)});var r=new Set,o=function(e){n.has(e)||r.add(e)},i=function(e){return Object.keys(t.findFragmentSpreads(e)).forEach(o)};i(e);var a=[],s=Object.create(null);if(r.forEach(function(e){var r=n.get(e);if(r)i(s[e]=r);else{a.push(e);var o=t.lookup(e);o&&i(s[e]=o)}}),a.length){var u=[];a.forEach(function(e){var t=s[e];t&&u.push(t)}),u.length&&(e=(0,d.__assign)((0,d.__assign)({},e),{definitions:e.definitions.concat(u)}))}return e},e.prototype.findFragmentSpreads=function(e){var t=Object.create(null);return(0,h.YR)(e,{FragmentSpread:function(e){t[e.name.value]=e}}),t},e}()},78549:(e,t,n)=>{var r=n(85608),o=n(29891),i=n(7029);t.o=function(e){return new o.ApolloLink(function(t,n){var o=r.__rest(t,[]);return new i.Observable(function(r){var i,a=!1;return Promise.resolve(o).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){a||(i=n(t).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}))}).catch(r.error.bind(r)),function(){a=!0,i&&i.unsubscribe()}})})}}};
|