/** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License version 3.0 * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ (window.webpackJsonp_name_=window.webpackJsonp_name_||[]).push([[1],[,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isSchema",{enumerable:!0,get:function(){return r.isSchema}}),Object.defineProperty(n,"assertSchema",{enumerable:!0,get:function(){return r.assertSchema}}),Object.defineProperty(n,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(n,"isType",{enumerable:!0,get:function(){return i.isType}}),Object.defineProperty(n,"isScalarType",{enumerable:!0,get:function(){return i.isScalarType}}),Object.defineProperty(n,"isObjectType",{enumerable:!0,get:function(){return i.isObjectType}}),Object.defineProperty(n,"isInterfaceType",{enumerable:!0,get:function(){return i.isInterfaceType}}),Object.defineProperty(n,"isUnionType",{enumerable:!0,get:function(){return i.isUnionType}}),Object.defineProperty(n,"isEnumType",{enumerable:!0,get:function(){return i.isEnumType}}),Object.defineProperty(n,"isInputObjectType",{enumerable:!0,get:function(){return i.isInputObjectType}}),Object.defineProperty(n,"isListType",{enumerable:!0,get:function(){return i.isListType}}),Object.defineProperty(n,"isNonNullType",{enumerable:!0,get:function(){return i.isNonNullType}}),Object.defineProperty(n,"isInputType",{enumerable:!0,get:function(){return i.isInputType}}),Object.defineProperty(n,"isOutputType",{enumerable:!0,get:function(){return i.isOutputType}}),Object.defineProperty(n,"isLeafType",{enumerable:!0,get:function(){return i.isLeafType}}),Object.defineProperty(n,"isCompositeType",{enumerable:!0,get:function(){return i.isCompositeType}}),Object.defineProperty(n,"isAbstractType",{enumerable:!0,get:function(){return i.isAbstractType}}),Object.defineProperty(n,"isWrappingType",{enumerable:!0,get:function(){return i.isWrappingType}}),Object.defineProperty(n,"isNullableType",{enumerable:!0,get:function(){return i.isNullableType}}),Object.defineProperty(n,"isNamedType",{enumerable:!0,get:function(){return i.isNamedType}}),Object.defineProperty(n,"isRequiredArgument",{enumerable:!0,get:function(){return i.isRequiredArgument}}),Object.defineProperty(n,"isRequiredInputField",{enumerable:!0,get:function(){return i.isRequiredInputField}}),Object.defineProperty(n,"assertType",{enumerable:!0,get:function(){return i.assertType}}),Object.defineProperty(n,"assertScalarType",{enumerable:!0,get:function(){return i.assertScalarType}}),Object.defineProperty(n,"assertObjectType",{enumerable:!0,get:function(){return i.assertObjectType}}),Object.defineProperty(n,"assertInterfaceType",{enumerable:!0,get:function(){return i.assertInterfaceType}}),Object.defineProperty(n,"assertUnionType",{enumerable:!0,get:function(){return i.assertUnionType}}),Object.defineProperty(n,"assertEnumType",{enumerable:!0,get:function(){return i.assertEnumType}}),Object.defineProperty(n,"assertInputObjectType",{enumerable:!0,get:function(){return i.assertInputObjectType}}),Object.defineProperty(n,"assertListType",{enumerable:!0,get:function(){return i.assertListType}}),Object.defineProperty(n,"assertNonNullType",{enumerable:!0,get:function(){return i.assertNonNullType}}),Object.defineProperty(n,"assertInputType",{enumerable:!0,get:function(){return i.assertInputType}}),Object.defineProperty(n,"assertOutputType",{enumerable:!0,get:function(){return i.assertOutputType}}),Object.defineProperty(n,"assertLeafType",{enumerable:!0,get:function(){return i.assertLeafType}}),Object.defineProperty(n,"assertCompositeType",{enumerable:!0,get:function(){return i.assertCompositeType}}),Object.defineProperty(n,"assertAbstractType",{enumerable:!0,get:function(){return i.assertAbstractType}}),Object.defineProperty(n,"assertWrappingType",{enumerable:!0,get:function(){return i.assertWrappingType}}),Object.defineProperty(n,"assertNullableType",{enumerable:!0,get:function(){return i.assertNullableType}}),Object.defineProperty(n,"assertNamedType",{enumerable:!0,get:function(){return i.assertNamedType}}),Object.defineProperty(n,"getNullableType",{enumerable:!0,get:function(){return i.getNullableType}}),Object.defineProperty(n,"getNamedType",{enumerable:!0,get:function(){return i.getNamedType}}),Object.defineProperty(n,"GraphQLScalarType",{enumerable:!0,get:function(){return i.GraphQLScalarType}}),Object.defineProperty(n,"GraphQLObjectType",{enumerable:!0,get:function(){return i.GraphQLObjectType}}),Object.defineProperty(n,"GraphQLInterfaceType",{enumerable:!0,get:function(){return i.GraphQLInterfaceType}}),Object.defineProperty(n,"GraphQLUnionType",{enumerable:!0,get:function(){return i.GraphQLUnionType}}),Object.defineProperty(n,"GraphQLEnumType",{enumerable:!0,get:function(){return i.GraphQLEnumType}}),Object.defineProperty(n,"GraphQLInputObjectType",{enumerable:!0,get:function(){return i.GraphQLInputObjectType}}),Object.defineProperty(n,"GraphQLList",{enumerable:!0,get:function(){return i.GraphQLList}}),Object.defineProperty(n,"GraphQLNonNull",{enumerable:!0,get:function(){return i.GraphQLNonNull}}),Object.defineProperty(n,"isDirective",{enumerable:!0,get:function(){return a.isDirective}}),Object.defineProperty(n,"assertDirective",{enumerable:!0,get:function(){return a.assertDirective}}),Object.defineProperty(n,"GraphQLDirective",{enumerable:!0,get:function(){return a.GraphQLDirective}}),Object.defineProperty(n,"isSpecifiedDirective",{enumerable:!0,get:function(){return a.isSpecifiedDirective}}),Object.defineProperty(n,"specifiedDirectives",{enumerable:!0,get:function(){return a.specifiedDirectives}}),Object.defineProperty(n,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return a.GraphQLIncludeDirective}}),Object.defineProperty(n,"GraphQLSkipDirective",{enumerable:!0,get:function(){return a.GraphQLSkipDirective}}),Object.defineProperty(n,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return a.GraphQLDeprecatedDirective}}),Object.defineProperty(n,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return a.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(n,"isSpecifiedScalarType",{enumerable:!0,get:function(){return o.isSpecifiedScalarType}}),Object.defineProperty(n,"specifiedScalarTypes",{enumerable:!0,get:function(){return o.specifiedScalarTypes}}),Object.defineProperty(n,"GraphQLInt",{enumerable:!0,get:function(){return o.GraphQLInt}}),Object.defineProperty(n,"GraphQLFloat",{enumerable:!0,get:function(){return o.GraphQLFloat}}),Object.defineProperty(n,"GraphQLString",{enumerable:!0,get:function(){return o.GraphQLString}}),Object.defineProperty(n,"GraphQLBoolean",{enumerable:!0,get:function(){return o.GraphQLBoolean}}),Object.defineProperty(n,"GraphQLID",{enumerable:!0,get:function(){return o.GraphQLID}}),Object.defineProperty(n,"isIntrospectionType",{enumerable:!0,get:function(){return u.isIntrospectionType}}),Object.defineProperty(n,"introspectionTypes",{enumerable:!0,get:function(){return u.introspectionTypes}}),Object.defineProperty(n,"__Schema",{enumerable:!0,get:function(){return u.__Schema}}),Object.defineProperty(n,"__Directive",{enumerable:!0,get:function(){return u.__Directive}}),Object.defineProperty(n,"__DirectiveLocation",{enumerable:!0,get:function(){return u.__DirectiveLocation}}),Object.defineProperty(n,"__Type",{enumerable:!0,get:function(){return u.__Type}}),Object.defineProperty(n,"__Field",{enumerable:!0,get:function(){return u.__Field}}),Object.defineProperty(n,"__InputValue",{enumerable:!0,get:function(){return u.__InputValue}}),Object.defineProperty(n,"__EnumValue",{enumerable:!0,get:function(){return u.__EnumValue}}),Object.defineProperty(n,"__TypeKind",{enumerable:!0,get:function(){return u.__TypeKind}}),Object.defineProperty(n,"TypeKind",{enumerable:!0,get:function(){return u.TypeKind}}),Object.defineProperty(n,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return u.SchemaMetaFieldDef}}),Object.defineProperty(n,"TypeMetaFieldDef",{enumerable:!0,get:function(){return u.TypeMetaFieldDef}}),Object.defineProperty(n,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return u.TypeNameMetaFieldDef}}),Object.defineProperty(n,"validateSchema",{enumerable:!0,get:function(){return c.validateSchema}}),Object.defineProperty(n,"assertValidSchema",{enumerable:!0,get:function(){return c.assertValidSchema}});var r=t(95),i=t(11),a=t(50),o=t(66),u=t(64),c=t(154)},,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=u,n.printError=c;var r,i=(r=t(65))&&r.__esModule?r:{default:r},a=t(185),o=t(243);function u(e,n,t,r,o,c,s){var l=Array.isArray(n)?0!==n.length?n:void 0:n?[n]:void 0,f=t;if(!f&&l){var p=l[0];f=p&&p.loc&&p.loc.source}var d,v=r;!v&&l&&(v=l.reduce((function(e,n){return n.loc&&e.push(n.loc.start),e}),[])),v&&0===v.length&&(v=void 0),r&&t?d=r.map((function(e){return(0,a.getLocation)(t,e)})):l&&(d=l.reduce((function(e,n){return n.loc&&e.push((0,a.getLocation)(n.loc.source,n.loc.start)),e}),[]));var y=s;if(null==y&&null!=c){var h=c.extensions;(0,i.default)(h)&&(y=h)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:Boolean(d)},path:{value:o||void 0,enumerable:Boolean(o)},nodes:{value:l||void 0},source:{value:f||void 0},positions:{value:v||void 0},originalError:{value:c},extensions:{value:y||void 0,enumerable:Boolean(y)}}),c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,u):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function c(e){var n=e.message;if(e.nodes)for(var t=0,r=e.nodes;t0?e:void 0}M.prototype.toString=function(){return"["+String(this.ofType)+"]"},(0,v.default)(M),(0,d.default)(M),x.prototype.toString=function(){return String(this.ofType)+"!"},(0,v.default)(x),(0,d.default)(x);var B=function(){function e(e){var n=e.parseValue||p.default;this.name=e.name,this.description=e.description,this.serialize=e.serialize||p.default,this.parseValue=n,this.parseLiteral=e.parseLiteral||function(e){return n((0,h.valueFromASTUntyped)(e))},this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),"string"==typeof e.name||(0,c.default)(0,"Must provide name."),null==e.serialize||"function"==typeof e.serialize||(0,c.default)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,c.default)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();n.GraphQLScalarType=B,(0,v.default)(B),(0,d.default)(B);var q=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),this._fields=J.bind(void 0,e),this._interfaces=Y.bind(void 0,e),"string"==typeof e.name||(0,c.default)(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,c.default)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,i.default)(e.isTypeOf),"."))}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:X(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();function Y(e){var n=Q(e.interfaces)||[];return Array.isArray(n)||(0,c.default)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function J(e){var n=Q(e.fields)||{};return W(n)||(0,c.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,o.default)(n,(function(n,t){W(n)||(0,c.default)(0,"".concat(e.name,".").concat(t," field config must be an object")),!("isDeprecated"in n)||(0,c.default)(0,"".concat(e.name,".").concat(t,' should provide "deprecationReason" instead of "isDeprecated".')),null==n.resolve||"function"==typeof n.resolve||(0,c.default)(0,"".concat(e.name,".").concat(t," field resolver must be a function if ")+"provided, but got: ".concat((0,i.default)(n.resolve),"."));var a=n.args||{};W(a)||(0,c.default)(0,"".concat(e.name,".").concat(t," args must be an object with argument names as keys."));var o=(0,r.default)(a).map((function(e){var n=e[0],t=e[1];return{name:n,description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&(0,u.default)(t.extensions),astNode:t.astNode}}));return g({},n,{name:t,description:n.description,type:n.type,args:o,resolve:n.resolve,subscribe:n.subscribe,isDeprecated:Boolean(n.deprecationReason),deprecationReason:n.deprecationReason,extensions:n.extensions&&(0,u.default)(n.extensions),astNode:n.astNode})}))}function W(e){return(0,f.default)(e)&&!Array.isArray(e)}function X(e){return(0,o.default)(e,(function(e){return{description:e.description,type:e.type,args:H(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function H(e){return(0,s.default)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}))}n.GraphQLObjectType=q,(0,v.default)(q),(0,d.default)(q);var z=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),this._fields=J.bind(void 0,e),"string"==typeof e.name||(0,c.default)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,c.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,i.default)(e.resolveType),"."))}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.toConfig=function(){return{name:this.name,description:this.description,fields:X(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();n.GraphQLInterfaceType=z,(0,v.default)(z),(0,d.default)(z);var $=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),this._types=Z.bind(void 0,e),"string"==typeof e.name||(0,c.default)(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||(0,c.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,i.default)(e.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},n.toConfig=function(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();function Z(e){var n=Q(e.types)||[];return Array.isArray(n)||(0,c.default)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}n.GraphQLUnionType=$,(0,v.default)($),(0,d.default)($);var ee=function(){function e(e){var n,t;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),this._values=(n=this.name,W(t=e.values)||(0,c.default)(0,"".concat(n," values must be an object with value names as keys.")),(0,r.default)(t).map((function(e){var t=e[0],r=e[1];return W(r)||(0,c.default)(0,"".concat(n,".").concat(t,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,i.default)(r),".")),!("isDeprecated"in r)||(0,c.default)(0,"".concat(n,".").concat(t,' should provide "deprecationReason" instead of "isDeprecated".')),{name:t,description:r.description,value:"value"in r?r.value:t,isDeprecated:Boolean(r.deprecationReason),deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,u.default)(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=(0,a.default)(this._values,(function(e){return e.name})),"string"==typeof e.name||(0,c.default)(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(e){return this._nameLookup[e]},n.serialize=function(e){var n=this._valueLookup.get(e);if(n)return n.name},n.parseValue=function(e){if("string"==typeof e){var n=this.getValue(e);if(n)return n.value}},n.parseLiteral=function(e,n){if(e.kind===y.Kind.ENUM){var t=this.getValue(e.value);if(t)return t.value}},n.toConfig=function(){var e=(0,s.default)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();n.GraphQLEnumType=ee,(0,v.default)(ee),(0,d.default)(ee);var ne=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,u.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=U(e.extensionASTNodes),this._fields=te.bind(void 0,e),"string"==typeof e.name||(0,c.default)(0,"Must provide name.")}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.toConfig=function(){var e=(0,o.default)(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},e}();function te(e){var n=Q(e.fields)||{};return W(n)||(0,c.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,o.default)(n,(function(n,t){return!("resolve"in n)||(0,c.default)(0,"".concat(e.name,".").concat(t," field has a resolve property, but Input Types cannot define resolvers.")),g({},n,{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,extensions:n.extensions&&(0,u.default)(n.extensions),astNode:n.astNode})}))}n.GraphQLInputObjectType=ne,(0,v.default)(ne),(0,d.default)(ne)},,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return o(e,[])};var r,i=(r=t(244))&&r.__esModule?r:{default:r};function a(e){return(a="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 o(e,n){switch(a(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]),r=function(e){var n=e[String(i.default)];if("function"==typeof n)return n;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==r){var a=r.call(e);if(a!==e)return"string"==typeof a?a:o(a,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),r=e.length-t,i=[],a=0;a1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,t);return function(e,n){var t=Object.keys(e);if(0===t.length)return"{}";if(n.length>2)return"["+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)+"]";return"{ "+t.map((function(t){return t+": "+o(e[t],n)})).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}},,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Kind=void 0;var r=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=r},,,,,function(e,n,t){"use strict";t.r(n),t.d(n,"gql",(function(){return p})),t.d(n,"resetCaches",(function(){return d})),t.d(n,"disableFragmentWarnings",(function(){return v})),t.d(n,"enableExperimentalFragmentVariables",(function(){return y})),t.d(n,"disableExperimentalFragmentVariables",(function(){return h}));var r=function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,s=Array.isArray(e),l=[e],f=-1,p=[],d=void 0,v=void 0,y=void 0,h=[],m=[],T=e;do{var g=++f===l.length,b=g&&0!==p.length;if(g){if(v=0===m.length?void 0:h[h.length-1],d=y,y=m.pop(),b){if(s)d=d.slice();else{for(var E={},O=0,_=Object.keys(d);O<_.length;O++){var N=_[O];E[N]=d[N]}d=E}for(var I=0,S=0;S2147483647||n<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat((0,a.default)(e)));return n},parseValue:function(e){if(!(0,i.default)(e))throw new TypeError("Int cannot represent non-integer value: ".concat((0,a.default)(e)));if(e>2147483647||e<-2147483648)throw new TypeError("Int cannot represent non 32-bit signed integer value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){if(e.kind===u.Kind.INT){var n=parseInt(e.value,10);if(n<=2147483647&&n>=-2147483648)return n}}});n.GraphQLInt=l;var f=new c.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){if("boolean"==typeof e)return e?1:0;var n=e;if("string"==typeof e&&""!==e&&(n=Number(e)),!(0,r.default)(n))throw new TypeError("Float cannot represent non numeric value: ".concat((0,a.default)(e)));return n},parseValue:function(e){if(!(0,r.default)(e))throw new TypeError("Float cannot represent non numeric value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){return e.kind===u.Kind.FLOAT||e.kind===u.Kind.INT?parseFloat(e.value):void 0}});function p(e){if((0,o.default)(e)){if("function"==typeof e.valueOf){var n=e.valueOf();if(!(0,o.default)(n))return n}if("function"==typeof e.toJSON)return e.toJSON()}return e}n.GraphQLFloat=f;var d=new c.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var n=p(e);if("string"==typeof n)return n;if("boolean"==typeof n)return n?"true":"false";if((0,r.default)(n))return n.toString();throw new TypeError("String cannot represent value: ".concat((0,a.default)(e)))},parseValue:function(e){if("string"!=typeof e)throw new TypeError("String cannot represent a non string value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){return e.kind===u.Kind.STRING?e.value:void 0}});n.GraphQLString=d;var v=new c.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){if("boolean"==typeof e)return e;if((0,r.default)(e))return 0!==e;throw new TypeError("Boolean cannot represent a non boolean value: ".concat((0,a.default)(e)))},parseValue:function(e){if("boolean"!=typeof e)throw new TypeError("Boolean cannot represent a non boolean value: ".concat((0,a.default)(e)));return e},parseLiteral:function(e){return e.kind===u.Kind.BOOLEAN?e.value:void 0}});n.GraphQLBoolean=v;var y=new c.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var n=p(e);if("string"==typeof n)return n;if((0,i.default)(n))return String(n);throw new TypeError("ID cannot represent value: ".concat((0,a.default)(e)))},parseValue:function(e){if("string"==typeof e)return e;if((0,i.default)(e))return e.toString();throw new TypeError("ID cannot represent value: ".concat((0,a.default)(e)))},parseLiteral:function(e){return e.kind===u.Kind.STRING||e.kind===u.Kind.INT?e.value:void 0}});n.GraphQLID=y;var h=Object.freeze([d,l,f,v,y]);n.specifiedScalarTypes=h},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.typeFromAST=function e(n,t){var u;if(t.kind===a.Kind.LIST_TYPE)return(u=e(n,t.type))&&(0,o.GraphQLList)(u);if(t.kind===a.Kind.NON_NULL_TYPE)return(u=e(n,t.type))&&(0,o.GraphQLNonNull)(u);if(t.kind===a.Kind.NAMED_TYPE)return n.getType(t.name.value);(0,i.default)(!1,"Unexpected type node: "+(0,r.default)(t))};var r=u(t(13)),i=u(t(48)),a=t(18),o=t(11);function u(e){return e&&e.__esModule?e:{default:e}}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(349);n.addResolveFunctionsToSchema=r.default;var i=t(351);n.addSchemaLevelResolveFunction=i.default;var a=t(352);n.assertResolveFunctionsPresent=a.default;var o=t(353);n.attachDirectiveResolvers=o.default;var u=t(354);n.attachConnectorsToContext=u.default;var c=t(355);n.buildSchemaFromTypeDefinitions=c.default;var s=t(357);n.chainResolvers=s.chainResolvers;var l=t(358);n.checkForResolveTypeResolver=l.default;var f=t(359);n.concatenateTypeDefs=f.default;var p=t(360);n.decorateWithLogger=p.default;var d=t(361);n.extendResolversFromInterfaces=d.default;var v=t(362);n.extractExtensionDefinitions=v.default;var y=t(363);n.forEachField=y.default;var h=t(364);n.SchemaError=h.default},,,,,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}}),Object.defineProperty(n,"printError",{enumerable:!0,get:function(){return r.printError}}),Object.defineProperty(n,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}}),Object.defineProperty(n,"locatedError",{enumerable:!0,get:function(){return a.locatedError}}),Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return o.formatError}});var r=t(5),i=t(187),a=t(188),o=t(335)},,,,,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){return e.reduce((function(e,t){return e[n(t)]=t,e}),Object.create(null))}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isSchema=y,n.assertSchema=function(e){if(!y(e))throw new Error("Expected ".concat((0,a.default)(e)," to be a GraphQL schema."));return e},n.GraphQLSchema=void 0;var r=v(t(126)),i=v(t(49)),a=v(t(13)),o=v(t(189)),u=v(t(59)),c=v(t(190)),s=v(t(65)),l=v(t(151)),f=t(64),p=t(50),d=t(11);function v(e){return e&&e.__esModule?e:{default:e}}function y(e){return(0,c.default)(e,h)}var h=function(){function e(e){e&&e.assumeValid?this.__validationErrors=[]:(this.__validationErrors=void 0,(0,s.default)(e)||(0,u.default)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,u.default)(0,'"types" must be Array if provided but got: '.concat((0,a.default)(e.types),".")),!e.directives||Array.isArray(e.directives)||(0,u.default)(0,'"directives" must be Array if provided but got: '+"".concat((0,a.default)(e.directives),".")),!e.allowedLegacyNames||Array.isArray(e.allowedLegacyNames)||(0,u.default)(0,'"allowedLegacyNames" must be Array if provided but got: '+"".concat((0,a.default)(e.allowedLegacyNames),"."))),this.extensions=e.extensions&&(0,o.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.__allowedLegacyNames=e.allowedLegacyNames||[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives||p.specifiedDirectives;var n=[this._queryType,this._mutationType,this._subscriptionType,f.__Schema].concat(e.types),t=Object.create(null);t=n.reduce(m,t),t=this._directives.reduce(T,t),this._typeMap=t,this._possibleTypeMap=Object.create(null),this._implementations=Object.create(null);for(var r=0,c=(0,i.default)(this._typeMap);r1&&l>1&&r[s-1]===i[l-2]&&r[s-2]===i[l-1]&&(t[s][l]=Math.min(t[s][l],t[s-2][l-2]+f))}return t[a][o]}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){for(var t=Object.create(null),i=e.length/2,a=0;a",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=r},function(e,n,t){"use strict";function r(e){for(var n=null,t=1;t0&&a(n[0]);)n.shift();for(;n.length>0&&a(n[n.length-1]);)n.pop();return n.join("\n")},n.getBlockStringIndentation=r,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],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],a='"'===e[e.length-1],o=!r||a||t,u="";!o||r&&i||(u+="\n"+n);u+=n?e.replace(/\n/g,"\n"+n):e,o&&(u+="\n");return'"""'+u.replace(/"""/g,'\\"""')+'"""'}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parse=function(e,n){return new d(e,n).parseDocument()},n.parseValue=function(e,n){var t=new d(e,n);t.expectToken(f.TokenKind.SOF);var r=t.parseValueLiteral(!1);return t.expectToken(f.TokenKind.EOF),r},n.parseType=function(e,n){var t=new d(e,n);t.expectToken(f.TokenKind.SOF);var r=t.parseTypeReference();return t.expectToken(f.TokenKind.EOF),r};var r=p(t(13)),i=p(t(59)),a=p(t(152)),o=t(187),u=t(18),c=t(184),s=t(186),l=t(123),f=t(120);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(e,n){var t="string"==typeof e?new c.Source(e):e;t instanceof c.Source||(0,i.default)(0,"Must provide Source. Received: ".concat((0,r.default)(t))),this._lexer=(0,s.createLexer)(t),this._options=n||{}}var n=e.prototype;return n.parseName=function(){var e=this.expectToken(f.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(f.TokenKind.SOF,this.parseDefinition,f.TokenKind.EOF),loc:this.loc(e)}},n.parseDefinition=function(){if(this.peek(f.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(f.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(f.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(f.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(f.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(f.TokenKind.PAREN_L,this.parseVariableDefinition,f.TokenKind.PAREN_R)},n.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:u.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(f.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(f.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(f.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(f.TokenKind.BRACE_L,this.parseSelection,f.TokenKind.BRACE_R),loc:this.loc(e)}},n.parseSelection=function(){return this.peek(f.TokenKind.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var e,n,t=this._lexer.token,r=this.parseName();return this.expectOptionalToken(f.TokenKind.COLON)?(e=r,n=this.parseName()):n=r,{kind:u.Kind.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(f.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},n.parseArguments=function(e){var n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(f.TokenKind.PAREN_L,n,f.TokenKind.PAREN_R)},n.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(f.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(f.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},n.parseFragment=function(){var e=this._lexer.token;this.expectToken(f.TokenKind.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(f.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 f.TokenKind.BRACKET_L:return this.parseList(e);case f.TokenKind.BRACE_L:return this.parseObject(e);case f.TokenKind.INT:return this._lexer.advance(),{kind:u.Kind.INT,value:n.value,loc:this.loc(n)};case f.TokenKind.FLOAT:return this._lexer.advance(),{kind:u.Kind.FLOAT,value:n.value,loc:this.loc(n)};case f.TokenKind.STRING:case f.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case f.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 f.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===f.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(f.TokenKind.BRACKET_L,(function(){return n.parseValueLiteral(e)}),f.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(f.TokenKind.BRACE_L,(function(){return n.parseObjectField(e)}),f.TokenKind.BRACE_R),loc:this.loc(t)}},n.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(f.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(f.TokenKind.AT);)n.push(this.parseDirective(e));return n},n.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(f.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(f.TokenKind.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(f.TokenKind.BRACKET_R),e={kind:u.Kind.LIST_TYPE,type:e,loc:this.loc(n)}):e=this.parseNamedType(),this.expectOptionalToken(f.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===f.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(f.TokenKind.STRING)||this.peek(f.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(f.TokenKind.BRACE_L,this.parseOperationTypeDefinition,f.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(f.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(),r=this.parseDirectives(!0);return{kind:u.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:r,loc:this.loc(e)}},n.parseObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:u.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:a,loc:this.loc(e)}},n.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(f.TokenKind.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(f.TokenKind.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(f.TokenKind.NAME))}return e},n.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(f.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===f.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(f.TokenKind.BRACE_L,this.parseFieldDefinition,f.TokenKind.BRACE_R)},n.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseArgumentDefs();this.expectToken(f.TokenKind.COLON);var i=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:u.Kind.FIELD_DEFINITION,description:n,name:t,arguments:r,type:i,directives:a,loc:this.loc(e)}},n.parseArgumentDefs=function(){return this.optionalMany(f.TokenKind.PAREN_L,this.parseInputValueDef,f.TokenKind.PAREN_R)},n.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(f.TokenKind.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(f.TokenKind.EQUALS)&&(r=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:u.Kind.INPUT_VALUE_DEFINITION,description:n,name:t,type:i,defaultValue:r,directives:a,loc:this.loc(e)}},n.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:u.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,directives:r,fields:i,loc:this.loc(e)}},n.parseUnionTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:u.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:r,types:i,loc:this.loc(e)}},n.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(f.TokenKind.EQUALS)){this.expectOptionalToken(f.TokenKind.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(f.TokenKind.PIPE))}return e},n.parseEnumTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:u.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:r,values:i,loc:this.loc(e)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(f.TokenKind.BRACE_L,this.parseEnumValueDefinition,f.TokenKind.BRACE_R)},n.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseDirectives(!0);return{kind:u.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:r,loc:this.loc(e)}},n.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:u.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:r,fields:i,loc:this.loc(e)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(f.TokenKind.BRACE_L,this.parseInputValueDef,f.TokenKind.BRACE_R)},n.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===f.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(f.TokenKind.BRACE_L,this.parseOperationTypeDefinition,f.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(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:u.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:r,fields:i,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),r=this.parseFieldsDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.INTERFACE_TYPE_EXTENSION,name:n,directives:t,fields:r,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),r=this.parseUnionMemberTypes();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:r,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),r=this.parseEnumValuesDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:r,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),r=this.parseInputFieldsDefinition();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:u.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:r,loc:this.loc(e)}},n.parseDirectiveDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(f.TokenKind.AT);var t=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:u.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:r,repeatable:i,locations:a,loc:this.loc(e)}},n.parseDirectiveLocations=function(){this.expectOptionalToken(f.TokenKind.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(f.TokenKind.PIPE));return e},n.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(void 0!==l.DirectiveLocation[n.value])return n;throw this.unexpected(e)},n.loc=function(e){if(!this._options.noLocation)return new v(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,o.syntaxError)(this._lexer.source,n.start,"Expected ".concat(e,", found ").concat(y(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!==f.TokenKind.NAME||n.value!==e)throw(0,o.syntaxError)(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(y(n)));this._lexer.advance()},n.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===f.TokenKind.NAME&&n.value===e&&(this._lexer.advance(),!0)},n.unexpected=function(e){var n=e||this._lexer.token;return(0,o.syntaxError)(this._lexer.source,n.start,"Unexpected ".concat(y(n)))},n.any=function(e,n,t){this.expectToken(e);for(var r=[];!this.expectOptionalToken(t);)r.push(n.call(this));return r},n.optionalMany=function(e,n,t){if(this.expectOptionalToken(e)){var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r}return[]},n.many=function(e,n,t){this.expectToken(e);var r=[];do{r.push(n.call(this))}while(!this.expectOptionalToken(t));return r},e}();function v(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}function y(e){var n=e.value;return n?"".concat(e.kind,' "').concat(n,'"'):e.kind}(0,a.default)(v,(function(){return{start:this.start,end:this.end}}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DirectiveLocation=void 0;var r=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=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return void 0===e||e!=e}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addPath=function(e,n){return{prev:e,key:n}},n.pathToArray=function(e){var n=[],t=e;for(;t;)n.push(t.key),t=t.prev;return n.reverse()}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=Array.prototype.find?function(e,n){return Array.prototype.find.call(e,n)}:function(e,n){for(var t=0;t0)return this._typeStack[this._typeStack.length-1]},n.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},n.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},n.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},n.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},n.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},n.getDirective=function(){return this._directive},n.getArgument=function(){return this._argument},n.getEnumValue=function(){return this._enumValue},n.enter=function(e){var n=this._schema;switch(e.kind){case a.Kind.SELECTION_SET:var t=(0,o.getNamedType)(this.getType());this._parentTypeStack.push((0,o.isCompositeType)(t)?t:void 0);break;case a.Kind.FIELD:var r,u,s=this.getParentType();s&&(r=this._getFieldDef(n,s,e))&&(u=r.type),this._fieldDefStack.push(r),this._typeStack.push((0,o.isOutputType)(u)?u:void 0);break;case a.Kind.DIRECTIVE:this._directive=n.getDirective(e.name.value);break;case a.Kind.OPERATION_DEFINITION:var l;"query"===e.operation?l=n.getQueryType():"mutation"===e.operation?l=n.getMutationType():"subscription"===e.operation&&(l=n.getSubscriptionType()),this._typeStack.push((0,o.isObjectType)(l)?l:void 0);break;case a.Kind.INLINE_FRAGMENT:case a.Kind.FRAGMENT_DEFINITION:var f=e.typeCondition,p=f?(0,c.typeFromAST)(n,f):(0,o.getNamedType)(this.getType());this._typeStack.push((0,o.isOutputType)(p)?p:void 0);break;case a.Kind.VARIABLE_DEFINITION:var d=(0,c.typeFromAST)(n,e.type);this._inputTypeStack.push((0,o.isInputType)(d)?d:void 0);break;case a.Kind.ARGUMENT:var v,y,h=this.getDirective()||this.getFieldDef();h&&(v=(0,i.default)(h.args,(function(n){return n.name===e.name.value})))&&(y=v.type),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push((0,o.isInputType)(y)?y:void 0);break;case a.Kind.LIST:var m=(0,o.getNullableType)(this.getInputType()),T=(0,o.isListType)(m)?m.ofType:m;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,o.isInputType)(T)?T:void 0);break;case a.Kind.OBJECT_FIELD:var g,b,E=(0,o.getNamedType)(this.getInputType());(0,o.isInputObjectType)(E)&&(b=E.getFields()[e.name.value])&&(g=b.type),this._defaultValueStack.push(b?b.defaultValue:void 0),this._inputTypeStack.push((0,o.isInputType)(g)?g:void 0);break;case a.Kind.ENUM:var O,_=(0,o.getNamedType)(this.getInputType());(0,o.isEnumType)(_)&&(O=_.getValue(e.value)),this._enumValue=O}},n.leave=function(e){switch(e.kind){case a.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case a.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case a.Kind.DIRECTIVE:this._directive=null;break;case a.Kind.OPERATION_DEFINITION:case a.Kind.INLINE_FRAGMENT:case a.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case a.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case a.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case a.Kind.LIST:case a.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case a.Kind.ENUM:this._enumValue=null}},e}();function l(e,n,t){var r=t.name.value;return r===u.SchemaMetaFieldDef.name&&e.getQueryType()===n?u.SchemaMetaFieldDef:r===u.TypeMetaFieldDef.name&&e.getQueryType()===n?u.TypeMetaFieldDef:r===u.TypeNameMetaFieldDef.name&&(0,o.isCompositeType)(n)?u.TypeNameMetaFieldDef:(0,o.isObjectType)(n)||(0,o.isInterfaceType)(n)?n.getFields()[r]:void 0}n.TypeInfo=s},function(e,n,t){var r=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n0;){var a=i.pop();t=e[a]}return t}(n,f);if(d){var v=d(l,e);u[s]=void 0===v?o.recreateType(l,c,!t):null===v?null:o.recreateType(v,c,!t)}else u[s]=o.recreateType(l,c,!t)}})),new a.GraphQLSchema({query:s?u[s.name]:null,mutation:l?u[l.name]:null,subscription:f?u[f.name]:null,types:Object.keys(u).map((function(e){return u[e]}))})}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6),i=t(286),a=t(200),o=t(201);function u(e){switch(e.kind){case r.Kind.STRING:case r.Kind.BOOLEAN:return e.value;case r.Kind.INT:case r.Kind.FLOAT:return parseFloat(e.value);case r.Kind.OBJECT:var n=Object.create(null);return e.fields.forEach((function(e){n[e.name.value]=u(e.value)})),n;case r.Kind.LIST:return e.values.map(u);default:return null}}function c(e,n,t){var r={};return Object.keys(e).forEach((function(i){var a=e[i];null!==n(a.type)&&(r[i]=s(e[i],n,t))})),r}function s(e,n,t){return{type:n(e.type),args:l(e.args,n),resolve:t?e.resolve:o.default,subscribe:t?e.subscribe:null,description:e.description,deprecationReason:e.deprecationReason,astNode:e.astNode}}function l(e,n){var t={};return e.forEach((function(e){var r=f(e,n);r&&(t[r[0]]=r[1])})),t}function f(e,n){var t=n(e.type);return null===t?null:[e.name,{type:t,defaultValue:e.defaultValue,description:e.description}]}function p(e,n){var t={};return Object.keys(e).forEach((function(r){var i=e[r];null!==n(i.type)&&(t[r]=d(e[r],n))})),t}function d(e,n){return{type:n(e.type),defaultValue:e.defaultValue,description:e.description,astNode:e.astNode}}n.recreateType=function(e,n,t){if(e instanceof r.GraphQLObjectType){var o=e.getFields(),s=e.getInterfaces();return new r.GraphQLObjectType({name:e.name,description:e.description,astNode:e.astNode,isTypeOf:t?e.isTypeOf:void 0,fields:function(){return c(o,n,t)},interfaces:function(){return s.map((function(e){return n(e)}))}})}if(e instanceof r.GraphQLInterfaceType){var l=e.getFields();return new r.GraphQLInterfaceType({name:e.name,description:e.description,astNode:e.astNode,fields:function(){return c(l,n,t)},resolveType:t?e.resolveType:function(e,n,t){return a.default(e,t.schema)}})}if(e instanceof r.GraphQLUnionType)return new r.GraphQLUnionType({name:e.name,description:e.description,astNode:e.astNode,types:function(){return e.getTypes().map((function(e){return n(e)}))},resolveType:t?e.resolveType:function(e,n,t){return a.default(e,t.schema)}});if(e instanceof r.GraphQLInputObjectType)return new r.GraphQLInputObjectType({name:e.name,description:e.description,astNode:e.astNode,fields:function(){return p(e.getFields(),n)}});if(e instanceof r.GraphQLEnumType){var f=e.getValues(),d={};return f.forEach((function(e){d[e.name]={value:e.value,deprecationReason:e.deprecationReason,description:e.description,astNode:e.astNode}})),new r.GraphQLEnumType({name:e.name,description:e.description,astNode:e.astNode,values:d})}if(e instanceof r.GraphQLScalarType)return t||i.default(e)?e:new r.GraphQLScalarType({name:e.name,description:e.description,astNode:e.astNode,serialize:function(e){return e},parseValue:function(e){return e},parseLiteral:function(e){return u(e)}});throw new Error("Invalid type "+e)},n.recreateDirective=function(e,n){return new r.GraphQLDirective({name:e.name,description:e.description,locations:e.locations,args:l(e.args,n),astNode:e.astNode})},n.fieldMapToFieldConfigMap=c,n.createResolveType=function(e){var n=function(t){var i;if(t instanceof r.GraphQLList)return null===(i=n(t.ofType))?null:new r.GraphQLList(i);if(t instanceof r.GraphQLNonNull)return null===(i=n(t.ofType))?null:new r.GraphQLNonNull(i);if(!r.isNamedType(t))return t;var a=r.getNamedType(t).name;switch(a){case r.GraphQLInt.name:return r.GraphQLInt;case r.GraphQLFloat.name:return r.GraphQLFloat;case r.GraphQLString.name:return r.GraphQLString;case r.GraphQLBoolean.name:return r.GraphQLBoolean;case r.GraphQLID.name:return r.GraphQLID;default:return e(a,t)}};return n},n.fieldToFieldConfig=s,n.argsToFieldConfigArgumentMap=l,n.argumentToArgumentConfig=f,n.inputFieldMapToFieldConfigMap=p,n.inputFieldToFieldConfig=d},,,,,,,,,,,,,,,,,,,,,function(e,n,t){"use strict";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}})}},function(e,n,t){"use strict";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 r,i=(r=t(244))&&r.__esModule?r:{default:r}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){return Boolean(e&&"function"==typeof e.then)}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.validateSchema=h,n.assertValidSchema=function(e){var n=h(e);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))};var r=y(t(126)),i=y(t(155)),a=y(t(49)),o=y(t(111)),u=y(t(13)),c=t(5),s=t(246),l=t(156),f=t(50),p=t(64),d=t(95),v=t(11);function y(e){return e&&e.__esModule?e:{default:e}}function h(e){if((0,d.assertSchema)(e),e.__validationErrors)return e.__validationErrors;var n=new m(e);!function(e){var n=e.schema,t=n.getQueryType();t?(0,v.isObjectType)(t)||e.reportError("Query root type must be Object type, it cannot be ".concat((0,u.default)(t),"."),T(n,t,"query")):e.reportError("Query root type must be provided.",n.astNode);var r=n.getMutationType();r&&!(0,v.isObjectType)(r)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,u.default)(r),"."),T(n,r,"mutation"));var i=n.getSubscriptionType();i&&!(0,v.isObjectType)(i)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,u.default)(i),"."),T(n,i,"subscription"))}(n),function(e){for(var n=0,t=e.schema.getDirectives();n0&&(i+=' at "'.concat(y).concat((0,o.default)(e),'"')),r(new u.GraphQLError(i+"; "+t.message,v,void 0,void 0,void 0,t.originalError))}))},v=0;v=i)throw new u.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");c.push(e)}));if(0===c.length)return{coerced:v}}catch(e){c.push(e)}return{errors:c}},n.getArgumentValues=y,n.getDirectiveValues=function(e,n,t){var i=n.directives&&(0,r.default)(n.directives,(function(n){return n.name.value===e.name}));if(i)return y(e,i,t)};var r=v(t(126)),i=v(t(94)),a=v(t(13)),o=v(t(192)),u=t(5),c=t(18),s=t(63),l=t(11),f=t(67),p=t(159),d=t(193);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,n,t){for(var r={},o=(0,i.default)(n.arguments||[],(function(e){return e.name.value})),f=0,d=e.args;f2&&void 0!==arguments[2]?arguments[2]:s.specifiedRules,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new c.TypeInfo(e),f=arguments.length>4?arguments[4]:void 0;n||(0,i.default)(0,"Must provide document"),(0,u.assertValidSchema)(e);var p=Object.freeze({}),d=[],v=f&&f.maxErrors,y=new l.ValidationContext(e,n,r,(function(e){if(null!=v&&d.length>=v)throw d.push(new a.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),p;d.push(e)})),h=(0,o.visitInParallel)(t.map((function(e){return e(y)})));try{(0,o.visit)(n,(0,o.visitWithTypeInfo)(r,h))}catch(e){if(e!==p)throw e}return d},n.validateSDL=p,n.assertValidSDL=function(e){var n=p(e);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))},n.assertValidSDLExtension=function(e,n){var t=p(e,n);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))},n.ABORT_VALIDATION=void 0;var r,i=(r=t(59))&&r.__esModule?r:{default:r},a=t(5),o=t(28),u=t(154),c=t(128),s=t(249),l=t(197);var f=Object.freeze({});function p(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.specifiedSDLRules,r=[],i=new l.SDLValidationContext(e,n,(function(e){r.push(e)})),a=t.map((function(e){return e(i)}));return(0,o.visit)(e,(0,o.visitInParallel)(a)),r}n.ABORT_VALIDATION=f},function(e,n,t){var r,i=this&&this.__extends||(r=function(e,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n0&&s.forEach((function(e){i[e.name].push(e)})),s):s})),f(e),i},n.getDeclaredDirectives=function(e,n){var t=Object.create(null);return d(e.getDirectives(),(function(e){t[e.name]=e})),d(n,(function(n,r){var i=n.getDirectiveDeclaration(r,e);i&&(t[r]=i)})),d(t,(function(e,t){if(c.call(n,t)){var r=n[t];d(e.locations,(function(e){var n=function(e){return"visit"+e.replace(/([^_]*)_?/g,(function(e,n){return n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()}))}(e);if(s.implementsVisitorMethod(n)&&!r.implementsVisitorMethod(n))throw new Error("SchemaDirectiveVisitor for @"+t+" must implement "+n+" method")}))}})),t},n}(s);function d(e,n){Object.keys(e).forEach((function(t){n(e[t],t)}))}function v(e,n){var t=0;Object.keys(e).forEach((function(r){var i=n(e[r],r);if(void 0!==i)return null===i?(delete e[r],void t++):void(e[r]=i)})),t>0&&Array.isArray(e)&&e.splice(0).forEach((function(n){e.push(n)}))}function y(e){switch(e.kind){case o.Kind.NULL:return null;case o.Kind.INT:return parseInt(e.value,10);case o.Kind.FLOAT:return parseFloat(e.value);case o.Kind.STRING:case o.Kind.ENUM:case o.Kind.BOOLEAN:return e.value;case o.Kind.LIST:return e.values.map(y);case o.Kind.OBJECT:var n=Object.create(null);return e.fields.forEach((function(e){n[e.name.value]=y(e.value)})),n;default:throw new Error("Unexpected value kind: "+e.kind)}}n.SchemaDirectiveVisitor=p},,,,,,,,,,,,,,,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Source=void 0;var r=a(t(59)),i=a(t(151));function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e,n,t){this.body=e,this.name=n||"GraphQL request",this.locationOffset=t||{line:1,column:1},this.locationOffset.line>0||(0,r.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,r.default)(0,"column in locationOffset is 1-indexed and must be positive")};n.Source=o,(0,i.default)(o)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getLocation=function(e,n){var t,r=/\r\n|[\n\r]/g,i=1,a=n+1;for(;(t=r.exec(e.body))&&t.index=i)return new l(u.TokenKind.EOF,i,i,s,p,n);var y=r.charCodeAt(c);switch(y){case 33:return new l(u.TokenKind.BANG,c,c+1,s,p,n);case 35:return function(e,n,t,r,i){var a,o=e.body,c=n;do{a=o.charCodeAt(++c)}while(!isNaN(a)&&(a>31||9===a));return new l(u.TokenKind.COMMENT,n,c,t,r,i,o.slice(n+1,c))}(t,c,s,p,n);case 36:return new l(u.TokenKind.DOLLAR,c,c+1,s,p,n);case 38:return new l(u.TokenKind.AMP,c,c+1,s,p,n);case 40:return new l(u.TokenKind.PAREN_L,c,c+1,s,p,n);case 41:return new l(u.TokenKind.PAREN_R,c,c+1,s,p,n);case 46:if(46===r.charCodeAt(c+1)&&46===r.charCodeAt(c+2))return new l(u.TokenKind.SPREAD,c,c+3,s,p,n);break;case 58:return new l(u.TokenKind.COLON,c,c+1,s,p,n);case 61:return new l(u.TokenKind.EQUALS,c,c+1,s,p,n);case 64:return new l(u.TokenKind.AT,c,c+1,s,p,n);case 91:return new l(u.TokenKind.BRACKET_L,c,c+1,s,p,n);case 93:return new l(u.TokenKind.BRACKET_R,c,c+1,s,p,n);case 123:return new l(u.TokenKind.BRACE_L,c,c+1,s,p,n);case 124:return new l(u.TokenKind.PIPE,c,c+1,s,p,n);case 125:return new l(u.TokenKind.BRACE_R,c,c+1,s,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,r,i){var a=e.body,o=a.length,c=n+1,s=0;for(;c!==o&&!isNaN(s=a.charCodeAt(c))&&(95===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++c;return new l(u.TokenKind.NAME,n,c,t,r,i,a.slice(n,c))}(t,c,s,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,r,i,o){var c=e.body,s=t,p=n,v=!1;45===s&&(s=c.charCodeAt(++p));if(48===s){if((s=c.charCodeAt(++p))>=48&&s<=57)throw(0,a.syntaxError)(e,p,"Invalid number, unexpected digit after 0: ".concat(f(s),"."))}else p=d(e,p,s),s=c.charCodeAt(p);46===s&&(v=!0,s=c.charCodeAt(++p),p=d(e,p,s),s=c.charCodeAt(p));69!==s&&101!==s||(v=!0,43!==(s=c.charCodeAt(++p))&&45!==s||(s=c.charCodeAt(++p)),p=d(e,p,s),s=c.charCodeAt(p));if(46===s||69===s||101===s)throw(0,a.syntaxError)(e,p,"Invalid number, expected digit but got: ".concat(f(s),"."));return new l(v?u.TokenKind.FLOAT:u.TokenKind.INT,n,p,r,i,o,c.slice(n,p))}(t,c,y,s,p,n);case 34:return 34===r.charCodeAt(c+1)&&34===r.charCodeAt(c+2)?function(e,n,t,r,i,c){var s=e.body,p=n+3,d=p,v=0,y="";for(;p=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw(0,a.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(f(o),"."))}function v(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}(0,i.default)(l,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.syntaxError=function(e,n,t){return new r.GraphQLError("Syntax Error: ".concat(t),void 0,e,[n])};var r=t(5)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.locatedError=function(e,n,t){if(e&&Array.isArray(e.path))return e;return new r.GraphQLError(e&&e.message,e&&e.nodes||n,e&&e.source,e&&e.positions,t,e)};var r=t(5)},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){if(null===Object.getPrototypeOf(e))return e;for(var n=Object.create(null),t=0,r=(0,i.default)(e);t2&&void 0!==arguments[2]?arguments[2]:y;return h(e,n,t)};var r=t(47),i=v(t(49)),a=v(t(13)),o=v(t(48)),u=v(t(113)),c=v(t(65)),s=v(t(114)),l=v(t(192)),f=t(125),p=t(5),d=t(11);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,n,t){var r="Invalid value "+(0,a.default)(n);throw e.length>0&&(r+=' at "value'.concat((0,l.default)(e),'": ')),t.message=r+": "+t.message,t}function h(e,n,t,l){if((0,d.isNonNullType)(n))return null!=e?h(e,n.ofType,t,l):void t((0,f.pathToArray)(l),e,new p.GraphQLError("Expected non-nullable type ".concat((0,a.default)(n)," not to be null.")));if(null==e)return null;if((0,d.isListType)(n)){var v=n.ofType;if((0,r.isCollection)(e)){var y=[];return(0,r.forEach)(e,(function(e,n){y.push(h(e,v,t,(0,f.addPath)(l,n)))})),y}return[h(e,v,t,l)]}if((0,d.isInputObjectType)(n)){if(!(0,c.default)(e))return void t((0,f.pathToArray)(l),e,new p.GraphQLError("Expected type ".concat(n.name," to be an object.")));for(var m={},T=n.getFields(),g=0,b=(0,i.default)(T);g0)return{errors:v};try{n=(0,a.parse)(r)}catch(e){return{errors:[e]}}var y=(0,o.validate)(t,n);return y.length>0?{errors:y}:(0,c.execute)({schema:t,document:n,rootValue:i,contextValue:s,variableValues:l,operationName:f,fieldResolver:p,typeResolver:d})}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.badValueMessage=d,n.badEnumValueMessage=v,n.requiredFieldMessage=y,n.unknownFieldMessage=h,n.ValuesOfCorrectType=function(e){return{NullValue:function(n){var t=e.getInputType();(0,f.isNonNullType)(t)&&e.reportError(new s.GraphQLError(d((0,a.default)(t),(0,l.print)(n)),n))},ListValue:function(n){var t=(0,f.getNullableType)(e.getParentInputType());if(!(0,f.isListType)(t))return m(e,n),!1},ObjectValue:function(n){var t=(0,f.getNamedType)(e.getInputType());if(!(0,f.isInputObjectType)(t))return m(e,n),!1;for(var o=(0,i.default)(n.fields,(function(e){return e.name.value})),u=0,c=(0,r.default)(t.getFields());u0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&(l={kind:o.Kind.SELECTION_SET,selections:c});var f={kind:o.Kind.FIELD,alias:null,arguments:s,selectionSet:l,name:{kind:o.Kind.NAME,value:e}},p={kind:o.Kind.SELECTION_SET,selections:[f]},d={kind:o.Kind.OPERATION_DEFINITION,operation:n,variableDefinitions:i,selectionSet:p,name:u};return{kind:o.Kind.DOCUMENT,definitions:a([d],r)}}(e.fieldName,h,n.fieldNodes,Object.keys(n.fragments).map((function(e){return n.fragments[e]})),n.operation.variableDefinitions,n.operation.name),T={document:m,variables:n.variableValues},g=a(e.transforms||[],[new d.default(n.schema,e.schema)]),n.mergeInfo&&n.mergeInfo.fragments&&g.push(new v.default(e.schema,n.mergeInfo.fragments)),g=g.concat([new c.default(e.schema,r),new s.default(e.schema),new l.default(e.schema),new f.default(n,e.fieldName)]),o.isEnumType(e.info.returnType)&&(g=g.concat(new y.default(e.info.returnType))),b=u.applyRequestTransforms(T,g),!e.skipValidation&&(E=o.validate(e.schema,b.document)).length>0)throw E;return"query"!==h&&"mutation"!==h?[3,2]:(O=u.applyResultTransforms,[4,o.execute(e.schema,b.document,n.rootValue,e.context,b.variables)]);case 1:return[2,O.apply(void 0,[i.sent(),g])];case 2:return"subscription"!==h?[3,4]:[4,o.subscribe(e.schema,b.document,n.rootValue,e.context,b.variables)];case 3:return _=i.sent(),[2,p.default(_,(function(e){var n,t=u.applyResultTransforms(e,g);return(n={})[Object.keys(e.data)[0]]=t,n}))];case 4:return[2]}}))}))}n.default=function(e){for(var n=[],t=1;t120){for(var v=Math.floor(l/80),y=l%80,h=[],m=0;m1&&"_"===e[0]&&"_"===e[1]?new a.GraphQLError('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'),n):o.test(e)?void 0:new a.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'),n)}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,n){for(var t=Object.create(null),r=0,a=(0,i.default)(e);r1&&e.reportError(new r.GraphQLError("This anonymous operation must be the only defined operation.",t))}}};var r=t(5),i=t(18);function a(){return"This anonymous operation must be the only defined operation."}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.singleFieldOnlyMessage=i,n.SingleFieldSubscriptions=function(e){return{OperationDefinition:function(n){"subscription"===n.operation&&1!==n.selectionSet.selections.length&&e.reportError(new r.GraphQLError(i(n.name&&n.name.value),n.selectionSet.selections.slice(1)))}}};var r=t(5);function i(e){return e?'Subscription "'.concat(e,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field."}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unknownTypeMessage=c,n.KnownTypeNames=function(e){for(var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null),u=0,l=e.getDocument().definitions;u1)for(var f=0;f0)return[[n,e.map((function(e){return e[0]}))],e.reduce((function(e,n){var t=n[1];return e.concat(t)}),[t]),e.reduce((function(e,n){var t=n[2];return e.concat(t)}),[r])]}(function(e,n,t,r,i,a,o,u){var c=[],s=m(e,n,i,a),l=s[0],f=s[1],p=m(e,n,o,u),h=p[0],T=p[1];if(y(e,c,n,t,r,l,h),0!==T.length)for(var g=Object.create(null),b=0;b0&&e.reportError(new r.GraphQLError("Must provide only one schema definition.",n)),++i)}}};var r=t(5);function i(){return"Must provide only one schema definition."}function a(){return"Cannot define a new schema within a schema extension."}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.duplicateOperationTypeMessage=i,n.existedOperationTypeMessage=a,n.UniqueOperationTypes=function(e){var n=e.getSchema(),t=Object.create(null),o=n?{query:n.getQueryType(),mutation:n.getMutationType(),subscription:n.getSubscriptionType()}:{};return{SchemaDefinition:u,SchemaExtension:u};function u(n){if(n.operationTypes)for(var u=0,c=n.operationTypes||[];u0?function(){return t.map((function(e){return n.getNamedType(e)}))}:[],a=r&&r.length>0?function(){return S(r,(function(e){return n.buildField(e)}))}:Object.create(null);return new b.GraphQLObjectType({name:e.name.value,description:L(e,this._options),interfaces:i,fields:a,astNode:e})},n._makeInterfaceDef=function(e){var n=this,t=e.fields,r=t&&t.length>0?function(){return S(t,(function(e){return n.buildField(e)}))}:Object.create(null);return new b.GraphQLInterfaceType({name:e.name.value,description:L(e,this._options),fields:r,astNode:e})},n._makeEnumDef=function(e){var n=this,t=e.values||[];return new b.GraphQLEnumType({name:e.name.value,description:L(e,this._options),values:S(t,(function(e){return n.buildEnumValue(e)})),astNode:e})},n._makeUnionDef=function(e){var n=this,t=e.types,r=t&&t.length>0?function(){return t.map((function(e){return n.getNamedType(e)}))}:[];return new b.GraphQLUnionType({name:e.name.value,description:L(e,this._options),types:r,astNode:e})},n._makeScalarDef=function(e){return new b.GraphQLScalarType({name:e.name.value,description:L(e,this._options),astNode:e})},n._makeInputObjectDef=function(e){var n=this,t=e.fields;return new b.GraphQLInputObjectType({name:e.name.value,description:L(e,this._options),fields:t?function(){return S(t,(function(e){return n.buildInputField(e)}))}:Object.create(null),astNode:e})},e}();function S(e,n){return(0,c.default)(e,(function(e){return e.name.value}),n)}function D(e){var n=(0,y.getDirectiveValues)(g.GraphQLDeprecatedDirective,e);return n&&n.reason}function L(e,n){if(e.description)return e.description.value;if(n&&n.commentDescriptions){var t=function(e){var n=e.loc;if(!n)return;var t=[],r=n.startToken.prev;for(;r&&r.kind===l.TokenKind.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);t.push(i),r=r.prev}return t.reverse().join("\n")}(e);if(void 0!==t)return(0,d.dedentBlockStringValue)("\n"+t)}}n.ASTDefinitionBuilder=I},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.coerceValue=function(e,n,t,c){var s=[],l=(0,u.coerceInputValue)(e,n,(function(e,n,u){var l="Invalid value "+(0,r.default)(n),f=[].concat((0,a.pathToArray)(c),e);f.length>0&&(l+=' at "value'.concat((0,i.default)(f),'"')),s.push(new o.GraphQLError(l+": "+u.message,t,void 0,void 0,void 0,u.originalError))}));return s.length>0?{errors:s,value:void 0}:{errors:void 0,value:l}};var r=c(t(13)),i=c(t(192)),a=t(125),o=t(5),u=t(193);function c(e){return e&&e.__esModule?e:{default:e}}},function(e,n){function t(e){return e&&"object"==typeof e&&!Array.isArray(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=function e(n,r){var i=Object.assign({},n);return t(n)&&t(r)&&Object.keys(r).forEach((function(a){var o,u;t(r[a])?a in n?i[a]=e(n[a],r[a]):Object.assign(i,((o={})[a]=r[a],o)):Object.assign(i,((u={})[a]=r[a],u))})),i}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(6);n.specifiedScalarTypes=[r.GraphQLString,r.GraphQLInt,r.GraphQLFloat,r.GraphQLBoolean,r.GraphQLID],n.default=function(e){return r.isNamedType(e)&&(e.name===r.GraphQLString.name||e.name===r.GraphQLInt.name||e.name===r.GraphQLFloat.name||e.name===r.GraphQLBoolean.name||e.name===r.GraphQLID.name)}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getResponseKeyFromInfo=function(e){return e.fieldNodes[0].alias?e.fieldNodes[0].alias.value:e.fieldName}},function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var r=t(79),i=t(79);n.execute=i.execute,n.default=function(e){return function(n){return r.makePromise(r.execute(e,n))}}},function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){if(!e)return!0;for(var n in e)if(Object.hasOwnProperty.call(e,n))return!1;return!0}},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0){var o=u(a,r);c=c.concat(o)}}})),c!==e.selections)return r(r({},e),{selections:c})}},a)))}(this.targetSchema,e.document,this.mapping);return r(r({},e),{document:n})},e}();function o(e){if(e.trim().startsWith("fragment"))for(var n=0,t=i.parse(e).definitions;n2&&void 0!==arguments[2]?arguments[2]:"";return 0===n.length?"":n.every((function(e){return!e.description}))?"("+n.map(O).join(", ")+")":"(\n"+n.map((function(n,r){return N(e,n," "+t,!r)+" "+t+O(n)})).join("\n")+"\n"+t+")"}function O(e){var n=(0,d.astFromValue)(e.defaultValue,e.type),t=e.name+": "+String(e.type);return n&&(t+=" = ".concat((0,u.print)(n))),t}function _(e){if(!e.isDeprecated)return"";var n=e.deprecationReason,t=(0,d.astFromValue)(n,l.GraphQLString);return t&&""!==n&&n!==f.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,u.print)(t)+")":" @deprecated"}function N(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!n.description)return"";var i=S(n.description,120-t.length);if(e&&e.commentDescriptions)return I(i,t,r);var a=i.join("\n"),o=a.length>70,u=(0,c.printBlockString)(a,"",o),s=t&&!r?"\n"+t:t;return s+u.replace(/\n/g,"\n"+t)+"\n"}function I(e,n,t){for(var r=n&&!t?"\n":"",i=0;i0&&(t="\n"+t);var i=t[t.length-1];return('"'===i&&'\\"""'!==t.slice(-4)||"\\"===i)&&(t+="\n"),'"""'+t+'"""'}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.findBreakingChanges=function(e,n){return h(e,n).filter((function(e){return e.type in v}))},n.findDangerousChanges=function(e,n){return h(e,n).filter((function(e){return e.type in y}))},n.DangerousChangeType=n.BreakingChangeType=void 0;var r=f(t(49)),i=f(t(94)),a=f(t(13)),o=f(t(48)),u=t(63),c=t(28),s=t(11),l=t(157);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var v=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",INTERFACE_REMOVED_FROM_OBJECT:"INTERFACE_REMOVED_FROM_OBJECT",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"});n.BreakingChangeType=v;var y=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",INTERFACE_ADDED_TO_OBJECT:"INTERFACE_ADDED_TO_OBJECT",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function h(e,n){return[].concat(function(e,n){for(var t=[],i=D((0,r.default)(e.getTypeMap()),(0,r.default)(n.getTypeMap())),a=0,o=i.removed;a0&&a(e,n,t),!c||r.getNamedType(e.type)instanceof r.GraphQLScalarType||a(e,n,t)}))}},function(e,n,t){var r,i=this&&this.__extends||(r=function(e,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)},function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),a=this&&this.__awaiter||function(e,n,t,r){return new(t||(t=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function u(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,u)}c((r=r.apply(e,n||[])).next())}))},o=this&&this.__generator||function(e,n){var t,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&(l=r.extendSchema(l,f,c)),l}},function(e,n,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t.5})),o.set("ID",(function(){return i.v4()})),n.addMockFunctionsToSchema=u;var f=function(){function e(e,n){if(this.len=e,void 0!==n){if("function"!=typeof n)throw new Error("Second argument to MockList must be a function or undefined");this.wrappedFunction=n}}return e.prototype.mock=function(n,t,i,a,o,u){var c;c=Array.isArray(this.len)?new Array(this.randint(this.len[0],this.len[1])):new Array(this.len);for(var s=0;s0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0&&b.push(c)}else{if(!Array.isArray(e))throw new Error("Invalid schema passed");e.forEach((function(e){d(T,e.name,{type:e})}))}}));var N=function(e,n){return{delegate:function(t,r,a,o,u,s){console.warn("`mergeInfo.delegate` is deprecated. Use `mergeInfo.delegateToSchema and pass explicit schema instances.");var f=function(e,n,t){for(var r=0,i=e;r1;){var a=r.shift();t[a]&&(t=t[a])}t[r[0]]=this.extractor(t[r[0]])}return{data:n,errors:e.errors}},e}();n.default=o}]]);