1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8cf91ff8-a742-5e82-bf4d-bd6a4a6f4a7a")}catch(e){}}(); 3(self.rspackChunk_alaneu_web_server=self.rspackChunk_alaneu_web_server||[]).push([[275160],{271503:function(e,t,i){class n extends Error{response;request;constructor(e,t){super(`${n.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,n.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,n)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${String(e.status)})`}}i.d(t,{M:function(){return n}})},140170:function(e,t,i){i.d(t,{l:function(){return u}});var n=i(675422),r=i(541483),s=i(658162),a=i(977752),o=i(940505),l=i(965367);class u{url;requestConfig;constructor(e,t={}){this.url=e,this.requestConfig=t}rawRequest=async(...e)=>{let[t,i,r]=e,a=(0,s.qT)(t,i,r),{headers:u,fetch:c=globalThis.fetch,method:h="POST",requestMiddleware:p,responseMiddleware:d,excludeOperationName:f,...E}=this.requestConfig,{url:T}=this;void 0!==a.signal&&(E.signal=a.signal);let N=(0,o.I)(a.query,f),m=await (0,l.B)({url:T,request:{_tag:"Single",document:N,variables:a.variables},headers:{...(0,n.py)((0,n.kc)(u)),...(0,n.py)(a.requestHeaders)},fetch:c,method:h,fetchOptions:E,middleware:p});if(d&&await d(m,{operationName:N.operationName,variables:i,url:this.url}),m instanceof Error)throw m;return m};async request(e,...t){let[i,r]=t,s=(0,a.u)(e,i,r),{headers:u,fetch:c=globalThis.fetch,method:h="POST",requestMiddleware:p,responseMiddleware:d,excludeOperationName:f,...E}=this.requestConfig,{url:T}=this;void 0!==s.signal&&(E.signal=s.signal);let N=(0,o.I)(s.document,f),m=await (0,l.B)({url:T,request:{_tag:"Single",document:N,variables:s.variables},headers:{...(0,n.py)((0,n.kc)(u)),...(0,n.py)(s.requestHeaders)},fetch:c,method:h,fetchOptions:E,middleware:p});if(d&&await d(m,{operationName:N.operationName,variables:s.variables,url:this.url}),m instanceof Error)throw m;return m.data}async batchRequests(e,t){let i=(0,r.e0)(e,t),{headers:s,excludeOperationName:a,...u}=this.requestConfig;void 0!==i.signal&&(u.signal=i.signal);let c=i.documents.map(({document:e})=>(0,o.I)(e,a)),h=c.map(({expression:e})=>e),p=c.some(({isMutation:e})=>e),d=i.documents.map(({variables:e})=>e),f=await (0,l.B)({url:this.url,request:{_tag:"Batch",operationName:void 0,query:h,hasMutations:p,variables:d},headers:{...(0,n.py)((0,n.kc)(s)),...(0,n.py)(i.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:u,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(f,{operationName:void 0,variables:d,url:this.url}),f instanceof Error)throw f;return f.data}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){let{headers:i}=this.requestConfig;return i?i[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}},541483:function(e,t,i){i.d(t,{e0:function(){return n}}),i(140170);let n=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0}},658162:function(e,t,i){i.d(t,{qT:function(){return n}}),i(140170);let n=(e,t,i)=>e.query?e:{query:e,variables:t,requestHeaders:i,signal:void 0}},977752:function(e,t,i){i.d(t,{u:function(){return n}}),i(140170);let n=(e,t,i)=>e.document?e:{document:e,variables:t,requestHeaders:i,signal:void 0}},940505:function(e,t,i){i.d(t,{I:function(){return et}});var n,r,s,a,o,l,u=i(675422),c=i(52838);let h=/\r\n|[\n\r]/g;function p(e,t){let i=0,n=1;for(let r of e.body.matchAll(h)){if("number"==typeof r.index||function(e){if(!e)throw Error("Unexpected invariant triggered.")}(!1),r.index>=t)break;i=r.index+r[0].length,n+=1}return{line:n,column:t+1-i}}function d(e,t){let i=e.locationOffset.column-1,n="".padStart(i)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,o=1===t.line?i:0,l=t.column+o,u=`${e.name}:${a}:${l} 4`,c=n.split(/\r\n|[\n\r]/g),h=c[r];if(h.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return u+f([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+f([[`${a-1} |`,c[r-1]],[`${a} |`,h],["|","^".padStart(l)],[`${a+1} |`,c[r+1]]])}function f(e){let t=e.filter(([e,t])=>void 0!==t),i=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(i)+(t?" "+t:"")).join("\n")}
4class E extends Error{constructor(e,...t){var i,n,r;const{nodes:s,source:a,positions:o,path:l,originalError:u,extensions:c}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=T(Array.isArray(s)?s:s?[s]:void 0);const h=T(null==(i=this.nodes)?void 0:i.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==h||null==(n=h[0])?void 0:n.source,this.positions=null!=o?o:null==h?void 0:h.map(e=>e.start),this.locations=o&&a?o.map(e=>p(a,e)):null==h?void 0:h.map(e=>p(e.source,e.start));const d=!function(e){return"object"==typeof e&&null!==e}(null==u?void 0:u.extensions)||null==u?void 0:u.extensions;this.extensions=null!=(r=null!=c?c:d)?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,E):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let i of this.nodes){var t;i.loc&&(e+="\n\n"+d((t=i.loc).source,p(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+d(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function T(e){return void 0===e||0===e.length?void 0:e}function N(e,t,i){return new E(`Syntax Error: ${i}`,{source:e,positions:[t]})}class m{constructor(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class I{constructor(e,t,i,n,r,s){this.kind=e,this.start=t,this.end=i,this.line=n,this.column=r,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let v={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},y=new Set(Object.keys(v));function O(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&y.has(t)}(n=a||(a={})).QUERY="query",n.MUTATION="mutation",n.SUBSCRIPTION="subscription",(r=o||(o={})).QUERY="QUERY",r.MUTATION="MUTATION",r.SUBSCRIPTION="SUBSCRIPTION",r.FIELD="FIELD",r.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",r.FRAGMENT_SPREAD="FRAGMENT_SPREAD",r.INLINE_FRAGMENT="INLINE_FRAGMENT",r.VARIABLE_DEFINITION="VARIABLE_DEFINITION",r.SCHEMA="SCHEMA",r.SCALAR="SCALAR",r.OBJECT="OBJECT",r.FIELD_DEFINITION="FIELD_DEFINITION",r.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",r.INTERFACE="INTERFACE",r.UNION="UNION",r.ENUM="ENUM",r.ENUM_VALUE="ENUM_VALUE",r.INPUT_OBJECT="INPUT_OBJECT",r.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION";var A=i(642455);function _(e){return 9===e||32===e}function D(e){return e>=48&&e<=57}function x(e){return e>=97&&e<=122||e>=65&&e<=90}function C(e){return x(e)||95===e}(s=l||(l={})).SOF="<SOF>",s.EOF="<EOF>",s.BANG="!",s.DOLLAR="$",s.AMP="&",s.PAREN_L="(",s.PAREN_R=")",s.DOT=".",s.SPREAD="...",s.COLON=":",s.EQUALS="=",s.AT="@",s.BRACKET_L="[",s.BRACKET_R="]",s.BRACE_L="{",s.PIPE="|",s.BRACE_R="}
4",s.NAME="Name",s.INT="Int",s.FLOAT="Float",s.STRING="String",s.BLOCK_STRING="BlockString",s.COMMENT="Comment";class g{constructor(e){const t=new I(l.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==l.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let i=e.source.body,n=i.length,r=t;for(;r<n;){let t=i.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===i.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return function(e,t){let i=e.source.body,n=i.length,r=t+1;for(;r<n;){let e=i.charCodeAt(r);if(10===e||13===e)break;if(k(e))++r;else if(b(i,r))r+=2;else break}return F(e,l.COMMENT,t,r,i.slice(t+1,r))}(e,r);case 33:return F(e,l.BANG,r,r+1);case 36:return F(e,l.DOLLAR,r,r+1);case 38:return F(e,l.AMP,r,r+1);case 40:return F(e,l.PAREN_L,r,r+1);case 41:return F(e,l.PAREN_R,r,r+1);case 46:if(46===i.charCodeAt(r+1)&&46===i.charCodeAt(r+2))return F(e,l.SPREAD,r,r+3);break;case 58:return F(e,l.COLON,r,r+1);case 61:return F(e,l.EQUALS,r,r+1);case 64:return F(e,l.AT,r,r+1);case 91:return F(e,l.BRACKET_L,r,r+1);case 93:return F(e,l.BRACKET_R,r,r+1);case 123:return F(e,l.BRACE_L,r,r+1);case 124:return F(e,l.PIPE,r,r+1);case 125:return F(e,l.BRACE_R,r,r+1);case 34:if(34===i.charCodeAt(r+1)&&34===i.charCodeAt(r+2))return function(e,t){let i=e.source.body,n=i.length,r=e.lineStart,s=t+3,a=s,o="",u=[];for(;s<n;){let n=i.charCodeAt(s);if(34===n&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)){o+=i.slice(a,s),u.push(o);let n=F(e,l.BLOCK_STRING,t,s+3,(function(e){var t,i;let n=Number.MAX_SAFE_INTEGER,r=null,s=-1;for(let t=0;t<e.length;++t){let a=e[t],o=function(e){let t=0;for(;t<e.length&&_(e.charCodeAt(t));)++t;return t}(a);o!==a.length&&(r=null!=(i=r)?i:t,s=t,0!==t&&o<n&&(n=o))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!=(t=r)?t:0,s+1)})(u).join("\n"));return e.line+=u.length-1,e.lineStart=r,n}if(92===n&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)&&34===i.charCodeAt(s+3)){o+=i.slice(a,s),a=s+1,s+=4;continue}if(10===n||13===n){o+=i.slice(a,s),u.push(o),13===n&&10===i.charCodeAt(s+1)?s+=2:++s,o="",a=s,r=s;continue}if(k(n))++s;else if(b(i,s))s+=2;else throw N(e.source,s,`Invalid character within String: ${L(e,s)}.`)}throw N(e.source,s,"Unterminated string.")}(e,r);return function(e,t){let i=e.source.body,n=i.length,r=t+1,s=r,a="";for(;r<n;){let n=i.charCodeAt(r);if(34===n)return a+=i.slice(s,r),F(e,l.STRING,t,r+1,a);if(92===n){a+=i.slice(s,r);let t=117===i.charCodeAt(r+1)?123===i.charCodeAt(r+2)?function(e,t){let i=e.source.body,n=0,r=3;for(;r<12;){let e=i.charCodeAt(t+r++);if(125===e){if(r<5||!k(n))break;return{value:String.fromCodePoint(n),size:r}}if((n=n<<4|M(e))<0)break}throw N(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+r)}".`)}(e,r):function(e,t){let i=e.source.body,n=P(i,t+2);if(k(n))return{value:String.fromCodePoint(n),size:6};if(S(n)&&92===i.charCodeAt(t+6)&&117===i.charCodeAt(t+7)){let e=P(i,t+8);if(R(e))return{value:String.fromCodePoint(n,e),size:12}}throw N(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+6)}".`)}(e,r):function(e,t){let i=e.source.body;switch(i.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw N(e.source,t,`Invalid character escape sequence: "${i.slice(t,t+2)}".`)}(e,r);a+=t.value,r+=t.size,s=r;continue}if(10===n||13===n)break;if(k(n))++r;else if(b(i,r))r+=2;else throw N(e.source,r,`Invalid character within String: ${L(e,r)}.`)}throw N(e.source,r,"Unterminated string.")}(e,r)}if(D(t)||45===t)return function(e,t,i){let n=e.source.body,r=t,s=i,a=!1;if(45===s&&(s=n.charCodeAt(++r)),48===s){if(D(s=n.charCodeAt(++r)))throw N(e.source,r,`Invalid number, unexpected digit after 0: ${L(e,r)}.`)}else r=w(e,r,s),s=n.charCodeAt(r);if(46===s&&(a=!0,s=n.charCodeAt(++r),r=w(e,r,s),s=n.charCodeAt(r)),(69===s||101===s)&&(a=!0,(43===(s=n.charCodeAt(++r))||45===s)&&(s=n.charCodeAt(++r)),r=w(e,r,s),s=n.charCodeAt(r)),46===s||C(s))throw N(e.source,r,`Invalid number, expected digit but got: ${L(e,r)}.`);return F(e,a?l.FLOAT:l.INT,t,r,n.slice(t,r))}(e,r,t);if(C(t))return function(e,t){let i=e.source.body,n=i.length,r=t+1;for(;r<n;){var s;if(x(s=i.charCodeAt(r))||D(s)||95===s)++r;else break}return F(e,l.NAME,t,r,i.slice(t,r))}(e,r);throw N(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":k(t)||b(i,r)?`Unexpected character: ${L(e,r)}.`:`Invalid character: ${L(e,r)}.`)}return F(e,l.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===l.COMMENT)return e}}function k(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function b(e,t){return S(e.charCodeAt(t))&&R(e.charCodeAt(t+1))}function S(e){return e>=55296&&e<=56319}function R(e){return e>=56320&&e<=57343}function L(e,t){let i=e.source.body.codePointAt(t);if(void 0===i)return l.EOF;if(i>=32&&i<=126){let e=String.fromCodePoint(i);return'"'===e?"'\"'":`"${e}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function F(e,t,i,n,r){let s=e.line,a=1+i-e.lineStart;return new I(t,i,n,s,a,r)}function w(e,t,i){if(!D(i))throw N(e.source,t,`Invalid number, expected digit but got: ${L(e,t)}.`);let n=e.source.body,r=t+1;for(;D(n.charCodeAt(r));)++r;return r}function P(e,t){return M(e.charCodeAt(t))<<12|M(e.charCodeAt(t+1))<<8|M(e.charCodeAt(t+2))<<4|M(e.charCodeAt(t+3))}function M(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function U(e,t){if(!e)throw Error(t)}function B(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){let i;if(null===e)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:B(t,n)}else if(Array.isArray(e)){var r,s,a=e,o=n;if(0===a.length)return"[]";if(o.length>2)return"[Array]";let t=Math.min(10,a.length),i=a.length-t,l=[];for(let e=0;e<t;++e)l.push(B(a[e],o));return 1===i?l.push("... 1 more item"):i>1&&l.push(`... ${i} more items`),"["+l.join(", ")+"]"}return r=e,s=n,0===(i=Object.entries(r)).length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(r)+"]":"{ "+i.map(([e,t])=>
4e+": "+B(t,s)).join(", ")+" }"}(e,t);default:return String(e)}}let V=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var i;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(i=e.constructor)?void 0:i.name)){let t=B(e,[]);throw Error(`Cannot use ${n} "${t}" from another module or realm. 5 6Ensure that there is only one instance of "graphql" in the node_modules 7directory. If different versions of "graphql" are the dependencies of other 8relied on modules, use "resolutions" to ensure only one version is installed. 9 10https://yarnpkg.com/en/docs/selective-version-resolutions 11 12Duplicate "graphql" modules cannot be used at the same time since different 13versions may have different capabilities and behavior. The data from one 14version used in the function from another could produce confusing and 15spurious results.`)}}return!1};class j{constructor(e,t="GraphQL request",i={line:1,column:1}){"string"==typeof e||U(!1,`Body must be a string. Received: ${function(e){return B(e,[])}(e)}.`),this.body=e,this.name=t,this.locationOffset=i,this.locationOffset.line>0||U(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||U(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class q{constructor(e,t={}){const{lexer:i,...n}=t;if(i)this._lexer=i;else{const t=!function(e){return V(e,j)}(e)?new j(e):e;this._lexer=new g(t)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(l.NAME);return this.node(e,{kind:A.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:A.b.DOCUMENT,definitions:this.many(l.SOF,this.parseDefinition,l.EOF)})}parseDefinition(){if(this.peek(l.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===l.BRACE_L)throw N(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===l.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw N(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(l.BRACE_L))return this.node(t,{kind:A.b.OPERATION_DEFINITION,operation:a.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let i=this.parseDescription(),n=this.parseOperationType();return this.peek(l.NAME)&&(e=this.parseName()),this.node(t,{kind:A.b.OPERATION_DEFINITION,operation:n,description:i,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(l.NAME);switch(e.value){case"query":return a.QUERY;case"mutation":return a.MUTATION;case"subscription":return a.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(l.PAREN_L,this.parseVariableDefinition,l.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:A.b.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(l.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(l.DOLLAR),this.node(e,{kind:A.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:A.b.SELECTION_SET,selections:this.many(l.BRACE_L,this.parseSelection,l.BRACE_R)})}parseSelection(){return this.peek(l.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,i=this._lexer.token,n=this.parseName();return this.expectOptionalToken(l.COLON)?(e=n,t=this.parseName()):t=n,this.node(i,{kind:A.b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(l.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(l.PAREN_L,t,l.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,i=this.parseName();return this.expectToken(l.COLON),this.node(t,{kind:A.b.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(l.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(l.NAME)?this.node(e,{kind:A.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:A.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:A.b.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:A.b.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case l.BRACKET_L:return this.parseList(e);case l.BRACE_L:return this.parseObject(e);case l.INT:return this.advanceLexer(),this.node(t,{kind:A.b.INT,value:t.value});case l.FLOAT:return this.advanceLexer(),this.node(t,{kind:A.b.FLOAT,value:t.value});case l.STRING:case l.BLOCK_STRING:return this.parseStringLiteral();case l.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:A.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:A.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:A.b.NULL});default:return this.node(t,{kind:A.b.ENUM,value:t.value})}case l.DOLLAR:if(e){if(this.expectToken(l.DOLLAR),this._lexer.token.kind===l.NAME){let e=this._lexer.token.value;throw N(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:A.b.STRING,value:e.value,block:e.kind===l.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:A.b.LIST,values:this.any(l.BRACKET_L,t,l.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:A.b.OBJECT,fields:this.any(l.BRACE_L,t,l.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,i=this.parseName();return this.expectToken(l.COLON),this.node(t,{kind:A.b.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(l.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(l.AT),this.node(t,{kind:A.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(l.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(l.BRACKET_R),e=this.node(t,{kind:A.b.LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(l.BANG)?this.node(t,{kind:A.b.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:A.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(l.STRING)||this.peek(l.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),n=this.many(l.BRACE_L,this.parseOperationTypeDefinition,l.BRACE_R);return this.node(e,{kind:A.b.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(l.COLON);let i=this.parseNamedType();return this.node(e,{kind:A.b.OPERATION_TYPE_DEFINITION,operation:t,type:i})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:A.b.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:A.b.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(l.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(l.BRACE_L,this.parseFieldDefinition,l.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),n=this.parseArgumentDefs();this.expectToken(l.COLON);let r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:A.b.FIELD_DEFINITION,description:t,name:i,arguments:n,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(l.PAREN_L,this.parseInputValueDef,l.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,i=this.parseDescription(),n=this.parseName();this.expectToken(l.COLON);let r=this.parseTypeReference();this.expectOptionalToken(l.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:A.b.INPUT_VALUE_DEFINITION,description:i,name:n,type:r,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:A.b.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:n,directives:r,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:A.b.UNION_TYPE_DEFINITION,description:t,name:i,directives:n,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(l.EQUALS)?this.delimitedMany(l.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:A.b.ENUM_TYPE_DEFINITION,description:t,name:i,directives:n,values:r})}parseEnumValuesDefinition(){return this.optionalMany(l.BRACE_L,this.parseEnumValueDefinition,l.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:A.b.ENUM_VALUE_DEFINITION,description:t,name:i,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw N(this._lexer.source,this._lexer.token.start,`${$(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:A.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:n,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(l.BRACE_L,this.parseInputValueDef,l.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===l.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.optionalMany(l.BRACE_L,this.parseOperationTypeDefinition,l.BRACE_R);if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:A.b.SCHEMA_EXTENSION,directives:t,operationTypes:i})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(e,{kind:A.b.SCALAR_TYPE_EXTENSION,name:t,directives:i})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:A.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===i.length&&0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:A.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:n,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:A.b.UNION_TYPE_EXTENSION,name:t,directives:i,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:A.b.ENUM_TYPE_EXTENSION,name:t,directives:i,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:A.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(l.AT);let i=this.parseName(),n=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:A.b.DIRECTIVE_DEFINITION,description:t,name:i,arguments:n,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(l.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.has
15OwnProperty.call(o,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,i=this._lexer.token,n=this.expectOptionalToken(l.AT),r=this.parseName();return(!n&&this.expectOptionalToken(l.DOT)&&(e=this.parseName()),(n||e)&&this.expectOptionalToken(l.PAREN_L)&&(t=this.parseName(),this.expectToken(l.COLON),this.expectToken(l.PAREN_R)),n)?t?this.node(i,{kind:A.b.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:t}):this.node(i,{kind:A.b.DIRECTIVE_COORDINATE,name:r}):e?t?this.node(i,{kind:A.b.ARGUMENT_COORDINATE,name:r,fieldName:e,argumentName:t}):this.node(i,{kind:A.b.MEMBER_COORDINATE,name:r,memberName:e}):this.node(i,{kind:A.b.TYPE_COORDINATE,name:r})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new m(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw N(this._lexer.source,t.start,`Expected ${K(e)}, found ${$(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===l.NAME&&t.value===e)this.advanceLexer();else throw N(this._lexer.source,t.start,`Expected "${e}", found ${$(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===l.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return N(this._lexer.source,t.start,`Unexpected ${$(t)}.`)}any(e,t,i){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(i);)n.push(t.call(this));return n}optionalMany(e,t,i){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(i))return e}return[]}many(e,t,i){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(i))return n}delimitedMany(e,t){this.expectOptionalToken(e);let i=[];do i.push(t.call(this));while(this.expectOptionalToken(e))return i}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==l.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw N(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function $(e){let t=e.value;return K(e.kind)+(null!=t?` "${t}"`:"")}function K(e){return e===l.BANG||e===l.DOLLAR||e===l.AMP||e===l.PAREN_L||e===l.PAREN_R||e===l.DOT||e===l.SPREAD||e===l.COLON||e===l.EQUALS||e===l.AT||e===l.BRACKET_L||e===l.BRACKET_R||e===l.BRACE_L||e===l.PIPE||e===l.BRACE_R?`"${e}"`:e}let G=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Y(e){return J[e.charCodeAt(0)]}let J=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Q=Object.freeze({}),X={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>H(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=ee(e.variableDefinitions)?W("(\n",H(e.variableDefinitions,"\n"),"\n)"):W("(",H(e.variableDefinitions,", "),")"),i=W("",e.description,"\n")+H([e.operation,H([e.name,t]),H(e.directives," ")]," ");return("query"===i?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:i,directives:n,description:r})=>W("",r,"\n")+e+": "+t+W(" = ",i)+W(" ",H(n," "))},SelectionSet:{leave:({selections:e})=>z(e)},Field:{leave({alias:e,name:t,arguments:i,directives:n,selectionSet:r}){let s=W("",e,": ")+t,a=s+W("(",H(i,", "),")");return a.length>80&&(a=s+W("(\n",Z(H(i,"\n")),"\n)")),H([a,H(n," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+W(" ",H(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:i})=>H(["...",W("on ",e),H(t," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:i,directives:n,selectionSet:r,description:s})=>W("",s,"\n")+`fragment ${e}${W("(",H(i,", "),")")} `+`on ${t} ${W("",H(n," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
15,StringValue:{leave:({value:e,block:t})=>{let i,n,r,s,a,o,l,u,c,h,p;return t?(r=1===(n=(i=e.replace(/"""/g,'\\"""')).split(/\r\n|[\n\r]/g)).length,s=n.length>1&&n.slice(1).every(e=>0===e.length||_(e.charCodeAt(0))),a=i.endsWith('\\"""'),o=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=o||l,c=!r||e.length>70||u||s||a,h="",p=r&&_(e.charCodeAt(0)),(c&&!p||s)&&(h+="\n"),h+=i,(c||u)&&(h+="\n"),'"""'+h+'"""'):`"${e.replace(G,Y)}"`}},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+H(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+H(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+W("(",H(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:i})=>W("",e,"\n")+H(["schema",H(t," "),z(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:i})=>W("",e,"\n")+H(["scalar",t,H(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:n,fields:r})=>W("",e,"\n")+H(["type",t,W("implements ",H(i," & ")),H(n," "),z(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:i,type:n,directives:r})=>W("",e,"\n")+t+(ee(i)?W("(\n",Z(H(i,"\n")),"\n)"):W("(",H(i,", "),")"))+": "+n+W(" ",H(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:i,defaultValue:n,directives:r})=>W("",e,"\n")+H([t+": "+i,W("= ",n),H(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:n,fields:r})=>W("",e,"\n")+H(["interface",t,W("implements ",H(i," & ")),H(n," "),z(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:i,types:n})=>W("",e,"\n")+H(["union",t,H(i," "),W("= ",H(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:i,values:n})=>W("",e,"\n")+H(["enum",t,H(i," "),z(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:i})=>W("",e,"\n")+H([t,H(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:i,fields:n})=>W("",e,"\n")+H(["input",t,H(i," "),z(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:i,repeatable:n,locations:r})=>W("",e,"\n")+"directive @"+t+(ee(i)?W("(\n",Z(H(i,"\n")),"\n)"):W("(",H(i,", "),")"))+(n?" repeatable":"")+" on "+H(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>H(["extend schema",H(e," "),z(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>H(["extend scalar",e,H(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:n})=>H(["extend type",e,W("implements ",H(t," & ")),H(i," "),z(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:n})=>H(["extend interface",e,W("implements ",H(t," & ")),H(i," "),z(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:i})=>H(["extend union",e,H(t," "),W("= ",H(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:i})=>H(["extend enum",e,H(t," "),z(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:i})=>H(["extend input",e,H(t," "),z(i)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>H([e,W(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:i})=>H([e,W(".",t),W("(",i,":)")])},DirectiveCoordinate:{leave:({name:e})=>H(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>H(["@",e,W("(",t,":)")])}};function H(e,t=""){var i;return null!=(i=null==e?void 0:e.filter(e=>e).join(t))?i:""}function z(e){return W("{\n",Z(H(e,"\n")),"\n}")}function W(e,t,i=""){return null!=t&&""!==t?e+t+i:""}function Z(e){return W(" ",e.replace(/\n/g,"\n "))}function ee(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}let et=(e,t)=>{let i,n,r,s,a,o="string"==typeof e?e:function(e,t,i=v){let n,r,s,a=new Map;for(let e of Object.values(A.b))a.set(e,function(e,t){let i=e[t];return"object"==typeof i?i:"function"==typeof i?{enter:i,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let o=Array.isArray(e),l=[e],u=-1,c=[],h=e,p=[],d=[];do{var f,E,T;let e,N=++u===l.length,m=N&&0!==c.length;if(N){if(r=0===d.length?void 0:p[p.length-1],h=s,s=d.pop(),m)if(o){h=h.slice();let e=0;for(let[t,i]of c){let n=t-e;null===i?(h.splice(n,1),e++):h[n]=i}}else for(let[e,t]of(h={...h},c))h[e]=t;u=n.index,l=n.keys,c=n.edits,o=n.inArray,n=n.prev}else if(s){if(null==(h=s[r=o?u:l[u]]))continue;p.push(r)}if(!Array.isArray(h)){O(h)||U(!1,`Invalid AST Node: ${B(h,[])}.`);let i=N?null==(f=a.get(h.kind))?void 0:f.leave:null==(E=a.get(h.kind))?void 0:E.enter;if((e=null==i?void 0:i.call(t,h,r,s,p,d))===Q)break;if(!1===e){if(!N){p.pop();continue}}else if(void 0!==e&&(c.push([r,e]),!N))if(O(e))h=e;else{p.pop();continue}}void 0===e&&m&&c.push([r,h]),N?p.pop():(n={inArray:o,index:u,keys:l,edits:c,prev:n},l=(o=Array.isArray(h))?h:null!=(T=i[h.kind])?T:[],u=-1,c=[],s&&d.push(s),s=h)}while(void 0!==n)return 0!==c.length?c[c.length-1][1]:e}(e,X),l=!1;if(t)return{expression:o,isMutation:l,operationName:i};let h=(0,u.TX)(()=>{let t,i;return"string"==typeof e?(Object.defineProperty(i=(t=new q(e,void 0)).parseDocument(),"tokenCount",{enumerable:!1,value:t.tokenCount}),i):e});return h instanceof Error?{expression:o,isMutation:l,operationName:i}:(1===(r=h.definitions.filter(c.tx)).length&&(n=r[0].name?.value),i=n,s=!1,1===(a=h.definitions.filter(c.tx)).length&&(s="mutation"===a[0].operation),{expression:o,operationName:i,isMutation:l=s})}},933406:function(e,t,i){let n=JSON;i.d(t,{},{k:n})},52838:function(e,t,i){var n=i(642455),r=i(656227),s=i(675422);let a=e=>{let t,i,n;if("object"!=typeof e||null===e)throw Error("Invalid execution result: result is not object");
15if("errors"in e){if(!(0,s.Qd)(e.errors)&&!Array.isArray(e.errors))throw Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!(0,s.Qd)(e.data)&&null!==e.data)throw Error("Invalid execution result: data is not plain object");i=e.data}if("extensions"in e){if(!(0,s.Qd)(e.extensions))throw Error("Invalid execution result: extensions is not plain object");n=e.extensions}return{data:i,errors:t,extensions:n}},o=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors;i.d(t,{},{Jn:e=>{let t=e.toLowerCase();return t.includes(r.aq)||t.includes(r.i9)},ki:e=>"Batch"===e._tag?e.executionResults.some(o):o(e.executionResult),mC:e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(a)};if((0,s.Qd)(e))return{_tag:"Single",executionResult:a(e)};throw Error(`Invalid execution result: result is not object or array. 16Got: 17${String(e)}`)}catch(e){return e}},tx:e=>"object"==typeof e&&null!==e&&"kind"in e&&e.kind===n.b.OPERATION_DEFINITION,w:e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()})},656227:function(e,t,i){i.d(t,{},{aq:"application/graphql-response+json",i9:"application/json",r1:"Content-Type"})},675422:function(e,t,i){i(814830);let n=e=>e instanceof Error?e:Error(String(e));i.d(t,{},{Ln:e=>{throw Error(`Unhandled case: ${String(e)}`)},Qd:e=>"object"==typeof e&&null!==e&&!Array.isArray(e),TX:e=>{try{let t,i=e();if(t=i,"object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then&&"catch"in t&&"function"==typeof t.catch&&"finally"in t&&"function"==typeof t.finally)return i.catch(e=>n(e));return i}catch(e){return n(e)}},Zv:e=>e.toUpperCase(),kc:e=>"function"==typeof e?e():e,py:e=>{let t,i={};return e instanceof Headers?(t={},e.forEach((e,i)=>{t[i]=e}),i=t):Array.isArray(e)?e.forEach(([e,t])=>{e&&void 0!==t&&(i[e]=t)}):e&&(i=e),i},yU:(e,t)=>e.map((e,i)=>[e,t[i]])})},642455:function(e,t,i){var n,r;(r=n||(n={})).NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.VARIABLE="Variable",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="StringValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition",r.SCHEMA_EXTENSION="SchemaExtension",r.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",r.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",r.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",r.UNION_TYPE_EXTENSION="UnionTypeExtension",r.ENUM_TYPE_EXTENSION="EnumTypeExtension",r.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",r.TYPE_COORDINATE="TypeCoordinate",r.MEMBER_COORDINATE="MemberCoordinate",r.ARGUMENT_COORDINATE="ArgumentCoordinate",r.DIRECTIVE_COORDINATE="DirectiveCoordinate",r.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",i.d(t,{b:function(){return n}})}}]); 18//# debugId=8cf91ff8-a742-5e82-bf4d-bd6a4a6f4a7a
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.