-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser-graphql.js
1 lines (1 loc) · 36.4 KB
/
parser-graphql.js
1
"use strict";function createError(e,n){const r=new SyntaxError(e+" ("+n.start.line+":"+n.start.column+")");return r.loc=n,r}var parserCreateError=createError;function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,n){return e(n={exports:{}},n.exports),n.exports}var location=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getLocation=function(e,n){var r=/\r\n|[\n\r]/g,t=1,i=n+1,o=void 0;for(;(o=r.exec(e.body))&&o.index<n;)t+=1,i=n+1-(o.index+o[0].length);return{line:t,column:i}}});unwrapExports(location);var kinds=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});n.Kind=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",VARIABLE:"Variable",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension",DIRECTIVE_DEFINITION:"DirectiveDefinition"})});unwrapExports(kinds);var printError_1=createCommonjsModule(function(e,n){function r(e,n){var r=n.line,o=e.locationOffset.line-1,a=function(e,n){return 1===n.line?e.locationOffset.column-1:0}(e,n),c=r+o,u=n.column+a,l=(c-1).toString(),s=c.toString(),d=(c+1).toString(),f=d.length,v=e.body.split(/\r\n|[\n\r]/g);return v[0]=t(e.locationOffset.column-1)+v[0],[e.name+" ("+c+":"+u+")",r>=2&&i(f,l)+": "+v[r-2],i(f,s)+": "+v[r-1],t(2+f+u-1)+"^",r<v.length&&i(f,d)+": "+v[r]].filter(Boolean).join("\n")}function t(e){return Array(e+1).join(" ")}function i(e,n){return t(e-n.length)+n}Object.defineProperty(n,"__esModule",{value:!0}),n.printError=function(e){var n=[];if(e.nodes)e.nodes.forEach(function(e){e.loc&&n.push(r(e.loc.source,(0,location.getLocation)(e.loc.source,e.loc.start)))});else if(e.source&&e.locations){var t=e.source;e.locations.forEach(function(e){n.push(r(t,e))})}return 0===n.length?e.message:[e.message].concat(n).join("\n\n")+"\n"}});unwrapExports(printError_1);var GraphQLError_1=createCommonjsModule(function(e,n){function r(e,n,t,i,o,a,c){var u=Array.isArray(n)?0!==n.length?n:void 0:n?[n]:void 0,l=t;if(!l&&u){var s=u[0];l=s&&s.loc&&s.loc.source}var d=i;!d&&u&&(d=u.reduce(function(e,n){return n.loc&&e.push(n.loc.start),e},[])),d&&0===d.length&&(d=void 0);var f=void 0;i&&t?f=i.map(function(e){return(0,location.getLocation)(t,e)}):u&&(f=u.reduce(function(e,n){return n.loc&&e.push((0,location.getLocation)(n.loc.source,n.loc.start)),e},[])),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:f||void 0,enumerable:!0},path:{value:o||void 0,enumerable:!0},nodes:{value:u||void 0},source:{value:l||void 0},positions:{value:d||void 0},originalError:{value:a},extensions:{value:c||a&&a.extensions}}),a&&a.stack?Object.defineProperty(this,"stack",{value:a.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=r,r.prototype=Object.create(Error.prototype,{constructor:{value:r},name:{value:"GraphQLError"},toString:{value:function(){return(0,printError_1.printError)(this)}}})});unwrapExports(GraphQLError_1);var syntaxError_1=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.syntaxError=function(e,n,r){return new GraphQLError_1.GraphQLError("Syntax Error: "+r,void 0,e,[n])}});unwrapExports(syntaxError_1);var locatedError_1=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.locatedError=function(e,n,r){if(e&&Array.isArray(e.path))return e;return new GraphQLError_1.GraphQLError(e&&e.message,e&&e.nodes||n,e&&e.source,e&&e.positions,r,e)}});unwrapExports(locatedError_1);var invariant_1=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){if(!e)throw new Error(n)}});unwrapExports(invariant_1);var formatError_1=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e};n.formatError=function(e){return e||(0,i.default)(0,"Received null or undefined error."),r({},e.extensions,{message:e.message||"An unknown error occurred.",locations:e.locations,path:e.path})};var t,i=(t=invariant_1)&&t.__esModule?t:{default:t}});unwrapExports(formatError_1);var error=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return GraphQLError_1.GraphQLError}}),Object.defineProperty(n,"syntaxError",{enumerable:!0,get:function(){return syntaxError_1.syntaxError}}),Object.defineProperty(n,"locatedError",{enumerable:!0,get:function(){return locatedError_1.locatedError}}),Object.defineProperty(n,"printError",{enumerable:!0,get:function(){return printError_1.printError}}),Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return formatError_1.formatError}})});unwrapExports(error);var blockStringValue_1=createCommonjsModule(function(e,n){function r(e){for(var n=0;n<e.length&&(" "===e[n]||"\t"===e[n]);)n++;return n}function t(e){return r(e)===e.length}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){for(var n=e.split(/\r\n|[\n\r]/g),i=null,o=1;o<n.length;o++){var a=n[o],c=r(a);if(c<a.length&&(null===i||c<i)&&0===(i=c))break}if(i)for(var u=1;u<n.length;u++)n[u]=n[u].slice(i);for(;n.length>0&&t(n[0]);)n.shift();for(;n.length>0&&t(n[n.length-1]);)n.pop();return n.join("\n")}});unwrapExports(blockStringValue_1);var lexer=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0,n.createLexer=function(e,n){var r=new l(a.SOF,0,0,0,0,null);return{source:e,options:n,lastToken:r,token:r,line:1,lineStart:0,advance:i,lookahead:o}},n.getTokenDesc=function(e){var n=e.value;return n?e.kind+' "'+n+'"':e.kind};var r,t=(r=blockStringValue_1)&&r.__esModule?r:{default:r};function i(){return this.lastToken=this.token,this.token=this.lookahead()}function o(){var e=this.token;if(e.kind!==a.EOF)do{e=e.next||(e.next=d(this,e))}while(e.kind===a.COMMENT);return e}var a=n.TokenKind=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});var c=String.prototype.charCodeAt,u=String.prototype.slice;function l(e,n,r,t,i,o,a){this.kind=e,this.start=n,this.end=r,this.line=t,this.column=i,this.value=a,this.prev=o,this.next=null}function s(e){return isNaN(e)?a.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function d(e,n){var r=e.source,i=r.body,o=i.length,d=function(e,n,r){var t=e.length,i=n;for(;i<t;){var o=c.call(e,i);if(9===o||32===o||44===o||65279===o)++i;else if(10===o)++i,++r.line,r.lineStart=i;else{if(13!==o)break;10===c.call(e,i+1)?i+=2:++i,++r.line,r.lineStart=i}}return i}(i,n.end,e),E=e.line,p=1+d-e.lineStart;if(d>=o)return new l(a.EOF,o,o,E,p,n);var T=c.call(i,d);if(T<32&&9!==T&&10!==T&&13!==T)throw(0,error.syntaxError)(r,d,"Cannot contain the invalid character "+s(T)+".");switch(T){case 33:return new l(a.BANG,d,d+1,E,p,n);case 35:return function(e,n,r,t,i){var o=e.body,s=void 0,d=n;do{s=c.call(o,++d)}while(null!==s&&(s>31||9===s));return new l(a.COMMENT,n,d,r,t,i,u.call(o,n+1,d))}(r,d,E,p,n);case 36:return new l(a.DOLLAR,d,d+1,E,p,n);case 38:return new l(a.AMP,d,d+1,E,p,n);case 40:return new l(a.PAREN_L,d,d+1,E,p,n);case 41:return new l(a.PAREN_R,d,d+1,E,p,n);case 46:if(46===c.call(i,d+1)&&46===c.call(i,d+2))return new l(a.SPREAD,d,d+3,E,p,n);break;case 58:return new l(a.COLON,d,d+1,E,p,n);case 61:return new l(a.EQUALS,d,d+1,E,p,n);case 64:return new l(a.AT,d,d+1,E,p,n);case 91:return new l(a.BRACKET_L,d,d+1,E,p,n);case 93:return new l(a.BRACKET_R,d,d+1,E,p,n);case 123:return new l(a.BRACE_L,d,d+1,E,p,n);case 124:return new l(a.PIPE,d,d+1,E,p,n);case 125:return new l(a.BRACE_R,d,d+1,E,p,n);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,n,r,t,i){var o=e.body,s=o.length,d=n+1,f=0;for(;d!==s&&null!==(f=c.call(o,d))&&(95===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122);)++d;return new l(a.NAME,n,d,r,t,i,u.call(o,n,d))}(r,d,E,p,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,n,r,t,i,o){var d=e.body,v=r,E=n,p=!1;45===v&&(v=c.call(d,++E));if(48===v){if((v=c.call(d,++E))>=48&&v<=57)throw(0,error.syntaxError)(e,E,"Invalid number, unexpected digit after 0: "+s(v)+".")}else E=f(e,E,v),v=c.call(d,E);46===v&&(p=!0,v=c.call(d,++E),E=f(e,E,v),v=c.call(d,E));69!==v&&101!==v||(p=!0,43!==(v=c.call(d,++E))&&45!==v||(v=c.call(d,++E)),E=f(e,E,v));return new l(p?a.FLOAT:a.INT,n,E,t,i,o,u.call(d,n,E))}(r,d,T,E,p,n);case 34:return 34===c.call(i,d+1)&&34===c.call(i,d+2)?function(e,n,r,i,o){var d=e.body,f=n+3,v=f,E=0,p="";for(;f<d.length&&null!==(E=c.call(d,f));){if(34===E&&34===c.call(d,f+1)&&34===c.call(d,f+2))return p+=u.call(d,v,f),new l(a.BLOCK_STRING,n,f+3,r,i,o,(0,t.default)(p));if(E<32&&9!==E&&10!==E&&13!==E)throw(0,error.syntaxError)(e,f,"Invalid character within String: "+s(E)+".");92===E&&34===c.call(d,f+1)&&34===c.call(d,f+2)&&34===c.call(d,f+3)?(p+=u.call(d,v,f)+'"""',v=f+=4):++f}throw(0,error.syntaxError)(e,f,"Unterminated string.")}(r,d,E,p,n):function(e,n,r,t,i){var o=e.body,d=n+1,f=d,E=0,p="";for(;d<o.length&&null!==(E=c.call(o,d))&&10!==E&&13!==E;){if(34===E)return p+=u.call(o,f,d),new l(a.STRING,n,d+1,r,t,i,p);if(E<32&&9!==E)throw(0,error.syntaxError)(e,d,"Invalid character within String: "+s(E)+".");if(++d,92===E){switch(p+=u.call(o,f,d-1),E=c.call(o,d)){case 34:p+='"';break;case 47:p+="/";break;case 92:p+="\\";break;case 98:p+="\b";break;case 102:p+="\f";break;case 110:p+="\n";break;case 114:p+="\r";break;case 116:p+="\t";break;case 117:var T=(k=c.call(o,d+1),N=c.call(o,d+2),m=c.call(o,d+3),I=c.call(o,d+4),v(k)<<12|v(N)<<8|v(m)<<4|v(I));if(T<0)throw(0,error.syntaxError)(e,d,"Invalid character escape sequence: \\u"+o.slice(d+1,d+5)+".");p+=String.fromCharCode(T),d+=4;break;default:throw(0,error.syntaxError)(e,d,"Invalid character escape sequence: \\"+String.fromCharCode(E)+".")}f=++d}}var k,N,m,I;throw(0,error.syntaxError)(e,d,"Unterminated string.")}(r,d,E,p,n)}throw(0,error.syntaxError)(r,d,function(e){if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character "+s(e)+"."}(T))}function f(e,n,r){var t=e.body,i=n,o=r;if(o>=48&&o<=57){do{o=c.call(t,++i)}while(o>=48&&o<=57);return i}throw(0,error.syntaxError)(e,i,"Invalid number, expected digit but got: "+s(o)+".")}function v(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}l.prototype.toJSON=l.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}});unwrapExports(lexer);var source=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Source=void 0;var r,t=(r=invariant_1)&&r.__esModule?r:{default:r};n.Source=function e(n,r,i){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.body=n,this.name=r||"GraphQL request",this.locationOffset=i||{line:1,column:1},this.locationOffset.line>0||(0,t.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,t.default)(0,"column in locationOffset is 1-indexed and must be positive")}});unwrapExports(source);var directiveLocation=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});n.DirectiveLocation=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})});unwrapExports(directiveLocation);var parser=createCommonjsModule(function(e,n){function r(e){var n=G(e,lexer.TokenKind.NAME);return{kind:kinds.Kind.NAME,value:n.value,loc:j(e,n)}}function t(e){if(U(e,lexer.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return i(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return x(e)}else{if(U(e,lexer.TokenKind.BRACE_L))return i(e);if(A(e))return x(e)}throw J(e)}function i(e){if(U(e,lexer.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return o(e);case"fragment":return function(e){var n=e.token;if(Y(e,"fragment"),e.options.experimentalFragmentVariables)return{kind:kinds.Kind.FRAGMENT_DEFINITION,name:p(e),variableDefinitions:c(e),typeCondition:(Y(e,"on"),h(e)),directives:O(e,!1),selectionSet:s(e),loc:j(e,n)};return{kind:kinds.Kind.FRAGMENT_DEFINITION,name:p(e),typeCondition:(Y(e,"on"),h(e)),directives:O(e,!1),selectionSet:s(e),loc:j(e,n)}}(e)}else if(U(e,lexer.TokenKind.BRACE_L))return o(e);throw J(e)}function o(e){var n=e.token;if(U(e,lexer.TokenKind.BRACE_L))return{kind:kinds.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:s(e),loc:j(e,n)};var t=a(e),i=void 0;return U(e,lexer.TokenKind.NAME)&&(i=r(e)),{kind:kinds.Kind.OPERATION_DEFINITION,operation:t,name:i,variableDefinitions:c(e),directives:O(e,!1),selectionSet:s(e),loc:j(e,n)}}function a(e){var n=G(e,lexer.TokenKind.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw J(e,n)}function c(e){return U(e,lexer.TokenKind.PAREN_L)?Q(e,lexer.TokenKind.PAREN_L,u,lexer.TokenKind.PAREN_R):[]}function u(e){var n=e.token;return{kind:kinds.Kind.VARIABLE_DEFINITION,variable:l(e),type:(G(e,lexer.TokenKind.COLON),y(e)),defaultValue:V(e,lexer.TokenKind.EQUALS)?T(e,!0):void 0,loc:j(e,n)}}function l(e){var n=e.token;return G(e,lexer.TokenKind.DOLLAR),{kind:kinds.Kind.VARIABLE,name:r(e),loc:j(e,n)}}function s(e){var n=e.token;return{kind:kinds.Kind.SELECTION_SET,selections:Q(e,lexer.TokenKind.BRACE_L,d,lexer.TokenKind.BRACE_R),loc:j(e,n)}}function d(e){return U(e,lexer.TokenKind.SPREAD)?function(e){var n=e.token;if(G(e,lexer.TokenKind.SPREAD),U(e,lexer.TokenKind.NAME)&&"on"!==e.token.value)return{kind:kinds.Kind.FRAGMENT_SPREAD,name:p(e),directives:O(e,!1),loc:j(e,n)};var r=void 0;"on"===e.token.value&&(e.advance(),r=h(e));return{kind:kinds.Kind.INLINE_FRAGMENT,typeCondition:r,directives:O(e,!1),selectionSet:s(e),loc:j(e,n)}}(e):function(e){var n=e.token,t=r(e),i=void 0,o=void 0;V(e,lexer.TokenKind.COLON)?(i=t,o=r(e)):o=t;return{kind:kinds.Kind.FIELD,alias:i,name:o,arguments:f(e,!1),directives:O(e,!1),selectionSet:U(e,lexer.TokenKind.BRACE_L)?s(e):void 0,loc:j(e,n)}}(e)}function f(e,n){var r=n?E:v;return U(e,lexer.TokenKind.PAREN_L)?Q(e,lexer.TokenKind.PAREN_L,r,lexer.TokenKind.PAREN_R):[]}function v(e){var n=e.token;return{kind:kinds.Kind.ARGUMENT,name:r(e),value:(G(e,lexer.TokenKind.COLON),T(e,!1)),loc:j(e,n)}}function E(e){var n=e.token;return{kind:kinds.Kind.ARGUMENT,name:r(e),value:(G(e,lexer.TokenKind.COLON),N(e)),loc:j(e,n)}}function p(e){if("on"===e.token.value)throw J(e);return r(e)}function T(e,n){var r=e.token;switch(r.kind){case lexer.TokenKind.BRACKET_L:return function(e,n){var r=e.token,t=n?N:m;return{kind:kinds.Kind.LIST,values:function(e,n,r,t){G(e,n);var i=[];for(;!V(e,t);)i.push(r(e));return i}(e,lexer.TokenKind.BRACKET_L,t,lexer.TokenKind.BRACKET_R),loc:j(e,r)}}(e,n);case lexer.TokenKind.BRACE_L:return function(e,n){var r=e.token;G(e,lexer.TokenKind.BRACE_L);var t=[];for(;!V(e,lexer.TokenKind.BRACE_R);)t.push(I(e,n));return{kind:kinds.Kind.OBJECT,fields:t,loc:j(e,r)}}(e,n);case lexer.TokenKind.INT:return e.advance(),{kind:kinds.Kind.INT,value:r.value,loc:j(e,r)};case lexer.TokenKind.FLOAT:return e.advance(),{kind:kinds.Kind.FLOAT,value:r.value,loc:j(e,r)};case lexer.TokenKind.STRING:case lexer.TokenKind.BLOCK_STRING:return k(e);case lexer.TokenKind.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:kinds.Kind.BOOLEAN,value:"true"===r.value,loc:j(e,r)}):"null"===r.value?(e.advance(),{kind:kinds.Kind.NULL,loc:j(e,r)}):(e.advance(),{kind:kinds.Kind.ENUM,value:r.value,loc:j(e,r)});case lexer.TokenKind.DOLLAR:if(!n)return l(e)}throw J(e)}function k(e){var n=e.token;return e.advance(),{kind:kinds.Kind.STRING,value:n.value,block:n.kind===lexer.TokenKind.BLOCK_STRING,loc:j(e,n)}}function N(e){return T(e,!0)}function m(e){return T(e,!1)}function I(e,n){var t=e.token;return{kind:kinds.Kind.OBJECT_FIELD,name:r(e),value:(G(e,lexer.TokenKind.COLON),T(e,n)),loc:j(e,t)}}function O(e,n){for(var r=[];U(e,lexer.TokenKind.AT);)r.push(_(e,n));return r}function _(e,n){var t=e.token;return G(e,lexer.TokenKind.AT),{kind:kinds.Kind.DIRECTIVE,name:r(e),arguments:f(e,n),loc:j(e,t)}}function y(e){var n=e.token,r=void 0;return V(e,lexer.TokenKind.BRACKET_L)?(r=y(e),G(e,lexer.TokenKind.BRACKET_R),r={kind:kinds.Kind.LIST_TYPE,type:r,loc:j(e,n)}):r=h(e),V(e,lexer.TokenKind.BANG)?{kind:kinds.Kind.NON_NULL_TYPE,type:r,loc:j(e,n)}:r}function h(e){var n=e.token;return{kind:kinds.Kind.NAMED_TYPE,name:r(e),loc:j(e,n)}}function x(e){var n=A(e)?e.lookahead():e.token;if(n.kind===lexer.TokenKind.NAME)switch(n.value){case"schema":return function(e){var n=e.token;Y(e,"schema");var r=O(e,!0),t=Q(e,lexer.TokenKind.BRACE_L,L,lexer.TokenKind.BRACE_R);return{kind:kinds.Kind.SCHEMA_DEFINITION,directives:r,operationTypes:t,loc:j(e,n)}}(e);case"scalar":return function(e){var n=e.token,t=g(e);Y(e,"scalar");var i=r(e),o=O(e,!0);return{kind:kinds.Kind.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:o,loc:j(e,n)}}(e);case"type":return function(e){var n=e.token,t=g(e);Y(e,"type");var i=r(e),o=K(e),a=O(e,!0),c=b(e);return{kind:kinds.Kind.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:o,directives:a,fields:c,loc:j(e,n)}}(e);case"interface":return function(e){var n=e.token,t=g(e);Y(e,"interface");var i=r(e),o=O(e,!0),a=b(e);return{kind:kinds.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:i,directives:o,fields:a,loc:j(e,n)}}(e);case"union":return function(e){var n=e.token,t=g(e);Y(e,"union");var i=r(e),o=O(e,!0),a=C(e);return{kind:kinds.Kind.UNION_TYPE_DEFINITION,description:t,name:i,directives:o,types:a,loc:j(e,n)}}(e);case"enum":return function(e){var n=e.token,t=g(e);Y(e,"enum");var i=r(e),o=O(e,!0),a=P(e);return{kind:kinds.Kind.ENUM_TYPE_DEFINITION,description:t,name:i,directives:o,values:a,loc:j(e,n)}}(e);case"input":return function(e){var n=e.token,t=g(e);Y(e,"input");var i=r(e),o=O(e,!0),a=w(e);return{kind:kinds.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:o,fields:a,loc:j(e,n)}}(e);case"extend":return function(e){var n=e.lookahead();if(n.kind===lexer.TokenKind.NAME)switch(n.value){case"scalar":return function(e){var n=e.token;Y(e,"extend"),Y(e,"scalar");var t=r(e),i=O(e,!0);if(0===i.length)throw J(e);return{kind:kinds.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:i,loc:j(e,n)}}(e);case"type":return function(e){var n=e.token;Y(e,"extend"),Y(e,"type");var t=r(e),i=K(e),o=O(e,!0),a=b(e);if(0===i.length&&0===o.length&&0===a.length)throw J(e);return{kind:kinds.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:o,fields:a,loc:j(e,n)}}(e);case"interface":return function(e){var n=e.token;Y(e,"extend"),Y(e,"interface");var t=r(e),i=O(e,!0),o=b(e);if(0===i.length&&0===o.length)throw J(e);return{kind:kinds.Kind.INTERFACE_TYPE_EXTENSION,name:t,directives:i,fields:o,loc:j(e,n)}}(e);case"union":return function(e){var n=e.token;Y(e,"extend"),Y(e,"union");var t=r(e),i=O(e,!0),o=C(e);if(0===i.length&&0===o.length)throw J(e);return{kind:kinds.Kind.UNION_TYPE_EXTENSION,name:t,directives:i,types:o,loc:j(e,n)}}(e);case"enum":return function(e){var n=e.token;Y(e,"extend"),Y(e,"enum");var t=r(e),i=O(e,!0),o=P(e);if(0===i.length&&0===o.length)throw J(e);return{kind:kinds.Kind.ENUM_TYPE_EXTENSION,name:t,directives:i,values:o,loc:j(e,n)}}(e);case"input":return function(e){var n=e.token;Y(e,"extend"),Y(e,"input");var t=r(e),i=O(e,!0),o=w(e);if(0===i.length&&0===o.length)throw J(e);return{kind:kinds.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:o,loc:j(e,n)}}(e)}throw J(e,n)}(e);case"directive":return function(e){var n=e.token,t=g(e);Y(e,"directive"),G(e,lexer.TokenKind.AT);var i=r(e),o=S(e);Y(e,"on");var a=function(e){V(e,lexer.TokenKind.PIPE);var n=[];do{n.push(M(e))}while(V(e,lexer.TokenKind.PIPE));return n}(e);return{kind:kinds.Kind.DIRECTIVE_DEFINITION,description:t,name:i,arguments:o,locations:a,loc:j(e,n)}}(e)}throw J(e,n)}function A(e){return U(e,lexer.TokenKind.STRING)||U(e,lexer.TokenKind.BLOCK_STRING)}function g(e){if(A(e))return k(e)}function L(e){var n=e.token,r=a(e);G(e,lexer.TokenKind.COLON);var t=h(e);return{kind:kinds.Kind.OPERATION_TYPE_DEFINITION,operation:r,type:t,loc:j(e,n)}}function K(e){var n=[];if("implements"===e.token.value){e.advance(),V(e,lexer.TokenKind.AMP);do{n.push(h(e))}while(V(e,lexer.TokenKind.AMP)||e.options.allowLegacySDLImplementsInterfaces&&U(e,lexer.TokenKind.NAME))}return n}function b(e){return e.options.allowLegacySDLEmptyFields&&U(e,lexer.TokenKind.BRACE_L)&&e.lookahead().kind===lexer.TokenKind.BRACE_R?(e.advance(),e.advance(),[]):U(e,lexer.TokenKind.BRACE_L)?Q(e,lexer.TokenKind.BRACE_L,D,lexer.TokenKind.BRACE_R):[]}function D(e){var n=e.token,t=g(e),i=r(e),o=S(e);G(e,lexer.TokenKind.COLON);var a=y(e),c=O(e,!0);return{kind:kinds.Kind.FIELD_DEFINITION,description:t,name:i,arguments:o,type:a,directives:c,loc:j(e,n)}}function S(e){return U(e,lexer.TokenKind.PAREN_L)?Q(e,lexer.TokenKind.PAREN_L,R,lexer.TokenKind.PAREN_R):[]}function R(e){var n=e.token,t=g(e),i=r(e);G(e,lexer.TokenKind.COLON);var o=y(e),a=void 0;V(e,lexer.TokenKind.EQUALS)&&(a=N(e));var c=O(e,!0);return{kind:kinds.Kind.INPUT_VALUE_DEFINITION,description:t,name:i,type:o,defaultValue:a,directives:c,loc:j(e,n)}}function C(e){var n=[];if(V(e,lexer.TokenKind.EQUALS)){V(e,lexer.TokenKind.PIPE);do{n.push(h(e))}while(V(e,lexer.TokenKind.PIPE))}return n}function P(e){return U(e,lexer.TokenKind.BRACE_L)?Q(e,lexer.TokenKind.BRACE_L,F,lexer.TokenKind.BRACE_R):[]}function F(e){var n=e.token,t=g(e),i=r(e),o=O(e,!0);return{kind:kinds.Kind.ENUM_VALUE_DEFINITION,description:t,name:i,directives:o,loc:j(e,n)}}function w(e){return U(e,lexer.TokenKind.BRACE_L)?Q(e,lexer.TokenKind.BRACE_L,R,lexer.TokenKind.BRACE_R):[]}function M(e){var n=e.token,t=r(e);if(directiveLocation.DirectiveLocation.hasOwnProperty(t.value))return t;throw J(e,n)}function j(e,n){if(!e.options.noLocation)return new B(n,e.lastToken,e.source)}function B(e,n,r){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}function U(e,n){return e.token.kind===n}function V(e,n){var r=e.token.kind===n;return r&&e.advance(),r}function G(e,n){var r=e.token;if(r.kind===n)return e.advance(),r;throw(0,error.syntaxError)(e.source,r.start,"Expected "+n+", found "+(0,lexer.getTokenDesc)(r))}function Y(e,n){var r=e.token;if(r.kind===lexer.TokenKind.NAME&&r.value===n)return e.advance(),r;throw(0,error.syntaxError)(e.source,r.start,'Expected "'+n+'", found '+(0,lexer.getTokenDesc)(r))}function J(e,n){var r=n||e.token;return(0,error.syntaxError)(e.source,r.start,"Unexpected "+(0,lexer.getTokenDesc)(r))}function Q(e,n,r,t){G(e,n);for(var i=[r(e)];!V(e,t);)i.push(r(e));return i}Object.defineProperty(n,"__esModule",{value:!0}),n.parse=function(e,n){var r="string"==typeof e?new source.Source(e):e;if(!(r instanceof source.Source))throw new TypeError("Must provide Source. Received: "+String(r));return function(e){var n=e.token;G(e,lexer.TokenKind.SOF);var r=[];do{r.push(t(e))}while(!V(e,lexer.TokenKind.EOF));return{kind:kinds.Kind.DOCUMENT,definitions:r,loc:j(e,n)}}((0,lexer.createLexer)(r,n||{}))},n.parseValue=function(e,n){var r="string"==typeof e?new source.Source(e):e,t=(0,lexer.createLexer)(r,n||{});G(t,lexer.TokenKind.SOF);var i=T(t,!1);return G(t,lexer.TokenKind.EOF),i},n.parseType=function(e,n){var r="string"==typeof e?new source.Source(e):e,t=(0,lexer.createLexer)(r,n||{});G(t,lexer.TokenKind.SOF);var i=y(t);return G(t,lexer.TokenKind.EOF),i},n.parseConstValue=N,n.parseTypeReference=y,n.parseNamedType=h,B.prototype.toJSON=B.prototype.inspect=function(){return{start:this.start,end:this.end}}});unwrapExports(parser);var visitor=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.visit=function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,c=void 0,u=Array.isArray(e),l=[e],s=-1,d=[],f=void 0,v=void 0,E=void 0,p=[],T=[],k=e;do{var N=++s===l.length,m=N&&0!==d.length;if(N){if(v=0===T.length?void 0:p[p.length-1],f=E,E=T.pop(),m){if(u)f=f.slice();else{var I={};for(var O in f)f.hasOwnProperty(O)&&(I[O]=f[O]);f=I}for(var _=0,y=0;y<d.length;y++){var h=d[y][0],x=d[y][1];u&&(h-=_),u&&null===x?(f.splice(h,1),_++):f[h]=x}}s=c.index,l=c.keys,d=c.edits,u=c.inArray,c=c.prev}else{if(v=E?u?s:l[s]:void 0,null===(f=E?E[v]:k)||void 0===f)continue;E&&p.push(v)}var A=void 0;if(!Array.isArray(f)){if(!i(f))throw new Error("Invalid AST Node: "+JSON.stringify(f));var g=o(n,f.kind,N);if(g){if((A=g.call(n,f,v,E,p,T))===t)break;if(!1===A){if(!N){p.pop();continue}}else if(void 0!==A&&(d.push([v,A]),!N)){if(!i(A)){p.pop();continue}f=A}}}void 0===A&&m&&d.push([v,f]),N?p.pop():(c={inArray:u,index:s,keys:l,edits:d,prev:c},u=Array.isArray(f),l=u?f:a[f.kind]||[],s=-1,d=[],E&&T.push(E),E=f)}while(void 0!==c);0!==d.length&&(k=d[d.length-1][1]);return k},n.visitInParallel=function(e){var n=new Array(e.length);return{enter:function(r){for(var i=0;i<e.length;i++)if(!n[i]){var a=o(e[i],r.kind,!1);if(a){var c=a.apply(e[i],arguments);if(!1===c)n[i]=r;else if(c===t)n[i]=t;else if(void 0!==c)return c}}},leave:function(r){for(var i=0;i<e.length;i++)if(n[i])n[i]===r&&(n[i]=null);else{var a=o(e[i],r.kind,!0);if(a){var c=a.apply(e[i],arguments);if(c===t)n[i]=t;else if(void 0!==c&&!1!==c)return c}}}}},n.visitWithTypeInfo=function(e,n){return{enter:function(r){e.enter(r);var t=o(n,r.kind,!1);if(t){var a=t.apply(n,arguments);return void 0!==a&&(e.leave(r),i(a)&&e.enter(a)),a}},leave:function(r){var t=o(n,r.kind,!0),i=void 0;return t&&(i=t.apply(n,arguments)),e.leave(r),i}}},n.getVisitFn=o;var r=n.QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue"],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:["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","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"]},t=n.BREAK={};function i(e){return Boolean(e&&"string"==typeof e.kind)}function o(e,n,r){var t=e[n];if(t){if(!r&&"function"==typeof t)return t;var i=r?t.leave:t.enter;if("function"==typeof i)return i}else{var o=r?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[n];if("function"==typeof a)return a}}}});unwrapExports(visitor);var printer=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.print=function(e){return(0,visitor.visit)(e,{leave:r})};var r={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return i(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var n=e.operation,r=e.name,t=a("(",i(e.variableDefinitions,", "),")"),o=i(e.directives," "),c=e.selectionSet;return r||o||t||"query"!==n?i([n,i([r,t]),o,c]," "):c},VariableDefinition:function(e){return e.variable+": "+e.type+a(" = ",e.defaultValue)},SelectionSet:function(e){return o(e.selections)},Field:function(e){var n=e.alias,r=e.name,t=e.arguments,o=e.directives,c=e.selectionSet;return i([a("",n,": ")+r+a("(",i(t,", "),")"),i(o," "),c]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+a(" ",i(e.directives," "))},InlineFragment:function(e){var n=e.typeCondition,r=e.directives,t=e.selectionSet;return i(["...",a("on ",n),i(r," "),t]," ")},FragmentDefinition:function(e){var n=e.name,r=e.typeCondition,t=e.variableDefinitions,o=e.directives,c=e.selectionSet;return"fragment "+n+a("(",i(t,", "),")")+" on "+r+" "+a("",i(o," ")," ")+c},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,n){var r=e.value;return e.block?function(e,n){var r=e.replace(/"""/g,'\\"""');return" "!==e[0]&&"\t"!==e[0]||-1!==e.indexOf("\n")?'"""\n'+(n?r:c(r))+'\n"""':'"""'+r.replace(/"$/,'"\n')+'"""'}(r,"description"===n):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+i(e.values,", ")+"]"},ObjectValue:function(e){return"{"+i(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+a("(",i(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var n=e.directives,r=e.operationTypes;return i(["schema",i(n," "),o(r)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:t(function(e){return i(["scalar",e.name,i(e.directives," ")]," ")}),ObjectTypeDefinition:t(function(e){var n=e.name,r=e.interfaces,t=e.directives,c=e.fields;return i(["type",n,a("implements ",i(r," & ")),i(t," "),o(c)]," ")}),FieldDefinition:t(function(e){var n=e.name,r=e.arguments,t=e.type,o=e.directives;return n+a("(",i(r,", "),")")+": "+t+a(" ",i(o," "))}),InputValueDefinition:t(function(e){var n=e.name,r=e.type,t=e.defaultValue,o=e.directives;return i([n+": "+r,a("= ",t),i(o," ")]," ")}),InterfaceTypeDefinition:t(function(e){var n=e.name,r=e.directives,t=e.fields;return i(["interface",n,i(r," "),o(t)]," ")}),UnionTypeDefinition:t(function(e){var n=e.name,r=e.directives,t=e.types;return i(["union",n,i(r," "),t&&0!==t.length?"= "+i(t," | "):""]," ")}),EnumTypeDefinition:t(function(e){var n=e.name,r=e.directives,t=e.values;return i(["enum",n,i(r," "),o(t)]," ")}),EnumValueDefinition:t(function(e){return i([e.name,i(e.directives," ")]," ")}),InputObjectTypeDefinition:t(function(e){var n=e.name,r=e.directives,t=e.fields;return i(["input",n,i(r," "),o(t)]," ")}),ScalarTypeExtension:function(e){return i(["extend scalar",e.name,i(e.directives," ")]," ")},ObjectTypeExtension:function(e){var n=e.name,r=e.interfaces,t=e.directives,c=e.fields;return i(["extend type",n,a("implements ",i(r," & ")),i(t," "),o(c)]," ")},InterfaceTypeExtension:function(e){var n=e.name,r=e.directives,t=e.fields;return i(["extend interface",n,i(r," "),o(t)]," ")},UnionTypeExtension:function(e){var n=e.name,r=e.directives,t=e.types;return i(["extend union",n,i(r," "),t&&0!==t.length?"= "+i(t," | "):""]," ")},EnumTypeExtension:function(e){var n=e.name,r=e.directives,t=e.values;return i(["extend enum",n,i(r," "),o(t)]," ")},InputObjectTypeExtension:function(e){var n=e.name,r=e.directives,t=e.fields;return i(["extend input",n,i(r," "),o(t)]," ")},DirectiveDefinition:t(function(e){var n=e.name,r=e.arguments,t=e.locations;return"directive @"+n+a("(",i(r,", "),")")+" on "+i(t," | ")})};function t(e){return function(n){return i([n.description,e(n)],"\n")}}function i(e,n){return e?e.filter(function(e){return e}).join(n||""):""}function o(e){return e&&0!==e.length?"{\n"+c(i(e,"\n"))+"\n}":""}function a(e,n,r){return n?e+n+(r||""):""}function c(e){return e&&" "+e.replace(/\n/g,"\n ")}});unwrapExports(printer);var language=createCommonjsModule(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getLocation",{enumerable:!0,get:function(){return location.getLocation}}),Object.defineProperty(n,"Kind",{enumerable:!0,get:function(){return kinds.Kind}}),Object.defineProperty(n,"createLexer",{enumerable:!0,get:function(){return lexer.createLexer}}),Object.defineProperty(n,"TokenKind",{enumerable:!0,get:function(){return lexer.TokenKind}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return parser.parse}}),Object.defineProperty(n,"parseValue",{enumerable:!0,get:function(){return parser.parseValue}}),Object.defineProperty(n,"parseType",{enumerable:!0,get:function(){return parser.parseType}}),Object.defineProperty(n,"print",{enumerable:!0,get:function(){return printer.print}}),Object.defineProperty(n,"Source",{enumerable:!0,get:function(){return source.Source}}),Object.defineProperty(n,"visit",{enumerable:!0,get:function(){return visitor.visit}}),Object.defineProperty(n,"visitInParallel",{enumerable:!0,get:function(){return visitor.visitInParallel}}),Object.defineProperty(n,"visitWithTypeInfo",{enumerable:!0,get:function(){return visitor.visitWithTypeInfo}}),Object.defineProperty(n,"getVisitFn",{enumerable:!0,get:function(){return visitor.getVisitFn}}),Object.defineProperty(n,"BREAK",{enumerable:!0,get:function(){return visitor.BREAK}}),Object.defineProperty(n,"DirectiveLocation",{enumerable:!0,get:function(){return directiveLocation.DirectiveLocation}})});function parseComments(e){const n=[];let r=e.loc.startToken.next;for(;"<EOF>"!==r.kind;)"Comment"===r.kind&&(Object.assign(r,{column:r.column-1}),n.push(r)),r=r.next;return n}function removeTokens(e){if(e&&"object"==typeof e){delete e.startToken,delete e.endToken,delete e.prev,delete e.next;for(const n in e)removeTokens(e[n])}return e}function fallbackParser(e,n){try{return e(n,{allowLegacySDLImplementsInterfaces:!1})}catch(r){return e(n,{allowLegacySDLImplementsInterfaces:!0})}}function parse(e){const n=language;try{const r=fallbackParser(n.parse,e);return r.comments=parseComments(r),removeTokens(r),r}catch(e){throw e instanceof error.GraphQLError?parserCreateError(e.message,{start:{line:e.locations[0].line,column:e.locations[0].column}}):e}}unwrapExports(language);var parserGraphql=parse;module.exports=parserGraphql;