@chillicream/nitro-embedded
Version:
Nitro GraphQL IDE
2 lines • 149 kB
JavaScript
/*! For license information please see 830.bcdef144.chunk.js.LICENSE.txt */
(self.webpackChunknitro=self.webpackChunknitro||[]).push([[830],{9210:function(e,t,n){!function(t,r,i){var u;e.exports=(u=n(74703),n(54654),n(16810),n(57353),n(53988),n(19367),n(17766),n(12689),n(87427),n(54798),n(84290),n(26883),n(7055),n(86290),n(89787),n(35425),n(87020),n(37755),n(30167),n(21045),n(87118),n(69907),n(72768),n(47279),n(34239),n(36008),n(99321),n(88406),n(31115),n(3137),n(54774),n(45003),n(40676),n(94278),n(66722),u)}()},53358:(e,t,n)=>{"use strict";var r=n(61596),i=n(11207),u=n(16047).Buffer,o=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<<t|e>>>32-t}function l(e,t,n,r,i,u,o){return s(e+(t&n|~t&r)+i+u|0,o)+t|0}function c(e,t,n,r,i,u,o){return s(e+(t&r|n&~r)+i+u|0,o)+t|0}function D(e,t,n,r,i,u,o){return s(e+(t^n^r)+i+u|0,o)+t|0}function d(e,t,n,r,i,u,o){return s(e+(n^(t|~r))+i+u|0,o)+t|0}r(a,i),a.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,u=this._d;n=l(n,r,i,u,e[0],3614090360,7),u=l(u,n,r,i,e[1],3905402710,12),i=l(i,u,n,r,e[2],606105819,17),r=l(r,i,u,n,e[3],3250441966,22),n=l(n,r,i,u,e[4],4118548399,7),u=l(u,n,r,i,e[5],1200080426,12),i=l(i,u,n,r,e[6],2821735955,17),r=l(r,i,u,n,e[7],4249261313,22),n=l(n,r,i,u,e[8],1770035416,7),u=l(u,n,r,i,e[9],2336552879,12),i=l(i,u,n,r,e[10],4294925233,17),r=l(r,i,u,n,e[11],2304563134,22),n=l(n,r,i,u,e[12],1804603682,7),u=l(u,n,r,i,e[13],4254626195,12),i=l(i,u,n,r,e[14],2792965006,17),n=c(n,r=l(r,i,u,n,e[15],1236535329,22),i,u,e[1],4129170786,5),u=c(u,n,r,i,e[6],3225465664,9),i=c(i,u,n,r,e[11],643717713,14),r=c(r,i,u,n,e[0],3921069994,20),n=c(n,r,i,u,e[5],3593408605,5),u=c(u,n,r,i,e[10],38016083,9),i=c(i,u,n,r,e[15],3634488961,14),r=c(r,i,u,n,e[4],3889429448,20),n=c(n,r,i,u,e[9],568446438,5),u=c(u,n,r,i,e[14],3275163606,9),i=c(i,u,n,r,e[3],4107603335,14),r=c(r,i,u,n,e[8],1163531501,20),n=c(n,r,i,u,e[13],2850285829,5),u=c(u,n,r,i,e[2],4243563512,9),i=c(i,u,n,r,e[7],1735328473,14),n=D(n,r=c(r,i,u,n,e[12],2368359562,20),i,u,e[5],4294588738,4),u=D(u,n,r,i,e[8],2272392833,11),i=D(i,u,n,r,e[11],1839030562,16),r=D(r,i,u,n,e[14],4259657740,23),n=D(n,r,i,u,e[1],2763975236,4),u=D(u,n,r,i,e[4],1272893353,11),i=D(i,u,n,r,e[7],4139469664,16),r=D(r,i,u,n,e[10],3200236656,23),n=D(n,r,i,u,e[13],681279174,4),u=D(u,n,r,i,e[0],3936430074,11),i=D(i,u,n,r,e[3],3572445317,16),r=D(r,i,u,n,e[6],76029189,23),n=D(n,r,i,u,e[9],3654602809,4),u=D(u,n,r,i,e[12],3873151461,11),i=D(i,u,n,r,e[15],530742520,16),n=d(n,r=D(r,i,u,n,e[2],3299628645,23),i,u,e[0],4096336452,6),u=d(u,n,r,i,e[7],1126891415,10),i=d(i,u,n,r,e[14],2878612391,15),r=d(r,i,u,n,e[5],4237533241,21),n=d(n,r,i,u,e[12],1700485571,6),u=d(u,n,r,i,e[3],2399980690,10),i=d(i,u,n,r,e[10],4293915773,15),r=d(r,i,u,n,e[1],2240044497,21),n=d(n,r,i,u,e[8],1873313359,6),u=d(u,n,r,i,e[15],4264355552,10),i=d(i,u,n,r,e[6],2734768916,15),r=d(r,i,u,n,e[13],1309151649,21),n=d(n,r,i,u,e[4],4149444226,6),u=d(u,n,r,i,e[11],3174756917,10),i=d(i,u,n,r,e[2],718787259,15),r=d(r,i,u,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+u|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=u.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=a},13339:(e,t,n)=>{"use strict";var r=65536,i=4294967295;var u=n(16047).Buffer,o=n.g.crypto||n.g.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>i)throw new RangeError("requested too many random bytes");var n=u.allocUnsafe(e);if(e>0)if(e>r)for(var a=0;a<e;a+=r)o.getRandomValues(n.slice(a,a+r));else o.getRandomValues(n);if("function"===typeof t)return process.nextTick((function(){t(null,n)}));return n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},69768:(e,t,n)=>{"use strict";Object.defineProperty},67942:(e,t,n)=>{"use strict";n.d(t,{P2:()=>i});var r=n(5596);function i(e,t){let{blocked:n,upgrade:i,blocking:u,terminated:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=indexedDB.open(e,t),s=(0,r.w)(a);return i&&a.addEventListener("upgradeneeded",(e=>{i((0,r.w)(a.result),e.oldVersion,e.newVersion,(0,r.w)(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{o&&e.addEventListener("close",(()=>o())),u&&e.addEventListener("versionchange",(e=>u(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}const u=["get","getKey","getAll","getAllKeys","count"],o=["put","add","delete","clear"],a=new Map;function s(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(a.get(t))return a.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=o.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!u.includes(n))return;const s=async function(e){const t=this.transaction(e,i?"readwrite":"readonly");let u=t.store;for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),i&&t.done]))[0]};return a.set(t,s),s}(0,r.r)((e=>({...e,get:(t,n,r)=>s(t,n)||e.get(t,n,r),has:(t,n)=>!!s(t,n)||e.has(t,n)})));n(4648)},20964:(e,t,n)=>{"use strict";var r,i,u,o=n(57528),a=n(64467),s=Object.defineProperty,l=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},c={};l(c,{languages:()=>te,options:()=>ne,parsers:()=>re,printers:()=>Ze});var D=(e,t,n,r)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},d="indent",f="group",p="if-break",h="line",F=()=>{},g=F,m=F;function E(e){return g(e),{type:d,contents:e}}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g(e),m(t.expandedStates,!0),{type:f,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return g(e),""!==t&&g(t),{type:p,breakContents:e,flatContents:t,groupId:n.groupId}}var C={type:h},b={type:h,soft:!0},A=[{type:h,hard:!0},{type:"break-parent"}];function k(e,t){g(e),m(t);let n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return n}function x(e){return(t,n,r)=>{let i=!(null==r||!r.backwards);if(!1===n)return!1;let{length:u}=t,o=n;for(;o>=0&&o<u;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return(-1===o||o===u)&&o}}x(/\s/u);var N=x(" \t"),T=x(",; \t"),I=x(/[^\n\r]/u);var w=function(e,t,n){let r=!(null==n||!n.backwards);if(!1===t)return!1;let i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t};var _=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=N(e,n.backwards?t-1:t,n);return r!==w(e,r,n)};var S=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t};var O=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?I(e,t):t)};var B=function(e,t){let n=null,r=t;for(;r!==n;)n=r,r=T(e,r),r=S(e,r),r=N(e,r);return r=O(e,r),r=w(e,r),!1!==r&&_(e,r)};var L=function(e){return Array.isArray(e)&&e.length>0},R=class extends Error{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";super("Unexpected ".concat(t," node ").concat(n,": ").concat(JSON.stringify(e[n]),".")),(0,a.A)(this,"name","UnexpectedNodeError"),this.node=e}},P=null;function j(e){if(null!==P&&(P.property,1)){let e=P;return P=j.prototype=null,e}return P=j.prototype=null!==e&&void 0!==e?e:Object.create(null),new j}for(let et=0;et<=10;et++)j();var M,V,U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"type";return function(e){j(e)}(e),function(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(new Error("Missing visitor keys for '".concat(r,"'.")),{node:n});return i}},K=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},G=class{constructor(e,t,n,r,i,u){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=u,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}}},q={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};new Set(Object.keys(q));(V=M||(M={})).QUERY="query",V.MUTATION="mutation",V.SUBSCRIPTION="subscription";var z=U(q,"kind");function W(e){return e.loc.start}function J(e){return e.loc.end}var Y=function(e,t,n){let{node:r}=e;if(!r.description)return"";let i=[n("description")];return"InputValueDefinition"!==r.kind||r.description.block?i.push(A):i.push(C),i};function H(e,t,n){if(0===n.directives.length)return"";let r=k(C,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?y([C,r]):[" ",y(E([b,r]))]}function X(e,t,n,r){return e.map((e=>{let{isLast:r,node:i}=e,u=n();return!r&&B(t.originalText,J(i))?[u,A]:u}),r)}function $(e,t){let{node:n}=e;return L(n.variableDefinitions)?y(["(",E([b,k([v("",", "),b],e.map(t,"variableDefinitions"))]),b,")"]):""}function Q(e,t){"StringValue"===e.kind&&e.block&&!e.value.includes("\n")&&(t.value=e.value.trim())}Q.ignoredProperties=new Set(["loc","comments"]);var Z={print:function(e,t,n){let{node:a}=e;switch(a.kind){case"Document":return[...k(A,X(e,t,n,"definitions")),A];case"OperationDefinition":{let r="{"!==t.originalText[W(a)],i=!!a.name;return[r?a.operation:"",r&&i?[" ",n("name")]:"",r&&!i&&L(a.variableDefinitions)?" ":"",$(e,n),H(e,n,a),r||i?" ":"",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),$(e,n)," on ",n("typeCondition"),H(e,n,a)," ",n("selectionSet")];case"SelectionSet":return["{",E([A,k(A,X(e,t,n,"selections"))]),A,"}"];case"Field":return y([a.alias?[n("alias"),": "]:"",n("name"),a.arguments.length>0?y(["(",E([b,k([v("",", "),b],X(e,t,n,"arguments"))]),b,")"]):"",H(e,n,a),a.selectionSet?" ":"",n("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return a.value;case"StringValue":if(a.block){let e=D(!1,a.value,'"""',String.raw(r||(r=(0,o.A)(['"""'],['\\"""'])))).split("\n");return 1===e.length&&(e[0]=e[0].trim()),e.every((e=>""===e))&&(e.length=0),k(A,['"""',...e,'"""'])}return['"',D(!1,D(!1,a.value,/["\\]/gu,String.raw(i||(i=(0,o.A)(["$&"],["\\$&"])))),"\n",String.raw(u||(u=(0,o.A)(["\n"],["\\n"])))),'"'];case"BooleanValue":return a.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return y(["[",E([b,k([v("",", "),b],e.map(n,"values"))]),b,"]"]);case"ObjectValue":{let r=t.bracketSpacing&&a.fields.length>0?" ":"";return y(["{",r,E([b,k([v("",", "),b],e.map(n,"fields"))]),b,v("",r),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),a.arguments.length>0?y(["(",E([b,k([v("",", "),b],X(e,t,n,"arguments"))]),b,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),a.defaultValue?[" = ",n("defaultValue")]:"",H(e,n,a)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:r}=a,i=[];return r.endsWith("TypeDefinition")?i.push(Y(e,t,n)):i.push("extend "),r.startsWith("ObjectType")?i.push("type"):r.startsWith("InputObjectType")?i.push("input"):i.push("interface"),i.push(" ",n("name")),!r.startsWith("InputObjectType")&&a.interfaces.length>0&&i.push(" implements ",...function(e,t,n){let{node:r}=e,i=[],{interfaces:u}=r,o=e.map(n,"interfaces");for(let a=0;a<u.length;a++){let e=u[a];i.push(o[a]);let n=u[a+1];if(n){let r=t.originalText.slice(e.loc.end,n.loc.start).includes("#");i.push(" &",r?C:" ")}}return i}(e,t,n)),i.push(H(e,n,a)),a.fields.length>0&&i.push([" {",E([A,k(A,X(e,t,n,"fields"))]),A,"}"]),i}case"FieldDefinition":return[Y(e,t,n),n("name"),a.arguments.length>0?y(["(",E([b,k([v("",", "),b],X(e,t,n,"arguments"))]),b,")"]):"",": ",n("type"),H(e,n,a)];case"DirectiveDefinition":return[Y(e,t,n),"directive ","@",n("name"),a.arguments.length>0?y(["(",E([b,k([v("",", "),b],X(e,t,n,"arguments"))]),b,")"]):"",a.repeatable?" repeatable":""," on ",...k(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[Y(e,t,n),"EnumTypeExtension"===a.kind?"extend ":"","enum ",n("name"),H(e,n,a),a.values.length>0?[" {",E([A,k(A,X(e,t,n,"values"))]),A,"}"]:""];case"EnumValueDefinition":return[Y(e,t,n),n("name"),H(e,n,a)];case"InputValueDefinition":return[Y(e,t,n),n("name"),": ",n("type"),a.defaultValue?[" = ",n("defaultValue")]:"",H(e,n,a)];case"SchemaExtension":return["extend schema",H(e,n,a),...a.operationTypes.length>0?[" {",E([A,k(A,X(e,t,n,"operationTypes"))]),A,"}"]:[]];case"SchemaDefinition":return[Y(e,t,n),"schema",H(e,n,a)," {",a.operationTypes.length>0?E([A,k(A,X(e,t,n,"operationTypes"))]):"",A,"}"];case"OperationTypeDefinition":return[a.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),H(e,n,a)];case"InlineFragment":return["...",a.typeCondition?[" on ",n("typeCondition")]:"",H(e,n,a)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return y([Y(e,t,n),y(["UnionTypeExtension"===a.kind?"extend ":"","union ",n("name"),H(e,n,a),a.types.length>0?[" =",v(""," "),E([v([C,"| "]),k([C,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[Y(e,t,n),"ScalarTypeExtension"===a.kind?"extend ":"","scalar ",n("name"),H(e,n,a)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new R(a,"Graphql","kind")}},massageAstNode:Q,hasPrettierIgnore:function(e){var t;let{node:n}=e;return null==(t=null==n?void 0:n.comments)?void 0:t.some((e=>"prettier-ignore"===e.value.trim()))},insertPragma:function(e){return"# @format\n\n"+e},printComment:function(e){let t=e.node;if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return"Comment"!==e.kind},getVisitorKeys:z},ee=Z,te=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],ne={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."}},re={};function ie(e,t){if(!e)throw new Error(null!==t&&void 0!==t?t:"Unexpected invariant triggered.")}l(re,{graphql:()=>Qe});var ue=/\r\n|[\n\r]/g;function oe(e,t){let n=0,r=1;for(let i of e.body.matchAll(ue)){if("number"==typeof i.index||ie(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function ae(e){return se(e.source,oe(e.source,e.start))}function se(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,u=e.locationOffset.line-1,o=t.line+u,a=1===t.line?n:0,s=t.column+a,l="".concat(e.name,":").concat(o,":").concat(s,"\n"),c=r.split(/\r\n|[\n\r]/g),D=c[i];if(D.length>120){let e=Math.floor(s/80),t=s%80,n=[];for(let r=0;r<D.length;r+=80)n.push(D.slice(r,r+80));return l+le([["".concat(o," |"),n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return l+le([["".concat(o-1," |"),c[i-1]],["".concat(o," |"),D],["|","^".padStart(s)],["".concat(o+1," |"),c[i+1]]])}function le(e){let t=e.filter((e=>{let[t,n]=e;return void 0!==n})),n=Math.max(...t.map((e=>{let[t]=e;return t.length})));return t.map((e=>{let[t,r]=e;return t.padStart(n)+(r?" "+r:"")})).join("\n")}var ce,De,de,fe=class e extends Error{constructor(t){for(var n,r,i,u=arguments.length,o=new Array(u>1?u-1:0),a=1;a<u;a++)o[a-1]=arguments[a];let{nodes:s,source:l,positions:c,path:D,originalError:d,extensions:f}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(o);super(t),this.name="GraphQLError",this.path=null!==D&&void 0!==D?D:void 0,this.originalError=null!==d&&void 0!==d?d:void 0,this.nodes=pe(Array.isArray(s)?s:s?[s]:void 0);let p=pe(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!==l&&void 0!==l?l:null==p||null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!==c&&void 0!==c?c:null==p?void 0:p.map((e=>e.start)),this.locations=c&&l?c.map((e=>oe(l,e))):null==p?void 0:p.map((e=>oe(e.source,e.start)));let h=function(e){return"object"==typeof e&&null!==e}(null==d?void 0:d.extensions)?null==d?void 0:d.extensions:void 0;this.extensions=null!==(i=null!==f&&void 0!==f?f:h)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,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 t of this.nodes)t.loc&&(e+="\n\n"+ae(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+se(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 pe(e){return void 0===e||0===e.length?void 0:e}function he(e,t,n){return new fe("Syntax Error: ".concat(n),{source:e,positions:[t]})}function Fe(e){return 9===e||32===e}function ge(e){return e>=48&&e<=57}function me(e){return e>=97&&e<=122||e>=65&&e<=90}function Ee(e){return me(e)||95===e}function ye(e){return me(e)||ge(e)||95===e}function ve(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;o<e.length;++o){var u;let t=e[o],a=Ce(t);a!==t.length&&(r=null!==(u=r)&&void 0!==u?u:o,i=o,0!==o&&a<n&&(n=a))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function Ce(e){let t=0;for(;t<e.length&&Fe(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(ce||(ce={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(De||(De={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(de||(de={}));var be=class{constructor(e){let t=new G(de.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!==de.EOF)do{if(e.next)e=e.next;else{let t=we(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===de.COMMENT);return e}};function Ae(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ke(e,t){return xe(e.charCodeAt(t))&&Ne(e.charCodeAt(t+1))}function xe(e){return e>=55296&&e<=56319}function Ne(e){return e>=56320&&e<=57343}function Te(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return de.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":'"'.concat(e,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Ie(e,t,n,r,i){let u=e.line,o=1+n-e.lineStart;return new G(t,n,r,u,o,i)}function we(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return _e(e,i);case 33:return Ie(e,de.BANG,i,i+1);case 36:return Ie(e,de.DOLLAR,i,i+1);case 38:return Ie(e,de.AMP,i,i+1);case 40:return Ie(e,de.PAREN_L,i,i+1);case 41:return Ie(e,de.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return Ie(e,de.SPREAD,i,i+3);break;case 58:return Ie(e,de.COLON,i,i+1);case 61:return Ie(e,de.EQUALS,i,i+1);case 64:return Ie(e,de.AT,i,i+1);case 91:return Ie(e,de.BRACKET_L,i,i+1);case 93:return Ie(e,de.BRACKET_R,i,i+1);case 123:return Ie(e,de.BRACE_L,i,i+1);case 124:return Ie(e,de.PIPE,i,i+1);case 125:return Ie(e,de.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?Ve(e,i):Be(e,i)}if(ge(t)||45===t)return Se(e,i,t);if(Ee(t))return Ue(e,i);throw he(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Ae(t)||ke(n,i)?"Unexpected character: ".concat(Te(e,i),"."):"Invalid character: ".concat(Te(e,i),"."))}return Ie(e,de.EOF,r,r)}function _e(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(10===e||13===e)break;if(Ae(e))++i;else{if(!ke(n,i))break;i+=2}}return Ie(e,de.COMMENT,t,i,n.slice(t+1,i))}function Se(e,t,n){let r=e.source.body,i=t,u=n,o=!1;if(45===u&&(u=r.charCodeAt(++i)),48===u){if(u=r.charCodeAt(++i),ge(u))throw he(e.source,i,"Invalid number, unexpected digit after 0: ".concat(Te(e,i),"."))}else i=Oe(e,i,u),u=r.charCodeAt(i);if(46===u&&(o=!0,u=r.charCodeAt(++i),i=Oe(e,i,u),u=r.charCodeAt(i)),(69===u||101===u)&&(o=!0,u=r.charCodeAt(++i),(43===u||45===u)&&(u=r.charCodeAt(++i)),i=Oe(e,i,u),u=r.charCodeAt(i)),46===u||Ee(u))throw he(e.source,i,"Invalid number, expected digit but got: ".concat(Te(e,i),"."));return Ie(e,o?de.FLOAT:de.INT,t,i,r.slice(t,i))}function Oe(e,t,n){if(!ge(n))throw he(e.source,t,"Invalid number, expected digit but got: ".concat(Te(e,t),"."));let r=e.source.body,i=t+1;for(;ge(r.charCodeAt(i));)++i;return i}function Be(e,t){let n=e.source.body,r=n.length,i=t+1,u=i,o="";for(;i<r;){let r=n.charCodeAt(i);if(34===r)return o+=n.slice(u,i),Ie(e,de.STRING,t,i+1,o);if(92!==r){if(10===r||13===r)break;if(Ae(r))++i;else{if(!ke(n,i))throw he(e.source,i,"Invalid character within String: ".concat(Te(e,i),"."));i+=2}}else{o+=n.slice(u,i);let t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?Le(e,i):Re(e,i):Me(e,i);o+=t.value,i+=t.size,u=i}}throw he(e.source,i,"Unterminated string.")}function Le(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+i++);if(125===e){if(i<5||!Ae(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|je(e),r<0)break}throw he(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+i),'".'))}function Re(e,t){let n=e.source.body,r=Pe(n,t+2);if(Ae(r))return{value:String.fromCodePoint(r),size:6};if(xe(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=Pe(n,t+8);if(Ne(e))return{value:String.fromCodePoint(r,e),size:12}}throw he(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+6),'".'))}function Pe(e,t){return je(e.charCodeAt(t))<<12|je(e.charCodeAt(t+1))<<8|je(e.charCodeAt(t+2))<<4|je(e.charCodeAt(t+3))}function je(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Me(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw he(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}function Ve(e,t){let n=e.source.body,r=n.length,i=e.lineStart,u=t+3,o=u,a="",s=[];for(;u<r;){let r=n.charCodeAt(u);if(34===r&&34===n.charCodeAt(u+1)&&34===n.charCodeAt(u+2)){a+=n.slice(o,u),s.push(a);let r=Ie(e,de.BLOCK_STRING,t,u+3,ve(s).join("\n"));return e.line+=s.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(u+1)||34!==n.charCodeAt(u+2)||34!==n.charCodeAt(u+3))if(10!==r&&13!==r)if(Ae(r))++u;else{if(!ke(n,u))throw he(e.source,u,"Invalid character within String: ".concat(Te(e,u),"."));u+=2}else a+=n.slice(o,u),s.push(a),13===r&&10===n.charCodeAt(u+1)?u+=2:++u,a="",o=u,i=u;else a+=n.slice(o,u),o=u+1,u+=4}throw he(e.source,u,"Unterminated string.")}function Ue(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){if(!ye(n.charCodeAt(i)))break;++i}return Ie(e,de.NAME,t,i,n.slice(t,i))}function Ke(e,t){if(!e)throw new Error(t)}function Ge(e){return qe(e,[])}function qe(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:qe(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let u=0;u<n;++u)i.push(qe(e[u],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){let n=Object.entries(e);return 0===n.length?"{}":t.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}(e)+"]":"{ "+n.map((e=>{let[n,r]=e;return n+": "+qe(r,t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var ze=globalThis.process&&!0?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){let t=Ge(e);throw new Error("Cannot use ".concat(r,' "').concat(t,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1},We=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||Ke(!1,"Body must be a string. Received: ".concat(Ge(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Ke(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ke(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};var Je=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e){return ze(e,We)}(e)?e:new We(e);this._lexer=new be(n),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(de.NAME);return this.node(e,{kind:De.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:De.DOCUMENT,definitions:this.many(de.SOF,this.parseDefinition,de.EOF)})}parseDefinition(){if(this.peek(de.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===de.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()}if(e)throw he(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(de.BRACE_L))return this.node(e,{kind:De.OPERATION_DEFINITION,operation:M.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t,n=this.parseOperationType();return this.peek(de.NAME)&&(t=this.parseName()),this.node(e,{kind:De.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(de.NAME);switch(e.value){case"query":return M.QUERY;case"mutation":return M.MUTATION;case"subscription":return M.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(de.PAREN_L,this.parseVariableDefinition,de.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:De.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(de.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(de.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(de.DOLLAR),this.node(e,{kind:De.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:De.SELECTION_SET,selections:this.many(de.BRACE_L,this.parseSelection,de.BRACE_R)})}parseSelection(){return this.peek(de.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(de.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:De.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(de.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(de.PAREN_L,t,de.PAREN_R)}parseArgument(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,n=this.parseName();return this.expectToken(de.COLON),this.node(t,{kind:De.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(de.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(de.NAME)?this.node(e,{kind:De.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:De.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:De.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:De.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case de.BRACKET_L:return this.parseList(e);case de.BRACE_L:return this.parseObject(e);case de.INT:return this.advanceLexer(),this.node(t,{kind:De.INT,value:t.value});case de.FLOAT:return this.advanceLexer(),this.node(t,{kind:De.FLOAT,value:t.value});case de.STRING:case de.BLOCK_STRING:return this.parseStringLiteral();case de.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:De.BOOLEAN,value:!0});case"false":return this.node(t,{kind:De.BOOLEAN,value:!1});case"null":return this.node(t,{kind:De.NULL});default:return this.node(t,{kind:De.ENUM,value:t.value})}case de.DOLLAR:if(e){if(this.expectToken(de.DOLLAR),this._lexer.token.kind===de.NAME){let e=this._lexer.token.value;throw he(this._lexer.source,t.start,'Unexpected variable "$'.concat(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:De.STRING,value:e.value,block:e.kind===de.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:De.LIST,values:this.any(de.BRACKET_L,(()=>this.parseValueLiteral(e)),de.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:De.OBJECT,fields:this.any(de.BRACE_L,(()=>this.parseObjectField(e)),de.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(de.COLON),this.node(t,{kind:De.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(de.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(de.AT),this.node(t,{kind:De.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(de.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(de.BRACKET_R),e=this.node(t,{kind:De.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(de.BANG)?this.node(t,{kind:De.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:De.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(de.STRING)||this.peek(de.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(de.BRACE_L,this.parseOperationTypeDefinition,de.BRACE_R);return this.node(e,{kind:De.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(de.COLON);let n=this.parseNamedType();return this.node(e,{kind:De.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:De.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),u=this.parseFieldsDefinition();return this.node(e,{kind:De.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:u})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(de.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(de.BRACE_L,this.parseFieldDefinition,de.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(de.COLON);let i=this.parseTypeReference(),u=this.parseConstDirectives();return this.node(e,{kind:De.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:u})}parseArgumentDefs(){return this.optionalMany(de.PAREN_L,this.parseInputValueDef,de.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(de.COLON);let r,i=this.parseTypeReference();this.expectOptionalToken(de.EQUALS)&&(r=this.parseConstValueLiteral());let u=this.parseConstDirectives();return this.node(e,{kind:De.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:u})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),u=this.parseFieldsDefinition();return this.node(e,{kind:De.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:u})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:De.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(de.EQUALS)?this.delimitedMany(de.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:De.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(de.BRACE_L,this.parseEnumValueDefinition,de.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:De.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw he(this._lexer.source,this._lexer.token.start,"".concat(Ye(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 n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:De.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(de.BRACE_L,this.parseInputValueDef,de.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===de.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(),n=this.optionalMany(de.BRACE_L,this.parseOperationTypeDefinition,de.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:De.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:De.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:De.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:De.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:De.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:De.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:De.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(de.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let u=this.parseDirectiveLocations();return this.node(e,{kind:De.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:u})}parseDirectiveLocations(){return this.delimitedMany(de.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ce,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new K(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 he(this._lexer.source,t.start,"Expected ".concat(He(e),", found ").concat(Ye(t),"."))}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind!==de.NAME||t.value!==e)throw he(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Ye(t),"."));this.advanceLexer()}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===de.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!==e&&void 0!==e?e:this._lexer.token;return he(this._lexer.source,t.start,"Unexpected ".concat(Ye(t),"."))}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==de.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw he(this._lexer.source,t.start,"Document contains more that ".concat(e," tokens. Parsing aborted."))}};function Ye(e){let t=e.value;return He(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function He(e){return function(e){return e===de.BANG||e===de.DOLLAR||e===de.AMP||e===de.PAREN_L||e===de.PAREN_R||e===de.SPREAD||e===de.COLON||e===de.EQUALS||e===de.AT||e===de.BRACKET_L||e===de.BRACKET_R||e===de.BRACE_L||e===de.PIPE||e===de.BRACE_R}(e)?'"'.concat(e,'"'):e}var Xe=function(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)};var $e={allowLegacyFragmentVariables:!0};var Qe={parse:function(e){let t;try{t=function(e,t){return new Je(e,t).parseDocument()}(e,$e)}catch(n){throw function(e){if("GraphQLError"===(null==e?void 0:e.name)){let{message:t,locations:[n]}=e;return Xe(t,{loc:{start:n},cause:e})}return e}(n)}return t.comments=function(e){let t=[],{startToken:n,endToken:r}=e.loc;for(let i=n;i!==r;i=i.next)"Comment"===i.kind&&t.push({...i,loc:{start:i.start,end:i.end}});return t}(t),t},astFormat:"graphql",hasPragma:function(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u.test(e)},locStart:W,locEnd:J},Ze={graphql:ee}},90751:(e,t,n)=>{"use strict";var r=n(64467),i=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=e=>{throw TypeError(e)},D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})},f=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of a(t))!l.call(e,i)&&i!==n&&u(e,i,{get:()=>t[i],enumerable:!(r=o(t,i))||r.enumerable});return e},p=(e,t,n)=>(n=null!=e?i(s(e)):{},f(!t&&e&&e.__esModule?n:u(n,"default",{value:e,enumerable:!0}),e)),h=(e,t,n)=>(((e,t,n)=>{t.has(e)||c("Cannot "+n)})(e,t,"access private method"),n),F=D(((e,t)=>{var n=new Proxy(String,{get:()=>n});t.exports=n})),g={};d(g,{default:()=>E,shouldHighlight:()=>m});var m,E,y,v,C=(y=()=>{m=()=>!1,E=String},()=>(y&&(v=y(y=0)),v)),b=D(((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,striketh