altair-static 4.1.0 → 4.2.2

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.
Files changed (98) hide show
  1. package/build/dist/100.js +1 -0
  2. package/build/dist/108.js +1 -0
  3. package/build/dist/267.js +1 -0
  4. package/build/dist/379.js +1 -0
  5. package/build/dist/3rdpartylicenses.txt +844 -93
  6. package/build/dist/471.js +1 -0
  7. package/build/dist/527.js +1 -0
  8. package/build/dist/604.js +1 -0
  9. package/build/dist/729.js +1 -0
  10. package/build/dist/747.js +1 -0
  11. package/build/dist/790.js +1 -0
  12. package/build/dist/794.js +1 -0
  13. package/build/dist/873.js +1 -0
  14. package/build/dist/929.js +1 -0
  15. package/build/dist/934.js +1 -0
  16. package/build/dist/assets/i18n/ach-UG.json +157 -153
  17. package/build/dist/assets/i18n/cs-CZ.json +4 -0
  18. package/build/dist/assets/i18n/da-DK.json +4 -0
  19. package/build/dist/assets/i18n/de-DE.json +4 -0
  20. package/build/dist/assets/i18n/default.json +10 -1
  21. package/build/dist/assets/i18n/en-US.json +4 -0
  22. package/build/dist/assets/i18n/es-ES.json +4 -0
  23. package/build/dist/assets/i18n/fi-FI.json +4 -0
  24. package/build/dist/assets/i18n/fr-FR.json +4 -0
  25. package/build/dist/assets/i18n/hu-HU.json +4 -0
  26. package/build/dist/assets/i18n/it-IT.json +4 -0
  27. package/build/dist/assets/i18n/ja-JP.json +4 -0
  28. package/build/dist/assets/i18n/ko-KR.json +4 -0
  29. package/build/dist/assets/i18n/nl-NL.json +4 -0
  30. package/build/dist/assets/i18n/no-NO.json +4 -0
  31. package/build/dist/assets/i18n/pl-PL.json +4 -0
  32. package/build/dist/assets/i18n/pt-BR.json +4 -0
  33. package/build/dist/assets/i18n/pt-PT.json +4 -0
  34. package/build/dist/assets/i18n/ro-RO.json +4 -0
  35. package/build/dist/assets/i18n/ru-RU.json +30 -26
  36. package/build/dist/assets/i18n/sr-SP.json +4 -0
  37. package/build/dist/assets/i18n/sv-SE.json +4 -0
  38. package/build/dist/assets/i18n/tr-TR.json +4 -0
  39. package/build/dist/assets/i18n/uk-UA.json +4 -0
  40. package/build/dist/assets/i18n/vi-VN.json +4 -0
  41. package/build/dist/assets/i18n/zh-CN.json +12 -8
  42. package/build/dist/assets/i18n/zh-TW.json +4 -0
  43. package/build/dist/index.html +3 -3
  44. package/build/dist/main.js +1 -0
  45. package/build/dist/polyfills.js +1 -0
  46. package/build/dist/runtime.js +1 -0
  47. package/build/dist/styles.css +2 -2
  48. package/build/index.d.ts +1 -0
  49. package/build/index.js +4 -1
  50. package/build/index.test.d.ts +1 -0
  51. package/build/index.test.js +17 -6
  52. package/build/utils/get-altair-html.d.ts +1 -0
  53. package/build/utils/get-dist.d.ts +1 -0
  54. package/package.json +4 -4
  55. package/src/index.test.ts +21 -6
  56. package/src/index.ts +6 -3
  57. package/tsconfig.json +1 -0
  58. package/build/dist/108-es2018.js +0 -1
  59. package/build/dist/108-es5.js +0 -1
  60. package/build/dist/283-es2018.js +0 -1
  61. package/build/dist/283-es5.js +0 -1
  62. package/build/dist/379-es2018.js +0 -1
  63. package/build/dist/379-es5.js +0 -1
  64. package/build/dist/471-es2018.js +0 -1
  65. package/build/dist/471-es5.js +0 -1
  66. package/build/dist/527-es2018.js +0 -1
  67. package/build/dist/527-es5.js +0 -1
  68. package/build/dist/604-es2018.js +0 -1
  69. package/build/dist/604-es5.js +0 -1
  70. package/build/dist/672-es2018.js +0 -1
  71. package/build/dist/672-es5.js +0 -1
  72. package/build/dist/709-es2018.js +0 -1
  73. package/build/dist/709-es5.js +0 -1
  74. package/build/dist/729-es2018.js +0 -1
  75. package/build/dist/729-es5.js +0 -1
  76. package/build/dist/747-es2018.js +0 -1
  77. package/build/dist/747-es5.js +0 -1
  78. package/build/dist/790-es2018.js +0 -1
  79. package/build/dist/790-es5.js +0 -1
  80. package/build/dist/794-es2018.js +0 -1
  81. package/build/dist/794-es5.js +0 -1
  82. package/build/dist/866-es2018.js +0 -1
  83. package/build/dist/866-es5.js +0 -1
  84. package/build/dist/873-es2018.js +0 -1
  85. package/build/dist/873-es5.js +0 -1
  86. package/build/dist/934-es2018.js +0 -1
  87. package/build/dist/934-es5.js +0 -1
  88. package/build/dist/main-es2018.js +0 -1
  89. package/build/dist/main-es5.js +0 -1
  90. package/build/dist/polyfills-es2018.js +0 -1
  91. package/build/dist/polyfills-es5.js +0 -1
  92. package/build/dist/runtime-es2018.js +0 -1
  93. package/build/dist/runtime-es5.js +0 -1
  94. package/build/index.js.map +0 -1
  95. package/build/index.test.js.map +0 -1
  96. package/build/utils/get-altair-html.js.map +0 -1
  97. package/build/utils/get-dist.js.map +0 -1
  98. package/scripts/prepare_dist.js +0 -77
@@ -1 +0,0 @@
1
- !function(){"use strict";var e,n={15672:function(e,n,t){const r=Symbol("Comlink.proxy"),i=Symbol("Comlink.endpoint"),a=Symbol("Comlink.releaseProxy"),o=Symbol("Comlink.thrown"),s=e=>"object"==typeof e&&null!==e||"function"==typeof e,c=new Map([["proxy",{canHandle:e=>s(e)&&e[r],serialize(e){const{port1:n,port2:t}=new MessageChannel;return u(e,n),[t,[t]]},deserialize:e=>(e.start(),function(e,n){return f(e,[],void 0)}(e))}],["throw",{canHandle:e=>s(e)&&o in e,serialize({value:e}){let n;return n=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[n,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}}]]);function u(e,n=self){n.addEventListener("message",function t(i){if(!i||!i.data)return;const{id:a,type:s,path:c}=Object.assign({path:[]},i.data),p=(i.data.argumentList||[]).map(m);let f;try{const n=c.slice(0,-1).reduce((e,n)=>e[n],e),t=c.reduce((e,n)=>e[n],e);switch(s){case 0:f=t;break;case 1:n[c.slice(-1)[0]]=m(i.data.value),f=!0;break;case 2:f=t.apply(n,p);break;case 3:f=function(e){return Object.assign(e,{[r]:!0})}(new t(...p));break;case 4:{const{port1:n,port2:t}=new MessageChannel;u(e,t),f=function(e,n){return h.set(e,n),e}(n,[n])}break;case 5:f=void 0}}catch(d){f={value:d,[o]:0}}Promise.resolve(f).catch(e=>({value:e,[o]:0})).then(e=>{const[r,i]=y(e);n.postMessage(Object.assign(Object.assign({},r),{id:a}),i),5===s&&(n.removeEventListener("message",t),l(n))})}),n.start&&n.start()}function l(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function p(e){if(e)throw new Error("Proxy has been released and is not useable")}function f(e,n=[],t=function(){}){let r=!1;const o=new Proxy(t,{get(t,i){if(p(r),i===a)return()=>T(e,{type:5,path:n.map(e=>e.toString())}).then(()=>{l(e),r=!0});if("then"===i){if(0===n.length)return{then:()=>o};const t=T(e,{type:0,path:n.map(e=>e.toString())}).then(m);return t.then.bind(t)}return f(e,[...n,i])},set(t,i,a){p(r);const[o,s]=y(a);return T(e,{type:1,path:[...n,i].map(e=>e.toString()),value:o},s).then(m)},apply(t,a,o){p(r);const s=n[n.length-1];if(s===i)return T(e,{type:4}).then(m);if("bind"===s)return f(e,n.slice(0,-1));const[c,u]=v(o);return T(e,{type:2,path:n.map(e=>e.toString()),argumentList:c},u).then(m)},construct(t,i){p(r);const[a,o]=v(i);return T(e,{type:3,path:n.map(e=>e.toString()),argumentList:a},o).then(m)}});return o}function d(e){return Array.prototype.concat.apply([],e)}function v(e){const n=e.map(y);return[n.map(e=>e[0]),d(n.map(e=>e[1]))]}const h=new WeakMap;function y(e){for(const[n,t]of c)if(t.canHandle(e)){const[r,i]=t.serialize(e);return[{type:3,name:n,value:r},i]}return[{type:0,value:e},h.get(e)||[]]}function m(e){switch(e.type){case 3:return c.get(e.name).deserialize(e.value);case 0:return e.value}}function T(e,n,t){return new Promise(r=>{const i=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.addEventListener("message",function n(t){!t.data||!t.data.id||t.data.id!==i||(e.removeEventListener("message",n),r(t.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:i},n),t)})}var E=t(67729);function N(e,n){if(!Boolean(e))throw new Error(n)}var g=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"});function I(e){return(I="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){return"object"==I(e)&&null!==e}var b="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",_=("function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol,"function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag");function S(e,n){for(var t,r=/\r\n|[\n\r]/g,i=1,a=n+1;(t=r.exec(e.body))&&t.index<n;)i+=1,a=n+1-(t.index+t[0].length);return{line:i,column:a}}function A(e){return D(e.source,S(e.source,e.start))}function D(e,n){var t=e.locationOffset.column-1,r=x(t)+e.body,i=n.line-1,a=n.line+(e.locationOffset.line-1),o=n.column+(1===n.line?t:0),s="".concat(e.name,":").concat(a,":").concat(o,"\n"),c=r.split(/\r\n|[\n\r]/g),u=c[i];if(u.length>120){for(var l=Math.floor(o/80),p=o%80,f=[],d=0;d<u.length;d+=80)f.push(u.slice(d,d+80));return s+w([["".concat(a),f[0]]].concat(f.slice(1,l+1).map(function(e){return["",e]}),[[" ",x(p-1)+"^"],["",f[l+1]]]))}return s+w([["".concat(a-1),c[i-1]],["".concat(a),u],["",x(o-1)+"^"],["".concat(a+1),c[i+1]]])}function w(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=e[1];return function(e,n){return x(e-n.length)+n}(t,e[0])+(n?" | "+n:" |")}).join("\n")}function x(e){return Array(e+1).join(" ")}function k(e){return(k="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 F(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,n){return!n||"object"!==k(n)&&"function"!=typeof n?R(e):n}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){var n="function"==typeof Map?new Map:void 0;return(C=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return j(e,arguments,U(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),M(t,e)})(e)}function j(e,n,t){return(j=P()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(e,r));return t&&M(i,t.prototype),i}).apply(null,arguments)}function P(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function M(e,n){return(M=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&M(e,n)}(t,e);var n=function(e){var n=P();return function(){var t,r=U(e);if(n){var i=U(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return L(this,t)}}(t);function t(e,r,i,a,o,s,c){var u,l,p,f,d;(function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")})(this,t),d=n.call(this,e);var v,h=Array.isArray(r)?0!==r.length?r:void 0:r?[r]:void 0,y=i;!y&&h&&(y=null===(v=h[0].loc)||void 0===v?void 0:v.source);var m,T=a;!T&&h&&(T=h.reduce(function(e,n){return n.loc&&e.push(n.loc.start),e},[])),T&&0===T.length&&(T=void 0),a&&i?m=a.map(function(e){return S(i,e)}):h&&(m=h.reduce(function(e,n){return n.loc&&e.push(S(n.loc.source,n.loc.start)),e},[]));var E=c;if(null==E&&null!=s){var N=s.extensions;O(N)&&(E=N)}return Object.defineProperties(R(d),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(u=m)&&void 0!==u?u:void 0,enumerable:null!=m},path:{value:null!=o?o:void 0,enumerable:null!=o},nodes:{value:null!=h?h:void 0},source:{value:null!==(l=y)&&void 0!==l?l:void 0},positions:{value:null!==(p=T)&&void 0!==p?p:void 0},originalError:{value:s},extensions:{value:null!==(f=E)&&void 0!==f?f:void 0,enumerable:null!=E}}),null!=s&&s.stack?(Object.defineProperty(R(d),"stack",{value:s.stack,writable:!0,configurable:!0}),L(d)):(Error.captureStackTrace?Error.captureStackTrace(R(d),t):Object.defineProperty(R(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return function(e,n,t){n&&F(e.prototype,n)}(t,[{key:"toString",value:function(){return function(e){var n=e.message;if(e.nodes)for(var t=0,r=e.nodes;t<r.length;t++){var i=r[t];i.loc&&(n+="\n\n"+A(i.loc))}else if(e.source&&e.locations)for(var a=0,o=e.locations;a<o.length;a++)n+="\n\n"+D(e.source,o[a]);return n}(this)}},{key:_,get:function(){return"Object"}}]),t}(C(Error));function B(e,n,t){return new V("Syntax Error: ".concat(t),void 0,e,[n])}function Y(e,n){if(!Boolean(e))throw new Error(null!=n?n:"Unexpected invariant triggered.")}var G="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function J(e){var n=e.prototype.toJSON;"function"==typeof n||Y(0),e.prototype.inspect=n,G&&(e.prototype[G]=n)}var X=function(){function e(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();J(X);var K=function(){function e(e,n,t,r,i,a,o){this.kind=e,this.start=n,this.end=t,this.line=r,this.column=i,this.value=o,this.prev=a,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function Q(e){return null!=e&&"string"==typeof e.kind}J(K);var q=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"});function z(e){return(z="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 H(e){return $(e,[])}function $(e,n){switch(z(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(G)];return"function"==typeof n?n:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:$(i,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;a<t;++a)i.push($(e[a],n));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.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+": "+$(e[t],n)}).join(", ")+" }"}(e,t)}(e,n);default:return String(e)}}var W=function(e,n){return e instanceof n};function Z(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ee=function(){function e(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||N(0,"Body must be a string. Received: ".concat(H(e),".")),this.body=e,this.name=n,this.locationOffset=t,this.locationOffset.line>0||N(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||N(0,"column in locationOffset is 1-indexed and must be positive.")}return function(e,n,t){n&&Z(e.prototype,n)}(e,[{key:_,get:function(){return"Source"}}]),e}(),ne=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"});function te(e){var n=e.split(/\r\n|[\n\r]/g),t=function(e){for(var n,t=!0,r=!0,i=0,a=null,o=0;o<e.length;++o)switch(e.charCodeAt(o)){case 13:10===e.charCodeAt(o+1)&&++o;case 10:t=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!t&&(null===a||i<a)&&(a=i),r=!1}return null!==(n=a)&&void 0!==n?n:0}(e);if(0!==t)for(var r=1;r<n.length;r++)n[r]=n[r].slice(t);for(var i=0;i<n.length&&re(n[i]);)++i;for(var a=n.length;a>i&&re(n[a-1]);)--a;return n.slice(i,a).join("\n")}function re(e){for(var n=0;n<e.length;++n)if(" "!==e[n]&&"\t"!==e[n])return!1;return!0}var ie=function(){function e(e){var n=new K(q.SOF,0,0,0,0,null);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var n=e.prototype;return n.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},n.lookahead=function(){var e=this.token;if(e.kind!==q.EOF)do{var n;e=null!==(n=e.next)&&void 0!==n?n:e.next=oe(this,e)}while(e.kind===q.COMMENT);return e},e}();function ae(e){return isNaN(e)?q.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function oe(e,n){for(var t=e.source,r=t.body,i=r.length,a=n.end;a<i;){var o=r.charCodeAt(a),s=e.line,c=1+a-e.lineStart;switch(o){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:10===r.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;continue;case 33:return new K(q.BANG,a,a+1,s,c,n);case 35:return ce(t,a,s,c,n);case 36:return new K(q.DOLLAR,a,a+1,s,c,n);case 38:return new K(q.AMP,a,a+1,s,c,n);case 40:return new K(q.PAREN_L,a,a+1,s,c,n);case 41:return new K(q.PAREN_R,a,a+1,s,c,n);case 46:if(46===r.charCodeAt(a+1)&&46===r.charCodeAt(a+2))return new K(q.SPREAD,a,a+3,s,c,n);break;case 58:return new K(q.COLON,a,a+1,s,c,n);case 61:return new K(q.EQUALS,a,a+1,s,c,n);case 64:return new K(q.AT,a,a+1,s,c,n);case 91:return new K(q.BRACKET_L,a,a+1,s,c,n);case 93:return new K(q.BRACKET_R,a,a+1,s,c,n);case 123:return new K(q.BRACE_L,a,a+1,s,c,n);case 124:return new K(q.PIPE,a,a+1,s,c,n);case 125:return new K(q.BRACE_R,a,a+1,s,c,n);case 34:return 34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)?fe(t,a,s,c,n,e):pe(t,a,s,c,n);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return ue(t,a,o,s,c,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 he(t,a,s,c,n)}throw B(t,a,se(o))}return new K(q.EOF,i,i,e.line,1+a-e.lineStart,n)}function se(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(ae(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(ae(e),".")}function ce(e,n,t,r,i){var a,o=e.body,s=n;do{a=o.charCodeAt(++s)}while(!isNaN(a)&&(a>31||9===a));return new K(q.COMMENT,n,s,t,r,i,o.slice(n+1,s))}function ue(e,n,t,r,i,a){var o=e.body,s=t,c=n,u=!1;if(45===s&&(s=o.charCodeAt(++c)),48===s){if((s=o.charCodeAt(++c))>=48&&s<=57)throw B(e,c,"Invalid number, unexpected digit after 0: ".concat(ae(s),"."))}else c=le(e,c,s),s=o.charCodeAt(c);if(46===s&&(u=!0,s=o.charCodeAt(++c),c=le(e,c,s),s=o.charCodeAt(c)),(69===s||101===s)&&(u=!0,(43===(s=o.charCodeAt(++c))||45===s)&&(s=o.charCodeAt(++c)),c=le(e,c,s),s=o.charCodeAt(c)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw B(e,c,"Invalid number, expected digit but got: ".concat(ae(s),"."));return new K(u?q.FLOAT:q.INT,n,c,r,i,a,o.slice(n,c))}function le(e,n,t){var r=e.body,i=n,a=t;if(a>=48&&a<=57){do{a=r.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw B(e,i,"Invalid number, expected digit but got: ".concat(ae(a),"."))}function pe(e,n,t,r,i){for(var a=e.body,o=n+1,s=o,c=0,u="";o<a.length&&!isNaN(c=a.charCodeAt(o))&&10!==c&&13!==c;){if(34===c)return u+=a.slice(s,o),new K(q.STRING,n,o+1,t,r,i,u);if(c<32&&9!==c)throw B(e,o,"Invalid character within String: ".concat(ae(c),"."));if(++o,92===c){switch(u+=a.slice(s,o-1),c=a.charCodeAt(o)){case 34:u+='"';break;case 47:u+="/";break;case 92:u+="\\";break;case 98:u+="\b";break;case 102:u+="\f";break;case 110:u+="\n";break;case 114:u+="\r";break;case 116:u+="\t";break;case 117:var l=de(a.charCodeAt(o+1),a.charCodeAt(o+2),a.charCodeAt(o+3),a.charCodeAt(o+4));if(l<0){var p=a.slice(o+1,o+5);throw B(e,o,"Invalid character escape sequence: \\u".concat(p,"."))}u+=String.fromCharCode(l),o+=4;break;default:throw B(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(c),"."))}s=++o}}throw B(e,o,"Unterminated string.")}function fe(e,n,t,r,i,a){for(var o=e.body,s=n+3,c=s,u=0,l="";s<o.length&&!isNaN(u=o.charCodeAt(s));){if(34===u&&34===o.charCodeAt(s+1)&&34===o.charCodeAt(s+2))return l+=o.slice(c,s),new K(q.BLOCK_STRING,n,s+3,t,r,i,te(l));if(u<32&&9!==u&&10!==u&&13!==u)throw B(e,s,"Invalid character within String: ".concat(ae(u),"."));10===u?(++s,++a.line,a.lineStart=s):13===u?(10===o.charCodeAt(s+1)?s+=2:++s,++a.line,a.lineStart=s):92===u&&34===o.charCodeAt(s+1)&&34===o.charCodeAt(s+2)&&34===o.charCodeAt(s+3)?(l+=o.slice(c,s)+'"""',c=s+=4):++s}throw B(e,s,"Unterminated string.")}function de(e,n,t,r){return ve(e)<<12|ve(n)<<8|ve(t)<<4|ve(r)}function ve(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function he(e,n,t,r,i){for(var a=e.body,o=a.length,s=n+1,c=0;s!==o&&!isNaN(c=a.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new K(q.NAME,n,s,t,r,i,a.slice(n,s))}var ye=function(){function e(e,n){var t=function(e){return W(e,ee)}(e)?e:new ee(e);this._lexer=new ie(t),this._options=n}var n=e.prototype;return n.parseName=function(){var e=this.expectToken(q.NAME);return{kind:g.NAME,value:e.value,loc:this.loc(e)}},n.parseDocument=function(){var e=this._lexer.token;return{kind:g.DOCUMENT,definitions:this.many(q.SOF,this.parseDefinition,q.EOF),loc:this.loc(e)}},n.parseDefinition=function(){if(this.peek(q.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(q.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(q.BRACE_L))return{kind:g.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var n,t=this.parseOperationType();return this.peek(q.NAME)&&(n=this.parseName()),{kind:g.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(q.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(q.PAREN_L,this.parseVariableDefinition,q.PAREN_R)},n.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:g.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(q.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(q.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(q.DOLLAR),{kind:g.VARIABLE,name:this.parseName(),loc:this.loc(e)}},n.parseSelectionSet=function(){var e=this._lexer.token;return{kind:g.SELECTION_SET,selections:this.many(q.BRACE_L,this.parseSelection,q.BRACE_R),loc:this.loc(e)}},n.parseSelection=function(){return this.peek(q.SPREAD)?this.parseFragment():this.parseField()},n.parseField=function(){var e,n,t=this._lexer.token,r=this.parseName();return this.expectOptionalToken(q.COLON)?(e=r,n=this.parseName()):n=r,{kind:g.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(q.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(t)}},n.parseArguments=function(e){return this.optionalMany(q.PAREN_L,e?this.parseConstArgument:this.parseArgument,q.PAREN_R)},n.parseArgument=function(){var e=this._lexer.token,n=this.parseName();return this.expectToken(q.COLON),{kind:g.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(e)}},n.parseConstArgument=function(){var e=this._lexer.token;return{kind:g.ARGUMENT,name:this.parseName(),value:(this.expectToken(q.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},n.parseFragment=function(){var e=this._lexer.token;this.expectToken(q.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(q.NAME)?{kind:g.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:g.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},n.parseFragmentDefinition=function(){var e,n=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:g.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}:{kind:g.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},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 q.BRACKET_L:return this.parseList(e);case q.BRACE_L:return this.parseObject(e);case q.INT:return this._lexer.advance(),{kind:g.INT,value:n.value,loc:this.loc(n)};case q.FLOAT:return this._lexer.advance(),{kind:g.FLOAT,value:n.value,loc:this.loc(n)};case q.STRING:case q.BLOCK_STRING:return this.parseStringLiteral();case q.NAME:switch(this._lexer.advance(),n.value){case"true":return{kind:g.BOOLEAN,value:!0,loc:this.loc(n)};case"false":return{kind:g.BOOLEAN,value:!1,loc:this.loc(n)};case"null":return{kind:g.NULL,loc:this.loc(n)};default:return{kind:g.ENUM,value:n.value,loc:this.loc(n)}}case q.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},n.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:g.STRING,value:e.value,block:e.kind===q.BLOCK_STRING,loc:this.loc(e)}},n.parseList=function(e){var n=this,t=this._lexer.token;return{kind:g.LIST,values:this.any(q.BRACKET_L,function(){return n.parseValueLiteral(e)},q.BRACKET_R),loc:this.loc(t)}},n.parseObject=function(e){var n=this,t=this._lexer.token;return{kind:g.OBJECT,fields:this.any(q.BRACE_L,function(){return n.parseObjectField(e)},q.BRACE_R),loc:this.loc(t)}},n.parseObjectField=function(e){var n=this._lexer.token,t=this.parseName();return this.expectToken(q.COLON),{kind:g.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e),loc:this.loc(n)}},n.parseDirectives=function(e){for(var n=[];this.peek(q.AT);)n.push(this.parseDirective(e));return n},n.parseDirective=function(e){var n=this._lexer.token;return this.expectToken(q.AT),{kind:g.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(n)}},n.parseTypeReference=function(){var e,n=this._lexer.token;return this.expectOptionalToken(q.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(q.BRACKET_R),e={kind:g.LIST_TYPE,type:e,loc:this.loc(n)}):e=this.parseNamedType(),this.expectOptionalToken(q.BANG)?{kind:g.NON_NULL_TYPE,type:e,loc:this.loc(n)}:e},n.parseNamedType=function(){var e=this._lexer.token;return{kind:g.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===q.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(q.STRING)||this.peek(q.BLOCK_STRING)},n.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},n.parseSchemaDefinition=function(){var e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(q.BRACE_L,this.parseOperationTypeDefinition,q.BRACE_R);return{kind:g.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:r,loc:this.loc(e)}},n.parseOperationTypeDefinition=function(){var e=this._lexer.token,n=this.parseOperationType();this.expectToken(q.COLON);var t=this.parseNamedType();return{kind:g.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:g.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:g.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"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var n=[];this.expectOptionalToken(q.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(q.AMP)||this.peek(q.NAME));return n}return this.delimitedMany(q.AMP,this.parseNamedType)},n.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(q.BRACE_L)&&this._lexer.lookahead().kind===q.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(q.BRACE_L,this.parseFieldDefinition,q.BRACE_R)},n.parseFieldDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseArgumentDefs();this.expectToken(q.COLON);var i=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:g.FIELD_DEFINITION,description:n,name:t,arguments:r,type:i,directives:a,loc:this.loc(e)}},n.parseArgumentDefs=function(){return this.optionalMany(q.PAREN_L,this.parseInputValueDef,q.PAREN_R)},n.parseInputValueDef=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName();this.expectToken(q.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(q.EQUALS)&&(r=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:g.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.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:g.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:r,directives:i,fields:a,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:g.UNION_TYPE_DEFINITION,description:n,name:t,directives:r,types:i,loc:this.loc(e)}},n.parseUnionMemberTypes=function(){return this.expectOptionalToken(q.EQUALS)?this.delimitedMany(q.PIPE,this.parseNamedType):[]},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:g.ENUM_TYPE_DEFINITION,description:n,name:t,directives:r,values:i,loc:this.loc(e)}},n.parseEnumValuesDefinition=function(){return this.optionalMany(q.BRACE_L,this.parseEnumValueDefinition,q.BRACE_R)},n.parseEnumValueDefinition=function(){var e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),r=this.parseDirectives(!0);return{kind:g.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:g.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:r,fields:i,loc:this.loc(e)}},n.parseInputFieldsDefinition=function(){return this.optionalMany(q.BRACE_L,this.parseInputValueDef,q.BRACE_R)},n.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===q.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(q.BRACE_L,this.parseOperationTypeDefinition,q.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return{kind:g.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:g.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:g.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.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===t.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:g.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:r,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),r=this.parseUnionMemberTypes();if(0===t.length&&0===r.length)throw this.unexpected();return{kind:g.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:g.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:g.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(q.AT);var t=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:g.DIRECTIVE_DEFINITION,description:n,name:t,arguments:r,repeatable:i,locations:a,loc:this.loc(e)}},n.parseDirectiveLocations=function(){return this.delimitedMany(q.PIPE,this.parseDirectiveLocation)},n.parseDirectiveLocation=function(){var e=this._lexer.token,n=this.parseName();if(void 0!==ne[n.value])return n;throw this.unexpected(e)},n.loc=function(e){var n;if(!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation))return new X(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 B(this._lexer.source,n.start,"Expected ".concat(Te(e),", found ").concat(me(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!==q.NAME||n.value!==e)throw B(this._lexer.source,n.start,'Expected "'.concat(e,'", found ').concat(me(n),"."));this._lexer.advance()},n.expectOptionalKeyword=function(e){var n=this._lexer.token;return n.kind===q.NAME&&n.value===e&&(this._lexer.advance(),!0)},n.unexpected=function(e){var n=null!=e?e:this._lexer.token;return B(this._lexer.source,n.start,"Unexpected ".concat(me(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},n.delimitedMany=function(e,n){this.expectOptionalToken(e);var t=[];do{t.push(n.call(this))}while(this.expectOptionalToken(e));return t},e}();function me(e){var n=e.value;return Te(e.kind)+(null!=n?' "'.concat(n,'"'):"")}function Te(e){return function(e){return e===q.BANG||e===q.DOLLAR||e===q.AMP||e===q.PAREN_L||e===q.PAREN_R||e===q.SPREAD||e===q.COLON||e===q.EQUALS||e===q.AT||e===q.BRACKET_L||e===q.BRACKET_R||e===q.BRACE_L||e===q.PIPE||e===q.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ee={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Ne=Object.freeze({});function ge(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ee,r=void 0,i=Array.isArray(e),a=[e],o=-1,s=[],c=void 0,u=void 0,l=void 0,p=[],f=[],d=e;do{var v=++o===a.length,h=v&&0!==s.length;if(v){if(u=0===f.length?void 0:p[p.length-1],c=l,l=f.pop(),h){if(i)c=c.slice();else{for(var y={},m=0,T=Object.keys(c);m<T.length;m++){var E=T[m];y[E]=c[E]}c=y}for(var N=0,g=0;g<s.length;g++){var I=s[g][0],O=s[g][1];i&&(I-=N),i&&null===O?(c.splice(I,1),N++):c[I]=O}}o=r.index,a=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(u=l?i?o:a[o]:void 0,null==(c=l?l[u]:d))continue;l&&p.push(u)}var b,_=void 0;if(!Array.isArray(c)){if(!Q(c))throw new Error("Invalid AST Node: ".concat(H(c),"."));var S=Oe(n,c.kind,v);if(S){if((_=S.call(n,c,u,l,p,f))===Ne)break;if(!1===_){if(!v){p.pop();continue}}else if(void 0!==_&&(s.push([u,_]),!v)){if(!Q(_)){p.pop();continue}c=_}}}void 0===_&&h&&s.push([u,c]),v?p.pop():(r={inArray:i,index:o,keys:a,edits:s,prev:r},a=(i=Array.isArray(c))?c:null!==(b=t[c.kind])&&void 0!==b?b:[],o=-1,s=[],l&&f.push(l),l=c)}while(void 0!==r);return 0!==s.length&&(d=s[s.length-1][1]),d}function Ie(e){var n=new Array(e.length);return{enter:function(t){for(var r=0;r<e.length;r++)if(null==n[r]){var i=Oe(e[r],t.kind,!1);if(i){var a=i.apply(e[r],arguments);if(!1===a)n[r]=t;else if(a===Ne)n[r]=Ne;else if(void 0!==a)return a}}},leave:function(t){for(var r=0;r<e.length;r++)if(null==n[r]){var i=Oe(e[r],t.kind,!0);if(i){var a=i.apply(e[r],arguments);if(a===Ne)n[r]=Ne;else if(void 0!==a&&!1!==a)return a}}else n[r]===t&&(n[r]=null)}}}function Oe(e,n,t){var r=e[n];if(r){if(!t&&"function"==typeof r)return r;var i=t?r.leave:r.enter;if("function"==typeof i)return i}else{var a=t?e.leave:e.enter;if(a){if("function"==typeof a)return a;var o=a[n];if("function"==typeof o)return o}}}function be(e){return e.kind===g.OPERATION_DEFINITION||e.kind===g.FRAGMENT_DEFINITION}function _e(e){return e.kind===g.SCALAR_TYPE_DEFINITION||e.kind===g.OBJECT_TYPE_DEFINITION||e.kind===g.INTERFACE_TYPE_DEFINITION||e.kind===g.UNION_TYPE_DEFINITION||e.kind===g.ENUM_TYPE_DEFINITION||e.kind===g.INPUT_OBJECT_TYPE_DEFINITION}function Se(e){return e.kind===g.SCALAR_TYPE_EXTENSION||e.kind===g.OBJECT_TYPE_EXTENSION||e.kind===g.INTERFACE_TYPE_EXTENSION||e.kind===g.UNION_TYPE_EXTENSION||e.kind===g.ENUM_TYPE_EXTENSION||e.kind===g.INPUT_OBJECT_TYPE_EXTENSION}function Ae(e,n){var t="string"==typeof e?[e,n]:[void 0,e],r=t[0],i=" Did you mean ";r&&(i+=r+" ");var a=t[1].map(function(e){return'"'.concat(e,'"')});switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}var o=a.slice(0,5),s=o.pop();return i+o.join(", ")+", or "+s+"?"}function De(e,n){for(var t=0,r=0;t<e.length&&r<n.length;){var i=e.charCodeAt(t),a=n.charCodeAt(r);if(xe(i)&&xe(a)){var o=0;do{++t,o=10*o+i-we,i=e.charCodeAt(t)}while(xe(i)&&o>0);var s=0;do{++r,s=10*s+a-we,a=n.charCodeAt(r)}while(xe(a)&&s>0);if(o<s)return-1;if(o>s)return 1}else{if(i<a)return-1;if(i>a)return 1;++t,++r}}return e.length-n.length}var we=48;function xe(e){return!isNaN(e)&&we<=e&&e<=57}function ke(e,n){for(var t=Object.create(null),r=new Fe(e),i=Math.floor(.4*e.length)+1,a=0;a<n.length;a++){var o=n[a],s=r.measure(o,i);void 0!==s&&(t[o]=s)}return Object.keys(t).sort(function(e,n){var r=t[e]-t[n];return 0!==r?r:De(e,n)})}var Fe=function(){function e(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Le(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return e.prototype.measure=function(e,n){if(this._input===e)return 0;var t=e.toLowerCase();if(this._inputLowerCase===t)return 1;var r=Le(t),i=this._inputArray;if(r.length<i.length){var a=r;r=i,i=a}var o=r.length,s=i.length;if(!(o-s>n)){for(var c=this._rows,u=0;u<=s;u++)c[0][u]=u;for(var l=1;l<=o;l++){for(var p=c[(l-1)%3],f=c[l%3],d=f[0]=l,v=1;v<=s;v++){var h=Math.min(p[v]+1,f[v-1]+1,p[v-1]+(r[l-1]===i[v-1]?0:1));l>1&&v>1&&r[l-1]===i[v-2]&&r[l-2]===i[v-1]&&(h=Math.min(h,c[(l-2)%3][v-2]+1)),h<d&&(d=h),f[v]=h}if(d>n)return}var y=c[o%3][s];return y<=n?y:void 0}},e}();function Le(e){for(var n=e.length,t=new Array(n),r=0;r<n;++r)t[r]=e.charCodeAt(r);return t}var Re=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},Ce=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function je(e){return ge(e,{leave:Pe})}var Pe={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return Ue(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var n=e.operation,t=e.name,r=Be("(",Ue(e.variableDefinitions,", "),")"),i=Ue(e.directives," "),a=e.selectionSet;return t||i||r||"query"!==n?Ue([n,Ue([t,r]),i,a]," "):a},VariableDefinition:function(e){var n=e.directives;return e.variable+": "+e.type+Be(" = ",e.defaultValue)+Be(" ",Ue(n," "))},SelectionSet:function(e){return Ve(e.selections)},Field:function(e){var n=e.name,t=e.arguments,r=e.directives,i=e.selectionSet,a=Be("",e.alias,": ")+n,o=a+Be("(",Ue(t,", "),")");return o.length>80&&(o=a+Be("(\n",Ye(Ue(t,"\n")),"\n)")),Ue([o,Ue(r," "),i]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+Be(" ",Ue(e.directives," "))},InlineFragment:function(e){var n=e.directives,t=e.selectionSet;return Ue(["...",Be("on ",e.typeCondition),Ue(n," "),t]," ")},FragmentDefinition:function(e){var n=e.typeCondition,t=e.variableDefinitions,r=e.directives,i=e.selectionSet;return"fragment ".concat(e.name).concat(Be("(",Ue(t,", "),")")," ")+"on ".concat(n," ").concat(Be("",Ue(r," ")," "))+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,n){var t=e.value;return e.block?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="\\"===e[e.length-1],s=!r||a||o||t,c="";return s&&!(r&&i)&&(c+="\n"+n),c+=n?e.replace(/\n/g,"\n"+n):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}(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"["+Ue(e.values,", ")+"]"},ObjectValue:function(e){return"{"+Ue(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+Be("(",Ue(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:Me(function(e){var n=e.operationTypes;return Ue(["schema",Ue(e.directives," "),Ve(n)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:Me(function(e){return Ue(["scalar",e.name,Ue(e.directives," ")]," ")}),ObjectTypeDefinition:Me(function(e){var n=e.directives,t=e.fields;return Ue(["type",e.name,Be("implements ",Ue(e.interfaces," & ")),Ue(n," "),Ve(t)]," ")}),FieldDefinition:Me(function(e){var n=e.arguments,t=e.type,r=e.directives;return e.name+(Je(n)?Be("(\n",Ye(Ue(n,"\n")),"\n)"):Be("(",Ue(n,", "),")"))+": "+t+Be(" ",Ue(r," "))}),InputValueDefinition:Me(function(e){var n=e.directives;return Ue([e.name+": "+e.type,Be("= ",e.defaultValue),Ue(n," ")]," ")}),InterfaceTypeDefinition:Me(function(e){var n=e.directives,t=e.fields;return Ue(["interface",e.name,Be("implements ",Ue(e.interfaces," & ")),Ue(n," "),Ve(t)]," ")}),UnionTypeDefinition:Me(function(e){var n=e.types;return Ue(["union",e.name,Ue(e.directives," "),n&&0!==n.length?"= "+Ue(n," | "):""]," ")}),EnumTypeDefinition:Me(function(e){var n=e.values;return Ue(["enum",e.name,Ue(e.directives," "),Ve(n)]," ")}),EnumValueDefinition:Me(function(e){return Ue([e.name,Ue(e.directives," ")]," ")}),InputObjectTypeDefinition:Me(function(e){var n=e.fields;return Ue(["input",e.name,Ue(e.directives," "),Ve(n)]," ")}),DirectiveDefinition:Me(function(e){var n=e.arguments,t=e.repeatable,r=e.locations;return"directive @"+e.name+(Je(n)?Be("(\n",Ye(Ue(n,"\n")),"\n)"):Be("(",Ue(n,", "),")"))+(t?" repeatable":"")+" on "+Ue(r," | ")}),SchemaExtension:function(e){var n=e.operationTypes;return Ue(["extend schema",Ue(e.directives," "),Ve(n)]," ")},ScalarTypeExtension:function(e){return Ue(["extend scalar",e.name,Ue(e.directives," ")]," ")},ObjectTypeExtension:function(e){var n=e.directives,t=e.fields;return Ue(["extend type",e.name,Be("implements ",Ue(e.interfaces," & ")),Ue(n," "),Ve(t)]," ")},InterfaceTypeExtension:function(e){var n=e.directives,t=e.fields;return Ue(["extend interface",e.name,Be("implements ",Ue(e.interfaces," & ")),Ue(n," "),Ve(t)]," ")},UnionTypeExtension:function(e){var n=e.types;return Ue(["extend union",e.name,Ue(e.directives," "),n&&0!==n.length?"= "+Ue(n," | "):""]," ")},EnumTypeExtension:function(e){var n=e.values;return Ue(["extend enum",e.name,Ue(e.directives," "),Ve(n)]," ")},InputObjectTypeExtension:function(e){var n=e.fields;return Ue(["extend input",e.name,Ue(e.directives," "),Ve(n)]," ")}};function Me(e){return function(n){return Ue([n.description,e(n)],"\n")}}function Ue(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(n=null==e?void 0:e.filter(function(e){return e}).join(t))&&void 0!==n?n:""}function Ve(e){return Be("{\n",Ye(Ue(e,"\n")),"\n}")}function Be(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=n&&""!==n?e+n+t:""}function Ye(e){return Be(" ",e.replace(/\n/g,"\n "))}function Ge(e){return-1!==e.indexOf("\n")}function Je(e){return null!=e&&e.some(Ge)}var Xe=Object.entries||function(e){return Object.keys(e).map(function(n){return[n,e[n]]})};function Ke(e,n){return e.reduce(function(e,t){return e[n(t)]=t,e},Object.create(null))}function Qe(e,n){for(var t=Object.create(null),r=0,i=Xe(e);r<i.length;r++){var a=i[r],o=a[0];t[o]=n(a[1],o)}return t}function qe(e){if(null===Object.getPrototypeOf(e))return e;for(var n=Object.create(null),t=0,r=Xe(e);t<r.length;t++){var i=r[t];n[i[0]]=i[1]}return n}function ze(e,n,t){return e.reduce(function(e,r){return e[n(r)]=t(r),e},Object.create(null))}function He(e){return e}function $e(e,n){switch(e.kind){case g.NULL:return null;case g.INT:return parseInt(e.value,10);case g.FLOAT:return parseFloat(e.value);case g.STRING:case g.ENUM:case g.BOOLEAN:return e.value;case g.LIST:return e.values.map(function(e){return $e(e,n)});case g.OBJECT:return ze(e.fields,function(e){return e.name.value},function(e){return $e(e.value,n)});case g.VARIABLE:return null==n?void 0:n[e.name.value]}Y(0,"Unexpected value node: "+H(e))}function We(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ze(e,n,t){return n&&We(e.prototype,n),t&&We(e,t),e}function en(e){return nn(e)||tn(e)||rn(e)||an(e)||on(e)||sn(e)||cn(e)||un(e)}function nn(e){return W(e,Nn)}function tn(e){return W(e,gn)}function rn(e){return W(e,Dn)}function an(e){return W(e,wn)}function on(e){return W(e,kn)}function sn(e){return W(e,Ln)}function cn(e){return W(e,vn)}function un(e){return W(e,hn)}function ln(e){return nn(e)||on(e)||sn(e)||yn(e)&&ln(e.ofType)}function pn(e){return nn(e)||on(e)}function fn(e){return tn(e)||rn(e)||an(e)}function dn(e){return rn(e)||an(e)}function vn(e){if(!(this instanceof vn))return new vn(e);this.ofType=function(e){if(!en(e))throw new Error("Expected ".concat(H(e)," to be a GraphQL type."));return e}(e)}function hn(e){if(!(this instanceof hn))return new hn(e);this.ofType=function(e){if(!function(e){return en(e)&&!un(e)}(e))throw new Error("Expected ".concat(H(e)," to be a GraphQL nullable type."));return e}(e)}function yn(e){return cn(e)||un(e)}function mn(e){if(e){for(var n=e;yn(n);)n=n.ofType;return n}}function Tn(e){return"function"==typeof e?e():e}function En(e){return e&&e.length>0?e:void 0}vn.prototype.toString=function(){return"["+String(this.ofType)+"]"},vn.prototype.toJSON=function(){return this.toString()},Object.defineProperty(vn.prototype,_,{get:function(){return"GraphQLList"}}),J(vn),hn.prototype.toString=function(){return String(this.ofType)+"!"},hn.prototype.toJSON=function(){return this.toString()},Object.defineProperty(hn.prototype,_,{get:function(){return"GraphQLNonNull"}}),J(hn);var Nn=function(){function e(e){var n,t,r,i=null!==(n=e.parseValue)&&void 0!==n?n:He;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(t=e.serialize)&&void 0!==t?t:He,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,n){return i($e(e,n))},this.extensions=e.extensions&&qe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=En(e.extensionASTNodes),"string"==typeof e.name||N(0,"Must provide name."),null==e.specifiedByUrl||"string"==typeof e.specifiedByUrl||N(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(H(e.specifiedByUrl),".")),null==e.serialize||"function"==typeof e.serialize||N(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||N(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ze(e,[{key:_,get:function(){return"GraphQLScalarType"}}]),e}();J(Nn);var gn=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&qe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=En(e.extensionASTNodes),this._fields=On.bind(void 0,e),this._interfaces=In.bind(void 0,e),"string"==typeof e.name||N(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||N(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(H(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:_n(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ze(e,[{key:_,get:function(){return"GraphQLObjectType"}}]),e}();function In(e){var n,t=null!==(n=Tn(e.interfaces))&&void 0!==n?n:[];return Array.isArray(t)||N(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function On(e){var n=Tn(e.fields);return bn(n)||N(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Qe(n,function(n,t){var r;bn(n)||N(0,"".concat(e.name,".").concat(t," field config must be an object.")),!("isDeprecated"in n)||N(0,"".concat(e.name,".").concat(t,' should provide "deprecationReason" instead of "isDeprecated".')),null==n.resolve||"function"==typeof n.resolve||N(0,"".concat(e.name,".").concat(t," field resolver must be a function if ")+"provided, but got: ".concat(H(n.resolve),"."));var i=null!==(r=n.args)&&void 0!==r?r:{};bn(i)||N(0,"".concat(e.name,".").concat(t," args must be an object with argument names as keys."));var a=Xe(i).map(function(e){var n=e[1];return{name:e[0],description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&qe(n.extensions),astNode:n.astNode}});return{name:t,description:n.description,type:n.type,args:a,resolve:n.resolve,subscribe:n.subscribe,isDeprecated:null!=n.deprecationReason,deprecationReason:n.deprecationReason,extensions:n.extensions&&qe(n.extensions),astNode:n.astNode}})}function bn(e){return O(e)&&!Array.isArray(e)}function _n(e){return Qe(e,function(e){return{description:e.description,type:e.type,args:Sn(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function Sn(e){return ze(e,function(e){return e.name},function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function An(e){return un(e.type)&&void 0===e.defaultValue}J(gn);var Dn=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&qe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=En(e.extensionASTNodes),this._fields=On.bind(void 0,e),this._interfaces=In.bind(void 0,e),"string"==typeof e.name||N(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||N(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(H(e.resolveType),"."))}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(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:_n(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ze(e,[{key:_,get:function(){return"GraphQLInterfaceType"}}]),e}();J(Dn);var wn=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&qe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=En(e.extensionASTNodes),this._types=xn.bind(void 0,e),"string"==typeof e.name||N(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||N(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(H(e.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},n.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ze(e,[{key:_,get:function(){return"GraphQLUnionType"}}]),e}();function xn(e){var n=Tn(e.types);return Array.isArray(n)||N(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}J(wn);var kn=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&qe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=En(e.extensionASTNodes),this._values=function(e,n){return bn(n)||N(0,"".concat(e," values must be an object with value names as keys.")),Xe(n).map(function(n){var t=n[0],r=n[1];return bn(r)||N(0,"".concat(e,".").concat(t,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(H(r),".")),!("isDeprecated"in r)||N(0,"".concat(e,".").concat(t,' should provide "deprecationReason" instead of "isDeprecated".')),{name:t,description:r.description,value:void 0!==r.value?r.value:t,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&qe(r.extensions),astNode:r.astNode}})}(this.name,e.values),this._valueLookup=new Map(this._values.map(function(e){return[e.value,e]})),this._nameLookup=Ke(this._values,function(e){return e.name}),"string"==typeof e.name||N(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(void 0===n)throw new V('Enum "'.concat(this.name,'" cannot represent value: ').concat(H(e)));return n.name},n.parseValue=function(e){if("string"!=typeof e){var n=H(e);throw new V('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(n,".")+Fn(this,n))}var t=this.getValue(e);if(null==t)throw new V('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+Fn(this,e));return t.value},n.parseLiteral=function(e,n){if(e.kind!==g.ENUM){var t=je(e);throw new V('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(t,".")+Fn(this,t),e)}var r=this.getValue(e.value);if(null==r){var i=je(e);throw new V('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Fn(this,i),e)}return r.value},n.toConfig=function(){var e,n=ze(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:n,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ze(e,[{key:_,get:function(){return"GraphQLEnumType"}}]),e}();function Fn(e,n){return Ae("the enum value",ke(n,e.getValues().map(function(e){return e.name})))}J(kn);var Ln=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&qe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=En(e.extensionASTNodes),this._fields=Rn.bind(void 0,e),"string"==typeof e.name||N(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,n=Qe(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:n,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ze(e,[{key:_,get:function(){return"GraphQLInputObjectType"}}]),e}();function Rn(e){var n=Tn(e.fields);return bn(n)||N(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Qe(n,function(n,t){return!("resolve"in n)||N(0,"".concat(e.name,".").concat(t," field has a resolve property, but Input Types cannot define resolvers.")),{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&qe(n.extensions),astNode:n.astNode}})}function Cn(e){return un(e.type)&&void 0===e.defaultValue}J(Ln);var jn=2147483647,Pn=-2147483648,Mn=new Nn({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var n=Vn(e);if("boolean"==typeof n)return n?1:0;var t=n;if("string"==typeof n&&""!==n&&(t=Number(n)),!Ce(t))throw new V("Int cannot represent non-integer value: ".concat(H(n)));if(t>jn||t<Pn)throw new V("Int cannot represent non 32-bit signed integer value: "+H(n));return t},parseValue:function(e){if(!Ce(e))throw new V("Int cannot represent non-integer value: ".concat(H(e)));if(e>jn||e<Pn)throw new V("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==g.INT)throw new V("Int cannot represent non-integer value: ".concat(je(e)),e);var n=parseInt(e.value,10);if(n>jn||n<Pn)throw new V("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return n}}),Un=new Nn({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){var n=Vn(e);if("boolean"==typeof n)return n?1:0;var t=n;if("string"==typeof n&&""!==n&&(t=Number(n)),!Re(t))throw new V("Float cannot represent non numeric value: ".concat(H(n)));return t},parseValue:function(e){if(!Re(e))throw new V("Float cannot represent non numeric value: ".concat(H(e)));return e},parseLiteral:function(e){if(e.kind!==g.FLOAT&&e.kind!==g.INT)throw new V("Float cannot represent non numeric value: ".concat(je(e)),e);return parseFloat(e.value)}});function Vn(e){if(O(e)){if("function"==typeof e.valueOf){var n=e.valueOf();if(!O(n))return n}if("function"==typeof e.toJSON)return e.toJSON()}return e}var Bn=new Nn({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=Vn(e);if("string"==typeof n)return n;if("boolean"==typeof n)return n?"true":"false";if(Re(n))return n.toString();throw new V("String cannot represent value: ".concat(H(e)))},parseValue:function(e){if("string"!=typeof e)throw new V("String cannot represent a non string value: ".concat(H(e)));return e},parseLiteral:function(e){if(e.kind!==g.STRING)throw new V("String cannot represent a non string value: ".concat(je(e)),e);return e.value}}),Yn=new Nn({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var n=Vn(e);if("boolean"==typeof n)return n;if(Re(n))return 0!==n;throw new V("Boolean cannot represent a non boolean value: ".concat(H(n)))},parseValue:function(e){if("boolean"!=typeof e)throw new V("Boolean cannot represent a non boolean value: ".concat(H(e)));return e},parseLiteral:function(e){if(e.kind!==g.BOOLEAN)throw new V("Boolean cannot represent a non boolean value: ".concat(je(e)),e);return e.value}}),Gn=new Nn({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=Vn(e);if("string"==typeof n)return n;if(Ce(n))return String(n);throw new V("ID cannot represent value: ".concat(H(e)))},parseValue:function(e){if("string"==typeof e)return e;if(Ce(e))return e.toString();throw new V("ID cannot represent value: ".concat(H(e)))},parseLiteral:function(e){if(e.kind!==g.STRING&&e.kind!==g.INT)throw new V("ID cannot represent a non-string and non-integer value: "+je(e),e);return e.value}}),Jn=Object.freeze([Bn,Mn,Un,Yn,Gn]),Xn=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})};function Kn(e){return(Kn="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 Qn(e,n){if(un(n)){var t=Qn(e,n.ofType);return(null==t?void 0:t.kind)===g.NULL?null:t}if(null===e)return{kind:g.NULL};if(void 0===e)return null;if(cn(n)){var r=n.ofType,i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||"object"!==Kn(e))return null;if(Array.isArray(e))return e.map(n);var t=e[b];if("function"==typeof t){for(var r,i=t.call(e),a=[],o=0;!(r=i.next()).done;++o)a.push(n(r.value,o));return a}var s=e.length;if("number"==typeof s&&s>=0&&s%1==0){for(var c=[],u=0;u<s;++u){if(!Object.prototype.hasOwnProperty.call(e,u))return null;c.push(n(e[String(u)],u))}return c}return null}(e);if(null!=i){for(var a=[],o=0;o<i.length;o++){var s=Qn(i[o],r);null!=s&&a.push(s)}return{kind:g.LIST,values:a}}return Qn(e,r)}if(sn(n)){if(!O(e))return null;for(var c=[],u=0,l=Xn(n.getFields());u<l.length;u++){var p=l[u],f=Qn(e[p.name],p.type);f&&c.push({kind:g.OBJECT_FIELD,name:{kind:g.NAME,value:p.name},value:f})}return{kind:g.OBJECT,fields:c}}if(pn(n)){var d=n.serialize(e);if(null==d)return null;if("boolean"==typeof d)return{kind:g.BOOLEAN,value:d};if("number"==typeof d&&Re(d)){var v=String(d);return qn.test(v)?{kind:g.INT,value:v}:{kind:g.FLOAT,value:v}}if("string"==typeof d)return on(n)?{kind:g.ENUM,value:d}:n===Gn&&qn.test(d)?{kind:g.INT,value:d}:{kind:g.STRING,value:d};throw new TypeError("Cannot convert value to AST: ".concat(H(d),"."))}Y(0,"Unexpected input type: "+H(n))}var qn=/^-?(?:0|[1-9][0-9]*)$/,zn=new gn({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:Bn,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new hn(new vn(new hn(Wn))),resolve:function(e){return Xn(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new hn(Wn),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Wn,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Wn,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new hn(new vn(new hn(Hn))),resolve:function(e){return e.getDirectives()}}}}}),Hn=new gn({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new hn(Bn),resolve:function(e){return e.name}},description:{type:Bn,resolve:function(e){return e.description}},isRepeatable:{type:new hn(Yn),resolve:function(e){return e.isRepeatable}},locations:{type:new hn(new vn(new hn($n))),resolve:function(e){return e.locations}},args:{type:new hn(new vn(new hn(et))),resolve:function(e){return e.args}}}}}),$n=new kn({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:ne.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:ne.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:ne.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:ne.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:ne.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:ne.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:ne.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:ne.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:ne.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:ne.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:ne.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:ne.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:ne.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:ne.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:ne.UNION,description:"Location adjacent to a union definition."},ENUM:{value:ne.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:ne.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:ne.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:ne.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Wn=new gn({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new hn(rt),resolve:function(e){return nn(e)?tt.SCALAR:tn(e)?tt.OBJECT:rn(e)?tt.INTERFACE:an(e)?tt.UNION:on(e)?tt.ENUM:sn(e)?tt.INPUT_OBJECT:cn(e)?tt.LIST:un(e)?tt.NON_NULL:void Y(0,'Unexpected type: "'.concat(H(e),'".'))}},name:{type:Bn,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:Bn,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:Bn,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new vn(new hn(Zn)),args:{includeDeprecated:{type:Yn,defaultValue:!1}},resolve:function(e,n){var t=n.includeDeprecated;if(tn(e)||rn(e)){var r=Xn(e.getFields());return t?r:r.filter(function(e){return null==e.deprecationReason})}}},interfaces:{type:new vn(new hn(Wn)),resolve:function(e){if(tn(e)||rn(e))return e.getInterfaces()}},possibleTypes:{type:new vn(new hn(Wn)),resolve:function(e,n,t,r){var i=r.schema;if(dn(e))return i.getPossibleTypes(e)}},enumValues:{type:new vn(new hn(nt)),args:{includeDeprecated:{type:Yn,defaultValue:!1}},resolve:function(e,n){var t=n.includeDeprecated;if(on(e)){var r=e.getValues();return t?r:r.filter(function(e){return null==e.deprecationReason})}}},inputFields:{type:new vn(new hn(et)),args:{includeDeprecated:{type:Yn,defaultValue:!1}},resolve:function(e,n){var t=n.includeDeprecated;if(sn(e)){var r=Xn(e.getFields());return t?r:r.filter(function(e){return null==e.deprecationReason})}}},ofType:{type:Wn,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),Zn=new gn({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new hn(Bn),resolve:function(e){return e.name}},description:{type:Bn,resolve:function(e){return e.description}},args:{type:new hn(new vn(new hn(et))),args:{includeDeprecated:{type:Yn,defaultValue:!1}},resolve:function(e,n){return n.includeDeprecated?e.args:e.args.filter(function(e){return null==e.deprecationReason})}},type:{type:new hn(Wn),resolve:function(e){return e.type}},isDeprecated:{type:new hn(Yn),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:Bn,resolve:function(e){return e.deprecationReason}}}}}),et=new gn({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new hn(Bn),resolve:function(e){return e.name}},description:{type:Bn,resolve:function(e){return e.description}},type:{type:new hn(Wn),resolve:function(e){return e.type}},defaultValue:{type:Bn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var n=Qn(e.defaultValue,e.type);return n?je(n):null}},isDeprecated:{type:new hn(Yn),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:Bn,resolve:function(e){return e.deprecationReason}}}}}),nt=new gn({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new hn(Bn),resolve:function(e){return e.name}},description:{type:Bn,resolve:function(e){return e.description}},isDeprecated:{type:new hn(Yn),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:Bn,resolve:function(e){return e.deprecationReason}}}}}),tt=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),rt=new kn({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:tt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:tt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:tt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:tt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:tt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:tt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:tt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:tt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),it=(new hn(zn),new hn(Bn),new hn(Bn),Object.freeze([zn,Hn,$n,Wn,Zn,et,nt,rt]));function at(e){for(var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null),i=0,a=e.getDocument().definitions;i<a.length;i++){var o=a[i];_e(o)&&(r[o.name.value]=!0)}var s=Object.keys(t).concat(Object.keys(r));return{NamedType:function(n,i,a,o,c){var u=n.name.value;if(!t[u]&&!r[u]){var l,p=null!==(l=c[2])&&void 0!==l?l:a,f=null!=p&&function(e){return!Array.isArray(e)&&(function(e){return e.kind===g.SCHEMA_DEFINITION||_e(e)||e.kind===g.DIRECTIVE_DEFINITION}(e)||function(e){return e.kind===g.SCHEMA_EXTENSION||Se(e)}(e))}(p);if(f&&function(e){return-1!==ot.indexOf(e)}(u))return;var d=ke(u,f?ot.concat(s):s);e.reportError(new V('Unknown type "'.concat(u,'".')+Ae(d),n))}}}}var ot=[].concat(Jn,it).map(function(e){return e.name});function st(e,n){var t;return n.kind===g.LIST_TYPE?(t=st(e,n.type))&&new vn(t):n.kind===g.NON_NULL_TYPE?(t=st(e,n.type))&&new hn(t):n.kind===g.NAMED_TYPE?e.getType(n.name.value):void Y(0,"Unexpected type node: "+H(n))}var ct=Array.from||function(e,n,t){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=e[b];if("function"==typeof r){for(var i,a=r.call(e),o=[],s=0;!(i=a.next()).done;++s)if(o.push(n.call(t,i.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return o}var c=e.length;if("number"==typeof c&&c>=0&&c%1==0){for(var u=[],l=0;l<c;++l)Object.prototype.hasOwnProperty.call(e,l)&&u.push(n.call(t,e[l],l));return u}return[]};function ut(e,n,t){return n===t||(un(t)?!!un(n)&&ut(e,n.ofType,t.ofType):un(n)?ut(e,n.ofType,t):cn(t)?!!cn(n)&&ut(e,n.ofType,t.ofType):!cn(n)&&dn(t)&&(rn(n)||tn(n))&&e.isSubType(t,n))}function lt(e,n,t){return n===t||(dn(n)?dn(t)?e.getPossibleTypes(n).some(function(n){return e.isSubType(t,n)}):e.isSubType(n,t):!!dn(t)&&e.isSubType(t,n))}function pt(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ft(e){return W(e,dt)}var dt=function(){function e(e){var n,t;this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(n=e.isRepeatable)&&void 0!==n&&n,this.extensions=e.extensions&&qe(e.extensions),this.astNode=e.astNode,e.name||N(0,"Directive must be named."),Array.isArray(e.locations)||N(0,"@".concat(e.name," locations must be an Array."));var r=null!==(t=e.args)&&void 0!==t?t:{};O(r)&&!Array.isArray(r)||N(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Xe(r).map(function(e){var n=e[1];return{name:e[0],description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&qe(n.extensions),astNode:n.astNode}})}var n=e.prototype;return n.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Sn(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},n.toString=function(){return"@"+this.name},n.toJSON=function(){return this.toString()},function(e,n,t){n&&pt(e.prototype,n)}(e,[{key:_,get:function(){return"GraphQLDirective"}}]),e}();J(dt);var vt=new dt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[ne.FIELD,ne.FRAGMENT_SPREAD,ne.INLINE_FRAGMENT],args:{if:{type:new hn(Yn),description:"Included when true."}}}),ht=new dt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[ne.FIELD,ne.FRAGMENT_SPREAD,ne.INLINE_FRAGMENT],args:{if:{type:new hn(Yn),description:"Skipped when true."}}}),yt=new dt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[ne.FIELD_DEFINITION,ne.ARGUMENT_DEFINITION,ne.INPUT_FIELD_DEFINITION,ne.ENUM_VALUE],args:{reason:{type:Bn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:"No longer supported"}}}),mt=new dt({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[ne.SCALAR],args:{url:{type:new hn(Bn),description:"The URL that specifies the behaviour of this scalar."}}}),Tt=Object.freeze([vt,ht,yt,mt]);function Et(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Tt,i=0;i<r.length;i++){var a=r[i];n[a.name]=a.locations}for(var o=e.getDocument().definitions,s=0;s<o.length;s++){var c=o[s];c.kind===g.DIRECTIVE_DEFINITION&&(n[c.name.value]=c.locations.map(function(e){return e.value}))}return{Directive:function(t,r,i,a,o){var s=t.name.value,c=n[s];if(c){var u=function(e){var n=e[e.length-1];switch(!Array.isArray(n)||Y(0),n.kind){case g.OPERATION_DEFINITION:return function(e){switch(e){case"query":return ne.QUERY;case"mutation":return ne.MUTATION;case"subscription":return ne.SUBSCRIPTION}Y(0,"Unexpected operation: "+H(e))}(n.operation);case g.FIELD:return ne.FIELD;case g.FRAGMENT_SPREAD:return ne.FRAGMENT_SPREAD;case g.INLINE_FRAGMENT:return ne.INLINE_FRAGMENT;case g.FRAGMENT_DEFINITION:return ne.FRAGMENT_DEFINITION;case g.VARIABLE_DEFINITION:return ne.VARIABLE_DEFINITION;case g.SCHEMA_DEFINITION:case g.SCHEMA_EXTENSION:return ne.SCHEMA;case g.SCALAR_TYPE_DEFINITION:case g.SCALAR_TYPE_EXTENSION:return ne.SCALAR;case g.OBJECT_TYPE_DEFINITION:case g.OBJECT_TYPE_EXTENSION:return ne.OBJECT;case g.FIELD_DEFINITION:return ne.FIELD_DEFINITION;case g.INTERFACE_TYPE_DEFINITION:case g.INTERFACE_TYPE_EXTENSION:return ne.INTERFACE;case g.UNION_TYPE_DEFINITION:case g.UNION_TYPE_EXTENSION:return ne.UNION;case g.ENUM_TYPE_DEFINITION:case g.ENUM_TYPE_EXTENSION:return ne.ENUM;case g.ENUM_VALUE_DEFINITION:return ne.ENUM_VALUE;case g.INPUT_OBJECT_TYPE_DEFINITION:case g.INPUT_OBJECT_TYPE_EXTENSION:return ne.INPUT_OBJECT;case g.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===g.INPUT_OBJECT_TYPE_DEFINITION?ne.INPUT_FIELD_DEFINITION:ne.ARGUMENT_DEFINITION}}(o);u&&-1===c.indexOf(u)&&e.reportError(new V('Directive "@'.concat(s,'" may not be used on ').concat(u,"."),t))}else e.reportError(new V('Unknown directive "@'.concat(s,'".'),t))}}}function Nt(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Tt,i=0;i<r.length;i++){var a=r[i];n[a.name]=!a.isRepeatable}for(var o=e.getDocument().definitions,s=0;s<o.length;s++){var c=o[s];c.kind===g.DIRECTIVE_DEFINITION&&(n[c.name.value]=!c.repeatable)}var u=Object.create(null),l=Object.create(null);return{enter:function(t){if(null!=t.directives){var r;if(t.kind===g.SCHEMA_DEFINITION||t.kind===g.SCHEMA_EXTENSION)r=u;else if(_e(t)||Se(t)){var i=t.name.value;void 0===(r=l[i])&&(l[i]=r=Object.create(null))}else r=Object.create(null);for(var a=0,o=t.directives;a<o.length;a++){var s=o[a],c=s.name.value;n[c]&&(r[c]?e.reportError(new V('The directive "@'.concat(c,'" can only be used once at this location.'),[r[c],s])):r[c]=s)}}}}}function gt(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 It(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?gt(Object(t),!0).forEach(function(n){Ot(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gt(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Ot(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function bt(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Tt,i=0;i<r.length;i++){var a=r[i];n[a.name]=a.args.map(function(e){return e.name})}for(var o=e.getDocument().definitions,s=0;s<o.length;s++){var c=o[s];if(c.kind===g.DIRECTIVE_DEFINITION){var u,l=null!==(u=c.arguments)&&void 0!==u?u:[];n[c.name.value]=l.map(function(e){return e.name.value})}}return{Directive:function(t){var r=t.name.value,i=n[r];if(t.arguments&&i)for(var a=0,o=t.arguments;a<o.length;a++){var s=o[a],c=s.name.value;if(-1===i.indexOf(c)){var u=ke(c,i);e.reportError(new V('Unknown argument "'.concat(c,'" on directive "@').concat(r,'".')+Ae(u),s))}}return!1}}}function _t(e){var n=Object.create(null);return{Field:function(){n=Object.create(null)},Directive:function(){n=Object.create(null)},Argument:function(t){var r=t.name.value;return n[r]?e.reportError(new V('There can be only one argument named "'.concat(r,'".'),[n[r],t.name])):n[r]=t.name,!1}}}function St(e,n){var t=e.getInputType();if(t){var r=mn(t);if(!pn(r)){var i=H(t);return void e.reportError(new V('Expected value of type "'.concat(i,'", found ').concat(je(n),"."),n))}try{if(void 0===r.parseLiteral(n,void 0)){var a=H(t);e.reportError(new V('Expected value of type "'.concat(a,'", found ').concat(je(n),"."),n))}}catch(s){var o=H(t);e.reportError(s instanceof V?s:new V('Expected value of type "'.concat(o,'", found ').concat(je(n),"; ")+s.message,n,void 0,void 0,void 0,s))}}}function At(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 Dt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?At(Object(t),!0).forEach(function(n){wt(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):At(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function wt(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function xt(e){for(var n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():Tt,i=0;i<r.length;i++){var a=r[i];n[a.name]=Ke(a.args.filter(An),function(e){return e.name})}for(var o=e.getDocument().definitions,s=0;s<o.length;s++){var c=o[s];if(c.kind===g.DIRECTIVE_DEFINITION){var u,l=null!==(u=c.arguments)&&void 0!==u?u:[];n[c.name.value]=Ke(l.filter(kt),function(e){return e.name.value})}}return{Directive:{leave:function(t){var r=t.name.value,i=n[r];if(i)for(var a,o=Ke(null!==(a=t.arguments)&&void 0!==a?a:[],function(e){return e.name.value}),s=0,c=Object.keys(i);s<c.length;s++){var u=c[s];if(!o[u]){var l=i[u].type,p=en(l)?H(l):je(l);e.reportError(new V('Directive "@'.concat(r,'" argument "').concat(u,'" of type "').concat(p,'" is required, but it was not provided.'),t))}}}}}}function kt(e){return e.type.kind===g.NON_NULL_TYPE&&null==e.defaultValue}function Ft(e,n,t,r,i){return un(r)&&!un(n)?(null!=t&&t.kind!==g.NULL||void 0!==i)&&ut(e,n,r.ofType):ut(e,n,r)}var Lt=Array.prototype.find?function(e,n){return Array.prototype.find.call(e,n)}:function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(n(r))return r}};function Rt(e){return Array.isArray(e)?e.map(function(e){var n=e[1];return'subfields "'.concat(e[0],'" conflict because ')+Rt(n)}).join(" and "):e}function Ct(e,n,t,r,i,a,o){var s=e.getFragment(o);if(s){var c=Bt(e,t,s),u=c[0],l=c[1];if(a!==u){Pt(e,n,t,r,i,a,u);for(var p=0;p<l.length;p++)Ct(e,n,t,r,i,a,l[p])}}}function jt(e,n,t,r,i,a,o){if(a!==o&&!r.has(a,o,i)){r.add(a,o,i);var s=e.getFragment(a),c=e.getFragment(o);if(s&&c){var u=Bt(e,t,s),l=u[0],p=u[1],f=Bt(e,t,c),d=f[1];Pt(e,n,t,r,i,l,f[0]);for(var v=0;v<d.length;v++)jt(e,n,t,r,i,a,d[v]);for(var h=0;h<p.length;h++)jt(e,n,t,r,i,p[h],o)}}}function Pt(e,n,t,r,i,a,o){for(var s=0,c=Object.keys(a);s<c.length;s++){var u=c[s],l=o[u];if(l)for(var p=a[u],f=0;f<p.length;f++)for(var d=0;d<l.length;d++){var v=Mt(e,t,r,i,u,p[f],l[d]);v&&n.push(v)}}}function Mt(e,n,t,r,i,a,o){var s=a[0],c=a[1],u=a[2],l=o[0],p=o[1],f=o[2],d=r||s!==l&&tn(s)&&tn(l);if(!d){var v,h,y=c.name.value,m=p.name.value;if(y!==m)return[[i,'"'.concat(y,'" and "').concat(m,'" are different fields')],[c],[p]];if(!function(e,n){return e.length===n.length&&e.every(function(e){var t=Lt(n,function(n){return n.name.value===e.name.value});return!!t&&function(e,n){return je(e)===je(n)}(e.value,t.value)})}(null!==(v=c.arguments)&&void 0!==v?v:[],null!==(h=p.arguments)&&void 0!==h?h:[]))return[[i,"they have differing arguments"],[c],[p]]}var T=null==u?void 0:u.type,E=null==f?void 0:f.type;if(T&&E&&Ut(T,E))return[[i,'they return conflicting types "'.concat(H(T),'" and "').concat(H(E),'"')],[c],[p]];var N=c.selectionSet,g=p.selectionSet;return N&&g?function(e,n,t,r){if(e.length>0)return[[n,e.map(function(e){return e[0]})],e.reduce(function(e,n){return e.concat(n[1])},[t]),e.reduce(function(e,n){return e.concat(n[2])},[r])]}(function(e,n,t,r,i,a,o,s){var c=[],u=Vt(e,n,i,a),l=u[0],p=u[1],f=Vt(e,n,o,s),d=f[0],v=f[1];if(Pt(e,c,n,t,r,l,d),0!==v.length)for(var h=0;h<v.length;h++)Ct(e,c,n,t,r,l,v[h]);if(0!==p.length)for(var y=0;y<p.length;y++)Ct(e,c,n,t,r,d,p[y]);for(var m=0;m<p.length;m++)for(var T=0;T<v.length;T++)jt(e,c,n,t,r,p[m],v[T]);return c}(e,n,t,d,mn(T),N,mn(E),g),i,c,p):void 0}function Ut(e,n){return cn(e)?!cn(n)||Ut(e.ofType,n.ofType):!!cn(n)||(un(e)?!un(n)||Ut(e.ofType,n.ofType):!!un(n)||!(!pn(e)&&!pn(n))&&e!==n)}function Vt(e,n,t,r){var i=n.get(r);if(!i){var a=Object.create(null),o=Object.create(null);Yt(e,t,r,a,o),i=[a,Object.keys(o)],n.set(r,i)}return i}function Bt(e,n,t){var r=n.get(t.selectionSet);if(r)return r;var i=st(e.getSchema(),t.typeCondition);return Vt(e,n,i,t.selectionSet)}function Yt(e,n,t,r,i){for(var a=0,o=t.selections;a<o.length;a++){var s=o[a];switch(s.kind){case g.FIELD:var c=s.name.value,u=void 0;(tn(n)||rn(n))&&(u=n.getFields()[c]);var l=s.alias?s.alias.value:c;r[l]||(r[l]=[]),r[l].push([n,s,u]);break;case g.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case g.INLINE_FRAGMENT:var p=s.typeCondition,f=p?st(e.getSchema(),p):n;Yt(e,f,s.selectionSet,r,i)}}}var Gt,Jt=function(){function e(){this._data=Object.create(null)}var n=e.prototype;return n.has=function(e,n,t){var r=this._data[e],i=r&&r[n];return void 0!==i&&(!1!==t||!1===i)},n.add=function(e,n,t){this._pairSetAdd(e,n,t),this._pairSetAdd(n,e,t)},n._pairSetAdd=function(e,n,t){var r=this._data[e];r||(r=Object.create(null),this._data[e]=r),r[n]=t},e}();function Xt(e){var n=[],t=Object.create(null);return{ObjectValue:{enter:function(){n.push(t),t=Object.create(null)},leave:function(){t=n.pop()}},ObjectField:function(n){var r=n.name.value;t[r]?e.reportError(new V('There can be only one input field named "'.concat(r,'".'),[t[r],n.name])):t[r]=n.name}}}function Kt(e,n){return!!(tn(e)||rn(e)||sn(e))&&null!=e.getFields()[n]}function Qt(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var qt=(Qt(Gt={},g.SCALAR_TYPE_DEFINITION,g.SCALAR_TYPE_EXTENSION),Qt(Gt,g.OBJECT_TYPE_DEFINITION,g.OBJECT_TYPE_EXTENSION),Qt(Gt,g.INTERFACE_TYPE_DEFINITION,g.INTERFACE_TYPE_EXTENSION),Qt(Gt,g.UNION_TYPE_DEFINITION,g.UNION_TYPE_EXTENSION),Qt(Gt,g.ENUM_TYPE_DEFINITION,g.ENUM_TYPE_EXTENSION),Qt(Gt,g.INPUT_OBJECT_TYPE_DEFINITION,g.INPUT_OBJECT_TYPE_EXTENSION),Gt);Object.freeze([function(e){return{Document:function(n){for(var t=0,r=n.definitions;t<r.length;t++){var i=r[t];be(i)||e.reportError(new V("The ".concat(i.kind===g.SCHEMA_DEFINITION||i.kind===g.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"'," definition is not executable."),i))}return!1}}},function(e){var n=Object.create(null);return{OperationDefinition:function(t){var r=t.name;return r&&(n[r.value]?e.reportError(new V('There can be only one operation named "'.concat(r.value,'".'),[n[r.value],r])):n[r.value]=r),!1},FragmentDefinition:function(){return!1}}},function(e){var n=0;return{Document:function(e){n=e.definitions.filter(function(e){return e.kind===g.OPERATION_DEFINITION}).length},OperationDefinition:function(t){!t.name&&n>1&&e.reportError(new V("This anonymous operation must be the only defined operation.",t))}}},function(e){return{OperationDefinition:function(n){"subscription"===n.operation&&1!==n.selectionSet.selections.length&&e.reportError(new V(n.name?'Subscription "'.concat(n.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",n.selectionSet.selections.slice(1)))}}},at,function(e){return{InlineFragment:function(n){var t=n.typeCondition;if(t){var r=st(e.getSchema(),t);if(r&&!fn(r)){var i=je(t);e.reportError(new V('Fragment cannot condition on non composite type "'.concat(i,'".'),t))}}},FragmentDefinition:function(n){var t=st(e.getSchema(),n.typeCondition);if(t&&!fn(t)){var r=je(n.typeCondition);e.reportError(new V('Fragment "'.concat(n.name.value,'" cannot condition on non composite type "').concat(r,'".'),n.typeCondition))}}}},function(e){return{VariableDefinition:function(n){var t=st(e.getSchema(),n.type);if(t&&!ln(t)){var r=n.variable.name.value,i=je(n.type);e.reportError(new V('Variable "$'.concat(r,'" cannot be non-input type "').concat(i,'".'),n.type))}}}},function(e){return{Field:function(n){var t=e.getType(),r=n.selectionSet;if(t)if(pn(mn(t))){if(r){var i=n.name.value,a=H(t);e.reportError(new V('Field "'.concat(i,'" must not have a selection since type "').concat(a,'" has no subfields.'),r))}}else if(!r){var o=n.name.value,s=H(t);e.reportError(new V('Field "'.concat(o,'" of type "').concat(s,'" must have a selection of subfields. Did you mean "').concat(o,' { ... }"?'),n))}}}},function(e){return{Field:function(n){var t=e.getParentType();if(t&&!e.getFieldDef()){var r=e.getSchema(),i=n.name.value,a=Ae("to use an inline fragment on",function(e,n,t){if(!dn(n))return[];for(var r=new Set,i=Object.create(null),a=0,o=e.getPossibleTypes(n);a<o.length;a++){var s=o[a];if(s.getFields()[t]){r.add(s),i[s.name]=1;for(var c=0,u=s.getInterfaces();c<u.length;c++){var l,p=u[c];!p.getFields()[t]||(r.add(p),i[p.name]=(null!==(l=i[p.name])&&void 0!==l?l:0)+1)}}}return ct(r).sort(function(n,t){var r=i[t.name]-i[n.name];return 0!==r?r:rn(n)&&e.isSubType(n,t)?-1:rn(t)&&e.isSubType(t,n)?1:De(n.name,t.name)}).map(function(e){return e.name})}(r,t,i));""===a&&(a=Ae(function(e,n){return tn(e)||rn(e)?ke(n,Object.keys(e.getFields())):[]}(t,i))),e.reportError(new V('Cannot query field "'.concat(i,'" on type "').concat(t.name,'".')+a,n))}}}},function(e){var n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(t){var r=t.name.value;return n[r]?e.reportError(new V('There can be only one fragment named "'.concat(r,'".'),[n[r],t.name])):n[r]=t.name,!1}}},function(e){return{FragmentSpread:function(n){var t=n.name.value;e.getFragment(t)||e.reportError(new V('Unknown fragment "'.concat(t,'".'),n.name))}}},function(e){var n=[],t=[];return{OperationDefinition:function(e){return n.push(e),!1},FragmentDefinition:function(e){return t.push(e),!1},Document:{leave:function(){for(var r=Object.create(null),i=0;i<n.length;i++)for(var a=0,o=e.getRecursivelyReferencedFragments(n[i]);a<o.length;a++)r[o[a].name.value]=!0;for(var s=0;s<t.length;s++){var c=t[s],u=c.name.value;!0!==r[u]&&e.reportError(new V('Fragment "'.concat(u,'" is never used.'),c))}}}}},function(e){return{InlineFragment:function(n){var t=e.getType(),r=e.getParentType();if(fn(t)&&fn(r)&&!lt(e.getSchema(),t,r)){var i=H(r),a=H(t);e.reportError(new V('Fragment cannot be spread here as objects of type "'.concat(i,'" can never be of type "').concat(a,'".'),n))}},FragmentSpread:function(n){var t=n.name.value,r=function(e,n){var t=e.getFragment(n);if(t){var r=st(e.getSchema(),t.typeCondition);if(fn(r))return r}}(e,t),i=e.getParentType();if(r&&i&&!lt(e.getSchema(),r,i)){var a=H(i),o=H(r);e.reportError(new V('Fragment "'.concat(t,'" cannot be spread here as objects of type "').concat(a,'" can never be of type "').concat(o,'".'),n))}}}},function(e){var n=Object.create(null),t=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return i(e),!1}};function i(a){if(!n[a.name.value]){var o=a.name.value;n[o]=!0;var s=e.getFragmentSpreads(a.selectionSet);if(0!==s.length){r[o]=t.length;for(var c=0;c<s.length;c++){var u=s[c],l=u.name.value,p=r[l];if(t.push(u),void 0===p){var f=e.getFragment(l);f&&i(f)}else{var d=t.slice(p),v=d.slice(0,-1).map(function(e){return'"'+e.name.value+'"'}).join(", ");e.reportError(new V('Cannot spread fragment "'.concat(l,'" within itself')+(""!==v?" via ".concat(v,"."):"."),d))}t.pop()}r[o]=void 0}}}},function(e){var n=Object.create(null);return{OperationDefinition:function(){n=Object.create(null)},VariableDefinition:function(t){var r=t.variable.name.value;n[r]?e.reportError(new V('There can be only one variable named "$'.concat(r,'".'),[n[r],t.variable.name])):n[r]=t.variable.name}}},function(e){var n=Object.create(null);return{OperationDefinition:{enter:function(){n=Object.create(null)},leave:function(t){for(var r=e.getRecursiveVariableUsages(t),i=0;i<r.length;i++){var a=r[i].node,o=a.name.value;!0!==n[o]&&e.reportError(new V(t.name?'Variable "$'.concat(o,'" is not defined by operation "').concat(t.name.value,'".'):'Variable "$'.concat(o,'" is not defined.'),[a,t]))}}},VariableDefinition:function(e){n[e.variable.name.value]=!0}}},function(e){var n=[];return{OperationDefinition:{enter:function(){n=[]},leave:function(t){for(var r=Object.create(null),i=e.getRecursiveVariableUsages(t),a=0;a<i.length;a++)r[i[a].node.name.value]=!0;for(var o=0,s=n;o<s.length;o++){var c=s[o],u=c.variable.name.value;!0!==r[u]&&e.reportError(new V(t.name?'Variable "$'.concat(u,'" is never used in operation "').concat(t.name.value,'".'):'Variable "$'.concat(u,'" is never used.'),c))}}},VariableDefinition:function(e){n.push(e)}}},Et,Nt,function(e){return It(It({},bt(e)),{},{Argument:function(n){var t=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!t&&r&&i){var a=n.name.value,o=ke(a,r.args.map(function(e){return e.name}));e.reportError(new V('Unknown argument "'.concat(a,'" on field "').concat(i.name,".").concat(r.name,'".')+Ae(o),n))}}})},_t,function(e){return{ListValue:function(n){if(!cn(function(e){if(e)return un(e)?e.ofType:e}(e.getParentInputType())))return St(e,n),!1},ObjectValue:function(n){var t=mn(e.getInputType());if(!sn(t))return St(e,n),!1;for(var r=Ke(n.fields,function(e){return e.name.value}),i=0,a=Xn(t.getFields());i<a.length;i++){var o=a[i];if(!r[o.name]&&Cn(o)){var s=H(o.type);e.reportError(new V('Field "'.concat(t.name,".").concat(o.name,'" of required type "').concat(s,'" was not provided.'),n))}}},ObjectField:function(n){var t=mn(e.getParentInputType());if(!e.getInputType()&&sn(t)){var r=ke(n.name.value,Object.keys(t.getFields()));e.reportError(new V('Field "'.concat(n.name.value,'" is not defined by type "').concat(t.name,'".')+Ae(r),n))}},NullValue:function(n){var t=e.getInputType();un(t)&&e.reportError(new V('Expected value of type "'.concat(H(t),'", found ').concat(je(n),"."),n))},EnumValue:function(n){return St(e,n)},IntValue:function(n){return St(e,n)},FloatValue:function(n){return St(e,n)},StringValue:function(n){return St(e,n)},BooleanValue:function(n){return St(e,n)}}},function(e){return Dt(Dt({},xt(e)),{},{Field:{leave:function(n){var t,r=e.getFieldDef();if(!r)return!1;for(var i=Ke(null!==(t=n.arguments)&&void 0!==t?t:[],function(e){return e.name.value}),a=0,o=r.args;a<o.length;a++){var s=o[a];if(!i[s.name]&&An(s)){var c=H(s.type);e.reportError(new V('Field "'.concat(r.name,'" argument "').concat(s.name,'" of type "').concat(c,'" is required, but it was not provided.'),n))}}}}})},function(e){var n=Object.create(null);return{OperationDefinition:{enter:function(){n=Object.create(null)},leave:function(t){for(var r=e.getRecursiveVariableUsages(t),i=0;i<r.length;i++){var a=r[i],o=a.node,s=a.type,c=a.defaultValue,u=o.name.value,l=n[u];if(l&&s){var p=e.getSchema(),f=st(p,l.type);if(f&&!Ft(p,f,l.defaultValue,s,c)){var d=H(f),v=H(s);e.reportError(new V('Variable "$'.concat(u,'" of type "').concat(d,'" used in position expecting type "').concat(v,'".'),[l,o]))}}}}},VariableDefinition:function(e){n[e.variable.name.value]=e}}},function(e){var n=new Jt,t=new Map;return{SelectionSet:function(r){for(var i=function(e,n,t,r,i){var a=[],o=Vt(e,n,r,i),s=o[0],c=o[1];if(function(e,n,t,r,i){for(var a=0,o=Xe(i);a<o.length;a++){var s=o[a],c=s[0],u=s[1];if(u.length>1)for(var l=0;l<u.length;l++)for(var p=l+1;p<u.length;p++){var f=Mt(e,t,r,!1,c,u[l],u[p]);f&&n.push(f)}}}(e,a,n,t,s),0!==c.length)for(var u=0;u<c.length;u++){Ct(e,a,n,t,!1,s,c[u]);for(var l=u+1;l<c.length;l++)jt(e,a,n,t,!1,c[u],c[l])}return a}(e,t,n,e.getParentType(),r),a=0;a<i.length;a++){var o=i[a],s=o[0],c=s[0],u=o[1],l=o[2],p=Rt(s[1]);e.reportError(new V('Fields "'.concat(c,'" conflict because ').concat(p,". Use different aliases on the fields to fetch both if this was intentional."),u.concat(l)))}}}},Xt]);var zt=Object.freeze([function(e){var n,t,r,i=e.getSchema(),a=null!==(n=null!==(t=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==t?t:null==i?void 0:i.getMutationType())&&void 0!==n?n:null==i?void 0:i.getSubscriptionType(),o=0;return{SchemaDefinition:function(n){a?e.reportError(new V("Cannot define a new schema within a schema extension.",n)):(o>0&&e.reportError(new V("Must provide only one schema definition.",n)),++o)}}},function(e){var n=e.getSchema(),t=Object.create(null),r=n?{query:n.getQueryType(),mutation:n.getMutationType(),subscription:n.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(n){for(var i,a=null!==(i=n.operationTypes)&&void 0!==i?i:[],o=0;o<a.length;o++){var s=a[o],c=s.operation,u=t[c];r[c]?e.reportError(new V("Type for ".concat(c," already defined in the schema. It cannot be redefined."),s)):u?e.reportError(new V("There can be only one ".concat(c," type in schema."),[u,s])):t[c]=s}return!1}},function(e){var n=Object.create(null),t=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){var i=r.name.value;if(null==t||!t.getType(i))return n[i]?e.reportError(new V('There can be only one type named "'.concat(i,'".'),[n[i],r.name])):n[i]=r.name,!1;e.reportError(new V('Type "'.concat(i,'" already exists in the schema. It cannot also be defined in this type definition.'),r.name))}},function(e){var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(n){var i,a=n.name.value;r[a]||(r[a]=Object.create(null));for(var o=null!==(i=n.values)&&void 0!==i?i:[],s=r[a],c=0;c<o.length;c++){var u=o[c],l=u.name.value,p=t[a];on(p)&&p.getValue(l)?e.reportError(new V('Enum value "'.concat(a,".").concat(l,'" already exists in the schema. It cannot also be defined in this type extension.'),u.name)):s[l]?e.reportError(new V('Enum value "'.concat(a,".").concat(l,'" can only be defined once.'),[s[l],u.name])):s[l]=u.name}return!1}},function(e){var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(n){var i,a=n.name.value;r[a]||(r[a]=Object.create(null));for(var o=null!==(i=n.fields)&&void 0!==i?i:[],s=r[a],c=0;c<o.length;c++){var u=o[c],l=u.name.value;Kt(t[a],l)?e.reportError(new V('Field "'.concat(a,".").concat(l,'" already exists in the schema. It cannot also be defined in this type extension.'),u.name)):s[l]?e.reportError(new V('Field "'.concat(a,".").concat(l,'" can only be defined once.'),[s[l],u.name])):s[l]=u.name}return!1}},function(e){var n=Object.create(null),t=e.getSchema();return{DirectiveDefinition:function(r){var i=r.name.value;if(null==t||!t.getDirective(i))return n[i]?e.reportError(new V('There can be only one directive named "@'.concat(i,'".'),[n[i],r.name])):n[i]=r.name,!1;e.reportError(new V('Directive "@'.concat(i,'" already exists in the schema. It cannot be redefined.'),r.name))}}},at,Et,Nt,function(e){for(var n=e.getSchema(),t=Object.create(null),r=0,i=e.getDocument().definitions;r<i.length;r++){var a=i[r];_e(a)&&(t[a.name.value]=a)}return{ScalarTypeExtension:o,ObjectTypeExtension:o,InterfaceTypeExtension:o,UnionTypeExtension:o,EnumTypeExtension:o,InputObjectTypeExtension:o};function o(r){var i,a=r.name.value,o=t[a],s=null==n?void 0:n.getType(a);if(o?i=qt[o.kind]:s&&(i=function(e){return nn(e)?g.SCALAR_TYPE_EXTENSION:tn(e)?g.OBJECT_TYPE_EXTENSION:rn(e)?g.INTERFACE_TYPE_EXTENSION:an(e)?g.UNION_TYPE_EXTENSION:on(e)?g.ENUM_TYPE_EXTENSION:sn(e)?g.INPUT_OBJECT_TYPE_EXTENSION:void Y(0,"Unexpected type: "+H(e))}(s)),i){if(i!==r.kind){var c=function(e){switch(e){case g.SCALAR_TYPE_EXTENSION:return"scalar";case g.OBJECT_TYPE_EXTENSION:return"object";case g.INTERFACE_TYPE_EXTENSION:return"interface";case g.UNION_TYPE_EXTENSION:return"union";case g.ENUM_TYPE_EXTENSION:return"enum";case g.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}Y(0,"Unexpected kind: "+H(e))}(r.kind);e.reportError(new V("Cannot extend non-".concat(c,' type "').concat(a,'".'),o?[o,r]:r))}}else{var u=Object.keys(t);n&&(u=u.concat(Object.keys(n.getTypeMap())));var l=ke(a,u);e.reportError(new V('Cannot extend type "'.concat(a,'" because it is not defined.')+Ae(l),r.name))}}},bt,_t,Xt,xt]),Ht=function(e){function n(n,t,r){var i;return(i=e.call(this,n,r)||this)._schema=t,i}return function(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}(n,e),n.prototype.getSchema=function(){return this._schema},n}(function(){function e(e,n){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}var n=e.prototype;return n.reportError=function(e){this._onError(e)},n.getDocument=function(){return this._ast},n.getFragment=function(e){var n=this._fragments;return n||(this._fragments=n=this.getDocument().definitions.reduce(function(e,n){return n.kind===g.FRAGMENT_DEFINITION&&(e[n.name.value]=n),e},Object.create(null))),n[e]},n.getFragmentSpreads=function(e){var n=this._fragmentSpreads.get(e);if(!n){n=[];for(var t=[e];0!==t.length;)for(var r=0,i=t.pop().selections;r<i.length;r++){var a=i[r];a.kind===g.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&t.push(a.selectionSet)}this._fragmentSpreads.set(e,n)}return n},n.getRecursivelyReferencedFragments=function(e){var n=this._recursivelyReferencedFragments.get(e);if(!n){n=[];for(var t=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),a=0,o=this.getFragmentSpreads(i);a<o.length;a++){var s=o[a].name.value;if(!0!==t[s]){t[s]=!0;var c=this.getFragment(s);c&&(n.push(c),r.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(e,n)}return n},e}());function $t(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Wt=function(){function e(e){var n;this.__validationErrors=!0===e.assumeValid?[]:void 0,O(e)||N(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||N(0,'"types" must be Array if provided but got: '.concat(H(e.types),".")),!e.directives||Array.isArray(e.directives)||N(0,'"directives" must be Array if provided but got: '+"".concat(H(e.directives),".")),this.description=e.description,this.extensions=e.extensions&&qe(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:Tt;var t=new Set(e.types);if(null!=e.types)for(var r=0,i=e.types;r<i.length;r++){var a=i[r];t.delete(a),Zt(a,t)}null!=this._queryType&&Zt(this._queryType,t),null!=this._mutationType&&Zt(this._mutationType,t),null!=this._subscriptionType&&Zt(this._subscriptionType,t);for(var o=0,s=this._directives;o<s.length;o++){var c=s[o];if(ft(c))for(var u=0,l=c.args;u<l.length;u++)Zt(l[u].type,t)}Zt(zn,t),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var p=0,f=ct(t);p<f.length;p++){var d=f[p];if(null!=d){var v=d.name;if(v||N(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[v])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(v,'".'));if(this._typeMap[v]=d,rn(d))for(var h=0,y=d.getInterfaces();h<y.length;h++){var m=y[h];if(rn(m)){var T=this._implementationsMap[m.name];void 0===T&&(T=this._implementationsMap[m.name]={objects:[],interfaces:[]}),T.interfaces.push(d)}}else if(tn(d))for(var E=0,g=d.getInterfaces();E<g.length;E++){var I=g[E];if(rn(I)){var b=this._implementationsMap[I.name];void 0===b&&(b=this._implementationsMap[I.name]={objects:[],interfaces:[]}),b.objects.push(d)}}}}}var n=e.prototype;return n.getQueryType=function(){return this._queryType},n.getMutationType=function(){return this._mutationType},n.getSubscriptionType=function(){return this._subscriptionType},n.getTypeMap=function(){return this._typeMap},n.getType=function(e){return this.getTypeMap()[e]},n.getPossibleTypes=function(e){return an(e)?e.getTypes():this.getImplementations(e).objects},n.getImplementations=function(e){var n=this._implementationsMap[e.name];return null!=n?n:{objects:[],interfaces:[]}},n.isPossibleType=function(e,n){return this.isSubType(e,n)},n.isSubType=function(e,n){var t=this._subTypeMap[e.name];if(void 0===t){if(t=Object.create(null),an(e))for(var r=0,i=e.getTypes();r<i.length;r++)t[i[r].name]=!0;else{for(var a=this.getImplementations(e),o=0,s=a.objects;o<s.length;o++)t[s[o].name]=!0;for(var c=0,u=a.interfaces;c<u.length;c++)t[u[c].name]=!0}this._subTypeMap[e.name]=t}return void 0!==t[n.name]},n.getDirectives=function(){return this._directives},n.getDirective=function(e){return Lt(this.getDirectives(),function(n){return n.name===e})},n.toConfig=function(){var e;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Xn(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[],assumeValid:void 0!==this.__validationErrors}},function(e,n,t){n&&$t(e.prototype,n)}(e,[{key:_,get:function(){return"GraphQLSchema"}}]),e}();function Zt(e,n){var t=mn(e);if(!n.has(t))if(n.add(t),an(t))for(var r=0,i=t.getTypes();r<i.length;r++)Zt(i[r],n);else if(tn(t)||rn(t)){for(var a=0,o=t.getInterfaces();a<o.length;a++)Zt(o[a],n);for(var s=0,c=Xn(t.getFields());s<c.length;s++){var u=c[s];Zt(u.type,n);for(var l=0,p=u.args;l<p.length;l++)Zt(p[l].type,n)}}else if(sn(t))for(var f=0,d=Xn(t.getFields());f<d.length;f++)Zt(d[f].type,n);return n}function er(e,n,t){if(e){if(e.kind===g.VARIABLE){var r=e.name.value;if(null==t||void 0===t[r])return;var i=t[r];return null===i&&un(n)?void 0:i}if(un(n))return e.kind===g.NULL?void 0:er(e,n.ofType,t);if(e.kind===g.NULL)return null;if(cn(n)){var a=n.ofType;if(e.kind===g.LIST){for(var o=[],s=0,c=e.values;s<c.length;s++){var u=c[s];if(nr(u,t)){if(un(a))return;o.push(null)}else{var l=er(u,a,t);if(void 0===l)return;o.push(l)}}return o}var p=er(e,a,t);return void 0===p?void 0:[p]}if(sn(n)){if(e.kind!==g.OBJECT)return;for(var f=Object.create(null),d=Ke(e.fields,function(e){return e.name.value}),v=0,h=Xn(n.getFields());v<h.length;v++){var y=h[v],m=d[y.name];if(m&&!nr(m.value,t)){var T=er(m.value,y.type,t);if(void 0===T)return;f[y.name]=T}else if(void 0!==y.defaultValue)f[y.name]=y.defaultValue;else if(un(y.type))return}return f}if(pn(n)){var E;try{E=n.parseLiteral(e,t)}catch(N){return}return void 0===E?void 0:E}Y(0,"Unexpected input type: "+H(n))}}function nr(e,n){return e.kind===g.VARIABLE&&(null==n||void 0===n[e.name.value])}function tr(e,n,t){var r=n.directives&&Lt(n.directives,function(n){return n.name.value===e.name});if(r)return function(e,n,t){for(var r,i={},a=Ke(null!==(r=n.arguments)&&void 0!==r?r:[],function(e){return e.name.value}),o=0,s=e.args;o<s.length;o++){var c=s[o],u=c.name,l=c.type,p=a[u];if(p){var f=p.value,d=f.kind===g.NULL;if(f.kind===g.VARIABLE){var v=f.name.value;if(null==t||!rr(t,v)){if(void 0!==c.defaultValue)i[u]=c.defaultValue;else if(un(l))throw new V('Argument "'.concat(u,'" of required type "').concat(H(l),'" ')+'was provided the variable "$'.concat(v,'" which was not provided a runtime value.'),f);continue}d=null==t[v]}if(d&&un(l))throw new V('Argument "'.concat(u,'" of non-null type "').concat(H(l),'" ')+"must not be null.",f);var h=er(f,l,t);if(void 0===h)throw new V('Argument "'.concat(u,'" has invalid value ').concat(je(f),"."),f);i[u]=h}else if(void 0!==c.defaultValue)i[u]=c.defaultValue;else if(un(l))throw new V('Argument "'.concat(u,'" of required type "').concat(H(l),'" ')+"was not provided.",n)}return i}(e,r,t)}function rr(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function ir(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 ar(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ir(Object(t),!0).forEach(function(n){or(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ir(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function or(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var sr=Ke(Jn.concat(it),function(e){return e.name});function cr(e){var n=tr(yt,e);return null==n?void 0:n.reason}function ur(e){var n=tr(mt,e);return null==n?void 0:n.url}function lr(e,n){if(e.description)return e.description.value;if(!0===(null==n?void 0:n.commentDescriptions)){var t=function(e){var n=e.loc;if(n){for(var t=[],r=n.startToken.prev;null!=r&&r.kind===q.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.length>0?t.reverse().join("\n"):void 0}}(e);if(void 0!==t)return te("\n"+t)}}function pr(e,n){null!=e&&e.kind===g.DOCUMENT||N(0,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e){var n=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zt,r=[],i=new Ht(e,n,function(e){r.push(e)}),a=t.map(function(e){return e(i)});return ge(e,Ie(a)),r}(e);if(0!==n.length)throw new Error(n.map(function(e){return e.message}).join("\n\n"))}(e);var t=function(e,n,t){for(var r,i,a,o,s,c=[],u=Object.create(null),l=[],p=[],f=0,d=n.definitions;f<d.length;f++){var v=d[f];if(v.kind===g.SCHEMA_DEFINITION)s=v;else if(v.kind===g.SCHEMA_EXTENSION)p.push(v);else if(_e(v))c.push(v);else if(Se(v)){var h=v.name.value,y=u[h];u[h]=y?y.concat([v]):[v]}else v.kind===g.DIRECTIVE_DEFINITION&&l.push(v)}if(0===Object.keys(u).length&&0===c.length&&0===l.length&&0===p.length&&null==s)return e;for(var m=Object.create(null),T=0,E=e.types;T<E.length;T++){var N=E[T];m[N.name]=function(e){return it.some(function(n){return e.name===n.name})}(I=N)||function(e){return Jn.some(function(n){return e.name===n.name})}(I)?I:nn(I)?function(e){for(var n,t=e.toConfig(),r=null!==(n=u[t.name])&&void 0!==n?n:[],i=t.specifiedByUrl,a=0;a<r.length;a++){var o;i=null!==(o=ur(r[a]))&&void 0!==o?o:i}return new Nn(ar(ar({},t),{},{specifiedByUrl:i,extensionASTNodes:t.extensionASTNodes.concat(r)}))}(I):tn(I)?function(e){var n,t=e.toConfig(),r=null!==(n=u[t.name])&&void 0!==n?n:[];return new gn(ar(ar({},t),{},{interfaces:function(){return[].concat(e.getInterfaces().map(w),U(r))},fields:function(){return ar(ar({},Qe(t.fields,x)),C(r))},extensionASTNodes:t.extensionASTNodes.concat(r)}))}(I):rn(I)?function(e){var n,t=e.toConfig(),r=null!==(n=u[t.name])&&void 0!==n?n:[];return new Dn(ar(ar({},t),{},{interfaces:function(){return[].concat(e.getInterfaces().map(w),U(r))},fields:function(){return ar(ar({},Qe(t.fields,x)),C(r))},extensionASTNodes:t.extensionASTNodes.concat(r)}))}(I):an(I)?function(e){var n,t=e.toConfig(),r=null!==(n=u[t.name])&&void 0!==n?n:[];return new wn(ar(ar({},t),{},{types:function(){return[].concat(e.getTypes().map(w),V(r))},extensionASTNodes:t.extensionASTNodes.concat(r)}))}(I):on(I)?function(e){var n,t=e.toConfig(),r=null!==(n=u[e.name])&&void 0!==n?n:[];return new kn(ar(ar({},t),{},{values:ar(ar({},t.values),M(r)),extensionASTNodes:t.extensionASTNodes.concat(r)}))}(I):sn(I)?function(e){var n,t=e.toConfig(),r=null!==(n=u[t.name])&&void 0!==n?n:[];return new Ln(ar(ar({},t),{},{fields:function(){return ar(ar({},Qe(t.fields,function(e){return ar(ar({},e),{},{type:D(e.type)})})),P(r))},extensionASTNodes:t.extensionASTNodes.concat(r)}))}(I):void Y(0,"Unexpected type: "+H(I))}for(var I,O=0;O<c.length;O++){var b,_=c[O],S=_.name.value;m[S]=null!==(b=sr[S])&&void 0!==b?b:B(_)}var A=ar(ar({query:e.query&&w(e.query),mutation:e.mutation&&w(e.mutation),subscription:e.subscription&&w(e.subscription)},s&&F([s])),F(p));return ar(ar({description:null===(r=s)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},A),{},{types:Xn(m),directives:[].concat(e.directives.map(function(e){var n=e.toConfig();return new dt(ar(ar({},n),{},{args:Qe(n.args,k)}))}),l.map(function(e){var n=e.locations.map(function(e){return e.value});return new dt({name:e.name.value,description:lr(e,t),locations:n,isRepeatable:e.repeatable,args:j(e.arguments),astNode:e})})),extensions:void 0,astNode:null!==(a=s)&&void 0!==a?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(p),assumeValid:null!==(o=null==t?void 0:t.assumeValid)&&void 0!==o&&o});function D(e){return cn(e)?new vn(D(e.ofType)):un(e)?new hn(D(e.ofType)):w(e)}function w(e){return m[e.name]}function x(e){return ar(ar({},e),{},{type:D(e.type),args:Qe(e.args,k)})}function k(e){return ar(ar({},e),{},{type:D(e.type)})}function F(e){for(var n={},t=0;t<e.length;t++)for(var r,i=null!==(r=e[t].operationTypes)&&void 0!==r?r:[],a=0;a<i.length;a++){var o=i[a];n[o.operation]=L(o.type)}return n}function L(e){var n,t=e.name.value,r=null!==(n=sr[t])&&void 0!==n?n:m[t];if(void 0===r)throw new Error('Unknown type: "'.concat(t,'".'));return r}function R(e){return e.kind===g.LIST_TYPE?new vn(R(e.type)):e.kind===g.NON_NULL_TYPE?new hn(R(e.type)):L(e)}function C(e){for(var n=Object.create(null),r=0;r<e.length;r++)for(var i,a=null!==(i=e[r].fields)&&void 0!==i?i:[],o=0;o<a.length;o++){var s=a[o];n[s.name.value]={type:R(s.type),description:lr(s,t),args:j(s.arguments),deprecationReason:cr(s),astNode:s}}return n}function j(e){for(var n=null!=e?e:[],r=Object.create(null),i=0;i<n.length;i++){var a=n[i],o=R(a.type);r[a.name.value]={type:o,description:lr(a,t),defaultValue:er(a.defaultValue,o),deprecationReason:cr(a),astNode:a}}return r}function P(e){for(var n=Object.create(null),r=0;r<e.length;r++)for(var i,a=null!==(i=e[r].fields)&&void 0!==i?i:[],o=0;o<a.length;o++){var s=a[o],c=R(s.type);n[s.name.value]={type:c,description:lr(s,t),defaultValue:er(s.defaultValue,c),deprecationReason:cr(s),astNode:s}}return n}function M(e){for(var n=Object.create(null),r=0;r<e.length;r++)for(var i,a=null!==(i=e[r].values)&&void 0!==i?i:[],o=0;o<a.length;o++){var s=a[o];n[s.name.value]={description:lr(s,t),deprecationReason:cr(s),astNode:s}}return n}function U(e){for(var n=[],t=0;t<e.length;t++)for(var r,i=null!==(r=e[t].interfaces)&&void 0!==r?r:[],a=0;a<i.length;a++)n.push(L(i[a]));return n}function V(e){for(var n=[],t=0;t<e.length;t++)for(var r,i=null!==(r=e[t].types)&&void 0!==r?r:[],a=0;a<i.length;a++)n.push(L(i[a]));return n}function B(e){var n,r=e.name.value,i=lr(e,t),a=null!==(n=u[r])&&void 0!==n?n:[];switch(e.kind){case g.OBJECT_TYPE_DEFINITION:var o=a,s=[e].concat(o);return new gn({name:r,description:i,interfaces:function(){return U(s)},fields:function(){return C(s)},astNode:e,extensionASTNodes:o});case g.INTERFACE_TYPE_DEFINITION:var c=a,l=[e].concat(c);return new Dn({name:r,description:i,interfaces:function(){return U(l)},fields:function(){return C(l)},astNode:e,extensionASTNodes:c});case g.ENUM_TYPE_DEFINITION:var p=a,f=[e].concat(p);return new kn({name:r,description:i,values:M(f),astNode:e,extensionASTNodes:p});case g.UNION_TYPE_DEFINITION:var d=a,v=[e].concat(d);return new wn({name:r,description:i,types:function(){return V(v)},astNode:e,extensionASTNodes:d});case g.SCALAR_TYPE_DEFINITION:var h=a;return new Nn({name:r,description:i,specifiedByUrl:ur(e),astNode:e,extensionASTNodes:h});case g.INPUT_OBJECT_TYPE_DEFINITION:var y=a,m=[e].concat(y);return new Ln({name:r,description:i,fields:function(){return P(m)},astNode:e,extensionASTNodes:y})}Y(0,"Unexpected type definition node: "+H(e))}}({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,n);if(null==t.astNode)for(var r=0,i=t.types;r<i.length;r++){var a=i[r];switch(a.name){case"Query":t.query=a;break;case"Mutation":t.mutation=a;break;case"Subscription":t.subscription=a}}for(var o=t.directives,s=function(e){var n=Tt[e];o.every(function(e){return e.name!==n.name})&&o.push(n)},c=0;c<Tt.length;c++)s(c);return new Wt(t)}u(class{constructor(e){this.searchIndex=[],e&&this.updateSchema(e)}updateSchema(e){this.schema=function(e,n){return pr(function(e,n){return new ye(e,n).parseDocument()}(e,{noLocation:null==n?void 0:n.noLocation,allowLegacySDLEmptyFields:null==n?void 0:n.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==n?void 0:n.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==n?void 0:n.experimentalFragmentVariables}),{commentDescriptions:null==n?void 0:n.commentDescriptions,assumeValidSDL:null==n?void 0:n.assumeValidSDL,assumeValid:null==n?void 0:n.assumeValid})}(e)}generateSearchIndex(){if(!this.schema)return[];let e=[];var n;(n=this.schema,[n.getQueryType(),n.getMutationType(),n.getSubscriptionType()].filter(Boolean)).forEach(n=>{e=[...e,...this.getTypeIndices(n,!0,e)]});const t=this.schema.getTypeMap();return Object.keys(t).forEach(n=>{/^__/.test(n)||(e=[...e,...this.getTypeIndices(t[n],!1,e)])}),this.searchIndex=e,e}getFieldsIndices(e,n,t,r){let i=[];return Object.keys(e).forEach(a=>{const o=e[a],s={search:o.name,name:o.name,description:o.description?o.description:"",args:o.args?o.args.map(e=>({name:e.name,description:e.description})):[],cat:"field",type:n.name,isQuery:t,highlight:"field"};i=[...i,s],o.args&&o.args.length&&o.args.forEach(e=>{i=[...i,{...s,search:e.name,highlight:"argument"}]}),o.type&&(i=[...i,...this.getTypeIndices(o.type,!1,[...r,...i]).filter(e=>!!e)])}),i}getTypeIndices(e,n,t){let r=null;if(!e.name)return[];if(t.some(n=>n.name===e.name&&"type"===n.cat))return[];e.getFields&&(r=e.getFields());const i=[{search:e.name,name:e.name,cat:"type",description:e.description?e.description:"",isRoot:n,highlight:"type"}];return r?[...i,...this.getFieldsIndices(r,e,n,[...t,...i]).filter(e=>!!e)]:i}searchDocs(e){return this.searchIndex.length?new E.Z(this.searchIndex,{keys:["search"],threshold:.4}).search(e).map(e=>e.item):[]}generateQuery(e,n,t){let r="",i=!1;if(!this.schema)return;switch(n){case this.schema.getQueryType()&&this.schema.getQueryType().name:r+="query";break;case this.schema.getMutationType()&&this.schema.getMutationType().name:r+="mutation";break;case this.schema.getSubscriptionType()&&this.schema.getSubscriptionType().name:r+="subscription";break;default:r+=`fragment _____ on ${n}`,i=!0}const a=this.generateFieldData(e,n,[],1,t);if(!a)return;r+=`{\n${a.query}\n}`;const o={...a.meta};return o.hasArgs=i||o.hasArgs,{query:r,meta:o}}cleanName(e){return e.replace(/[\[\]!]/g,"")}generateFieldData(e,n,t,r,i={}){if(!(e&&n&&t&&this.schema))return{query:"",meta:{}};const a=i.tabSize||2,o=this.schema.getType(n),s=o&&o.getFields()[e];if(!s)return{query:"",meta:{}};const c={hasArgs:!1};let u=" ".repeat(r*a)+s.name;s.args&&s.args.length&&(c.hasArgs=!0,u+=`(${s.args.reduce((e,n)=>e+", "+n.name+": ______","").substring(2)})`);const l=this.cleanName(s.type.inspect()),p=this.schema.getType(l);if(t.filter(e=>e.type===l).length)return{query:"",meta:{}};if(r>=(i.addQueryDepthLimit||0))return{query:"",meta:{}};const f=p&&p.getFields&&p.getFields();let d="";return f&&(d=Object.keys(f).reduce((n,a)=>{if(t.filter(e=>e.name===a&&e.type===l).length)return"";const o=this.generateFieldData(a,l,[...t,{name:e,type:l}],r+1,i);if(!o)return n;const s=o.query;return c.hasArgs=c.hasArgs||o.meta.hasArgs||!1,s?n+"\n"+s:n},"").substring(1)),d&&(u+=`{\n${d}\n`,u+=" ".repeat(r*a)+"}"),{query:u,meta:c}}})}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var a=t[e]={exports:{}};return n[e](a,a.exports,r),a.exports}r.m=n,r.x=function(){var e=r.O(void 0,[729],function(){return r(15672)});return r.O(e)},e=[],r.O=function(n,t,i,a){if(!t){var o=1/0;for(l=0;l<e.length;l++){t=e[l][0],i=e[l][1],a=e[l][2];for(var s=!0,c=0;c<t.length;c++)(!1&a||o>=a)&&Object.keys(r.O).every(function(e){return r.O[e](t[c])})?t.splice(c--,1):(s=!1,a<o&&(o=a));if(s){e.splice(l--,1);var u=i();void 0!==u&&(n=u)}}return n}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[t,i,a]},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce(function(n,t){return r.f[t](e,n),n},[]))},r.u=function(e){return e+"-es2018.js"},r.miniCssF=function(e){},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e;r.tu=function(n){return void 0===e&&(e={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(n)}}(),r.p="",function(){var e={672:1};r.f.i=function(n,t){e[n]||importScripts(r.tu(r.p+r.u(n)))};var n=self.webpackChunkaltair_app=self.webpackChunkaltair_app||[],t=n.push.bind(n);n.push=function(n){var i=n[0],a=n[1],o=n[2];for(var s in a)r.o(a,s)&&(r.m[s]=a[s]);for(o&&o(r);i.length;)e[i.pop()]=1;t(n)}}(),function(){var e=r.x;r.x=function(){return r.e(729).then(e)}}(),r.x()}();