altair-static 4.0.9 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/108.js +1 -0
- package/build/dist/283.js +1 -0
- package/build/dist/379.js +1 -0
- package/build/dist/3rdpartylicenses.txt +52 -156
- package/build/dist/471.js +1 -0
- package/build/dist/527.js +1 -0
- package/build/dist/604.js +1 -0
- package/build/dist/672.js +1 -0
- package/build/dist/709.js +1 -0
- package/build/dist/729.js +1 -0
- package/build/dist/747.js +1 -0
- package/build/dist/790.js +1 -0
- package/build/dist/794.js +1 -0
- package/build/dist/866.js +1 -0
- package/build/dist/873.js +1 -0
- package/build/dist/934.js +1 -0
- package/build/dist/assets/i18n/ach-UG.json +157 -153
- package/build/dist/assets/i18n/cs-CZ.json +4 -0
- package/build/dist/assets/i18n/da-DK.json +4 -0
- package/build/dist/assets/i18n/de-DE.json +4 -0
- package/build/dist/assets/i18n/default.json +4 -0
- package/build/dist/assets/i18n/en-US.json +4 -0
- package/build/dist/assets/i18n/es-ES.json +4 -0
- package/build/dist/assets/i18n/fi-FI.json +4 -0
- package/build/dist/assets/i18n/fr-FR.json +4 -0
- package/build/dist/assets/i18n/hu-HU.json +4 -0
- package/build/dist/assets/i18n/it-IT.json +4 -0
- package/build/dist/assets/i18n/ja-JP.json +4 -0
- package/build/dist/assets/i18n/ko-KR.json +4 -0
- package/build/dist/assets/i18n/nl-NL.json +4 -0
- package/build/dist/assets/i18n/no-NO.json +4 -0
- package/build/dist/assets/i18n/pl-PL.json +4 -0
- package/build/dist/assets/i18n/pt-BR.json +4 -0
- package/build/dist/assets/i18n/pt-PT.json +4 -0
- package/build/dist/assets/i18n/ro-RO.json +4 -0
- package/build/dist/assets/i18n/ru-RU.json +30 -26
- package/build/dist/assets/i18n/sr-SP.json +4 -0
- package/build/dist/assets/i18n/sv-SE.json +4 -0
- package/build/dist/assets/i18n/tr-TR.json +4 -0
- package/build/dist/assets/i18n/uk-UA.json +4 -0
- package/build/dist/assets/i18n/vi-VN.json +4 -0
- package/build/dist/assets/i18n/zh-CN.json +12 -8
- package/build/dist/assets/i18n/zh-TW.json +4 -0
- package/build/dist/index.html +3 -3
- package/build/dist/main.js +1 -0
- package/build/dist/polyfills.js +1 -0
- package/build/dist/runtime.js +1 -0
- package/build/dist/styles.css +2 -2
- package/build/index.js +21 -28
- package/build/index.js.map +1 -1
- package/build/index.test.js +23 -13
- package/build/index.test.js.map +1 -1
- package/build/utils/get-altair-html.js +3 -3
- package/build/utils/get-altair-html.js.map +1 -1
- package/build/utils/get-dist.js +2 -2
- package/build/utils/get-dist.js.map +1 -1
- package/package.json +4 -4
- package/tsconfig.json +1 -1
- package/build/dist/0-es2018.worker.js +0 -1
- package/build/dist/0-es5.worker.js +0 -1
- package/build/dist/1-es2018.js +0 -1
- package/build/dist/1-es5.js +0 -1
- package/build/dist/10-es2018.js +0 -1
- package/build/dist/10-es5.js +0 -1
- package/build/dist/11-es2018.js +0 -1
- package/build/dist/11-es5.js +0 -1
- package/build/dist/12-es2018.js +0 -1
- package/build/dist/12-es5.js +0 -1
- package/build/dist/13-es2018.js +0 -1
- package/build/dist/13-es5.js +0 -1
- package/build/dist/14-es2018.js +0 -1
- package/build/dist/14-es5.js +0 -1
- package/build/dist/15-es2018.js +0 -1
- package/build/dist/15-es5.js +0 -1
- package/build/dist/2-es2018.js +0 -1
- package/build/dist/2-es5.js +0 -1
- package/build/dist/7-es2018.js +0 -1
- package/build/dist/7-es5.js +0 -1
- package/build/dist/8-es2018.js +0 -1
- package/build/dist/8-es5.js +0 -1
- package/build/dist/9-es2018.js +0 -1
- package/build/dist/9-es5.js +0 -1
- package/build/dist/main-es2018.js +0 -1
- package/build/dist/main-es5.js +0 -1
- package/build/dist/polyfills-es2018.js +0 -1
- package/build/dist/polyfills-es5.js +0 -1
- package/build/dist/runtime-es2018.js +0 -1
- package/build/dist/runtime-es5.js +0 -1
package/build/dist/14-es2018.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{azY9:function(e,n,t){!function(e){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,n){return e(n={exports:{}},n.exports),n.exports}var r=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){if(!Boolean(e))throw new Error(n)}});t(r);var o=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}});t(o);var a=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Source=void 0;var t=a(r),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e,n,i){this.body=e,this.name=n||"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")};n.Source=s,(0,i.default)(s)});t(a);var s=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getLocation=function(e,n){for(var t,i=/\r\n|[\n\r]/g,r=1,o=n+1;(t=i.exec(e.body))&&t.index<n;)r+=1,o=n+1-(t.index+t[0].length);return{line:r,column:o}}});t(s);var c=i(function(e,n){function t(e,n){var t=e.locationOffset.column-1,o=r(t)+e.body,a=n.line-1,s=n.line+(e.locationOffset.line-1),c=n.column+(1===n.line?t:0),u="".concat(e.name,":").concat(s,":").concat(c,"\n"),l=o.split(/\r\n|[\n\r]/g),d=l[a];if(d.length>120){for(var p=Math.floor(c/80),f=c%80,h=[],T=0;T<d.length;T+=80)h.push(d.slice(T,T+80));return u+i([["".concat(s),h[0]]].concat(h.slice(1,p+1).map(function(e){return["",e]}),[[" ",r(f-1)+"^"],["",h[p+1]]]))}return u+i([["".concat(s-1),l[a-1]],["".concat(s),d],["",r(c-1)+"^"],["".concat(s+1),l[a+1]]])}function i(e){var n=e.filter(function(e){return void 0!==e[1]}),t=Math.max.apply(Math,n.map(function(e){return e[0].length}));return n.map(function(e){var n,i=e[1];return r(t-(n=e[0]).length)+n+(i?" | "+i:" |")}).join("\n")}function r(e){return Array(e+1).join(" ")}Object.defineProperty(n,"__esModule",{value:!0}),n.printLocation=function(e){return t(e.source,(0,s.getLocation)(e.source,e.start))},n.printSourceLocation=t});t(c);var u=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Kind=void 0;var t=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",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",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",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"});n.Kind=t});t(u);var l=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0;var t=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"});n.TokenKind=t});t(l);var d=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;n.default=t});t(d);var p=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=n,e.prototype.inspect=n,i.default&&(e.prototype[i.default]=n)};var t,i=(t=d)&&t.__esModule?t:{default:t}});t(p);var f=i(function(e,t){function i(e){return(i="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"==i(e)&&null!==e}});t(f);var h=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=r,n.printError=o;var t,i=(t=f)&&t.__esModule?t:{default:t};function r(e,n,t,o,a,c,u){var l=Array.isArray(n)?0!==n.length?n:void 0:n?[n]:void 0,d=t;if(!d&&l){var p=l[0];d=p&&p.loc&&p.loc.source}var f,h=o;!h&&l&&(h=l.reduce(function(e,n){return n.loc&&e.push(n.loc.start),e},[])),h&&0===h.length&&(h=void 0),o&&t?f=o.map(function(e){return(0,s.getLocation)(t,e)}):l&&(f=l.reduce(function(e,n){return n.loc&&e.push((0,s.getLocation)(n.loc.source,n.loc.start)),e},[]));var T=u;if(null==T&&null!=c){var v=c.extensions;(0,i.default)(v)&&(T=v)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:f||void 0,enumerable:Boolean(f)},path:{value:a||void 0,enumerable:Boolean(a)},nodes:{value:l||void 0},source:{value:d||void 0},positions:{value:h||void 0},originalError:{value:c},extensions:{value:T||void 0,enumerable:Boolean(T)}}),c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function o(e){var n=e.message;if(e.nodes)for(var t=0,i=e.nodes;t<i.length;t++){var r=i[t];r.loc&&(n+="\n\n"+(0,c.printLocation)(r.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++)n+="\n\n"+(0,c.printSourceLocation)(e.source,a[o]);return n}r.prototype=Object.create(Error.prototype,{constructor:{value:r},name:{value:"GraphQLError"},toString:{value:function(){return o(this)}}})});t(h);var T=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.syntaxError=function(e,n,t){return new h.GraphQLError("Syntax Error: ".concat(t),void 0,e,[n])}});t(T);var v=i(function(e,n){function t(e){for(var n=null,t=1;t<e.length;t++){var r=e[t],o=i(r);if(o!==r.length&&(null===n||o<n)&&0===(n=o))break}return null===n?0:n}function i(e){for(var n=0;n<e.length&&(" "===e[n]||"\t"===e[n]);)n++;return n}function r(e){return i(e)===e.length}Object.defineProperty(n,"__esModule",{value:!0}),n.dedentBlockStringValue=function(e){var n=e.split(/\r\n|[\n\r]/g),i=t(n);if(0!==i)for(var o=1;o<n.length;o++)n[o]=n[o].slice(i);for(;n.length>0&&r(n[0]);)n.shift();for(;n.length>0&&r(n[n.length-1]);)n.pop();return n.join("\n")},n.getBlockStringIndentation=t,n.printBlockString=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),r=!i||'"'===e[e.length-1]||t,o="";return!r||i&&(" "===e[0]||"\t"===e[0])||(o+="\n"+n),o+=n?e.replace(/\n/g,"\n"+n):e,r&&(o+="\n"),'"""'+o.replace(/"""/g,'\\"""')+'"""'}});t(v);var E=i(function(e,n){var t;function i(){return this.lastToken=this.token,this.token=this.lookahead()}function r(){var e=this.token;if(e.kind!==l.TokenKind.EOF)do{e=e.next||(e.next=s(this,e))}while(e.kind===l.TokenKind.COMMENT);return e}function o(e,n,t,i,r,o,a){this.kind=e,this.start=n,this.end=t,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}function a(e){return isNaN(e)?l.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function s(e,n){var t=e.source,i=t.body,r=i.length,s=function(e,n,t){for(var i=e.length,r=n;r<i;){var o=e.charCodeAt(r);if(9===o||32===o||44===o||65279===o)++r;else if(10===o)++r,++t.line,t.lineStart=r;else{if(13!==o)break;10===e.charCodeAt(r+1)?r+=2:++r,++t.line,t.lineStart=r}}return r}(i,n.end,e),d=e.line,p=1+s-e.lineStart;if(s>=r)return new o(l.TokenKind.EOF,r,r,d,p,n);var f=i.charCodeAt(s);switch(f){case 33:return new o(l.TokenKind.BANG,s,s+1,d,p,n);case 35:return function(e,n,t,i,r){var a,s=e.body,c=n;do{a=s.charCodeAt(++c)}while(!isNaN(a)&&(a>31||9===a));return new o(l.TokenKind.COMMENT,n,c,t,i,r,s.slice(n+1,c))}(t,s,d,p,n);case 36:return new o(l.TokenKind.DOLLAR,s,s+1,d,p,n);case 38:return new o(l.TokenKind.AMP,s,s+1,d,p,n);case 40:return new o(l.TokenKind.PAREN_L,s,s+1,d,p,n);case 41:return new o(l.TokenKind.PAREN_R,s,s+1,d,p,n);case 46:if(46===i.charCodeAt(s+1)&&46===i.charCodeAt(s+2))return new o(l.TokenKind.SPREAD,s,s+3,d,p,n);break;case 58:return new o(l.TokenKind.COLON,s,s+1,d,p,n);case 61:return new o(l.TokenKind.EQUALS,s,s+1,d,p,n);case 64:return new o(l.TokenKind.AT,s,s+1,d,p,n);case 91:return new o(l.TokenKind.BRACKET_L,s,s+1,d,p,n);case 93:return new o(l.TokenKind.BRACKET_R,s,s+1,d,p,n);case 123:return new o(l.TokenKind.BRACE_L,s,s+1,d,p,n);case 124:return new o(l.TokenKind.PIPE,s,s+1,d,p,n);case 125:return new o(l.TokenKind.BRACE_R,s,s+1,d,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,t,i,r){for(var a=e.body,s=a.length,c=n+1,u=0;c!==s&&!isNaN(u=a.charCodeAt(c))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++c;return new o(l.TokenKind.NAME,n,c,t,i,r,a.slice(n,c))}(t,s,d,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,t,i,r,s){var u=e.body,d=t,p=n,f=!1;if(45===d&&(d=u.charCodeAt(++p)),48===d){if((d=u.charCodeAt(++p))>=48&&d<=57)throw(0,T.syntaxError)(e,p,"Invalid number, unexpected digit after 0: ".concat(a(d),"."))}else p=c(e,p,d),d=u.charCodeAt(p);if(46===d&&(f=!0,d=u.charCodeAt(++p),p=c(e,p,d),d=u.charCodeAt(p)),69!==d&&101!==d||(f=!0,43!==(d=u.charCodeAt(++p))&&45!==d||(d=u.charCodeAt(++p)),p=c(e,p,d),d=u.charCodeAt(p)),46===d||69===d||101===d)throw(0,T.syntaxError)(e,p,"Invalid number, expected digit but got: ".concat(a(d),"."));return new o(f?l.TokenKind.FLOAT:l.TokenKind.INT,n,p,i,r,s,u.slice(n,p))}(t,s,f,d,p,n);case 34:return 34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)?function(e,n,t,i,r,s){for(var c=e.body,u=n+3,d=u,p=0,f="";u<c.length&&!isNaN(p=c.charCodeAt(u));){if(34===p&&34===c.charCodeAt(u+1)&&34===c.charCodeAt(u+2))return f+=c.slice(d,u),new o(l.TokenKind.BLOCK_STRING,n,u+3,t,i,r,(0,v.dedentBlockStringValue)(f));if(p<32&&9!==p&&10!==p&&13!==p)throw(0,T.syntaxError)(e,u,"Invalid character within String: ".concat(a(p),"."));10===p?(++u,++s.line,s.lineStart=u):13===p?(10===c.charCodeAt(u+1)?u+=2:++u,++s.line,s.lineStart=u):92===p&&34===c.charCodeAt(u+1)&&34===c.charCodeAt(u+2)&&34===c.charCodeAt(u+3)?(f+=c.slice(d,u)+'"""',d=u+=4):++u}throw(0,T.syntaxError)(e,u,"Unterminated string.")}(t,s,d,p,n,e):function(e,n,t,i,r){for(var s,c,d,p,f=e.body,h=n+1,v=h,E=0,y="";h<f.length&&!isNaN(E=f.charCodeAt(h))&&10!==E&&13!==E;){if(34===E)return y+=f.slice(v,h),new o(l.TokenKind.STRING,n,h+1,t,i,r,y);if(E<32&&9!==E)throw(0,T.syntaxError)(e,h,"Invalid character within String: ".concat(a(E),"."));if(++h,92===E){switch(y+=f.slice(v,h-1),E=f.charCodeAt(h)){case 34:y+='"';break;case 47:y+="/";break;case 92:y+="\\";break;case 98:y+="\b";break;case 102:y+="\f";break;case 110:y+="\n";break;case 114:y+="\r";break;case 116:y+="\t";break;case 117:var N=(s=f.charCodeAt(h+1),c=f.charCodeAt(h+2),d=f.charCodeAt(h+3),p=f.charCodeAt(h+4),u(s)<<12|u(c)<<8|u(d)<<4|u(p));if(N<0){var m=f.slice(h+1,h+5);throw(0,T.syntaxError)(e,h,"Invalid character escape sequence: \\u".concat(m,"."))}y+=String.fromCharCode(N),h+=4;break;default:throw(0,T.syntaxError)(e,h,"Invalid character escape sequence: \\".concat(String.fromCharCode(E),"."))}v=++h}}throw(0,T.syntaxError)(e,h,"Unterminated string.")}(t,s,d,p,n)}throw(0,T.syntaxError)(t,s,function(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(a(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(a(e),".")}(f))}function c(e,n,t){var i=e.body,r=n,o=t;if(o>=48&&o<=57){do{o=i.charCodeAt(++r)}while(o>=48&&o<=57);return r}throw(0,T.syntaxError)(e,r,"Invalid number, expected digit but got: ".concat(a(o),"."))}function u(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Object.defineProperty(n,"__esModule",{value:!0}),n.createLexer=function(e,n){var t=new o(l.TokenKind.SOF,0,0,0,0,null);return{source:e,options:n,lastToken:t,token:t,line:1,lineStart:0,advance:i,lookahead:r}},n.isPunctuatorToken=function(e){var n=e.kind;return n===l.TokenKind.BANG||n===l.TokenKind.DOLLAR||n===l.TokenKind.AMP||n===l.TokenKind.PAREN_L||n===l.TokenKind.PAREN_R||n===l.TokenKind.SPREAD||n===l.TokenKind.COLON||n===l.TokenKind.EQUALS||n===l.TokenKind.AT||n===l.TokenKind.BRACKET_L||n===l.TokenKind.BRACKET_R||n===l.TokenKind.BRACE_L||n===l.TokenKind.PIPE||n===l.TokenKind.BRACE_R},(0,((t=p)&&t.__esModule?t:{default:t}).default)(o,function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}})});t(E);var y=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a(e,[])};var i,r=(i=d)&&i.__esModule?i:{default:i};function o(e){return(o="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function a(e,n){switch(o(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,n){if(-1!==n.indexOf(e))return"[Circular]";var t=[].concat(n,[e]),i=function(e){var n=e[String(r.default)];return"function"==typeof n?n:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,t)}else if(Array.isArray(e))return function(e,n){if(0===e.length)return"[]";if(n.length>2)return"[Array]";for(var t=Math.min(10,e.length),i=e.length-t,r=[],o=0;o<t;++o)r.push(a(e[o],n));return 1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items")),"["+r.join(", ")+"]"}(e,t);return function(e,n){var t=Object.keys(e);return 0===t.length?"{}":n.length>2?"["+function(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){var t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return n}(e)+"]":"{ "+t.map(function(t){return t+": "+a(e[t],n)}).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}});t(y);var N=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectiveLocation=void 0;var t=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",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"});n.DirectiveLocation=t});t(N);var m=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parse=function(e,n){return new c(e,n).parseDocument()},n.parseValue=function(e,n){var t=new c(e,n);t.expectToken(l.TokenKind.SOF);var i=t.parseValueLiteral(!1);return t.expectToken(l.TokenKind.EOF),i},n.parseType=function(e,n){var t=new c(e,n);t.expectToken(l.TokenKind.SOF);var i=t.parseTypeReference();return t.expectToken(l.TokenKind.EOF),i};var t=s(y),i=s(r),o=s(p);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,n){var r="string"==typeof e?new a.Source(e):e;r instanceof a.Source||(0,i.default)(0,"Must provide Source. Received: ".concat((0,t.default)(r))),this._lexer=(0,E.createLexer)(r),this._options=n||{}}var n=e.prototype;return n.parseName=function(){var e=this.expectToken(l.TokenKind.NAME);return{kind:u.Kind.NAME,value:e.value,loc:this.loc(e)}},n.parseDocument=function(){var e=this._lexer.token;return{kind:u.Kind.DOCUMENT,definitions:this.many(l.TokenKind.SOF,this.parseDefinition,l.TokenKind.EOF),loc:this.loc(e)}},n.parseDefinition=function(){if(this.peek(l.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(l.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},n.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(l.TokenKind.BRACE_L))return{kind:u.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var n,t=this.parseOperationType();return this.peek(l.TokenKind.NAME)&&(n=this.parseName()),{kind:u.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseOperationType=function(){var e=this.expectToken(l.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},n.parseVariableDefinitions=function(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseVariableDefinition,l.TokenKind.PAREN_R)},n.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:u.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(l.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},n.parseVariable=function(){var e=this._lexer.token;return this.expectToken(l.TokenKind.DOLLAR),{kind:u.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},n.parseSelectionSet=function(){var e=this._lexer.token;return{kind:u.Kind.SELECTION_SET,selections:this.many(l.TokenKind.BRACE_L,this.parseSelection,l.TokenKind.BRACE_R),loc:this.loc(e)}},n.parseSelection=function(){return this.peek(l.TokenKind.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var e,n,t=this._lexer.token,i=this.parseName();return this.expectOptionalToken(l.TokenKind.COLON)?(e=i,n=this.parseName()):n=i,{kind:u.Kind.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(l.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},n.parseArguments=function(e){return this.optionalMany(l.TokenKind.PAREN_L,e?this.parseConstArgument:this.parseArgument,l.TokenKind.PAREN_R)},n.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(l.TokenKind.COLON),{kind:u.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(e)}},n.parseConstArgument=function(){var e=this._lexer.token;return{kind:u.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(l.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},n.parseFragment=function(){var e=this._lexer.token;this.expectToken(l.TokenKind.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(l.TokenKind.NAME)?{kind:u.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:u.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:u.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:u.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},n.parseValueLiteral=function(e){var n=this._lexer.token;switch(n.kind){case l.TokenKind.BRACKET_L:return this.parseList(e);case l.TokenKind.BRACE_L:return this.parseObject(e);case l.TokenKind.INT:return this._lexer.advance(),{kind:u.Kind.INT,value:n.value,loc:this.loc(n)};case l.TokenKind.FLOAT:return this._lexer.advance(),{kind:u.Kind.FLOAT,value:n.value,loc:this.loc(n)};case l.TokenKind.STRING:case l.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case l.TokenKind.NAME:return"true"===n.value||"false"===n.value?(this._lexer.advance(),{kind:u.Kind.BOOLEAN,value:"true"===n.value,loc:this.loc(n)}):"null"===n.value?(this._lexer.advance(),{kind:u.Kind.NULL,loc:this.loc(n)}):(this._lexer.advance(),{kind:u.Kind.ENUM,value:n.value,loc:this.loc(n)});case l.TokenKind.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:u.Kind.STRING,value:e.value,block:e.kind===l.TokenKind.BLOCK_STRING,loc:this.loc(e)}},n.parseList=function(e){var n=this,t=this._lexer.token;return{kind:u.Kind.LIST,values:this.any(l.TokenKind.BRACKET_L,function(){return n.parseValueLiteral(e)},l.TokenKind.BRACKET_R),loc:this.loc(t)}},n.parseObject=function(e){var n=this,t=this._lexer.token;return{kind:u.Kind.OBJECT,fields:this.any(l.TokenKind.BRACE_L,function(){return n.parseObjectField(e)},l.TokenKind.BRACE_R),loc:this.loc(t)}},n.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(l.TokenKind.COLON),{kind:u.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e),loc:this.loc(n)}},n.parseDirectives=function(e){for(var n=[];this.peek(l.TokenKind.AT);)n.push(this.parseDirective(e));return n},n.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(l.TokenKind.AT),{kind:u.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(n)}},n.parseTypeReference=function(){var e,n=this._lexer.token;return this.expectOptionalToken(l.TokenKind.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(l.TokenKind.BRACKET_R),e={kind:u.Kind.LIST_TYPE,type:e,loc:this.loc(n)}):e=this.parseNamedType(),this.expectOptionalToken(l.TokenKind.BANG)?{kind:u.Kind.NON_NULL_TYPE,type:e,loc:this.loc(n)}:e},n.parseNamedType=function(){var e=this._lexer.token;return{kind:u.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},n.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===l.TokenKind.NAME)switch(e.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()}throw this.unexpected(e)},n.peekDescription=function(){return this.peek(l.TokenKind.STRING)||this.peek(l.TokenKind.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.many(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);return{kind:u.Kind.SCHEMA_DEFINITION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseOperationTypeDefinition=function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(l.TokenKind.COLON);var t=this.parseNamedType();return{kind:u.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t,loc:this.loc(e)}},n.parseScalarTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var t=this.parseName(),i=this.parseDirectives(!0);return{kind:u.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:i,loc:this.loc(e)}},n.parseObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:u.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},n.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(l.TokenKind.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(l.TokenKind.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(l.TokenKind.NAME))}return e},n.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(l.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===l.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(l.TokenKind.BRACE_L,this.parseFieldDefinition,l.TokenKind.BRACE_R)},n.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseArgumentDefs();this.expectToken(l.TokenKind.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:u.Kind.FIELD_DEFINITION,description:n,name:t,arguments:i,type:r,directives:o,loc:this.loc(e)}},n.parseArgumentDefs=function(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseInputValueDef,l.TokenKind.PAREN_R)},n.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(l.TokenKind.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(l.TokenKind.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:u.Kind.INPUT_VALUE_DEFINITION,description:n,name:t,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},n.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();return{kind:u.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,directives:i,fields:r,loc:this.loc(e)}},n.parseUnionTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:u.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:i,types:r,loc:this.loc(e)}},n.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(l.TokenKind.EQUALS)){this.expectOptionalToken(l.TokenKind.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(l.TokenKind.PIPE))}return e},n.parseEnumTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:u.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:i,values:r,loc:this.loc(e)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseEnumValueDefinition,l.TokenKind.BRACE_R)},n.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseDirectives(!0);return{kind:u.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:i,loc:this.loc(e)}},n.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:u.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:i,fields:r,loc:this.loc(e)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseInputValueDef,l.TokenKind.BRACE_R)},n.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===l.TokenKind.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)},n.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.optionalMany(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return{kind:u.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),t=this.parseDirectives(!0);if(0===t.length)throw this.unexpected();return{kind:u.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t,loc:this.loc(e)}},n.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===t.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:r,loc:this.loc(e)}},n.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.INTERFACE_TYPE_EXTENSION,name:n,directives:t,fields:i,loc:this.loc(e)}},n.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:i,loc:this.loc(e)}},n.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:i,loc:this.loc(e)}},n.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:i,loc:this.loc(e)}},n.parseDirectiveDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(l.TokenKind.AT);var t=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:u.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},n.parseDirectiveLocations=function(){this.expectOptionalToken(l.TokenKind.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(l.TokenKind.PIPE));return e},n.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(void 0!==N.DirectiveLocation[n.value])return n;throw this.unexpected(e)},n.loc=function(e){if(!this._options.noLocation)return new d(e,this._lexer.lastToken,this._lexer.source)},n.peek=function(e){return this._lexer.token.kind===e},n.expectToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n;throw(0,T.syntaxError)(this._lexer.source,n.start,"Expected ".concat(e,", found ").concat(f(n)))},n.expectOptionalToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n},n.expectKeyword=function(e){var n=this._lexer.token;if(n.kind!==l.TokenKind.NAME||n.value!==e)throw(0,T.syntaxError)(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(f(n)));this._lexer.advance()},n.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===l.TokenKind.NAME&&n.value===e&&(this._lexer.advance(),!0)},n.unexpected=function(e){var n=e||this._lexer.token;return(0,T.syntaxError)(this._lexer.source,n.start,"Unexpected ".concat(f(n)))},n.any=function(e,n,t){this.expectToken(e);for(var i=[];!this.expectOptionalToken(t);)i.push(n.call(this));return i},n.optionalMany=function(e,n,t){if(this.expectOptionalToken(e)){var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(t));return i}return[]},n.many=function(e,n,t){this.expectToken(e);var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(t));return i},e}();function d(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}function f(e){var n=e.value;return n?"".concat(e.kind,' "').concat(n,'"'):e.kind}(0,o.default)(d,function(){return{start:this.start,end:this.end}})});t(m);var k=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.visit=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,c=void 0,u=Array.isArray(e),l=[e],d=-1,p=[],f=void 0,h=void 0,T=void 0,v=[],E=[],y=e;do{var N=++d===l.length,m=N&&0!==p.length;if(N){if(h=0===E.length?void 0:v[v.length-1],f=T,T=E.pop(),m){if(u)f=f.slice();else{for(var k={},I=0,_=Object.keys(f);I<_.length;I++){var O=_[I];k[O]=f[O]}f=k}for(var D=0,x=0;x<p.length;x++){var A=p[x][0],K=p[x][1];u&&(A-=D),u&&null===K?(f.splice(A,1),D++):f[A]=K}}d=c.index,l=c.keys,p=c.edits,u=c.inArray,c=c.prev}else{if(h=T?u?d:l[d]:void 0,null==(f=T?T[h]:y))continue;T&&v.push(h)}var b=void 0;if(!Array.isArray(f)){if(!a(f))throw new Error("Invalid AST Node: "+(0,i.default)(f));var S=s(n,f.kind,N);if(S){if((b=S.call(n,f,h,T,v,E))===o)break;if(!1===b){if(!N){v.pop();continue}}else if(void 0!==b&&(p.push([h,b]),!N)){if(!a(b)){v.pop();continue}f=b}}}void 0===b&&m&&p.push([h,f]),N?v.pop():(c={inArray:u,index:d,keys:l,edits:p,prev:c},l=(u=Array.isArray(f))?f:t[f.kind]||[],d=-1,p=[],T&&E.push(T),T=f)}while(void 0!==c);return 0!==p.length&&(y=p[p.length-1][1]),y},n.visitInParallel=function(e){var n=new Array(e.length);return{enter:function(t){for(var i=0;i<e.length;i++)if(!n[i]){var r=s(e[i],t.kind,!1);if(r){var a=r.apply(e[i],arguments);if(!1===a)n[i]=t;else if(a===o)n[i]=o;else if(void 0!==a)return a}}},leave:function(t){for(var i=0;i<e.length;i++)if(n[i])n[i]===t&&(n[i]=null);else{var r=s(e[i],t.kind,!0);if(r){var a=r.apply(e[i],arguments);if(a===o)n[i]=o;else if(void 0!==a&&!1!==a)return a}}}}},n.visitWithTypeInfo=function(e,n){return{enter:function(t){e.enter(t);var i=s(n,t.kind,!1);if(i){var r=i.apply(n,arguments);return void 0!==r&&(e.leave(t),a(r)&&e.enter(r)),r}},leave:function(t){var i,r=s(n,t.kind,!0);return r&&(i=r.apply(n,arguments)),e.leave(t),i}}},n.getVisitFn=s,n.BREAK=n.QueryDocumentKeys=void 0;var t,i=(t=y)&&t.__esModule?t:{default:t},r={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:["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"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};n.QueryDocumentKeys=r;var o=Object.freeze({});function a(e){return Boolean(e&&"string"==typeof e.kind)}function s(e,n,t){var i=e[n];if(i){if(!t&&"function"==typeof i)return i;var r=t?i.leave:i.enter;if("function"==typeof r)return r}else{var o=t?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[n];if("function"==typeof a)return a}}}n.BREAK=o});t(k);var I=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.print=function(e){return(0,k.visit)(e,{leave:t})};var t={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return r(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var n=e.operation,t=e.name,i=a("(",r(e.variableDefinitions,", "),")"),o=r(e.directives," "),s=e.selectionSet;return t||o||i||"query"!==n?r([n,r([t,i]),o,s]," "):s},VariableDefinition:function(e){var n=e.directives;return e.variable+": "+e.type+a(" = ",e.defaultValue)+a(" ",r(n," "))},SelectionSet:function(e){return o(e.selections)},Field:function(e){var n=e.name,t=e.arguments,i=e.directives,o=e.selectionSet;return r([a("",e.alias,": ")+n+a("(",r(t,", "),")"),r(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+a(" ",r(e.directives," "))},InlineFragment:function(e){var n=e.directives,t=e.selectionSet;return r(["...",a("on ",e.typeCondition),r(n," "),t]," ")},FragmentDefinition:function(e){var n=e.typeCondition,t=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(e.name).concat(a("(",r(t,", "),")")," ")+"on ".concat(n," ").concat(a("",r(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,n){var t=e.value;return e.block?(0,v.printBlockString)(t,"description"===n?"":" "):JSON.stringify(t)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+r(e.values,", ")+"]"},ObjectValue:function(e){return"{"+r(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+a("(",r(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.operationTypes;return r(["schema",r(e.directives," "),o(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:i(function(e){return r(["scalar",e.name,r(e.directives," ")]," ")}),ObjectTypeDefinition:i(function(e){var n=e.directives,t=e.fields;return r(["type",e.name,a("implements ",r(e.interfaces," & ")),r(n," "),o(t)]," ")}),FieldDefinition:i(function(e){var n=e.arguments,t=e.type,i=e.directives;return e.name+(u(n)?a("(\n",s(r(n,"\n")),"\n)"):a("(",r(n,", "),")"))+": "+t+a(" ",r(i," "))}),InputValueDefinition:i(function(e){var n=e.directives;return r([e.name+": "+e.type,a("= ",e.defaultValue),r(n," ")]," ")}),InterfaceTypeDefinition:i(function(e){var n=e.fields;return r(["interface",e.name,r(e.directives," "),o(n)]," ")}),UnionTypeDefinition:i(function(e){var n=e.types;return r(["union",e.name,r(e.directives," "),n&&0!==n.length?"= "+r(n," | "):""]," ")}),EnumTypeDefinition:i(function(e){var n=e.values;return r(["enum",e.name,r(e.directives," "),o(n)]," ")}),EnumValueDefinition:i(function(e){return r([e.name,r(e.directives," ")]," ")}),InputObjectTypeDefinition:i(function(e){var n=e.fields;return r(["input",e.name,r(e.directives," "),o(n)]," ")}),DirectiveDefinition:i(function(e){var n=e.arguments,t=e.repeatable,i=e.locations;return"directive @"+e.name+(u(n)?a("(\n",s(r(n,"\n")),"\n)"):a("(",r(n,", "),")"))+(t?" repeatable":"")+" on "+r(i," | ")}),SchemaExtension:function(e){var n=e.operationTypes;return r(["extend schema",r(e.directives," "),o(n)]," ")},ScalarTypeExtension:function(e){return r(["extend scalar",e.name,r(e.directives," ")]," ")},ObjectTypeExtension:function(e){var n=e.directives,t=e.fields;return r(["extend type",e.name,a("implements ",r(e.interfaces," & ")),r(n," "),o(t)]," ")},InterfaceTypeExtension:function(e){var n=e.fields;return r(["extend interface",e.name,r(e.directives," "),o(n)]," ")},UnionTypeExtension:function(e){var n=e.types;return r(["extend union",e.name,r(e.directives," "),n&&0!==n.length?"= "+r(n," | "):""]," ")},EnumTypeExtension:function(e){var n=e.values;return r(["extend enum",e.name,r(e.directives," "),o(n)]," ")},InputObjectTypeExtension:function(e){var n=e.fields;return r(["extend input",e.name,r(e.directives," "),o(n)]," ")}};function i(e){return function(n){return r([n.description,e(n)],"\n")}}function r(e,n){return e?e.filter(function(e){return e}).join(n||""):""}function o(e){return e&&0!==e.length?"{\n"+s(r(e,"\n"))+"\n}":""}function a(e,n,t){return n?e+n+(t||""):""}function s(e){return e&&" "+e.replace(/\n/g,"\n ")}function c(e){return-1!==e.indexOf("\n")}function u(e){return e&&e.some(c)}});t(I);var _=i(function(e,n){function t(e){return e.kind===u.Kind.OPERATION_DEFINITION||e.kind===u.Kind.FRAGMENT_DEFINITION}function i(e){return e.kind===u.Kind.SCHEMA_DEFINITION||r(e)||e.kind===u.Kind.DIRECTIVE_DEFINITION}function r(e){return e.kind===u.Kind.SCALAR_TYPE_DEFINITION||e.kind===u.Kind.OBJECT_TYPE_DEFINITION||e.kind===u.Kind.INTERFACE_TYPE_DEFINITION||e.kind===u.Kind.UNION_TYPE_DEFINITION||e.kind===u.Kind.ENUM_TYPE_DEFINITION||e.kind===u.Kind.INPUT_OBJECT_TYPE_DEFINITION}function o(e){return e.kind===u.Kind.SCHEMA_EXTENSION||a(e)}function a(e){return e.kind===u.Kind.SCALAR_TYPE_EXTENSION||e.kind===u.Kind.OBJECT_TYPE_EXTENSION||e.kind===u.Kind.INTERFACE_TYPE_EXTENSION||e.kind===u.Kind.UNION_TYPE_EXTENSION||e.kind===u.Kind.ENUM_TYPE_EXTENSION||e.kind===u.Kind.INPUT_OBJECT_TYPE_EXTENSION}Object.defineProperty(n,"__esModule",{value:!0}),n.isDefinitionNode=function(e){return t(e)||i(e)||o(e)},n.isExecutableDefinitionNode=t,n.isSelectionNode=function(e){return e.kind===u.Kind.FIELD||e.kind===u.Kind.FRAGMENT_SPREAD||e.kind===u.Kind.INLINE_FRAGMENT},n.isValueNode=function(e){return e.kind===u.Kind.VARIABLE||e.kind===u.Kind.INT||e.kind===u.Kind.FLOAT||e.kind===u.Kind.STRING||e.kind===u.Kind.BOOLEAN||e.kind===u.Kind.NULL||e.kind===u.Kind.ENUM||e.kind===u.Kind.LIST||e.kind===u.Kind.OBJECT},n.isTypeNode=function(e){return e.kind===u.Kind.NAMED_TYPE||e.kind===u.Kind.LIST_TYPE||e.kind===u.Kind.NON_NULL_TYPE},n.isTypeSystemDefinitionNode=i,n.isTypeDefinitionNode=r,n.isTypeSystemExtensionNode=o,n.isTypeExtensionNode=a});t(_);var O=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Source",{enumerable:!0,get:function(){return a.Source}}),Object.defineProperty(n,"getLocation",{enumerable:!0,get:function(){return s.getLocation}}),Object.defineProperty(n,"printLocation",{enumerable:!0,get:function(){return c.printLocation}}),Object.defineProperty(n,"printSourceLocation",{enumerable:!0,get:function(){return c.printSourceLocation}}),Object.defineProperty(n,"Kind",{enumerable:!0,get:function(){return u.Kind}}),Object.defineProperty(n,"TokenKind",{enumerable:!0,get:function(){return l.TokenKind}}),Object.defineProperty(n,"createLexer",{enumerable:!0,get:function(){return E.createLexer}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return m.parse}}),Object.defineProperty(n,"parseValue",{enumerable:!0,get:function(){return m.parseValue}}),Object.defineProperty(n,"parseType",{enumerable:!0,get:function(){return m.parseType}}),Object.defineProperty(n,"print",{enumerable:!0,get:function(){return I.print}}),Object.defineProperty(n,"visit",{enumerable:!0,get:function(){return k.visit}}),Object.defineProperty(n,"visitInParallel",{enumerable:!0,get:function(){return k.visitInParallel}}),Object.defineProperty(n,"visitWithTypeInfo",{enumerable:!0,get:function(){return k.visitWithTypeInfo}}),Object.defineProperty(n,"getVisitFn",{enumerable:!0,get:function(){return k.getVisitFn}}),Object.defineProperty(n,"BREAK",{enumerable:!0,get:function(){return k.BREAK}}),Object.defineProperty(n,"isDefinitionNode",{enumerable:!0,get:function(){return _.isDefinitionNode}}),Object.defineProperty(n,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return _.isExecutableDefinitionNode}}),Object.defineProperty(n,"isSelectionNode",{enumerable:!0,get:function(){return _.isSelectionNode}}),Object.defineProperty(n,"isValueNode",{enumerable:!0,get:function(){return _.isValueNode}}),Object.defineProperty(n,"isTypeNode",{enumerable:!0,get:function(){return _.isTypeNode}}),Object.defineProperty(n,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return _.isTypeSystemDefinitionNode}}),Object.defineProperty(n,"isTypeDefinitionNode",{enumerable:!0,get:function(){return _.isTypeDefinitionNode}}),Object.defineProperty(n,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return _.isTypeSystemExtensionNode}}),Object.defineProperty(n,"isTypeExtensionNode",{enumerable:!0,get:function(){return _.isTypeExtensionNode}}),Object.defineProperty(n,"DirectiveLocation",{enumerable:!0,get:function(){return N.DirectiveLocation}})});t(O);var D=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.locatedError=function(e,n,t){return e&&Array.isArray(e.path)?e:new h.GraphQLError(e&&e.message,e&&e.nodes||n,e&&e.source,e&&e.positions,t,e)}});t(D);var x=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.formatError=function(e){e||(0,i.default)(0,"Received null or undefined error.");var n=e.message||"An unknown error occurred.",t=e.locations,r=e.path,o=e.extensions;return o?{message:n,locations:t,path:r,extensions:o}:{message:n,locations:t,path:r}};var t,i=(t=r)&&t.__esModule?t:{default:t}});t(x);var A=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return h.GraphQLError}}),Object.defineProperty(n,"printError",{enumerable:!0,get:function(){return h.printError}}),Object.defineProperty(n,"syntaxError",{enumerable:!0,get:function(){return T.syntaxError}}),Object.defineProperty(n,"locatedError",{enumerable:!0,get:function(){return D.locatedError}}),Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return x.formatError}})});t(A);var K={parsers:{graphql:{parse:function(e){var t=O;try{var i=function(e,n){var i={allowLegacySDLImplementsInterfaces:!1,experimentalFragmentVariables:!0};try{return e(n,i)}catch(t){return i.allowLegacySDLImplementsInterfaces=!0,e(n,i)}}(t.parse,e);return i.comments=function(e){for(var n=[],t=e.loc.startToken.next;"<EOF>"!==t.kind;)"Comment"===t.kind&&(Object.assign(t,{column:t.column-1}),n.push(t)),t=t.next;return n}(i),function e(t){if(t&&"object"===n(t))for(var i in delete t.startToken,delete t.endToken,delete t.prev,delete t.next,t)e(t[i]);return t}(i),i}catch(e){throw e instanceof A.GraphQLError?function(e,n){var t=new SyntaxError(e+" ("+n.start.line+":"+n.start.column+")");return t.loc=n,t}(e.message,{start:{line:e.locations[0].line,column:e.locations[0].column}}):e}},astFormat:"graphql",hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}}}},b=K.parsers;e.default=K,e.parsers=b,Object.defineProperty(e,"__esModule",{value:!0})}(n)}}]);
|
package/build/dist/14-es5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{azY9:function(e,n,t){!function(e){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,n){return e(n={exports:{}},n.exports),n.exports}var r=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){if(!Boolean(e))throw new Error(n)}});t(r);var o=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}});t(o);var a=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Source=void 0;var t=a(r),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e,n,i){this.body=e,this.name=n||"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")};n.Source=s,(0,i.default)(s)});t(a);var s=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getLocation=function(e,n){for(var t,i=/\r\n|[\n\r]/g,r=1,o=n+1;(t=i.exec(e.body))&&t.index<n;)r+=1,o=n+1-(t.index+t[0].length);return{line:r,column:o}}});t(s);var c=i(function(e,n){function t(e,n){var t=e.locationOffset.column-1,o=r(t)+e.body,a=n.line-1,s=n.line+(e.locationOffset.line-1),c=n.column+(1===n.line?t:0),u="".concat(e.name,":").concat(s,":").concat(c,"\n"),l=o.split(/\r\n|[\n\r]/g),d=l[a];if(d.length>120){for(var p=Math.floor(c/80),f=c%80,h=[],T=0;T<d.length;T+=80)h.push(d.slice(T,T+80));return u+i([["".concat(s),h[0]]].concat(h.slice(1,p+1).map(function(e){return["",e]}),[[" ",r(f-1)+"^"],["",h[p+1]]]))}return u+i([["".concat(s-1),l[a-1]],["".concat(s),d],["",r(c-1)+"^"],["".concat(s+1),l[a+1]]])}function i(e){var n=e.filter(function(e){return void 0!==e[1]}),t=Math.max.apply(Math,n.map(function(e){return e[0].length}));return n.map(function(e){var n,i=e[1];return r(t-(n=e[0]).length)+n+(i?" | "+i:" |")}).join("\n")}function r(e){return Array(e+1).join(" ")}Object.defineProperty(n,"__esModule",{value:!0}),n.printLocation=function(e){return t(e.source,(0,s.getLocation)(e.source,e.start))},n.printSourceLocation=t});t(c);var u=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Kind=void 0;var t=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",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",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",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"});n.Kind=t});t(u);var l=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0;var t=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"});n.TokenKind=t});t(l);var d=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;n.default=t});t(d);var p=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=n,e.prototype.inspect=n,i.default&&(e.prototype[i.default]=n)};var t,i=(t=d)&&t.__esModule?t:{default:t}});t(p);var f=i(function(e,t){function i(e){return(i="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"==i(e)&&null!==e}});t(f);var h=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=r,n.printError=o;var t,i=(t=f)&&t.__esModule?t:{default:t};function r(e,n,t,o,a,c,u){var l=Array.isArray(n)?0!==n.length?n:void 0:n?[n]:void 0,d=t;if(!d&&l){var p=l[0];d=p&&p.loc&&p.loc.source}var f,h=o;!h&&l&&(h=l.reduce(function(e,n){return n.loc&&e.push(n.loc.start),e},[])),h&&0===h.length&&(h=void 0),o&&t?f=o.map(function(e){return(0,s.getLocation)(t,e)}):l&&(f=l.reduce(function(e,n){return n.loc&&e.push((0,s.getLocation)(n.loc.source,n.loc.start)),e},[]));var T=u;if(null==T&&null!=c){var v=c.extensions;(0,i.default)(v)&&(T=v)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:f||void 0,enumerable:Boolean(f)},path:{value:a||void 0,enumerable:Boolean(a)},nodes:{value:l||void 0},source:{value:d||void 0},positions:{value:h||void 0},originalError:{value:c},extensions:{value:T||void 0,enumerable:Boolean(T)}}),c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function o(e){var n=e.message;if(e.nodes)for(var t=0,i=e.nodes;t<i.length;t++){var r=i[t];r.loc&&(n+="\n\n"+(0,c.printLocation)(r.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++)n+="\n\n"+(0,c.printSourceLocation)(e.source,a[o]);return n}r.prototype=Object.create(Error.prototype,{constructor:{value:r},name:{value:"GraphQLError"},toString:{value:function(){return o(this)}}})});t(h);var T=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.syntaxError=function(e,n,t){return new h.GraphQLError("Syntax Error: ".concat(t),void 0,e,[n])}});t(T);var v=i(function(e,n){function t(e){for(var n=null,t=1;t<e.length;t++){var r=e[t],o=i(r);if(o!==r.length&&(null===n||o<n)&&0===(n=o))break}return null===n?0:n}function i(e){for(var n=0;n<e.length&&(" "===e[n]||"\t"===e[n]);)n++;return n}function r(e){return i(e)===e.length}Object.defineProperty(n,"__esModule",{value:!0}),n.dedentBlockStringValue=function(e){var n=e.split(/\r\n|[\n\r]/g),i=t(n);if(0!==i)for(var o=1;o<n.length;o++)n[o]=n[o].slice(i);for(;n.length>0&&r(n[0]);)n.shift();for(;n.length>0&&r(n[n.length-1]);)n.pop();return n.join("\n")},n.getBlockStringIndentation=t,n.printBlockString=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=-1===e.indexOf("\n"),r=!i||'"'===e[e.length-1]||t,o="";return!r||i&&(" "===e[0]||"\t"===e[0])||(o+="\n"+n),o+=n?e.replace(/\n/g,"\n"+n):e,r&&(o+="\n"),'"""'+o.replace(/"""/g,'\\"""')+'"""'}});t(v);var E=i(function(e,n){var t;function i(){return this.lastToken=this.token,this.token=this.lookahead()}function r(){var e=this.token;if(e.kind!==l.TokenKind.EOF)do{e=e.next||(e.next=s(this,e))}while(e.kind===l.TokenKind.COMMENT);return e}function o(e,n,t,i,r,o,a){this.kind=e,this.start=n,this.end=t,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}function a(e){return isNaN(e)?l.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function s(e,n){var t=e.source,i=t.body,r=i.length,s=function(e,n,t){for(var i=e.length,r=n;r<i;){var o=e.charCodeAt(r);if(9===o||32===o||44===o||65279===o)++r;else if(10===o)++r,++t.line,t.lineStart=r;else{if(13!==o)break;10===e.charCodeAt(r+1)?r+=2:++r,++t.line,t.lineStart=r}}return r}(i,n.end,e),d=e.line,p=1+s-e.lineStart;if(s>=r)return new o(l.TokenKind.EOF,r,r,d,p,n);var f=i.charCodeAt(s);switch(f){case 33:return new o(l.TokenKind.BANG,s,s+1,d,p,n);case 35:return function(e,n,t,i,r){var a,s=e.body,c=n;do{a=s.charCodeAt(++c)}while(!isNaN(a)&&(a>31||9===a));return new o(l.TokenKind.COMMENT,n,c,t,i,r,s.slice(n+1,c))}(t,s,d,p,n);case 36:return new o(l.TokenKind.DOLLAR,s,s+1,d,p,n);case 38:return new o(l.TokenKind.AMP,s,s+1,d,p,n);case 40:return new o(l.TokenKind.PAREN_L,s,s+1,d,p,n);case 41:return new o(l.TokenKind.PAREN_R,s,s+1,d,p,n);case 46:if(46===i.charCodeAt(s+1)&&46===i.charCodeAt(s+2))return new o(l.TokenKind.SPREAD,s,s+3,d,p,n);break;case 58:return new o(l.TokenKind.COLON,s,s+1,d,p,n);case 61:return new o(l.TokenKind.EQUALS,s,s+1,d,p,n);case 64:return new o(l.TokenKind.AT,s,s+1,d,p,n);case 91:return new o(l.TokenKind.BRACKET_L,s,s+1,d,p,n);case 93:return new o(l.TokenKind.BRACKET_R,s,s+1,d,p,n);case 123:return new o(l.TokenKind.BRACE_L,s,s+1,d,p,n);case 124:return new o(l.TokenKind.PIPE,s,s+1,d,p,n);case 125:return new o(l.TokenKind.BRACE_R,s,s+1,d,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,t,i,r){for(var a=e.body,s=a.length,c=n+1,u=0;c!==s&&!isNaN(u=a.charCodeAt(c))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++c;return new o(l.TokenKind.NAME,n,c,t,i,r,a.slice(n,c))}(t,s,d,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,t,i,r,s){var u=e.body,d=t,p=n,f=!1;if(45===d&&(d=u.charCodeAt(++p)),48===d){if((d=u.charCodeAt(++p))>=48&&d<=57)throw(0,T.syntaxError)(e,p,"Invalid number, unexpected digit after 0: ".concat(a(d),"."))}else p=c(e,p,d),d=u.charCodeAt(p);if(46===d&&(f=!0,d=u.charCodeAt(++p),p=c(e,p,d),d=u.charCodeAt(p)),69!==d&&101!==d||(f=!0,43!==(d=u.charCodeAt(++p))&&45!==d||(d=u.charCodeAt(++p)),p=c(e,p,d),d=u.charCodeAt(p)),46===d||69===d||101===d)throw(0,T.syntaxError)(e,p,"Invalid number, expected digit but got: ".concat(a(d),"."));return new o(f?l.TokenKind.FLOAT:l.TokenKind.INT,n,p,i,r,s,u.slice(n,p))}(t,s,f,d,p,n);case 34:return 34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)?function(e,n,t,i,r,s){for(var c=e.body,u=n+3,d=u,p=0,f="";u<c.length&&!isNaN(p=c.charCodeAt(u));){if(34===p&&34===c.charCodeAt(u+1)&&34===c.charCodeAt(u+2))return f+=c.slice(d,u),new o(l.TokenKind.BLOCK_STRING,n,u+3,t,i,r,(0,v.dedentBlockStringValue)(f));if(p<32&&9!==p&&10!==p&&13!==p)throw(0,T.syntaxError)(e,u,"Invalid character within String: ".concat(a(p),"."));10===p?(++u,++s.line,s.lineStart=u):13===p?(10===c.charCodeAt(u+1)?u+=2:++u,++s.line,s.lineStart=u):92===p&&34===c.charCodeAt(u+1)&&34===c.charCodeAt(u+2)&&34===c.charCodeAt(u+3)?(f+=c.slice(d,u)+'"""',d=u+=4):++u}throw(0,T.syntaxError)(e,u,"Unterminated string.")}(t,s,d,p,n,e):function(e,n,t,i,r){for(var s,c,d,p,f=e.body,h=n+1,v=h,E=0,y="";h<f.length&&!isNaN(E=f.charCodeAt(h))&&10!==E&&13!==E;){if(34===E)return y+=f.slice(v,h),new o(l.TokenKind.STRING,n,h+1,t,i,r,y);if(E<32&&9!==E)throw(0,T.syntaxError)(e,h,"Invalid character within String: ".concat(a(E),"."));if(++h,92===E){switch(y+=f.slice(v,h-1),E=f.charCodeAt(h)){case 34:y+='"';break;case 47:y+="/";break;case 92:y+="\\";break;case 98:y+="\b";break;case 102:y+="\f";break;case 110:y+="\n";break;case 114:y+="\r";break;case 116:y+="\t";break;case 117:var N=(s=f.charCodeAt(h+1),c=f.charCodeAt(h+2),d=f.charCodeAt(h+3),p=f.charCodeAt(h+4),u(s)<<12|u(c)<<8|u(d)<<4|u(p));if(N<0){var m=f.slice(h+1,h+5);throw(0,T.syntaxError)(e,h,"Invalid character escape sequence: \\u".concat(m,"."))}y+=String.fromCharCode(N),h+=4;break;default:throw(0,T.syntaxError)(e,h,"Invalid character escape sequence: \\".concat(String.fromCharCode(E),"."))}v=++h}}throw(0,T.syntaxError)(e,h,"Unterminated string.")}(t,s,d,p,n)}throw(0,T.syntaxError)(t,s,function(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(a(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(a(e),".")}(f))}function c(e,n,t){var i=e.body,r=n,o=t;if(o>=48&&o<=57){do{o=i.charCodeAt(++r)}while(o>=48&&o<=57);return r}throw(0,T.syntaxError)(e,r,"Invalid number, expected digit but got: ".concat(a(o),"."))}function u(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}Object.defineProperty(n,"__esModule",{value:!0}),n.createLexer=function(e,n){var t=new o(l.TokenKind.SOF,0,0,0,0,null);return{source:e,options:n,lastToken:t,token:t,line:1,lineStart:0,advance:i,lookahead:r}},n.isPunctuatorToken=function(e){var n=e.kind;return n===l.TokenKind.BANG||n===l.TokenKind.DOLLAR||n===l.TokenKind.AMP||n===l.TokenKind.PAREN_L||n===l.TokenKind.PAREN_R||n===l.TokenKind.SPREAD||n===l.TokenKind.COLON||n===l.TokenKind.EQUALS||n===l.TokenKind.AT||n===l.TokenKind.BRACKET_L||n===l.TokenKind.BRACKET_R||n===l.TokenKind.BRACE_L||n===l.TokenKind.PIPE||n===l.TokenKind.BRACE_R},(0,((t=p)&&t.__esModule?t:{default:t}).default)(o,function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}})});t(E);var y=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a(e,[])};var i,r=(i=d)&&i.__esModule?i:{default:i};function o(e){return(o="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)})(e)}function a(e,n){switch(o(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,n){if(-1!==n.indexOf(e))return"[Circular]";var t=[].concat(n,[e]),i=function(e){var n=e[String(r.default)];return"function"==typeof n?n:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,t)}else if(Array.isArray(e))return function(e,n){if(0===e.length)return"[]";if(n.length>2)return"[Array]";for(var t=Math.min(10,e.length),i=e.length-t,r=[],o=0;o<t;++o)r.push(a(e[o],n));return 1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items")),"["+r.join(", ")+"]"}(e,t);return function(e,n){var t=Object.keys(e);return 0===t.length?"{}":n.length>2?"["+function(e){var n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){var t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return n}(e)+"]":"{ "+t.map(function(t){return t+": "+a(e[t],n)}).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}});t(y);var N=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectiveLocation=void 0;var t=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",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"});n.DirectiveLocation=t});t(N);var m=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parse=function(e,n){return new c(e,n).parseDocument()},n.parseValue=function(e,n){var t=new c(e,n);t.expectToken(l.TokenKind.SOF);var i=t.parseValueLiteral(!1);return t.expectToken(l.TokenKind.EOF),i},n.parseType=function(e,n){var t=new c(e,n);t.expectToken(l.TokenKind.SOF);var i=t.parseTypeReference();return t.expectToken(l.TokenKind.EOF),i};var t=s(y),i=s(r),o=s(p);function s(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,n){var r="string"==typeof e?new a.Source(e):e;r instanceof a.Source||(0,i.default)(0,"Must provide Source. Received: ".concat((0,t.default)(r))),this._lexer=(0,E.createLexer)(r),this._options=n||{}}var n=e.prototype;return n.parseName=function(){var e=this.expectToken(l.TokenKind.NAME);return{kind:u.Kind.NAME,value:e.value,loc:this.loc(e)}},n.parseDocument=function(){var e=this._lexer.token;return{kind:u.Kind.DOCUMENT,definitions:this.many(l.TokenKind.SOF,this.parseDefinition,l.TokenKind.EOF),loc:this.loc(e)}},n.parseDefinition=function(){if(this.peek(l.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(l.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},n.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(l.TokenKind.BRACE_L))return{kind:u.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var n,t=this.parseOperationType();return this.peek(l.TokenKind.NAME)&&(n=this.parseName()),{kind:u.Kind.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseOperationType=function(){var e=this.expectToken(l.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},n.parseVariableDefinitions=function(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseVariableDefinition,l.TokenKind.PAREN_R)},n.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:u.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(l.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},n.parseVariable=function(){var e=this._lexer.token;return this.expectToken(l.TokenKind.DOLLAR),{kind:u.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},n.parseSelectionSet=function(){var e=this._lexer.token;return{kind:u.Kind.SELECTION_SET,selections:this.many(l.TokenKind.BRACE_L,this.parseSelection,l.TokenKind.BRACE_R),loc:this.loc(e)}},n.parseSelection=function(){return this.peek(l.TokenKind.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var e,n,t=this._lexer.token,i=this.parseName();return this.expectOptionalToken(l.TokenKind.COLON)?(e=i,n=this.parseName()):n=i,{kind:u.Kind.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(l.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},n.parseArguments=function(e){return this.optionalMany(l.TokenKind.PAREN_L,e?this.parseConstArgument:this.parseArgument,l.TokenKind.PAREN_R)},n.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(l.TokenKind.COLON),{kind:u.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(e)}},n.parseConstArgument=function(){var e=this._lexer.token;return{kind:u.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(l.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},n.parseFragment=function(){var e=this._lexer.token;this.expectToken(l.TokenKind.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(l.TokenKind.NAME)?{kind:u.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:u.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:u.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:u.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},n.parseValueLiteral=function(e){var n=this._lexer.token;switch(n.kind){case l.TokenKind.BRACKET_L:return this.parseList(e);case l.TokenKind.BRACE_L:return this.parseObject(e);case l.TokenKind.INT:return this._lexer.advance(),{kind:u.Kind.INT,value:n.value,loc:this.loc(n)};case l.TokenKind.FLOAT:return this._lexer.advance(),{kind:u.Kind.FLOAT,value:n.value,loc:this.loc(n)};case l.TokenKind.STRING:case l.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case l.TokenKind.NAME:return"true"===n.value||"false"===n.value?(this._lexer.advance(),{kind:u.Kind.BOOLEAN,value:"true"===n.value,loc:this.loc(n)}):"null"===n.value?(this._lexer.advance(),{kind:u.Kind.NULL,loc:this.loc(n)}):(this._lexer.advance(),{kind:u.Kind.ENUM,value:n.value,loc:this.loc(n)});case l.TokenKind.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:u.Kind.STRING,value:e.value,block:e.kind===l.TokenKind.BLOCK_STRING,loc:this.loc(e)}},n.parseList=function(e){var n=this,t=this._lexer.token;return{kind:u.Kind.LIST,values:this.any(l.TokenKind.BRACKET_L,function(){return n.parseValueLiteral(e)},l.TokenKind.BRACKET_R),loc:this.loc(t)}},n.parseObject=function(e){var n=this,t=this._lexer.token;return{kind:u.Kind.OBJECT,fields:this.any(l.TokenKind.BRACE_L,function(){return n.parseObjectField(e)},l.TokenKind.BRACE_R),loc:this.loc(t)}},n.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(l.TokenKind.COLON),{kind:u.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e),loc:this.loc(n)}},n.parseDirectives=function(e){for(var n=[];this.peek(l.TokenKind.AT);)n.push(this.parseDirective(e));return n},n.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(l.TokenKind.AT),{kind:u.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(n)}},n.parseTypeReference=function(){var e,n=this._lexer.token;return this.expectOptionalToken(l.TokenKind.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(l.TokenKind.BRACKET_R),e={kind:u.Kind.LIST_TYPE,type:e,loc:this.loc(n)}):e=this.parseNamedType(),this.expectOptionalToken(l.TokenKind.BANG)?{kind:u.Kind.NON_NULL_TYPE,type:e,loc:this.loc(n)}:e},n.parseNamedType=function(){var e=this._lexer.token;return{kind:u.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},n.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===l.TokenKind.NAME)switch(e.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()}throw this.unexpected(e)},n.peekDescription=function(){return this.peek(l.TokenKind.STRING)||this.peek(l.TokenKind.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.many(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);return{kind:u.Kind.SCHEMA_DEFINITION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseOperationTypeDefinition=function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(l.TokenKind.COLON);var t=this.parseNamedType();return{kind:u.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t,loc:this.loc(e)}},n.parseScalarTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var t=this.parseName(),i=this.parseDirectives(!0);return{kind:u.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:i,loc:this.loc(e)}},n.parseObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:u.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},n.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(l.TokenKind.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(l.TokenKind.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(l.TokenKind.NAME))}return e},n.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(l.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===l.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(l.TokenKind.BRACE_L,this.parseFieldDefinition,l.TokenKind.BRACE_R)},n.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseArgumentDefs();this.expectToken(l.TokenKind.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:u.Kind.FIELD_DEFINITION,description:n,name:t,arguments:i,type:r,directives:o,loc:this.loc(e)}},n.parseArgumentDefs=function(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseInputValueDef,l.TokenKind.PAREN_R)},n.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(l.TokenKind.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(l.TokenKind.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:u.Kind.INPUT_VALUE_DEFINITION,description:n,name:t,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},n.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();return{kind:u.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,directives:i,fields:r,loc:this.loc(e)}},n.parseUnionTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:u.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:i,types:r,loc:this.loc(e)}},n.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(l.TokenKind.EQUALS)){this.expectOptionalToken(l.TokenKind.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(l.TokenKind.PIPE))}return e},n.parseEnumTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:u.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:i,values:r,loc:this.loc(e)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseEnumValueDefinition,l.TokenKind.BRACE_R)},n.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseDirectives(!0);return{kind:u.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:i,loc:this.loc(e)}},n.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:u.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:i,fields:r,loc:this.loc(e)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseInputValueDef,l.TokenKind.BRACE_R)},n.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===l.TokenKind.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)},n.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseDirectives(!0),t=this.optionalMany(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return{kind:u.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t,loc:this.loc(e)}},n.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),t=this.parseDirectives(!0);if(0===t.length)throw this.unexpected();return{kind:u.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t,loc:this.loc(e)}},n.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===t.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:r,loc:this.loc(e)}},n.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.INTERFACE_TYPE_EXTENSION,name:n,directives:t,fields:i,loc:this.loc(e)}},n.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:i,loc:this.loc(e)}},n.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:i,loc:this.loc(e)}},n.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),t=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:i,loc:this.loc(e)}},n.parseDirectiveDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(l.TokenKind.AT);var t=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:u.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},n.parseDirectiveLocations=function(){this.expectOptionalToken(l.TokenKind.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(l.TokenKind.PIPE));return e},n.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(void 0!==N.DirectiveLocation[n.value])return n;throw this.unexpected(e)},n.loc=function(e){if(!this._options.noLocation)return new d(e,this._lexer.lastToken,this._lexer.source)},n.peek=function(e){return this._lexer.token.kind===e},n.expectToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n;throw(0,T.syntaxError)(this._lexer.source,n.start,"Expected ".concat(e,", found ").concat(f(n)))},n.expectOptionalToken=function(e){var n=this._lexer.token;if(n.kind===e)return this._lexer.advance(),n},n.expectKeyword=function(e){var n=this._lexer.token;if(n.kind!==l.TokenKind.NAME||n.value!==e)throw(0,T.syntaxError)(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(f(n)));this._lexer.advance()},n.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===l.TokenKind.NAME&&n.value===e&&(this._lexer.advance(),!0)},n.unexpected=function(e){var n=e||this._lexer.token;return(0,T.syntaxError)(this._lexer.source,n.start,"Unexpected ".concat(f(n)))},n.any=function(e,n,t){this.expectToken(e);for(var i=[];!this.expectOptionalToken(t);)i.push(n.call(this));return i},n.optionalMany=function(e,n,t){if(this.expectOptionalToken(e)){var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(t));return i}return[]},n.many=function(e,n,t){this.expectToken(e);var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(t));return i},e}();function d(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}function f(e){var n=e.value;return n?"".concat(e.kind,' "').concat(n,'"'):e.kind}(0,o.default)(d,function(){return{start:this.start,end:this.end}})});t(m);var k=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.visit=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,c=void 0,u=Array.isArray(e),l=[e],d=-1,p=[],f=void 0,h=void 0,T=void 0,v=[],E=[],y=e;do{var N=++d===l.length,m=N&&0!==p.length;if(N){if(h=0===E.length?void 0:v[v.length-1],f=T,T=E.pop(),m){if(u)f=f.slice();else{for(var k={},I=0,_=Object.keys(f);I<_.length;I++){var O=_[I];k[O]=f[O]}f=k}for(var D=0,x=0;x<p.length;x++){var A=p[x][0],K=p[x][1];u&&(A-=D),u&&null===K?(f.splice(A,1),D++):f[A]=K}}d=c.index,l=c.keys,p=c.edits,u=c.inArray,c=c.prev}else{if(h=T?u?d:l[d]:void 0,null==(f=T?T[h]:y))continue;T&&v.push(h)}var b=void 0;if(!Array.isArray(f)){if(!a(f))throw new Error("Invalid AST Node: "+(0,i.default)(f));var S=s(n,f.kind,N);if(S){if((b=S.call(n,f,h,T,v,E))===o)break;if(!1===b){if(!N){v.pop();continue}}else if(void 0!==b&&(p.push([h,b]),!N)){if(!a(b)){v.pop();continue}f=b}}}void 0===b&&m&&p.push([h,f]),N?v.pop():(c={inArray:u,index:d,keys:l,edits:p,prev:c},l=(u=Array.isArray(f))?f:t[f.kind]||[],d=-1,p=[],T&&E.push(T),T=f)}while(void 0!==c);return 0!==p.length&&(y=p[p.length-1][1]),y},n.visitInParallel=function(e){var n=new Array(e.length);return{enter:function(t){for(var i=0;i<e.length;i++)if(!n[i]){var r=s(e[i],t.kind,!1);if(r){var a=r.apply(e[i],arguments);if(!1===a)n[i]=t;else if(a===o)n[i]=o;else if(void 0!==a)return a}}},leave:function(t){for(var i=0;i<e.length;i++)if(n[i])n[i]===t&&(n[i]=null);else{var r=s(e[i],t.kind,!0);if(r){var a=r.apply(e[i],arguments);if(a===o)n[i]=o;else if(void 0!==a&&!1!==a)return a}}}}},n.visitWithTypeInfo=function(e,n){return{enter:function(t){e.enter(t);var i=s(n,t.kind,!1);if(i){var r=i.apply(n,arguments);return void 0!==r&&(e.leave(t),a(r)&&e.enter(r)),r}},leave:function(t){var i,r=s(n,t.kind,!0);return r&&(i=r.apply(n,arguments)),e.leave(t),i}}},n.getVisitFn=s,n.BREAK=n.QueryDocumentKeys=void 0;var t,i=(t=y)&&t.__esModule?t:{default:t},r={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:["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"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};n.QueryDocumentKeys=r;var o=Object.freeze({});function a(e){return Boolean(e&&"string"==typeof e.kind)}function s(e,n,t){var i=e[n];if(i){if(!t&&"function"==typeof i)return i;var r=t?i.leave:i.enter;if("function"==typeof r)return r}else{var o=t?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[n];if("function"==typeof a)return a}}}n.BREAK=o});t(k);var I=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.print=function(e){return(0,k.visit)(e,{leave:t})};var t={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return r(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var n=e.operation,t=e.name,i=a("(",r(e.variableDefinitions,", "),")"),o=r(e.directives," "),s=e.selectionSet;return t||o||i||"query"!==n?r([n,r([t,i]),o,s]," "):s},VariableDefinition:function(e){var n=e.directives;return e.variable+": "+e.type+a(" = ",e.defaultValue)+a(" ",r(n," "))},SelectionSet:function(e){return o(e.selections)},Field:function(e){var n=e.name,t=e.arguments,i=e.directives,o=e.selectionSet;return r([a("",e.alias,": ")+n+a("(",r(t,", "),")"),r(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+a(" ",r(e.directives," "))},InlineFragment:function(e){var n=e.directives,t=e.selectionSet;return r(["...",a("on ",e.typeCondition),r(n," "),t]," ")},FragmentDefinition:function(e){var n=e.typeCondition,t=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(e.name).concat(a("(",r(t,", "),")")," ")+"on ".concat(n," ").concat(a("",r(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,n){var t=e.value;return e.block?(0,v.printBlockString)(t,"description"===n?"":" "):JSON.stringify(t)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+r(e.values,", ")+"]"},ObjectValue:function(e){return"{"+r(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+a("(",r(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.operationTypes;return r(["schema",r(e.directives," "),o(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:i(function(e){return r(["scalar",e.name,r(e.directives," ")]," ")}),ObjectTypeDefinition:i(function(e){var n=e.directives,t=e.fields;return r(["type",e.name,a("implements ",r(e.interfaces," & ")),r(n," "),o(t)]," ")}),FieldDefinition:i(function(e){var n=e.arguments,t=e.type,i=e.directives;return e.name+(u(n)?a("(\n",s(r(n,"\n")),"\n)"):a("(",r(n,", "),")"))+": "+t+a(" ",r(i," "))}),InputValueDefinition:i(function(e){var n=e.directives;return r([e.name+": "+e.type,a("= ",e.defaultValue),r(n," ")]," ")}),InterfaceTypeDefinition:i(function(e){var n=e.fields;return r(["interface",e.name,r(e.directives," "),o(n)]," ")}),UnionTypeDefinition:i(function(e){var n=e.types;return r(["union",e.name,r(e.directives," "),n&&0!==n.length?"= "+r(n," | "):""]," ")}),EnumTypeDefinition:i(function(e){var n=e.values;return r(["enum",e.name,r(e.directives," "),o(n)]," ")}),EnumValueDefinition:i(function(e){return r([e.name,r(e.directives," ")]," ")}),InputObjectTypeDefinition:i(function(e){var n=e.fields;return r(["input",e.name,r(e.directives," "),o(n)]," ")}),DirectiveDefinition:i(function(e){var n=e.arguments,t=e.repeatable,i=e.locations;return"directive @"+e.name+(u(n)?a("(\n",s(r(n,"\n")),"\n)"):a("(",r(n,", "),")"))+(t?" repeatable":"")+" on "+r(i," | ")}),SchemaExtension:function(e){var n=e.operationTypes;return r(["extend schema",r(e.directives," "),o(n)]," ")},ScalarTypeExtension:function(e){return r(["extend scalar",e.name,r(e.directives," ")]," ")},ObjectTypeExtension:function(e){var n=e.directives,t=e.fields;return r(["extend type",e.name,a("implements ",r(e.interfaces," & ")),r(n," "),o(t)]," ")},InterfaceTypeExtension:function(e){var n=e.fields;return r(["extend interface",e.name,r(e.directives," "),o(n)]," ")},UnionTypeExtension:function(e){var n=e.types;return r(["extend union",e.name,r(e.directives," "),n&&0!==n.length?"= "+r(n," | "):""]," ")},EnumTypeExtension:function(e){var n=e.values;return r(["extend enum",e.name,r(e.directives," "),o(n)]," ")},InputObjectTypeExtension:function(e){var n=e.fields;return r(["extend input",e.name,r(e.directives," "),o(n)]," ")}};function i(e){return function(n){return r([n.description,e(n)],"\n")}}function r(e,n){return e?e.filter(function(e){return e}).join(n||""):""}function o(e){return e&&0!==e.length?"{\n"+s(r(e,"\n"))+"\n}":""}function a(e,n,t){return n?e+n+(t||""):""}function s(e){return e&&" "+e.replace(/\n/g,"\n ")}function c(e){return-1!==e.indexOf("\n")}function u(e){return e&&e.some(c)}});t(I);var _=i(function(e,n){function t(e){return e.kind===u.Kind.OPERATION_DEFINITION||e.kind===u.Kind.FRAGMENT_DEFINITION}function i(e){return e.kind===u.Kind.SCHEMA_DEFINITION||r(e)||e.kind===u.Kind.DIRECTIVE_DEFINITION}function r(e){return e.kind===u.Kind.SCALAR_TYPE_DEFINITION||e.kind===u.Kind.OBJECT_TYPE_DEFINITION||e.kind===u.Kind.INTERFACE_TYPE_DEFINITION||e.kind===u.Kind.UNION_TYPE_DEFINITION||e.kind===u.Kind.ENUM_TYPE_DEFINITION||e.kind===u.Kind.INPUT_OBJECT_TYPE_DEFINITION}function o(e){return e.kind===u.Kind.SCHEMA_EXTENSION||a(e)}function a(e){return e.kind===u.Kind.SCALAR_TYPE_EXTENSION||e.kind===u.Kind.OBJECT_TYPE_EXTENSION||e.kind===u.Kind.INTERFACE_TYPE_EXTENSION||e.kind===u.Kind.UNION_TYPE_EXTENSION||e.kind===u.Kind.ENUM_TYPE_EXTENSION||e.kind===u.Kind.INPUT_OBJECT_TYPE_EXTENSION}Object.defineProperty(n,"__esModule",{value:!0}),n.isDefinitionNode=function(e){return t(e)||i(e)||o(e)},n.isExecutableDefinitionNode=t,n.isSelectionNode=function(e){return e.kind===u.Kind.FIELD||e.kind===u.Kind.FRAGMENT_SPREAD||e.kind===u.Kind.INLINE_FRAGMENT},n.isValueNode=function(e){return e.kind===u.Kind.VARIABLE||e.kind===u.Kind.INT||e.kind===u.Kind.FLOAT||e.kind===u.Kind.STRING||e.kind===u.Kind.BOOLEAN||e.kind===u.Kind.NULL||e.kind===u.Kind.ENUM||e.kind===u.Kind.LIST||e.kind===u.Kind.OBJECT},n.isTypeNode=function(e){return e.kind===u.Kind.NAMED_TYPE||e.kind===u.Kind.LIST_TYPE||e.kind===u.Kind.NON_NULL_TYPE},n.isTypeSystemDefinitionNode=i,n.isTypeDefinitionNode=r,n.isTypeSystemExtensionNode=o,n.isTypeExtensionNode=a});t(_);var O=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Source",{enumerable:!0,get:function(){return a.Source}}),Object.defineProperty(n,"getLocation",{enumerable:!0,get:function(){return s.getLocation}}),Object.defineProperty(n,"printLocation",{enumerable:!0,get:function(){return c.printLocation}}),Object.defineProperty(n,"printSourceLocation",{enumerable:!0,get:function(){return c.printSourceLocation}}),Object.defineProperty(n,"Kind",{enumerable:!0,get:function(){return u.Kind}}),Object.defineProperty(n,"TokenKind",{enumerable:!0,get:function(){return l.TokenKind}}),Object.defineProperty(n,"createLexer",{enumerable:!0,get:function(){return E.createLexer}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return m.parse}}),Object.defineProperty(n,"parseValue",{enumerable:!0,get:function(){return m.parseValue}}),Object.defineProperty(n,"parseType",{enumerable:!0,get:function(){return m.parseType}}),Object.defineProperty(n,"print",{enumerable:!0,get:function(){return I.print}}),Object.defineProperty(n,"visit",{enumerable:!0,get:function(){return k.visit}}),Object.defineProperty(n,"visitInParallel",{enumerable:!0,get:function(){return k.visitInParallel}}),Object.defineProperty(n,"visitWithTypeInfo",{enumerable:!0,get:function(){return k.visitWithTypeInfo}}),Object.defineProperty(n,"getVisitFn",{enumerable:!0,get:function(){return k.getVisitFn}}),Object.defineProperty(n,"BREAK",{enumerable:!0,get:function(){return k.BREAK}}),Object.defineProperty(n,"isDefinitionNode",{enumerable:!0,get:function(){return _.isDefinitionNode}}),Object.defineProperty(n,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return _.isExecutableDefinitionNode}}),Object.defineProperty(n,"isSelectionNode",{enumerable:!0,get:function(){return _.isSelectionNode}}),Object.defineProperty(n,"isValueNode",{enumerable:!0,get:function(){return _.isValueNode}}),Object.defineProperty(n,"isTypeNode",{enumerable:!0,get:function(){return _.isTypeNode}}),Object.defineProperty(n,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return _.isTypeSystemDefinitionNode}}),Object.defineProperty(n,"isTypeDefinitionNode",{enumerable:!0,get:function(){return _.isTypeDefinitionNode}}),Object.defineProperty(n,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return _.isTypeSystemExtensionNode}}),Object.defineProperty(n,"isTypeExtensionNode",{enumerable:!0,get:function(){return _.isTypeExtensionNode}}),Object.defineProperty(n,"DirectiveLocation",{enumerable:!0,get:function(){return N.DirectiveLocation}})});t(O);var D=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.locatedError=function(e,n,t){return e&&Array.isArray(e.path)?e:new h.GraphQLError(e&&e.message,e&&e.nodes||n,e&&e.source,e&&e.positions,t,e)}});t(D);var x=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.formatError=function(e){e||(0,i.default)(0,"Received null or undefined error.");var n=e.message||"An unknown error occurred.",t=e.locations,r=e.path,o=e.extensions;return o?{message:n,locations:t,path:r,extensions:o}:{message:n,locations:t,path:r}};var t,i=(t=r)&&t.__esModule?t:{default:t}});t(x);var A=i(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return h.GraphQLError}}),Object.defineProperty(n,"printError",{enumerable:!0,get:function(){return h.printError}}),Object.defineProperty(n,"syntaxError",{enumerable:!0,get:function(){return T.syntaxError}}),Object.defineProperty(n,"locatedError",{enumerable:!0,get:function(){return D.locatedError}}),Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return x.formatError}})});t(A);var K={parsers:{graphql:{parse:function(e){var t=O;try{var i=function(e,n){var i={allowLegacySDLImplementsInterfaces:!1,experimentalFragmentVariables:!0};try{return e(n,i)}catch(t){return i.allowLegacySDLImplementsInterfaces=!0,e(n,i)}}(t.parse,e);return i.comments=function(e){for(var n=[],t=e.loc.startToken.next;"<EOF>"!==t.kind;)"Comment"===t.kind&&(Object.assign(t,{column:t.column-1}),n.push(t)),t=t.next;return n}(i),function e(t){if(t&&"object"===n(t))for(var i in delete t.startToken,delete t.endToken,delete t.prev,delete t.next,t)e(t[i]);return t}(i),i}catch(e){throw e instanceof A.GraphQLError?function(e,n){var t=new SyntaxError(e+" ("+n.start.line+":"+n.start.column+")");return t.loc=n,t}(e.message,{start:{line:e.locations[0].line,column:e.locations[0].column}}):e}},astFormat:"graphql",hasPragma:function(e){return/^\s*#[^\n\S]*@(format|prettier)\s*(\n|$)/.test(e)},locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}}}},b=K.parsers;e.default=K,e.parsers=b,Object.defineProperty(e,"__esModule",{value:!0})}(n)}}]);
|